hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
5fe50a48ed930ffddd728e253a149a06b0bf5a20
4,317
py
Python
old/datamanager.py
karimbahgat/GeoSearch
75040758b3c8fb1aa01e049f365cca5e61c9ba7a
[ "MIT" ]
2
2016-03-15T17:06:30.000Z
2016-11-01T02:38:12.000Z
georef/(old)/datamanager.py
karimbahgat/GeoRef
858fc525b5a7504ce7d62323ff7322a2bf24d611
[ "MIT" ]
null
null
null
georef/(old)/datamanager.py
karimbahgat/GeoRef
858fc525b5a7504ce7d62323ff7322a2bf24d611
[ "MIT" ]
null
null
null
""" Datamanager submodule Part of GeoRef, Python Offline Georeferencer by Karim Bahgat, 2014 Creates and keeps track of all available data sources on the machine. Unfinished alpha version """ import sys,os,shutil,time,csv,threading,pickle from helpers import messages,pypath class RefData: """ The class that holds the lookup reference data A refdata instance has two datasources: 1. Geodata (preexisting) Links to an external geographic shapefile used for georeferencing. Data is kept as is. 2. Namelink data (which it creates) Holds record of prepped name variations files, ie link-files that link a name to geography. The user decides where to create the namelink data. """ def __init__(self, datapath): self.datapath = datapath self.preprules = [] #load as table #... def PrepNamelinkData(self, namelinkpath): self.namelinkpath = namelinkpath #create normal names #... #then add preprule names for preprule in self.preprules: #create prep variation #add variation to preprules names list pass #save all preprule names lists to pickle #... def AddPrepRule(self, preprule): #process preprule #... self.preprule.append(preprule) def SaveToPickle(self): pass def _CreateVariations(self): pass def _PickleVariationLists(self): pass def _GatherDataLinkFiles(self, newlocation): """ Copy datafiles from their link paths to a new location, and change link paths to point to the new location. """ pass class RefDataManager: """ A manager class that has an overview of all datasources, and sets and retrieves information from them """ def __init__(self, managerpath=None): #first set picklepath, ie the memory of the refdatamanager if not managerpath: managerpath = "default_datamanager.pkl" #default manager path self.managerpath = pypath.File(managerpath, exists=False).fullpath #create new datasources pickle file if not found if not os.path.lexists(self.managerpath): datasourcesfile = open(self.managerpath,"w") pickle.dump(None, datasourcesfile) datasourcesfile.close() def __iter__(self): for name,datasource in self.ListAllDataSources().iteritems(): yield name,datasource def ListAllDataSources(self): datasourcesfile = open(self.managerpath,"r") datasources = pickle.load(datasourcesfile) datasourcesfile.close() return datasources def GetDataSource(self, dataname): pass def AddDataSource(self, refdata, dataname): existingdatasources = self.ListAllDataSources() datasourcesfile = open(self.managerpath,"w") if existingdatasources: datasources = existingdatasources datasources[dataname] = refdata else: datasources = dict([(dataname,refdata)]) pickle.dump(datasources, datasourcesfile) datasourcesfile.close() def ForgetAllDataSources(self): #maybe ask user to verify pass def GatherAllDataSources(self, newlocation): """ Copy all datafiles from their link paths to a new location, and change link paths to point to the new location. """ #create new datasources folder if doesnt exists newlocation = pypath.Folder(newlocation).fullpath if not os.path.lexists(newlocation): os.makedirs(newlocation) for name,datasource in self: subfolder = pypath.Folder(newlocation, name, exists=False).fullpath os.makedirs(subfolder) datasource._GatherDataLinkFiles(subfolder) def _VerifyDataSources(self): pass if __name__ == "__main__": refmanager = RefDataManager() print(refmanager.ListAllDataSources()) # how a datasource should be added... ## countrydata = RefData(r"D:\Test Data\cshapes") ## countrydata.AddPrepRule("...") ## countrydata.PrepNamelinkData("relativecountrynames.pkl") ## refmanager.AddDataSource(countrydata, "countrydata") print(refmanager.ListAllDataSources())
33.726563
119
0.659949
453
4,317
6.231788
0.399559
0.031881
0.015586
0.036132
0.111938
0.058094
0.058094
0.058094
0.058094
0.058094
0
0.001886
0.262914
4,317
127
120
33.992126
0.885292
0.350012
0
0.230769
0
0
0.012768
0.008637
0
0
0
0
0
1
0.230769
false
0.123077
0.030769
0
0.307692
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
5fec187632ef6308948fb87ab0c56480427fbd3d
1,031
py
Python
spacecapsule/selector.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
7
2022-02-18T03:14:43.000Z
2022-03-16T08:38:55.000Z
spacecapsule/selector.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
6
2022-03-10T12:16:59.000Z
2022-03-18T01:19:00.000Z
spacecapsule/selector.py
zengzhilong/space-capsule
26fd0bd42f83c918dfb06bb188009971406e7965
[ "Apache-2.0" ]
3
2022-02-17T08:40:33.000Z
2022-03-29T01:38:46.000Z
import json import shlex import jsonpath from kubernetes import client, config from subprocess import Popen, PIPE import os import sys from jinja2 import Environment, FileSystemLoader from spacecapsule.template import resource_path script_file_directory = resource_path('./resources/templates/scripts') script_env = Environment(loader=FileSystemLoader(searchpath=script_file_directory)) script_env.trim_blocks = True def get_resources(args, needs): params = needs.split('@') script_template_file = 'getResources.sh' script_template = script_env.get_template(script_template_file) script = script_template.render(args) process = Popen(script, shell=True, stdout=PIPE, stderr=PIPE) out, err = process.communicate() if len(err) > 0: print(err.decode()) return -1 resources = json.loads(out) # TODO resourceName is not specified # TODO multiNeeds # kind = jsonpath.jsonpath(resources, '$.kind') need = jsonpath.jsonpath(resources, params[1]) return [need]
25.775
83
0.741998
126
1,031
5.928571
0.507937
0.074967
0.05087
0
0
0
0
0
0
0
0
0.004657
0.166828
1,031
39
84
26.435897
0.864959
0.093113
0
0
0
0
0.048491
0.03125
0
0
0
0.025641
0
1
0.04
false
0
0.36
0
0.48
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
5fec354445c0e80a4add142ee45191b58a925546
1,296
py
Python
pygms/tpag.py
FelixWolf/pygms
df077d72490052be168f96cefce5e76a7f2adc53
[ "MIT" ]
null
null
null
pygms/tpag.py
FelixWolf/pygms
df077d72490052be168f96cefce5e76a7f2adc53
[ "MIT" ]
null
null
null
pygms/tpag.py
FelixWolf/pygms
df077d72490052be168f96cefce5e76a7f2adc53
[ "MIT" ]
null
null
null
from .kvp import kvp class tpag: def __init__(self, form, data = None): self.form = form self.values = [] self.addresses = [] if data: self.load(data) def load(self, data): for i in range(data.readUInt32()): entry = kvp() #tpag offset = data.readUInt32() self.addresses.append(offset) data.push(offset) entry.x = data.readUInt16() entry.y = data.readUInt16() entry.width = data.readUInt16() entry.height = data.readUInt16() entry.xOffset = data.readUInt16() entry.yOffset = data.readUInt16() entry.cropWidth = data.readUInt16() entry.cropHeight = data.readUInt16() entry.OW = data.readUInt16() entry.OH = data.readUInt16() entry.TexturePage = data.readUInt16() self.values.append(entry) #/tpag data.pop() def from_address(self, addr): if addr in self.addresses: return self.values[self.addresses.index(addr)] return None def __dir__(self): return self.values.keys() def __getitem__(self, index): return self.values[index]
29.454545
58
0.530864
132
1,296
5.113636
0.333333
0.228148
0.281481
0.068148
0
0
0
0
0
0
0
0.031477
0.362654
1,296
43
59
30.139535
0.785714
0.006944
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.028571
0.057143
0.314286
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5ff85338c196ec92ceda589296cdd654c2daf266
629
py
Python
tests/test_content_api.py
tzengwei/fastapi-sqlmodel-typer
83895ac87306ff0fae6487526c46918f1dff8c44
[ "Unlicense" ]
123
2021-09-13T18:39:36.000Z
2022-03-28T05:59:44.000Z
tests/test_content_api.py
tzengwei/fastapi-sqlmodel-typer
83895ac87306ff0fae6487526c46918f1dff8c44
[ "Unlicense" ]
11
2021-09-15T09:47:35.000Z
2022-03-14T21:16:17.000Z
tests/test_content_api.py
tzengwei/fastapi-sqlmodel-typer
83895ac87306ff0fae6487526c46918f1dff8c44
[ "Unlicense" ]
10
2021-09-15T11:07:36.000Z
2022-03-24T10:25:24.000Z
def test_content_create(api_client_authenticated): response = api_client_authenticated.post( "/content/", json={ "title": "hello test", "text": "this is just a test", "published": True, "tags": ["test", "hello"], }, ) assert response.status_code == 200 result = response.json() assert result["slug"] == "hello-test" def test_content_list(api_client_authenticated): response = api_client_authenticated.get("/content/") assert response.status_code == 200 result = response.json() assert result[0]["slug"] == "hello-test"
29.952381
56
0.605723
68
629
5.397059
0.426471
0.098093
0.239782
0.163488
0.594005
0.594005
0.594005
0.310627
0.310627
0.310627
0
0.014925
0.254372
629
20
57
31.45
0.767591
0
0
0.222222
0
0
0.168521
0
0
0
0
0
0.222222
1
0.111111
false
0
0
0
0.111111
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
270476d38f410e24b30af850c2b176e295ee3302
28,502
py
Python
tests/untrustedStringTests.py
tawesoft/untrusted
9eddab3befec85e4aaa2fa48593db516eda3cf3b
[ "MIT" ]
null
null
null
tests/untrustedStringTests.py
tawesoft/untrusted
9eddab3befec85e4aaa2fa48593db516eda3cf3b
[ "MIT" ]
null
null
null
tests/untrustedStringTests.py
tawesoft/untrusted
9eddab3befec85e4aaa2fa48593db516eda3cf3b
[ "MIT" ]
null
null
null
# This file contains fairly exhaustive tests of almost all the methods # supported by the Python `str` type, and tests that `untrusted.string` type: # * correctly supports the same methods # * accepts `str` and/or `untrusted.string` arguments interchangeably # * never returns `str` or any iterable of `str`, only an # appropriate `untrusted.*` type. # Also tests that subclassed instances of untrusted.string work import untrusted from sys import stderr import html class customstring(untrusted.string): pass def same(a, b): if type(a) != type(b): return False if isinstance(a, untrusted.string): a = a.value if isinstance(b, untrusted.string): b = b.value if a != b: return False return True # Test the test assert same("cat", "cat") assert not same("cat", "dog") assert same(untrusted.string("cat"), untrusted.string("cat")) assert not same(untrusted.string("cat"), untrusted.string("dog")) assert not same(untrusted.string("cat"), "cat") assert not same("cat", untrusted.string("cat")) assert not same("cat", None) assert not same(untrusted.string("cat"), None) assert not same(untrusted.string("cat"), customstring("cat")) assert same(None, None) # Test an untrusted.string is never None! try: _ = untrusted.string(None) raise AssertionError except TypeError: pass # Test an untrusted.string doesn't print! try: print(untrusted.string("Hello")) raise AssertionError except TypeError: pass # expected! # Test the subclassed string doesn't print! try: print(customstring("Hello")) raise AssertionError except TypeError: pass # expected! # Test equality checks still work assert "cat" == untrusted.string("cat") assert untrusted.string("cat") == "cat" assert "cat" == customstring("cat") assert customstring("cat") == "cat" assert customstring("cat") == untrusted.string("cat") assert untrusted.string("cat") == customstring("cat") # Test hashable with set membership assert "cat" in [untrusted.string("cat"), untrusted.string("dog")] assert untrusted.string("cat") in [untrusted.string("cat"), untrusted.string("dog")] assert untrusted.string("cat") in ["cat", "dog"] # Test hashable with sorted it = iter(sorted(["cat", "dog", "aligator", "zebra", "mouse"])) assert same("aligator", next(it)) assert same("cat", next(it)) assert same("dog", next(it)) assert same("mouse", next(it)) assert same("zebra", next(it)) it = iter(sorted([untrusted.string("cat"), untrusted.string("dog"), untrusted.string("aligator"), untrusted.string("zebra"), untrusted.string("mouse")])) assert same(untrusted.string("aligator"), next(it)) assert same(untrusted.string("cat"), next(it)) assert same(untrusted.string("dog"), next(it)) assert same(untrusted.string("mouse"), next(it)) assert same(untrusted.string("zebra"), next(it)) it = iter(sorted(untrusted.sequence(["cat", "dog", "aligator", "zebra", "mouse"]))) assert same(untrusted.string("aligator"), next(it)) assert same(untrusted.string("cat"), next(it)) assert same(untrusted.string("dog"), next(it)) assert same(untrusted.string("mouse"), next(it)) assert same(untrusted.string("zebra"), next(it)) # container iteration for i in "cat": assert i in ("c", "a", "t") for i in untrusted.string("cat"): assert i in ("c", "a", "t") assert same(i, untrusted.string("c")) or same(i, untrusted.string("a")) or same(i, untrusted.string("t")) # "Strings implement all of the common sequence operations" # https://docs.python.org/3.4/library/stdtypes.html#typesseq-common # membership: x in s assert "a" in "cat" assert "a" in untrusted.string("cat") assert untrusted.string("a") in untrusted.string("cat") assert not ("b" in "cat") assert not ("b" in untrusted.string("cat")) assert not (untrusted.string("b") in untrusted.string("cat")) assert "cat" in "dogcatmouse" assert "cat" in untrusted.string("dogcatmouse") assert untrusted.string("cat") in untrusted.string("dogcatmouse") assert customstring("a") in untrusted.string("cat") assert untrusted.string("a") in customstring("a") # membership: x not in s assert "b" not in "cat" assert "b" not in untrusted.string("cat") assert untrusted.string("b") not in untrusted.string("cat") assert not ("a" not in "cat") assert not ("a" not in untrusted.string("cat")) assert not (untrusted.string("a") not in untrusted.string("cat")) assert customstring("b") not in untrusted.string("cat") # concatenation: s + t assert same("cat"+"dog", "catdog") assert same(untrusted.string("cat") + "dog", untrusted.string("catdog")) assert same("cat" + untrusted.string("dog"), untrusted.string("catdog")) assert same(untrusted.string("cat") + untrusted.string("dog"), untrusted.string("catdog")) # concatination with subclasses - becomes left-most class assert same(untrusted.string("a") + customstring("b"), untrusted.string("ab")) assert same(customstring("a") + untrusted.string("b"), customstring("ab")) # s * n or n * s - "equivalent to adding s to itself n times" assert same(3*"cat", "catcatcat") assert same(3*untrusted.string("cat"), untrusted.string("catcatcat")) assert same(3*customstring("cat"), customstring("catcatcat")) assert same("cat"*3, "catcatcat") assert same(untrusted.string("cat")*3, untrusted.string("catcatcat")) assert same(customstring("cat")*3, customstring("catcatcat")) assert same(0*"cat", "") assert same(0*untrusted.string("cat"), untrusted.string("")) assert same("cat"*0, "") assert same(untrusted.string("cat")*0, untrusted.string("")) # s[i] - item at index i assert same("cat"[1], "a") assert same(untrusted.string("cat")[1], untrusted.string("a")) assert same("cat"[-1], "t") assert same(untrusted.string("cat")[-1], untrusted.string("t")) try: _ = "cat"[4] raise AssertionError except IndexError: pass # expected! try: _ = untrusted.string("cat")[4] raise AssertionError except IndexError: pass # expected! # s[i:j:k] - slice i to j with step k assert same("dogcatmouse"[3:6], "cat") assert same(untrusted.string("dogcatmouse")[3:6], untrusted.string("cat")) assert same(customstring("dogcatmouse")[3:6], customstring("cat")) assert same("dogcatmouse"[3:6:2], "ct") assert same(untrusted.string("dogcatmouse")[3:6:2], untrusted.string("ct")) assert same(customstring("dogcatmouse")[3:6:2], customstring("ct")) # len(s) assert len("cat") == 3 assert len(untrusted.string("cat")) == 3 #min(s) smallest item of s assert same(min("cat"), "a") assert same(min(untrusted.string("cat")), untrusted.string("a")) #max(s) largest item of s assert same(max("cat"), "t") assert same(max(untrusted.string("cat")), untrusted.string("t")) # s.index(x[, i[, j]]) # "index of the first occurrence of x in s # (at or after index i and before index j)" assert "cat".index("a") == 1 assert untrusted.string("cat").index("a") == 1 assert "dogcatmouse".index("cat") == 3 assert untrusted.string("dogcatmouse").index("cat") == 3 assert untrusted.string("dogcatmouse").index(untrusted.string("cat")) == 3 # s.count(x) - occurrences of x in s assert "cat".count("a") == 1 assert untrusted.string("cat").count("a") == 1 assert untrusted.string("cat").count(untrusted.string("a")) == 1 assert "cataclasm".count("a") == 3 assert untrusted.string("cataclasm").count("a") == 3 assert untrusted.string("cataclasm").count(untrusted.string("a")) == 3 assert "cat attack".count("at") == 2 assert untrusted.string("cat attack").count("at") == 2 assert untrusted.string("cat attack").count(untrusted.string("at")) == 2 # x.join(y) assert same(''.join([]), "") assert same(untrusted.string('').join([]), untrusted.string("")) assert same(''.join("cat"), "cat") assert same(untrusted.string('').join("cat"), untrusted.string("cat")) assert same(untrusted.string('').join(untrusted.string("cat")), untrusted.string("cat")) assert same(','.join(["cat", "dog", "mouse"]), "cat,dog,mouse") assert same(untrusted.string(',').join(["cat", "dog", "mouse"]), untrusted.string("cat,dog,mouse")) assert same(untrusted.string(',').join([untrusted.string("cat"), untrusted.string("dog"), untrusted.string("mouse")]), untrusted.string("cat,dog,mouse")) # sorry, str('').join(untrusted.string(...)) won't work # but let's make sure we get an exception # to be certain that an untrusted.string doesn't ever leak into a normal str try: _ = ''.join(untrusted.string("hello")) raise AssertionError except TypeError: pass # expected try: _ = ''.join(customstring("hello")) raise AssertionError except TypeError: pass # expected # x.reversed() assert same(''.join(reversed("cat")), "tac") assert same(untrusted.string('').join(reversed(untrusted.string("cat"))), untrusted.string("tac")) # iteration for i in "cat": assert same(i, "c") or same(i, "a") or same(i, "t") for i in untrusted.string("cat"): assert same(i, untrusted.string("c")) or same(i, untrusted.string("a")) or same(i, untrusted.string("t")) # string methods # https://docs.python.org/3.4/library/stdtypes.html#string-methods # str.capitalize() assert same("cAt".capitalize(), "Cat") assert same(untrusted.string("cAt").capitalize(), untrusted.string("Cat")) # str.casefold() assert same("Catß".casefold(), "catss") assert same(untrusted.string("Catß").casefold(), untrusted.string("catss")) # str.center(width[, fillchar]) assert same("cat".center(7), " cat ") assert same(untrusted.string("cat").center(7), untrusted.string(" cat ")) assert same("cat".center(7, "-"), "--cat--") assert same(untrusted.string("cat").center(7, "-"), untrusted.string("--cat--")) assert same(untrusted.string("cat").center(7, untrusted.string("-")), untrusted.string("--cat--")) # str.count(sub[, start[, end]]) assert "dogcatmousecat".count("cat", 0, 3) == 0 assert "dogcatmousecat".count("cat", 3, 6) == 1 assert "dogcatmousecat".count("cat", 3) == 2 assert untrusted.string("dogcatmousecat").count("cat", 0, 3) == 0 assert untrusted.string("dogcatmousecat").count("cat", 3, 6) == 1 assert untrusted.string("dogcatmousecat").count("cat", 3) == 2 assert untrusted.string("dogcatmousecat").count(untrusted.string("cat"), 0, 3) == 0 assert untrusted.string("dogcatmousecat").count(untrusted.string("cat"), 3, 6) == 1 assert untrusted.string("dogcatmousecat").count(untrusted.string("cat"), 3) == 2 # str.encode # disabled on purpose for untrusted.string!!! assert same("cat".encode("ascii"), b"cat") try: _ = untrusted.string("cat").encode("ascii") raise AssertionError except TypeError: pass # expected! # str.endswith(suffix[, start[, end]]) assert "catdogmouse".endswith("mouse") assert untrusted.string("catdogmouse").endswith("mouse") assert untrusted.string("catdogmouse").endswith(untrusted.string("mouse")) assert not "catdogmouse".endswith("cat") assert not untrusted.string("catdogmouse").endswith("cat") assert not untrusted.string("catdogmouse").endswith(untrusted.string("cat")) assert "catdogmouse".endswith("dog", 0, 6) assert untrusted.string("catdogmouse").endswith("dog", 0, 6) assert untrusted.string("catdogmouse").endswith(untrusted.string("dog"), 0, 6) assert not "catdogmouse".endswith("dog", 4) assert not untrusted.string("catdogmouse").endswith("dog", 4) assert not untrusted.string("catdogmouse").endswith(untrusted.string("dog"), 4) # str.expandtabs(tabsize=8) assert same("\tHello\tworld!".expandtabs(), " Hello world!") assert same(untrusted.string("\tHello\tworld!").expandtabs(), untrusted.string(" Hello world!")) # str.find(sub[, start[, end]]) assert "dogcatmouse".find("cat") == 3 assert untrusted.string("dogcatmouse").find("cat") == 3 assert untrusted.string("dogcatmouse").find(untrusted.string("cat")) == 3 assert "dogcatmouse".find("cat", 4) == -1 assert untrusted.string("dogcatmouse").find("cat", 4) == -1 assert untrusted.string("dogcatmouse").find(untrusted.string("cat"), 4) == -1 # str.format(*args, **kwargs) # with numeric argument: assert same( "Hello {0}, UserID: {1}".format("Sarah", 123), "Hello Sarah, UserID: 123" ) assert same( untrusted.string("Hello {0}, UserID: {1}").format("Sarah", 123), untrusted.string("Hello Sarah, UserID: 123") ) assert same( untrusted.string("Hello {0}, UserID: {1}").format(untrusted.string("Sarah"), 123), untrusted.string("Hello Sarah, UserID: 123") ) # ensure untrusted.string never leaks into a str... try: _ = "Hello {0}, UserID: {1}".format(untrusted.string("Sarah"), 123), raise AssertionError except TypeError: pass # expected! # with named arguments: assert same( "Hello {name}, UserID: {uid}".format(name="Sarah", uid=123), "Hello Sarah, UserID: 123" ) assert same( untrusted.string("Hello {name}, UserID: {uid}").format(name="Sarah", uid=123), untrusted.string("Hello Sarah, UserID: 123") ) assert same( untrusted.string("Hello {name}, UserID: {uid}").format(name=untrusted.string("Sarah"), uid=123), untrusted.string("Hello Sarah, UserID: 123") ) # str.format_map(mapping) assert same( "Hello {name}, UserID: {uid}".format_map({"name": "Sarah", "uid": 123}), "Hello Sarah, UserID: 123" ) assert same( untrusted.string("Hello {name}, UserID: {uid}").format_map({"name": "Sarah", "uid": 123}), untrusted.string("Hello Sarah, UserID: 123") ) assert same( untrusted.string("Hello {name}, UserID: {uid}").format_map({"name": untrusted.string("Sarah"), "uid": "123"}), untrusted.string("Hello Sarah, UserID: 123") ) # advanced! format_map with an untrusted.mapping!! myUntrustedDict = untrusted.mapping({'name': 'Sarah', "uid": "123"}) assert same( untrusted.string("Hello {name}, UserID: {uid}").format_map(myUntrustedDict), untrusted.string("Hello Sarah, UserID: 123") ) # An untrusted mapping with untrusted keys is not allowed to format a string # This is by design! myUntrustedDict = untrusted.mappingOf(untrusted.string, untrusted.string)({'name': 'Sarah', "uid": "123"}) try: assert same( untrusted.string("Hello {name}, UserID: {uid}").format_map(myUntrustedDict), untrusted.string("Hello Sarah, UserID: 123") ) raise AssrtionError except TypeError: pass # expected # ensure untrusted.mapping never leaks into a str... try: _ = "Hello {name}, UserID: {uid}".format_map(myUntrustedDict), raise AssertionError except TypeError: pass # expected! # str.index(sub[, start[, end]]) # "Like find(), but raise ValueError when the substring is not found." assert "dogcatmouse".index("cat") == 3 assert untrusted.string("dogcatmouse").index("cat") == 3 assert untrusted.string("dogcatmouse").index(untrusted.string("cat")) == 3 try: _ = "dogcatmouse".index("tiger") raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").index("tiger") raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").index(untrusted.string("tiger")) raise AssertionError except ValueError: pass # expected try: _ = "dogcatmouse".index("cat", 4) raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").index("cat", 4) raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").index(untrusted.string("cat"), 4) raise AssertionError except ValueError: pass # expected # str.isalnum() assert "cat".isalnum() assert untrusted.string("cat").isalnum() assert not "£123".isalnum() assert not untrusted.string("£123").isalnum() # str.isalpha() assert "cat".isalpha() assert untrusted.string("cat").isalpha() assert not "123".isalpha() assert not untrusted.string("123").isalpha() # str.isdecimal() assert "123".isdecimal() assert untrusted.string("123").isdecimal() assert not "cat".isdecimal() assert not untrusted.string("cat").isdecimal() # str.isdigit() assert "2²".isdigit() assert untrusted.string("2²").isdigit() # str.isidentifier() assert "hello".isidentifier() assert untrusted.string("hello").isidentifier() assert not "123".isidentifier() assert not untrusted.string("123").isidentifier() # str.islower() assert "hello".islower() assert untrusted.string("hello").islower() assert not "Hello".islower() assert not untrusted.string("Hello").islower() # str.isnumeric() assert "123".isnumeric() assert untrusted.string("123").isnumeric() assert not "hello".isnumeric() assert not untrusted.string("hello").isnumeric() # str.isprintable() assert "123".isprintable() assert untrusted.string("123").isprintable() assert not "\01".isprintable() assert not untrusted.string("\01").isprintable() # str.isspace() assert " \t\r\n".isspace() assert untrusted.string(" \t\r\n").isspace() assert not "cat".isspace() assert not untrusted.string("cat").isspace() # str.istitle() assert "Hello World".istitle() assert untrusted.string("Hello World").istitle() assert not "hello world".istitle() assert not untrusted.string("hello world").istitle() # str.isupper() assert "CAT".isupper() assert untrusted.string("CAT").isupper() assert not "cat".isupper() assert not untrusted.string("cat").isupper() # str.join(iterable) - done # str.ljust(width[, fillchar]) assert same("CAT".ljust(8, "-"), "CAT-----") assert same(untrusted.string("CAT").ljust(8, "-"), untrusted.string("CAT-----")) # str.lower() assert same("Cat".lower(), "cat") assert same(untrusted.string("Cat").lower(), untrusted.string("cat")) # str.lstrip([chars]) assert same(" cat".lstrip(), "cat") assert same(untrusted.string(" cat".lstrip()), untrusted.string("cat")) assert same(" cat".lstrip(" ca"), "t") assert same(untrusted.string(" cat").lstrip(" ca"), untrusted.string("t")) assert same(untrusted.string(" cat").lstrip(untrusted.string(" ca")), untrusted.string("t")) assert same(untrusted.string(" cat").lstrip(customstring(" ca")), untrusted.string("t")) # str.partition(sep) # no result parts = "cat,dog,mouse".partition("X") a, b, c = parts assert same(a, "cat,dog,mouse") assert same(b, "") assert same(c, "") parts = untrusted.string("cat,dog,mouse").partition("X") a, b, c = parts assert same(a, untrusted.string("cat,dog,mouse")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("")) parts = untrusted.string("cat,dog,mouse").partition(untrusted.string("X")) a, b, c = parts assert same(a, untrusted.string("cat,dog,mouse")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("")) parts = customstring("cat,dog,mouse").partition(untrusted.string("X")) a, b, c = parts assert same(a, customstring("cat,dog,mouse")) assert same(b, customstring("")) assert same(c, customstring("")) parts = untrusted.string("cat,dog,mouse").partition(customstring("X")) a, b, c = parts assert same(a, untrusted.string("cat,dog,mouse")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("")) # result parts = "cat,dog,mouse".partition(",") a, b, c = parts assert same(a, "cat") assert same(b, ",") assert same(c, "dog,mouse") parts = untrusted.string("cat,dog,mouse").partition(",") a, b, c = parts assert same(a, untrusted.string("cat")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("dog,mouse")) parts = untrusted.string("cat,dog,mouse").partition(untrusted.string(",")) a, b, c = parts assert same(a, untrusted.string("cat")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("dog,mouse")) parts = customstring("cat,dog,mouse").partition(untrusted.string(",")) a, b, c = parts assert same(a, customstring("cat")) assert same(b, customstring(",")) assert same(c, customstring("dog,mouse")) parts = untrusted.string("cat,dog,mouse").partition(customstring(",")) a, b, c = parts assert same(a, untrusted.string("cat")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("dog,mouse")) # str.replace(old, new[, count]) assert same("cat,dog,hat".replace("at", "ave"), "cave,dog,have") assert same(untrusted.string("cat,dog,hat").replace("at", "ave"), untrusted.string("cave,dog,have")) assert same(untrusted.string("cat,dog,hat").replace(untrusted.string("at"), untrusted.string("ave")), untrusted.string("cave,dog,have")) # str.rfind(sub[, start[, end]]) assert "dogcathat".rfind("at") == 7 assert untrusted.string("dogcathat").rfind("at") == 7 assert untrusted.string("dogcathat").rfind(untrusted.string("at")) == 7 assert "dogcathat".rfind("mouse") == -1 assert untrusted.string("mouse").rfind("at") == -1 assert untrusted.string("mouse").rfind(untrusted.string("at")) == -1 # str.rindex(sub[, start[, end]]) # Like rfind() but raises ValueError when the substring sub is not found. try: _ = "dogcatmouse".rindex("tiger") raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").rindex("tiger") raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").rindex(untrusted.string("tiger")) raise AssertionError except ValueError: pass # expected try: _ = untrusted.string("dogcatmouse").rindex(customstring("tiger")) raise AssertionError except ValueError: pass # expected # str.rpartition(sep) # no result parts = "cat,dog,mouse".rpartition("X") a, b, c = parts assert same(a, "") assert same(b, "") assert same(c, "cat,dog,mouse") parts = untrusted.string("cat,dog,mouse").rpartition("X") a, b, c = parts assert same(a, untrusted.string("")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("cat,dog,mouse")) parts = untrusted.string("cat,dog,mouse").rpartition(untrusted.string("X")) a, b, c = parts assert same(a, untrusted.string("")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("cat,dog,mouse")) parts = customstring("cat,dog,mouse").rpartition(untrusted.string("X")) a, b, c = parts assert same(a, customstring("")) assert same(b, customstring("")) assert same(c, customstring("cat,dog,mouse")) parts = untrusted.string("cat,dog,mouse").rpartition(customstring("X")) a, b, c = parts assert same(a, untrusted.string("")) assert same(b, untrusted.string("")) assert same(c, untrusted.string("cat,dog,mouse")) # result parts = "cat,dog,mouse".rpartition(",") a, b, c = parts assert same(a, "cat,dog") assert same(b, ",") assert same(c, "mouse") parts = untrusted.string("cat,dog,mouse").rpartition(",") a, b, c = parts assert same(a, untrusted.string("cat,dog")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("mouse")) parts = untrusted.string("cat,dog,mouse").rpartition(untrusted.string(",")) a, b, c = parts assert same(a, untrusted.string("cat,dog")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("mouse")) parts = customstring("cat,dog,mouse").rpartition(untrusted.string(",")) a, b, c = parts assert same(a, customstring("cat,dog")) assert same(b, customstring(",")) assert same(c, customstring("mouse")) parts = untrusted.string("cat,dog,mouse").rpartition(customstring(",")) a, b, c = parts assert same(a, untrusted.string("cat,dog")) assert same(b, untrusted.string(",")) assert same(c, untrusted.string("mouse")) # str.rsplit(sep=None, maxsplit=-1) parts = "a,b,c,d".rsplit(",", maxsplit=2) rest,c,d = parts assert same(rest, "a,b") assert same(c, "c") assert same(d, "d") parts = untrusted.string("a,b,c,d").rsplit(",", maxsplit=2) rest,c,d = parts assert same(rest, untrusted.string("a,b")) assert same(c, untrusted.string("c")) assert same(d, untrusted.string("d")) parts = untrusted.string("a,b,c,d").rsplit(untrusted.string(","), maxsplit=2) rest,c,d = parts assert same(rest, untrusted.string("a,b")) assert same(c, untrusted.string("c")) assert same(d, untrusted.string("d")) # str.rstrip([chars]) assert same("cat ".rstrip(), "cat") assert same(untrusted.string("cat ".rstrip()), untrusted.string("cat")) assert same("cat ".rstrip(" ta"), "c") assert same(untrusted.string("cat ").rstrip(" ta"), untrusted.string("c")) assert same(untrusted.string("cat ").rstrip(untrusted.string(" ta")), untrusted.string("c")) assert same(untrusted.string("cat ").rstrip(customstring(" ta")), untrusted.string("c")) # str.split(sep=None, maxsplit=-1) parts = "a,b,c,d".split(",", maxsplit=2) a,b,rest = parts assert same(a, "a") assert same(b, "b") assert same(rest, "c,d") parts = untrusted.string("a,b,c,d").split(",", maxsplit=2) a,b,rest = parts assert same(a, untrusted.string("a")) assert same(b, untrusted.string("b")) assert same(rest, untrusted.string("c,d")) parts = untrusted.string("a,b,c,d").split(untrusted.string(","), maxsplit=2) a,b,rest = parts assert same(a, untrusted.string("a")) assert same(b, untrusted.string("b")) assert same(rest, untrusted.string("c,d")) parts = customstring("a,b,c,d").split(",", maxsplit=2) a,b,rest = parts assert same(a, customstring("a")) assert same(b, customstring("b")) assert same(rest, customstring("c,d")) parts = customstring("a,b,c,d").split(untrusted.string(","), maxsplit=2) a,b,rest = parts assert same(a, customstring("a")) assert same(b, customstring("b")) assert same(rest, customstring("c,d")) # str.strip([chars]) assert same(" cat ".strip(), "cat") assert same(untrusted.string(" cat ".strip()), untrusted.string("cat")) assert same(" cat ".strip(" ct"), "a") assert same(untrusted.string(" cat ").strip(" ct"), untrusted.string("a")) assert same(untrusted.string(" cat ").strip(untrusted.string(" ct")), untrusted.string("a")) assert same(untrusted.string(" cat ").strip(customstring(" ct")), untrusted.string("a")) # str.swapcase() assert same("Cat".swapcase(), "cAT") assert same(untrusted.string("Cat").swapcase(), untrusted.string("cAT")) assert same(customstring("Cat").swapcase(), customstring("cAT")) # str.title() assert same("hello world".title(), "Hello World") assert same(untrusted.string("hello world").title(), untrusted.string("Hello World")) # str.upper() assert same("hello world".upper(), "HELLO WORLD") assert same(untrusted.string("hello world").upper(), untrusted.string("HELLO WORLD")) # str.zfill(width) assert same("42".zfill(5), "00042") assert same(untrusted.string("42").zfill(5), untrusted.string("00042")) assert same("-42".zfill(5), "-0042") assert same(untrusted.string("-42").zfill(5), untrusted.string("-0042")) # TODO str.translate - not impleemnted # TODO str.maketrans - not implemented # hashable: a set of strings parts = set(["cat", "dog", "tiger"]) assert "cat" in parts parts = set([untrusted.string("cat"), untrusted.string("dog"), untrusted.string("tiger")]) assert "cat" in parts assert untrusted.string("cat") in parts assert customstring("cat") in parts # %-style format also with a number assert same("Hello %s aged %d" % ("Grace", 101), "Hello Grace aged 101") assert same(untrusted.string("Hello %s aged %d") % ("Grace", 101), untrusted.string("Hello Grace aged 101")) assert same(untrusted.string("Hello %s aged %d") % (untrusted.string("Grace"), 101), untrusted.string("Hello Grace aged 101")) # %-style dict format (rare) also with with number assert same("Hello %(name)s aged %(age)d" % {"name": "Grace", "age": 101}, "Hello Grace aged 101") assert same(untrusted.string("Hello %(name)s aged %(age)d") % {"name": "Grace", "age": 101}, untrusted.string("Hello Grace aged 101")) assert same(untrusted.string("Hello %(name)s aged %(age)d") % {"name": untrusted.string("Grace"), "age": 101}, untrusted.string("Hello Grace aged 101")) # An untrusted mapping with untrusted keys is not allowed to format a string # This is by design! try: _ = same(untrusted.string("Hello %(name)s aged %(age)d") % {untrusted.string("name"): untrusted.string("Grace"), "age": 101}, untrusted.string("Hello Grace aged 101")) raise AssrtionError except TypeError: pass # expected # escape examples before = "<b>\"Hello\"</b>" after_qt = "&lt;b&gt;&quot;Hello&quot;&lt;/b&gt;" after_unqt = "&lt;b&gt;\"Hello\"&lt;/b&gt;" assert same(html.escape(before), after_qt) assert same(untrusted.string(before).escape(html.escape), after_qt) assert same(customstring(before).escape(html.escape), after_qt) assert same(untrusted.string(before) / html.escape, after_qt) assert same(customstring(before) / html.escape, after_qt) assert same(html.escape(before, quote=False), after_unqt) assert same(untrusted.string(before).escape(html.escape, quote=False), after_unqt) assert same(customstring(before).escape(html.escape, quote=False), after_unqt) assert same(untrusted.string(before) / (html.escape, [], {'quote': False}), after_unqt) assert same(customstring(before) / (html.escape, [], {'quote': False}), after_unqt)
30.84632
171
0.689706
3,894
28,502
5.038778
0.076528
0.292799
0.118343
0.087916
0.745018
0.679629
0.6174
0.553081
0.456501
0.382091
0
0.012519
0.114378
28,502
923
172
30.87974
0.764718
0.116413
0
0.394872
0
0
0.165443
0.001437
0
0
0
0.001083
0.639316
1
0.001709
false
0.039316
0.005128
0
0.013675
0.010256
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
2726f1c20356a9f029f364ae20fc64b3efed0d11
2,306
py
Python
src/dsrlib/ui/uicommands/misc.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
8
2020-09-06T02:15:10.000Z
2022-01-12T22:49:20.000Z
src/dsrlib/ui/uicommands/misc.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
5
2021-03-29T20:37:46.000Z
2021-09-19T13:20:24.000Z
src/dsrlib/ui/uicommands/misc.py
fraca7/dsremap
fb8f4fb13e74b512ed0cac05387fbe9694faebcf
[ "MIT" ]
2
2020-09-16T01:45:49.000Z
2021-06-12T12:38:15.000Z
#!/usr/bin/env python3 from PyQt5 import QtCore, QtGui from dsrlib.ui.wizard import HexUploaderWizard, SetupSDWizard from dsrlib.ui.about import AboutDialog from dsrlib.ui.settings import SettingsDialog from dsrlib.ui.resdl import ResourceDownloader from dsrlib.meta import Meta from .base import UICommand class UpdateHexUICommand(UICommand): def __init__(self, *args, **kwargs): super().__init__(*args, text=_('Update Arduino firmware'), tip=_('Program the microcontroller with DSRemap firmware (if you use an Arduino)'), **kwargs) def do(self): dlg = ResourceDownloader(self.mainWindow(), mainWindow=self.mainWindow(), path=('leonardo', 'firmware')) if dlg.exec_() == dlg.Accepted: wizard = HexUploaderWizard(self.mainWindow(), mainWindow=self.mainWindow()) wizard.exec_() class SetupSDCardUICommand(UICommand): def __init__(self, *args, **kwargs): super().__init__(*args, text=_('Setup a new SD card for the RPi0 W'), tip=_('Create an image file for the Raspberry Pi Zero W'), **kwargs) def do(self): dlg = ResourceDownloader(self.mainWindow(), mainWindow=self.mainWindow(), path=('rpi0w-v2', 'image')) if dlg.exec_() == dlg.Accepted: wizard = SetupSDWizard(self.mainWindow(), mainWindow=self.mainWindow()) wizard.exec_() class ShowAboutDialogUICommand(UICommand): def __init__(self, *args, **kwargs): super().__init__(*args, text=_('About {appname}...').format(appname=Meta.appName()), **kwargs) self.setMenuRole(self.AboutRole) def do(self): dlg = AboutDialog(self.mainWindow()) dlg.exec_() class ShowSettingsDialogUICommand(UICommand): def __init__(self, *args, **kwargs): super().__init__(*args, text=_('Settings...'), **kwargs) self.setMenuRole(self.PreferencesRole) def do(self): dlg = SettingsDialog(self.mainWindow(), mainWindow=self.mainWindow()) if dlg.exec_() == dlg.Accepted: self.mainWindow().reloadSettings() class OpenDocsUICommand(UICommand): def __init__(self, *args, **kwargs): super().__init__(*args, text=_('Open documentation'), icon='help', **kwargs) def do(self): QtGui.QDesktopServices.openUrl(QtCore.QUrl(Meta.documentationUrl()))
36.603175
160
0.678231
254
2,306
5.948819
0.338583
0.111185
0.052945
0.066181
0.401721
0.363336
0.328921
0.328921
0.258769
0.258769
0
0.002641
0.179098
2,306
62
161
37.193548
0.795563
0.009107
0
0.348837
0
0
0.11296
0
0
0
0
0
0
1
0.232558
false
0
0.162791
0
0.511628
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
272c0d7318cd793bafdecc98b51ea3ec3a193c49
1,223
py
Python
podle/models.py
briefmnews/django-podle
124628449b839b8ae3b3e3e5d5c11397fddc960b
[ "MIT" ]
null
null
null
podle/models.py
briefmnews/django-podle
124628449b839b8ae3b3e3e5d5c11397fddc960b
[ "MIT" ]
1
2021-08-06T04:03:15.000Z
2021-12-19T19:14:05.000Z
podle/models.py
briefmnews/django-podle
124628449b839b8ae3b3e3e5d5c11397fddc960b
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from .managers import NewsletterManager, RssFeedManager User = get_user_model() class Newsletter(models.Model): uuid = models.UUIDField() audio_url = models.URLField(blank=True, null=True, max_length=2000) content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) object_id = models.PositiveIntegerField() objects = NewsletterManager() class Meta: unique_together = ["content_type", "object_id"] def __str__(self): return f"{self.content_type} - {self.object_id}" class Dictionary(models.Model): word = models.CharField(max_length=254, unique=True) pronunciation = models.CharField(max_length=254) class Meta: ordering = ["word"] verbose_name_plural = "Dictionaries" def __str__(self): return f"{self.word} - [{self.pronunciation}]" class RssFeed(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) feed = models.URLField(blank=True, null=True) objects = RssFeedManager() def __str__(self): return f"{self.user} - {self.feed}"
26.586957
75
0.711365
146
1,223
5.746575
0.40411
0.035757
0.035757
0.057211
0.213349
0.148987
0
0
0
0
0
0.00995
0.17825
1,223
45
76
27.177778
0.824876
0
0
0.172414
0
0
0.111202
0.017989
0
0
0
0
0
1
0.103448
false
0
0.137931
0.103448
0.862069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
27313089931371eb58843d6531f66f2a82b4e82d
1,967
py
Python
src/1_100/0043_multiply-strings/multiply-strings.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
1
2019-12-18T06:08:47.000Z
2019-12-18T06:08:47.000Z
src/1_100/0043_multiply-strings/multiply-strings.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
1
2019-05-18T09:35:22.000Z
2019-05-18T09:35:22.000Z
src/1_100/0043_multiply-strings/multiply-strings.py
himichael/LeetCode
d54f48e785af3d47a2a67a95fd3343d2b23f8ae5
[ "Apache-2.0" ]
null
null
null
class Solution(object): def multiply(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ if(num1=="0" or num2=="0"): return "0" d = {"0":0, "1":1, "2":2, "3":3, "4":4, "5":5, "6":6, "7":7, "8":8, "9":9} num_arr = ["0","1","2","3","4","5","6","7","8","9"] def multiply(a,b): n = d[a] carry = 0 res = "" for i in b[::-1]: tmp = n * d[i] tmp += carry carry = tmp/10 tmp %= 10 res = num_arr[tmp] + res if(carry > 0): return num_arr[carry]+res return res def fill_zero(num,count): if(count == 0): return num for _ in range(count): num += "0" return num def add(a,b): i = len(a)-1 j = len(b)-1 res = "" carry = 0 while(i>=0 or j>=0): tmp = carry if(i >= 0): tmp += d[a[i]] if(j >= 0): tmp += d[b[j]] carry = tmp/10 tmp %= 10 res = num_arr[tmp] + res i -= 1 j -= 1 if(carry > 0): return num_arr[carry]+res return res index = 0 nums = [] for i in num1[::-1]: nums.append( fill_zero(multiply(i,num2),index) ) index += 1 #print nums if(len(nums)==1): return nums[0] res = nums.pop(0) for i in nums: res = add(res,i) return res def multiply_2(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ return str( int(num1)*int(num2) )
26.226667
82
0.338587
239
1,967
2.753138
0.217573
0.053191
0.06079
0.048632
0.331307
0.331307
0.331307
0.331307
0.331307
0.331307
0
0.08046
0.513472
1,967
75
83
26.226667
0.606061
0.005084
0
0.333333
0
0
0.013408
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
2737e5a10f085920dff2acb04f5c516d9dd3f67d
9,011
py
Python
filtering-and-analysis/Python/dangerous-imports.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
15
2020-12-01T19:47:05.000Z
2022-03-09T13:07:10.000Z
filtering-and-analysis/Python/dangerous-imports.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
null
null
null
filtering-and-analysis/Python/dangerous-imports.py
sola-st/WasmBench
4e0bf40c35aad2084591c8fd3411ae1d570767af
[ "MIT" ]
3
2021-06-06T22:33:22.000Z
2022-02-18T07:32:17.000Z
#!/usr/bin/env python3 from collections import Counter, defaultdict from id_tokenizer import tokenize import json def print_distribution(counter, min_count=0, total=None): if total is None: total = sum(counter.values()) for value, count in counter.most_common(): if count < min_count: continue percent = count / total print(f' {count:5} ({percent:6.2%}) {value}') def contains_all_tokens_lower(import_name: str, must_match: str) -> bool: import_tokens = set(t.lower() for t in tokenize(import_name)) must_match_tokens = set(t.lower() for t in tokenize(must_match)) return must_match_tokens.issubset(import_tokens) print('Loading data...') with open('filtered.json') as f: data = json.load(f) print(' unique:', len(data)) print('Loading names...') with open('names.json') as f: names = json.load(f) print() print('Common imports:') tokens_counter = Counter() imports_counter = Counter() for hash in data.keys(): imports = names[hash]['imports'] import_tokens_binary_lower = set() for import_name in imports: import_tokens = tokenize(import_name) # take only tokens once per binary, such that max_count == len(data) for t in import_tokens: if len(t) > 1: import_tokens_binary_lower.add(t.lower()) # imports_counter[tuple(import_tokens)] += 1 # if any(w in [t.lower() for t in import_tokens] for w in relevant_words): # if any(w in import_name.lower() for w in relevant_words): imports_counter[import_name] += 1 tokens_counter.update(import_tokens_binary_lower) print_distribution(imports_counter, min_count=300, total=len(data)) print() print('Common tokens (lowercased, at most once per binary):') print_distribution(tokens_counter, min_count=500, total=len(data)) print() matching_imports = [] # list of tuples: (match_category, match_word, import_name, binary_hash) for hash, desc in data.items(): for import_name in names[hash]['imports']: match_category = "Code execution" match_word = "eval" # Exclude AUTOCAD binary with 'AcDb' substring and WebGL eval with 'gl' substring since those are not JS eval if contains_all_tokens_lower(import_name, match_word) and 'AcDb' not in import_name and 'gl' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "exec" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_word = "execve" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_word = "emscripten_run_script" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_category = "Network" match_word = "xhr" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_word = "fetch" if contains_all_tokens_lower(import_name, match_word) and 'atomic' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "request" if contains_all_tokens_lower(import_name, match_word) and 'pointerlock' not in import_name and 'fullscreen' not in import_name and 'Animation' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "http" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_category = "File I/O" match_word = "file" if contains_all_tokens_lower(import_name, match_word): matching_imports.append((match_category, match_word, import_name, hash)) match_word = "fd" # Avoid false matches with hashes in cargo_web_snippet and extjs if contains_all_tokens_lower(import_name, match_word) and 'cargo_web_snippet' not in import_name and 'extjs' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "path" if contains_all_tokens_lower(import_name, match_word) and 'Canvas' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_category = "DOM interaction" match_word = "document" if contains_all_tokens_lower(import_name, match_word) and 'canvas' not in import_name.lower() and 'css' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "html" if contains_all_tokens_lower(import_name, match_word) and 'canvas' not in import_name.lower() and 'css' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "body" if contains_all_tokens_lower(import_name, match_word) and 'canvas' not in import_name.lower() and 'css' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "element" if contains_all_tokens_lower(import_name, match_word) and 'canvas' not in import_name.lower() and 'css' not in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_category = "Dynamic linking" match_word = "dlopen" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "dlsym" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "dlclose" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_category = "Syscall interfaces" match_word = "faasm" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "syscall" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "wasi" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "widl" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "eosio" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "emscripten" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) match_word = "wbg" if match_word in import_name: matching_imports.append((match_category, match_word, import_name, hash)) # DEBUG for inspecting matched imports inspected_category = 'File I/O' print(f'matching import names for category {inspected_category}:') print(Counter(import_name for category, word, import_name, binary_hash in matching_imports if category == inspected_category)) print() categories_import_counts = Counter() categories_to_binaries = defaultdict(set) for category, word, name, hash in matching_imports: categories_import_counts[category] += 1 categories_to_binaries[category].add(hash) category_binary_counts = Counter({category: len(binaries) for category, binaries in categories_to_binaries.items()}) print('categories import counts:') total_imports = sum(len(names[hash]['imports']) for hash in data.keys()) print('total imports:', total_imports) print('matching imports total:', len(matching_imports)) print_distribution(categories_import_counts, total=total_imports) print() print('categories with binaries matching:') print_distribution(category_binary_counts, total=len(data)) any_category_import_count = len(set((hash, import_name) for category, word, import_name, hash in matching_imports if category != "Syscall interfaces")) # any_category_import_count = sum(count for category, count in categories_import_counts.items() if category != "Syscall interfaces") print('imports with at least one (except generic syscalls)', any_category_import_count) any_category_binaries = set() for category, binaries in categories_to_binaries.items(): if category != "Syscall interfaces": for hash in binaries: any_category_binaries.add(hash) any_category_binary_count = len(any_category_binaries) print('binaries with at least one (except generic syscalls)', any_category_binary_count, f'{any_category_binary_count/len(data):.2%}')
48.972826
170
0.713794
1,214
9,011
4.997529
0.136738
0.130213
0.055382
0.094281
0.597659
0.542278
0.52151
0.509972
0.485248
0.470084
0
0.002202
0.193652
9,011
183
171
49.240437
0.832783
0.074576
0
0.328947
0
0
0.102413
0.009965
0
0
0
0
0
1
0.013158
false
0
0.532895
0
0.552632
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
2745a8754b83ac3622714211e282c618e724b1c0
51,472
py
Python
drovorubhunt.py
Insane-Forensics/drovorub-hunt
b849cb1818580606042b286444acb48c4ccb2b5a
[ "MIT" ]
25
2020-08-24T15:16:33.000Z
2022-02-12T05:46:17.000Z
drovorubhunt.py
Insane-Forensics/drovorub-hunt
b849cb1818580606042b286444acb48c4ccb2b5a
[ "MIT" ]
1
2020-08-25T13:37:25.000Z
2020-08-28T12:45:08.000Z
drovorubhunt.py
Insane-Forensics/drovorub-hunt
b849cb1818580606042b286444acb48c4ccb2b5a
[ "MIT" ]
5
2020-08-25T03:08:58.000Z
2022-02-12T05:46:22.000Z
""" MIT License Copyright (c) 2020 Insane Forensics Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ from pyshark import FileCapture, LiveCapture from argparse import ArgumentParser from json import dumps, loads from base64 import b64decode from traceback import print_exc from elasticsearch import Elasticsearch, helpers from time import time from datetime import datetime import binascii test_data = [ { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5wYXNzZWQ="}, {"name": "token", "value": "AIzX7mWtXtkJOBPeiVtC/0Nyofzgs+GZjZbwi0dd8Ak6/RtktfYjUltekzJXNt+CrGvG+ClA\r\n7Hmq772qrvUUjI/8g9MlDRN8vy+ZBcclCSv6KtBZ1+nxV285tquowBIEsEiYGX+ULzdhaG3I\r\nvHO/R8Me5xQqkRoS51LadZUY8SzEZ/0Eyg5Dtcu9ESzA3mldahqt0gVNExpcr7RfcrlDcfC2\r\nkdEzvckIlSDaHbcVT3y9GAp6IUgpmZuSFBkgXHfslUFmNvoAl/Tl5qFzi40woEU2f9kC6JWJ\r\n3zCBj+dvCL/oyaoXu7qBOf5hm32/ZjYP+N9AXJI0Jj8zLVb/rjiKoA=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5oZWxsbw=="}, {"name": "mode", "value": "bG9naW4="}, {"name": "serverid", "value": "6EJKTebFfyODBcBqM+JBVCwJkoM="}, {"name": "token", "value": "+ynYaT4H/8N+EbEx59kDlg=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5sb2dpbg=="}, {"name": "mode", "value": "c2lnbmlu"}, {"name": "clientid", "value": "FUegGfcIMH53hGX31fZuQg=="}, {"name": "token", "value": "WAKDUg4GCbPZTyea12NqnQ=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5sb2dpbg=="}, {"name": "mode", "value": "c2lnbmlu"}, {"name": "clientid", "value": "FUegGfcIMH53hGX31fZuQg=="}, {"name": "token", "value": "WAKDUg4GCbPZTyea12NqnQ=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5wZW5kaW5n"}, {"name": "clientid", "value": "D7MSQ8AJxrZxxd3GCNYK+cs7rp1EbcsdI1Sb3SlZjSy5Ayyi1BI7Xw32KCqjs0pe"}, {"name": "clientkey", "value": "PMC3eUxbK9TkZ6ofyV8HyUNj5jVNAGHUA9Qbu3RUYmI="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5jb21taXQ="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "Y2xvdWQuYXV0aA=="}, {"name": "action", "value": "YXV0aC5wYXNzZWQ="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "action", "value": "dHJhbnNmZXJfcmVxdWVzdA=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "src_id", "value": "ZTM5MTg0N2MtYmFlNy0xMWVhLWI0YmMtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "local_path", "value": "L3RtcC9wYXNzd2Q="}, {"name": "remote_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "remote_path", "value": "L2V0Yy9wYXNzd2Q="}, {"name": "mode", "value": "ZG93bmxvYWQ="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "path", "value": "L3RtcC9zdGFnZXovcGFzc3dk"}, {"name": "mode", "value": "cg=="}, {"name": "action", "value": "b3Blbg=="}, {"name": "src_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "size", "value": "MTk0OQ=="}, {"name": "action", "value": "b3Blbl9zdWNjZXNz"}, {"name": "src_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "action", "value": "cmVhZA=="}, {"name": "src_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "src_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "action", "value": "cmVhZF9kYXRh"}, {"name": "offset", "value": "MA=="}, {"name": "data", "value": ""} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "action", "value": "Y2xvc2U="}, {"name": "src_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "ZmlsZQ=="}, {"name": "session_id", "value": "UGRrQnh2MnQzVzBsa0U4Zg=="}, {"name": "src_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "YjkyMzdlYzAtYmFlNy0xMWVhLTlkYTAtMDAwYzI5MTMwYjcx"}, {"name": "action", "value": "cmVhZF9kYXRh"}, {"name": "offset", "value": "MA=="}, {"name": "data", "value": ""} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "bW9uaXRvcg=="}, {"name": "action", "value": "ZmlsZV9hZGRfcmVxdWVzdA=="}, {"name": "client_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "mon_id", "value": "Mzk1NjAyNTQtNjIyZS1iMDIyLTNlYmUtNDA0ODY3ZjlhYTRk"}, {"name": "mask", "value": "Y29sbGVjdHo="}, {"name": "active", "value": "dHJ1ZQ=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "bW9uaXRvcg=="}, {"name": "action", "value": "bmV0X2xpc3RfcmVxdWVzdA=="}, {"name": "client_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "bW9uaXRvcg=="}, {"name": "action", "value": "bmV0X2xpc3RfcmVwbHk="}, {"name": "client_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"}, {"name": "records", "value": [ [ {"name": "mon_id", "value": "MmZjYTllY2MtOWM0Mi0xOWRhLTlmYWItOGZlMmU5ZmI3YmUx"}, {"name": "port", "value": "MTIzNDU="}, {"name": "proto", "value": "dGNw"}, {"name": "active", "value": "dHJ1ZQ=="}, {"name": "client_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ], [ {"name": "mon_id", "value": "OTU0NTI0MDEtM2QxYy0zMWZmLTVmOTgtZTY0MjdmYTVlNWQ4"}, {"name": "port", "value": "NDU2Nzg="}, {"name": "proto", "value": "dGNw"}, {"name": "active", "value": "dHJ1ZQ=="}, {"name": "client_id", "value": "YzhiNDY0ODAtYmFlNy0xMWVhLWI2ZWYtMDAwYzI5MTMwYjcx"} ] ] } ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "c2hlbGw="}, {"name": "action", "value": "b3Blbg=="}, {"name": "session.id", "value": "ODhjY2ExMjI0NjRiOGNiNGViMWE3NDYyYWM4NDA5Mjc5YjAxMTU5Mw=="}, {"name": "src_id", "value": "OTcyMDVjZGMtYzA2Yy0xMWVhLTk0MWEtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "OTYwNWRlMjYtYzA2Yy0xMWVhLWI2NTAtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "c2hlbGw="}, {"name": "action", "value": "b3Blbi5zdWNjZXNz"}, {"name": "session.id", "value": "ODhjY2ExMjI0NjRiOGNiNGViMWE3NDYyYWM4NDA5Mjc5YjAxMTU5Mw=="}, {"name": "src_id", "value": "OTYwNWRlMjYtYzA2Yy0xMWVhLWI2NTAtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "OTcyMDVjZGMtYzA2Yy0xMWVhLTk0MWEtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "c2hlbGw="}, {"name": "action", "value": "ZGF0YQ=="}, {"name": "session.id", "value": "ODhjY2ExMjI0NjRiOGNiNGViMWE3NDYyYWM4NDA5Mjc5YjAxMTU5Mw=="}, {"name": "src_id", "value": "OTcyMDVjZGMtYzA2Yy0xMWVhLTk0MWEtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "OTYwNWRlMjYtYzA2Yy0xMWVhLWI2NTAtMDAwYzI5MTMwYjcx"}, {"name": "data", "value": "aWQNCg=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "c2hlbGw="}, {"name": "action", "value": "ZGF0YQ=="}, {"name": "session.id", "value": "ODhjY2ExMjI0NjRiOGNiNGViMWE3NDYyYWM4NDA5Mjc5YjAxMTU5Mw=="}, {"name": "src_id", "value": "OTYwNWRlMjYtYzA2Yy0xMWVhLWI2NTAtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "OTcyMDVjZGMtYzA2Yy0xMWVhLTk0MWEtMDAwYzI5MTMwYjcx"}, {"name": "data", "value": "YmFzaC00LjEjIGlkCnVpZD0wKHJvb3QpIGdpZD0wKHJvb3QpIGdyb3Vwcz0wKHJvb3Qp"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "c2hlbGw="}, {"name": "action", "value": "Y2xvc2U="}, {"name": "session.id", "value": "ODhjY2ExMjI0NjRiOGNiNGViMWE3NDYyYWM4NDA5Mjc5YjAxMTU5Mw=="}, {"name": "src_id", "value": "OTcyMDVjZGMtYzA2Yy0xMWVhLTk0MWEtMDAwYzI5MTMwYjcx"}, {"name": "dst_id", "value": "OTYwNWRlMjYtYzA2Yy0xMWVhLWI2NTAtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "dHVubmVs"}, {"name": "action", "value": "YWRkdHVu"}, {"name": "id", "value": "YTBmOTBhNDktNGViMC1mMDRjLTNkYzgtN2IzMGE1YjQ1ZmNk"}, {"name": "srcid", "value": "NGFiMDExNTQtYzEyZS0xMWVhLWI5M2UtMDAwYzI5MTMwYjcx"}, {"name": "lhost", "value": "MTkyLjE2OC41Ny4xMDA="}, {"name": "lport", "value": "Nzc3Nw=="}, {"name": "dstid", "value": "NTJmMDI4ZDYtYzEyZS0xMWVhLWI4NDctMDAwYzI5MTMwYjcx"}, {"name": "rhost", "value": "MTkyLjE2OC41Ny4yMDA="}, {"name": "rport", "value": "NTU1NQ=="}, {"name": "enabled", "value": "dHJ1ZQ=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name":"module","value":"dHVubmVs"}, {"name":"action","value":"b3Blbg=="}, {"name":"id","value":"YTBmOTBhNDktNGViMC1mMDRjLTNkYzgtN2IzMGE1YjQ1ZmNk"}, {"name":"sessionid","value":"OGE3M2VkOTItYzEyZS0xMWVhLWIzZGUtMDAwYzI5MTMwYjcx"}, {"name":"dstid","value":"NTJmMDI4ZDYtYzEyZS0xMWVhLWI4NDctMDAwYzI5MTMwYjcx"}, {"name":"srcid","value":"NGFiMDExNTQtYzEyZS0xMWVhLWI5M2UtMDAwYzI5MTMwYjcx"}, {"name":"rhost","value":"MTkyLjE2OC41Ny4yMDA="}, {"name":"rport","value":"NTU1NQ=="} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name":"module","value":"dHVubmVs"}, {"name":"action","value":"b3Blbl9zdWNjZXNz"}, {"name":"id","value":"YTBmOTBhNDktNGViMC1mMDRjLTNkYzgtN2IzMGE1YjQ1ZmNk"}, {"name":"srcid","value":"NTJmMDI4ZDYtYzEyZS0xMWVhLWI4NDctMDAwYzI5MTMwYjcx"}, {"name":"dstid","value":"NGFiMDExNTQtYzEyZS0xMWVhLWI5M2UtMDAwYzI5MTMwYjcx"}, {"name":"sessionid","value":"OGE3M2VkOTItYzEyZS0xMWVhLWIzZGUtMDAwYzI5MTMwYjcx"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, { "@timestamp": "2016-09-29T08:33:28", "network.transport": "TCP", "source.mac": "00:50:56:c0:00:08", "destination.mac": "00:0c:29:8a:3d:a7", "source.address": "192.168.43.1", "source.ip": "192.168.43.1", "destination.address": "192.168.43.135", "destination.ip": "192.168.43.135", "source.port": "50999", "destination.port": "12345", "websocket.masked": 1, "websocket.key": "b7:ce:fd:57", "websocket.masked_payload": "Masked payload", "websocket.payload": dumps( { "children": [ {"name": "module", "value": "dHVubmVs"}, {"name": "action", "value": "ZGF0YQ=="}, {"name": "id", "value": "YTBmOTBhNDktNGViMC1mMDRjLTNkYzgtN2IzMGE1YjQ1ZmNk"}, {"name": "sessionid", "value": "OGE3M2VkOTItYzEyZS0xMWVhLWIzZGUtMDAwYzI5MTMwYjcx"}, {"name": "dstid", "value": "NTJmMDI4ZDYtYzEyZS0xMWVhLWI4NDctMDAwYzI5MTMwYjcx"}, {"name": "srcid", "value": "NGFiMDExNTQtYzEyZS0xMWVhLWI5M2UtMDAwYzI5MTMwYjcx"}, {"name": "data", "value": "aGVsbG8K"} ] } ), "network.protocol": [ "eth", "ip", "tcp", "websocket", "data-text-lines" ] }, ] parameter_mapping = { "module": { "elk_field": "drovorub.module", "base64decode": True }, "action": { "elk_field": "drovorub.action", "base64decode": True }, "mode": { "elk_field": "drovorub.mode", "base64decode": True }, "clientid": { "elk_field": "drovorub.clientid" }, "serverid": { "elk_field": "drovorub.serverid" }, "session_id": { "elk_field": "drovorub.session_id", "base64decode": True }, "src_id": { "elk_field": "drovorub.src_id", "base64decode": True }, "dst_id": { "elk_field": "drovorub.dst_id", "base64decode": True }, "local_path": { "elk_field": "drovorub.local_path", "base64decode": True }, "remote_id": { "elk_field": "drovorub.remote_id", "base64decode": True }, "remote_path": { "elk_field": "drovorub.remote_path", "base64decode": True }, "path": { "elk_field": "drovorub.path", "base64decode": True }, "size": { "elk_field": "drovorub.size", "base64decode": True }, "offset": { "elk_field": "drovorub.offset", "base64decode": True }, "data": { "elk_field": "drovorub.data", "base64decode": True }, "status": { "elk_field": "drovorub.status", "base64decode": True }, "progress": { "elk_field": "drovorub.progress", "base64decode": True }, "reason": { "elk_field": "drovorub.reason", "base64decode": True }, "active": { "elk_field": "drovorub.active", "base64decode": True }, "mask": { "elk_field": "drovorub.mask", "base64decode": True }, "mon_id": { "elk_field": "drovorub.mon_id", "base64decode": True }, "port": { "elk_field": "drovorub.port", "base64decode": True }, "proto": { "elk_field": "drovorub.proto", "base64decode": True }, "srcid": { "elk_field": "drovorub.src_id", "base64decode": True }, "dstid": { "elk_field": "drovorub.dst_id", "base64decode": True }, "lhost": { "elk_field": "drovorub.lhost", "base64decode": True }, "lport": { "elk_field": "drovorub.lport", "base64decode": True }, "rhost": { "elk_field": "drovorub.rhost", "base64decode": True }, "rport": { "elk_field": "drovorub.rport", "base64decode": True }, "enabled": { "elk_field": "drovorub.enabled", "base64decode": True } } def process_packet(p): # Initialize the packet record packetrecord = { "@timestamp": datetime.utcfromtimestamp(float(p.sniff_timestamp)).isoformat(), "network.transport": p.transport_layer } # Process each layer layer_names = [] for packet_layer in p.layers: # print(dir(l)) # Save the layer name into the list of layers layer_names.append(packet_layer.layer_name) # Switch on the layer name if packet_layer.layer_name == "eth": packetrecord["source.mac"] = packet_layer.src packetrecord["destination.mac"] = packet_layer.dst elif packet_layer.layer_name == "ip": packetrecord["source.address"] = packet_layer.src packetrecord["source.ip"] = packet_layer.src packetrecord["destination.address"] = packet_layer.dst packetrecord["destination.ip"] = packet_layer.dst elif packet_layer.layer_name == "tcp": packetrecord["source.port"] = packet_layer.port packetrecord["destination.port"] = packet_layer.dstport elif packet_layer.layer_name == "websocket": packetrecord["websocket.masked"] = int(packet_layer.mask) if packetrecord["websocket.masked"] != 0: packetrecord["websocket.key"] = packet_layer.get("masking_key") packetrecord["websocket.masked_payload"] = packet_layer.get("masked_payload") elif packet_layer.layer_name == "data-text-lines": # Make sure we have a websocket layer in the packet if "websocket" in layer_names: packetrecord["websocket.payload"] = packet_layer.get('') else: # This isn't the layer we are looking for pass # Add the layer names packetrecord["network.protocol"] = layer_names return packetrecord def drovorub_enrich(packetrecord, drov_name_mapping): # Process the JSON structure try: json_packetrecord = loads(packetrecord.get("websocket.payload")) # Do a heuristic check for the expected c2 structure to look for a list embedded under the c2 string # todo: see if we want to limit this to just a key named children or leave it open for wider detection if len(json_packetrecord.keys()) == 1 and isinstance(json_packetrecord[next(iter(json_packetrecord.keys()))], list): for command_line in json_packetrecord[next(iter(json_packetrecord.keys()))]: try: if command_line.get("name") in drov_name_mapping.keys(): if drov_name_mapping[command_line.get("name")].get("base64decode") is True: packetrecord[drov_name_mapping[command_line.get("name")].get("elk_field")] = b64decode(command_line.get("value")).decode("ascii") else: packetrecord[drov_name_mapping[command_line.get("name")].get("elk_field")] = command_line.get("value") except binascii.Error: # This will catch incorrect base64 padding print_exc() except ValueError as e: pass return packetrecord def bulk_to_elasticsearch(es, bulk_queue): try: helpers.bulk(es, bulk_queue) return True except: print(print_exc()) return False def main_packet_loop(packet): pass if __name__ == "__main__": parser = ArgumentParser() parser.add_argument("elk_ip", help="Elasticsearch host to connect to") parser.add_argument("elk_index", help="Index to search") command_options = parser.add_mutually_exclusive_group(required=True) command_options.add_argument("-pcap", help="Pcap file to analyst", default="") command_options.add_argument("-live", help="Network interface to listen on", default="") command_options.add_argument("-test", action="store_true", help="Load test data", default=False) parser.add_argument("-elk_un", help="ELK username", default=None) parser.add_argument("-elk_pw", help="ELK username", default=None) parser.add_argument("-bufferlen", help="Maximum buffer length in packet records before sending data to ELK", default=500) parser.add_argument("-buffertime", help="Maximum buffer time in seconds before sending data to ELK", default=1) args = parser.parse_args() if args.elk_un is not None and args.elk_pw is not None: es = Elasticsearch( [args.elk_ip], http_auth=(args.elk_un, args.elk_pw), scheme="https", verify_certs=False ) else: es = Elasticsearch([args.elk_ip]) data_buffer = [] last_buffer_time = time() if args.test is True: for p in test_data: packet_data = p # Enrich the packet data packet_data = drovorub_enrich(packet_data, drov_name_mapping=parameter_mapping) # Add the elastic index packet_data["_index"] = args.elk_index # Queue the packet data for storage data_buffer.append(packet_data) # Check to see if buffer conditions have been met if len(data_buffer) > args.bufferlen: print("Bulking data to ELK: " + str(len(data_buffer))) # Cache data into ELK bulk_to_elasticsearch(es, data_buffer) # Reset the buffer and buffer time last_buffer_time = time() data_buffer = [] elif args.pcap is not "": for p in FileCapture(args.pcap, display_filter="websocket"): packet_data = process_packet(p) # Enrich the packet data packet_data = drovorub_enrich(packet_data, drov_name_mapping=parameter_mapping) # Add the elastic index packet_data["_index"] = args.elk_index # Queue the packet data for storage data_buffer.append(packet_data) # Check to see if buffer conditions have been met if len(data_buffer) > args.bufferlen: print("Bulking data to ELK: " + str(len(data_buffer))) # Cache data into ELK bulk_to_elasticsearch(es, data_buffer) # Reset the buffer and buffer time last_buffer_time = time() data_buffer = [] elif args.live is not "": for p in LiveCapture(interface=args.live, display_filter="websocket"): # Extract the packet data from the wire packet_data = process_packet(p) # Enrich the packet data packet_data = drovorub_enrich(packet_data, drov_name_mapping=parameter_mapping) # Add the elastic index packet_data["_index"] = args.elk_index # Queue the packet data for storage data_buffer.append(packet_data) # Check to see if buffer conditions have been met if len(data_buffer) > args.bufferlen or \ ((time() - last_buffer_time > args.buffertime) and len(data_buffer) > 0): print("Bulking data to ELK: " + str(len(data_buffer))) # Cache data into ELK bulk_to_elasticsearch(es, data_buffer) # Reset the buffer and buffer time last_buffer_time = time() data_buffer = [] # Cache remaining data into ELK if len(data_buffer) > 0: print("Bulking final data to ELK: " + str(len(data_buffer))) bulk_to_elasticsearch(es, data_buffer)
40.818398
422
0.448982
4,165
51,472
5.476591
0.105402
0.027356
0.036475
0.034196
0.720693
0.700088
0.688514
0.670671
0.657519
0.649101
0
0.090628
0.403404
51,472
1,260
423
40.850794
0.652175
0.042547
0
0.643225
0
0.000858
0.391467
0.084885
0
0
0
0.000794
0
1
0.003431
false
0.002573
0.007719
0
0.01458
0.006003
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
275707507d47e2924dddd556f29d5f26e3510a5c
233
py
Python
service/settings.py
amoveo-project/blockchain-explorer
0f7b4710dc81f775579ca823a6798723f07c0f23
[ "Apache-1.1" ]
null
null
null
service/settings.py
amoveo-project/blockchain-explorer
0f7b4710dc81f775579ca823a6798723f07c0f23
[ "Apache-1.1" ]
null
null
null
service/settings.py
amoveo-project/blockchain-explorer
0f7b4710dc81f775579ca823a6798723f07c0f23
[ "Apache-1.1" ]
null
null
null
DATABASE_URI = "postgresql://amoveo:password@localhost:5432/amoveo-explorer" NODE_INT_URL = "http://localhost:8081" NODE_EXT_URL = "http://localhost:8080" try: from service.settings_local import * except ImportError: pass
21.181818
76
0.755365
30
233
5.666667
0.8
0.082353
0.188235
0
0
0
0
0
0
0
0
0.058537
0.120172
233
10
77
23.3
0.770732
0
0
0
0
0
0.433476
0.253219
0
0
0
0
0
1
0
false
0.285714
0.285714
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
277a95cb5d9b572e19811eb5809c8d849589b237
625
py
Python
fmritools/nuisance.py
szorowi1/neu350
c66de9180e767831ce0f33af7a62242f488b77dc
[ "MIT" ]
null
null
null
fmritools/nuisance.py
szorowi1/neu350
c66de9180e767831ce0f33af7a62242f488b77dc
[ "MIT" ]
null
null
null
fmritools/nuisance.py
szorowi1/neu350
c66de9180e767831ce0f33af7a62242f488b77dc
[ "MIT" ]
3
2020-04-03T12:56:24.000Z
2020-05-11T18:06:04.000Z
import numpy as np from scipy.special import legendre as _legendre def legendre(t, order=0): """Generate Legendre polynomial regressors. Parameters ---------- n_acq : int Number of time points. order : int Highest order of Legendre polynimals to generate. Returns ------- Z : array, shape=(t,order+1) Legendre polynomial regressors. """ ## Error catching. assert order >= 0 ## Define grid. x = np.linspace(-1,1,t) ## Return Legendre polynomials. return np.column_stack([_legendre(i)(x) for i in range(order+1)])
23.148148
69
0.5936
76
625
4.828947
0.605263
0.032698
0.152589
0
0
0
0
0
0
0
0
0.013544
0.2912
625
27
69
23.148148
0.814898
0.5008
0
0
1
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
277fa79fb69847ea2298de1508ffaaadc4c52b60
67
bzl
Python
selenium-version.bzl
atlassian-forks/selenium
5d83fcfe72a409c260b83b3869e356ac45358e5a
[ "Apache-2.0" ]
null
null
null
selenium-version.bzl
atlassian-forks/selenium
5d83fcfe72a409c260b83b3869e356ac45358e5a
[ "Apache-2.0" ]
1
2021-03-17T08:51:57.000Z
2021-03-17T08:51:57.000Z
selenium-version.bzl
atlassian-forks/selenium
5d83fcfe72a409c260b83b3869e356ac45358e5a
[ "Apache-2.0" ]
null
null
null
# BUILD FILE SYNTAX: SKYLARK SE_VERSION = '3.141.59-atlassian-1'
13.4
35
0.716418
11
67
4.272727
1
0
0
0
0
0
0
0
0
0
0
0.122807
0.149254
67
4
36
16.75
0.701754
0.38806
0
0
0
0
0.526316
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2791140b1aeadbeefc244c7abff65f22d5f1883e
108
py
Python
python/test/mod_file_var/globalvar.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
2
2017-06-07T03:20:42.000Z
2020-01-07T09:14:26.000Z
python/test/mod_file_var/globalvar.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
python/test/mod_file_var/globalvar.py
qrsforever/workspace
53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from cls import Cls1 DICT_VAR = { 'a': 1, 'f': Cls1, }
10.8
23
0.509259
16
108
3.375
0.9375
0
0
0
0
0
0
0
0
0
0
0.0625
0.259259
108
9
24
12
0.6125
0.361111
0
0
0
0
0.029851
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27937b57734149c0d238f6552b732856cefca5f0
679
py
Python
mysite/bugs/migrations/0014_auto_20151123_1723.py
eqiihuu/bug_admin
d127e8e4e93af36ca04a6439e31dca1f38ea2906
[ "Adobe-Glyph" ]
null
null
null
mysite/bugs/migrations/0014_auto_20151123_1723.py
eqiihuu/bug_admin
d127e8e4e93af36ca04a6439e31dca1f38ea2906
[ "Adobe-Glyph" ]
null
null
null
mysite/bugs/migrations/0014_auto_20151123_1723.py
eqiihuu/bug_admin
d127e8e4e93af36ca04a6439e31dca1f38ea2906
[ "Adobe-Glyph" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('bugs', '0013_auto_20151123_1415'), ] operations = [ migrations.RenameField( model_name='bug', old_name='person', new_name='create_person', ), migrations.RenameField( model_name='stage', old_name='person', new_name='update_person', ), migrations.RenameField( model_name='stage', old_name='change_time', new_name='update_time', ), ]
22.633333
44
0.553756
62
679
5.725806
0.532258
0.177465
0.219718
0.253521
0.36338
0.270423
0.270423
0.270423
0
0
0
0.037528
0.332842
679
29
45
23.413793
0.746137
0.030928
0
0.434783
0
0
0.152439
0.035061
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27a41188c4004c87f8411eae9cc9617204e1f15a
1,281
py
Python
magento/__init__.py
TinBane/python-magento
089ce5089c5adfd00df52e5663846998615cea0f
[ "BSD-3-Clause" ]
52
2016-02-19T22:35:31.000Z
2021-06-11T18:52:46.000Z
magento/__init__.py
TinBane/python-magento
089ce5089c5adfd00df52e5663846998615cea0f
[ "BSD-3-Clause" ]
27
2015-12-30T12:35:05.000Z
2022-02-08T20:45:36.000Z
magento/__init__.py
TinBane/python-magento
089ce5089c5adfd00df52e5663846998615cea0f
[ "BSD-3-Clause" ]
54
2015-12-08T01:06:36.000Z
2022-01-25T01:57:25.000Z
# -*- coding: UTF-8 -*- ''' magento API :license: BSD, see LICENSE for more details ''' __all__ = [ 'API', 'Store', 'Magento', 'Customer', 'CustomerGroup', 'CustomerAddress', 'Country', 'Region', 'Cart', 'CartCoupon', 'CartCustomer', 'CartPayment', 'CartProduct', 'CartShipping', 'Category', 'CategoryAttribute', 'Product', 'ProductAttribute', 'ProductAttributeSet', 'ProductTypes', 'ProductImages', 'ProductTierPrice', 'ProductLinks', 'ProductConfigurable', 'Inventory', 'Order', 'Shipment', 'Invoice', '__version__', ] from .api import API from .checkout import Cart, CartCoupon, CartCustomer from .checkout import CartPayment, CartProduct, CartShipping from .miscellaneous import Store, Magento from .customer import Customer, CustomerGroup, CustomerAddress from .directory import Country, Region from .catalog import Category, CategoryAttribute from .catalog import Product, ProductAttribute, ProductAttributeSet from .catalog import ProductTypes, ProductImages, ProductTierPrice from .catalog import ProductLinks, ProductConfigurable, Inventory from .sales import Order, Shipment, Invoice from .version import VERSION as __version__
40.03125
75
0.690867
109
1,281
8.009174
0.431193
0.050401
0.077892
0
0
0
0
0
0
0
0
0.000978
0.202186
1,281
31
76
41.322581
0.853229
0.061671
0
0
0
0
0.255481
0
0
0
0
0
0
1
0
false
0
0.521739
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
27b0dc2a2f40fc75820c2160606fc5a7fdc6d8ae
699
py
Python
aerial/feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
aerial/feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
aerial/feed.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
import signal from .signalData import SignalData class Feed(object): """ Object intended to raise signals for visibility """ def __init__(self): self.signals = dict() def _receiver(self, signum, frame): """ Callback that is registered in the signal.signal builtin """ self.signals[signum].rec(frame) def __getitem__(self, item): if item not in self.signals: signal.signal(item, self._receiver) self.signals[item] = SignalData(item) return self.signals.__getitem__(item) def __bool__(self): return any([sig for sig in self.signals.values()]) def __nonzero__(self): return self.__bool__()
25.888889
72
0.643777
84
699
5.047619
0.452381
0.15566
0.061321
0
0
0
0
0
0
0
0
0
0.251788
699
26
73
26.884615
0.810707
0.150215
0
0
0
0
0
0
0
0
0
0
0
1
0.3125
false
0
0.125
0.125
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
27cd0b1fddaf96d2de285e31b2421c73db29d683
1,058
py
Python
pyaz/acs/dcos/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/acs/dcos/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/acs/dcos/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Commands to manage a DC/OS-orchestrated Azure Container Service. ''' from ... pyaz_utils import _call_az def browse(name, resource_group, disable_browser=None, ssh_key_file=None): ''' Required Parameters: - name -- Name of the container service. You can configure the default using `az configure --defaults acs=<name>` - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>` Optional Parameters: - disable_browser -- Do not open browser after opening a proxy to the cluster web user interface - ssh_key_file -- Path to an SSH key file to use. ''' return _call_az("az acs dcos browse", locals()) def install_cli(client_version=None, install_location=None): ''' Download and install the DC/OS command-line tool for a cluster. Optional Parameters: - client_version -- Version of kubectl to install. - install_location -- Path at which to install kubectl. ''' return _call_az("az acs dcos install-cli", locals())
34.129032
128
0.708885
149
1,058
4.899329
0.463087
0.024658
0.041096
0.049315
0.126027
0.057534
0
0
0
0
0
0
0.200378
1,058
30
129
35.266667
0.862884
0.648393
0
0
0
0
0.138983
0
0
0
0
0
0
1
0.4
false
0
0.2
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
27cf5280edf7b7e77da462ce8646c14667a30c2b
788
py
Python
output_generator.py
akashks1998/crypto
86e48216bcf81c351b52f35fed7edf37fc6abc3f
[ "MIT" ]
null
null
null
output_generator.py
akashks1998/crypto
86e48216bcf81c351b52f35fed7edf37fc6abc3f
[ "MIT" ]
null
null
null
output_generator.py
akashks1998/crypto
86e48216bcf81c351b52f35fed7edf37fc6abc3f
[ "MIT" ]
null
null
null
import pyautogui as auto import time file_object=open("input_2.txt","r+") time.sleep(15) arr = file_object.readlines() indx=0 for inp in arr: auto.click(1209,920, button='left') to_input=list(inp) auto.typewrite(to_input) auto.press('enter') time.sleep(0.2) auto.doubleClick(536,837, button='left') auto.keyDown('ctrlleft');auto.press('c');auto.keyUp('ctrlleft') auto.click(1475,1043,button='left') auto.keyDown('ctrlleft');auto.press('end');auto.keyUp('ctrlleft') auto.keyDown('ctrlleft');auto.press('v');auto.keyUp('ctrlleft') auto.press('enter') if indx%500==0: auto.keyDown('ctrlleft');auto.press('s');auto.keyUp('ctrlleft') indx=indx+1 auto.moveTo(1475,1043) auto.keyDown("ctrlleft");auto.press('s');auto.keyUp("ctrlleft")
32.833333
71
0.678934
118
788
4.491525
0.398305
0.181132
0.192453
0.216981
0.369811
0.316981
0.316981
0.173585
0.173585
0
0
0.05772
0.120558
788
23
72
34.26087
0.707071
0
0
0.086957
0
0
0.154822
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27d246c435f7079b948251f70c9406967e58d033
364
py
Python
Chapter 11/ch11_2_10.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 11/ch11_2_10.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 11/ch11_2_10.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
def length(t1, n): t2=t1*n l=len(t2) print("Tuple {} has length: {}", t2, l) length(('1',(5,3)),2) #Tuple {} length: ('1',(5,3)'1',(5,3)) 4 #note: here .format is missing def length(t1, n): t2=t1*n l=len(t2) print("Tuple {} has length: {}". format(t2, l)) length(('1',(5,3)),2) #Tuple ('1',(5,3)'1',(5,3)) has length: 4
21.411765
52
0.489011
67
364
2.656716
0.298507
0.067416
0.101124
0.151685
0.741573
0.741573
0.674157
0.674157
0.47191
0.47191
0
0.114695
0.233516
364
17
53
21.411765
0.523297
0.299451
0
0.8
0
0
0.202532
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27d2f7bd8ab5800c20595725940fe07d2bb2e783
202
py
Python
for/v3/repeat.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
5
2020-11-13T18:43:52.000Z
2022-03-23T01:07:11.000Z
for/v3/repeat.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
for/v3/repeat.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
def repeat(character: str, counter: int) -> str: """Repeat returns character repeated `counter` times.""" word = "" for counter in range(counter): word += character return word
25.25
60
0.628713
23
202
5.521739
0.608696
0
0
0
0
0
0
0
0
0
0
0
0.247525
202
7
61
28.857143
0.835526
0.247525
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27d55e9389784a0824fc6ad275fec6e98754151b
154
py
Python
testapp/__init__.py
movermeyer/Flask-Dropbox
bfc59c64a6a55b50cacb9b362ed520c50705778a
[ "BSD-3-Clause" ]
22
2015-02-07T21:37:36.000Z
2021-12-06T07:12:49.000Z
testapp/__init__.py
movermeyer/Flask-Dropbox
bfc59c64a6a55b50cacb9b362ed520c50705778a
[ "BSD-3-Clause" ]
33
2020-03-16T03:48:37.000Z
2021-08-02T03:40:08.000Z
testapp/__init__.py
movermeyer/Flask-Dropbox
bfc59c64a6a55b50cacb9b362ed520c50705778a
[ "BSD-3-Clause" ]
6
2017-02-04T04:29:15.000Z
2021-12-06T07:12:51.000Z
__author__ = 'Igor Davydenko <playpauseandstop@gmail.com>' __description__ = 'Flask-Dropbox test project' __license__ = 'BSD License' __version__ = '0.3'
30.8
58
0.772727
17
154
6.058824
0.941176
0
0
0
0
0
0
0
0
0
0
0.014599
0.11039
154
4
59
38.5
0.737226
0
0
0
0
0
0.538961
0.181818
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27dff289c3141d3d0b115785e733fc473eccd672
257
py
Python
PythonExercicios/ex040.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex040.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex040.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
n1 = float(input('Digite a primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) media = (n1 + n2) / 2 if media < 5: print('REPROVADO') elif 5 <= media < 7: print('RECUPERAÇÃO') else: print('APROVADO') print('Média: {}'.format(media))
23.363636
45
0.614786
36
257
4.388889
0.611111
0.126582
0.202532
0.21519
0
0
0
0
0
0
0
0.038462
0.190661
257
10
46
25.7
0.721154
0
0
0
0
0
0.326848
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27eb358334304f55940795ad957f092b1703299e
69,842
py
Python
TaxBands-Data-and-Script/script.py
2090886l/IneqBench
622679d25b0083a93ec7e4b82cee2fca0a6fd7ad
[ "MIT" ]
null
null
null
TaxBands-Data-and-Script/script.py
2090886l/IneqBench
622679d25b0083a93ec7e4b82cee2fca0a6fd7ad
[ "MIT" ]
null
null
null
TaxBands-Data-and-Script/script.py
2090886l/IneqBench
622679d25b0083a93ec7e4b82cee2fca0a6fd7ad
[ "MIT" ]
null
null
null
#1.Extract postcodes from csv file #2.For every postcode import urllib.request import re import csv array = """DG1 1DF DG1 1DG DG1 1DJ DG1 1DL DG1 1DR DG1 1DT DG1 1DU DG1 1DX DG1 1EA DG1 1EB DG1 1ED DG1 1EF DG1 1EG DG1 1EH DG1 1EJ DG1 1EL DG1 1ET DG1 1EW DG1 1EX DG1 1FA DG1 1GL DG1 1GN DG1 1GP DG1 1GQ DG1 1GZ DG1 1AA DG1 1AG DG1 1BA DG1 1BD DG1 1BF DG1 1BG DG1 1BH DG1 1BJ DG1 1BL DG1 1BS DG1 1BT DG1 1BU DG1 1BW DG1 1BX DG1 1BY DG1 1BZ DG1 1DA DG1 1DB DG1 1DD DG1 1DE DG1 1HA DG1 1HB DG1 1HD DG1 1HE DG1 1HF DG1 1HH DG1 1HJ DG1 1HL DG1 1HN DG1 1HP DG1 1HR DG1 1HS DG1 1HU DG1 1HW DG1 1HX DG1 1HY DG1 1HZ DG1 1JA DG1 1JB DG1 1JD DG1 1JE DG1 1JF DG1 1JG DG1 1JL DG1 1JN DG1 1JP DG1 1JQ DG1 1JR DG1 1JU DG1 1JW DG1 1JX DG1 1JY DG1 1JZ DG1 1LG DG1 1LN DG1 1LP DG1 1LR DG1 1LS DG1 1LT DG1 1LU DG1 1LW DG1 1LX DG1 1LZ DG1 1NA DG1 1NE DG1 1NF DG1 1NH DG1 1NJ DG1 1NL DG1 1NN DG1 1NP DG10 9NT DG10 9NU DG10 9NW DG10 9NX DG10 9PA DG10 9PB DG10 9PD DG10 9PE DG10 9PF DG10 9PG DG10 9PH DG10 9PJ DG10 9PL DG10 9PN DG10 9PP DG10 9PQ DG10 9PR DG10 9PS DG10 9PT DG10 9PU DG10 9PW DG10 9PX DG10 9PY DG10 9PZ DG10 9QA DG10 9QB DG10 9QF DG10 9QG DG10 9QH DG10 9QJ DG1 1NQ DG1 1NR DG1 1NS DG1 1NT DG1 1NW DG1 1NY DG1 1NZ DG1 1PA DG1 1PB DG1 1PD DG1 1PE DG1 1PF DG1 1PG DG1 1PJ DG1 1PL DG1 1PP DG1 1PW DG1 1PX DG1 1PZ DG1 1QA DG1 1QB DG1 1QD DG1 1QE DG1 1QF DG1 1QG DG1 1QH DG1 1QJ DG1 1QL DG1 1QN DG1 1QP DG1 1QQ DG1 1QR DG1 1QS DG1 1QU DG1 1QW DG1 1QX DG1 1QY DG1 1QZ DG1 1RA DG1 1RB DG1 1RD DG1 1RE DG1 1RF DG1 1RG DG1 1RH DG1 1RJ DG1 1RL DG1 1RN DG1 1RP DG1 1RQ DG1 1RR DG1 1RS DG1 1RT DG1 1RU DG1 1RX DG1 1RY DG1 1RZ DG1 1SA DG1 1SD DG1 1SE DG1 1SF DG1 1SG DG1 1SH DG1 1SJ DG1 1SL DG1 1SP DG1 1SQ DG1 1SR DG1 1SS DG1 1ST DG1 1SU DG1 1SW DG1 1SX DG1 1SY DG1 1SZ DG1 1TA DG1 1TB DG1 1TD DG1 1TE DG1 1TF DG1 1TG DG1 1TH DG1 1TN DG1 1TP DG1 1TQ DG1 1TR DG1 1TS DG1 1TT DG1 1TU DG1 1TW DG1 1TX DG1 1TY DG1 1TZ DG1 1UA DG1 1UB DG1 1UD DG1 1UF DG1 1UG DG1 1UH DG1 1UJ DG1 1UL DG1 1UN DG1 1UP DG1 1UQ DG1 1UR DG1 1US DG1 1UT DG1 1UU DG1 1UW DG1 1UX DG1 1UY DG1 1UZ DG1 1WD DG1 1XA DG1 1XB DG1 1XD DG1 1XE DG1 1XF DG1 1XG DG1 1XH DG1 1XJ DG1 1XL DG1 1XN DG1 1XP DG1 1XQ DG1 1XR DG1 1XS DG1 1XW DG1 2AA DG1 2AB DG1 2AD DG1 2AG DG1 2AH DG1 2AL DG1 2AN DG1 2AP DG1 2AT DG1 2AW DG1 2AX DG1 2BA DG1 2BD DG1 2BG DG1 2BH DG1 2BJ DG1 2BN DG1 2BQ DG1 2BS DG1 2BT DG1 2BU DG1 2BY DG1 2DA DG1 2DB DG1 2DD DG1 2DE DG1 2DF DG1 2DL DG1 2DN DG1 2DP DG1 2DR DG1 2DS DG1 2DT DG1 2DU DG1 2DX DG1 2DY DG1 2DZ DG1 2EB DG1 2ED DG1 2EE DG1 2EF DG1 2EJ DG1 2EL DG1 2EN DG1 2EP DG1 2EQ DG1 2ER DG1 2ET DG1 2EU DG1 2EW DG1 2EX DG1 2EY DG1 2EZ DG1 2GB DG1 2HA DG1 2HB DG1 2HD DG1 2HE DG1 2HF DG1 2HG DG1 2HH DG1 2HJ DG1 2HL DG1 2HN DG1 2HP DG1 2HQ DG1 2HR DG1 2HS DG1 2HT DG1 2HU DG1 2JA DG1 2JB DG1 2JD DG1 2JE DG1 2JF DG1 2JG DG1 2JH DG1 2JJ DG1 2JL DG1 2JN DG1 2JP DG1 2JQ DG1 2JR DG1 2JS DG1 2JT DG1 2JU DG1 2JW DG1 2JX DG1 2JY DG1 2JZ DG1 2LA DG1 2LB DG1 2LE DG1 2LF DG1 2LH DG1 2LJ DG1 2LL DG1 2LP DG1 2LQ DG1 2LR DG1 2LS DG1 2LT DG1 2LU DG1 2LX DG1 2LZ DG1 2NJ DG1 2NN DG1 2NP DG1 2NS DG1 2NT DG1 2NU DG1 2NX DG1 2NZ DG1 2PA DG1 2PB DG1 2PE DG1 2PF DG1 2PG DG1 2PH DG1 2PJ DG1 2PL DG1 2PN DG1 2PP DG1 2PQ DG1 2PR DG1 2PS DG1 2PW DG1 2PX DG1 2PY DG1 2PZ DG1 2QB DG1 2QD DG1 2QE DG1 2QF DG1 2QG DG1 2QH DG1 2QL DG1 2QN DG1 2QP DG1 2QQ DG1 2QR DG1 2QS DG1 2QT DG1 2RA DG1 2RB DG1 2RE DG1 2RF DG1 2RL DG1 2RN DG1 2RP DG1 2RQ DG1 2RR DG1 2RS DG1 2RT DG1 2RU DG1 2RW DG1 2RX DG1 2RY DG1 2RZ DG1 2SA DG1 2SD DG1 2SG DG1 2SH DG1 2YA DG1 3AB DG1 3AD DG1 3AE DG1 3AG DG1 3AH DG1 3AJ DG1 3AL DG1 3AN DG1 3AP DG1 3AQ DG1 3AR DG1 3AS DG1 3AT DG1 3AU DG1 3AW DG1 3AX DG1 3AY DG1 3AZ DG1 3BA DG1 3BB DG1 3BD DG1 3BE DG1 3BH DG1 3BJ DG1 3BL DG1 3BN DG1 3BP DG1 3BQ DG1 3BW DG1 3BX DG1 3BY DG1 3BZ DG1 3DA DG1 3DB DG1 3DD DG1 3DF DG1 3DG DG1 3DJ DG1 3DL DG1 3DN DG1 3DP DG1 3DQ DG1 3DR DG1 3DS DG1 3DT DG1 3DU DG1 3DW DG1 3DY DG1 3EB DG1 3ED DG1 3EE DG1 3EF DG1 3EG DG1 3EJ DG1 3EN DG1 3EP DG1 3EQ DG1 3ES DG1 3ET DG1 3EU DG1 3EW DG1 3EX DG1 3EY DG1 3EZ DG1 3FB DG1 3FD DG1 3FE DG1 3FF DG1 3FG DG1 3FL DG1 3FN DG1 3FP DG1 3FQ DG1 3FS DG1 3FT DG1 3FW DG1 3FX DG1 3FY DG1 3FZ DG1 3GA DG1 3GB DG1 3GD DG1 3GE DG1 3GG DG1 3GR DG1 3GS DG1 3GT DG1 3GU DG1 3HA DG1 3HB DG1 3HE DG1 3HF DG1 3HG DG1 3HH DG1 3HJ DG1 3HN DG1 3HP DG1 3HQ DG1 3HR DG1 3HS DG1 3HT DG1 3HU DG1 3HW DG1 3HX DG1 3HZ DG1 3JA DG1 3JB DG1 3JD DG1 3JE DG1 3JF DG1 3JG DG1 3JH DG1 3JJ DG1 3JN DG1 3JP DG1 3JQ DG1 3JR DG1 3JS DG1 3JU DG1 3JX DG1 3JY DG1 3JZ DG1 3LB DG1 3LD DG1 3LG DG1 3LH DG1 3LJ DG1 3LL DG1 3LN DG1 3LP DG1 3LQ DG1 3LR DG1 3LS DG1 3LT DG1 3LU DG1 3LW DG1 3LX DG1 3LY DG1 3LZ DG1 3NA DG1 3NB DG1 3ND DG1 3NE DG1 3NF DG1 3NG DG1 3NH DG1 3NJ DG1 3NL DG1 3NN DG1 3NP DG1 3NQ DG1 3NR DG1 3NS DG1 3NT DG1 3NU DG1 3NW DG1 3NX DG1 3NY DG1 3NZ DG1 3PA DG1 3PB DG1 3PD DG1 3PE DG1 3PF DG1 3PG DG1 3PH DG1 3PJ DG1 3PL DG1 3PN DG1 3PP DG1 3PQ DG1 3PR DG1 3PS DG1 3PT DG1 3PU DG1 3PW DG1 3PX DG1 3PY DG1 3QA DG1 3QB DG1 3QD DG1 3QE DG1 3QF DG1 3QG DG1 3QH DG1 3QJ DG1 3QL DG1 3QN DG1 3QP DG1 3QR DG1 3QS DG1 3QT DG1 3QU DG1 3QW DG1 3QX DG1 3QY DG1 3RA DG1 3RB DG1 3RD DG1 3RE DG1 3RF DG1 3RG DG1 3RH DG1 3RJ DG1 3RL DG1 3RN DG1 3RP DG1 3RQ DG1 3RR DG1 3RS DG1 3RT DG1 3RU DG1 3RW DG1 3RX DG1 3RY DG1 3RZ DG1 3SA DG1 3SB DG1 3SD DG1 3SE DG1 3SF DG1 3SG DG1 3SJ DG1 3SL DG1 3SN DG1 3SP DG1 3SQ DG1 3SR DG1 3SS DG1 3ST DG1 3SU DG1 3SW DG1 3SY DG1 3SZ DG1 3TA DG1 3TE DG1 3TF DG1 3TG DG1 3TH DG1 3TJ DG1 3TL DG1 3UQ DG1 3UT DG1 3UU DG1 3UX DG1 3UY DG1 3YH DG1 4AA DG1 4AB DG1 4AD DG1 4AE DG1 4AF DG1 4AG DG1 4AH DG1 4AJ DG1 4AL DG1 4AN DG1 4AP DG1 4AQ DG1 4AR DG1 4AS DG1 4AT DG1 4AW DG1 4AX DG1 4AY DG1 4AZ DG1 4BA DG1 4BB DG1 4BD DG1 4BE DG1 4BG DG1 4BH DG1 4BJ DG1 4BL DG1 4BN DG1 4BP DG1 4BQ DG1 4BS DG1 4BT DG1 4BU DG1 4BW DG1 4BX DG1 4BY DG1 4BZ DG1 4DA DG1 4DB DG1 4DD DG1 4DE DG1 4DF DG1 4DG DG1 4DH DG1 4DJ DG1 4DL DG1 4DN DG1 4DP DG1 4DQ DG1 4DR DG1 4DS DG1 4DT DG1 4DU DG1 4DW DG1 4DX DG1 4DY DG1 4DZ DG1 4EA DG1 4EB DG1 4ED DG1 4EE DG1 4EF DG1 4EG DG1 4EH DG1 4EJ DG1 4EN DG1 4EP DG1 4EQ DG1 4ER DG1 4ES DG1 4ET DG1 4EU DG1 4EW DG1 4EX DG1 4EY DG1 4EZ DG1 4FD DG1 4FF DG1 4GA DG1 4GB DG1 4GD DG1 4GE DG1 4GG DG1 4GW DG1 4GX DG1 4GY DG1 4GZ DG1 4HA DG1 4HB DG1 4HD DG1 4HE DG1 4HF DG1 4HG DG1 4HH DG1 4HJ DG1 4HL DG1 4HN DG1 4HP DG1 4HQ DG1 4HR DG1 4HS DG1 4HT DG1 4HU DG1 4HW DG1 4HX DG1 4HY DG1 4HZ DG1 4JA DG1 4JB DG1 4JE DG1 4JF DG1 4JG DG1 4JH DG1 4JJ DG1 4JL DG1 4JN DG1 4JP DG1 4JQ DG1 4JR DG1 4JS DG1 4JT DG1 4JU DG1 4JW DG1 4JX DG1 4XN DG1 4XP DG1 4XQ DG1 4XR DG1 4XS DG1 4XT DG1 4XU DG1 4XW DG1 4XX DG1 4XY DG1 4XZ DG1 4YA DG1 4YB DG1 4YD DG1 4YE DG1 4YG DG1 4YH DG1 4YJ DG1 4JY DG1 4JZ DG1 4LA DG1 4LB DG1 4LD DG1 4LE DG1 4LF DG1 4LG DG1 4LH DG1 4LJ DG1 4LL DG1 4LN DG1 4LP DG1 4LQ DG1 4LR DG1 4LS DG1 4LT DG1 4LU DG1 4LW DG1 4LX DG1 4LY DG1 4LZ DG1 4NA DG1 4NB DG1 4ND DG1 4NE DG1 4NF DG1 4NG DG1 4NH DG1 4NJ DG1 4NL DG1 4NN DG1 4NP DG1 4NQ DG1 4NR DG1 4NS DG1 4NT DG1 4NU DG1 4NW DG1 4NX DG1 4NY DG1 4NZ DG1 4PA DG1 4PB DG1 4PD DG1 4PE DG1 4PF DG1 4PG DG1 4PH DG1 4PJ DG1 4PL DG1 4PN DG1 4PP DG1 4PQ DG1 4PR DG1 4PS DG1 4PT DG1 4PU DG1 4PW DG1 4PX DG1 4PY DG1 4PZ DG1 4QA DG1 4QB DG1 4QD DG1 4QE DG1 4QF DG1 4QG DG1 4QH DG1 4QJ DG1 4QL DG1 4QN DG1 4QP DG1 4QQ DG1 4QR DG1 4QS DG1 4QT DG1 4QU DG1 4QW DG1 4QX DG1 4QY DG1 4QZ DG1 4RA DG1 4RB DG1 4RD DG1 4RE DG1 4RF DG1 4RG DG1 4RH DG1 4RJ DG1 4RL DG1 4RN DG1 4RP DG1 4RQ DG1 4RR DG1 4RS DG1 4RT DG1 4RU DG1 4RW DG1 4RX DG1 4RY DG1 4RZ DG1 4SA DG1 4SB DG1 4SD DG1 4SE DG1 4SF DG1 4SG DG1 4SH DG1 4SJ DG1 4SL DG1 4SN DG1 4SP DG1 4SQ DG1 4SR DG1 4ST DG1 4SU DG1 4SW DG1 4SX DG1 4SY DG1 4TA DG1 4TB DG1 4TD DG1 4TE DG1 4TF DG1 4TG DG1 4TH DG1 4TJ DG1 4TL DG1 4TN DG1 4TP DG1 4TQ DG1 4TR DG1 4TS DG1 4TT DG1 4TU DG1 4TW DG1 4TX DG1 4TY DG1 4TZ DG1 4UA DG1 4UB DG1 4UD DG1 4UE DG1 4UF DG1 4UG DG1 4UH DG1 4UJ DG1 4UL DG1 4UN DG1 4UP DG1 4UQ DG1 4UR DG1 4UT DG1 4UU DG1 4UW DG1 4UX DG1 4UY DG1 4UZ DG1 4XA DG1 4XB DG1 4XD DG1 4XE DG1 4XF DG1 4XG DG1 4XH DG1 4XJ DG1 4XL DG1 4YL DG1 4YS DG1 4YT DG1 4YU DG1 4YX DG1 4YY DG10 9ER DG10 9ES DG10 9ET DG10 9EU DG10 9EX DG10 9EY DG11 1DH DG11 1DJ DG11 1DL DG11 1DN DG11 1DP DG11 1DQ DG11 1DR DG11 1DS DG11 1DT DG11 1DU DG11 1DW DG11 1DX DG11 1DY DG11 1DZ DG11 1EA DG11 1EG DG11 1EH DG11 1EJ DG11 1EL DG11 1EN DG11 1EP DG11 1EQ DG11 1ER DG11 1ES DG11 1ET DG11 1EU DG11 1EW DG11 1EX DG11 1EY DG11 1GA DG11 1GB DG11 1GD DG11 1GE DG11 1GF DG11 1HA DG11 1HB DG1 4YZ DG1 4ZD DG1 4ZE DG1 4ZF DG1 4ZJ DG1 4ZL DG1 4ZN DG1 4ZS DG1 4ZW DG1 4ZZ DG1 9AD DG1 9AR DG1 9DF DG1 9DG DG1 9DL DG1 9DP DG1 9DQ DG1 9DS DG1 9DT DG1 9SA DG1 9SB DG1 9SD DG1 9SE DG1 9SF DG1 9SG DG1 9SH DG1 9SJ DG1 9SL DG1 9SN DG1 9SP DG1 9SQ DG1 9SR DG1 9SS DG1 9ST DG1 9SU DG1 9SW DG1 9SX DG1 9SY DG1 9SZ DG1 9TA DG1 9TB DG1 9TD DG1 9TE DG1 9TF DG1 9TG DG1 9TH DG1 9TJ DG1 9TL DG1 9TN DG1 9TP DG1 9TQ DG1 9TR DG1 9TS DG1 9TT DG1 9TU DG1 9TW DG1 9TX DG1 9TY DG1 9TZ DG1 9UA DG1 9UB DG1 9UD DG1 9UE DG1 9UF DG1 9UG DG1 9UH DG1 9UJ DG1 9UL DG1 9UN DG1 9UP DG1 9UQ DG1 9UR DG1 9US DG1 9UT DG1 9UU DG1 9UW DG1 9UX DG1 9UY DG1 9UZ DG10 9AA DG10 9AB DG10 9AD DG10 9AE DG10 9AG DG10 9AH DG10 9AJ DG10 9AL DG10 9AN DG10 9AP DG10 9AQ DG10 9AR DG10 9AS DG10 9AT DG10 9AW DG10 9AX DG10 9AY DG10 9AZ DG10 9BA DG10 9BB DG10 9BD DG10 9BE DG10 9BF DG10 9BG DG10 9BH DG10 9BJ DG10 9BL DG10 9BN DG10 9BP DG10 9BQ DG10 9BS DG10 9BT DG10 9BU DG10 9BW DG10 9BX DG10 9BY DG10 9BZ DG10 9DA DG10 9DB DG10 9DD DG10 9DE DG10 9DF DG10 9DG DG10 9DH DG10 9DJ DG10 9DL DG10 9DN DG10 9DP DG10 9DR DG10 9DS DG10 9DT DG10 9DU DG10 9DW DG10 9DX DG10 9DY DG10 9EA DG10 9EB DG10 9ED DG10 9EE DG10 9EF DG10 9EG DG10 9EH DG10 9EJ DG10 9EL DG10 9EP DG10 9EZ DG10 9HA DG10 9HB DG10 9HD DG10 9HE DG10 9HF DG10 9HG DG10 9HH DG10 9HJ DG10 9HL DG10 9HN DG10 9HP DG10 9HQ DG10 9HR DG10 9HS DG10 9HT DG10 9HU DG10 9HW DG10 9HX DG10 9HY DG10 9HZ DG10 9JA DG10 9JB DG10 9JD DG10 9JE DG10 9JF DG10 9JG DG10 9JH DG10 9JJ DG10 9JL DG10 9JN DG10 9JP DG10 9JQ DG10 9JT DG10 9JU DG10 9JW DG10 9JX DG10 9JY DG10 9JZ DG10 9LA DG10 9LB DG10 9LD DG10 9LE DG10 9LF DG10 9LG DG10 9LH DG10 9LJ DG10 9LL DG10 9LN DG10 9LP DG10 9LQ DG10 9LR DG10 9LS DG10 9LT DG10 9LU DG10 9LX DG10 9LY DG10 9LZ DG10 9NA DG10 9NB DG10 9ND DG10 9NE DG10 9NF DG10 9NG DG10 9NH DG10 9NJ DG10 9NL DG10 9NN DG10 9NP DG10 9NR DG10 9QL DG10 9QN DG10 9QP DG10 9QQ DG10 9QR DG10 9QS DG10 9QT DG10 9QU DG10 9QW DG10 9QX DG10 9QZ DG10 9RA DG10 9RB DG10 9RD DG10 9RE DG10 9RF DG10 9RG DG10 9RH DG10 9RJ DG10 9RL DG10 9RN DG10 9RQ DG10 9RR DG10 9RS DG10 9RT DG10 9RU DG10 9RX DG10 9RY DG10 9RZ DG10 9SA DG10 9SB DG10 9SD DG10 9SE DG10 9SF DG10 9SG DG10 9SH DG10 9SJ DG10 9SL DG10 9SN DG10 9SP DG10 9SQ DG10 9SR DG10 9ST DG10 9SW DG10 9WT DG11 1AA DG11 1AB DG11 1AD DG11 1AE DG11 1AF DG11 1AG DG11 1AH DG11 1AJ DG11 1AL DG11 1AN DG11 1AP DG11 1AQ DG11 1AR DG11 1AS DG11 1AT DG11 1AU DG11 1AW DG11 1AX DG11 1AY DG11 1AZ DG11 1BA DG11 1BB DG11 1BD DG11 1BE DG11 1BG DG11 1BJ DG11 1BL DG11 1BN DG11 1BP DG11 1BS DG11 1BT DG11 1BU DG11 1BW DG11 1BX DG11 1BY DG11 1BZ DG11 1DA DG11 1DB DG11 1DD DG11 1DE DG11 1DF DG11 1DG DG11 1HD DG11 1HE DG11 1HF DG11 1HG DG11 1HH DG11 1HJ DG11 1HL DG11 1HN DG11 1HP DG11 1HQ DG11 1HR DG11 1HS DG11 1HW DG11 1HY DG11 1HZ DG11 1JA DG11 1JB DG11 1JD DG11 2BA DG11 2BB DG11 2BD DG11 2BE DG11 2BF DG11 2BG DG11 2BH DG11 2BJ DG11 2BL DG11 2BP DG11 2BQ DG11 2BT DG11 2BU DG11 2BX DG11 2BY DG11 2DA DG11 2DB DG11 2DE DG11 2SB DG11 2SD DG11 2SE DG11 2SF DG11 2SG DG11 2SH DG11 2SJ DG11 2SL DG11 2SQ DG11 2SS DG11 2UA DG11 3AA DG11 1JE DG11 1JF DG11 1JG DG11 1JH DG11 1JJ DG11 1JL DG11 1JN DG11 1JP DG11 1JQ DG11 1JR DG11 1JS DG11 1JT DG11 1JU DG11 1JW DG11 1JX DG11 1JY DG11 1JZ DG11 1LA DG11 1LB DG11 1LD DG11 1LE DG11 1LG DG11 1LH DG11 1LJ DG11 1LL DG11 1LN DG11 1LP DG11 1LQ DG11 1LR DG11 1LS DG11 1LT DG11 1LU DG11 1LW DG11 1LX DG11 1LY DG11 1LZ DG11 1NA DG11 1NB DG11 1ND DG11 1NE DG11 1NF DG11 1NG DG11 1NH DG11 1NJ DG11 1NL DG11 1NN DG11 1NP DG11 1NQ DG11 1NR DG11 1NS DG11 1NT DG11 1NU DG11 1NW DG11 1NX DG11 1NY DG11 1NZ DG11 1PA DG11 1PB DG11 1PD DG11 1PE DG11 1PF DG11 1PG DG11 1PH DG11 1PJ DG11 1PL DG11 1PN DG11 1PP DG11 1PQ DG11 1PR DG11 1PS DG11 1PT DG11 1PU DG11 1PW DG11 1PX DG11 1PY DG11 1PZ DG11 1QA DG11 1QB DG11 1QD DG11 1QE DG11 1QF DG11 1QG DG11 1QH DG11 1QJ DG11 1QL DG11 1QN DG11 1QP DG11 1QQ DG11 1QR DG11 1QS DG11 1QT DG11 1QU DG11 1QW DG11 1QX DG11 1QY DG11 1QZ DG11 1RA DG11 1RB DG11 1RD DG11 1RE DG11 1RF DG11 1RG DG11 1RH DG11 1RJ DG11 1RL DG11 1RN DG11 1RP DG11 1RQ DG11 1RR DG11 1RS DG11 1RT DG11 1RU DG11 1RW DG11 1RX DG11 1RY DG11 1RZ DG11 1SA DG11 1SB DG11 1SE DG11 1SF DG11 1SG DG11 1SH DG11 1SJ DG11 1SN DG11 1SP DG11 1SQ DG11 1SR DG11 1SS DG11 1ST DG11 1SU DG11 1SW DG11 1SX DG11 1SY DG11 1SZ DG11 1TA DG11 1TB DG11 1TD DG11 1TE DG11 1TF DG11 1TG DG11 1TH DG11 1TJ DG11 1TL DG11 1TN DG11 1TP DG11 1TQ DG11 1TR DG11 1TS DG11 1TT DG11 1TU DG11 1TW DG11 1TX DG11 1TY DG11 1TZ DG11 1UB DG11 1UD DG11 1UE DG11 1UG DG11 1WP DG11 1WR DG11 2AA DG11 2AB DG11 2AD DG11 2AE DG11 2AF DG11 2AG DG11 2AH DG11 2AJ DG11 2AL DG11 2AN DG11 2AP DG11 2AQ DG11 2AR DG11 2AS DG11 2AT DG11 2AU DG11 2AW DG11 2AX DG11 2AY DG11 2AZ DG11 2DF DG11 2DG DG11 2DH DG11 2DJ DG11 2DL DG11 2DN DG11 2DP DG11 2DQ DG11 2DR DG11 2DS DG11 2DT DG11 2DU DG11 2DW DG11 2DX DG11 2DY DG11 2DZ DG11 2EA DG11 2EB DG11 2ED DG11 2EE DG11 2EF DG11 2EG DG11 2EH DG11 2EJ DG11 2EL DG11 2EN DG11 2EP DG11 2ER DG11 2ES DG11 2ET DG11 2EU DG11 2EW DG11 2EX DG11 2EY DG11 2EZ DG11 2FA DG11 2FB DG11 2FD DG11 2FE DG11 2FF DG11 2FG DG11 2FH DG11 2GA DG11 2GB DG11 2GD DG11 2GZ DG11 2HA DG11 2HB DG11 2HE DG11 2HF DG11 2HG DG11 2HH DG11 2HJ DG11 2HL DG11 2HN DG11 2HP DG11 2HQ DG11 2HR DG11 2HT DG11 2HU DG11 2HW DG11 2HX DG11 2HY DG11 2HZ DG11 2JA DG11 2JB DG11 2JD DG11 2JE DG11 2JF DG11 2JG DG11 2JH DG11 2JJ DG11 2JL DG11 2JP DG11 2JQ DG11 2JR DG11 2JS DG11 2JT DG11 2JU DG11 2JX DG11 2JY DG11 2JZ DG11 2LA DG11 2LB DG11 2LD DG11 2LE DG11 2LF DG11 2LG DG11 2LH DG11 2LJ DG11 2LL DG11 2LN DG11 2LP DG11 2LQ DG11 2LR DG11 2LS DG11 2LU DG11 2LW DG11 2LX DG11 2LY DG11 2LZ DG11 2NA DG11 2NB DG11 2ND DG11 2NE DG11 2NF DG11 2NG DG11 2NH DG11 2NJ DG11 2NL DG11 2NN DG11 2NP DG11 2NQ DG11 2NR DG11 2NS DG11 2NT DG11 2NU DG11 2NW DG11 2NX DG11 2NY DG11 2NZ DG11 2PA DG11 2PB DG11 2PD DG11 2PE DG11 2PF DG11 2PG DG11 2PH DG11 2PJ DG11 2PL DG11 2PN DG11 2PP DG11 2PQ DG11 2PR DG11 2PS DG11 2PT DG11 2PU DG11 2PW DG11 2PX DG11 2PY DG11 2PZ DG11 2QA DG11 2QB DG11 2QD DG11 2QE DG11 2QF DG11 2QG DG11 2QH DG11 2QJ DG11 2QL DG11 2QN DG11 2QP DG11 2QQ DG11 2QR DG11 2QS DG11 2QT DG11 2QU DG11 2QW DG11 2QX DG11 2QY DG11 2QZ DG11 2RA DG11 2RB DG11 2RF DG11 2RG DG11 2RH DG11 2RJ DG11 2RL DG11 2RN DG11 2RP DG11 2RQ DG11 2RR DG11 2RS DG11 2RT DG11 2RU DG11 2RW DG11 2RX DG11 2RY DG11 2RZ DG11 2SA DG11 3AB DG11 3AD DG11 3AE DG11 3AF DG11 3AG DG11 3AH DG11 3AJ DG11 3AL DG11 3AN DG11 3AP DG11 3AQ DG11 3AR DG11 3AS DG11 3AT DG11 3AU DG11 3AW DG11 3AX DG11 3AY DG11 3AZ DG11 3BA DG11 3BB DG11 3BD DG11 3BE DG11 3BF DG11 3BG DG11 3BH DG11 3BJ DG11 3BL DG11 3BN DG11 3BQ DG11 3BT DG11 3BU DG11 3BX DG11 3BY DG11 3BZ DG11 3DA DG11 3DB DG11 3DD DG11 3DE DG11 3DF DG11 3DG DG11 3DH DG11 3DJ DG11 3DL DG11 3DN DG11 3DP DG11 3DQ DG11 3DR DG11 3DS DG11 3DT DG11 3DU DG11 3DW DG11 3DX DG11 3DY DG11 3DZ DG11 3EA DG11 3EB DG11 3ED DG11 3EE DG11 3EF DG11 3EG DG11 3EH DG11 3EJ DG11 3EL DG11 3EN DG11 3EP DG11 3EQ DG11 3ER DG11 3ES DG11 3ET DG11 3EU DG11 3EW DG11 3EX DG11 3EY DG11 3EZ DG11 3FW DG11 3HA DG11 3HB DG11 3HD DG11 3HE DG11 3HF DG11 3HG DG11 3HH DG11 3HJ DG11 3HL DG11 3HN DG11 3HP DG11 3HQ DG11 3HR DG11 3HT DG11 3HW DG11 3JA DG11 3JB DG11 3JD DG11 3JE DG11 3JF DG11 3JG DG11 3JH DG11 3JJ DG11 3JL DG11 3JN DG11 3JP DG11 3JQ DG11 3JR DG11 3JS DG11 3JT DG11 3JU DG11 3JW DG11 3JX DG11 3JY DG11 3JZ DG11 3LE DG11 3LG DG11 3LH DG11 3LJ DG11 3LL DG11 3LN DG11 3LP DG11 3LQ DG11 3LR DG11 3LS DG11 3LT DG11 3LU DG11 3LW DG11 3LX DG11 3LY DG11 3LZ DG11 3NA DG11 3NB DG11 3ND DG11 3NE DG11 3NF DG11 3NG DG11 3NH DG11 3NJ DG11 3NL DG11 3NN DG11 3NQ DG11 3NS DG11 3NT DG11 3NU DG11 3NX DG11 3NY DG11 3NZ DG11 3PA DG11 3PB DG11 3PD DG11 3PE DG11 3PF DG11 3PG DG11 3PH DG12 5RA DG12 5RB DG12 5RD DG12 5RE DG12 5RF DG12 5RG DG12 5RH DG12 5RJ DG12 5RL DG12 5RN DG12 5RP DG12 5RQ DG12 5RR DG12 5RS DG12 5RT DG12 5YB DG12 6AA DG12 6AB DG12 6AD DG12 6AG DG12 6AJ DG12 6AL DG12 6AN DG12 6AP DG12 6AQ DG12 6AR DG12 6AS DG12 6AT DG12 6AU DG12 6AW DG12 6AY DG12 6AZ DG12 6BA DG12 6BB DG12 6BD DG12 6BE DG12 6BF DG12 6BG DG12 6BH DG12 6BJ DG12 6BN DG12 6BQ DG12 6BR DG12 6BS DG12 6BT DG12 6BU DG11 3PJ DG11 3PL DG11 3PN DG11 3PP DG11 3PQ DG11 3PR DG11 3PW DG11 3PZ DG11 3YE DG11 9AB DG12 5AA DG12 5AB DG12 5AD DG12 5AE DG12 5AG DG12 5AH DG12 5AJ DG12 5AL DG12 5AN DG12 5AP DG12 5AQ DG12 5AR DG12 5AS DG12 5AT DG12 5AU DG12 5AW DG12 5AX DG12 5AY DG12 5AZ DG12 5BA DG12 5BB DG12 5BD DG12 5BE DG12 5BG DG12 5BH DG12 5BJ DG12 5BL DG12 5BN DG12 5BP DG12 5BQ DG12 5BW DG12 5DA DG12 5DB DG12 5DD DG12 5DE DG12 5DF DG12 5DG DG12 5DH DG12 5DJ DG12 5DL DG12 5DN DG12 5DP DG12 5DQ DG12 5DR DG12 5DS DG12 5DT DG12 5DU DG12 5DW DG12 5DX DG12 5DY DG12 5DZ DG12 5EA DG12 5EB DG12 5ED DG12 5EE DG12 5EF DG12 5EG DG12 5EH DG12 5EJ DG12 5EL DG12 5EN DG12 5EP DG12 5EQ DG12 5ER DG12 5ES DG12 5ET DG12 5EU DG12 5EW DG12 5EX DG12 5EY DG12 5EZ DG12 5FB DG12 5GZ DG12 5HA DG12 5HB DG12 5HD DG12 5HE DG12 5HF DG12 5HG DG12 5HH DG12 5HJ DG12 5HL DG12 5HN DG12 5HP DG12 5HQ DG12 5HR DG12 5HS DG12 5HT DG12 5HU DG12 5HW DG12 5HX DG12 5HY DG12 5HZ DG12 5JA DG12 5JB DG12 5JD DG12 5JE DG12 5JF DG12 5JG DG12 5JH DG12 5JJ DG12 5JL DG12 5JN DG12 5JP DG12 5JQ DG12 5JR DG12 5JS DG12 5JT DG12 5JU DG12 5JW DG12 5JX DG12 5JY DG12 5JZ DG12 5LA DG12 5LB DG12 5LD DG12 5LF DG12 5LH DG12 5LJ DG12 5LL DG12 5LN DG12 5LP DG12 5LQ DG12 5LR DG12 5LS DG12 5LT DG12 5LU DG12 5LW DG12 5LX DG12 5LY DG12 5LZ DG12 5NA DG12 5NB DG12 5ND DG12 5NE DG12 5NF DG12 5NG DG12 5NH DG12 5NJ DG12 5NL DG12 5NN DG12 5NP DG12 5NQ DG12 5NS DG12 5NW DG12 5NX DG12 5NY DG12 5NZ DG12 5PA DG12 5PB DG12 5PD DG12 5PE DG12 5PF DG12 5PG DG12 5PH DG12 5PJ DG12 5PL DG12 5PN DG12 5PQ DG12 5PR DG12 5PS DG12 5PT DG12 5PU DG12 5PW DG12 5PX DG12 5PY DG12 5PZ DG12 5QA DG12 5QB DG12 5QD DG12 5QE DG12 5QF DG12 5QG DG12 5QH DG12 5QJ DG12 5QL DG12 5QN DG12 5QP DG12 5QQ DG12 5QR DG12 5QS DG12 5QT DG12 5QU DG12 5QW DG12 5QX DG12 5QY DG12 5QZ DG12 6JS DG12 6JT DG12 6JU DG12 6JW DG12 6JX DG12 6JY DG12 6LA DG12 6LB DG12 6LD DG12 6LE DG12 6LF DG12 6LG DG12 6LH DG12 6LL DG12 6LN DG12 6LP DG12 6LQ DG12 6LR DG12 6LS DG12 6LT DG12 6LU DG12 6LW DG12 6LX DG12 6LY DG12 6LZ DG12 6NA DG12 6NB DG12 6ND DG12 6NF DG12 6NG DG12 6NH DG12 6NJ DG12 6NL DG12 6NN DG12 6NQ DG12 6NR DG12 6NS DG12 6NT DG12 6NU DG12 6BW DG12 6BX DG12 6BY DG12 6BZ DG12 6DA DG12 6DB DG12 6DD DG12 6DE DG12 6DF DG12 6DG DG12 6DH DG12 6DJ DG12 6DL DG12 6DP DG12 6DQ DG12 6DR DG12 6DS DG12 6DT DG12 6DU DG12 6DW DG12 6DX DG12 6DY DG12 6DZ DG12 6EA DG12 6EB DG12 6ED DG12 6EE DG12 6EF DG12 6EG DG12 6EH DG12 6EJ DG12 6EL DG12 6EN DG12 6EP DG12 6EQ DG12 6ER DG12 6ES DG12 6ET DG12 6EU DG12 6EW DG12 6EX DG12 6EY DG12 6EZ DG12 6FB DG12 6FD DG12 6FE DG12 6FF DG12 6GA DG12 6GB DG12 6GN DG12 6GS DG12 6GT DG12 6GY DG12 6HA DG12 6HB DG12 6HD DG12 6HE DG12 6HF DG12 6HG DG12 6HH DG12 6HJ DG12 6HL DG12 6HN DG12 6HP DG12 6HQ DG12 6HR DG12 6HT DG12 6HU DG12 6HW DG12 6HX DG12 6HY DG12 6HZ DG12 6JB DG12 6JD DG12 6JE DG12 6JF DG12 6JG DG12 6JH DG12 6JJ DG12 6JL DG12 6JN DG12 6JP DG12 6JQ DG12 6JR DG12 6RN DG12 6RP DG12 6RQ DG12 6RR DG12 6RS DG12 6RU DG12 6RW DG12 6RX DG12 6RY DG12 6RZ DG12 6SA DG12 6SB DG12 6SD DG12 6SE DG12 6SF DG12 6SG DG12 6SH DG12 6SJ DG12 6SL DG12 6SN DG12 6SP DG12 6SQ DG12 6SR DG12 6SS DG12 6ST DG12 6SU DG12 6SW DG12 6NW DG12 6NX DG12 6NY DG12 6NZ DG12 6PA DG12 6PB DG12 6PD DG12 6PE DG12 6PF DG12 6PG DG12 6PH DG12 6PJ DG12 6PN DG12 6PP DG12 6PQ DG12 6PR DG12 6PS DG12 6PT DG12 6PU DG12 6PW DG12 6PX DG12 6PY DG12 6PZ DG12 6QA DG12 6QB DG12 6QD DG12 6QE DG12 6QF DG12 6QG DG12 6QH DG12 6QJ DG12 6QN DG12 6QP DG12 6QQ DG12 6QR DG12 6QS DG12 6QT DG12 6QU DG12 6QW DG12 6QX DG12 6QY DG12 6QZ DG12 6RA DG12 6RB DG12 6RD DG12 6RF DG12 6RG DG12 6RH DG12 6RJ DG12 6RL DG13 0BQ DG13 0DG DG13 0DH DG13 0DJ DG13 0DL DG13 0DN DG13 0DP DG13 0DQ DG13 0DR DG13 0DS DG13 0DT DG13 0DU DG13 0DW DG13 0DX DG13 0DY DG13 0DZ DG13 0EA DG13 0EB DG13 0EE DG13 0EF DG13 0EG DG13 0EH DG13 0EJ DG13 0EN DG12 6SX DG12 6SY DG12 6SZ DG12 6TB DG12 6TD DG12 6TE DG12 6TF DG12 6TG DG12 6TH DG12 6TJ DG12 6TL DG12 6TN DG12 6TP DG12 6TQ DG12 6TR DG12 6TS DG12 6TT DG12 6TU DG12 6TW DG12 6TX DG12 6TY DG12 6YG DG12 6YL DG12 9AB DG12 9AD DG13 0AA DG13 0AB DG13 0AD DG13 0AE DG13 0AF DG13 0AG DG13 0AH DG13 0AJ DG13 0AL DG13 0AN DG13 0AP DG13 0AQ DG13 0AR DG13 0AS DG13 0AT DG13 0AU DG13 0AW DG13 0AX DG13 0AY DG13 0AZ DG13 0BA DG13 0BB DG13 0BD DG13 0BE DG13 0BF DG13 0BG DG13 0BH DG13 0BJ DG13 0BL DG13 0BN DG13 0LU DG13 0LW DG13 0ND DG13 0NE DG13 0NF DG13 0NG DG13 0NH DG13 0NJ DG13 0NL DG13 0NN DG13 0NQ DG13 0NW DG13 0NX DG13 0NY DG13 0NZ DG13 0PA DG13 0PB DG13 0PD DG13 0PE DG13 0PF DG13 0PG DG13 0PJ DG13 0PL DG13 0PN DG13 0PP DG13 0PQ DG13 0PR DG13 0PS DG13 0PT DG13 0PU DG13 0PW DG13 0PX DG13 0PZ DG13 0QF DG13 0QG DG13 0QH DG16 5EB DG16 5ED DG16 5EE DG16 5EF DG16 5EG DG16 5EH DG16 5EJ DG16 5EL DG16 5EN DG16 5EP DG16 5EQ DG16 5ER DG16 5ES DG16 5ET DG16 5EU DG16 5EW DG16 5EX DG16 5EY DG16 5EZ DG16 5FA DG16 5FB DG16 5FD DG16 5FE DG16 5FF DG16 5FZ DG16 5GA DG16 5GD DG16 5GG DG16 5HA DG16 5HB DG13 0QJ DG13 0QL DG13 0QN DG13 0QP DG13 0QQ DG13 0QR DG13 0QS DG13 0EP DG13 0EQ DG13 0ES DG13 0ET DG13 0HG DG13 0HH DG13 0HJ DG13 0HL DG13 0HN DG13 0HP DG13 0HQ DG13 0HR DG13 0HS DG13 0HT DG13 0HU DG13 0HW DG13 0HX DG13 0JD DG13 0JE DG13 0JF DG13 0JG DG13 0JH DG13 0JL DG13 0JN DG13 0JP DG13 0JQ DG13 0JR DG13 0JS DG13 0JT DG13 0JW DG13 0JX DG13 0JY DG13 0JZ DG13 0LB DG13 0LH DG13 0LJ DG13 0LL DG13 0LN DG13 0LP DG13 0LR DG13 0LS DG13 0LT DG13 0QT DG13 0QW DG14 0RA DG14 0RD DG14 0RE DG14 0RF DG14 0RL DG14 0RN DG14 0RP DG14 0RQ DG14 0RR DG14 0RS DG14 0RT DG14 0RW DG14 0RX DG14 0RY DG14 0RZ DG14 0SA DG14 0SB DG14 0SD DG14 0SE DG14 0SF DG14 0SG DG14 0SH DG14 0SQ DG14 0SY DG14 0SZ DG14 0TA DG14 0TB DG14 0TD DG14 0TE DG14 0TF DG14 0TG DG14 0TH DG14 0TJ DG14 0TL DG14 0TN DG14 0TP DG14 0TQ DG14 0TR DG14 0TS DG14 0TT DG14 0TU DG14 0TW DG14 0TX DG14 0UP DG14 0UR DG14 0UT DG14 0UU DG14 0UX DG14 0UY DG14 0WX DG14 0XA DG14 0XB DG14 0XD DG14 0XE DG14 0XF DG14 0XH DG14 0XJ DG14 0XL DG14 0XN DG14 0XP DG14 0XQ DG14 0XR DG14 0XS DG14 0XT DG14 0XU DG14 0XW DG14 0XX DG14 0XY DG14 0XZ DG14 0YA DG14 0YB DG14 0YD DG14 0YE DG14 0YF DG14 0YG DG16 5AA DG16 5AB DG16 5AD DG16 5AE DG16 5AF DG16 5AG DG16 5AH DG16 5AJ DG16 5AL DG16 5AN DG16 5AP DG16 5AQ DG16 5AR DG16 5AS DG16 5AT DG16 5AU DG16 5AW DG16 5AX DG16 5AY DG16 5AZ DG16 5BA DG16 5BB DG16 5BD DG16 5BE DG16 5BF DG16 5BG DG16 5BH DG16 5BJ DG16 5BL DG16 5BN DG16 5BP DG16 5BQ DG16 5BS DG16 5BT DG16 5BU DG16 5BW DG16 5BX DG16 5BY DG16 5BZ DG16 5DA DG16 5DB DG16 5DD DG16 5DE DG16 5DF DG16 5DG DG16 5DH DG16 5DJ DG16 5DL DG16 5DN DG16 5DP DG16 5DQ DG16 5DR DG16 5DS DG16 5DT DG16 5DU DG16 5DW DG16 5DX DG16 5DY DG16 5DZ DG16 5EA DG16 5HD DG16 5HE DG16 5HF DG16 5HG DG16 5HH DG16 5HJ DG16 5HL DG16 5HN DG16 5HP DG16 5HQ DG16 5HR DG16 5HS DG16 5HW DG16 5HX DG16 5HY DG16 5JD DG16 5JE DG16 5JF DG16 5JG DG16 5JH DG16 5JJ DG16 5JL DG16 5JN DG16 5JP DG16 5JQ DG16 5JR DG16 5JS DG16 5JT DG16 5JU DG16 5JW DG16 5JX DG16 5JY DG16 5JZ DG16 5LA DG16 5LB DG16 5LD DG16 5LE DG16 5LF DG16 5LG DG16 5LN DG16 5LQ DG16 5NA DG16 5NB DG16 5QA DG16 5QB DG16 5UP DG16 5YL DG2 0AA DG2 0AB DG2 0AD DG2 0AE DG2 0AF DG2 0AG DG2 0AH DG2 0AJ DG2 0AL DG2 0AN DG2 0AP DG2 0AQ DG2 0AR DG2 0AS DG2 0AT DG2 0AU DG2 0AW DG2 0AX DG2 0AY DG2 0AZ DG2 0BA DG2 0BB DG2 0BD DG2 0BE DG2 0BF DG2 0BG DG2 0BH DG2 0BQ DG2 0BU DG2 0BX DG2 0BY DG2 0BZ DG2 0DA DG2 0DB DG2 0DD DG2 0DE DG2 0DF DG2 0DG DG2 0DH DG2 0DJ DG2 0DL DG2 0DQ DG2 0DS DG2 0DY DG2 0DZ DG2 0EA DG2 0EB DG2 0ED DG2 0EE DG2 0EF DG2 0EG DG2 0EH DG2 0EJ DG2 0EL DG2 0EP DG2 0EQ DG2 0ER DG2 0GZ DG2 0HA DG2 0HB DG2 0HD DG2 0HE DG2 0HF DG2 0HG DG2 0HH DG2 0HJ DG2 0HL DG2 0HN DG2 0HP DG2 0HQ DG2 0HR DG2 0HS DG2 0HT DG2 0HU DG2 0HW DG2 0HX DG2 0HY DG2 0HZ DG2 0JA DG2 0JB DG2 0JD DG2 0JE DG2 0JF DG2 0JG DG2 0JH DG2 0JJ DG2 0JL DG2 0JN DG2 0JP DG2 0JQ DG2 0JR DG2 0JS DG2 0JT DG2 0JU DG2 0JW DG2 0JX DG2 0JY DG2 0JZ DG2 0LA DG2 0LB DG2 0LD DG2 0LE DG2 0LF DG2 0LG DG2 0LL DG2 0LP DG2 0LQ DG2 0LR DG2 0LS DG2 0LT DG2 0LU DG2 0LW DG2 0LX DG2 0LY DG2 0LZ DG2 0NB DG2 0ND DG2 0NE DG2 0NF DG2 0NG DG2 0NH DG2 0NJ DG2 0NL DG2 0NN DG2 0NP DG2 0NQ DG2 0NR DG2 0NU DG2 0NW DG2 0NZ DG2 0PA DG2 0PB DG2 0PD DG2 0PE DG2 0PF DG2 0PG DG2 0PH DG2 0PJ DG2 0PL DG2 0PN DG2 0PP DG2 0PQ DG2 0PR DG2 0PS DG2 0PT DG2 0PU DG2 0PW DG2 0PY DG2 0PZ DG2 0QA DG2 0QB DG2 0QD DG2 0QE DG2 0QF DG2 0QG DG2 0QH DG2 0QJ DG2 0QL DG2 0QN DG2 0QP DG2 0QQ DG2 0QR DG2 0QT DG2 0QU DG2 0QX DG2 0QY DG2 0QZ DG2 0RA DG2 0RB DG2 0RD DG2 0RE DG2 0RF DG2 0RG DG2 0RH DG2 0RJ DG2 0RL DG2 0RP DG2 0RQ DG2 0RR DG2 0RS DG2 0RT DG2 0RU DG2 0RW DG2 0RX DG2 0RY DG2 0RZ DG2 0SA DG2 0SB DG2 0SD DG2 0SE DG2 0SF DG2 0SG DG2 0SN DG2 0SP DG2 0SR DG2 0SS DG2 0ST DG2 0SU DG2 0SW DG2 0SX DG2 0SY DG2 0SZ DG2 0TA DG2 0TB DG2 0TD DG2 0TE DG2 0TF DG2 0TG DG2 0TJ DG2 0TL DG2 0TN DG2 0TP DG2 0TQ DG2 0TR DG2 0TS DG2 0UA DG2 0UB DG2 0UD DG2 0UE DG2 0UF DG2 0UG DG2 0UH DG2 0UJ DG2 0UL DG2 0UN DG2 0UP DG2 0UR DG2 0UT DG2 0UU DG2 0UW DG2 0UX DG2 0UY DG2 0UZ DG2 0XA DG2 0XE DG2 0XG DG2 0XH DG2 0XJ DG2 0XL DG2 0XN DG2 0XP DG2 0XQ DG2 0XR DG2 0XS DG2 0XT DG2 0XU DG2 0XW DG2 0XX DG2 0XY DG2 0XZ DG2 0YA DG2 0YB DG2 0YD DG2 0YJ DG2 7AA DG2 7AB DG2 7AD DG2 7AE DG2 7AF DG2 7AG DG2 7AH DG2 7AJ DG2 7AL DG2 7AN DG2 7AP DG2 7AQ DG2 7AR DG2 7AS DG2 7AT DG2 7AU DG2 7AW DG2 7AX DG2 7AY DG2 7AZ DG2 7BA DG2 7BB DG2 7BD DG2 7BE DG2 7BF DG2 7BG DG2 7BH DG2 7BJ DG2 7BL DG2 7BP DG2 7DA DG2 7DB DG2 7DD DG2 7DE DG2 7DF DG2 7DG DG2 7DH DG2 7DJ DG2 7DL DG2 7DN DG2 7DR DG2 7DS DG2 7DT DG2 7DU DG2 7DW DG2 7DX DG2 7DY DG2 7DZ DG2 7EA DG2 7EB DG2 7ED DG2 7EE DG2 7EF DG2 7EH DG2 7EJ DG2 7EL DG2 7EN DG2 7EP DG2 7EQ DG2 7ER DG2 7ES DG2 7ET DG2 7EU DG2 7EW DG2 7EX DG2 7EY DG2 7EZ DG2 7FB DG2 7FD DG2 7FE DG2 7GZ DG2 7HA DG2 7HB DG2 7HE DG2 7HF DG2 7HG DG2 7HH DG2 7HJ DG2 7HL DG2 7HN DG2 7HQ DG2 7HR DG2 7HS DG2 7HT DG2 7HU DG2 7HX DG2 7HY DG2 7HZ DG2 7JJ DG2 7JL DG2 7JN DG2 7JP DG2 7JR DG2 7JS DG2 7JT DG2 7JU DG2 7JW DG2 7JX DG2 7JY DG2 7JZ DG2 7LA DG2 7LB DG2 7LD DG2 7LE DG2 7LG DG2 7LH DG2 7LJ DG2 7LP DG2 7LQ DG2 7LR DG2 7LS DG2 7LT DG2 7LU DG2 7LW DG2 7LZ DG2 7NA DG2 7NB DG2 7ND DG2 7NE DG2 7NG DG2 7NS DG2 7NT DG2 7NU DG2 7NX DG2 7NY DG2 7NZ DG2 7PA DG2 7PD DG2 7PE DG2 7PF DG2 7PH DG2 7PJ DG2 7PL DG2 7PN DG2 7PQ DG2 7PT DG2 7PU DG2 7PW DG2 7PX DG2 7PY DG2 7PZ DG2 7QA DG2 7QB DG2 7QD DG2 7QE DG2 7QF DG2 7QG DG2 7QH DG2 7QJ DG2 7QQ DG2 7QU DG2 7QX DG2 7QY DG2 7QZ DG2 7RA DG2 7RD DG2 7RE DG2 7RF DG2 7RG DG2 7RH DG2 7RJ DG2 7RL DG2 7RN DG2 7RP DG2 7RQ DG2 7RR DG2 7RS DG2 7RT DG2 7RU DG2 7RW DG2 7RX DG2 7RY DG2 7RZ DG2 7SA DG2 7SB DG2 7SD DG2 7SE DG2 7SF DG2 7SL DG2 7SN DG2 7SP DG2 7SQ DG2 7SR DG2 7SS DG2 7ST DG2 7SU DG2 7SW DG2 7TH DG2 7TJ DG2 7TL DG2 7TN DG2 8AA DG2 8AB DG2 8AD DG2 8AE DG2 8AF DG2 8AG DG2 8AH DG2 8AJ DG2 8AL DG2 8AN DG2 8AP DG2 8AQ DG2 8AR DG2 8AS DG2 8AT DG2 8AU DG2 8AW DG2 8AX DG2 8AY DG2 8AZ DG2 8BB DG2 8BD DG2 8BE DG2 8BG DG2 8BH DG2 8BJ DG2 8BL DG2 8BN DG2 8BP DG2 8BQ DG2 8BU DG2 8BW DG2 8BX DG2 8BY DG2 8BZ DG2 8DA DG2 8DB DG2 8DD DG2 8DE DG2 8DF DG2 8DG DG2 8DH DG2 8DJ DG2 8DL DG2 8DN DG2 8DP DG2 8DQ DG2 8DR DG2 8DS DG2 8DT DG2 8DU DG2 8DW DG2 8DX DG2 8DY DG2 8DZ DG2 8EA DG2 8EB DG2 8ED DG2 8EE DG2 8EF DG2 8EG DG2 8EH DG2 8EJ DG2 8EN DG2 8EP DG2 8EQ DG2 8ER DG2 8ES DG2 8ET DG2 8EU DG2 8EW DG2 8EX DG2 8EY DG2 8EZ DG2 8HA DG2 8HB DG2 8HD DG2 8HE DG2 8HF DG2 8HG DG2 8HH DG2 8HJ DG2 8HL DG2 8HN DG2 8HP DG2 8HQ DG2 8HW DG2 8HY DG2 8HZ DG2 8JA DG2 8JB DG2 8JD DG2 8JE DG2 8JF DG2 8JG DG2 8JH DG2 8JJ DG2 8JL DG2 8JN DG2 8JP DG2 8JQ DG2 8JR DG2 8JS DG2 8JT DG2 8JU DG2 8JW DG2 8JX DG2 8JY DG2 8JZ DG2 8LA DG2 8LB DG2 8LD DG2 8LE DG2 8LF DG2 8LG DG2 8LH DG2 8LJ DG2 8LL DG2 8LN DG2 8LP DG2 8LQ DG2 8LR DG2 8LS DG2 8LT DG2 8LW DG2 8LX DG2 8LY DG2 8LZ DG2 8NA DG2 8NB DG2 8ND DG2 8NF DG2 8NG DG2 8NH DG2 8NJ DG2 8NL DG2 8NN DG2 8NP DG2 8NQ DG2 8NR DG2 8NS DG2 8NU DG2 8NW DG2 8NX DG2 8NY DG2 8NZ DG2 8PA DG2 8PB DG2 8PD DG2 8PE DG2 8PF DG2 8PH DG2 8PJ DG2 8PN DG2 8PP DG2 8PR DG2 8PS DG2 8PT DG2 8PU DG2 8PX DG2 8PY DG2 8PZ DG2 8QA DG2 8QB DG2 8QD DG2 8QE DG2 8QF DG2 8QG DG2 8QH DG2 8QL DG2 8QN DG2 8QP DG2 8QQ DG2 8QR DG2 8QS DG2 8QT DG2 8QU DG2 8QW DG2 8QX DG2 8QY DG2 8RA DG2 8RB DG2 8RD DG2 8RE DG2 8RF DG2 8RG DG2 8RH DG2 8RJ DG2 8RL DG2 8RN DG2 8RP DG2 8RQ DG2 8RS DG2 8RT DG2 8RU DG2 8RW DG2 8YA DG2 8YD DG2 9AA DG2 9AB DG2 9AE DG2 9AF DG2 9AG DG2 9AH DG2 9AL DG2 9AN DG2 9AP DG2 9AQ DG2 9AR DG2 9AS DG2 9AU DG2 9AX DG2 9AY DG2 9AZ DG2 9BA DG2 9BD DG2 9BE DG2 9BF DG2 9BG DG2 9BH DG2 9BN DG2 9BP DG2 9BQ DG2 9BS DG2 9BT DG2 9BU DG2 9BW DG2 9BX DG2 9BY DG2 9BZ DG2 9DB DG2 9DE DG2 9DL DG2 9DN DG2 9DP DG2 9DR DG2 9DS DG2 9DT DG2 9DW DG2 9DX DG2 9DZ DG2 9EA DG2 9EB DG2 9ED DG2 9EE DG2 9EF DG2 9EG DG2 9EH DG2 9EJ DG2 9EL DG2 9EN DG2 9EP DG2 9ER DG2 9ES DG2 9ET DG2 9EU DG2 9EW DG2 9EX DG2 9EY DG2 9EZ DG2 9FB DG2 9FD DG2 9FE DG2 9FF DG2 9FG DG2 9FH DG2 9FJ DG2 9FL DG2 9FN DG3 4DL DG3 4DQ DG3 4DS DG3 4DU DG3 4DX DG3 4DZ DG3 4EA DG3 4EB DG3 4ED DG3 4EE DG3 4EF DG3 4EG DG3 4EH DG3 4EJ DG3 4EN DG3 4EQ DG3 4ER DG3 4ES DG3 4EW DG3 4GZ DG3 4HA DG3 4HB DG3 4HD DG3 4HE DG3 4HF DG3 4HH DG3 4HJ DG3 4HL DG3 4HN DG3 4HP DG3 4HQ DG3 4HR DG3 4HS DG3 4HT DG3 4HU DG3 4HW DG3 4HX DG3 4HZ DG3 4JA DG3 4JB DG3 4JD DG3 4JE DG2 9FP DG2 9FQ DG2 9FR DG2 9HA DG2 9HB DG2 9HE DG2 9HF DG2 9HG DG2 9HH DG2 9HJ DG2 9HL DG2 9HP DG2 9HQ DG2 9HR DG2 9HS DG2 9HT DG2 9HU DG2 9HW DG2 9HX DG2 9HY DG2 9HZ DG2 9JA DG2 9JB DG2 9JD DG2 9JE DG2 9JF DG2 9JG DG2 9JH DG2 9JJ DG2 9JL DG2 9JN DG2 9JP DG2 9JQ DG2 9JR DG2 9JS DG2 9JT DG2 9JU DG2 9JW DG2 9JX DG2 9JY DG2 9LL DG2 9LR DG2 9LS DG2 9LT DG2 9LU DG2 9LX DG2 9NA DG2 9NB DG2 9ND DG2 9NE DG2 9NF DG2 9NG DG2 9NH DG2 9NJ DG2 9NL DG2 9NN DG2 9NP DG2 9NQ DG2 9NR DG2 9NS DG2 9NT DG2 9NU DG2 9NW DG2 9NX DG2 9NY DG2 9NZ DG2 9PA DG2 9PB DG2 9PD DG2 9PE DG2 9PF DG2 9PG DG2 9PN DG2 9PP DG2 9PR DG2 9PS DG2 9PT DG2 9PU DG2 9PW DG2 9PX DG2 9PY DG2 9PZ DG2 9QA DG2 9QB DG2 9QD DG2 9QE DG2 9QF DG2 9QG DG2 9QH DG2 9QJ DG2 9QL DG2 9QN DG2 9QP DG2 9QQ DG2 9QR DG2 9QU DG2 9QW DG2 9RA DG2 9RD DG2 9RF DG2 9RH DG2 9RJ DG2 9RL DG2 9RN DG2 9RP DG2 9RQ DG2 9RR DG2 9RS DG2 9RT DG2 9RU DG2 9RW DG2 9RX DG2 9RY DG2 9RZ DG2 9SA DG2 9SB DG2 9SD DG2 9SE DG2 9SF DG2 9SH DG2 9SJ DG2 9SL DG2 9SN DG2 9SQ DG2 9SR DG2 9SS DG2 9ST DG2 9TA DG2 9TG DG2 9TH DG2 9TJ DG2 9TN DG2 9TP DG2 9TQ DG2 9TR DG2 9TS DG2 9TT DG2 9TU DG2 9TX DG2 9TY DG2 9TZ DG2 9UA DG2 9UB DG2 9UD DG2 9UE DG2 9UF DG2 9UG DG2 9UQ DG2 9UW DG3 4AB DG3 4AD DG3 4AE DG3 4AF DG3 4AG DG3 4AH DG3 4AJ DG3 4AL DG3 4AN DG3 4AP DG3 4AQ DG3 4AR DG3 4AS DG3 4AT DG3 4AU DG3 4AW DG3 4AX DG3 4BA DG3 4BD DG3 4BE DG3 4BG DG3 4BH DG3 4BJ DG3 4BL DG3 4BN DG3 4BP DG3 4BQ DG3 4BS DG3 4BT DG3 4BU DG3 4BW DG3 4BX DG3 4BY DG3 4BZ DG3 4DA DG3 4DB DG3 4DD DG3 4DE DG3 4DF DG3 4DG DG3 4DH DG3 4DJ DG3 4JL DG3 4JN DG3 4JS DG3 4JT DG3 4JU DG3 4JW DG3 4JX DG3 4JY DG3 4JZ DG3 4LA DG3 4LB DG3 4LD DG3 4LE DG3 4LF DG3 4LN DG3 4LP DG3 4LR DG3 4LU DG3 4LX DG3 4LZ DG3 4NB DG3 4ND DG3 4NE DG3 4NF DG3 4NG DG3 4NH DG3 4NJ DG3 4NL DG3 4NN DG3 4NQ DG3 4NW DG3 5AA DG3 5AB DG3 5AD DG3 5AE DG3 5AF DG3 5AG DG3 5AH DG3 5AJ DG3 5AL DG3 5AN DG3 5AP DG3 5AQ DG3 5AR DG3 5AS DG3 5AT DG3 5AU DG3 5AW DG3 5AX DG3 5AY DG3 5AZ DG3 5BA DG3 5BB DG3 5BD DG3 5BE DG3 5BF DG3 5BG DG3 5BH DG3 5BJ DG3 5BL DG3 5BN DG3 5BP DG3 5BQ DG3 5BS DG3 5BT DG3 5BU DG3 5BW DG3 5BX DG3 5BY DG3 5BZ DG3 5DA DG3 5DB DG3 5DD DG3 5DH DG3 5DJ DG3 5DL DG3 5DN DG3 5DP DG3 5DR DG3 5DS DG3 5DT DG3 5DW DG3 5DX DG3 5DY DG3 5DZ DG3 5EA DG3 5EB DG3 5ED DG3 5EE DG3 5EF DG3 5EG DG3 5EH DG3 5EJ DG3 5EL DG3 5EN DG3 5EQ DG3 5ER DG3 5EW DG3 5EX DG3 5EY DG3 5EZ DG3 5HA DG3 5HB DG3 5HD DG3 5HE DG3 5HG DG3 5HH DG3 5HJ DG3 5HL DG3 5HN DG3 5HP DG3 5HQ DG3 5HR DG3 5HT DG3 5HU DG3 5HW DG3 5HX DG3 5HY DG3 5HZ DG3 5JA DG3 5JD DG3 5JE DG3 5JF DG3 5JG DG3 5JH DG3 5JJ DG3 5JL DG3 5JP DG3 5JQ DG3 5JR DG3 5JS DG3 5JT DG3 5JU DG3 5JW DG3 5JX DG3 5JY DG3 5JZ DG3 5LA DG3 5LH DG3 5LJ DG3 5LL DG3 5LN DG3 5LP DG3 5LS DG3 5LU DG3 5LW DG3 5LX DG3 5LY DG3 5LZ DG3 5NA DG3 5NB DG3 5ND DG3 5NE DG3 5NF DG3 5NG DG3 5NH DG3 5NJ DG3 5NL DG3 5NN DG3 5NP DG3 5NQ DG3 5NR DG3 5NS DG3 5NT DG3 5NU DG3 5NW DG3 5NX DG3 5NY DG3 5NZ DG3 5PA DG3 5PB DG3 5PD DG3 5PG DG3 5PJ DG3 5PL DG3 5WA DG3 5WX DG4 6AA DG4 6AB DG4 6AD DG4 6AE DG4 6AF DG4 6AG DG4 6AH DG4 6AJ DG4 6AL DG4 6AN DG4 6AP DG4 6AQ DG4 6AR DG4 6AS DG4 6AT DG4 6AU DG4 6AW DG4 6AX DG4 6AY DG4 6AZ DG4 6BA DG4 6BB DG4 6BD DG4 6BF DG4 6BG DG4 6BH DG4 6BJ DG4 6BL DG4 6BN DG4 6BP DG4 6BQ DG4 6BS DG4 6BT DG4 6BU DG4 6BW DG4 6BX DG4 6BY DG4 6BZ DG4 6DA DG4 6DB DG4 6DE DG4 6DF DG4 6DG DG4 6DH DG4 6DJ DG4 6DL DG4 6DN DG4 6DP DG4 6DQ DG4 6DR DG4 6DS DG4 6DT DG4 6DU DG4 6DW DG4 6DX DG4 6DY DG4 6DZ DG4 6EB DG4 6EF DG4 6EH DG4 6EL DG4 6EN DG4 6EP DG4 6ER DG4 6ES DG4 6ET DG4 6EU DG4 6EW DG4 6EX DG4 6EY DG4 6EZ DG4 6HA DG4 6HB DG4 6HD DG4 6HE DG4 6HL DG4 6HN DG4 6HR DG4 6HS DG4 6HT DG4 6HU DG4 6HW DG4 6HX DG4 6HY DG4 6HZ DG4 6JA DG4 6JB DG4 6JD DG4 6JJ DG4 6JL DG4 6JN DG4 6JP DG4 6JS DG4 6JT DG4 6JU DG4 6JW DG4 6JX DG4 6JY DG4 6JZ DG4 6LA DG4 6LB DG4 6LD DG4 6LE DG4 6LF DG4 6LG DG4 6LJ DG4 6LL DG4 6LQ DG4 6LS DG4 6LU DG4 6LX DG4 6LY DG4 6LZ DG4 6NA DG4 6NB DG4 6ND DG4 6NE DG4 6NJ DG4 6NL DG4 6NN DG4 6NP DG4 6NQ DG4 6NR DG4 6NS DG4 6NU DG4 6NW DG4 6NX DG4 6NY DG4 6PH DG4 6PL DG4 6PN DG4 6PW DG4 6PZ DG4 6QA DG4 6QB DG4 6QH DG4 6QJ DG4 6QL DG4 6QN DG4 6QP DG4 6QQ DG4 6QR DG4 6QS DG4 6QT DG4 6QU DG4 6QW DG4 6QX DG4 6QY DG4 6QZ DG4 6RA DG4 6RB DG4 6RP DG4 6RR DG4 6RS DG4 6RT DG4 6RX DG4 6RY DG4 6RZ DG4 6SA DG4 6SB DG4 6SD DG4 6SE DG4 6SG DG4 6SH DG4 6SJ DG4 6SL DG4 6SN DG4 6SR DG4 6SS DG4 6ST DG4 6SU DG4 6SX DG4 6WW DG5 4AA DG5 4AB DG5 4AD DG5 4AE DG5 4AF DG5 4AG DG5 4AH DG5 4AJ DG5 4AL DG5 4AN DG5 4AP DG5 4AQ DG5 4AR DG5 4AS DG5 4AT DG5 4AU DG5 4AW DG5 4AX DG5 4AY DG5 4AZ DG5 4BA DG5 4BB DG5 4BE DG5 4BF DG5 4BG DG5 4BH DG5 4BJ DG5 4BN DG5 4BP DG5 4BQ DG5 4BS DG5 4BT DG5 4BU DG5 4BW DG5 4BX DG5 4BY DG5 4BZ DG5 4DA DG5 4DB DG5 4DD DG5 4DE DG5 4DF DG5 4DG DG5 4DH DG5 4DJ DG5 4DL DG5 4DN DG5 4DP DG5 4DQ DG5 4DR DG5 4DS DG5 4DT DG5 4DU DG5 4DW DG5 4DX DG5 4DY DG5 4DZ DG5 4EA DG5 4EB DG5 4ED DG5 4EE DG5 4EF DG5 4EG DG5 4EH DG5 4EJ DG5 4EL DG5 4EN DG5 4EP DG5 4EQ DG5 4ER DG5 4ES DG5 4ET DG5 4EU DG5 4EW DG5 4EX DG5 4EY DG5 4EZ DG5 4FA DG5 4FB DG5 4GA DG5 4GH DG5 4GY DG5 4GZ DG5 4HA DG5 4HB DG5 4HD DG5 4HE DG5 4HF DG5 4HG DG5 4HH DG5 4HJ DG5 4HL DG5 4HN DG5 4HP DG5 4HQ DG5 4HR DG5 4HS DG5 4HT DG5 4HU DG5 4HW DG5 4HX DG5 4HY DG5 4HZ DG5 4JA DG5 4JB DG5 4JD DG5 4JE DG5 4JF DG5 4JG DG5 4JH DG5 4JJ DG5 4JL DG5 4JN DG5 4JP DG5 4JR DG5 4JS DG5 4JT DG5 4JU DG5 4JW DG5 4JX DG5 4JY DG5 4JZ DG5 4LA DG5 4LB DG5 4LD DG5 4LE DG5 4LF DG5 4LG DG5 4LH DG5 4LJ DG5 4LL DG5 4LN DG5 4LP DG5 4LQ DG5 4LR DG5 4LS DG5 4LT DG5 4LU DG5 4LW DG5 4LX DG5 4LY DG5 4LZ DG5 4NA DG5 4NB DG5 4ND DG5 4NE DG5 4NF DG5 4NH DG5 4NJ DG5 4NL DG5 4NN DG5 4NP DG5 4NQ DG5 4NR DG5 4NS DG5 4NU DG5 4NW DG5 4NX DG5 4NY DG5 4NZ DG5 4PA DG5 4PB DG5 4PD DG5 4PE DG5 4PF DG5 4PG DG5 4PH DG5 4PJ DG5 4PL DG5 4PN DG5 4PP DG5 4PQ DG5 4PR DG5 4PT DG5 4PU DG5 4PW DG5 4PX DG5 4PY DG5 4PZ DG5 4QA DG5 4QB DG5 4QD DG5 4QE DG5 4QF DG5 4QG DG5 4QH DG5 4QJ DG5 4QL DG5 4QN DG5 4QP DG5 4QQ DG5 4QR DG5 4QS DG5 4QT DG5 4QU DG5 4QW DG5 4QX DG5 4QZ DG5 4RA DG5 4RB DG5 4RD DG5 4RE DG5 4RF DG5 4RG DG5 4RH DG5 4RJ DG5 4TA DG5 4TB DG5 4UN DG5 4UP DG5 4UQ DG5 4WA DG5 4XL DG6 4AA DG6 4AD DG6 4AE DG6 4AF DG6 4AH DG6 4AJ DG6 4AL DG6 4AN DG6 4AP DG6 4AQ DG6 4AR DG6 4AS DG6 4AT DG6 4AU DG6 4AW DG6 4AX DG6 4AZ DG6 4BA DG6 4BB DG6 4BD DG6 4BE DG6 4BF DG6 4BG DG6 4BH DG6 4BJ DG6 4BL DG6 4BN DG6 4BP DG6 4BQ DG6 4BS DG6 4BT DG6 4BU DG6 4BW DG6 4BX DG6 4BY DG6 4BZ DG6 4DA DG6 4DB DG6 4DE DG6 4DH DG6 4DJ DG6 4DL DG6 4DN DG6 4DP DG6 4DQ DG6 4DR DG6 4DS DG6 4DT DG6 4DU DG6 4DW DG6 4DX DG6 4DY DG6 4DZ DG6 4EA DG6 4EB DG6 4ED DG6 4EF DG6 4EG DG6 4EH DG6 4EJ DG6 4EL DG6 4EN DG6 4EP DG6 4EQ DG6 4ER DG6 4ES DG6 4EU DG6 4EW DG6 4EX DG6 4EY DG6 4EZ DG6 4HA DG6 4HB DG6 4HD DG6 4HE DG6 4HF DG6 4HG DG6 4HH DG6 4HJ DG6 4HL DG6 4HN DG6 4HP DG6 4HQ DG6 4HR DG6 4HS DG6 4HT DG6 4HU DG6 4HW DG6 4HX DG6 4HY DG6 4HZ DG6 4JA DG6 4JB DG6 4JD DG6 4JE DG6 4JF DG6 4JG DG6 4JH DG6 4JJ DG6 4JL DG6 4JN DG6 4JP DG6 4JQ DG6 4JR DG6 4JS DG6 4JT DG6 4JU DG6 4JW DG6 4JX DG6 4JY DG6 4JZ DG6 4LA DG6 4LB DG6 4LD DG6 4LE DG6 4LF DG6 4LG DG6 4LH DG6 4LJ DG6 4LL DG6 4LP DG6 4LQ DG6 4LR DG6 4LS DG6 4LT DG6 4LU DG6 4LW DG6 4LX DG6 4LY DG6 4LZ DG6 4NA DG6 4NB DG6 4ND DG6 4NE DG6 4NF DG6 4NG DG6 4NH DG6 4NJ DG6 4NL DG6 4NN DG6 4NP DG6 4NQ DG6 4NR DG6 4NS DG6 4NT DG6 4NU DG6 4NW DG6 4NX DG6 4NY DG6 4NZ DG6 4PB DG6 4PD DG6 4PE DG6 4PF DG6 4PG DG6 4PH DG6 4PJ DG6 4PN DG6 4PP DG6 4PQ DG6 4PR DG6 4PS DG6 4PT DG6 4PU DG6 4PW DG6 4PX DG6 4QA DG6 4QB DG6 4QD DG6 4QE DG6 4QF DG6 4QG DG6 4QH DG6 4QJ DG6 4QN DG6 4QP DG6 4QQ DG6 4QR DG6 4QS DG6 4QT DG6 4QU DG6 4QW DG6 4QY DG6 4QZ DG6 4RA DG6 4RB DG6 4RD DG6 4RL DG6 4RN DG6 4RP DG6 4RR DG6 4RS DG6 4RT DG6 4RU DG6 4RW DG6 4RX DG6 4SA DG6 4SB DG6 4SD DG6 4SE DG6 4SF DG6 4SG DG6 4SH DG6 4SJ DG6 4SN DG6 4SP DG6 4SQ DG6 4SR DG6 4SS DG6 4ST DG6 4SU DG6 4SW DG6 4SX DG6 4SY DG6 4SZ DG6 4TA DG6 4TH DG6 4TJ DG6 4TL DG6 4TN DG6 4TP DG6 4TQ DG6 4TR DG6 4TS DG6 4TT DG6 4TU DG6 4TW DG6 4TX DG6 4TY DG6 4TZ DG6 4UA DG6 4UB DG6 4UD DG6 4UE DG6 4UG DG6 4UR DG6 4UT DG6 4UU DG6 4UY DG6 4UZ DG6 4WA DG6 4WS DG6 4XA DG6 4XB DG6 4XD DG6 4XE DG6 4XF DG6 4XG DG6 4XH DG6 4XJ DG6 4XL DG6 4XN DG6 4XP DG6 4XQ DG6 4XR DG6 4XS DG6 4XT DG6 4XU DG6 4XW DG6 4XX DG6 4XY DG6 4YH DG6 4YJ DG6 4YL DG7 1AA DG7 1AB DG7 1AD DG7 1AE DG7 1AF DG7 1AG DG7 1AH DG7 1AJ DG7 1AL DG7 1AN DG7 1AP DG7 1AQ DG7 1AR DG7 1AT DG7 1AU DG7 1AX DG7 1AY DG7 1AZ DG7 1BA DG7 1BB DG7 1BD DG7 1BE DG7 1BG DG7 1BH DG7 1BJ DG7 1BL DG7 1BN DG7 1BP DG7 1BQ DG7 1BS DG7 1BT DG7 1BU DG7 1BW DG7 1BX DG7 1BY DG7 1BZ DG7 1DA DG7 1DB DG7 1DD DG7 1DE DG7 1DG DG7 1DH DG7 1DJ DG7 1DL DG7 1DN DG7 1DQ DG7 1DS DG7 1DT DG7 1DU DG7 1DW DG7 1DX DG7 1DZ DG7 1EA DG7 1EB DG7 1ED DG7 1EE DG7 1EF DG7 1EG DG7 1EH DG7 1EJ DG7 1EL DG7 1EN DG7 1EP DG7 1EQ DG7 1ER DG7 1ES DG7 1ET DG7 1EU DG7 1EW DG7 1EX DG7 1EY DG7 1EZ DG7 1FB DG7 1FD DG7 1GA DG7 1GB DG7 1GD DG7 1GE DG7 1GF DG7 1HA DG7 1HB DG7 1HD DG7 1HE DG7 1HF DG7 1HG DG7 1HH DG7 1HJ DG7 1HL DG7 1HN DG7 1HP DG7 1HQ DG7 1HR DG7 1HS DG7 1HU DG7 1HX DG7 1HY DG7 1HZ DG7 1JA DG7 1JF DG7 1JG DG7 1JH DG7 1JJ DG7 1JL DG7 1JN DG7 1JP DG7 1JQ DG7 1JT DG7 1JU DG7 1JX DG7 1JY DG7 1JZ DG7 1LA DG7 1LB DG7 1LD DG7 1LE DG7 1LG DG7 1LH DG7 1LJ DG7 1LL DG7 1LN DG7 1LQ DG7 1LU DG7 1LW DG7 1LX DG7 1LZ DG7 1NA DG7 1NB DG7 1NF DG7 1NG DG7 1NH DG7 1NJ DG7 1NL DG7 1NN DG7 1NP DG7 1NQ DG7 1NR DG7 1NS DG7 1NT DG7 1NU DG7 1NW DG7 1NX DG7 1NY DG7 1NZ DG7 1PA DG7 1PB DG7 1PD DG7 1PE DG7 1PF DG7 1PG DG7 1PH DG7 1PL DG7 1PN DG7 1PP DG7 1PQ DG7 1PR DG7 1PS DG7 1PW DG7 1QA DG7 1QB DG7 1QD DG7 1QE DG7 1QF DG7 1QG DG7 1QH DG7 1QJ DG7 1QL DG7 1QN DG7 1QP DG7 1QQ DG7 1QR DG7 1QS DG7 1QT DG7 1QU DG7 1QW DG7 1QX DG7 1QY DG7 1QZ DG7 1RB DG7 1RD DG7 1RE DG7 1RF DG7 1RG DG7 1RH DG7 1RJ DG7 1RL DG7 1RN DG7 1RQ DG7 1RR DG7 1RS DG7 1RT DG7 1RU DG7 1RW DG7 1RX DG7 1RY DG7 1RZ DG7 1SA DG7 1SB DG7 1SD DG7 1SE DG7 1SF DG7 1SG DG7 1SH DG7 1SJ DG7 1SL DG7 1SN DG7 1SP DG7 1SQ DG7 1SR DG7 1SS DG7 1ST DG7 1SU DG7 1SW DG7 1SX DG7 1SY DG7 1SZ DG7 1TA DG7 1TB DG7 1TD DG7 1TH DG7 1TJ DG7 1TL DG7 1TN DG7 1TP DG7 1TR DG7 1TS DG7 1TT DG7 1TU DG7 1TW DG7 1TX DG7 1TY DG7 1TZ DG7 1UA DG7 1UB DG7 1UE DG7 1UF DG7 1UG DG7 1UQ DG7 2AA DG7 2AB DG7 2AD DG7 2AE DG7 2AF DG7 2AG DG7 2AH DG7 2AJ DG7 2AL DG7 2AN DG7 2AP DG7 2AQ DG7 2AR DG7 2AS DG7 2AT DG7 2AU DG7 2AW DG7 2AY DG7 2AZ DG7 2BA DG7 2BB DG7 2BD DG7 2BE DG7 2BG DG7 2BH DG7 2BJ DG7 2BL DG7 2BN DG7 2BP DG7 2BQ DG7 2BS DG7 2BW DG7 2DA DG7 2DB DG7 2DD DG7 2DE DG7 2DF DG7 2DG DG7 2DH DG7 2DJ DG7 2DL DG7 2DN DG7 2DP DG7 2DQ DG7 2DR DG7 2DS DG7 2DT DG7 2DU DG7 2DW DG7 2EA DG7 2EB DG7 2ED DG7 2EE DG7 2EF DG7 2EG DG7 2EH DG7 2EJ DG7 2EN DG7 2EP DG7 2EQ DG7 2ER DG7 2ES DG7 2ET DG7 2EU DG7 2EW DG7 2EX DG7 2EY DG7 2EZ DG7 2FA DG7 2FB DG7 2HA DG7 2HB DG7 2HD DG7 2HE DG7 2HF DG7 2HG DG7 2HH DG7 2HJ DG7 2HL DG7 2HP DG7 2HQ DG7 2HR DG7 2HS DG7 2HT DG7 2HU DG7 2HW DG7 2HX DG7 2HY DG7 2HZ DG7 2JA DG7 2JB DG7 2JD DG7 2JE DG7 2JF DG7 2JG DG7 2JH DG7 2JJ DG7 2JL DG7 2JN DG7 2JP DG7 2JQ DG7 2JR DG7 2JS DG7 2JT DG7 2JU DG7 2JW DG7 2JX DG7 2JY DG7 2JZ DG7 2LA DG7 2LB DG7 2LD DG7 2LE DG7 2LF DG7 2LG DG7 2LH DG7 2LJ DG7 2LL DG7 2LN DG7 2LP DG7 2LQ DG7 2LR DG7 2LS DG7 2LT DG7 2LU DG7 2LW DG7 2LX DG7 2LY DG7 2LZ DG7 2NA DG7 2NB DG7 2ND DG7 2NE DG7 2NF DG7 2NG DG7 2NJ DG7 2NL DG7 2NN DG7 2NP DG7 2NQ DG7 2NR DG7 2NS DG7 2NT DG7 2NU DG7 2NX DG7 2NY DG7 2NZ DG7 2PA DG7 2PB DG7 2PD DG7 2PE DG7 2PF DG7 2PG DG7 2PH DG7 2PJ DG7 2PL DG7 2PN DG7 2PP DG7 2PQ DG7 2PR DG7 2PS DG7 2PT DG7 2PU DG7 2PW DG7 2PX DG7 2PY DG7 2PZ DG7 2WB DG7 3AA DG7 3AB DG7 3AD DG7 3AE DG7 3AF DG7 3AG DG7 3AH DG7 3AJ DG7 3AL DG7 3AN DG7 3AP DG7 3AQ DG7 3AR DG7 3AS DG7 3AT DG7 3AU DG7 3AW DG7 3AX DG7 3AY DG7 3AZ DG7 3BA DG7 3BB DG7 3BD DG7 3BE DG7 3BF DG7 3BG DG7 3BH DG7 3BJ DG7 3BL DG7 3BN DG7 3BQ DG7 3BU DG7 3BX DG7 3BY DG7 3BZ DG7 3DA DG7 3DB DG7 3DD DG7 3DE DG7 3DF DG7 3DG DG7 3DH DG7 3DJ DG7 3DL DG7 3DN DG7 3DP DG7 3DQ DG7 3DR DG7 3DS DG7 3DT DG7 3DU DG7 3DW DG7 3DX DG7 3DY DG7 3DZ DG7 3EA DG7 3EB DG7 3ED DG7 3EE DG7 3EF DG7 3EG DG7 3EH DG7 3EJ DG7 3EL DG7 3EN DG7 3EP DG7 3ER DG7 3ES DG7 3ET DG7 3EU DG7 3EW DG7 3EX DG7 3EY DG7 3EZ DG7 3HA DG7 3HB DG7 3HD DG7 3HE DG7 3HF DG7 3HG DG7 3HL DG7 3HN DG7 3HP DG7 3HQ DG7 3HR DG7 3HS DG7 3HT DG7 3HU DG7 3HW DG7 3HX DG7 3HY DG7 3HZ DG7 3JF DG7 3JG DG7 3JH DG7 3JJ DG7 3JL DG7 3JN DG7 3JQ DG7 3JT DG7 3JU DG7 3JW DG7 3JX DG7 3JY DG7 3JZ DG7 3LA DG7 3LB DG7 3LD DG7 3LE DG7 3LF DG7 3LG DG7 3LH DG7 3LJ DG7 3LL DG7 3LN DG7 3LP DG7 3LQ DG7 3LR DG7 3LS DG7 3LT DG7 3LU DG7 3LW DG7 3LX DG7 3LY DG7 3LZ DG7 3NA DG7 3NB DG7 3ND DG7 3NE DG7 3NF DG7 3NG DG7 3NH DG7 3NJ DG7 3NL DG7 3NN DG7 3NP DG7 3NQ DG7 3NR DG7 3NS DG7 3NT DG7 3NU DG7 3NW DG7 3NX DG7 3NY DG7 3NZ DG7 3PA DG7 3PB DG7 3PD DG7 3PE DG7 3PG DG7 3PH DG7 3PJ DG7 3PL DG7 3PN DG7 3PP DG7 3PR DG7 3PS DG7 3PT DG7 3PU DG7 3PW DG7 3PX DG7 3PY DG7 3PZ DG7 3QA DG7 3QB DG7 3QD DG7 3QE DG7 3QF DG7 3QG DG7 3QH DG7 3QJ DG7 3QL DG7 3QN DG7 3QP DG7 3QQ DG7 3QR DG7 3QS DG7 3QW DG8 0NL DG8 0NN DG8 0NP DG8 0NR DG8 0NS DG8 0NT DG8 0NU DG8 0NW DG8 0NX DG8 0NY DG8 0NZ DG8 0PA DG8 0PB DG8 0PD DG8 0PE DG8 0PF DG8 0PL DG8 0PN DG8 0PP DG8 0PR DG8 0PS DG8 0PT DG8 0PU DG8 0PW DG8 0PX DG8 0PY DG8 0PZ DG8 0QA DG8 0QB DG8 0QD DG8 0QE DG8 0QF DG8 0QG DG8 0QH DG8 0QJ DG8 0QL DG8 0QN DG8 0QP DG8 0QQ DG8 0QR DG8 0QW DG8 0QY DG8 0QZ DG8 1AB DG8 1AD DG8 6AA DG8 6AB DG8 6AD DG8 6AE DG7 3RA DG7 3RB DG7 3RD DG7 3RE DG7 3RF DG7 3RG DG7 3RH DG7 3RJ DG7 3RL DG7 3RN DG7 3RP DG7 3RQ DG7 3RR DG7 3RS DG7 3RT DG7 3RU DG7 3RW DG7 3RX DG7 3RY DG7 3RZ DG7 3SA DG7 3SB DG7 3SD DG7 3SE DG7 3SF DG7 3SG DG7 3SH DG7 3SL DG7 3SN DG7 3SP DG7 3SQ DG7 3SR DG7 3SS DG7 3ST DG7 3SU DG7 3SW DG7 3SX DG7 3SY DG7 3SZ DG7 3TA DG7 3TB DG7 3TD DG7 3TE DG7 3TF DG7 3TG DG7 3TH DG7 3TJ DG7 3TQ DG7 3TR DG7 3TS DG7 3TT DG7 3TU DG7 3TX DG7 3TY DG7 3TZ DG7 3UA DG7 3UB DG7 3UD DG7 3UE DG7 3UF DG7 3UG DG7 3UP DG7 3UQ DG7 3UR DG7 3UT DG7 3UU DG7 3UW DG7 3UX DG7 3UY DG7 3UZ DG7 3WA DG7 3XE DG7 3XF DG7 3XG DG7 3XH DG7 3XJ DG7 3XL DG7 3XN DG7 3XP DG7 3XQ DG7 3XR DG7 3XS DG7 3XW DG7 3YA DG7 3YB DG7 3YD DG7 3YE DG7 9AB DG8 0AA DG8 0AB DG8 0AD DG8 0AE DG8 0AF DG8 0AG DG8 0AH DG8 0AJ DG8 0AL DG8 0AN DG8 0AP DG8 0AQ DG8 0AT DG8 0AU DG8 0AW DG8 0AX DG8 0AY DG8 0AZ DG8 0BA DG8 0BH DG8 0BJ DG8 0BL DG8 0BN DG8 0BS DG8 0BT DG8 0BU DG8 0BW DG8 0BX DG8 0BY DG8 0BZ DG8 0DA DG9 8JH DG9 8JJ DG9 8JL DG9 8JN DG9 8JP DG9 8JQ DG9 8JR DG9 8JS DG9 8JT DG9 8JU DG9 8JW DG9 8JX DG9 8JY DG9 8JZ DG8 0DB DG8 0DD DG8 0DE DG8 0DF DG8 0DG DG8 0DH DG8 0DJ DG8 0DL DG8 0DN DG8 0DP DG8 0DQ DG8 0DR DG8 0DW DG8 0EA DG8 0EB DG8 0ED DG8 0EE DG8 0EF DG8 0EG DG8 0EH DG8 0EJ DG8 0EL DG8 0EN DG8 0EP DG8 0EQ DG8 0ER DG8 0ET DG8 0HA DG8 0HB DG8 0HD DG8 0HE DG8 0HF DG8 0HG DG8 0HH DG8 0HJ DG8 0HL DG8 0HN DG8 0HP DG8 0HQ DG8 0HR DG8 0HS DG8 0HT DG8 0HU DG8 0HW DG8 0HX DG8 0HY DG8 0JE DG8 0JF DG8 0JG DG8 0JH DG8 0JJ DG8 0JL DG8 0JN DG8 0JP DG8 0JQ DG8 0JR DG8 0JS DG8 0JT DG8 0JU DG8 0JW DG8 0JX DG8 0JY DG8 0JZ DG8 0LA DG8 0LB DG8 0LD DG8 0LE DG8 0LF DG8 0LG DG8 0LP DG8 0LR DG8 0LS DG8 0LT DG8 0LU DG8 0LW DG8 0LX DG8 0LY DG8 0LZ DG8 0NA DG8 0NB DG8 0NH DG8 0NJ DG8 6AF DG8 6AG DG8 6AH DG8 6AJ DG8 6AL DG8 6AN DG8 6AP DG8 6AQ DG8 6AS DG8 6AT DG8 6AU DG8 6AW DG8 6AX DG8 6AY DG8 6AZ DG8 6BA DG8 6BB DG8 6BD DG8 6BE DG8 6BF DG8 6BG DG8 6BH DG8 6BJ DG8 6BL DG8 6BN DG8 6BP DG8 6BQ DG8 6BS DG8 6BT DG8 6BZ DG8 6DA DG8 6DB DG8 6DD DG8 6DE DG8 6DF DG8 6DG DG8 6DH DG8 6DJ DG8 6DL DG8 6DN DG8 6DQ DG8 6DR DG8 6DS DG8 6DT DG8 6DU DG8 6DW DG8 6DX DG8 6DY DG8 6DZ DG8 6EA DG8 6EB DG8 6EE DG8 6EF DG8 6EG DG8 6EH DG8 6EJ DG8 6EL DG8 6EN DG8 6EP DG8 6EQ DG8 6ER DG8 6ES DG8 6ET DG8 6EU DG8 6EW DG8 6EX DG8 6EY DG8 6EZ DG8 6HA DG8 6HB DG8 6HD DG8 6HE DG8 6HF DG8 6HG DG8 6HH DG8 6HJ DG8 6HL DG8 6HN DG8 6HP DG8 6HQ DG8 6HR DG8 6HT DG8 6HU DG8 6HW DG8 6HX DG8 6HY DG8 6HZ DG8 6JA DG8 6JB DG8 6JD DG8 6JE DG8 6JF DG8 6JG DG8 6JH DG8 6JJ DG8 6JL DG8 6JQ DG8 6JR DG8 6JS DG8 6JT DG8 6JW DG8 6JX DG8 6JY DG8 6JZ DG8 6LA DG8 6LB DG8 6LD DG8 6LE DG8 6LF DG8 6LG DG8 6LH DG8 6LJ DG8 6LL DG8 6LN DG8 6LP DG8 6LQ DG8 6LR DG8 6LS DG8 6LT DG8 6LU DG8 6LW DG8 6LX DG8 6LY DG8 6LZ DG8 6NA DG8 6NB DG8 6ND DG8 6NE DG8 6NF DG8 6NG DG8 6NH DG8 6NL DG8 6NP DG8 6NQ DG8 6NR DG8 6NS DG8 6NT DG8 6NU DG8 6NW DG8 6NX DG8 6NY DG8 6NZ DG8 6PA DG8 6PB DG8 6PD DG8 6PE DG8 6PF DG8 6PG DG8 6PH DG8 6PJ DG8 6PL DG8 6PN DG8 6PP DG8 6PQ DG8 6PR DG8 6PS DG8 6PT DG8 6PU DG8 6PW DG8 6PX DG8 6PY DG8 6PZ DG8 6QA DG8 6QB DG8 6QD DG8 6QE DG8 6QF DG8 6QG DG8 6QH DG8 6QJ DG8 6QL DG8 6QN DG8 6QP DG8 6QQ DG8 6QR DG8 6QS DG8 6QT DG8 6QU DG8 6QW DG8 6QY DG8 6QZ DG8 6RA DG8 6RB DG8 6RD DG8 6RE DG8 6RH DG8 6RJ DG8 6RL DG8 6RN DG8 6RP DG8 6RR DG8 6RS DG8 6RT DG8 6RU DG8 6RW DG8 6RX DG8 6RY DG8 6RZ DG8 6SA DG8 6SH DG8 6SJ DG8 6SL DG8 6SN DG8 6SP DG8 6SR DG9 8QJ DG9 8QL DG9 8QN DG9 8QP DG9 8QR DG9 8QS DG9 8QT DG9 8QU DG9 8QW DG9 8QX DG9 8QY DG9 8QZ DG9 8RA DG9 8RB DG9 8RD DG9 8RE DG9 8RF DG9 8RG DG9 8RL DG9 8RN DG9 8RP DG9 8RQ DG9 8RR DG9 8RS DG9 8RT DG9 8RU DG9 8RX DG9 8RY DG8 6SS DG8 6SU DG8 6SW DG8 6SX DG8 6SY DG8 6SZ DG8 6TA DG8 6TD DG8 6TH DG8 6TJ DG8 6TQ DG8 6UA DG8 7AA DG8 7AB DG8 7AD DG8 7AE DG8 7AF DG8 7AG DG8 7AJ DG8 7AL DG8 7AN DG8 7AR DG8 7AS DG8 7AT DG8 7AU DG8 7AW DG8 7AX DG8 7AZ DG8 7BA DG8 7BB DG8 7BD DG8 7BE DG8 7BG DG8 7BH DG8 7BJ DG8 7BL DG8 7BN DG8 7BQ DG8 7BW DG8 7BX DG8 7BY DG8 7BZ DG8 7DA DG8 7DB DG8 7DE DG8 7DF DG8 7DG DG8 7DL DG8 7DN DG8 7DP DG8 7DQ DG8 7DR DG8 7DS DG8 7DT DG8 7DU DG8 7DW DG8 7DX DG8 7DY DG8 7DZ DG8 7EA DG8 7EB DG8 7EN DG8 7EP DG8 7ER DG8 7ES DG8 7ET DG8 7EU DG8 7EW DG8 7EX DG8 7EY DG8 7HB DG8 7HF DG8 7HG DG8 7HH DG8 7HJ DG8 7HL DG8 7HN DG8 7HP DG8 7HQ DG8 7HR DG8 7HS DG8 7HT DG8 7HU DG8 7HW DG8 7HX DG8 7HY DG8 7HZ DG8 7JA DG8 7JB DG8 7JE DG8 7JF DG8 7JG DG8 7JH DG8 7JJ DG8 7JL DG8 7JN DG8 7JP DG8 7JQ DG8 7JR DG8 7JS DG8 7JT DG8 7JW DG8 7JX DG8 7JY DG8 8AA DG8 8AB DG8 8AD DG8 8AE DG8 8AF DG8 8AG DG8 8AH DG8 8AJ DG8 8AL DG8 8AN DG8 8AP DG8 8AQ DG8 8AR DG8 8AS DG8 8AT DG8 8AW DG8 8BA DG8 8BB DG8 8BD DG8 8BE DG8 8BG DG8 8BH DG8 8BJ DG8 8BL DG8 8BN DG8 8BP DG8 8BQ DG8 8BR DG8 8BS DG8 8BT DG8 8BU DG8 8BW DG8 8BX DG8 8BY DG8 8BZ DG8 8DE DG8 8DF DG8 8DG DG8 8DH DG8 8DJ DG8 8DL DG8 8DN DG8 8DP DG8 8DQ DG8 8DR DG8 8DS DG8 8DT DG8 8DU DG8 8DW DG8 8DX DG8 8DY DG8 8DZ DG8 8EG DG8 8EH DG8 8EJ DG8 8EL DG8 8EN DG8 8EP DG8 8EQ DG8 8ER DG8 8EW DG8 8EY DG8 8EZ DG8 8HA DG8 8HB DG8 8HD DG8 8HE DG8 8HF DG8 8HH DG8 8HJ DG8 8HL DG8 8HN DG8 8HP DG8 8HQ DG8 8HR DG8 8HS DG8 8HT DG8 8HU DG8 8HW DG8 8HX DG8 8HY DG8 8HZ DG8 8JA DG8 8JB DG8 8JD DG8 8JE DG8 8JF DG8 8JG DG8 8JH DG8 8JQ DG8 8JS DG8 8JT DG8 8JU DG8 8JW DG8 8JX DG8 8JY DG8 8JZ DG8 8LA DG8 8LB DG8 8LD DG8 8LE DG8 8LF DG8 8LG DG8 8LH DG8 8LJ DG8 8LL DG8 8LN DG8 8LP DG8 8LQ DG8 8LR DG8 8LS DG8 8LT DG8 8LU DG8 8LX DG8 8LY DG8 8LZ DG8 8NA DG8 8NB DG8 8ND DG8 8NE DG8 8NF DG8 8NG DG8 8NH DG8 8NJ DG8 8NL DG8 8NQ DG8 8NS DG8 8NT DG8 8NU DG8 8NY DG8 8NZ DG8 8PB DG8 8PD DG8 8PE DG8 8PF DG8 8PG DG8 8PH DG8 8PJ DG8 8PL DG8 8PN DG8 8PP DG8 8PQ DG8 8PS DG8 8PT DG8 8PU DG8 8PW DG8 8PY DG8 8PZ DG8 8QA DG8 8QB DG8 8QE DG8 8QF DG8 8QG DG8 8QH DG8 8QJ DG8 8QL DG8 8QN DG8 8QP DG8 8QQ DG8 8QW DG8 9AA DG8 9AB DG8 9AD DG8 9AF DG8 9AG DG8 9AH DG8 9AL DG8 9AN DG8 9AP DG8 9AQ DG8 9AR DG8 9AS DG8 9AT DG8 9AU DG8 9AW DG8 9AX DG8 9AY DG8 9AZ DG8 9BA DG8 9BB DG8 9BD DG8 9BE DG8 9BG DG8 9BH DG8 9BJ DG8 9BL DG8 9BQ DG8 9BT DG8 9BX DG8 9BY DG8 9BZ DG8 9DA DG8 9DB DG8 9DD DG8 9DE DG8 9DF DG8 9DH DG8 9DJ DG8 9DL DG8 9DQ DG8 9DS DG8 9DT DG8 9DU DG8 9DX DG8 9DY DG8 9DZ DG8 9ED DG8 9EE DG8 9EF DG8 9EG DG8 9EH DG8 9EJ DG8 9EL DG8 9EN DG8 9EP DG8 9EQ DG8 9ER DG8 9ES DG8 9ET DG8 9EU DG8 9EW DG8 9HG DG8 9HH DG8 9HJ DG8 9HL DG8 9HN DG8 9HP DG8 9HQ DG8 9HR DG8 9HS DG8 9HT DG8 9HU DG8 9HW DG8 9HX DG8 9HY DG8 9HZ DG8 9JA DG8 9JB DG8 9JD DG8 9JE DG8 9JF DG8 9JG DG8 9JH DG8 9JJ DG8 9JL DG8 9JN DG8 9JP DG8 9JQ DG8 9JS DG8 9JX DG8 9JY DG8 9JZ DG8 9LA DG8 9LB DG8 9LD DG8 9LE DG8 9LG DG8 9LH DG8 9LJ DG8 9LL DG8 9LN DG8 9LP DG8 9LQ DG8 9LR DG8 9LS DG8 9LT DG8 9LU DG8 9LW DG8 9LX DG8 9LY DG8 9LZ DG8 9NA DG8 9NB DG8 9ND DG8 9NE DG8 9NF DG8 9NG DG8 9NN DG8 9NP DG8 9NR DG8 9NS DG8 9NT DG8 9NU DG8 9NX DG8 9NY DG8 9NZ DG8 9PA DG8 9PB DG8 9PD DG8 9PE DG8 9PF DG8 9PG DG8 9PH DG8 9PJ DG8 9PL DG8 9PN DG8 9PP DG8 9PQ DG8 9PR DG8 9PS DG8 9PT DG8 9PU DG8 9PW DG8 9PX DG8 9PY DG8 9QA DG8 9QB DG8 9QE DG8 9QH DG8 9QJ DG8 9QL DG8 9QN DG8 9QP DG8 9QR DG8 9QS DG8 9QT DG8 9QU DG8 9QX DG8 9QY DG8 9QZ DG8 9RA DG8 9RB DG8 9RD DG8 9RE DG8 9RF DG8 9RG DG8 9RH DG8 9RJ DG8 9RL DG8 9RN DG8 9RP DG8 9RQ DG8 9RR DG8 9RS DG8 9RT DG8 9RU DG8 9SA DG8 9SB DG8 9SD DG8 9SE DG8 9SG DG8 9SH DG8 9SJ DG8 9SL DG8 9SN DG8 9SP DG8 9SQ DG8 9SR DG8 9SW DG8 9TA DG8 9TB DG8 9TD DG8 9TE DG8 9TF DG8 9TG DG8 9TH DG8 9TJ DG8 9TL DG8 9TQ DG9 0AA DG9 0AB DG9 0AD DG9 0AE DG9 0AF DG9 0AG DG9 0AH DG9 0AJ DG9 0AL DG9 0AN DG9 0AP DG9 0AQ DG9 0AR DG9 0AS DG9 0AT DG9 0AU DG9 0AW DG9 0AX DG9 0AY DG9 0AZ DG9 0BA DG9 0BB DG9 0BD DG9 0BE DG9 0BG DG9 0BH DG9 0BJ DG9 0BL DG9 0BN DG9 0BP DG9 0BQ DG9 0BS DG9 0BT DG9 0BU DG9 0BW DG9 0BX DG9 0BY DG9 0BZ DG9 0DA DG9 0DB DG9 0DD DG9 0DE DG9 0DF DG9 0DG DG9 0DH DG9 0DJ DG9 0DL DG9 0DN DG9 0DQ DG9 0DS DG9 0DT DG9 0DU DG9 0DX DG9 0DY DG9 0DZ DG9 0EA DG9 0EB DG9 0ED DG9 0EE DG9 0EF DG9 0EG DG9 0EH DG9 0EJ DG9 0EL DG9 0EN DG9 0EP DG9 0EQ DG9 0ER DG9 0ES DG9 0ET DG9 0EU DG9 0EW DG9 0EX DG9 0EY DG9 0EZ DG9 0HA DG9 0HB DG9 0HD DG9 0HE DG9 0HF DG9 0HG DG9 0HH DG9 0HL DG9 0HQ DG9 0HS DG9 0HW DG9 0HX DG9 0HY DG9 0HZ DG9 0JA DG9 0JB DG9 0JD DG9 0JE DG9 0JF DG9 0JH DG9 0JJ DG9 0JL DG9 0JN DG9 0JP DG9 0JQ DG9 0JT DG9 0JZ DG9 0LA DG9 0LB DG9 0LD DG9 0LE DG9 0LF DG9 0LG DG9 0LH DG9 0LJ DG9 0LL DG9 0LN DG9 0LP DG9 0LQ DG9 0LR DG9 0LS DG9 0LT DG9 0LU DG9 0LW DG9 0LX DG9 0LY DG9 0LZ DG9 0NA DG9 0NB DG9 0ND DG9 0NE DG9 0NL DG9 0NN DG9 0NP DG9 0NS DG9 0NT DG9 0NU DG9 0NW DG9 0NX DG9 0NY DG9 0NZ DG9 0PA DG9 0PB DG9 0PD DG9 0PE DG9 0PL DG9 0PN DG9 0PP DG9 0PR DG9 0PS DG9 0PT DG9 0PU DG9 0PW DG9 0PX DG9 0PY DG9 0PZ DG9 0QA DG9 0QB DG9 0QD DG9 0QE DG9 0QF DG9 0QG DG9 0QP DG9 0QQ DG9 0QR DG9 0QS DG9 0QT DG9 0QU DG9 0QX DG9 0QY DG9 0QZ DG9 0RA DG9 0RB DG9 0RD DG9 0RE DG9 0RF DG9 0RG DG9 0RH DG9 0RJ DG9 0RL DG9 0RN DG9 0RP DG9 0RQ DG9 0RR DG9 0RS DG9 0RT DG9 0RU DG9 0RW DG9 0RX DG9 0RY DG9 1AB DG9 7AA DG9 7AB DG9 7AD DG9 7AE DG9 7AF DG9 7AG DG9 7AH DG9 7AJ DG9 7AL DG9 7AN DG9 7AP DG9 7AQ DG9 7AR DG9 7AS DG9 7AT DG9 7AU DG9 7AW DG9 7AX DG9 7AY DG9 7AZ DG9 7BA DG9 7BB DG9 7BD DG9 7BE DG9 7BG DG9 7BH DG9 7BJ DG9 7BL DG9 7BN DG9 7BP DG9 7BQ DG9 7BS DG9 7BT DG9 7BU DG9 7BW DG9 7BX DG9 7BY DG9 7BZ DG9 7DA DG9 7DB DG9 7DD DG9 7DE DG9 7DF DG9 7DH DG9 7DL DG9 7DN DG9 7DQ DG9 7DR DG9 7DS DG9 7DU DG9 7DW DG9 7DX DG9 7DZ DG9 7EA DG9 7EB DG9 7ED DG9 7EE DG9 7EF DG9 7EG DG9 7EH DG9 7EJ DG9 7EL DG9 7EN DG9 7EP DG9 7ER DG9 7ES DG9 7ET DG9 7EU DG9 7EW DG9 7EX DG9 7EY DG9 7EZ DG9 7FB DG9 7FD DG9 7FE DG9 7FG DG9 7FH DG9 7FJ DG9 7GA DG9 7HA DG9 7HB DG9 7HD DG9 7HE DG9 7HF DG9 7HH DG9 7HJ DG9 7HL DG9 7HN DG9 7HP DG9 7HR DG9 7HS DG9 7HT DG9 7HU DG9 7HW DG9 7HX DG9 7HY DG9 7JA DG9 7JB DG9 7JE DG9 7JF DG9 7JG DG9 7JH DG9 7JJ DG9 7JL DG9 7JN DG9 7JP DG9 7JS DG9 7JU DG9 7JW DG9 7JY DG9 7JZ DG9 7LA DG9 7LB DG9 7LD DG9 7LF DG9 7LG DG9 7LH DG9 7LJ DG9 7LL DG9 7LN DG9 7LP DG9 7LQ DG9 7LR DG9 7LS DG9 7LT DG9 7LU DG9 7LW DG9 7LX DG9 7LY DG9 7LZ DG9 7NA DG9 7NB DG9 7ND DG9 7NE DG9 7NF DG9 7NG DG9 7NH DG9 7NL DG9 7NN DG9 7NP DG9 7NQ DG9 7NS DG9 7NU DG9 7NW DG9 7NX DG9 7NY DG9 7NZ DG9 7PA DG9 7PB DG9 7PD DG9 7PG DG9 7PH DG9 7PJ DG9 7PQ DG9 7PT DG9 7PU DG9 7PW DG9 7PX DG9 7PY DG9 7PZ DG9 7QA DG9 7QB DG9 7QD DG9 7QE DG9 7QF DG9 7QG DG9 7QH DG9 7QJ DG9 7QL DG9 7QN DG9 7QP DG9 7QQ DG9 7QR DG9 7QS DG9 7QT DG9 7QU DG9 7QW DG9 7QX DG9 7QY DG9 7QZ DG9 8TQ DG9 8TR DG9 8TS DG9 8TT DG9 8TW DG9 8TX DG9 8TY DG9 8TZ DG9 8UA DG9 8UB DG9 8WX DG9 9AA DG9 9AB DG9 9AD DG9 9AE DG9 9AF DG9 9AG DG9 9AH DG9 9AJ DG9 9AL DG9 9AN DG9 9AP DG9 9AQ DG9 9AR DG9 9AS DG9 9AT DG9 9AU DG9 9AW DG9 9AX DG9 9AZ DG9 9BA DG9 9BB DG9 9BD DG9 9BE DG9 9BG DG9 9BH DG9 9BJ DG9 9BL DG9 9BN DG9 9BP DG9 9BQ DG9 9BS DG9 9BT DG9 9BU DG9 9BW DG9 9BX DG9 9BY DG9 9BZ DG9 9DB DG9 9DE DG9 9DF DG9 9DG DG9 9DH DG9 9DJ DG9 9DL DG9 9DN DG9 9DP DG9 9DQ DG9 9DR DG9 9DU DG9 9DW DG9 9DX DG9 9DY DG9 9DZ DG9 9EA DG9 9EB DG9 9ED DG9 9EE DG9 9EF DG9 9EG DG9 9EH DG9 9EN DG9 9EQ DG9 9ES DG9 9ET DG9 9EU DG9 9EX DG9 9HA DG9 9HB DG9 9HD DG9 9HE DG9 9HF DG9 9HG DG9 9HH DG9 9HJ DG9 9HL DG9 9HN DG9 9HP DG9 9HQ DG9 9HR DG9 9HS DG9 9HW DG9 9JA DG9 9JB DG9 9JD DG9 9JE DG9 9JF DG9 9JG DG9 9JH DG9 9JJ DG9 9JL DG9 9JN DG9 9JP DG9 9JQ DG9 9JR DG9 9JS DG9 9JT DG9 9JU DG9 9JW DG9 9JX DG9 9JY DG9 9JZ DG9 9LA DG9 9LB DG9 9LD DG9 9LE DG9 9LF DG9 9LG DG9 9LH DG9 9LJ DG9 9LL DG9 9LQ DG9 9LS DG9 9LT DG9 9LU DG9 9LX DG9 7RA DG9 7RB DG9 7RD DG9 7RE DG9 7RF DG9 7RH DG9 7RJ DG9 7RL DG9 7RN DG9 7RP DG9 7RQ DG9 7RR DG9 7RS DG9 7RT DG9 7RW DG9 7RX DG9 7RY DG9 7RZ DG9 7SA DG9 7SB DG9 7SD DG9 7SE DG9 7SF DG9 7SG DG9 7SJ DG9 7SL DG9 7SN DG9 7SP DG9 7SQ DG9 7SR DG9 7SS DG9 7ST DG9 7SU DG9 7SW DG9 7SX DG9 7SY DG9 7SZ DG9 7TA DG9 7TB DG9 7TE DG9 7TF DG9 7TG DG9 7TH DG9 7TJ DG9 7TL DG9 7TN DG9 7TP DG9 7TQ DG9 7TR DG9 7TS DG9 7TT DG9 7TU DG9 7TW DG9 7TY DG9 7UD DG9 7UE DG9 7UF DG9 8AA DG9 8AB DG9 8AD DG9 8AE DG9 8AF DG9 8AG DG9 8AH DG9 8AJ DG9 8AN DG9 8AP DG9 8AQ DG9 8AR DG9 8AS DG9 8AT DG9 8AU DG9 8AW DG9 8AX DG9 8AY DG9 8AZ DG9 8BA DG9 8BB DG9 8BD DG9 8BE DG9 8BF DG9 8BG DG9 8BH DG9 8BJ DG9 8BL DG9 8BN DG9 8BP DG9 8BQ DG9 8BS DG9 8BT DG9 8BU DG9 8BW DG9 8BX DG9 8BY DG9 8BZ DG9 8DA DG9 8DB DG9 8DD DG9 8DE DG9 8DF DG9 8DG DG9 8DH DG9 8DJ DG9 8DL DG9 8DP DG9 8DQ DG9 8DR DG9 8DS DG9 8DT DG9 8DU DG9 8DX DG9 8DY DG9 8ED DG9 8EE DG9 8EG DG9 8EH DG9 8EJ DG9 8EP DG9 8ER DG9 8ES DG9 8ET DG9 8EU DG9 8EX DG9 8EY DG9 8EZ DG9 8HA DG9 8HB DG9 8HG DG9 8HH DG9 8HJ DG9 8HL DG9 8HN DG9 8HP DG9 8HQ DG9 8HT DG9 8HU DG9 8HW DG9 8HX DG9 8HY DG9 8HZ DG9 8JA DG9 8JB DG9 8JD DG9 8JE DG9 8JG DG9 8LA DG9 8LB DG9 8LD DG9 8LE DG9 8LF DG9 8LG DG9 8LH DG9 8LJ DG9 8LN DG9 8LP DG9 8LQ DG9 8LR DG9 8LX DG9 8LY DG9 8LZ DG9 8NA DG9 8NB DG9 8ND DG9 8NE DG9 8NJ DG9 8NL DG9 8NN DG9 8NP DG9 8NR DG9 8NU DG9 8NW DG9 8NX DG9 8NY DG9 8NZ DG9 8PA DG9 8PB DG9 8PD DG9 8PF DG9 8PG DG9 8PH DG9 8PJ DG9 8PL DG9 8PP DG9 8PQ DG9 8PR DG9 8PS DG9 8PT DG9 8PW DG9 8PX DG9 8PY DG9 8PZ DG9 8QA DG9 8QB DG9 8QH DG9 8SA DG9 8SB DG9 8SD DG9 8SE DG9 8SF DG9 8SG DG9 8SH DG9 8SJ DG9 8SL DG9 8SN DG9 8SP DG9 8SQ DG9 8SR DG9 8SU DG9 8SW DG9 8SX DG9 8SY DG9 8SZ DG9 8TA DG9 8TB DG9 8TD DG9 8TE DG9 8TF DG9 8TH DG9 8TJ DG9 8TL DG9 8TN DG9 8TP DG9 9LY DG9 9LZ DG9 9NA DG9 9NB DG9 9ND DG9 9NE DG9 9NF DG9 9NG DG9 9NH DG9 9NJ DG9 9NL DG9 9NN DG9 9NP DG9 9NQ DG9 9NR DG9 9NS DG9 9NT DG9 9NU DG9 9NW DG9 9NX DG9 9NY DG9 9NZ DG9 9PA DG9 9PB DG9 9PD DG9 9PE DG9 9PF DG9 9PG DG9 9PH DG9 9PJ DG9 9PQ DG9 9PS DG9 9PT DG9 9PU DG9 9PX DG9 9PY DG9 9PZ DG9 9QA DG9 9QD DG9 9QE DG9 9QF DG9 9QG DG9 9QL DG9 9QN DG9 9QP DG9 9QQ DG9 9QR DG9 9QS DG9 9QT DG9 9QU DG9 9QW DG9 9QX DG9 9QY DG9 9QZ DG9 9RB DG9 9RD DG9 9WT DG9 9WW ML12 6FR ML12 6UH ML12 6UJ ML12 6UN ML12 6UP ML12 6UR ML12 6UT ML12 6UU ML12 6UW ML12 6UX ML12 6UY ML12 6UZ ML12 6WT ML12 6XA ML12 6XB ML12 6XD ML12 6XE ML12 6XF ML12 6XG ML12 6XH ML12 6XJ ML12 6XL ML12 6XQ DG11 3HS DG12 5LG DG12 5RW DG12 6AE DG12 6AH DG12 6AX DG12 6BL DG12 6BP DG12 6NP DG12 6PL DG12 6RE DG12 6TA DG13 0ED DG13 0EL DG13 0JA DG13 0JJ DG13 0JU DG13 0LA DG13 0LX DG13 0PH DG14 0RG DG2 0BS DG2 0LH DG2 0LN DG2 0NA DG2 0NT DG2 0NX DG2 0NY DG2 0PX DG2 0RN DG2 0SQ DG2 0UQ DG2 7BN DG2 7BQ DG2 7DP DG2 7EG DG2 7HD DG2 7HP DG2 7HW DG2 7SG DG2 8BA DG2 8NT DG2 8PG DG2 8PQ DG2 9AJ DG2 9AT DG2 9BB DG2 9BJ DG2 9DA DG2 9DU DG2 9DY DG2 9HD DG2 9SW DG3 4AA DG3 4DT DG3 4EP DG3 4HG DG3 4JH DG3 4LW DG3 5DE DG3 5DU DG3 5HF DG3 5HS DG3 5LR DG3 5LT DG4 6BE DG4 6DD DG4 6EA DG4 6EE DG4 6HP CA6 5AA CA6 5AB CA6 5AD CA6 5AE CA6 5AF CA6 5AG CA6 5AH CA6 5AJ CA6 5AL CA6 5AN CA6 5AP CA6 5AQ CA6 5AR CA6 5AS CA6 5AT CA6 5AU CA6 5AW CA6 5AX CA6 5AY CA6 5AZ CA6 5BA CA6 5BB CA6 5BD CA6 5BE CA6 5BG CA6 5BH CA6 5BJ CA6 5BL CA6 5BN CA6 5BP CA6 5BQ CA6 5BS CA6 5BT CA6 5BU CA6 5BW CA6 5BX CA6 5BY CA6 5BZ CA6 5DA CA6 5DB CA6 5DD CA6 5DE CA6 5DF CA6 5DG CA6 5DH CA6 5DJ CA6 5DL CA6 5DN CA6 5DP CA6 5DQ CA6 5DR CA6 5DS CA6 5DT CA6 5DU CA6 5DW CA6 5DX CA6 5DY CA6 5DZ CA6 5EA CA6 5EB CA6 5ED CA6 5EE CA6 5EF CA6 5EG CA6 5EH CA6 5EJ CA6 5EL CA6 5EN CA6 5EP CA6 5EQ CA6 5ER CA6 5ES CA6 5ET CA6 5EU CA6 5EW CA6 5EX CA6 5EY CA6 5EZ CA6 5HA CA6 5HB CA6 5HD CA6 5HE CA6 5HF CA6 5HG CA6 5HH CA6 5HJ CA6 5HL CA6 5HN CA6 5HP CA6 5HQ CA6 5HR CA6 5HS CA6 5HW CA6 5HX CA6 5HY CA6 5HZ CA6 5JD CA6 5JE CA6 5JF CA6 5JG CA6 5JH CA6 5JJ CA6 5JL CA6 5JN CA6 5JP CA6 5JQ CA6 5JR CA6 5JS CA6 5JT CA6 5JU CA6 5JW CA6 5JX CA6 5JZ CA6 5LA CA6 5LB CA6 5LD CA6 5LE DG1 1AD DG1 1AE DG1 1AU DG1 1BB DG1 1BN DG1 1BQ DG1 1DH DG1 1DN DG1 1DP DG1 1DQ DG1 1LY DG1 1NB DG1 1ND DG1 1NU DG1 1NX DG1 1PH DG1 1PQ DG1 1PY DG1 1QT DG1 1SB DG1 1SN DG1 1TJ DG1 2AF DG1 2AQ DG1 2AS DG1 2AU DG1 2AY DG1 2BB DG1 2BL DG1 2BP DG1 2BW DG1 2BX DG1 2BZ DG1 2DH DG1 2DW DG1 2EA DG1 2EG DG1 2ES DG1 2HW DG1 2LD DG1 1DS DG1 1DY DG1 1DZ DG1 1EE DG1 1EN DG1 1EQ DG1 1ER DG1 1ES DG1 1EY DG1 1EZ DG1 1HQ DG1 1HT DG1 1JS DG1 1LA DG1 1LL DG1 1LQ DG1 1XX DG1 2LW DG1 2NW DG1 2NY DG1 2PT DG1 2PU DG1 2QA DG1 2QJ DG1 2QU DG1 2QY DG1 2QZ DG1 2RD DG1 2RG DG1 2RJ DG1 2SB DG1 3AA DG1 3AF DG1 3BG DG1 3BS DG1 3DH DG1 3EH DG1 3EL DG1 3ER DG1 3HD DG1 3JT DG1 3PZ DG1 3QQ DG1 3TX DG1 4EL DG1 4JD DG1 4SZ DG1 4US DG1 4WQ DG1 4ZA DG1 4ZB DG1 4ZG DG1 4ZH DG1 4ZY DG10 9AF DG10 9AU DG10 9DZ DG10 9EN DG10 9EQ DG10 9EW DG10 9GZ DG10 9NQ DG10 9QD DG10 9QY DG11 1EE DG11 1SD DG11 2BN DG11 2BW DG11 2DD DG11 2HD DG11 2HS DG11 2JN DG11 2JW DG11 2LT DG4 6JR DG4 6LH DG4 6LT DG4 6NF DG4 6NG DG4 6NH DG4 6PJ DG4 6PP DG4 6PS DG4 6PT DG4 6PX DG4 6QD DG4 6QE DG4 6QF DG4 6QG DG4 6RU DG4 6RW DG4 6SQ DG4 6YT DG5 4BD DG5 4JQ DG5 4NG DG5 4UL DG6 4AB DG6 4AY DG6 4DG DG6 4EE DG6 4ET DG6 4LN DG6 4PL DG6 4QX DG6 4RY DG6 4UF DG6 4UQ DG7 1AS DG7 1AW DG7 1DF DG7 1DP DG7 1DY DG7 1HT DG7 1HW DG7 1JR DG7 1JW DG7 1PJ DG7 1PZ DG7 2HN DG7 2NH DG7 3JP DG7 3JR DG7 3JS DG8 0AR DG8 0BP DG8 0ES DG8 0EW DG8 0LQ DG8 0PG DG8 0QS DG8 6BU DG8 6BY DG8 6DP DG8 6ED DG8 6HS DG8 6JP DG8 6JU DG8 6NJ DG8 6NN DG8 6RF DG8 6RG DG8 6SQ DG8 6ST DG8 7AP DG8 7AY DG8 7DD DG8 7DJ DG8 7JD DG8 8LW DG8 8NX DG8 8PA DG8 8PR DG8 8QD DG8 9AE DG8 9AJ DG8 9DG DG8 9LF DG8 9NQ DG8 9PZ DG8 9RW DG8 9SF DG9 0HN DG9 0JG DG9 0JW DG9 0RZ DG9 7DG DG9 7DJ DG9 7DP DG9 7DT DG9 7DY DG9 7EQ DG9 7HG DG9 7HQ DG9 7HZ DG9 7JD DG9 7JR DG9 7JT DG9 7JX DG9 7LE DG9 7NJ DG9 7NR DG9 7NT DG9 7PE DG9 7PF DG9 7PL DG9 7PN DG9 7PP DG9 7PR DG9 7PS DG9 7RG DG9 7RU DG9 7SH DG9 7UA DG9 7UB DG9 8EF DG9 8EL DG9 8EN DG9 8EQ DG9 8JF DG9 8LL DG9 8NH DG9 8PE DG9 8PN DG9 8PU DG9 8RW DG9 8RZ DG9 8TG DG9 8TU DG9 9DS DG9 9DT DG9 9RA ML12 6XN DG1 3FJ DG1 3FR DG1 3FU DG1 3GF DG1 3GJ DG1 3GW DG1 9DW DG11 1UF DG12 6GX DG2 9RG DG3 5JB DG3 5PE DG3 9AA DG5 4FE DG5 4GX DG6 4RE DG6 4RF DG6 4RG DG6 4TB DG7 1LP DG7 2EL DG7 3UJ DG7 3UL DG9 7TZ DG1 3QZ DG2 9RB""" array = array.split('\n') arrayPostCodes = array.copy() arrayBands = [[0 for x in range(8)] for x in range(len(array))] charA = 'A' for i in range(0, len(array)): array[i] = array[i].replace(' ', '+') def Connect2Web(postcode, index): req = urllib.request.Request("http://www.saa.gov.uk/dumgal/search.php?SEARCHED=1&ST&SEARCH_TERM=" + postcode + "&ASSESSOR_ID=dumgal&SEARCH_TABLE=council_tax&x=0&y=0&DISPLAY_COUNT=100#results") resp = urllib.request.urlopen(req) web_pg = resp.read(); #print (web_pg) #regex = "<td style='text-align:center;'>[A-H]</td>" ##localityRegex ="Please select one of the following " localityPattern = re.compile(b"Please select one of the following ") locality = re.findall(localityPattern, web_pg) if (len(locality) != 0): bandList = [] hrefPattern = re.compile(b'\/dumgal\/search\.php\?[^"]*') allLinks = re.findall(hrefPattern, web_pg) for i in range(1, len(allLinks)): allLinks[i] = allLinks[i].decode("utf-8") allLinks[i] = allLinks[i].replace("&amp;", "&") req = urllib.request.Request("http://www.saa.gov.uk" + allLinks[i]) print ("http://www.saa.gov.uk" + allLinks[i]) resp = urllib.request.urlopen(req) web_pg = resp.read() #print (web_pg) pattern = re.compile(b"<td style='text-align:center;'>[A-H]</td>") m = re.findall(pattern, web_pg) #print (m) for i in range (0, len(m)): m[i] = m[i].decode("utf-8") bandList.append(m[i][-6]) for i in range(0, 7): arrayBands[index][i] = bandList.count(chr(ord('A') + i ) ) print (arrayBands[index]) else : pattern = re.compile(b"<td style='text-align:center;'>[A-H]</td>") m = re.findall(pattern, web_pg) for i in range (0, len(m)): m[i] = m[i].decode("utf-8") m[i] = m[i][-6] for i in range(0, 7): arrayBands[index][i] = m.count(chr(ord('A') + i ) ) with open('bands.csv', 'a', newline='') as fp: a = csv.writer(fp, delimiter=',') a.writerow(['Postcode','A','B','C','D','E','F','G','H']) for i in range(0, len(array)): print (i) Connect2Web(array[i], i) a.writerow([arrayPostCodes[i]] + arrayBands[i])
9.491982
197
0.670485
14,919
69,842
3.137945
0.201354
0.001346
0.000897
0.001645
0.013436
0.01288
0.0113
0.00974
0.009185
0.007562
0
0.345271
0.322728
69,842
7,358
198
9.491982
0.644434
0.002778
0
0.00191
0
0.000273
0.969462
0.00289
0
0
0.000337
0
0
1
0.000136
false
0
0.000409
0
0.000546
0.000409
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27f01359cef684cb77d7765f2949602ae6b12597
144
py
Python
weldx/tags/__init__.py
CagtayFabry/weldx
463f949d4fa54b5edafa2268cb862716865a62c2
[ "BSD-3-Clause" ]
13
2020-02-20T07:45:02.000Z
2021-12-10T13:15:47.000Z
weldx/tags/__init__.py
BAMWelDX/weldx
ada4e67fa00cdb80a0b954057f4e685b846c9fe5
[ "BSD-3-Clause" ]
675
2020-02-20T07:47:00.000Z
2022-03-31T15:17:19.000Z
weldx/tags/__init__.py
CagtayFabry/weldx
463f949d4fa54b5edafa2268cb862716865a62c2
[ "BSD-3-Clause" ]
5
2020-09-02T07:19:17.000Z
2021-12-05T08:57:50.000Z
from . import ( aws, base_types, core, debug, equipment, groove, measurement, processes, time, units, )
11.076923
16
0.527778
13
144
5.769231
1
0
0
0
0
0
0
0
0
0
0
0
0.381944
144
12
17
12
0.842697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
27f95209ae17a5c10773b68cf55ddf5434cc7ef2
436
py
Python
src/data/eff_stack_registration.py
daniellepaynter/efficiency_pilot
b37e5e3497a09b136ab221ee365ecff13433b67f
[ "MIT" ]
null
null
null
src/data/eff_stack_registration.py
daniellepaynter/efficiency_pilot
b37e5e3497a09b136ab221ee365ecff13433b67f
[ "MIT" ]
null
null
null
src/data/eff_stack_registration.py
daniellepaynter/efficiency_pilot
b37e5e3497a09b136ab221ee365ecff13433b67f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jun 17 16:23:22 2021 Registers stacks from different timepoints. @author: dpaynter """ ## INPUTS: tiff_file_path = r'I:\Danielle Paynter\InVivoTTTPilots\efficiency_spread_pilot\data\processed\DP_210429\2P\stacks_by_loc_date' ################################### import numpy as np import pystackreg as psr import tifffile as tf from PIL import Image files = tf.imread(tiff_file_path)
21.8
126
0.699541
62
436
4.758065
0.822581
0.054237
0.081356
0
0
0
0
0
0
0
0
0.05277
0.130734
436
20
127
21.8
0.725594
0.298165
0
0
0
0
0.40458
0.358779
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fd705eb5e26a2ac7200c39b8ee0f236eaf04fc7f
5,543
py
Python
vcs_query.py
marvinthepa/vcs_query
e188a1c9e6d9e0329f237f8e7a411bdfb7e8cb56
[ "MIT" ]
null
null
null
vcs_query.py
marvinthepa/vcs_query
e188a1c9e6d9e0329f237f8e7a411bdfb7e8cb56
[ "MIT" ]
2
2018-10-08T16:11:41.000Z
2018-10-17T21:43:46.000Z
vcs_query.py
marvinthepa/vcs_query
e188a1c9e6d9e0329f237f8e7a411bdfb7e8cb56
[ "MIT" ]
1
2018-10-02T19:50:25.000Z
2018-10-02T19:50:25.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- # TODO # documentation # http://www.ietf.org/rfc/rfc2426.txt import vobject, sys, os, re from getopt import gnu_getopt try: import cPickle as pickle except: import pickle import logging vobject_logger = logging.getLogger("vobject.base") logger = logging.getLogger(__name__) import locale language, output_encoding = locale.getdefaultlocale() def main(argv): """ usage: $0 [<options>] [<substr>] only those lines that contain <substr> will be displayed options: -d --vcard-dir= specify directory with vcards -s --starting-matches display lines which start with <substr> first """ vcard_dir = None starting_matches = False opts, args = gnu_getopt(argv, "d:s", ["vcard-dir=","starting-matches"]) for opt, val in opts: if opt == "-d" or opt == "--vcard-dir": vcard_dir = val if opt == "-s" or opt == "--starting-matches": starting_matches = True if vcard_dir is None: sys.exit("please specify a directory with vcards") if not os.path.isdir(vcard_dir): sys.exit("please specify a directory with vcards") pattern = None if len(args) > 0: pattern = args[0].strip().lower() #re.compile(args[0].strip(), re.I) print "vcs_query.py, see http://github.com/marvinthepa/vcs_query" cache = VcardCache(vcard_dir) entries = cache.get_entries() entries.sort(key=str) if starting_matches and pattern: sortfunc = get_sortfunc(pattern) entries.sort(cmp=sortfunc, key=str) for vcard in entries: if len(vcard.mail) > 0: repr = str(vcard) if not pattern or pattern in repr.lower(): #.search(repr): print repr def get_sortfunc(pattern): def sortfunc(a,b): if a.lower().startswith(pattern): if b.lower().startswith(pattern): return 0 else: return -1 else: if b.lower().startswith(pattern): return 1 else: return 0 return sortfunc class VcardCache(object): def __init__(self, vcard_dir): self.cache_dir = os.path.expanduser("~/.cache/") self.pickle_path = os.path.join(self.cache_dir, "vcard_query") self.vcard_dir = vcard_dir self.last_vcard_dir_timestamp, self.vcard_files = self._load() self._update() self._serialize() def _load(self): if os.path.isfile(self.pickle_path): with open(self.pickle_path, "r") as f: return pickle.load(f) else: return 0, {} def _update(self): if get_timestamp(self.vcard_dir) > self.last_vcard_dir_timestamp: paths = os.listdir(self.vcard_dir) paths = [ os.path.join(self.vcard_dir, p) for p in paths ] paths = [ p for p in paths if os.path.isfile(p) ] for key in self.vcard_files.keys(): if key not in paths: del self.vcard_files[key] for path in paths: if not self.vcard_files.has_key(path) or self.vcard_files[path].needs_update(): self.vcard_files[path] = VcardFile(path) self.vcards = [] for vcard_file in self.vcard_files.values(): self.vcards.extend(vcard_file.vcards) def _serialize(self): try: if not os.path.isdir(self.cache_dir): os.mkdir(self.cache_dir) with open(self.pickle_path, "w") as f: pickle.dump((self.last_vcard_dir_timestamp, self.vcard_files), f) except IOError: print "cannot write to cache file " + cache def get_entries(self): return self.vcards class Vcard(object): def __init__(self, component): self.name = "" self.mail = "" if component.contents.has_key("fn"): self.name = component.fn.value if component.contents.has_key("email"): self.mail = component.email.value self.description = "" # TODO? def __str__(self): return self.mail.encode(output_encoding) +\ "\t" + self.name.encode(output_encoding)\ + "\t" + self.description class VcardFile(object): def __init__(self, path): self.path = path self.timestamp = get_timestamp(path) self._read_components(path) def _read_components(self, path): vobject_logger.setLevel(logging.FATAL) with open(path) as f: components = vobject.readComponents(f, ignoreUnreadable=True) self.vcards = [] for component in components: if component.name.lower() == u'vcard': self.vcards.append( Vcard(component) ) # hack to parse full emails for contained vcards: elif component.contents.has_key("vcard"): self.vcards.append( Vcard(component.vcard) ) else: logger.warning("no vcard in component: " + component.name.encode(output_encoding) + "from file " + path ) vobject_logger.setLevel(logging.ERROR) def needs_update(self): return get_timestamp(self.path) > self.timestamp def __str__(self): result = "\n".join(self.vcards) def get_timestamp(path): return os.stat(path).st_mtime if __name__ == "__main__": main(sys.argv[1:])
32.040462
95
0.586686
682
5,543
4.607038
0.265396
0.043285
0.035646
0.016232
0.18937
0.105347
0.063335
0.050286
0
0
0
0.004132
0.301461
5,543
172
96
32.226744
0.807335
0.03554
0
0.129771
0
0
0.062955
0
0
0
0
0.011628
0
0
null
null
0
0.045802
null
null
0.022901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
fd736c7008ee0e96fc5b1f5d6dab38473cb6f2df
664
py
Python
python/kegen.py
ucanlab/beebit-cpabe-sdk
1bcd9397ccce006bddac208471cd3fcc355af01f
[ "Apache-2.0" ]
7
2019-03-11T09:54:00.000Z
2021-12-29T03:50:24.000Z
python/kegen.py
ucanlab/beebit-cpabe-sdk
1bcd9397ccce006bddac208471cd3fcc355af01f
[ "Apache-2.0" ]
1
2018-02-17T16:20:46.000Z
2018-02-17T16:20:46.000Z
python/kegen.py
ucanlab/beebit-cpabe-sdk
1bcd9397ccce006bddac208471cd3fcc355af01f
[ "Apache-2.0" ]
6
2017-12-12T04:53:32.000Z
2018-04-18T10:09:43.000Z
import sys import pycpabe argc = len(sys.argv) if argc < 6: print("Usage: keygen [sk] [pk] [mk] [no] [a1] ... [aN]") print("sk: path to generate secret key") print("pk: path to public key") print("mk: path to master key") print("no: number of attributeds in generated secret key") print("a1 ... aN: attributes") sys.exit() sk = sys.argv[1] pk = sys.argv[2] mk = sys.argv[3] no = int(sys.argv[4]) attrs = [] for i in range(5,5+no): print("Attribite %d: %s" % (i-5, sys.argv[i])) attrs.append(sys.argv[i]) if pycpabe.cpabe_vkeygen(sk, pk, mk, no, attrs) == -1: print("Keygen failed!") sys.exit() print("Keygen success!") print("Secret key: %s" % sk)
22.133333
59
0.63253
116
664
3.612069
0.422414
0.116945
0.02864
0.038186
0
0
0
0
0
0
0
0.01982
0.164157
664
29
60
22.896552
0.735135
0
0
0.083333
1
0.041667
0.378012
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.416667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
fd798a58c2bc55eee997e747a7a5d9b13b5d8cf2
294
py
Python
app/test/db_client_test.py
gcatanese/1-2-3-Heroku-Docker-Python-MongoDB
25de742f550acd2d20d13603fc21f3514fc235ee
[ "Apache-2.0" ]
null
null
null
app/test/db_client_test.py
gcatanese/1-2-3-Heroku-Docker-Python-MongoDB
25de742f550acd2d20d13603fc21f3514fc235ee
[ "Apache-2.0" ]
2
2021-04-05T04:54:46.000Z
2021-12-08T04:10:15.000Z
app/test/db_client_test.py
gcatanese/1-2-3-Heroku-Docker-Python-MongoDB
25de742f550acd2d20d13603fc21f3514fc235ee
[ "Apache-2.0" ]
null
null
null
import unittest from dao.db_client import * class DbClientTest(unittest.TestCase): def test_get_user_by_name(self): ret = get_user_by_name('test') self.assertIsNotNone(ret) def test_add_user(self): ret = add_user('test') self.assertIsNotNone(ret)
17.294118
38
0.676871
39
294
4.820513
0.487179
0.074468
0.095745
0.138298
0
0
0
0
0
0
0
0
0.227891
294
16
39
18.375
0.828194
0
0
0.222222
0
0
0.027211
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
fd898cb49a8d16e5ce64ff3cfc5b012aa17653e0
120
py
Python
datacatalog/views/experiment_view/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
datacatalog/views/experiment_view/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
datacatalog/views/experiment_view/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
AUTHOR = 'vaughn@tacc.utexas.edu' MONGODB_VIEW_NAME = 'experiment_view' DESCRIPTION = 'Experiment and parental lineage'
30
47
0.8
15
120
6.2
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.1
120
3
48
40
0.861111
0
0
0
0
0
0.566667
0.183333
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fd9a15662f26439202f6fd02f0cd801d8975a296
1,325
py
Python
to_do_backend/to_do_api/views.py
paul3bin/To-Do-App
0e09c5d095448bcd3cfa467b2cef27df2ec30148
[ "MIT" ]
null
null
null
to_do_backend/to_do_api/views.py
paul3bin/To-Do-App
0e09c5d095448bcd3cfa467b2cef27df2ec30148
[ "MIT" ]
null
null
null
to_do_backend/to_do_api/views.py
paul3bin/To-Do-App
0e09c5d095448bcd3cfa467b2cef27df2ec30148
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from . import serializers, models from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.authtoken.models import Token from rest_framework.response import Response # Create your views here. class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all() serializer_class = serializers.UserSerializer permission_classes = (AllowAny, ) def get_queryset(self): return super().get_queryset().filter(id=self.request.user.id) class ToDoViewSet(viewsets.ModelViewSet): queryset = models.ToDo.objects.all() serializer_class = serializers.ToDoSerializer authentication_classes = (TokenAuthentication, ) permission_classes = (IsAuthenticated, ) def get_queryset(self): return super().get_queryset().filter(user = self.request.user) class CustomObtainAuthToken(ObtainAuthToken): def post(self, request, *args, **kwargs): response = super(CustomObtainAuthToken, self).post(request, *args, **kwargs) token = Token.objects.get(key=response.data['token']) return Response({'token': token.key, 'id': token.user_id})
38.970588
84
0.765283
148
1,325
6.743243
0.344595
0.048096
0.102204
0.052104
0.164329
0.092184
0.092184
0.092184
0.092184
0
0
0
0.138868
1,325
34
85
38.970588
0.874671
0.017358
0
0.076923
0
0
0.009224
0
0
0
0
0
0
1
0.115385
false
0
0.307692
0.076923
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fda1890916a8f541b2ac70b4744cb6a065959821
735
py
Python
networks/mq.py
Gleamo/gleamo-device
6b7c24ad1683e931cacf2ce9c5aa8d3b16616503
[ "BSD-2-Clause" ]
1
2017-05-02T15:15:03.000Z
2017-05-02T15:15:03.000Z
networks/mq.py
Gleamo/gleamo-python
6b7c24ad1683e931cacf2ce9c5aa8d3b16616503
[ "BSD-2-Clause" ]
4
2017-05-02T13:50:15.000Z
2017-05-02T16:12:38.000Z
networks/mq.py
Gleamo/gleamo-python
6b7c24ad1683e931cacf2ce9c5aa8d3b16616503
[ "BSD-2-Clause" ]
null
null
null
import queue as Queue from .inetwork import INetwork from .mq_subscriber import MQSubscriber ''' Message Queue class This is a robust network class that provides a connection to an endpoint. Data will be pushed to the device. The `get_poll_interval` is set to 1 millisecond since it has no cost to get commands from the network ''' class MQ(INetwork): def __init__(self, endpoint, username, password): self.queue = Queue.Queue() self.subscriber = MQSubscriber(endpoint, username, password, self.queue) self.subscriber.start() def check(self): try: return self.queue.get(False) except Queue.Empty: return None def get_poll_interval(self): return 1
26.25
80
0.695238
101
735
4.970297
0.514851
0.053785
0.059761
0.111554
0.131474
0
0
0
0
0
0
0.003559
0.235374
735
27
81
27.222222
0.88968
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.133333
0.2
0.066667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fdc113e35158113bbb654628b4dec4d8d8b4b992
631
py
Python
mapclientplugins/scaffoldfiniteelementmeshfitterstep/handler/datapointhandlerbase.py
mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep
b35f6c0b2e264e2913d0a1c432bf89c7b329bf52
[ "Apache-2.0" ]
null
null
null
mapclientplugins/scaffoldfiniteelementmeshfitterstep/handler/datapointhandlerbase.py
mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep
b35f6c0b2e264e2913d0a1c432bf89c7b329bf52
[ "Apache-2.0" ]
null
null
null
mapclientplugins/scaffoldfiniteelementmeshfitterstep/handler/datapointhandlerbase.py
mahyar-osn/mapclientplugins.scaffoldfiniteelementmeshfitterstep
b35f6c0b2e264e2913d0a1c432bf89c7b329bf52
[ "Apache-2.0" ]
null
null
null
from opencmiss.zinchandlers.keyactivatedhandler import KeyActivatedHandler class DataPointHandlerBase(KeyActivatedHandler): def __init__(self, key_code): super(DataPointHandlerBase, self).__init__(key_code) self._model = None self._active_node = None def set_model(self, model): self._model = model def enter(self): pass def leave(self): pass def _get_ray(self, x, y): near_plane_point = self._scene_viewer.unproject(x, -y, 1.0) far_plane_point = self._scene_viewer.unproject(x, -y, -1.0) return [near_plane_point, far_plane_point]
26.291667
74
0.678288
78
631
5.115385
0.448718
0.100251
0.070175
0.095238
0.190476
0.190476
0.190476
0.190476
0.190476
0.190476
0
0.00823
0.229794
631
23
75
27.434783
0.812757
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.3125
false
0.125
0.0625
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
fdcd6236e3d9fb6e3100fe65a905a0a5e86845ae
11,163
py
Python
app/models.py
pitrho/motorsports-historic-data-api
93fc34ba1bd5ee63be301121a6446dfa9d99799f
[ "MIT" ]
5
2015-01-25T05:28:42.000Z
2019-02-26T01:09:53.000Z
app/models.py
pitrho/motorsports-historic-data-api
93fc34ba1bd5ee63be301121a6446dfa9d99799f
[ "MIT" ]
null
null
null
app/models.py
pitrho/motorsports-historic-data-api
93fc34ba1bd5ee63be301121a6446dfa9d99799f
[ "MIT" ]
null
null
null
from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy.dialects.postgresql import HSTORE from sqlalchemy.ext.mutable import MutableDict db = SQLAlchemy() PersonType = db.Enum('driver', 'team-owner', 'crew-chief', 'vehicle-owner', 'team-principal', 'technical-chief', 'race-engineer', name='person_types') class Person(db.Model): __tablename__ = 'people' id = db.Column(db.Integer, primary_key=True, autoincrement=True) name = db.Column(db.String(100), nullable=False) country = db.Column(db.String(50), nullable=False) class Series(db.Model): __tablename__ = 'series' id = db.Column(db.String(5), primary_key=True) description = db.Column(db.String(50), nullable=True) class Team(db.Model): __tablename__ = 'teams' id = db.Column(db.String(50), primary_key=True) name = db.Column(db.String(50), nullable=False) alias = db.Column(db.String(50), nullable=False) owner_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) races = db.relationship('Race', secondary='race_results') owner = db.relationship('Person', primaryjoin=owner_id == Person.id) class Vehicle(db.Model): __tablename__ = 'vehicles' id = db.Column(db.Integer, primary_key=True, autoincrement=True) number = db.Column(db.Integer, nullable=False) owner_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=True) vehicle_metadata = db.Column(MutableDict.as_mutable(HSTORE), nullable=False) races = db.relationship('Race', secondary='race_results') owner = db.relationship('Person', primaryjoin=owner_id == Person.id) class DriverStanding(db.Model): __tablename__ = 'driver_standings' id = db.Column(db.Integer, primary_key=True, autoincrement=True) driver_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) series = db.Column(db.String(5), db.ForeignKey('series.id'), nullable=False) season = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) points = db.Column(db.Integer, nullable=False) poles = db.Column(db.Integer, nullable=False) wins = db.Column(db.Integer, nullable=False) starts = db.Column(db.Integer, nullable=False) dnfs = db.Column(db.Integer, nullable=False) top5 = db.Column(db.Integer, nullable=False) top10 = db.Column(db.Integer, nullable=False) driver = db.relationship('Person') vehicle = db.relationship('Vehicle') class TeamStanding(db.Model): __tablename__ = 'team_standings' id = db.Column(db.Integer, primary_key=True, autoincrement=True) team_id = db.Column(db.String(50), db.ForeignKey('teams.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) series = db.Column(db.String(5), db.ForeignKey('series.id'), nullable=False) season = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) points = db.Column(db.Integer, nullable=False) poles = db.Column(db.Integer, nullable=False) team = db.relationship('Team') vehicle = db.relationship('Vehicle') class OwnerStanding(db.Model): __tablename__ = 'owner_standings' id = db.Column(db.Integer, primary_key=True, autoincrement=True) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) series = db.Column(db.String(5), db.ForeignKey('series.id'), nullable=False) season = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) points = db.Column(db.Integer, nullable=False) vehicle = db.relationship('Vehicle') class RaceTrack(db.Model): __tablename__ = 'race_tracks' id = db.Column(db.Integer, primary_key=True, autoincrement=True) site = db.Column(db.String(50), nullable=False) circuit_name = db.Column(db.String(100), nullable=False) city = db.Column(db.String(50), nullable=False) state = db.Column(db.String(2), nullable=True) country = db.Column(db.String(50), nullable=False) class Race(db.Model): __tablename__ = 'races' id = db.Column(db.String(50), primary_key=True) round = db.Column(db.Integer, nullable=False) name = db.Column(db.String(100), nullable=False) season = db.Column(db.Integer, nullable=False) race_track_id = db.Column(db.Integer, db.ForeignKey('race_tracks.id'), nullable=False) date = db.Column(db.DateTime, nullable=False) laps = db.Column(db.Integer, nullable=False) length = db.Column(db.Numeric(5, 3), nullable=False) distance = db.Column(db.Numeric(5, 1), nullable=False) series = db.Column(db.String(5), db.ForeignKey('series.id'), nullable=False) race_types = db.relationship('RaceType', secondary='races_types') race_track = db.relationship('RaceTrack') class RaceType(db.Model): __tablename__ = 'race_types' id = db.Column(db.String(5), primary_key=True) description = db.Column(db.String(50), nullable=True) class RacesTypes(db.Model): __tablename__ = 'races_types' race_id = db.Column(db.String(50), db.ForeignKey('races.id'), primary_key=True) race_type = db.Column(db.String(5), db.ForeignKey('race_types.id'), primary_key=True) class RaceStanding(db.Model): __tablename__ = 'race_standings' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_id = db.Column(db.String(50), db.ForeignKey('races.id'), nullable=False) race_time = db.Column(db.Time, nullable=False) caution_flags = db.Column(db.Integer, nullable=False) caution_flag_laps = db.Column(db.Integer, nullable=False) lead_changes = db.Column(db.Integer, nullable=False) pole_speed = db.Column(db.Numeric(6, 3), nullable=False) avg_speed = db.Column(db.Numeric(6, 3), nullable=False) victory_margin = db.Column(db.Numeric(6, 3), nullable=False) class RaceEntryType(db.Model): __tablename__ = 'race_entry_types' id = db.Column(db.Integer, primary_key=True, autoincrement=True) entry_type = db.Column(db.String(50), nullable=False) class RaceEntry(db.Model): __tablename__ = 'race_entries' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_id = db.Column(db.String(50), db.ForeignKey('races.id'), nullable=False) team_id = db.Column(db.String(50), db.ForeignKey('teams.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) entry_type_id = db.Column(db.Integer, db.ForeignKey('race_entry_types.id'), nullable=False) race = db.relationship('Race') team = db.relationship('Team') vehicle = db.relationship('Vehicle') entry_type = db.relationship('RaceEntryType') people = db.relationship('RaceEntryPerson') class RaceEntryPerson(db.Model): __tablename__ = 'race_entries_people' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_entry_id = db.Column(db.Integer, db.ForeignKey('race_entries.id'), nullable=False) person_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) type = db.Column(PersonType, nullable=False) person = db.relationship('Person') race_entry = db.relationship('RaceEntry') class RaceResult(db.Model): __tablename__ = 'race_results' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_id = db.Column(db.String(50), db.ForeignKey('races.id'), nullable=False) team_id = db.Column(db.String(50), db.ForeignKey('teams.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) sponsor = db.Column(db.String(100), nullable=False) grid = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) laps = db.Column(db.Integer, nullable=False) status = db.Column(db.String(50), nullable=False) laps_led = db.Column(db.Integer, nullable=False) points = db.Column(db.Integer, nullable=False) money = db.Column(db.Numeric(10, 2), nullable=False) race = db.relationship('Race') team = db.relationship('Team') vehicle = db.relationship('Vehicle') people = db.relationship('RaceResultPerson') class RaceResultPerson(db.Model): __tablename__ = 'race_results_people' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_result_id = db.Column(db.Integer, db.ForeignKey('race_results.id'), nullable=False) person_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) type = db.Column(PersonType, nullable=False) person = db.relationship('Person') race_result = db.relationship('RaceResult') class QualifyingResult(db.Model): __tablename__ = 'qualifying_results' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_id = db.Column(db.String(50), db.ForeignKey('races.id'), nullable=False) team_id = db.Column(db.String(50), db.ForeignKey('teams.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) session = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) lap_time = db.Column(db.Numeric(6, 3), nullable=False) race = db.relationship('Race') team = db.relationship('Team') vehicle = db.relationship('Vehicle') people = db.relationship('QualifyingResultPerson') class QualifyingResultPerson(db.Model): __tablename__ = 'qualifying_results_people' id = db.Column(db.Integer, primary_key=True, autoincrement=True) qualifying_result_id = db.Column(db.Integer, db.ForeignKey('qualifying_results.id'), nullable=False) person_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) type = db.Column(PersonType, nullable=False) person = db.relationship('Person') qualifying_result = db.relationship('QualifyingResult') class PracticeResult(db.Model): ___tablename__ = 'practice_results' id = db.Column(db.Integer, primary_key=True, autoincrement=True) race_id = db.Column(db.String(50), db.ForeignKey('races.id'), nullable=False) team_id = db.Column(db.String(50), db.ForeignKey('teams.id'), nullable=False) vehicle_id = db.Column(db.Integer, db.ForeignKey('vehicles.id'), nullable=False) session = db.Column(db.Integer, nullable=False) position = db.Column(db.Integer, nullable=False) lap_time = db.Column(db.Numeric(6, 3), nullable=False) race = db.relationship('Race') team = db.relationship('Team') vehicle = db.relationship('Vehicle') people = db.relationship('PracticeResultPerson') class PracticeResultPerson(db.Model): __tablename__ = 'practice_results_people' id = db.Column(db.Integer, primary_key=True, autoincrement=True) practice_result_id = db.Column(db.Integer, db.ForeignKey(PracticeResult.id), nullable=False) person_id = db.Column(db.Integer, db.ForeignKey('people.id'), nullable=False) type = db.Column(PersonType, nullable=False) person = db.relationship('Person') practice_result = db.relationship('PracticeResult')
36.720395
104
0.710741
1,488
11,163
5.196909
0.084677
0.122074
0.146127
0.149489
0.781197
0.739946
0.706194
0.675546
0.619553
0.573257
0
0.008994
0.14342
11,163
303
105
36.841584
0.799728
0
0
0.5
0
0
0.094688
0.008152
0
0
0
0
0
1
0
false
0
0.014851
0
0.985149
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fdd60edeb435491ad121cfa84e7478cb249234a6
335
py
Python
main.py
rgooler/python3_skel
2df25c9ae1fce67d810b3d25df587fb3b1ced922
[ "BSD-3-Clause" ]
null
null
null
main.py
rgooler/python3_skel
2df25c9ae1fce67d810b3d25df587fb3b1ced922
[ "BSD-3-Clause" ]
null
null
null
main.py
rgooler/python3_skel
2df25c9ae1fce67d810b3d25df587fb3b1ced922
[ "BSD-3-Clause" ]
null
null
null
import yaml import time from datetime import datetime try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper if __name__ == "__main__": with open("config.yml") as fh: config = yaml.load(fh, Loader=Loader) print(f"{str(datetime.now())} Hello World!")
25.769231
57
0.695522
47
335
4.787234
0.595745
0.133333
0.124444
0
0
0
0
0
0
0
0
0
0.20597
335
13
58
25.769231
0.845865
0
0
0
0
0
0.154762
0.0625
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fdee24ed62fb4e8dc2c179a7312028ccb38b97ad
494
py
Python
tp_screening/forms/in_eligible_subject_form.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
tp_screening/forms/in_eligible_subject_form.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
tp_screening/forms/in_eligible_subject_form.py
MoffatMore/tp-screening
20a98ba6fc57118968e507bdf5861cbdcada1848
[ "MIT" ]
null
null
null
''' Created on Jun 21, 2018 @author: moffat ''' from django import forms from edc_form_validators import FormValidatorMixin from tp_screening.form_validator.in_eligible_subject_form_validator import IneligibleSubjectFormValidator from ..models.in_eligible_subject import IneligibleSubject class IneligibleSubjectForm(FormValidatorMixin, forms.ModelForm): form_validator_cls = IneligibleSubjectFormValidator class Meta: model = IneligibleSubject fields = '__all__'
24.7
105
0.809717
51
494
7.529412
0.627451
0.101563
0.088542
0
0
0
0
0
0
0
0
0.014118
0.139676
494
19
106
26
0.889412
0.080972
0
0
0
0
0.015695
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fdee6450fa3fad1a8a161a89e130ad107b6509d9
1,066
py
Python
lib/bes/git/git_clone_manager.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/git/git_clone_manager.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
lib/bes/git/git_clone_manager.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import os.path as path from bes.common.check import check from bes.common.string_util import string_util from bes.fs.file_util import file_util from bes.fs.temp_file import temp_file from .git import git from .git_address_util import git_address_util from .git_repo import git_repo from .git_clone_options import git_clone_options class git_clone_manager(object): 'Manage a collection of repos under one root dir with conveniences.' def __init__(self, root_dir): self.root_dir = path.expanduser(root_dir) def update(self, address, options = None): 'Update the repo.' repo_path = self.path_for_address(address) repo = git_repo(repo_path, address = address) repo.clone_or_pull(options = options) return repo def path_for_address(self, address): 'Return path for local tarball.' return path.join(self.root_dir, git_address_util.sanitize_for_local_path(address)) check.register_class(git_clone_manager, include_seq = False)
33.3125
90
0.765478
170
1,066
4.541176
0.382353
0.045337
0.054404
0.033679
0
0
0
0
0
0
0
0.003304
0.148218
1,066
31
91
34.387097
0.846916
0.19137
0
0
0
0
0.114754
0
0
0
0
0
0
1
0.130435
false
0
0.391304
0
0.652174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fdfdbbb9da56e434da810097dcee82b1a4253981
917
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_varient_1}}/src/templates/index.py
Softyy/dash-cli
906c82e1d18ea1ba059e78ed198a3e7d62853605
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_varient_1}}/src/templates/index.py
Softyy/dash-cli
906c82e1d18ea1ba059e78ed198a3e7d62853605
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_varient_1}}/src/templates/index.py
Softyy/dash-cli
906c82e1d18ea1ba059e78ed198a3e7d62853605
[ "MIT" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html from plotly import graph_objs as go def render(): return html.Div(children=[ html.H1(children='{{cookiecutter.project_slug}}'), html.Div(children='Dash: A web application framework for Python.'), dcc.Graph( id='example-graph', figure=go.Figure( data=[ go.Bar( x=[1, 2, 3], y=[4, 1, 2], name='SF' ), { 'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': u'Montréal' }, ], layout=go.Layout( title='Dash Data Visualization' ) ) ) ])
26.2
75
0.370774
82
917
4.073171
0.573171
0.017964
0.08982
0.023952
0.02994
0
0
0
0
0
0
0.029412
0.517993
917
34
76
26.970588
0.726244
0
0
0
0
0
0.145038
0.031625
0
0
0
0
0
1
0.034483
true
0
0.103448
0.034483
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
fdfe937ad22484f86e7599c567f2a955fd0a57b3
2,206
py
Python
Scripts/simulation/reservation/unreserve_object_element.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/reservation/unreserve_object_element.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/reservation/unreserve_object_element.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\reservation\unreserve_object_element.py # Compiled at: 2020-09-08 20:23:33 # Size of source mod 2**32: 2327 bytes from element_utils import CleanupType from interactions.utils.interaction_elements import XevtTriggeredElement from interactions.utils.interaction_liabilities import RESERVATION_LIABILITY from interactions.utils.line_utils import WaitingLineInteractionChainLiability from sims4.tuning.tunable import TunableTuple, OptionalTunable, TunableSimMinute class UnreserveObjectElement(XevtTriggeredElement): FACTORY_TUNABLES = {'timing': TunableTuple(description="\n The behavior should occur at the very beginning of the\n interaction. It will not be tightly synchronized visually with\n animation. This isn't a very common use case and would most\n likely be used in an immediate interaction or to change hidden\n state that is used for bookkeeping rather than visual\n appearance.\n ", offset_time=OptionalTunable(description='\n If enabled, the interaction will wait this amount of time\n after the beginning before running the element.\n\n Only use this if absolutely necessary. Better alternatives\n include using xevts, time based conditional action with\n loot ops, and using outcomes.\n ', tunable=TunableSimMinute(description='The interaction will wait this amount of time after the beginning before running the element', default=2), enabled_by_default=True), locked_args={'timing':XevtTriggeredElement.AT_BEGINNING, 'criticality':CleanupType.NotCritical, 'xevt_id':None, 'supports_failsafe':None})} def _do_behavior(self): self.interaction.remove_liability(RESERVATION_LIABILITY) self.interaction.remove_liability(WaitingLineInteractionChainLiability.LIABILITY_TOKEN) return True
91.916667
463
0.717588
271
2,206
5.763838
0.590406
0.003841
0.040333
0.040973
0.099872
0.099872
0.099872
0.048656
0
0
0
0.038773
0.216682
2,206
24
464
91.916667
0.865162
0.145512
0
0
0
0.125
0.476849
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fdff5a02a99da0639432a83b85e248b241cc85db
3,250
py
Python
examples/04_export_to_mctdh/mctdh_export.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
null
null
null
examples/04_export_to_mctdh/mctdh_export.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
null
null
null
examples/04_export_to_mctdh/mctdh_export.py
oh-fv/vchamtools
80ca39931b47db00cb9ed70e04687fabade20610
[ "MIT" ]
1
2021-01-06T22:02:56.000Z
2021-01-06T22:02:56.000Z
#!/usr/bin/env python3 import numpy as np from vchamtools.vcham import vcham, mctdh # molecular point group pg = 'c2v' # total number of vibrational degrees of freedom n_vibrational_modes = 30 # vertical excitation energies E = {'a1': [0., 4.74412327642684, 6.75995802149102, 7.98600046338684], 'a2': [6.15547861028794], 'b1': [6.43537288149314], 'b2': [6.11882230057693, 6.66745869109101, 7.76702176293909]} # harmonic vibrational frequencies w = {'a1': [], # 276.28, 323.97, 457.14, 691.44, 1067.22, 1188.17, 1347.50, 1357.08, 1555.37, 1673.97, 3257.74 'a2': [144.23, 365.18], # 144.23, 365.18, 487.15, 572.90, 922.85 'b1': [], # 155.89, 295.01, 606.46, 815.81 'b2': []} # 282.30, 487.41, 609.52, 753.74, 998.96, 1262.73, 1284.14, 1555.48, 1673.21, 3244.40 # mode numbers in Mulliken notation, only used for pretty-printing modes = [16, 15] # setting up the VCHAM model H = vcham.VCHAM(w, E, pg) H.modes = modes # model coefficients H.c_gamma[0] = np.array([[0.00100666, 0.00764394], [0. , 0.00439196]]) H.c_gamma[1] = np.array([[-0.01030974, 0.00786163], [ 0. , -0.00048934]]) H.c_gamma[2] = np.array([[-0.01589442, 0.01584065], [ 0. , -0.00657488]]) H.c_gamma[3] = np.array([[-0.0091423 , 0.00906303], [ 0. , -0.00535392]]) H.c_gamma[4] = np.array([[-0.00291493, 0.01090703], [ 0. , -0.01212118]]) H.c_gamma[5] = np.array([[-0.00725866, 0.00288015], [ 0. , -0.02777383]]) H.c_gamma[6] = np.array([[-0.0070627 , 0.007377 ], [ 0. , -0.02669591]]) H.c_gamma[7] = np.array([[-0.01574861, 0.01092143], [ 0. , -0.03177707]]) H.c_gamma[8] = np.array([[-0.00850089, -0.01087097], [ 0. , -0.02034808]]) H.c_sigma[0] = np.array([[2.28342667e-05, 0.], [0., 1.42086097e-05]]) H.c_sigma[1] = np.array([[3.28050837e-05, 0.], [0., 0.]]) H.c_sigma[2] = np.array([[3.97722871e-05, 0.], [0., 0.]]) H.c_sigma[3] = np.array([[2.54563956e-05, 0.], [0., 0.]]) H.c_sigma[4] = np.array([[1.57975811e-05, 1.46426824e-08], [0., 0.]]) H.c_sigma[5] = np.array([[3.45394846e-05, 1.69213447e-05], [0., 7.90136830e-05]]) H.c_sigma[6] = np.array([[3.15968337e-05, 3.23286227e-06], [0., 7.81440537e-05]]) H.c_sigma[7] = np.array([[4.56069598e-05, 1.06314309e-07], [0., 9.67954455e-05]]) H.c_sigma[8] = np.array([[1.96030808e-05, 6.89494213e-05], [0., 3.26132653e-05]]) H.c_lambda[9] = np.array([-0.04000136, 0.2146144 ]) H.c_lambda[16] = np.array([-0.0168688 , 0.10578677]) H.c_lambda[26] = np.array([-0.01850662, 0.05682587]) H.c_lambda[28] = np.array([0.00298991, 0.03596294]) H.c_eta[9] = np.array([[-4.88502771e-05, 4.84869439e-05], [ 4.84869439e-05, -6.32902894e-04]]) H.c_eta[16] = np.array([[-1.59602248e-05, -3.63339631e-05], [-3.63339631e-05, -3.84527179e-04]]) H.c_eta[26] = np.array([[ 2.80109992e-05, 1.54672659e-05], [ 1.54672659e-05, -1.64359380e-04]]) H.c_eta[28] = np.array([[-5.16494867e-05, 5.61996288e-06], [ 5.61996288e-06, -1.58438857e-04]]) # states to include in MCTDH export states = [1,2,4] print(mctdh.op_parameter_section(H, states)) print(mctdh.op_hamiltonian_section(H, states))
37.790698
110
0.594462
537
3,250
3.538175
0.392924
0.027368
0.054737
0.018947
0.052105
0.018947
0.018947
0
0
0
0
0.399549
0.180615
3,250
85
111
38.235294
0.313932
0.167692
0
0.060606
0
0
0.007058
0
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8bfa7e856e132c8679f0741aaf186c42a5d87197
894
py
Python
checksums.py
cdeitrick/sequence_delivery_workflow
50f0256d30e50f4c71f6737f937a638ac3ea992c
[ "MIT" ]
null
null
null
checksums.py
cdeitrick/sequence_delivery_workflow
50f0256d30e50f4c71f6737f937a638ac3ea992c
[ "MIT" ]
null
null
null
checksums.py
cdeitrick/sequence_delivery_workflow
50f0256d30e50f4c71f6737f937a638ac3ea992c
[ "MIT" ]
null
null
null
import hashlib from pathlib import Path from typing import Any, Union def _generate_checksum(metric: Any, filename: Union[str, Path], blocksize: int = 2 ** 20) -> str: """ Generates the SHA-1 hash of a file. Does not require a lot of memory. Parameters ---------- filename: string The file to generate the md5sum for. blocksize: int; default 2**20 The amount of memory to use when generating the md5sum string. Returns ------- str The md5sum string. """ with open(str(filename), "rb") as f: while True: buf = f.read(blocksize) if not buf: break metric.update(buf) return metric.hexdigest() def generate_file_sha1(filename: Union[str, Path]) -> str: metric = hashlib.sha1() return _generate_checksum(metric, filename) def generate_file_md5(filename: Union[str, Path]) -> str: metric = hashlib.md5() return _generate_checksum(metric, filename)
24.162162
97
0.699105
128
894
4.804688
0.453125
0.053659
0.107317
0.097561
0.234146
0.117073
0.117073
0
0
0
0
0.019231
0.185682
894
36
98
24.833333
0.825549
0.347875
0
0.125
1
0
0.003448
0
0
0
0
0
0
1
0.1875
false
0
0.1875
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
8bfad901b66fa484b22c0e201a0b3921b80890de
383
py
Python
kagi/lower/east/_block.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
kagi/lower/east/_block.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
kagi/lower/east/_block.py
jedhsu/kagi
1301f7fc437bb445118b25ca92324dbd58d6ad2d
[ "MIT" ]
null
null
null
""" *Lower-East Block* ⠨ The lower-east block gi. """ from dataclasses import dataclass from ...._gi import Gi from ..._gi import StrismicGi from ...east import EasternGi from ..._number import BlockGi from .._gi import LowerGi __all__ = ["LowerEastBlock"] @dataclass class LowerEastBlock( Gi, StrismicGi, LowerGi, EasternGi, BlockGi, ): pass
13.206897
33
0.668407
44
383
5.659091
0.431818
0.072289
0.144578
0
0
0
0
0
0
0
0
0
0.224543
383
28
34
13.678571
0.835017
0.125326
0
0
0
0
0.043887
0
0
0
0
0
0
1
0
false
0.0625
0.375
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
e325c5950c3353fc2d03327825c0ae82d3b50837
335
py
Python
Recursion/Fibonacci/Fibonacci_Tail.py
EKChikui/Puzzles
37859045fa8ee4466a9437106ef6e2aa5193d4bf
[ "MIT" ]
null
null
null
Recursion/Fibonacci/Fibonacci_Tail.py
EKChikui/Puzzles
37859045fa8ee4466a9437106ef6e2aa5193d4bf
[ "MIT" ]
null
null
null
Recursion/Fibonacci/Fibonacci_Tail.py
EKChikui/Puzzles
37859045fa8ee4466a9437106ef6e2aa5193d4bf
[ "MIT" ]
null
null
null
def Fibonacci_Tail(n, acc0= 0, acc1= 1): # Base-Case(s): F(0) = 0, F(1) = 1 if(n == 0): return acc0 if(n == 1): return acc1 # Recursion return Fibonacci_Tail(n-1, acc1, acc1+acc0) n = 0 while(n <= 10): get = Fibonacci_Tail(n) print(f"Fibonacci({n}) = {get}") n = n+1
11.166667
47
0.489552
53
335
3.037736
0.358491
0.242236
0.26087
0
0
0
0
0
0
0
0
0.09009
0.337313
335
29
48
11.551724
0.635135
0.125373
0
0
0
0
0.076923
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.363636
0.090909
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e32e9df5bc3a3edc20c784e6be0dc874adf2d7a6
127
py
Python
test.py
Boa-Thomas/Eletricidade
7cbd62f2d56cbb1430ed0b8818ffc878b480b3c1
[ "MIT" ]
null
null
null
test.py
Boa-Thomas/Eletricidade
7cbd62f2d56cbb1430ed0b8818ffc878b480b3c1
[ "MIT" ]
null
null
null
test.py
Boa-Thomas/Eletricidade
7cbd62f2d56cbb1430ed0b8818ffc878b480b3c1
[ "MIT" ]
2
2022-02-16T00:08:07.000Z
2022-03-07T13:43:37.000Z
import math import cmath as cm zn = complex(12,76) print(zn) znp = cm.polar(zn) print(znp) print(znp[0],znp[1]*180/math.pi)
11.545455
32
0.685039
26
127
3.346154
0.615385
0.183908
0
0
0
0
0
0
0
0
0
0.082569
0.141732
127
10
33
12.7
0.715596
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.428571
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e33cdebf829a86a559006f4a87f9193b59a0fc07
1,219
py
Python
sk_typing/typing.py
thomasjpfan/sk_typing
e6aacfedbce44d7748cf7c49cd2b949952f2e427
[ "MIT" ]
1
2021-02-19T20:57:36.000Z
2021-02-19T20:57:36.000Z
sk_typing/typing.py
thomasjpfan/sk_typing
e6aacfedbce44d7748cf7c49cd2b949952f2e427
[ "MIT" ]
null
null
null
sk_typing/typing.py
thomasjpfan/sk_typing
e6aacfedbce44d7748cf7c49cd2b949952f2e427
[ "MIT" ]
null
null
null
import numpy as np from joblib import Memory import typing from typing import Union from typing import Iterator from typing import Tuple from typing import TypeVar try: import typing_extensions # noqa TYPING_EXTENSION_INSTALLED = True except ImportError: TYPING_EXTENSION_INSTALLED = False if typing.TYPE_CHECKING or TYPING_EXTENSION_INSTALLED: from typing_extensions import Protocol # noqa class CVSplitter(Protocol): def get_n_splits(self): """Get the number of splits.""" def split(self, X, y=None, groups=None): """Split data""" else: CVSplitter = TypeVar("CVSplitter") # typing: ignore if typing.TYPE_CHECKING or TYPING_EXTENSION_INSTALLED: from typing_extensions import Literal # noqa else: class _SimpleLiteral: def __getitem__(self, values): return typing.Any Literal = _SimpleLiteral() CVType = Union[int, CVSplitter, Iterator[Tuple[np.ndarray, np.ndarray]], None] ArrayLike = TypeVar("ArrayLike") EstimatorType = TypeVar("EstimatorType") DType = TypeVar("DType") KernelType = TypeVar("KernelType") RandomStateType = Union[int, np.random.RandomState, None] MemoryType = Union[str, Memory, None]
23.901961
78
0.722724
145
1,219
5.931034
0.427586
0.069767
0.074419
0.046512
0.167442
0.167442
0.167442
0.167442
0.167442
0.167442
0
0
0.194422
1,219
50
79
24.38
0.875764
0.054963
0
0.121212
0
0
0.041301
0
0
0
0
0
0
1
0.090909
false
0
0.333333
0.030303
0.515152
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
e340c6ad65802fcb68a49d513de859d3bc4b99d4
434
py
Python
topgun/__init__.py
muntumdwara/TopGun
fc253faa8ac0a7c9b7d000c2ea018bba9c584d27
[ "MIT" ]
null
null
null
topgun/__init__.py
muntumdwara/TopGun
fc253faa8ac0a7c9b7d000c2ea018bba9c584d27
[ "MIT" ]
null
null
null
topgun/__init__.py
muntumdwara/TopGun
fc253faa8ac0a7c9b7d000c2ea018bba9c584d27
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ TopGun @author: Viper """ # Useful Medium post on Python importing within __init__.py # https://towardsdatascience.com/whats-init-for-me-d70a312da583 ### DON'T FORGET TO UPDATE SUB __INIT__.py files ### # General from .utilities import * from .reporting import Reporting # Models from .models import * # Charting from .charting import * # Optimisation from .optimiser import *
17.36
63
0.721198
56
434
5.446429
0.75
0.039344
0
0
0
0
0
0
0
0
0
0.027174
0.152074
434
25
64
17.36
0.80163
0.617512
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
e34e216f1dc75072f0282457e6d2a6921cbfa4b2
2,753
py
Python
pysnmp/Juniper-Notification-Log-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/Juniper-Notification-Log-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/Juniper-Notification-Log-CONF.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Juniper-Notification-Log-CONF (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-Notification-Log-CONF # Produced by pysmi-0.3.4 at Mon Apr 29 19:52:48 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint") juniAgents, = mibBuilder.importSymbols("Juniper-Agents", "juniAgents") AgentCapabilities, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "AgentCapabilities", "ModuleCompliance", "NotificationGroup") Integer32, ModuleIdentity, Counter32, IpAddress, TimeTicks, iso, MibIdentifier, Counter64, Gauge32, Unsigned32, Bits, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "ModuleIdentity", "Counter32", "IpAddress", "TimeTicks", "iso", "MibIdentifier", "Counter64", "Gauge32", "Unsigned32", "Bits", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") juniNotificationLogAgent = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 56)) juniNotificationLogAgent.setRevisions(('2002-09-06 16:54', '2002-03-25 18:22',)) if mibBuilder.loadTexts: juniNotificationLogAgent.setLastUpdated('200209061654Z') if mibBuilder.loadTexts: juniNotificationLogAgent.setOrganization('Juniper Networks, Inc.') juniNotificationLogAgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 56, 1)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniNotificationLogAgentV1 = juniNotificationLogAgentV1.setProductRelease('Version 1 of the Notification Log component of the JUNOSe SNMP agent.\n This version of the Notification Log component is supported in JUNOSe\n 4.1 and subsequent system releases.') if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): juniNotificationLogAgentV1 = juniNotificationLogAgentV1.setStatus('current') mibBuilder.exportSymbols("Juniper-Notification-Log-CONF", PYSNMP_MODULE_ID=juniNotificationLogAgent, juniNotificationLogAgent=juniNotificationLogAgent, juniNotificationLogAgentV1=juniNotificationLogAgentV1)
110.12
477
0.788231
281
2,753
7.715302
0.476868
0.074262
0.030443
0.035978
0.363469
0.245387
0.245387
0.245387
0.245387
0.245387
0
0.062028
0.086451
2,753
24
478
114.708333
0.8
0.127861
0
0.117647
0
0.058824
0.330686
0.030518
0
0
0
0
0
1
0
false
0
0.411765
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
e3642bc92514ad623f50a7a5a69e62c54ec717ee
308
py
Python
cfp/exceptions/__init__.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
null
null
null
cfp/exceptions/__init__.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
6
2021-11-08T08:42:10.000Z
2021-12-16T14:17:58.000Z
cfp/exceptions/__init__.py
cariad/cfp
43336c45cf56abb7e037fa2f139ea86e679e77b0
[ "MIT" ]
null
null
null
from cfp.exceptions.no_resolver import NoResolverError from cfp.exceptions.stack_parameters import StackParametersError class ResolutionError(StackParametersError): pass class ParameterStoreResolutionError(ResolutionError): pass __all__ = [ "NoResolverError", "StackParametersError", ]
18.117647
64
0.801948
25
308
9.64
0.6
0.058091
0.141079
0
0
0
0
0
0
0
0
0
0.136364
308
16
65
19.25
0.906015
0
0
0.2
0
0
0.113636
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
8b532178c09e12cb3095ff8cc0fee63e9127db47
317
py
Python
tests/cases/proxy/models.py
goldenhelix/modeltree
c340295e91589e7da97e7440974f21052aa939b3
[ "BSD-2-Clause" ]
null
null
null
tests/cases/proxy/models.py
goldenhelix/modeltree
c340295e91589e7da97e7440974f21052aa939b3
[ "BSD-2-Clause" ]
null
null
null
tests/cases/proxy/models.py
goldenhelix/modeltree
c340295e91589e7da97e7440974f21052aa939b3
[ "BSD-2-Clause" ]
null
null
null
from django.db import models class Target(models.Model): pass class TargetProxy(Target): class Meta(object): proxy = True class Root(models.Model): standard_path = models.ManyToManyField(Target, related_name='path') proxy_path = models.ManyToManyField(TargetProxy, related_name='proxy')
19.8125
74
0.728707
38
317
5.973684
0.526316
0.096916
0.220264
0
0
0
0
0
0
0
0
0
0.170347
317
15
75
21.133333
0.863118
0
0
0
0
0
0.028391
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.777778
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
8b9375d85f1b110ce7a4383dc4e372c1a8b5e67a
2,669
py
Python
Pywikibot/work/_strip_comments.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
Pywikibot/work/_strip_comments.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
Pywikibot/work/_strip_comments.py
Ketho/WowpediaDoc
4c9388157f3311e1be4c4f8bc5983dd28ab171c4
[ "MIT" ]
null
null
null
import re import read_export import pywikibot comments = { "<!-- or {{wowapievent}}, {{luapi}}, {{widgethandler}}, {{widgetmethod}}, {{framexmlfunc}} -->", "<!-- Describe the purpose of the function as concisely as possible. -->\n", "<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->\n", "<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->\n", "<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->\n", "<!-- List each argument, together with its type -->\n", "<!-- List each argument, together with its type; Remove entire section if the function takes no arguments -->\n", "<!-- List each return value, together with its type -->\n", "<!-- List each return value, together with its type; Remove entire section if the function does not return anything -->\n", "<!-- List API functions, events, HOWTO guides, etc, related to using this function. Remove the section if none are applicable. -->\n", "<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->\n", "<!-- If it helps, include example results here, though they are not required-->\n", "<!-- If it helps, include example results here, though they are not required. You're allowed to cheat liberally since WoW isn't a command line language. -->\n", "<!-- Please read https://wow.gamepedia.com/Wowpedia:External_links_policy before adding new links. -->\n", "<!-- Please read https://wowpedia.fandom.com/Wowpedia:External_links_policy before adding new links. -->\n", "<!-- Details not appropriate for the main description can go here -->\n", "<!-- Details not appropriate for the main description can go here. REMOVE the section if you're just going to restate the intro line! -->\n", "<!-- Details not appropriate for the main description can go here. \n REMOVE the section if you're just going to restate the intro line! -->\n", "<!-- Details not appropriate for the concise description can go here. \n REMOVE the section if you're just going to restate the intro line! -->\n", } def strip_comments(text): for s in comments: text = text.replace(s, "") return text def parse_wikitext(name: str, text: str): if "<!--" in text: new_text = strip_comments(text) if text!=new_text: return new_text def main(): changes = read_export.main(parse_wikitext) site = pywikibot.Site("en", "wowpedia") for l in changes: name, text = l page = pywikibot.Page(site, name) page.text = text page.save("Strip comments") print("done") if __name__ == "__main__": main()
53.38
162
0.699888
396
2,669
4.664141
0.335859
0.016243
0.019491
0.041148
0.539253
0.530049
0.513265
0.479155
0.45046
0.418517
0
0
0.164481
2,669
49
163
54.469388
0.828251
0
0
0
0
0.227273
0.770326
0
0
0
0
0
0
1
0.068182
false
0
0.068182
0
0.181818
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8b937c1ca1f6fe5c6de35b954b449bb33aa45828
448
py
Python
example_app.py
MakeDirtyCode/GitLab-WebHooks
b215155bc475f9175e13fc14313e2eaeafe8d831
[ "MIT" ]
4
2020-10-31T15:20:27.000Z
2021-04-27T18:04:42.000Z
example_app.py
MakeDirtyCode/GitLab-WebHooks
b215155bc475f9175e13fc14313e2eaeafe8d831
[ "MIT" ]
null
null
null
example_app.py
MakeDirtyCode/GitLab-WebHooks
b215155bc475f9175e13fc14313e2eaeafe8d831
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) from webhook_receiver import get_webhooks webhooks = get_webhooks(app, target='gitlab', endpoint='/', token='test') from webhook_receiver import Event @webhooks.route(event=Event.PUSH) def github_push_hook(data): # some task what you want return 'PUSH Success!', 200 @webhooks.route(event=Event.PING) def github_push_hook(data): return 'PONG!', 200 app.run(host='0.0.0.0', port=5000)
22.4
73
0.738839
68
448
4.691176
0.529412
0.018809
0.119122
0.15674
0.131661
0
0
0
0
0
0
0.036082
0.133929
448
19
74
23.578947
0.786082
0.051339
0
0.166667
0
0
0.085308
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.166667
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
8bc391c8785106015394d22f4a0f56a80f36e2af
547
py
Python
combine_app/install.py
sahil19896/combine_app
ef04890f8bc2c2497d39adb1b4ac647f81040efa
[ "MIT" ]
null
null
null
combine_app/install.py
sahil19896/combine_app
ef04890f8bc2c2497d39adb1b4ac647f81040efa
[ "MIT" ]
null
null
null
combine_app/install.py
sahil19896/combine_app
ef04890f8bc2c2497d39adb1b4ac647f81040efa
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from os import system, getcwd, environ, path import frappe import os USER = "/home/" + environ['USER'] FBENCH = path.join(USER, "frappe-bench") APPS = path.join(USER, "frappe-bench/apps") def after_install(): frappe.db.set_default('desktop:home_page', '') frappe.db.commit() print "**************after install by sahil*****************" #os.system( "cp " + path.join(APPS, "combine_app/combine_app/sales_invoice_list.js") + " " + path.join(APPS, "erpnext/erpnext/accounts/doctype/sales_invoice/"))
32.176471
162
0.689214
74
547
4.918919
0.527027
0.087912
0.065934
0.098901
0.148352
0.148352
0
0
0
0
0
0
0.107861
547
16
163
34.1875
0.745902
0.292505
0
0
0
0
0.282383
0.056995
0
0
0
0
0
0
null
null
0
0.363636
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
8bceb09da3064549c51a92b9e19c8ec99c79e448
425
py
Python
common/helpers/json_helper.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
common/helpers/json_helper.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
common/helpers/json_helper.py
Mohammad-Kabajah/django_project
6598668dbc4f8d777ccf716464d259c49d881cd8
[ "Apache-2.0" ]
null
null
null
import json __author__ = 'omar' def str_to_json(value): try: return json.loads(value) except Exception as err: print err return None def json_to_str(value): try: if type(value) == str or type(value) == unicode: return value return json.dumps(value) except Exception as err: print "json_to_str:error", err return None
20.238095
57
0.571765
54
425
4.314815
0.425926
0.06867
0.171674
0.188841
0.257511
0.257511
0
0
0
0
0
0
0.352941
425
21
58
20.238095
0.847273
0
0
0.375
0
0
0.051724
0
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
473960b214020bbc022a721c569cc0dd70986702
1,518
py
Python
py/py_0465_polar_polygons.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0465_polar_polygons.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0465_polar_polygons.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 465: Polar polygons # https://projecteuler.net/problem=465 # # The kernel of a polygon is defined by the set of points from which the # entire polygon's boundary is visible. We define a polar polygon as a polygon # for which the origin is strictly contained inside its kernel. For this # problem, a polygon can have collinear consecutive vertices. However, a # polygon still cannot have self-intersection and cannot have zero area. For # example, only the first of the following is a polar polygon (the kernels of # the second, third, and fourth do not strictly contain the origin, and the # fifth does not have a kernel at all):Notice that the first polygon has three # consecutive collinear vertices. Let P(n) be the number of polar polygons # such that the vertices (x, y) have integer coordinates whose absolute values # are not greater than n. Note that polygons should be counted as different if # they have different set of edges, even if they enclose the same area. For # example, the polygon with vertices [(0,0),(0,3),(1,1),(3,0)] is distinct # from the polygon with vertices [(0,0),(0,3),(1,1),(3,0),(1,0)]. For example, # P(1) = 131, P(2) = 1648531, P(3) = 1099461296175 and P(343) mod 1 000 000 # 007 = 937293740. Find P(713) mod 1 000 000 007. # # by lcsm29 http://github.com/lcsm29/project-euler import timed def dummy(n): pass if __name__ == '__main__': n = 1000 i = 10000 prob_id = 465 timed.caller(dummy, n, i, prob_id)
43.371429
79
0.71805
259
1,518
4.169884
0.490347
0.02963
0.024074
0.040741
0.07963
0.055556
0.055556
0.055556
0.055556
0.055556
0
0.082315
0.1917
1,518
34
80
44.647059
0.797881
0.870883
0
0
0
0
0.046243
0
0
0
0
0
0
1
0.125
false
0.125
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
473feef1455394d00c78bc0cf24b66ae0c754bac
2,426
py
Python
app.py
alnordst/address-book-api
4385512ea5d1fdfd153160f2de2e6874890acd70
[ "Apache-2.0" ]
null
null
null
app.py
alnordst/address-book-api
4385512ea5d1fdfd153160f2de2e6874890acd70
[ "Apache-2.0" ]
null
null
null
app.py
alnordst/address-book-api
4385512ea5d1fdfd153160f2de2e6874890acd70
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import request from flask import Response from handling import Handler import json app = Flask(__name__) INDEX_NAME = 'contacts' PORT = 9200 handler = Handler(INDEX_NAME, port = PORT, wipe_index = True) @app.route('/contact', methods=['GET','POST']) def contact_without_name(): if request.method == 'POST': if handler.create_contact(request.json): return Response('{"result": "created"}', status = 201, mimetype = 'application/json') else: return Response('{"result": "failure"}', status = 400, mimetype = 'application/json') else: res = handler.list_contacts(request.args) if res: return Response('{"data":' + json.dumps(res) + '}', status = 200, mimetype = 'application/json') else: return Response('{"result": "failure"}', status = 400, mimetype = 'application/json') @app.route('/contact/<name>', methods=['GET', 'PUT', 'DELETE']) def contact_with_name(name): if request.method == 'GET': res = handler.list_a_contact(name) if res: return Response('{"data":' + json.dumps(res) + '}', status = 200, mimetype = 'application/json') else: return Response('{"result": "failure"}', status = 400, mimetype = 'application/json') elif request.method == 'PUT': if handler.update_contact(request.json): return Response('{"result": "updated"}', status = 200, mimetype = 'application/json') else: return Response('{"result": "failure"}', status = 400, mimetype = 'application/json') else: if handler.delete_contact(name): return Response('{"result": "deleted"}', status = 200, mimetype = 'application/json') else: return Response('{"result": "failure"}', status = 400, mimetype = 'application/json')
36.757576
63
0.474031
204
2,426
5.553922
0.245098
0.123566
0.203001
0.166814
0.54722
0.54722
0.480141
0.480141
0.480141
0.480141
0
0.023481
0.403133
2,426
65
64
37.323077
0.758978
0
0
0.583333
0
0
0.167354
0
0
0
0
0
0
1
0.033333
false
0
0.083333
0
0.283333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
474e918da37fdb65d47316ee6d750aeeec1ea415
7,691
py
Python
server/swagger_server/models/preferences_profile_people.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
server/swagger_server/models/preferences_profile_people.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
server/swagger_server/models/preferences_profile_people.py
fabric-testbed/core-api
b6f9df2b3cc4e9ab8782b9ef4de035f5f0644e46
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class PreferencesProfilePeople(Model): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, show_bio: bool=True, show_cv: bool=True, show_job: bool=True, show_other_identities: bool=True, show_professional: bool=True, show_pronouns: bool=True, show_social: bool=True, show_website: bool=True): # noqa: E501 """PreferencesProfilePeople - a model defined in Swagger :param show_bio: The show_bio of this PreferencesProfilePeople. # noqa: E501 :type show_bio: bool :param show_cv: The show_cv of this PreferencesProfilePeople. # noqa: E501 :type show_cv: bool :param show_job: The show_job of this PreferencesProfilePeople. # noqa: E501 :type show_job: bool :param show_other_identities: The show_other_identities of this PreferencesProfilePeople. # noqa: E501 :type show_other_identities: bool :param show_professional: The show_professional of this PreferencesProfilePeople. # noqa: E501 :type show_professional: bool :param show_pronouns: The show_pronouns of this PreferencesProfilePeople. # noqa: E501 :type show_pronouns: bool :param show_social: The show_social of this PreferencesProfilePeople. # noqa: E501 :type show_social: bool :param show_website: The show_website of this PreferencesProfilePeople. # noqa: E501 :type show_website: bool """ self.swagger_types = { 'show_bio': bool, 'show_cv': bool, 'show_job': bool, 'show_other_identities': bool, 'show_professional': bool, 'show_pronouns': bool, 'show_social': bool, 'show_website': bool } self.attribute_map = { 'show_bio': 'show_bio', 'show_cv': 'show_cv', 'show_job': 'show_job', 'show_other_identities': 'show_other_identities', 'show_professional': 'show_professional', 'show_pronouns': 'show_pronouns', 'show_social': 'show_social', 'show_website': 'show_website' } self._show_bio = show_bio self._show_cv = show_cv self._show_job = show_job self._show_other_identities = show_other_identities self._show_professional = show_professional self._show_pronouns = show_pronouns self._show_social = show_social self._show_website = show_website @classmethod def from_dict(cls, dikt) -> 'PreferencesProfilePeople': """Returns the dict as a model :param dikt: A dict. :type: dict :return: The preferences_profile_people of this PreferencesProfilePeople. # noqa: E501 :rtype: PreferencesProfilePeople """ return util.deserialize_model(dikt, cls) @property def show_bio(self) -> bool: """Gets the show_bio of this PreferencesProfilePeople. :return: The show_bio of this PreferencesProfilePeople. :rtype: bool """ return self._show_bio @show_bio.setter def show_bio(self, show_bio: bool): """Sets the show_bio of this PreferencesProfilePeople. :param show_bio: The show_bio of this PreferencesProfilePeople. :type show_bio: bool """ self._show_bio = show_bio @property def show_cv(self) -> bool: """Gets the show_cv of this PreferencesProfilePeople. :return: The show_cv of this PreferencesProfilePeople. :rtype: bool """ return self._show_cv @show_cv.setter def show_cv(self, show_cv: bool): """Sets the show_cv of this PreferencesProfilePeople. :param show_cv: The show_cv of this PreferencesProfilePeople. :type show_cv: bool """ self._show_cv = show_cv @property def show_job(self) -> bool: """Gets the show_job of this PreferencesProfilePeople. :return: The show_job of this PreferencesProfilePeople. :rtype: bool """ return self._show_job @show_job.setter def show_job(self, show_job: bool): """Sets the show_job of this PreferencesProfilePeople. :param show_job: The show_job of this PreferencesProfilePeople. :type show_job: bool """ self._show_job = show_job @property def show_other_identities(self) -> bool: """Gets the show_other_identities of this PreferencesProfilePeople. :return: The show_other_identities of this PreferencesProfilePeople. :rtype: bool """ return self._show_other_identities @show_other_identities.setter def show_other_identities(self, show_other_identities: bool): """Sets the show_other_identities of this PreferencesProfilePeople. :param show_other_identities: The show_other_identities of this PreferencesProfilePeople. :type show_other_identities: bool """ self._show_other_identities = show_other_identities @property def show_professional(self) -> bool: """Gets the show_professional of this PreferencesProfilePeople. :return: The show_professional of this PreferencesProfilePeople. :rtype: bool """ return self._show_professional @show_professional.setter def show_professional(self, show_professional: bool): """Sets the show_professional of this PreferencesProfilePeople. :param show_professional: The show_professional of this PreferencesProfilePeople. :type show_professional: bool """ self._show_professional = show_professional @property def show_pronouns(self) -> bool: """Gets the show_pronouns of this PreferencesProfilePeople. :return: The show_pronouns of this PreferencesProfilePeople. :rtype: bool """ return self._show_pronouns @show_pronouns.setter def show_pronouns(self, show_pronouns: bool): """Sets the show_pronouns of this PreferencesProfilePeople. :param show_pronouns: The show_pronouns of this PreferencesProfilePeople. :type show_pronouns: bool """ self._show_pronouns = show_pronouns @property def show_social(self) -> bool: """Gets the show_social of this PreferencesProfilePeople. :return: The show_social of this PreferencesProfilePeople. :rtype: bool """ return self._show_social @show_social.setter def show_social(self, show_social: bool): """Sets the show_social of this PreferencesProfilePeople. :param show_social: The show_social of this PreferencesProfilePeople. :type show_social: bool """ self._show_social = show_social @property def show_website(self) -> bool: """Gets the show_website of this PreferencesProfilePeople. :return: The show_website of this PreferencesProfilePeople. :rtype: bool """ return self._show_website @show_website.setter def show_website(self, show_website: bool): """Sets the show_website of this PreferencesProfilePeople. :param show_website: The show_website of this PreferencesProfilePeople. :type show_website: bool """ self._show_website = show_website
31.391837
238
0.664023
868
7,691
5.605991
0.087558
0.050555
0.252774
0.062885
0.675709
0.520345
0.360871
0.284423
0.197287
0.031237
0
0.00652
0.262125
7,691
244
239
31.520492
0.850925
0.465089
0
0.27907
0
0
0.09189
0.025379
0
0
0
0
0
1
0.209302
false
0
0.05814
0
0.383721
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
474ea596b02e782719f2d585bcfcc69b1031d2cd
747
py
Python
Domo/Domo.Packaging/Packages/ModuleTest/0.1/SpotifyController.py
vinhui/Domo
d1920d148177b2cb186d9cdd7860b5402fa018a1
[ "Apache-2.0" ]
null
null
null
Domo/Domo.Packaging/Packages/ModuleTest/0.1/SpotifyController.py
vinhui/Domo
d1920d148177b2cb186d9cdd7860b5402fa018a1
[ "Apache-2.0" ]
1
2017-02-06T08:29:47.000Z
2017-02-08T14:11:23.000Z
Domo/Domo.Packaging/Packages/ModuleTest/0.1/SpotifyController.py
vinhui/Domo
d1920d148177b2cb186d9cdd7860b5402fa018a1
[ "Apache-2.0" ]
null
null
null
from Domo.Modules import * class SpotifyController(ControllerModule): def __init__(self): pass def OnEnable(self): ControllerModule.init(self, SpotifyInterface) pass def OnDisable(self): pass def play(self): self.play(None) pass def play(self, track=None): if not self.hardwareInterface.isInitialized: return if track is None: self.unpause() pass else: self.hardwareInterface.get("/remote/play.json", {"uri": track, "context": track}) pass pass def resume(self): self.unpause() pass def unpause(self): self.pause(False) pass def pause(self, state=True): if self.hardwareInterface.isInitialized: self.hardwareInterface.get("/remote/pause.json", {"pause": str(state).lower()}) pass
18.219512
84
0.702811
95
747
5.494737
0.4
0.09387
0.042146
0.057471
0
0
0
0
0
0
0
0
0.167336
747
41
85
18.219512
0.837621
0
0
0.375
0
0
0.066934
0
0
0
0
0
0
0
null
null
0.3125
0.03125
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
47510115298ba8b36ed3a38b68de8c5b4cd14d79
358
py
Python
quokka/utils/custom_vars.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
1,141
2015-02-19T12:21:16.000Z
2022-03-29T10:07:18.000Z
quokka/utils/custom_vars.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
284
2015-02-23T01:03:55.000Z
2019-12-20T04:54:31.000Z
quokka/utils/custom_vars.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
370
2015-02-19T10:15:19.000Z
2022-03-31T20:08:15.000Z
# coding: utf-8 from dynaconf.utils.parse_conf import parse_conf_data def parse_data(data): """Return converted data from @int, @float, @bool, @json markers""" return parse_conf_data(data) def custom_var_dict(cvarlist): cvarlist = cvarlist or [] return { cvar['key']: parse_data(cvar['value']) for cvar in cvarlist }
21.058824
71
0.667598
49
358
4.693878
0.571429
0.117391
0.113043
0
0
0
0
0
0
0
0
0.003559
0.215084
358
16
72
22.375
0.814947
0.212291
0
0
0
0
0.028986
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
476b44b41ac6dfe7aa20d18d4bea12dcf3c354de
1,478
py
Python
common/Scope.py
drlim2u/Shuttle-Bus-Educational-Tool
99ed1230ea13f7be57be514899fbdc39db74d108
[ "MIT" ]
null
null
null
common/Scope.py
drlim2u/Shuttle-Bus-Educational-Tool
99ed1230ea13f7be57be514899fbdc39db74d108
[ "MIT" ]
null
null
null
common/Scope.py
drlim2u/Shuttle-Bus-Educational-Tool
99ed1230ea13f7be57be514899fbdc39db74d108
[ "MIT" ]
null
null
null
class Scope: """ Class to define the Scope object to be used during compilation of the whole program. """ def __init__(self, line_number, instructions): """ Constructor for the Scope object. :param line_number: The line the function is defined at :param instructions: The program to be compiled """ self._type = None self.__line_number = line_number self._instructions = instructions self.__length = len(self._instructions) - 2 # -2 To remove opening and closing line def get_type(self): """ Getter for the type of the scope. :return: The type of the scope as a TokenType """ return self._type def get_line_number(self): """ Getter for the line number the loop is declared at. :return: The line number the scope is declared at as an integer """ return self.__line_number def get_instructions(self): """ Getter for the list of instructions the scope performs. :return: The list of instructions as a 2D list """ return self._instructions def get_length(self): """ Getter for the length of the scope. :return: The length of the function as an integer """ return self.__length if __name__ == '__main__': print('Please save your instructions and run run.py') input('Press enter to close window . . . ')
30.163265
92
0.613667
189
1,478
4.613757
0.333333
0.091743
0.059633
0.073395
0.115826
0
0
0
0
0
0
0.002959
0.313938
1,478
48
93
30.791667
0.857002
0.437077
0
0
0
0
0.1317
0
0
0
0
0
0
1
0.294118
false
0
0
0
0.588235
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
47728402b45581a24079760891eb45d0f89f4ca1
777
py
Python
To chech the numbers.py
ashmit2704/dark_coder27
0249d87b68a23ebb5791f10a17a0a8596317d5d0
[ "BSD-3-Clause" ]
null
null
null
To chech the numbers.py
ashmit2704/dark_coder27
0249d87b68a23ebb5791f10a17a0a8596317d5d0
[ "BSD-3-Clause" ]
null
null
null
To chech the numbers.py
ashmit2704/dark_coder27
0249d87b68a23ebb5791f10a17a0a8596317d5d0
[ "BSD-3-Clause" ]
null
null
null
try: num = float(input("Enter a number : ")) def real_nums(x): if x > 0: return "The number is POSITIVE" elif x == 0: return "The number is ZERO" elif x < 0: return "The number is NEGATIVE" else: return "Enter a valid number!" def even_or_odd(x): if x%2 == 0: if x == 0: return "Zero cannot be either positive or negative." else: return "The number is EVEN." elif x%2 != 0: return "The number is ODD." else: return "Enter a valid number!" x,y = real_nums(num), even_or_odd(num) print(x,y,sep=' & ') except: print("Enter a valid number!")
26.793103
69
0.471042
101
777
3.564356
0.326733
0.097222
0.208333
0.236111
0.380556
0.330556
0.127778
0
0
0
0
0.018018
0.428571
777
28
70
27.75
0.792793
0
0
0.2
0
0
0.301609
0
0
0
0
0
0
1
0.08
false
0
0
0
0.4
0.08
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
4781e456865bb7e20da10d487052856350930fdd
454
py
Python
blog/accounts/signals.py
timoluxinne/Django-Blog-Tim
83c5479554cff009fb45ccbb81d85656475e8192
[ "MIT" ]
null
null
null
blog/accounts/signals.py
timoluxinne/Django-Blog-Tim
83c5479554cff009fb45ccbb81d85656475e8192
[ "MIT" ]
null
null
null
blog/accounts/signals.py
timoluxinne/Django-Blog-Tim
83c5479554cff009fb45ccbb81d85656475e8192
[ "MIT" ]
null
null
null
from django.dispatch import receiver from django.db.models.signals import post_save from django.contrib.auth.models import User from .models import Profile @receiver(post_save, sender=User) def post_create_profile(sender, created, instance, **kwargs): if created: Profile.objects.create(user=instance) @receiver(post_save, sender=User) def post_save_profile(sender, instance, **kwargs): instance.profile.save()
30.266667
61
0.737885
59
454
5.559322
0.372881
0.097561
0.097561
0.134146
0.20122
0.20122
0.20122
0
0
0
0
0
0.167401
454
15
62
30.266667
0.867725
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
4789a9ddd1bd1b3f6ea2a47bbabe52a34c3b3aed
330
py
Python
core/migrations/0015_merge_20170530_1741.py
nprapps/cardbuilder
f1c55ead9503db86c78d9556ad7d9d05b973a6c2
[ "MIT" ]
3
2019-07-03T01:25:50.000Z
2021-11-08T10:26:03.000Z
core/migrations/0015_merge_20170530_1741.py
nprapps/cardbuilder
f1c55ead9503db86c78d9556ad7d9d05b973a6c2
[ "MIT" ]
31
2017-04-27T15:44:35.000Z
2017-07-10T21:29:55.000Z
core/migrations/0015_merge_20170530_1741.py
nprapps/cardbuilder
f1c55ead9503db86c78d9556ad7d9d05b973a6c2
[ "MIT" ]
3
2018-05-01T19:05:46.000Z
2021-08-10T20:03:28.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-30 17:41 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0014_auto_20170530_1726'), ('core', '0014_auto_20170526_1634'), ] operations = [ ]
19.411765
46
0.657576
40
330
5.15
0.8
0.07767
0.116505
0
0
0
0
0
0
0
0
0.186047
0.218182
330
16
47
20.625
0.612403
0.2
0
0
1
0
0.206897
0.176245
0
0
0
0
0
1
0
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
4791621e815c9f528906bfd8952b464c1a2cb853
1,392
py
Python
moodletools/auth/generic.py
llimeht/moodletools
ea0eb94bf59a21109c19358e0064f284b0888ec1
[ "MIT" ]
null
null
null
moodletools/auth/generic.py
llimeht/moodletools
ea0eb94bf59a21109c19358e0064f284b0888ec1
[ "MIT" ]
null
null
null
moodletools/auth/generic.py
llimeht/moodletools
ea0eb94bf59a21109c19358e0064f284b0888ec1
[ "MIT" ]
null
null
null
""" Generic authentication methods for connecting to Moodle Most sites will need to write their own customised `authenticate` method which can then be used against with the login method to create a logged in session. """ import requests import moodletools.moodle class Generic: """ Generic authentication to a Moodle installation Will require customisation either at run time or by subclassing. """ def __init__(self): self.login_url = None self.url = None def authenticate(self, username, password): """ create an authenticated session against a simple login form """ # initialise the session that will pick up the login cookie session = requests.Session() payload = { 'submit': 'submit', 'username': username, 'password': password } session.post(self.login_url, data=payload) return session def connect(self, username, password): """ create the login session and the Moodle object """ session = self.authenticate(username, password) return moodletools.moodle.Moodle(self.url, session) def login_factory(auther, **kwargs): """ create a simple login function to connect to a moodle instance """ def _login(*args): return auther.connect(*args, **kwargs) return _login login = login_factory(Generic())
26.264151
75
0.667385
165
1,392
5.569697
0.454545
0.069641
0.019587
0.056583
0
0
0
0
0
0
0
0
0.251437
1,392
52
76
26.769231
0.881958
0.40158
0
0
0
0
0.035354
0
0
0
0
0
0
1
0.217391
false
0.173913
0.086957
0.043478
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
47b19a3c36bc380f32f58e9d38bdc19f7b5a0446
709
py
Python
english/migrations/0012_auto_20220205_2211.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
english/migrations/0012_auto_20220205_2211.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
english/migrations/0012_auto_20220205_2211.py
xgxofdream/Notebook_by_Tag
226b304a37564ad68092864266f1c769dcba7473
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2022-02-05 12:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('english', '0011_auto_20220204_0123'), ] operations = [ migrations.AddField( model_name='tag', name='root', field=models.CharField(max_length=100, null=True), ), migrations.AddField( model_name='tag', name='sub01', field=models.CharField(max_length=100, null=True), ), migrations.AddField( model_name='tag', name='sub02', field=models.CharField(max_length=100, null=True), ), ]
24.448276
62
0.557123
74
709
5.216216
0.540541
0.139896
0.178756
0.209845
0.57513
0.57513
0.487047
0.487047
0.38342
0.38342
0
0.091476
0.32158
709
28
63
25.321429
0.711019
0.06347
0
0.545455
1
0
0.08006
0.034743
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47e21a3effff543c75885da65d3de5111d42ef6a
542
py
Python
client/face_client/__init__.py
yichenj/facegate
6407143712f62e30c95ac3482a2356f489fb00fb
[ "MIT" ]
null
null
null
client/face_client/__init__.py
yichenj/facegate
6407143712f62e30c95ac3482a2356f489fb00fb
[ "MIT" ]
null
null
null
client/face_client/__init__.py
yichenj/facegate
6407143712f62e30c95ac3482a2356f489fb00fb
[ "MIT" ]
null
null
null
import sys import logging from face_client import face_client from face_client.api_proxy import FaceApiProxy from face_client.camera_controller import CameraController from face_client.image_displayer import ImageDisplayer def main(argv): client = face_client.FaceClient(CameraController(), ImageDisplayer(), FaceApiProxy()) client.start() def run_main(): # pylint: disable=invalid-name try: sys.exit(main(sys.argv)) except Exception as e: logging.exception('face client crashed...') sys.exit(1)
25.809524
89
0.749077
68
542
5.823529
0.485294
0.176768
0.141414
0
0
0
0
0
0
0
0
0.002208
0.164207
542
20
90
27.1
0.871965
0.051661
0
0
0
0
0.042969
0
0
0
0
0
0
1
0.133333
false
0
0.4
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
47e6daba7a98082cc48fdf7fe9587770ff5dc291
133
py
Python
config/production.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
1
2019-09-23T20:00:52.000Z
2019-09-23T20:00:52.000Z
config/staging.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
null
null
null
config/staging.py
rpinaa/python-flask-microservice
3e479bd1653f8e846ae0b84ffb4f20481dfc7c5d
[ "MIT" ]
null
null
null
DEBUG = False PORT = 8080 PROPAGATE_EXCEPTIONS = True SQLALCHEMY_ECHO = False SQLALCHEMY_DATABASE_URI = "" SQLALCHEMY_POOL_SIZE = 15
19
28
0.804511
17
133
5.941176
0.823529
0
0
0
0
0
0
0
0
0
0
0.052174
0.135338
133
6
29
22.166667
0.826087
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a04a4298d1f8aff7b821d0a71a5a1d1bdac36f7
307
py
Python
weather/src/account/forms.py
chrysopoeia/fluffy-fuzz
7b1f094d4ec19a6c1b29665cde06aa25e2faf3f3
[ "MIT" ]
null
null
null
weather/src/account/forms.py
chrysopoeia/fluffy-fuzz
7b1f094d4ec19a6c1b29665cde06aa25e2faf3f3
[ "MIT" ]
null
null
null
weather/src/account/forms.py
chrysopoeia/fluffy-fuzz
7b1f094d4ec19a6c1b29665cde06aa25e2faf3f3
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from .models import User class RegistrationForm(UserCreationForm): class Meta: model = User fields = ('email',) class LoginForm(AuthenticationForm): username = forms.EmailField()
21.928571
74
0.742671
31
307
7.354839
0.612903
0.087719
0
0
0
0
0
0
0
0
0
0
0.18241
307
13
75
23.615385
0.908367
0
0
0
0
0
0.016287
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9a0f070e33472a2ab7e6a2fa529209b72d26a59d
4,732
py
Python
Reporters/__init__.py
CGJackson/pycrastination
990cfbce0666f07ff013770d2c09d6d4d64a7265
[ "MIT" ]
null
null
null
Reporters/__init__.py
CGJackson/pycrastination
990cfbce0666f07ff013770d2c09d6d4d64a7265
[ "MIT" ]
null
null
null
Reporters/__init__.py
CGJackson/pycrastination
990cfbce0666f07ff013770d2c09d6d4d64a7265
[ "MIT" ]
null
null
null
''' Reporters output information about the state and progress of the program to the user. They handle information about the formatting of this output, as well as any additional processing which is required to support it, such as comunicating with a web or email server, for example. They are derived from the Base_Reporter class ''' import Reporters.utils class Base_Reporter(): ''' Reporters output information about the state and progress of the program to the user. They handle information about the formatting of this output, as well as any additional processing which is required to support it, such as comunicating with a web or email server, for example. ''' def __init__(self): ''' Creates Reporter object with an empty dictionary of registered_monitors ''' self.registered_monitors = {} def register(self, monitor, formatting_data): ''' Registers a monitor with the reporter. Records information about how data from the monitor should be interpreded and displayed. Records this, along with the signiture of the data the Reportor can expect to recieve from the Monitor. Returns an id that is given to the Reporter with updates to identify which monitor is providing the update. ''' # Generates an id for the monitor. # # id shoud be unique to each registered monitor and small enough to # avoid passing around large objects as dict keys. # # currently uses the python object id, but this is non-essential # and should not be relied upon outside of Reporter class (and # and should avoid relying on it there. monitor_id = id(monitor) # The formatting data is processed by the parse_formatting_data # method. This method will generally be overwritten in subclasses required_signiture, parsed_formatting_information = ( self.parse_formatting_data(formatting_data) ) # It is checked that the monitor will proved the information # nessarsery for the Reporters output. if not Reporters.utils.is_compatable_data_signiture( required_signiture, monitor.data_signiture): raise ValueError('The formatting data given to Reporter is not ' 'compatable with the data provided by the ' 'Monitor being registered') # The monitor's information is recorded (as you would expect for a # method called register self.registered_monitors[monitor_id] = (monitor.data_signiture, parsed_formatting_information) # The monitor_id is returned so that the monitor can use it to # identify itself when updating the reporter. return monitor_id def parse_formatting_data(self,formatting_data): ''' Processes that formatting data passed with a newly registered Monitor to tell the Reporter how to display the data passed to it from that monitor Returns a tuple consiting of dictionary containing the data signiture required to display the output requested and the processed data about how the Reporter should display the data passed by the monitor. ''' # As the Base_Reporter does not display any data, the data signiture # is the empty dictionary (no data required) and the processed # formatting data is None return {}, None def update(self, monitor_id, **kwargs): ''' Passes data from a monitor to the Reporter. The id returned when the monitor was registerd with the reporter must be given, followed by any number of keyword arguemnts. The keyword arguments are interpreted by comparing withthe monitor's data signiture. ''' try: if not Reporters.utils.is_compatable_data_signiture(kwargs, self.registered_monitors[monitor_id][0]): raise ValueError("Data in update not compatable with the " "passing monitor's data signiture") except KeyError: raise ValueError('ID does not corrispond to a registered' ' Monitor') class Text_Reporter(Base_Reporter): ''' Generates text detailing the information to be reported, ''' pass #TODO class Cmd_Line_Reporter(Text_Reporter): ''' Text Reporter the prints text to stdout ''' pass #TODO
42.25
76
0.644125
580
4,732
5.177586
0.3
0.04662
0.025308
0.020646
0.201798
0.181152
0.181152
0.181152
0.151848
0.151848
0
0.000308
0.313609
4,732
111
77
42.630631
0.924261
0.553254
0
0.0625
0
0
0.125553
0
0
0
0
0.018018
0
1
0.125
false
0.09375
0.03125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
9a24c062d4d53e89111674097da76c9b1c8df08e
1,171
py
Python
tests/test_user_model.py
Lifeistrange/flaskweb
6226e9f546d96d5f0a8f11104a37849e8f16ce80
[ "MIT" ]
null
null
null
tests/test_user_model.py
Lifeistrange/flaskweb
6226e9f546d96d5f0a8f11104a37849e8f16ce80
[ "MIT" ]
null
null
null
tests/test_user_model.py
Lifeistrange/flaskweb
6226e9f546d96d5f0a8f11104a37849e8f16ce80
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import unittest from app.domain.model import User, AnonymousUser, Permission, Role class UserModelTestCase(unittest.TestCase): def test_password_setter(self): u = User(password = 'ybp') self.assertTrue(u.password_hash is not None) def test_no_password_getter(self): u = User(password = 'ybp') with self.assertRaises(AttributeError): u.password def test_password_verifcation(self): u = User(password = 'ybp') self.assertTrue(u.verify_password('ybp')) self.assertFalse(u.verify_password('lcg')) def test_password_salts_are_random(self): u = User(password = 'ybp') u2 = User(password = 'ybp') self.assertTrue(u.password_hash != u2.password_hash) def test_roles_and_permissions(self): Role.insert_roles() u = User(email='ybp3382535@qq.com', password="dog") self.assertTrue(u.can(Permission.WRITE_ARTICLES)) self.assertFalse(u.can(Permission.MODERATE_COMMENTS)) def test_anonymous_user(self): u = AnonymousUser() self.assertFalse(u.can(Permission.FOLLOW))
32.527778
66
0.663535
143
1,171
5.265734
0.426573
0.055777
0.099602
0.090305
0.294821
0.164675
0.164675
0.164675
0
0
0
0.010953
0.220325
1,171
35
67
33.457143
0.813801
0.028181
0
0.153846
0
0
0.036092
0
0
0
0
0
0.307692
1
0.230769
false
0.576923
0.076923
0
0.346154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
9a24d0d1cbfc3752d5faeb7cfd292c7cbff225f3
5,424
py
Python
surf_bot.py
nate-browne/SurfReportBot
22f266fc68f1ca6f7eaa719eb1ecaf30fe5e5f5b
[ "MIT" ]
1
2018-10-30T22:36:14.000Z
2018-10-30T22:36:14.000Z
surf_bot.py
nate-browne/SurfReportBot
22f266fc68f1ca6f7eaa719eb1ecaf30fe5e5f5b
[ "MIT" ]
null
null
null
surf_bot.py
nate-browne/SurfReportBot
22f266fc68f1ca6f7eaa719eb1ecaf30fe5e5f5b
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2 # Author: Nate Browne # Version: 1.5 # Date: 15 Jun 2018 # Last Edited: 17 Jun 2018 # File: surf_bot.py # This file contains the surf bot class which has the capability to make API # calls, read in the API key, and parse the relevant data from the extracted # JSON before outputting the results. # Imports import requests import json from time import localtime, strftime from os.path import expanduser class surf_bot(object): '''This class sets up the surf bot object. A surf_bot is comprised of spot IDs, an api key, and various functions used to grab the JSON, parse the JSON, and print out results to the user ''' # Class variables # Spot IDs la_jolla = 4210 newport = 4683 # Printed strings swell_str = "Swell height: %d ft (min), %d ft (max) in a %s direction." comp1 = "Primary component: %s direction with a swell period of %d." comp2 = "Secondary component: %s direction with a swell period of %d." rating = "Solid rating: %d, faded rating: %d, average rating: %d." wind = "Wind info: %d mph in a %d (%s) direction." chrt_time = "Time of chart: %s" time_str = "%a %d %b %Y at %H:%M:%S" def __init__(self, apistr, debug): """Constructor. Gets the api key and sets the url for usage""" # get the secret key with open(expanduser("~/.secret"), 'r') as inputfile: # Read in the API key self.api_key = inputfile.readline().strip() # Set the url for getting the info self.apistr = apistr self.debug = debug def grab_data(self): """Grabs the raw JSON data for parsing""" # Fill in corresponding api call strings lajolla_str = self.apistr % (self.api_key, surf_bot.la_jolla) newport_str = self.apistr % (self.api_key, surf_bot.newport) # Get the corresponding webpages rq1 = requests.get(lajolla_str) rq2 = requests.get(newport_str) # Print status codes if self.debug: print "error codes: %d, %d" % (rq1.status_code, rq2.status_code) # Save good response code, for readability good = requests.codes['ok'] # Handle error codes if rq1.status_code != good or rq2.status_code != good: print "Uh oh, something went wrong. Use debug mode for more info." return None, None # Parse webpages as JSON lajolla_data = rq1.json() newport_data = rq2.json() # Return the lists of JSON data for parsing return lajolla_data, newport_data def get_rating(self, data): """Extracts the rating information and prints it out to the screen param: data - JSON surf data to parse """ # Get the three valid kinds of ratings solid_rating = data['solidRating'] faded_rating = data['fadedRating'] avg_rating = (solid_rating + faded_rating) / 2 # Print the results print surf_bot.rating % (solid_rating, faded_rating, avg_rating) print def get_swell(self, data): """Extracts the swell information and prints it out to the screen""" # Grab the wave heights and direction of main swell component min_height = data['swell']['minBreakingHeight'] max_height = data['swell']['maxBreakingHeight'] direction = data['swell']['components']['combined']['compassDirection'] # Grab direction and period of the primary swell component prim_dir = data['swell']['components']['primary']['compassDirection'] prim_per = data['swell']['components']['primary']['period'] # Grab direction and period of the secondary swell component sec_dir = data['swell']['components']['secondary']['compassDirection'] sec_per = data['swell']['components']['secondary']['period'] # print results print surf_bot.swell_str % (min_height, max_height, direction) print surf_bot.comp1 % (prim_dir, prim_per) print surf_bot.comp2 % (sec_dir, sec_per) def get_wind(self, data): """Extracts the wind information and prints it out to the screen""" # Grab wind speed and direction (both compass and degrees) spd = data['wind']['speed'] drc = data['wind']['direction'] comp = data['wind']['compassDirection'] # print results print surf_bot.wind % (spd, drc, comp) print def print_results(self, data1, data2): """Calls helper functions to print the relevant data from the JSON.""" print print "*" * 55 print "Horseshoe Beach (Hospitals)" print "*" * 55 print # Print the time of the chart chrt_time = localtime(data1['localTimestamp']) print surf_bot.chrt_time % strftime(surf_bot.time_str, chrt_time) print # Get information for La Jolla self.get_rating(data1) self.get_swell(data1) self.get_wind(data1) print "*" * 55 print "36th Street Newport Beach" print "*" * 55 print # Print the time of the chart chrt_time = localtime(data2['localTimestamp']) print surf_bot.chrt_time % strftime(surf_bot.time_str, chrt_time) print # Get information for Newport Beach self.get_rating(data2) self.get_swell(data2) self.get_wind(data2)
33.073171
79
0.627028
719
5,424
4.621697
0.285118
0.033704
0.025278
0.017153
0.228107
0.174541
0.158291
0.158291
0.129401
0.082456
0
0.014238
0.274889
5,424
163
80
33.276074
0.830664
0.197824
0
0.166667
0
0.012821
0.208537
0
0
0
0
0
0
0
null
null
0.051282
0.051282
null
null
0.294872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
9a289163538dfa208617da163b7659f0c933b3a9
109
py
Python
emailverify/__init__.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
1
2022-01-23T22:59:54.000Z
2022-01-23T22:59:54.000Z
emailverify/__init__.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
null
null
null
emailverify/__init__.py
Kuro-Rui/flare-cogs
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
[ "MIT" ]
null
null
null
from .emailverify import EmailVerify async def setup(bot): cog = EmailVerify(bot) bot.add_cog(cog)
15.571429
36
0.715596
15
109
5.133333
0.6
0
0
0
0
0
0
0
0
0
0
0
0.192661
109
6
37
18.166667
0.875
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a2a7f45170d242f1cf3e946606ee05e08208194
312
py
Python
tests/py_expected/simple_class.py
refola/piklisp
da51ada162a5c6159a91d97994c2f33c7d087be4
[ "Unlicense" ]
1
2015-04-05T08:46:54.000Z
2015-04-05T08:46:54.000Z
tests/py_expected/simple_class.py
refola/pyylisp.py
da51ada162a5c6159a91d97994c2f33c7d087be4
[ "Unlicense" ]
null
null
null
tests/py_expected/simple_class.py
refola/pyylisp.py
da51ada162a5c6159a91d97994c2f33c7d087be4
[ "Unlicense" ]
null
null
null
# simple_class.py # THIS FILE IS AUTOMATICALLY GENERATED FROM comments.pil. # DO NOT EDIT! class square: def __init__(self, length): self._length = length def area(self): return self._length ** 2 mysquare = square(5) area = mysquare.area() print(area) mysquare = square(5) print(mysquare.area())
18.352941
57
0.705128
44
312
4.840909
0.568182
0.140845
0.140845
0
0
0
0
0
0
0
0
0.011673
0.176282
312
16
58
19.5
0.817121
0.269231
0
0.2
1
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
9a3b28e3bff9aa7e757e88be5dc334013bdbcb3e
853
py
Python
videos/tests.py
janga1997/video_village
58cba131c97dd3a033935e0675ba62daff7ca64a
[ "MIT" ]
1
2017-03-10T22:44:35.000Z
2017-03-10T22:44:35.000Z
videos/tests.py
janga1997/video_village
58cba131c97dd3a033935e0675ba62daff7ca64a
[ "MIT" ]
14
2016-07-08T13:52:46.000Z
2017-02-13T20:57:18.000Z
videos/tests.py
janga1997/video_village
58cba131c97dd3a033935e0675ba62daff7ca64a
[ "MIT" ]
8
2016-07-11T16:23:20.000Z
2018-10-13T06:07:58.000Z
from django.test import TestCase from model_mommy import mommy from .models import Video, VideoScore class VideoModelTest(TestCase): def setUp(self): self.video = mommy.make(Video) def test_create(self): self.assertTrue(isinstance(self.video, Video)) def test_str(self): self.assertEqual(''.join(('Video: ', self.video.title, ' ', self.video.uploader_name)), str(self.video)) def test_avg_score(self): self.assertIsNone(self.video.score_avg) self.video_score = mommy.make(VideoScore) self.assertEqual(self.video_score.score, self.video_score.video.score_avg) self.video_score2 = mommy.make(VideoScore, video=self.video_score.video) score2 = (self.video_score.score + self.video_score2.score) / 2 self.assertEqual(score2, self.video_score.video.score_avg)
30.464286
112
0.704572
113
853
5.168142
0.265487
0.215753
0.167808
0.097603
0.226027
0.172945
0
0
0
0
0
0.007133
0.178195
853
27
113
31.592593
0.825963
0
0
0
0
0
0.00939
0
0
0
0
0
0.294118
1
0.235294
false
0
0.176471
0
0.470588
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
9a43b32e2a155a3e7042b112a1882714e3a4f216
8,372
py
Python
test/method_tests/test_dashboard_browser.py
Pocc/meraki-client-vpn
bdb33b047b0a71b69c199db399c59ac5bfecd64c
[ "Apache-2.0" ]
4
2018-04-15T07:31:27.000Z
2020-03-26T04:20:31.000Z
test/method_tests/test_dashboard_browser.py
Pocc/meraki-client-vpn
bdb33b047b0a71b69c199db399c59ac5bfecd64c
[ "Apache-2.0" ]
60
2018-04-15T08:25:49.000Z
2021-12-13T19:47:10.000Z
test/method_tests/test_dashboard_browser.py
Pocc/meraki-client-vpn
bdb33b047b0a71b69c199db399c59ac5bfecd64c
[ "Apache-2.0" ]
1
2018-04-05T07:16:04.000Z
2018-04-05T07:16:04.000Z
# -*- coding: utf-8 -*- # Copyright 2018 Ross Jacobs All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test dashboard browser class. A credentials file with username + password must be supplied for this to work. ('credentials*' is excluded in .gitignore) """ import unittest import pyotp from merlink.browsers.dashboard import DashboardBrowser from merlink.browsers.pages.page_utils import get_input_var_value from merlink.browsers.pages.page_hunters import get_pagetext_mkiconf from test.credentials import emails, passwords, totp_base32_secret class TestLogins(unittest.TestCase): """Test various dashboard browser logins. Cycle through access types Emails list has these emails: [ # [0] test for all access # [1] test for full org + 1 network access in different org # [2] test for full network access in multiple orgs # [3] test for read only access in one network in one org # [4] test for monitor only access in one network in one org # [5] test for guest ambassador access in one network in one org # [6] test for tfa network admin access in one network in one org # [7] test for SAML admin (PLANNED) ] Coverage for these functions: login tfa_submit_info org_data_setup logout """ def setUp(self): """Set up only a browser.""" self.browser = DashboardBrowser() def test_login_sms_redirect(self): """Test that a tfa user is redirected to the tfa page.""" self.assertEqual(self.browser.login(emails[6], passwords[6]), 'sms_auth') def test_login_tfa_fail(self): """Verify that bad TFA code returns expected ValueError exception.""" self.browser.login(emails[6], passwords[6], tfa_code='000000') with self.assertRaises(ValueError): self.check_network_access() def test_login_tfa(self): """Verify that tfa works with python authenticator `pyotp`.""" totp = pyotp.TOTP(totp_base32_secret) self.browser.login(emails[6], passwords[6], tfa_code=totp.now()) self.check_network_access() def test_login_failure(self): """Test whether sending a bad password will result in an auth error.""" self.assertEqual(self.browser.login(emails[6], 'badpassword'), 'auth_error') def test_login_success(self): """Test whether login works with a user with known good email/pass.""" self.assertEqual(self.browser.login(emails[0], passwords[0]), 'auth_success') def test_login_multiorg(self): """Test whether a user with 2 orgs can access everything they should. * Checks org access in both orgs. """ self.browser.login(emails[0], passwords[0]) self.check_org_access() self.toggle_orgs() self.check_org_access() def test_login_1org_1network(self): """Test access for user with 1 org and 1 network in another org * Navigate to organization settings in org with full access * Navigate to network settings in other org where user does not have org access """ self.browser.login(emails[1], passwords[1]) # Force first org to be one where user has org access this_org = self.browser.active_org_id if not self.browser.orgs_dict[this_org]['org_admin_type']: # Set org id to the org with full access self.toggle_orgs() # Check org access in the first org and check network access in 2nd. self.check_org_access() self.toggle_orgs() self.check_network_access() def test_login_2networks_diff_orgs(self): """Test access for admin with network access in 2 diff orgs.""" self.browser.login(emails[2], passwords[2]) self.check_network_access() self.toggle_orgs() self.check_network_access() def test_login_1network_read_only(self): """Test access for network read-only admin.""" self.browser.login(emails[3], passwords[3]) self.check_network_access() def test_login_1network_monitor_only(self): """Test access for network monitors in 1 network in 1 org. Network monitors only have access to /usage/list, /new_reports """ self.browser.login(emails[4], passwords[4]) self.check_network_access(route='/new_reports') def test_login_1network_guest_ambassador(self): """Test access for network amabassadors in 1 network in 1 org. Guest ambassadors only have access to /configure/guests """ self.browser.login(emails[5], passwords[5]) self.check_network_access() def get_other_org_id(self): """For tests that involve multiple orgs, get the org not active now.""" return [item for item in list(self.browser.orgs_dict.keys()) if item not in [self.browser.active_org_id]][0] def toggle_orgs(self): """Set the org id to that of the other org. In many of these tests, there are admins with access to 2 orgs. This function allows us to quickly toggle between the two """ self.browser.set_org_id(self.get_other_org_id()) print('Switching to org:\t', self.browser.get_active_org_name()) def check_org_access(self): """Verify org access by scraping the org name out of settings.""" # Print name that should only be visible on Organization > Settings self.browser.open_route('/organization/edit') print('Testing org access...\nOpened org:\t\t\t', get_input_var_value( self.browser.get_page(), 'organization_name')) def check_network_access(self, route='/configure/guests'): """Verify network access by scraping its name from network settings. Using /configure/guests as it should be accessible for all user types, except monitor only. MkiConf vars will be present on all pages. """ network_eid = self.browser.active_network_id self.browser.open_route(route, network_eid=network_eid) mkiconf_dict = get_pagetext_mkiconf(self.browser.get_page().text) print('Testing network access...\nOpened network:\t\t', mkiconf_dict['network_name']) class TestBrowser(unittest.TestCase): """Tests browser functionality given that login has occurred.""" def setUp(self): """Set up only a browser.""" self.browser = DashboardBrowser() self.browser.login(emails[0], passwords[0]) """Test setters and getters. Coverage for these attributes: get_active_network_name get_active_org_name get_network_names get_org_names set_network_id set_network_name set_org_id set_org_name Coverage for these key browser components: scrape_json open_route handle_redirects combined_network_redirect """ def test_get_active_network_name(self): pass def test_get_active_org_name(self): pass def test_get_network_names(self): pass def test_get_org_names(self): pass def test_set_network_id(self): pass def test_set_network_name(self): pass def test_set_org_id(self): pass def test_set_org_name(self): pass def test_scrape_json(self): pass def test_open_route(self): pass def test_handle_redirects(self): pass def test_combined_network_redirect(self): pass def tearDown(self): """Logout of browser and close it.""" self.browser.logout() self.browser.mechsoup.close() if __name__ == '__main__': unittest.main()
34.738589
79
0.659818
1,134
8,372
4.702822
0.239859
0.055691
0.036002
0.049503
0.234577
0.195762
0.144009
0.086818
0.066192
0.041253
0
0.01091
0.255495
8,372
241
80
34.738589
0.844698
0.386049
0
0.313725
0
0
0.05687
0
0
0
0
0
0.039216
1
0.294118
false
0.245098
0.058824
0
0.382353
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
9a47a70a500bd4736a82f611715193c832b74913
9,046
py
Python
mixcoatl/admin/user.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/admin/user.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
mixcoatl/admin/user.py
zomGreg/mixcoatl
dd8d7e206682955b251d7f858fffee56b11df8c6
[ "Apache-2.0" ]
null
null
null
""" mixcoatl.admin.user ------------------- Implements access to the DCM User API """ from mixcoatl.resource import Resource from mixcoatl.decorators.lazy import lazy_property from mixcoatl.decorators.validations import required_attrs from mixcoatl.utils import camelize, camel_keys, uncamel_keys import json import time class User(Resource): """A user within the DCM environment""" PATH = 'admin/User' COLLECTION_NAME = 'users' PRIMARY_KEY = 'user_id' def __init__(self, user_id=None, endpoint=None, *args, **kwargs): Resource.__init__(self, endpoint=endpoint) self.__user_id = user_id @property def user_id(self): """`int` The DCM unique id of this user across all customer accounts""" return self.__user_id @lazy_property def account(self): """`dict` The DCM account""" return self.__account @account.setter def account(self, a): # pylint: disable-msg=C0111,W0201 self.__account = a @lazy_property def account_user_id(self): """`str` or `None` A unique identifier to reference this user's access to a specific account """ return self.__account_user_id @lazy_property def alpha_name(self): """`str` The user's full name in the form of `Last name, First name`""" return self.__alpha_name @lazy_property def billing_codes(self): """`list` The billing codes against which this user has provisioning rights .. note:: Only present when this user is queried in the context of an `account_id` """ return self.__billing_codes @billing_codes.setter def billing_codes(self, b): # pylint: disable-msg=C0111,W0201 self.__billing_codes = b @lazy_property def cloud_console_password(self): """`str` The encrypted password that the user can log into the underlying cloud with""" return self.__cloud_console_password @lazy_property def cloud_api_public_key(self): """`str` The encrypted public key the user can make API calls to the underlying cloud with""" return self.__cloud_api_public_key @lazy_property def cloud_api_secret_key(self): """`str` The encrypted secret key the user can make API calls to the underlying cloud with""" return self.__cloud_api_secret_key @lazy_property def customer(self): """`dict` The customer record to which this user belongs""" return self.__customer @lazy_property def editable(self): """`bool` Indicates if the core values of this user may be changed""" return self.__editable @lazy_property def email(self): """`str` Email is a unique identifier that enables a given user to identify themselves to DCM """ return self.__email @email.setter def email(self, e): # pylint: disable-msg=C0111,W0201 self.__email = e @lazy_property def family_name(self): """`str` The family name of the user""" return self.__family_name @family_name.setter def family_name(self, f): # pylint: disable-msg=C0111,W0201 self.__family_name = f @lazy_property def given_name(self): """`str` The given name of the user""" return self.__given_name @given_name.setter def given_name(self, g): # pylint: disable-msg=C0111,W0201 self.__given_name = g @lazy_property def groups(self): """`list` The group membership of this user idependent of any individual accounts""" return self.__groups @groups.setter def groups(self, g): # pylint: disable-msg=C0111,W0201 self.__groups = g @lazy_property def has_cloud_api_access(self): """`bool` Indicates that the user has access to the underlying cloud API (i.e. AWS IAM)""" return self.__has_cloud_api_access @lazy_property def has_cloud_console_access(self): """`bool` Indicates that the user has access to the underlying cloud console (i.e. AWS IAM)""" return self.__has_cloud_console_access @lazy_property def legacy_user_id(self): """`int` The legacy user id""" return self.__legacy_user_id @lazy_property def notifications_targets(self): """`dict` The various targets configured for delivery of notifications""" return self.__notification_targets @lazy_property def notifications_settings(self): """`dict` Notification settings configured for this user""" return self.__notification_settings @lazy_property def status(self): """`str` The current status of this user in DCM""" return self.__status @lazy_property def time_zone(self): """`str` The timezone id for the user's prefered time zone""" return self.__time_zone @lazy_property def vm_login_id(self): """`str` The username the user will use to login to cloud instances for shell or remote desktop access """ return self.__vm_login_id @lazy_property def ssh_public_key(self): """`str` The public key to grant the user access to Unix instances""" return self.__ssh_public_key @ssh_public_key.setter def ssh_public_key(self, s): """`str` The public key to grant the user access to Unix instances""" self.__ssh_public_key = s @lazy_property def password(self): """`str` DCM login password""" return self.__password @password.setter def password(self, p): self.__password = p @required_attrs(['user_id']) def grant(self, account_id, groups, billing_codes): """Grants the user access to the specified account. :attr:`reason` :param account_id: Account ID of the account to grant access. :type account_id: int. :param groups: List of group ID the user will belong to. :type groups: list. :param billing_codes: List of billing code the user will use. :type billing_codes: list. :returns: bool -- Result of API call """ p = '%s/%s' % (self.PATH, str(self.user_id)) group_list = [] billing_code_list = [] for group in groups: group_list.append({"groupId": group}) for billing_code in billing_codes: billing_code_list.append({"billingCodeId": billing_code}) payload = {"grant": [{"account": {"accountId": account_id}, "groups": group_list, "billingCodes": billing_code_list}]} return self.put(p, data=json.dumps(payload)) @required_attrs(['account', 'given_name', 'family_name', 'email', 'groups', 'billing_codes']) def create(self): """Creates a new user.""" billing_code_list = [] for billing_code in self.billing_codes: billing_code_list.append({"billingCodeId": billing_code}) parms = [{'givenName': self.given_name, 'familyName': self.family_name, 'email': self.email, 'groups': [{'groupId': self.groups}], 'account': {'accountId': self.account}, 'billingCodes': billing_code_list}] if self.ssh_public_key is not None: parms[0].update({'sshPublicKey': self.ssh_public_key}) if self.password is not None: parms[0].update({'password': self.password}) payload = {'addUser': camel_keys(parms)} response = self.post(data=json.dumps(payload)) if self.last_error is None: self.load() return response else: raise UserCreationException(self.last_error) @classmethod def all(cls, keys_only=False, endpoint=None, **kwargs): """Return all users .. note:: The keys used to make the request determine results visibility :param keys_only: Return :attr:`user_id` instead of :class:`User` :type keys_only: bool. :param detail: str. The level of detail to return - `basic` or `extended` :type detail: str. :returns: `list` of :class:`User` or :attr:`user_id` :raises: :class:`UserException` """ r = Resource(cls.PATH, endpoint=endpoint) if 'detail' in kwargs: r.request_details = kwargs['detail'] else: r.request_details = 'basic' x = r.get() if r.last_error is None: if keys_only is True: return [i[camelize(cls.PRIMARY_KEY)] for i in x[cls.COLLECTION_NAME]] else: return [type(cls.__name__, (object,), i) for i in uncamel_keys(x)[cls.COLLECTION_NAME]] else: raise UserException(r.last_error) class UserException(BaseException): pass class UserCreationException(UserException): """User Creation Exception""" pass
30.87372
103
0.625138
1,139
9,046
4.749781
0.194908
0.046211
0.063771
0.02329
0.214418
0.155453
0.117006
0.110166
0.087616
0.066543
0
0.007628
0.27537
9,046
292
104
30.979452
0.817696
0.305218
0
0.202454
0
0
0.045293
0
0
0
0
0
0
1
0.220859
false
0.067485
0.03681
0
0.466258
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
9a5f74ba93c3c8da66354bf490f1e7ff50da1f99
367
py
Python
tests/test__get_cname.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
tests/test__get_cname.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
tests/test__get_cname.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from yawast.scanner.plugins.dns.caa import _get_cname from dns import resolver class TestGetCname(TestCase): def test__get_cname(self): resv = resolver.Resolver() resv.nameservers = ["1.1.1.1", "8.8.8.8"] name = _get_cname("cntest.adamcaudill.com", resv) self.assertEqual("www.google.com.", name)
26.214286
57
0.686649
51
367
4.803922
0.54902
0.097959
0.02449
0
0
0
0
0
0
0
0
0.026846
0.188011
367
13
58
28.230769
0.795302
0
0
0
0
0
0.138965
0.059946
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9a67899c7657ee9d39b7c6b95af49f7cc90d2d3e
289
py
Python
seaborn/color.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
null
null
null
seaborn/color.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
null
null
null
seaborn/color.py
jiaorenyu/learning
ea77976d7815d59035e30f3de66ef82339edc271
[ "MIT" ]
1
2020-08-16T16:22:17.000Z
2020-08-16T16:22:17.000Z
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns current_palette = sns.color_palette() #默认颜色 #sns.palplot(current_palette) # 环形颜色 #sns.palplot(sns.color_palette("hls", 16)) #调整深度和饱和度 sns.palplot(sns.hls_palette(8, l=.3, s=.6)) plt.show()
20.642857
43
0.761246
48
289
4.479167
0.520833
0.139535
0.139535
0
0
0
0
0
0
0
0
0.019455
0.110727
289
13
44
22.230769
0.817121
0.301038
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bd06e51309fc19c9abc3ebb257f9eb5984bfe4d
1,027
py
Python
Chapter07/python/com/sparksamples/linearregression/LinearRegressionCrossValidationIterations.py
quguiliang/Machine-Learning-with-Spark-Second-Edition
0ba131e6c15a3de97609c6cb5d976806ccc14f09
[ "MIT" ]
112
2017-05-13T15:44:29.000Z
2022-02-19T20:14:14.000Z
Chapter07/python/com/sparksamples/linearregression/LinearRegressionCrossValidationIterations.py
tophua/Machine-Learning-with-Spark-Second-Edition
0d93e992f6c79d55ad5cdcab735dbe6674143974
[ "MIT" ]
1
2017-05-25T00:10:43.000Z
2017-05-25T00:10:43.000Z
Chapter07/python/com/sparksamples/linearregression/LinearRegressionCrossValidationIterations.py
tophua/Machine-Learning-with-Spark-Second-Edition
0d93e992f6c79d55ad5cdcab735dbe6674143974
[ "MIT" ]
115
2017-05-06T10:49:00.000Z
2022-03-08T07:48:54.000Z
import os import sys import pylab as P import matplotlib import matplotlib.pyplot as plt from com.sparksamples.util import evaluate from com.sparksamples.linearregression.LinearRegressionUtil import get_train_test_data try: from pyspark import SparkContext from pyspark import SparkConf except ImportError as e: print ("Error importing Spark Modules", e) sys.exit(1) from com.sparksamples.util import SPARK_HOME os.environ['SPARK_HOME'] = SPARK_HOME sys.path.append(SPARK_HOME + "/python") def main(): execute() def execute(): train_data, test_data = get_train_test_data() params = [1, 5, 10, 20, 50, 100, 200] metrics = [evaluate(train_data, test_data, param, 0.01, 0.0, 'l2', False) for param in params] print params print metrics P.plot(params, metrics) fig = matplotlib.pyplot.gcf() plt.xscale('log') plt.title("LinearRegressionWithSGD : Iterations") plt.xlabel("Iterators") plt.ylabel("RMSLE") P.show() if __name__ == "__main__": main()
21.851064
98
0.710808
141
1,027
5.021277
0.510638
0.045198
0.080508
0.064972
0.081921
0
0
0
0
0
0
0.02506
0.184031
1,027
46
99
22.326087
0.819809
0
0
0
0
0
0.106238
0.022417
0
0
0
0
0
0
null
null
0
0.363636
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
7bff2e8c632fa06d0ae840dabf0da00c03e2e50a
776
py
Python
users/views.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
null
null
null
users/views.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
11
2020-02-12T00:51:32.000Z
2022-03-11T23:57:22.000Z
users/views.py
rkprajapat/construction-crm
ae70238862f3048e4b1b849f9c16bf1bdf867a28
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template import RequestContext from django.shortcuts import render_to_response, redirect from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.backends import ModelBackend def login_user(request): logout(request) email = password = '' if request.POST: email = request.POST['email'] password = request.POST['password'] user = authenticate(email=email, password=password) if user is not None: if user.is_active: login(request, user) return HttpResponseRedirect('/main/') return render_to_response('login.html', context=RequestContext(request))
33.73913
76
0.715206
88
776
6.238636
0.397727
0.10929
0.069217
0.091075
0.112933
0
0
0
0
0
0
0
0.203608
776
23
76
33.73913
0.88835
0
0
0
0
0
0.037323
0
0
0
0
0
0
1
0.055556
false
0.166667
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
d001bd883cff79b5c014058e5d1c72fccc2fe377
1,046
py
Python
lab/refactoring/extract_class3.py
ikejs/SPD-2.31-Testing-and-Architecture
0f1cc3dc726d748cbd3ae75b336c42697a4b9d82
[ "MIT" ]
null
null
null
lab/refactoring/extract_class3.py
ikejs/SPD-2.31-Testing-and-Architecture
0f1cc3dc726d748cbd3ae75b336c42697a4b9d82
[ "MIT" ]
null
null
null
lab/refactoring/extract_class3.py
ikejs/SPD-2.31-Testing-and-Architecture
0f1cc3dc726d748cbd3ae75b336c42697a4b9d82
[ "MIT" ]
null
null
null
# by Kami Bigdely # Extract class WELL_DONE = 3000 MEDIUM = 2500 COOKED_CONSTANT = 0.05 def is_cookeding_criteria_satisfied(food): return is_well_done( food.time, food.temperature, food.pressure, food.desired_state ) or is_medium( food.time, food.temperature, food.pressure, food.desired_state ) def is_well_done(food): return get_cooking_progress( food.time, food.temperature, food.pressure) >= WELL_DONE def is_medium(food): return get_cooking_progress( food.time, food.temperature, food.pressure ) >= MEDIUM def get_cooking_progress(food): return food.time * food.temperature * food.pressure * food.COOKED_CONSTANT my_steak = { time: 30 temp: 103 pressue: 20 desired_state: 'well-done' } if is_cookeding_criteria_satisfied(my_steak): print('cooking is done.') else: print('ongoing cooking.')
20.509804
78
0.601338
119
1,046
5.058824
0.344538
0.066445
0.099668
0.19103
0.443522
0.443522
0.443522
0.378738
0.378738
0.209302
0
0.02521
0.3174
1,046
51
79
20.509804
0.817927
0.027725
0
0.358974
0
0
0.040394
0
0
0
0
0
0
0
null
null
0
0
null
null
0.051282
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
d003419f9df9811d4f94589138f31e123507c340
214
py
Python
QQbot/Model/WsModel/ready.py
hegugu-ng/qq_guild_bot
dac9b3313f52ed579564a9140dd46212f2249e8b
[ "MIT" ]
15
2021-11-28T03:26:24.000Z
2022-03-31T17:21:05.000Z
QQbot/Model/WsModel/ready.py
hegugu-ng/qq_guild_bot
dac9b3313f52ed579564a9140dd46212f2249e8b
[ "MIT" ]
2
2021-11-28T15:02:57.000Z
2021-12-01T09:30:58.000Z
QQbot/Model/WsModel/ready.py
hegugu-ng/qq_guild_bot
dac9b3313f52ed579564a9140dd46212f2249e8b
[ "MIT" ]
2
2021-11-27T15:21:11.000Z
2021-12-28T03:21:35.000Z
from typing import List from pydantic import BaseModel class User(BaseModel): id:str username:str bot:bool class Ready(BaseModel): version:str session_id:str user: User shard:list[int]
16.461538
30
0.700935
30
214
4.966667
0.6
0.067114
0
0
0
0
0
0
0
0
0
0
0.228972
214
13
31
16.461538
0.90303
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
d0215dfca29b011f0a90f0850f8e65403f3c9187
1,760
py
Python
src/test_DiGraph.py
EitanWex/OOP_Ex3
22f73d0d9518c09b06ad0494701f2a899ce912f3
[ "MIT" ]
null
null
null
src/test_DiGraph.py
EitanWex/OOP_Ex3
22f73d0d9518c09b06ad0494701f2a899ce912f3
[ "MIT" ]
null
null
null
src/test_DiGraph.py
EitanWex/OOP_Ex3
22f73d0d9518c09b06ad0494701f2a899ce912f3
[ "MIT" ]
null
null
null
from unittest import TestCase from src.DiGraph import DiGraph from src.GraphAlgo import GraphAlgo class TestDiGraph(TestCase): def test_v_size(self): g = DiGraph() ga = GraphAlgo() ga.graph=g ga.load_from_json('../data/A0.json') self.assertEqual (g.v_size(),11) def test_e_size(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A0.json') self.assertEqual(g.e_size(),22) def test_get_mc(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A0.json') self.assertEqual(g.get_mc(),0) g.remove_edge(10,9) self.assertEqual(g.get_mc(),1) def test_add_edge(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A0.json') self.assertEqual(g.e_size(),22) g.add_edge(0,5,33) self.assertEqual(g.e_size(),23) def test_add_node(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A1.json') self.assertEqual(g.v_size(), 17) g.add_node(17,(1,1,0)) self.assertEqual(g.v_size(), 18) def test_remove_node(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A1.json') self.assertEqual(g.v_size(), 17) g.remove_node(0) self.assertEqual(g.v_size(), 16) def test_remove_edge(self): g = DiGraph() ga = GraphAlgo() ga.graph = g ga.load_from_json('../data/A0.json') self.assertEqual(g.e_size(), 22) g.remove_edge(0,1) self.assertEqual(g.e_size(), 21)
23.466667
44
0.553409
249
1,760
3.730924
0.172691
0.193757
0.206674
0.10549
0.728741
0.655544
0.602799
0.602799
0.602799
0.602799
0
0.035656
0.298864
1,760
74
45
23.783784
0.71718
0
0
0.589286
0
0
0.059693
0
0
0
0
0
0.214286
1
0.125
false
0
0.053571
0
0.196429
0
0
0
0
null
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d02884cbc1021b2ca8cf48d3b0afadba9c6d3208
4,973
py
Python
src/modules/fp_detector/extractor.py
tzklab/carignan
95eb9ad50b127f6f4e32acce344dbfc42bb68a49
[ "Apache-2.0" ]
3
2021-10-02T08:09:16.000Z
2022-03-12T08:11:39.000Z
src/modules/fp_detector/extractor.py
tzklab/carignan
95eb9ad50b127f6f4e32acce344dbfc42bb68a49
[ "Apache-2.0" ]
null
null
null
src/modules/fp_detector/extractor.py
tzklab/carignan
95eb9ad50b127f6f4e32acce344dbfc42bb68a49
[ "Apache-2.0" ]
1
2021-04-04T14:17:23.000Z
2021-04-04T14:17:23.000Z
import torch import torch.nn as nn import torchvision # There is no pretrained model in torch.hub for mnasnet0_75, mnasnet1_3, shufflenetv2_x1.5, and shufflenetv2_x2.0 SUPPORTED_MODELS = { 'group1': [ 'alexnet', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19', 'vgg19_bn', 'squeezenet1_0', 'squeezenet1_1', 'densenet121', 'densenet169', 'densenet161', 'densenet201', 'mobilenet_v2', ], 'group2': [ 'mnasnet0_5', 'mnasnet0_75', 'mnasnet1_0', 'mnasnet1_3', ], 'group3': [ 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_resnet101_2', ], 'group4': [ 'shufflenet_v2_x0_5', 'shufflenet_v2_x1_0', 'shufflenet_v2_x1_5', 'shufflenet_v2_x2_0', ], 'group5': ['inception_v3'], 'group6': ['googlenet'], } class Extractor(nn.Module): def __init__(self, model_name, pretrained=True): super().__init__() self.model_name = model_name self.pretrained = pretrained self.supported_models = SUPPORTED_MODELS if not self.model_name in self.get_supported_models(): raise ValueError(f'{self.model_name} is unsupported extractor') self.__init_model() def __init_model(self): if self.model_name in ['inception_v3', 'googlenet']: self.model = getattr(torchvision.models, self.model_name)(pretrained=self.pretrained, init_weights=True) else: self.model = getattr(torchvision.models, self.model_name)(pretrained=self.pretrained) def __resnet_forward(self, x): x = self.model.conv1(x) x = self.model.bn1(x) x = self.model.relu(x) x = self.model.maxpool(x) x = self.model.layer1(x) x = self.model.layer2(x) x = self.model.layer3(x) x = self.model.layer4(x) return x def __shufflenet_forward(self, x): x = self.model.conv1(x) x = self.model.maxpool(x) x = self.model.stage2(x) x = self.model.stage3(x) x = self.model.stage4(x) x = self.model.conv5(x) return x def __inception_forward(self, x): x = self.model._transform_input(x) x = self.model.Conv2d_1a_3x3(x) x = self.model.Conv2d_2a_3x3(x) x = self.model.Conv2d_2b_3x3(x) x = self.model.maxpool1(x) x = self.model.Conv2d_3b_1x1(x) x = self.model.Conv2d_4a_3x3(x) x = self.model.maxpool2(x) x = self.model.Mixed_5b(x) x = self.model.Mixed_5c(x) x = self.model.Mixed_5d(x) x = self.model.Mixed_6a(x) x = self.model.Mixed_6b(x) x = self.model.Mixed_6c(x) x = self.model.Mixed_6d(x) x = self.model.Mixed_6e(x) x = self.model.Mixed_7a(x) x = self.model.Mixed_7b(x) x = self.model.Mixed_7c(x) return x def __googlenet_forward(self, x): x = self.model._transform_input(x) x = self.model.conv1(x) x = self.model.maxpool1(x) x = self.model.conv2(x) x = self.model.conv3(x) x = self.model.maxpool2(x) x = self.model.inception3a(x) x = self.model.inception3b(x) x = self.model.maxpool3(x) x = self.model.inception4a(x) x = self.model.inception4b(x) x = self.model.inception4c(x) x = self.model.inception4d(x) x = self.model.inception4e(x) x = self.model.maxpool4(x) x = self.model.inception5a(x) x = self.model.inception5b(x) return x def forward(self, x): if x.shape[1] == 1: x = torch.cat([x, x, x], axis=1) if self.model_name in self.supported_models['group1']: return self.model.features(x) elif self.model_name in self.supported_models['group2']: return self.model.layers(x) elif self.model_name in self.supported_models['group3']: return self.__resnet_forward(x) elif self.model_name in self.supported_models['group4']: return self.__shufflenet_forward(x) elif self.model_name in self.supported_models['group5']: return self.__inception_forward(x) elif self.model_name in self.supported_models['group6']: return self.__googlenet_forward(x) def get_supported_models(self): model_list = [] for v in self.supported_models.values(): model_list += v return model_list if __name__ == '__main__': model_list = [] for v in SUPPORTED_MODELS.values(): model_list += v input_tensor = torch.rand(1, 1, 80, 80) for model_name in model_list: try: extractor = Extractor(model_name, pretrained=True) feats = extractor(input_tensor) print(f'{model_name.ljust(20)}{feats.shape}') except Exception as e: print(e)
34.534722
116
0.601649
663
4,973
4.291101
0.232278
0.215114
0.105448
0.193322
0.387346
0.293146
0.257294
0.245343
0.245343
0.157469
0
0.049696
0.271667
4,973
143
117
34.776224
0.735781
0.022321
0
0.178295
0
0
0.114609
0.007202
0
0
0
0
0
1
0.062016
false
0
0.023256
0
0.178295
0.015504
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d03d8d5d3d8a183fc00afa05703ac7fa6926a8e3
1,448
py
Python
generation/__main__.py
K1ndWha1e/PhysicalCulture_MIREA
0b71b091b92d6c8f65721c120ebb286acc5c283a
[ "MIT" ]
1
2019-05-04T18:26:36.000Z
2019-05-04T18:26:36.000Z
generation/__main__.py
K1ndWha1e/PhysicalCulture_MIREA
0b71b091b92d6c8f65721c120ebb286acc5c283a
[ "MIT" ]
1
2019-05-04T17:58:59.000Z
2019-05-04T17:58:59.000Z
generation/__main__.py
K1ndWha1e/PhysicalCulture_MIREA
0b71b091b92d6c8f65721c120ebb286acc5c283a
[ "MIT" ]
null
null
null
from openpyxl import load_workbook from generation.data_filling import * def Header(ws): surname = input('Введи свою фамилию\n') name = input('Введи своё имя\n') last_name = input('Введи своё отчество\n') study_group = input('В какой группе учишься?\n') date_birthday = input('Укажи дату своего рождения родился?\nПример: 18/09/99\n') ws['I9'] = '{0} {1} {2}' .format(surname, name, last_name) ws['I10'] = '{0}'.format(study_group) ws['I11'] = '{0}'.format(date_birthday) def columns_fill(ws, count_days_generate, personal_weight): first_column = A_Column(ws, count_days_generate) second_column = B_Column(ws, count_days_generate) three_column = C_Column(ws, count_days_generate) four_column = D_Column(ws, count_days_generate) fifth_column = E_Column(ws, count_days_generate, personal_weight) sixth_column = F_Column(ws, count_days_generate) seventh_column = G_AND_H_AND_I_Column(ws, count_days_generate) eighth_column = J_Column(ws, count_days_generate) if __name__ == '__main__': print('Welcome to the GenCulture') wb = load_workbook(filename='download.xlsx') ws = wb.active Header(ws) personal_weight = int(input('Сколько ты весишь?\nПример: 75\n')) count_days_generate = int(input('Сколько дней хочешь сгенерировать?\n Рекомендуется -> 50\n')) columns_fill(ws, count_days_generate, personal_weight) wb.save('physical_culture.xlsx')
32.177778
98
0.717541
209
1,448
4.655502
0.4689
0.101747
0.192189
0.195272
0.31038
0.124358
0.090442
0.090442
0
0
0
0.016488
0.162293
1,448
44
99
32.909091
0.785655
0
0
0
0
0
0.220304
0.014503
0
0
0
0
0
1
0.068966
false
0
0.068966
0
0.137931
0.034483
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d041d6077c2b542e4f9a12e8784f6fa712653707
1,134
py
Python
robot_motion_param/nodes/set_motion_param.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
robot_motion_param/nodes/set_motion_param.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
robot_motion_param/nodes/set_motion_param.py
buzzer/tams_pr2
73eada99f88c300858f05d57b868e6a8109a800c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # 2014-08-04 Sebastian Rockel (rockel@informatik.uni-hamburg.de) # Provides a service interface to changing the robot motion parameters # uses the dynamic_reconfigure client # import roslib; roslib.load_manifest('robot_motion_param') from robot_motion_param.srv import * import rospy import dynamic_reconfigure.client client = dynamic_reconfigure.client.Client('/move_base_node/DWAPlannerROS') def handle_request(req): vel = req.max_vel acc = req.max_acc jerk= req.max_jerk print "Setting motion parameters (vel, acc, jerk).. {0:4.2f} {1:4.2f} {2:4.2f}".format(vel, acc, jerk) params = { 'max_trans_vel' : vel, 'max_vel_x' : vel, 'acc_lim_x' : acc, # TODO consider angular velocity! 'acc_lim_y' : acc, 'acc_lim_theta' : acc+0.7, # angular limit is by default higher than linear } config = client.update_configuration(params) return True def server(): rospy.init_node('robot_motion_param') s = rospy.Service('set_motion_param', MotionParam, handle_request) print "Ready to set motion parameters.." rospy.spin() if __name__ == "__main__": server()
30.648649
104
0.722222
165
1,134
4.727273
0.533333
0.05641
0.092308
0.076923
0
0
0
0
0
0
0
0.019979
0.161376
1,134
36
105
31.5
0.80021
0.23545
0
0
0
0.038462
0.285215
0.03376
0
0
0
0.027778
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
d04e29028d0975f8cfaa2a265c17cce4623642a4
644
py
Python
oops_fhir/r4/value_set/consent_data_meaning.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/consent_data_meaning.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/consent_data_meaning.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.consent_data_meaning import ( ConsentDataMeaning as ConsentDataMeaning_, ) __all__ = ["ConsentDataMeaning"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class ConsentDataMeaning(ConsentDataMeaning_): """ ConsentDataMeaning How a resource reference is interpreted when testing consent restrictions. Status: draft - Version: 4.0.1 http://hl7.org/fhir/ValueSet/consent-data-meaning """ class Meta: resource = _resource
20.125
69
0.753106
74
644
6.27027
0.581081
0.060345
0.068966
0.086207
0
0
0
0
0
0
0
0.009311
0.166149
644
31
70
20.774194
0.854749
0.293478
0
0
0
0
0.052392
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d05908d43bb4f9f27d6f575fd1b320db89d97764
420
py
Python
server.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
server.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
server.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
""" Runs the server thread """ from __future__ import absolute_import import sys from lib.server.server import Server def server(address, port): serve = Server(address, port) serve.run() if __name__ == '__main__': if len(sys.argv) != 3: print("Correct usage: Script, IP address, Port number") exit() server(sys.argv[1], int(sys.argv[2])) # TODO: should check if argv[2] is digit
18.26087
83
0.654762
60
420
4.366667
0.6
0.125954
0.129771
0.167939
0
0
0
0
0
0
0
0.012158
0.216667
420
22
84
19.090909
0.784195
0.147619
0
0
0
0
0.154286
0
0
0
0
0.045455
0
1
0.090909
false
0
0.272727
0
0.363636
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
d066dde26172744c6820d20379a6c091dd44ee32
15,372
py
Python
finsky/protos/music_doc_details_pb2.py
mmcloughlin/finsky
f21ccdbebf86e55a542c658b6972cb1f3fb5f119
[ "MIT" ]
59
2015-07-11T18:53:59.000Z
2021-09-08T03:16:17.000Z
finsky/protos/music_doc_details_pb2.py
mmcloughlin/finsky
f21ccdbebf86e55a542c658b6972cb1f3fb5f119
[ "MIT" ]
10
2015-07-01T08:09:29.000Z
2021-12-06T01:23:00.000Z
finsky/protos/music_doc_details_pb2.py
mmcloughlin/finsky
f21ccdbebf86e55a542c658b6972cb1f3fb5f119
[ "MIT" ]
14
2015-08-15T22:04:02.000Z
2021-03-03T09:14:39.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: music_doc_details.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import doc_annotations_pb2 as doc__annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='music_doc_details.proto', package='MusicDocDetails', syntax='proto2', serialized_pb=_b('\n\x17music_doc_details.proto\x12\x0fMusicDocDetails\x1a\x15\x64oc_annotations.proto\"b\n\x13\x41rtistExternalLinks\x12\x12\n\nwebsiteUrl\x18\x01 \x03(\t\x12\x1c\n\x14googlePlusProfileUrl\x18\x02 \x01(\t\x12\x19\n\x11youtubeChannelUrl\x18\x03 \x01(\t\"\x83\x01\n\x0c\x41lbumDetails\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1d.MusicDocDetails.MusicDetails\x12\x35\n\rdisplayArtist\x18\x03 \x01(\x0b\x32\x1e.MusicDocDetails.ArtistDetails\"\xe4\x01\n\x0bSongDetails\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1d.MusicDocDetails.MusicDetails\x12\x11\n\talbumName\x18\x03 \x01(\t\x12\x13\n\x0btrackNumber\x18\x04 \x01(\x05\x12\x12\n\npreviewUrl\x18\x05 \x01(\t\x12\x35\n\rdisplayArtist\x18\x06 \x01(\x0b\x32\x1e.MusicDocDetails.ArtistDetails\x12$\n\x05\x62\x61\x64ge\x18\x07 \x01(\x0b\x32\x15.DocAnnotations.Badge\"n\n\rArtistDetails\x12\x12\n\ndetailsUrl\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\rexternalLinks\x18\x03 \x01(\x0b\x32$.MusicDocDetails.ArtistExternalLinks\"\xcb\x01\n\x0cMusicDetails\x12\x11\n\tcensoring\x18\x01 \x01(\x05\x12\x13\n\x0b\x64urationSec\x18\x02 \x01(\x05\x12\x1b\n\x13originalReleaseDate\x18\x03 \x01(\t\x12\r\n\x05label\x18\x04 \x01(\t\x12.\n\x06\x61rtist\x18\x05 \x03(\x0b\x32\x1e.MusicDocDetails.ArtistDetails\x12\r\n\x05genre\x18\x06 \x03(\t\x12\x13\n\x0breleaseDate\x18\x07 \x01(\t\x12\x13\n\x0breleaseType\x18\x08 \x03(\x05\x42\x33\n com.google.android.finsky.protosB\x0fMusicDocDetails') , dependencies=[doc__annotations__pb2.DESCRIPTOR,]) _sym_db.RegisterFileDescriptor(DESCRIPTOR) _ARTISTEXTERNALLINKS = _descriptor.Descriptor( name='ArtistExternalLinks', full_name='MusicDocDetails.ArtistExternalLinks', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='websiteUrl', full_name='MusicDocDetails.ArtistExternalLinks.websiteUrl', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='googlePlusProfileUrl', full_name='MusicDocDetails.ArtistExternalLinks.googlePlusProfileUrl', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='youtubeChannelUrl', full_name='MusicDocDetails.ArtistExternalLinks.youtubeChannelUrl', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=67, serialized_end=165, ) _ALBUMDETAILS = _descriptor.Descriptor( name='AlbumDetails', full_name='MusicDocDetails.AlbumDetails', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='name', full_name='MusicDocDetails.AlbumDetails.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='details', full_name='MusicDocDetails.AlbumDetails.details', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='displayArtist', full_name='MusicDocDetails.AlbumDetails.displayArtist', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=168, serialized_end=299, ) _SONGDETAILS = _descriptor.Descriptor( name='SongDetails', full_name='MusicDocDetails.SongDetails', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='name', full_name='MusicDocDetails.SongDetails.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='details', full_name='MusicDocDetails.SongDetails.details', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='albumName', full_name='MusicDocDetails.SongDetails.albumName', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='trackNumber', full_name='MusicDocDetails.SongDetails.trackNumber', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='previewUrl', full_name='MusicDocDetails.SongDetails.previewUrl', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='displayArtist', full_name='MusicDocDetails.SongDetails.displayArtist', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='badge', full_name='MusicDocDetails.SongDetails.badge', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=302, serialized_end=530, ) _ARTISTDETAILS = _descriptor.Descriptor( name='ArtistDetails', full_name='MusicDocDetails.ArtistDetails', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='detailsUrl', full_name='MusicDocDetails.ArtistDetails.detailsUrl', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='name', full_name='MusicDocDetails.ArtistDetails.name', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='externalLinks', full_name='MusicDocDetails.ArtistDetails.externalLinks', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=532, serialized_end=642, ) _MUSICDETAILS = _descriptor.Descriptor( name='MusicDetails', full_name='MusicDocDetails.MusicDetails', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='censoring', full_name='MusicDocDetails.MusicDetails.censoring', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='durationSec', full_name='MusicDocDetails.MusicDetails.durationSec', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='originalReleaseDate', full_name='MusicDocDetails.MusicDetails.originalReleaseDate', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='label', full_name='MusicDocDetails.MusicDetails.label', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='artist', full_name='MusicDocDetails.MusicDetails.artist', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='genre', full_name='MusicDocDetails.MusicDetails.genre', index=5, number=6, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='releaseDate', full_name='MusicDocDetails.MusicDetails.releaseDate', index=6, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='releaseType', full_name='MusicDocDetails.MusicDetails.releaseType', index=7, number=8, type=5, cpp_type=1, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto2', extension_ranges=[], oneofs=[ ], serialized_start=645, serialized_end=848, ) _ALBUMDETAILS.fields_by_name['details'].message_type = _MUSICDETAILS _ALBUMDETAILS.fields_by_name['displayArtist'].message_type = _ARTISTDETAILS _SONGDETAILS.fields_by_name['details'].message_type = _MUSICDETAILS _SONGDETAILS.fields_by_name['displayArtist'].message_type = _ARTISTDETAILS _SONGDETAILS.fields_by_name['badge'].message_type = doc__annotations__pb2._BADGE _ARTISTDETAILS.fields_by_name['externalLinks'].message_type = _ARTISTEXTERNALLINKS _MUSICDETAILS.fields_by_name['artist'].message_type = _ARTISTDETAILS DESCRIPTOR.message_types_by_name['ArtistExternalLinks'] = _ARTISTEXTERNALLINKS DESCRIPTOR.message_types_by_name['AlbumDetails'] = _ALBUMDETAILS DESCRIPTOR.message_types_by_name['SongDetails'] = _SONGDETAILS DESCRIPTOR.message_types_by_name['ArtistDetails'] = _ARTISTDETAILS DESCRIPTOR.message_types_by_name['MusicDetails'] = _MUSICDETAILS ArtistExternalLinks = _reflection.GeneratedProtocolMessageType('ArtistExternalLinks', (_message.Message,), dict( DESCRIPTOR = _ARTISTEXTERNALLINKS, __module__ = 'music_doc_details_pb2' # @@protoc_insertion_point(class_scope:MusicDocDetails.ArtistExternalLinks) )) _sym_db.RegisterMessage(ArtistExternalLinks) AlbumDetails = _reflection.GeneratedProtocolMessageType('AlbumDetails', (_message.Message,), dict( DESCRIPTOR = _ALBUMDETAILS, __module__ = 'music_doc_details_pb2' # @@protoc_insertion_point(class_scope:MusicDocDetails.AlbumDetails) )) _sym_db.RegisterMessage(AlbumDetails) SongDetails = _reflection.GeneratedProtocolMessageType('SongDetails', (_message.Message,), dict( DESCRIPTOR = _SONGDETAILS, __module__ = 'music_doc_details_pb2' # @@protoc_insertion_point(class_scope:MusicDocDetails.SongDetails) )) _sym_db.RegisterMessage(SongDetails) ArtistDetails = _reflection.GeneratedProtocolMessageType('ArtistDetails', (_message.Message,), dict( DESCRIPTOR = _ARTISTDETAILS, __module__ = 'music_doc_details_pb2' # @@protoc_insertion_point(class_scope:MusicDocDetails.ArtistDetails) )) _sym_db.RegisterMessage(ArtistDetails) MusicDetails = _reflection.GeneratedProtocolMessageType('MusicDetails', (_message.Message,), dict( DESCRIPTOR = _MUSICDETAILS, __module__ = 'music_doc_details_pb2' # @@protoc_insertion_point(class_scope:MusicDocDetails.MusicDetails) )) _sym_db.RegisterMessage(MusicDetails) DESCRIPTOR.has_options = True DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n com.google.android.finsky.protosB\017MusicDocDetails')) # @@protoc_insertion_point(module_scope)
41.545946
1,532
0.746097
1,891
15,372
5.79799
0.107351
0.056184
0.060835
0.04378
0.626414
0.586647
0.559923
0.550894
0.550894
0.550894
0
0.039958
0.127374
15,372
369
1,533
41.658537
0.777397
0.032722
0
0.667665
1
0.002994
0.228683
0.1844
0
0
0
0
0
1
0
false
0
0.020958
0
0.020958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0795106848d7f5966ea90ace30bfd8c275f4892
1,452
py
Python
spimdisasm/mips/instructions/MipsInstructions.py
Decompollaborate/py-mips-disasm
1301340130f8cca539d12c486deff3a1037a8787
[ "MIT" ]
6
2021-11-17T21:21:25.000Z
2022-01-28T13:37:44.000Z
spimdisasm/mips/instructions/MipsInstructions.py
Decompollaborate/py-mips-disasm
1301340130f8cca539d12c486deff3a1037a8787
[ "MIT" ]
null
null
null
spimdisasm/mips/instructions/MipsInstructions.py
Decompollaborate/py-mips-disasm
1301340130f8cca539d12c486deff3a1037a8787
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # SPDX-FileCopyrightText: © 2022 Decompollaborate # SPDX-License-Identifier: MIT from __future__ import annotations from . import InstructionBase, InstructionNormal, InstructionSpecial, InstructionRegimm, InstructionCoprocessor0, InstructionCoprocessor1, InstructionCoprocessor2, InstructionNormalRsp, InstructionSpecialRsp, InstructionRegimmRsp, InstructionCoprocessor0Rsp, InstructionCoprocessor2Rsp def wordToInstruction(word: int) -> InstructionBase: if ((word >> 26) & 0x3F) == 0x00: return InstructionSpecial(word) if ((word >> 26) & 0x3F) == 0x01: return InstructionRegimm(word) if ((word >> 26) & 0x3F) == 0x10: return InstructionCoprocessor0(word) if ((word >> 26) & 0x3F) == 0x11: return InstructionCoprocessor1(word) if ((word >> 26) & 0x3F) == 0x12: return InstructionCoprocessor2(word) return InstructionNormal(word) def wordToInstructionRsp(word: int) -> InstructionBase: if ((word >> 26) & 0x3F) == 0x00: return InstructionSpecialRsp(word) if ((word >> 26) & 0x3F) == 0x01: return InstructionRegimmRsp(word) if ((word >> 26) & 0x3F) == 0x10: return InstructionCoprocessor0Rsp(word) # TODO? # if ((word >> 26) & 0x3F) == 0x11: # return InstructionCoprocessor1Rsp(word) if ((word >> 26) & 0x3F) == 0x12: return InstructionCoprocessor2Rsp(word) return InstructionNormalRsp(word)
39.243243
285
0.690083
128
1,452
7.804688
0.34375
0.06006
0.08008
0.12012
0.292292
0.288288
0.244244
0.088088
0.088088
0
0
0.073693
0.196281
1,452
36
286
40.333333
0.781491
0.125344
0
0.333333
0
0
0
0
0
0
0.056962
0.027778
0
1
0.083333
false
0
0.083333
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
d087ed8ee15bad5d7c1821a1e331d8b2531b39be
1,599
py
Python
alpaca.py
frankie-js/alpaca-message
b3a93d2ac688aae8546e5dd597d90f3aa1c02876
[ "MIT" ]
null
null
null
alpaca.py
frankie-js/alpaca-message
b3a93d2ac688aae8546e5dd597d90f3aa1c02876
[ "MIT" ]
null
null
null
alpaca.py
frankie-js/alpaca-message
b3a93d2ac688aae8546e5dd597d90f3aa1c02876
[ "MIT" ]
null
null
null
import click def split_list(a_list): half = len(a_list)//2 return a_list[:half], a_list[half:] def generate_string(inputString): inputLength = len(inputString) if inputLength > 25: splitStr = inputString.split(" ") lineOne, lineTwo = split_list(splitStr) output = r""" ' ' ' ' ' /\,/"`"`"\`\ /\, | ` ` | ` ⌒ ⌒ ` ( ◉ ❤︎ ◉ ) ( ⌣ ) ----- %s ( ) %s ( ) ( ) ( ) ( )"`"``"`(``) ( ) ( ) ( ) ( ) ( )`( )(( ) \, ,/ \, ,/ \ \ / ⌣ ⌣ ⌣ ⌣""" % ( " ".join(lineOne), " ".join(lineTwo), ) else: output = ( r""" ' ' ' ' ' /\,/"`"`"\`\ /\, | ` ` | ` ⌒ ⌒ ` ( ◉ ❤︎ ◉ ) ( ⌣ ) ----- %s ( ) ( ) ( ) ( ) ( )"`"``"`(``) ( ) ( ) ( ) ( ) ( )`( )(( ) \, ,/ \, ,/ \ \ / ⌣ ⌣ ⌣ ⌣""" % inputString ) return output def print_message(inputString): print(generate_string(inputString) + "\n", end="") @click.command() @click.argument("message", default="") def main(message): click.echo(generate_string(message)) if __name__ == "__main__": main()
21.608108
55
0.268293
100
1,599
4.33
0.38
0.027714
0.027714
0.04157
0.090069
0.069284
0.069284
0.069284
0.069284
0
0
0.00411
0.543465
1,599
73
56
21.90411
0.558904
0
0
0.159091
1
0
0.366843
0
0
0
0
0
0
1
0.090909
false
0
0.022727
0
0.159091
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d08cda476ff99b07c85a9b119f97e364b0afc40b
3,543
py
Python
jangl_webleads_inbound/verticals/life_insurance.py
jangl-platform/jangl-webleads-inbound
7ba7734c0614c946f52af23829b7c61ba4fa9460
[ "MIT" ]
1
2021-01-14T21:55:27.000Z
2021-01-14T21:55:27.000Z
jangl_webleads_inbound/verticals/life_insurance.py
jangl-platform/jangl-webleads-inbound
7ba7734c0614c946f52af23829b7c61ba4fa9460
[ "MIT" ]
1
2021-06-10T21:22:36.000Z
2021-06-10T21:22:36.000Z
jangl_webleads_inbound/verticals/life_insurance.py
jangl-platform/jangl-webleads-inbound
7ba7734c0614c946f52af23829b7c61ba4fa9460
[ "MIT" ]
null
null
null
from rest_framework import serializers allow_blank = {'default': '', 'initial': '', 'allow_blank': True} allow_null = {'default': None, 'initial': None, 'allow_null': True} empty_list = {'default': [], 'initial': [], 'many': True} class PersonSerializer(serializers.Serializer): birth_date = serializers.DateField(**allow_null) gender = serializers.CharField(max_length=1, **allow_blank) height = serializers.IntegerField(**allow_null) weight = serializers.IntegerField(**allow_null) residence_type = serializers.CharField(max_length=20, **allow_blank) months_at_current_residence = serializers.IntegerField(**allow_null) marital_status = serializers.CharField(max_length=50, **allow_blank) education = serializers.CharField(max_length=50, **allow_blank) occupation = serializers.CharField(max_length=50, **allow_blank) relationship_to_applicant = serializers.CharField(max_length=50, **allow_blank) student = serializers.NullBooleanField(required=False) tobacco = serializers.NullBooleanField(required=False) expectant_parent = serializers.NullBooleanField(required=False) relative_heart = serializers.NullBooleanField(required=False) relative_cancer = serializers.NullBooleanField(required=False) hospitalized = serializers.NullBooleanField(required=False) ongoing_medical_treatment = serializers.NullBooleanField(required=False) dui = serializers.NullBooleanField(required=False) previously_denied = serializers.NullBooleanField(required=False) hazard_pilot = serializers.NullBooleanField(required=False) hazard_felony = serializers.NullBooleanField(required=False) hazard_other = serializers.NullBooleanField(required=False) hazardous_activity = serializers.NullBooleanField(required=False) medical_condition = serializers.CharField(max_length=200, **allow_blank) def to_internal_value(self, data): if 'DUI' in data: data['dui'] = data.pop('DUI') return super(PersonSerializer, self).to_internal_value(data) class MedicationSerializer(serializers.Serializer): medication_name = serializers.CharField(max_length=50, **allow_blank) dosage = serializers.CharField(max_length=30, **allow_blank) frequency = serializers.CharField(max_length=30, **allow_blank) comment = serializers.CharField(max_length=30, **allow_blank) class RequestedPolicySerializer(serializers.Serializer): coverage_type = serializers.CharField(max_length=30, **allow_blank) coverage_amount = serializers.CharField(max_length=20, **allow_blank) coverage_term = serializers.CharField(max_length=20, **allow_blank) class CurrentPolicySerializer(serializers.Serializer): insurance_company = serializers.CharField(max_length=50, **allow_blank) expiration_date = serializers.DateField(**allow_null) insured_since = serializers.DateField(**allow_null) coverage_type = serializers.CharField(max_length=30, **allow_blank) class PingDataSerializer(serializers.Serializer): persons = PersonSerializer(many=True, allow_empty=False) medications = MedicationSerializer(**empty_list) requested_policy = RequestedPolicySerializer(**allow_null) current_policy = CurrentPolicySerializer(**allow_null) class PostDataSerializer(serializers.Serializer): persons = PersonSerializer(many=True, allow_empty=False) medications = MedicationSerializer(**empty_list) requested_policy = RequestedPolicySerializer(**allow_null) current_policy = CurrentPolicySerializer(**allow_null)
49.208333
83
0.778154
366
3,543
7.295082
0.275956
0.067416
0.137828
0.173783
0.492135
0.378277
0.378277
0.209363
0.190262
0.150562
0
0.01024
0.117979
3,543
71
84
49.901408
0.84416
0
0
0.175439
0
0
0.021451
0
0
0
0
0
0
1
0.017544
false
0
0.017544
0
0.912281
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
d09feaea71e8e959d5c61d23c881047a53470a36
3,201
py
Python
aerospace_simulator/blocks.py
mdziemianko/aerospace-simulator
b983760194ad01847281d414e51de1997c6d8a29
[ "Apache-2.0" ]
null
null
null
aerospace_simulator/blocks.py
mdziemianko/aerospace-simulator
b983760194ad01847281d414e51de1997c6d8a29
[ "Apache-2.0" ]
null
null
null
aerospace_simulator/blocks.py
mdziemianko/aerospace-simulator
b983760194ad01847281d414e51de1997c6d8a29
[ "Apache-2.0" ]
null
null
null
from typing import Union, Optional, Callable class Block: def __init__(self, name, simulation): self.name = name simulation.add(self) def finalise(self): pass def tick(self, dt): pass def value(self) -> Union[float, dict]: pass class ConstantBlock(Block): def __init__(self, name, simulation, v: float): super().__init__(name, simulation) self._v = v def value(self) -> float: return self._v class StepBlock(Block): _time_so_far = 0 def __init__(self, name, simulation, value: float, on: float, off: Optional[float] = None, default_value: float = 0.0): super().__init__(name, simulation) self._value = value self._default_value = default_value self._on = on self._off = off def tick(self, dt): self._time_so_far += dt def value(self): if self._time_so_far >= self._on and (not self._off or self._time_so_far < self._off): return self._value else: return self._default_value class UnaryFBlock(Block): def __init__(self, name, simulation, i: Block, f: Callable[[float], float]): super().__init__(name, simulation) self._f = f self._i = i def value(self): return self._f(self._i.value()) class BinaryFBlock(Block): def __init__(self, name, simulation, i1: Block, i2: Block, f: Callable[[float, float], float]): super().__init__(name, simulation) self._f = f self._i1 = i1 self._i2 = i2 def value(self): return self._f(self._i1.value(), self._i2.value()) class NaryFBlock(Block): def __init__(self, name, simulation, iarr: list[Block], f: Callable[[list[Block]], float]): super().__init__(name, simulation) self._f = f self._iarr = iarr def value(self): return self._f(self._iarr) class IntegratingBlock(Block): def __init__(self, name, simulation, i: Block): super().__init__(name, simulation) self._v = 0 self._i = i def tick(self, dt): self._v += dt * self._i.value() def value(self) -> float: return self._v class LoopBlock(Block): def __init__(self, name, simulation, initial_value=0): super().__init__(name, simulation) self._i = None self._live = -1 self._initial_value = initial_value def tick(self, dt): if not self._i: raise SystemError("Loop not initialized. Call set_input to set the variable to loop back!") self._live += 1 def value(self): if self._live > 0: return self._i.value() else: return self._initial_value def set_input(self, i: Block): self._i = i class Logger(Block): def __init__(self, name, simulation, i: Block, extractor: Callable[[dict], float]): super().__init__(name, simulation) self._i = i self._v = [extractor(i.value())] self._extractor = extractor def value(self) -> Union[float, dict]: return self._extractor(self._i.value()) def tick(self, dt): self._v.append(self.value())
25.204724
123
0.597938
413
3,201
4.307506
0.162228
0.141653
0.055649
0.075885
0.521079
0.431703
0.213041
0.16751
0.069702
0.048342
0
0.006941
0.279913
3,201
126
124
25.404762
0.764859
0
0
0.4
0
0
0.021875
0
0
0
0
0
0
1
0.277778
false
0.033333
0.011111
0.066667
0.511111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d0a7f61b1fa942d7f24a9768edea0797168dfae4
2,387
py
Python
Tickets/FlyOut.py
fefelson/MLBProjections
444a1c071cb7b1e21eedc49cf63ae91e80d37978
[ "MIT" ]
null
null
null
Tickets/FlyOut.py
fefelson/MLBProjections
444a1c071cb7b1e21eedc49cf63ae91e80d37978
[ "MIT" ]
null
null
null
Tickets/FlyOut.py
fefelson/MLBProjections
444a1c071cb7b1e21eedc49cf63ae91e80d37978
[ "MIT" ]
null
null
null
from .Ticket import Ticket, StateTicket ################################################################################ ################################################################################ ################################################################################ ################################################################################ class FlyOut(Ticket): def getStateTicket(self, diamondState): stateTicket = None if diamondState in ("firstBase_secondBase_thirdBase", "secondBase_thirdBase", "thirdBase"): stateTicket = ThirdBaseFlyOut() else: stateTicket = FlyOutState() return stateTicket ################################################################################ ################################################################################ class ThirdBaseFlyOut(StateTicket): def recordOuts(self, umpire): umpire.recordOut() def recordEvents(self, pitcherId, batterId, diamond, umpire, scoreKeeper): scoreKeeper.recordPitcherOut(pitcherId) scoreKeeper.recordBatterPA(batterId) runnerId, onHook = diamond.popBase("thirdBase") if umpire.getOuts() < 3: scoreKeeper.recordTeamRun() scoreKeeper.recordBatterRun(runnerId) scoreKeeper.recordBatterRbi(batterId) scoreKeeper.recordRun(pitcherId) if scoreKeeper.exOuts() < 3: scoreKeeper.recordPitcherER(pitcherId) def moveBases(self, diamond): pass def reachedBase(self, pitcherId, batterId, diamond): pass ################################################################################ ################################################################################ class FlyOutState(StateTicket): def recordOuts(self, umpire): umpire.recordOut() def recordEvents(self, pitcherId, batterId, diamond, umpire, scoreKeeper): scoreKeeper.recordPitcherOut(pitcherId) scoreKeeper.recordBatterAB(batterId) def moveBases(self, diamond): pass def reachedBase(self, pitcherId, batterId, diamond): pass ################################################################################ ################################################################################
28.759036
80
0.422706
127
2,387
7.92126
0.354331
0.05169
0.083499
0.111332
0.455268
0.455268
0.455268
0.455268
0.455268
0.455268
0
0.001033
0.188521
2,387
82
81
29.109756
0.518327
0
0
0.410256
0
0
0.042848
0.018904
0
0
0
0
0
1
0.230769
false
0.102564
0.025641
0
0.358974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
d0b96def4151c996e7b0e694b919d51d7c99be73
855
bzl
Python
junit/junit.bzl
gfl-chris/rules_scala
7b2ea5d5b98960c6e9c1ebb073938cc17e6ea191
[ "Apache-2.0" ]
null
null
null
junit/junit.bzl
gfl-chris/rules_scala
7b2ea5d5b98960c6e9c1ebb073938cc17e6ea191
[ "Apache-2.0" ]
null
null
null
junit/junit.bzl
gfl-chris/rules_scala
7b2ea5d5b98960c6e9c1ebb073938cc17e6ea191
[ "Apache-2.0" ]
1
2020-01-27T16:59:40.000Z
2020-01-27T16:59:40.000Z
load( "//scala:scala_cross_version.bzl", _default_maven_server_urls = "default_maven_server_urls", ) load("//third_party/repositories:repositories.bzl", "repositories") def junit_repositories( maven_servers = _default_maven_server_urls(), fetch_sources = True): repositories( for_artifact_ids = [ "io_bazel_rules_scala_junit_junit", "io_bazel_rules_scala_org_hamcrest_hamcrest_core", ], fetch_sources = fetch_sources, maven_servers = maven_servers, ) native.bind( name = "io_bazel_rules_scala/dependency/junit/junit", actual = "@io_bazel_rules_scala_junit_junit//jar", ) native.bind( name = "io_bazel_rules_scala/dependency/hamcrest/hamcrest_core", actual = "@io_bazel_rules_scala_org_hamcrest_hamcrest_core//jar", )
31.666667
73
0.687719
98
855
5.44898
0.336735
0.078652
0.134831
0.191011
0.426966
0.404494
0.303371
0.303371
0
0
0
0
0.215205
855
26
74
32.884615
0.795827
0
0
0.083333
0
0
0.442105
0.42807
0
0
0
0
0
1
0.041667
false
0
0
0
0.041667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0bff27a69c7875a6356f9b72a833c69ed05611a
403
py
Python
3-Patron/python/CreadorMapaJungla.py
TanZng/patrones-combinados
93796d9d5296649bd76b7b2ee7c723156b9a120f
[ "MIT" ]
1
2021-09-13T15:45:48.000Z
2021-09-13T15:45:48.000Z
3-Patron/python/CreadorMapaJungla.py
TanZng/patrones-combinados
93796d9d5296649bd76b7b2ee7c723156b9a120f
[ "MIT" ]
null
null
null
3-Patron/python/CreadorMapaJungla.py
TanZng/patrones-combinados
93796d9d5296649bd76b7b2ee7c723156b9a120f
[ "MIT" ]
1
2021-09-24T03:00:47.000Z
2021-09-24T03:00:47.000Z
import CreadorDeMapa import Mazmorra import Tesoro import Textura import Mapa class CreadorMapaJungla(CreadorDeMapa): @property def mapa(self): return self.__mapa def crearMapa(self): mazmorra = Mazmorra() tesoro = Tesoro(100, 10000) textura = Textura("nieve.png", 100, 200) self.__mapa = Mapa(mazmorra, tesoro, textura) return self.__mapa
21.210526
53
0.667494
44
403
5.977273
0.409091
0.091255
0.106464
0
0
0
0
0
0
0
0
0.046358
0.25062
403
18
54
22.388889
0.824503
0
0
0.133333
0
0
0.022333
0
0
0
0
0
0
1
0.133333
false
0
0.333333
0.066667
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d0d92546d1c1a49c6fd08ba0db6c33c12071981a
1,602
py
Python
Project 2/ActiveDirectory/ActiveDirectory.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
1
2020-05-14T12:44:53.000Z
2020-05-14T12:44:53.000Z
Project 2/ActiveDirectory/ActiveDirectory.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
null
null
null
Project 2/ActiveDirectory/ActiveDirectory.py
Blac-Panda/Udacity-DSA-Nanodegree
4629c77274182687f63c73016a941ab21f54f9cb
[ "MIT" ]
null
null
null
class Group(object): def __init__(self, _name): self.name = _name self.groups = [] self.users = [] def add_group(self, group): self.groups.append(group) def add_user(self, user): self.users.append(user) def get_groups(self): return self.groups def get_users(self): return self.users def get_name(self): return self.name def __repr__(self): return f"Group(name: {self.name},\n\tusers: {self.users},\n\tgroups:{self.groups})" """Checks if the user is in the group. If found, returns Ture, else, calls subgroups recursively.""" def is_user_in_group(user, group): if user in group.get_users(): return True for subgroup in group.get_groups(): #print("checking group-- ", subgroup.get_name()) return is_user_in_group(user, subgroup) return False """ verify the data """ def run_test_data(): parent = Group("parent") child = Group("child") sub_child = Group("subchild") sub_child_user = "sub_child_user" sub_child.add_user(sub_child_user) child.add_group(sub_child) parent.add_group(child) print("\nCheck if user in group - {}".format(is_user_in_group(sub_child_user, parent))) print("\nCheck if user in group - {}".format(is_user_in_group('youngqueenz',parent))) #Returns false cos sub_child_use doesn't exist print("\nCheck if user in group - {}".format(is_user_in_group('',parent))) #Returns false cos input is null print("\nParent Group:") print(parent) run_test_data()
27.152542
138
0.641074
224
1,602
4.348214
0.25
0.071869
0.101643
0.066735
0.200205
0.132444
0.132444
0.132444
0.132444
0.132444
0
0
0.232834
1,602
58
139
27.62069
0.792514
0.076779
0
0
0
0.027027
0.162342
0.044477
0
0
0
0
0
1
0.243243
false
0
0
0.108108
0.459459
0.135135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d0daf83e2948e6f999964956cf0b2defc7babacb
19,245
py
Python
tests/test_arrays.py
AppliedAcousticsChalmers/levitate
c6ad1038327abfc82a5402b42019b69e52f7f5c4
[ "MIT" ]
11
2019-07-13T13:09:16.000Z
2021-11-13T09:23:34.000Z
tests/test_arrays.py
AppliedAcousticsChalmers/levitate
c6ad1038327abfc82a5402b42019b69e52f7f5c4
[ "MIT" ]
4
2019-03-08T09:15:08.000Z
2019-03-08T09:15:51.000Z
tests/test_arrays.py
AppliedAcousticsChalmers/levitate
c6ad1038327abfc82a5402b42019b69e52f7f5c4
[ "MIT" ]
5
2020-09-14T16:23:35.000Z
2021-11-14T16:19:32.000Z
import levitate.arrays import levitate.hardware import numpy as np import pytest # Tests created with these air properties from levitate.materials import air air.c = 343 air.rho = 1.2 # Tests were mostly written before the layout was transposed, # so a lot of the "expected" positions etc are transposed in the test hardcoding. def test_rectangular_grid(): # positions, normals = levitate.arrays.rectangular_grid(shape=(5, 3), spread=10e-3) array = levitate.arrays.RectangularArray(shape=(5, 3), transducer_size=10e-3) expected_positions = np.array([ [-0.02, -0.01, 0.], [-0.01, -0.01, 0.], [0. , -0.01, 0.], [ 0.01, -0.01, 0.], [ 0.02, -0.01, 0.], [-0.02, 0. , 0.], [-0.01, 0. , 0.], [ 0. , 0. , 0.], [ 0.01, 0. , 0.], [ 0.02, 0. , 0.], [-0.02, 0.01, 0.], [-0.01, 0.01, 0.], [ 0. , 0.01, 0.], [ 0.01, 0.01, 0.], [ 0.02, 0.01, 0.]]).T expected_normals = np.array([ [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.]]).T np.testing.assert_allclose(array.positions, expected_positions) np.testing.assert_allclose(array.normals, expected_normals) @pytest.mark.parametrize('rectangular_class, shape, spread', [ (levitate.hardware.DragonflyArray, (16, 16), 10.47e-3), (levitate.hardware.AcoustophoreticBoard, (16, 16), 10.47e-3), ]) def test_rectangular_variants(rectangular_class, shape, spread): # Check that we do place all the indices. all_indices = np.sort(rectangular_class.grid_indices.flatten()) np.testing.assert_equal(all_indices, list(range(np.prod(shape)))) array = rectangular_class() # Test that every element is where it should be for idx, (x, y, _) in enumerate(zip(*array.positions)): y_idx, x_idx = np.argwhere(array.grid_indices == idx)[0] np.testing.assert_allclose(x / array.spread + 7.5, x_idx) np.testing.assert_allclose(7.5 - y / array.spread, y_idx) # Test that this is indeed a 16x16 rectangular array with spread 10.47 mm rectangular = levitate.arrays.RectangularArray(shape=shape, spread=spread) differences = rectangular.positions[:, :, None] - array.positions[:, None, :] distances = np.sum(differences**2, axis=0) assert all([(np.min(distances, axis=axis) == 0).all() for axis in range(distances.ndim)]) def test_array_offset(): array = levitate.arrays.RectangularArray(shape=(4, 2), offset=(0.1, -0.2, 1.4)) expected_positions = np.array([ [0.085, -0.205, 1.4], [0.095, -0.205, 1.4], [0.105, -0.205, 1.4], [0.115, -0.205, 1.4], [0.085, -0.195, 1.4], [0.095, -0.195, 1.4], [0.105, -0.195, 1.4], [0.115, -0.195, 1.4]]).T expected_normals = np.array([ [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.], [0., 0., 1.]]).T np.testing.assert_allclose(array.positions, expected_positions) np.testing.assert_allclose(array.normals, expected_normals) @pytest.mark.parametrize('offset', [(0., 0., 0.), (1.85194e-3, 28.2839e-3, 35.2830e-3)]) @pytest.mark.parametrize('radius', [0.4, 0.05]) @pytest.mark.parametrize('rings', [4, 15]) @pytest.mark.parametrize('normal', [(0., 0., 1.), (-2., 5., 4.37)]) @pytest.mark.parametrize('packing', ['distance', 'count']) @pytest.mark.parametrize('spread', [10e-3, 5e-3]) def test_spherical_cap(radius, rings, normal, offset, packing, spread): normal, offset = np.asarray(normal), np.asarray(offset) array = levitate.arrays.SphericalCapArray(radius=radius, rings=rings, spread=spread, packing=packing, normal=normal, offset=offset) focus = normal / np.sum(normal**2)**0.5 * radius + offset diff = focus[:, None] - array.positions dist = np.sum(diff**2, 0)**0.5 np.testing.assert_allclose(dist, radius) np.testing.assert_allclose(np.sum(diff * array.normals, 0) / dist, 1.) array = levitate.arrays.DoublesidedArray( levitate.arrays.SphericalCapArray( radius=radius, rings=rings, spread=spread, packing=packing, normal=normal ), separation=radius * 2, normal=normal, offset=offset ) diff = offset[:, None] - array.positions dist = np.sum(diff**2, 0)**0.5 np.testing.assert_allclose(dist, radius) np.testing.assert_allclose(np.sum(diff * array.normals, 0) / dist, 1.) def test_array_normal(): array = levitate.arrays.RectangularArray(shape=(4, 2), normal=(2, 3, 4)) expected_positions = np.array([ [-1.321925551875e-02, -2.328883278124e-03, +8.356290217967e-03], [-4.010697510416e-03, -3.516046265624e-03, +4.642383454426e-03], [+5.197860497917e-03, -4.703209253125e-03, +9.284766908853e-04], [+1.440641850625e-02, -5.890372240625e-03, -2.785430072656e-03], [-1.440641850625e-02, +5.890372240625e-03, +2.785430072656e-03], [-5.197860497917e-03, +4.703209253125e-03, -9.284766908853e-04], [+4.010697510416e-03, +3.516046265624e-03, -4.642383454426e-03], [+1.321925551875e-02, +2.328883278124e-03, -8.356290217967e-03]]).T expected_normals = np.array([ [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01], [+3.713906763541e-01, +5.570860145312e-01, +7.427813527082e-01]]).T np.testing.assert_allclose(array.positions, expected_positions) np.testing.assert_allclose(array.normals, expected_normals) def test_array_rotation(): array = levitate.arrays.RectangularArray(shape=(4, 2), rotation=1, normal=(-1, 4, -2)) expected_positions = np.array([ [-8.747019947780e-03, +4.075784833732e-03, +1.252507964135e-02], [-9.564871486238e-04, +2.940455719910e-03, +6.359155014132e-03], [+6.834045650533e-03, +1.805126606089e-03, +1.932303869110e-04], [+1.462457844969e-02, +6.697974922671e-04, -5.972694240310e-03], [-1.462457844969e-02, -6.697974922671e-04, +5.972694240310e-03], [-6.834045650533e-03, -1.805126606089e-03, -1.932303869110e-04], [+9.564871486238e-04, -2.940455719910e-03, -6.359155014132e-03], [+8.747019947780e-03, -4.075784833732e-03, -1.252507964135e-02]]).T expected_normals = np.array([ [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01], [-2.182178902360e-01, +8.728715609440e-01, -4.364357804720e-01]]).T np.testing.assert_allclose(array.positions, expected_positions) np.testing.assert_allclose(array.normals, expected_normals) def test_double_sided_grid(): array = levitate.arrays.DoublesidedArray(levitate.arrays.RectangularArray, separation=0.5, shape=(2, 2), spread=5e-3, offset=(0.1, -0.2, 1.4), normal=(0.2, -1.4, 2), rotation=1) expected_positions = np.array([ [+8.02489979e-02, -5.99269663e-02, +1.19384001e+00], [+8.30486836e-02, -5.64068310e-02, +1.19602413e+00], [+7.61264873e-02, -5.78193656e-02, +1.19572758e+00], [+7.89261731e-02, -5.42992303e-02, +1.19791170e+00], [+1.21073827e-01, -3.45700770e-01, +1.60208830e+00], [+1.23873513e-01, -3.42180634e-01, +1.60427242e+00], [+1.16951316e-01, -3.43593169e-01, +1.60397587e+00], [+1.19751002e-01, -3.40073034e-01, +1.60615999e+00]]).T expected_normals = np.array([ [+8.16496581e-02, -5.71547607e-01, +8.16496581e-01], [+8.16496581e-02, -5.71547607e-01, +8.16496581e-01], [+8.16496581e-02, -5.71547607e-01, +8.16496581e-01], [+8.16496581e-02, -5.71547607e-01, +8.16496581e-01], [-8.16496581e-02, +5.71547607e-01, -8.16496581e-01], [-8.16496581e-02, +5.71547607e-01, -8.16496581e-01], [-8.16496581e-02, +5.71547607e-01, -8.16496581e-01], [-8.16496581e-02, +5.71547607e-01, -8.16496581e-01]]).T np.testing.assert_allclose(array.positions, expected_positions) np.testing.assert_allclose(array.normals, expected_normals) expected_signature = np.array([0, 0, 0, 0, np.pi, np.pi, np.pi, np.pi]) np.testing.assert_allclose(array.signature(stype='doublesided'), expected_signature) def test_Array_basics(): pos, norm = np.random.normal(size=(2, 3, 8)) array = levitate.arrays.TransducerArray(pos, norm) array.omega = 200000 np.testing.assert_allclose(2 * np.pi * array.freq, array.omega) array.k = 730 np.testing.assert_allclose(2 * np.pi / array.k, array.wavelength) array.wavelength = 8.5e-3 np.testing.assert_allclose(air.c, array.wavelength * array.freq) array.freq = 41e3 np.testing.assert_allclose(array.transducer.freq, 41e3) from levitate.transducers import PlaneWaveTransducer array = levitate.arrays.RectangularArray(shape=(4, 4), transducer=PlaneWaveTransducer) pos = np.array([7e-3, -3e-3, 70e-3]) np.testing.assert_allclose(array.focus_phases(pos), np.array([+2.069588782645e+00, -2.511641902621e+00, -1.794667262208e+00, -2.103144086214e+00, +2.763870843565e+00, -1.794667262208e+00, -1.067679552580e+00, -1.380498791671e+00, +2.465230031099e+00, -2.103144086214e+00, -1.380498791671e+00, -1.691434660688e+00, +1.189733359830e+00, +2.863786956082e+00, -2.714709695304e+00, -3.017860322253e+00])) np.testing.assert_allclose(array.signature(pos, stype='twin'), np.array([-1.570796326795e+00, -1.570796326795e+00, +1.570796326795e+00, +1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, +1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, +1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, -1.570796326795e+00, +1.570796326795e+00])) np.testing.assert_allclose(array.signature(pos, stype='vortex'), np.array([-2.642245931910e+00, -2.356194490192e+00, -1.735945004210e+00, -9.827937232473e-01, -3.050932766389e+00, -2.976443976175e+00, -2.356194490192e+00, -2.449786631269e-01, +2.792821650006e+00, +2.553590050042e+00, +1.815774989922e+00, +7.853981633974e-01, +2.455863142684e+00, +2.158798930342e+00, +1.681453547969e+00, +1.152571997216e+00])) np.testing.assert_allclose(array.signature(pos, stype='bottle'), np.array([+3.141592653590e+00, +3.141592653590e+00, +0.000000000000e+00, +0.000000000000e+00, +3.141592653590e+00, +0.000000000000e+00, +0.000000000000e+00, +0.000000000000e+00, +3.141592653590e+00, +0.000000000000e+00, +0.000000000000e+00, +0.000000000000e+00, +3.141592653590e+00, +3.141592653590e+00, +3.141592653590e+00, +3.141592653590e+00])) pos = np.array([0.1, -0.2, 0.3]) np.testing.assert_allclose(array.focus_phases(pos), np.array([-1.4782875, 0.70451472, 2.70433793, -1.76613547, 1.07535199, -3.05482743, -1.08272084, 0.70451472, -2.79668059, -0.67375749, 1.27038374, 3.03192953, -0.52217161, 1.57048339, -2.79668059, -1.0609514])) np.testing.assert_allclose(array.signature(pos, stype='twin'), np.array([-1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633, -1.57079633])) np.testing.assert_allclose(array.signature(stype='vortex'), np.array([-2.35619449, -1.89254688, -1.24904577, -0.78539816, -2.8198421, -2.35619449, -0.78539816, -0.32175055, 2.8198421, 2.35619449, 0.78539816, 0.32175055, 2.35619449, 1.89254688, 1.24904577, 0.78539816])) np.testing.assert_allclose(array.signature(stype='bottle'), np.array([3.14159265, 0., 0., 3.14159265, 0., 0., 0., 0., 0., 0., 0., 0., 3.14159265, 0., 0., 3.14159265])) def test_Array_visualizer(): array = levitate.arrays.RectangularArray(shape=2) array.visualize() pos = np.array([0, 0, 0.05]) signature = array.signature(angle=np.pi, stype='twin') phase = array.focus_phases(pos) + signature amps = levitate.utils.complex(phase) from levitate.utils import find_trap trap_pos = find_trap(array, pos, amps) np.testing.assert_allclose(pos, trap_pos, atol=0.1e-3) np.testing.assert_allclose(signature, array.signature(pos, phase)) def test_Array_calculations(): array = levitate.arrays.RectangularArray(shape=2) pos = np.array([0.1, -0.2, 0.3]) expected_result = np.array([ [-1.60298320e+01+1.39433272e+00j, 7.60005836e+00+1.43149212e+01j, 1.23972894e+01+9.89785204e+00j, 4.72749101e+00-1.52603890e+01j], [-2.75579656e+02-3.30839037e+03j, -2.69691942e+03+1.41912500e+03j, -2.02250900e+03+2.51457673e+03j, 2.82526527e+03+8.86498882e+02j], [ 5.11790789e+02+6.14415354e+03j, 5.53578197e+03-2.91294080e+03j, 3.94870805e+03-4.90941170e+03j, -6.09662505e+03-1.91297127e+03j], [-7.87370445e+02-9.45254391e+03j, -8.51658764e+03+4.48144738e+03j, -5.77859714e+03+7.18450493e+03j, 8.92189032e+03+2.79947015e+03j], [ 6.80382495e+05-8.33698641e+04j, -2.91485806e+05-4.94127262e+05j, -5.27798435e+05-3.91154134e+05j, -1.38372830e+05+5.31781607e+05j], [ 2.35305285e+06-2.10377336e+05j, -1.13689503e+06-2.12990534e+06j, -1.95769683e+06-1.55833572e+06j, -7.53077687e+05+2.44212524e+06j], [ 5.57294329e+06-4.54866720e+05j, -2.65207242e+06-5.06161450e+06j, -4.17057990e+06-3.36464336e+06j, -1.64672816e+06+5.21935967e+06j], [-1.26844169e+06+9.63139996e+04j, 5.40041580e+05+1.04492376e+06j, 9.92856867e+05+8.10438183e+05j, 3.62769003e+05-1.12739219e+06j], [ 1.95144875e+06-1.48175384e+05j, -8.30833200e+05-1.60757501e+06j, -1.45296127e+06-1.18600710e+06j, -5.30881467e+05+1.64984223e+06j], [-3.62411911e+06+2.75182856e+05j, 1.70539446e+06+3.29975923e+06j, 2.83673391e+06+2.31553766e+06j, 1.14558632e+06-3.56018587e+06j], [ 2.86670148e+07+1.39550752e+08j, 8.79550534e+07-6.44855683e+07j, 7.10265677e+07-1.14387829e+08j, -1.01799225e+08-1.57149418e+07j], [-9.48653965e+07-9.00596323e+08j, -8.15465047e+08+4.51662413e+08j, -6.08347649e+08+7.86174017e+08j, 9.81016375e+08+2.88086328e+08j], [ 2.69225703e+08+3.28515432e+09j, 3.00523878e+09-1.57526192e+09j, 1.95396625e+09-2.42520390e+09j, -3.05538963e+09-9.62345944e+08j], [-2.90779477e+07-2.61000235e+08j, -1.91908617e+08+1.10366719e+08j, -1.57582477e+08+2.07891701e+08j, 2.12034769e+08+5.76457627e+07j], [ 4.47353042e+07+4.01538824e+08j, 2.95244026e+08-1.69794952e+08j, 2.30608503e+08-3.04231758e+08j, -3.10294784e+08-8.43596528e+07j], [ 3.80717090e+07+4.85924318e+08j, 4.02816731e+08-2.09323496e+08j, 3.21279107e+08-3.94767783e+08j, -4.51078135e+08-1.44502368e+08j], [ 1.08776311e+08+1.38835519e+09j, 1.27205284e+09-6.61021567e+08j, 9.17940305e+08-1.12790795e+09j, -1.42445727e+09-4.56323268e+08j], [ 8.12193376e+07+1.15079185e+09j, 9.57197835e+08-4.88115774e+08j, 6.93574595e+08-8.40914649e+08j, -9.64000841e+08-3.15741830e+08j], [-1.50835913e+08-2.13718486e+09j, -1.96477450e+09+1.00192185e+09j, -1.35412183e+09+1.64178574e+09j, 2.08021234e+09+6.81337634e+08j], [-4.85644305e+07-7.48335747e+08j, -6.23978731e+08+3.13792174e+08j, -4.77252163e+08+5.71923550e+08j, 6.57524678e+08+2.19514891e+08j]]) np.testing.assert_allclose(array.pressure_derivs(pos), expected_result) expected_result = np.array([ [-5.682427477075e+01 + 4.942780801222e+00j, +2.694150540810e+01 + 5.074507426259e+01j, +4.394724655282e+01 + 3.508697193457e+01j, +1.675851928357e+01 - 5.409667034377e+01j], [-3.803836147518e+01 - 1.657048080374e+01j, +1.279975203258e+00 + 4.120938631452e+01j, +1.710554711045e+01 + 3.829641433944e+01j, +2.807511601090e+01 - 3.087116808379e+01j], [-6.597796686300e+00 - 7.920790438223e+01j, -7.136502785396e+01 + 3.755243658313e+01j, -4.842194588566e+01 + 6.020279674447e+01j, +7.476127507154e+01 + 2.345825276365e+01j], [-3.477261873074e+01 + 2.263543161484e+01j, +3.323968212216e+01 + 2.439211736111e+01j, +4.107318751625e+01 + 8.497550262354e+00j, -5.405546885483e+00 - 4.137657816630e+01j], [-1.686407000850e+01 - 2.178756862198e+01j, -1.125090492261e+01 + 2.455396689049e+01j, -1.726622397846e+00 + 2.850517035519e+01j, +2.594291002246e+01 - 1.071176900518e+01j], [+3.031007376630e+01 - 6.821025513107e+01j, -7.468896294954e+01 + 1.768761675083e+00j, -6.814162421776e+01 + 2.984827855687e+01j, +5.477558195724e+01 + 5.054666208556e+01j], [+5.988534535282e+01 - 4.547151978544e+00j, -2.861052213724e+01 - 5.535835638677e+01j, -4.322596009999e+01 - 3.528400690252e+01j, -1.773137889725e+01 + 5.510453754651e+01j], [-4.026173202706e+01 - 6.285166991374e+01j, -4.464287578055e+01 + 5.990478567180e+01j, -1.559702090250e+01 + 7.273880410627e+01j, +7.397427410032e+01 - 9.117905355749e+00j], [-1.338098961723e+01 + 2.408410514370e+01j, +2.653751067525e+01 + 5.024010230645e+00j, +2.758190339425e+01 - 7.400308576910e+00j, -1.482787772910e+01 - 2.383087530295e+01j], [-2.707354746999e+00 - 1.746661744378e+01j, -1.332639233207e+01 + 1.070479817804e+01j, -9.733075343865e+00 + 1.606625396807e+01j, +1.821285983077e+01 + 9.712939338454e-01j], [+4.676829722253e+01 - 3.538544878575e+01j, -5.237549857426e+01 - 2.470351811875e+01j, -5.977893107220e+01 - 4.270891236968e+00j, +2.203974234614e+01 + 5.507262673066e+01j], [+7.892432023664e+01 + 3.611381986030e+01j, -1.111183761150e+00 - 8.806141599513e+01j, -3.294243372319e+01 - 7.747677728413e+01j, -5.866451648153e+01 + 6.219821126638e+01j], [+9.287877976849e-01 + 1.431181429618e+01j, +1.559873321909e+01 - 7.844434688683e+00j, +5.510582917790e+00 - 6.603704269743e+00j, -1.080601629861e+01 - 3.607593105422e+00j], [+7.359464973840e+01 - 4.601177935703e+01j, -7.002975115181e+01 - 5.340301180676e+01j, -8.212235075402e+01 - 1.854115596653e+01j, +9.533619685308e+00 + 8.496618783049e+01j], [-5.094954128769e+01 - 2.904389528692e+01j, -1.140045085313e+01 + 5.677575520142e+01j, +1.490296577659e+01 + 5.804879605259e+01j, +5.070404281442e+01 - 3.078708333006e+01j], [-4.271062938279e-01 + 1.767003324465e+01j, +1.653992786475e+01 - 4.314652112229e+00j, +1.406441459177e+01 - 1.245188798563e+01j, -1.514361128043e+01 - 1.016477803538e+01j]]) np.testing.assert_allclose(array.spherical_harmonics(pos, orders=3), expected_result)
67.764085
416
0.671863
2,768
19,245
4.633309
0.217847
0.009981
0.039766
0.059181
0.413255
0.37232
0.351579
0.326784
0.316101
0.25653
0
0.456741
0.14357
19,245
283
417
68.003534
0.321381
0.021772
0
0.304
0
0
0.006802
0
0
0
0
0
0.14
1
0.04
false
0
0.028
0
0.068
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0f35ac80518f5526e231cf3ea15eb9253a44f11
1,167
py
Python
emission/net/ext_service/push/notify_queries.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
null
null
null
emission/net/ext_service/push/notify_queries.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
1
2017-08-31T19:54:16.000Z
2017-08-31T19:54:16.000Z
emission/net/ext_service/push/notify_queries.py
Andrew-Tan/e-mission-server
91d59bee86e63d803e401f10f4b6a2502effedda
[ "BSD-3-Clause" ]
null
null
null
# Standard imports import json import logging import uuid # Our imports import emission.core.get_database as edb def get_platform_query(platform): return {"curr_platform": platform} def get_sync_interval_query(interval): return {"curr_sync_interval": interval} def get_user_query(user_id_list): return {"user_id": {"$in": user_id_list}} def combine_queries(query_list): combined_query = {} for query in query_list: combined_query.update(query) return combined_query def get_matching_tokens(query): logging.debug("Getting tokens matching query %s" % query) ret_cursor = edb.get_profile_db().find(query, {"_id": False, "device_token": True}) mapped_list = map(lambda e: e.get("device_token"), ret_cursor) ret_list = [item for item in mapped_list if item is not None] return ret_list def get_matching_user_ids(query): logging.debug("Getting tokens matching query %s" % query) ret_cursor = edb.get_profile_db().find(query, {"_id": False, "user_id": True}) mapped_list = map(lambda e: e.get("user_id"), ret_cursor) ret_list = [item for item in mapped_list if item is not None] return ret_list
31.540541
87
0.72665
177
1,167
4.514124
0.299435
0.037547
0.025031
0.055069
0.460576
0.460576
0.460576
0.460576
0.390488
0.390488
0
0
0.167095
1,167
36
88
32.416667
0.822016
0.023993
0
0.222222
0
0
0.131162
0
0
0
0
0
0
1
0.222222
false
0
0.148148
0.111111
0.592593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d0f8cffa55ede5b2fdb96e44cc530781a1530c5b
63
py
Python
preprocess/__init__.py
federicozaiter/LogClass
62c1c9c61294625bdb3d99dc01b6adc7b735c4ab
[ "MIT" ]
159
2020-02-19T00:19:23.000Z
2022-03-30T08:40:08.000Z
preprocess/__init__.py
WeibinMeng/LogClass-1
8edbaf4377374e2aac5e7057987e1d047b83ff2f
[ "MIT" ]
3
2021-06-09T04:30:35.000Z
2022-01-09T23:26:07.000Z
preprocess/__init__.py
WeibinMeng/LogClass-1
8edbaf4377374e2aac5e7057987e1d047b83ff2f
[ "MIT" ]
41
2020-02-19T00:19:26.000Z
2022-03-28T08:02:22.000Z
__all__ = [ "bgl_preprocessor", "open_source_logs", ]
10.5
23
0.619048
6
63
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.238095
63
5
24
12.6
0.666667
0
0
0
0
0
0.516129
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d0fca13a980a4f6f9cad87ee0b56d38d7fe33305
1,401
py
Python
xen/xen-4.2.2/tools/python/xen/sv/HTMLBase.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/python/xen/sv/HTMLBase.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/python/xen/sv/HTMLBase.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
from xen.sv.util import * class HTMLBase: isLeaf = True def __init__( self ): pass def render_POST( self, request ): self.perform( request ) return self.render_GET( request ) def render_GET( self, request ): pass def write_BODY( self, request ): pass def write_TOP( self, request ): pass def write_BOTTOM( self, request ): pass def get_op_method(self, op): """Get the method for an operation. For operation 'foo' looks for 'op_foo'. op operation name returns method or None """ op_method_name = 'op_' + op return getattr(self, op_method_name, None) def perform(self, req): """General operation handler for posted operations. For operation 'foo' looks for a method op_foo and calls it with op_foo(req). Replies with code 500 if op_foo is not found. The method must return a list when req.use_sxp is true and an HTML string otherwise (or list). Methods may also return a Deferred (for incomplete processing). req request """ op = req.args.get('op') if not op is None and len(op) == 1: op = op[0] op_method = self.get_op_method(op) if op_method: op_method( req )
25.944444
71
0.564597
184
1,401
4.152174
0.38587
0.073298
0.078534
0.094241
0.150524
0
0
0
0
0
0
0.005587
0.361171
1,401
53
72
26.433962
0.848045
0.334047
0
0.192308
0
0
0.006002
0
0
0
0
0
0
1
0.307692
false
0.192308
0.038462
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2