Skip to content

Commit

Permalink
Making more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raopg committed Apr 30, 2019
2 parents 90dd692 + 183fe8e commit 06ad20b
Show file tree
Hide file tree
Showing 496 changed files with 16,020 additions and 0 deletions.
27 changes: 27 additions & 0 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,33 @@



<<<<<<< HEAD
# ## *CREATING DOCUMENTS* ##
# #TODO (1): Insert data into database using csv.DictWriter (comment out code after inserted to avoid multiple insertions)

=======
# *CREATING DOCUMENTS* #
#
# TO-DO (1): Insert data into database using csv.DictWriter (comment out code after inserted to avoid multiple insertions)
#
>>>>>>> 183fe8eee0face6f1fb8187419d1ce9472d605c0
# csv_file = open("roles.csv")
# reader = csv.DictReader(csv_file) # will use the fieldnames in the first row to create dict for each row
# for row in reader: # could use insert_many() if you had a multiple dicts in a list
# role_info.insert_one(row)
# csv_file.close()

<<<<<<< HEAD
# ## *READING DOCUMENTS* ##

# #TODO (2): Read all data from database
=======


# *READING DOCUMENTS* #
#
# TO-DO (2): Read all data from database
>>>>>>> 183fe8eee0face6f1fb8187419d1ce9472d605c0
# for i in role_info.find():
# print(i)

Expand All @@ -43,8 +58,14 @@



<<<<<<< HEAD
# ## *UPDATING DOCUMENTS* ##
# #TODO (6): Insert {"foo":"bar"} into first document with committee marketing and print it out to see update
=======
# *UPDATING DOCUMENTS* #
#
# TO-DO (6): Insert {"foo":"bar"} into first document with committee marketing and print it out to see update
>>>>>>> 183fe8eee0face6f1fb8187419d1ce9472d605c0
# role_info.update_one({"committee":"marketing"}, {"$set": {"foo": "bar"}})
# print(role_info.find_one({"committee":"marketing"}))

Expand All @@ -60,8 +81,14 @@



<<<<<<< HEAD
# ## *DELETING DOCUMENTS* ##
# #TODO (9): Delete the first document
=======
# *DELETING DOCUMENTS* #
#
# TO-DO (9): Delete the first document
>>>>>>> 183fe8eee0face6f1fb8187419d1ce9472d605c0
# print(role_info.delete_one())
# #TODO (10): Delete any documents with no deliverable prompt
# role_info.delete_many({"prompt":"[]"})
Expand Down
Binary file modified mongo_win/Lib/__pycache__/__future__.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/_bootlocale.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/_collections_abc.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/_weakrefset.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/abc.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/base64.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/bisect.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/codecs.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/copy.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/copyreg.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/enum.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/fnmatch.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/functools.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/genericpath.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/hashlib.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/heapq.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/hmac.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/io.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/keyword.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/linecache.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/locale.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/ntpath.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/operator.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/os.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/posixpath.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/random.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/re.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/reprlib.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/shutil.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/site.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/sre_compile.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/sre_constants.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/sre_parse.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/stat.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/struct.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/tarfile.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/tempfile.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/token.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/tokenize.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/types.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/warnings.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/__pycache__/weakref.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/collections/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/collections/__pycache__/abc.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/distutils/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/aliases.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/cp1252.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/cp437.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/idna.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/latin_1.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/utf_16_be.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/utf_16_le.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/encodings/__pycache__/utf_8.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/importlib/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/importlib/__pycache__/abc.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/importlib/__pycache__/machinery.cpython-37.pyc
Binary file not shown.
Binary file modified mongo_win/Lib/importlib/__pycache__/util.cpython-37.pyc
Binary file not shown.
56 changes: 56 additions & 0 deletions mongo_win/Lib/site-packages/dns/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license

# Copyright (C) 2003-2007, 2009, 2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

"""dnspython DNS toolkit"""

__all__ = [
'dnssec',
'e164',
'edns',
'entropy',
'exception',
'flags',
'hash',
'inet',
'ipv4',
'ipv6',
'message',
'name',
'namedict',
'node',
'opcode',
'query',
'rcode',
'rdata',
'rdataclass',
'rdataset',
'rdatatype',
'renderer',
'resolver',
'reversename',
'rrset',
'set',
'tokenizer',
'tsig',
'tsigkeyring',
'ttl',
'rdtypes',
'update',
'version',
'wiredata',
'zone',
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
59 changes: 59 additions & 0 deletions mongo_win/Lib/site-packages/dns/_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import sys
import decimal
from decimal import Context

PY3 = sys.version_info[0] == 3
PY2 = sys.version_info[0] == 2


if PY3:
long = int
xrange = range
else:
long = long # pylint: disable=long-builtin
xrange = xrange # pylint: disable=xrange-builtin

# unicode / binary types
if PY3:
text_type = str
binary_type = bytes
string_types = (str,)
unichr = chr
def maybe_decode(x):
return x.decode()
def maybe_encode(x):
return x.encode()
def maybe_chr(x):
return x
def maybe_ord(x):
return x
else:
text_type = unicode # pylint: disable=unicode-builtin, undefined-variable
binary_type = str
string_types = (
basestring, # pylint: disable=basestring-builtin, undefined-variable
)
unichr = unichr # pylint: disable=unichr-builtin
def maybe_decode(x):
return x
def maybe_encode(x):
return x
def maybe_chr(x):
return chr(x)
def maybe_ord(x):
return ord(x)


def round_py2_compat(what):
"""
Python 2 and Python 3 use different rounding strategies in round(). This
function ensures that results are python2/3 compatible and backward
compatible with previous py2 releases
:param what: float
:return: rounded long
"""
d = Context(
prec=len(str(long(what))), # round to integer with max precision
rounding=decimal.ROUND_HALF_UP
).create_decimal(str(what)) # str(): python 2.6 compat
return long(d)
Loading

0 comments on commit 06ad20b

Please sign in to comment.