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
a7827944873e03a6203d013b641bc186ac256e15
149
py
Python
examples/saveLoadV1/create_save.py
andaole/netpyne
9ff475ff722fa8901d39008fab89d020e357b9ef
[ "MIT" ]
null
null
null
examples/saveLoadV1/create_save.py
andaole/netpyne
9ff475ff722fa8901d39008fab89d020e357b9ef
[ "MIT" ]
null
null
null
examples/saveLoadV1/create_save.py
andaole/netpyne
9ff475ff722fa8901d39008fab89d020e357b9ef
[ "MIT" ]
null
null
null
from netpyne import sim import params # Create network and save sim.create(netParams=params.netParams, simConfig=params.simConfig) sim.saveData()
21.285714
68
0.805369
20
149
6
0.6
0
0
0
0
0
0
0
0
0
0
0
0.114094
149
6
69
24.833333
0.909091
0.154362
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
a7951a1e595feba902419fb4d3e865216baf1bc6
100
py
Python
app/blueprints/views/__init__.py
jstrah00/when-where_API
7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a
[ "MIT" ]
1
2021-12-30T16:58:22.000Z
2021-12-30T16:58:22.000Z
app/blueprints/views/__init__.py
jstrah00/when-where_API
7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a
[ "MIT" ]
null
null
null
app/blueprints/views/__init__.py
jstrah00/when-where_API
7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a
[ "MIT" ]
null
null
null
"""Views V1 __init__ module.""" from app.blueprints.views.views import views __all__ = ["views"]
14.285714
44
0.71
13
100
4.846154
0.692308
0
0
0
0
0
0
0
0
0
0
0.011628
0.14
100
6
45
16.666667
0.72093
0.25
0
0
0
0
0.073529
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.5
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
1
0
0
1
0
4
a7d55f2f94d9d2de921f67ad4c95289c9af2f170
154
py
Python
gui_and_analytics/analytics/run_analytics.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
1
2019-11-17T15:15:44.000Z
2019-11-17T15:15:44.000Z
gui_and_analytics/analytics/run_analytics.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
null
null
null
gui_and_analytics/analytics/run_analytics.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
null
null
null
from utils import string_formatter def main(): print(string_formatter.byte_string([0xDE, 0xAD, 0xB3, 0x3F])) if __name__ == '__main__': main()
17.111111
65
0.701299
20
154
4.85
0.75
0.309278
0
0
0
0
0
0
0
0
0
0.046875
0.168831
154
9
66
17.111111
0.710938
0
0
0
0
0
0.051613
0
0
0
0.103226
0
0
1
0.2
true
0
0.2
0
0.4
0.2
1
0
0
null
1
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
1
0
0
0
0
0
0
4
ac0f521a1c7df37eb2eb01d5f8d7871473e5f7ae
481
py
Python
pytglib/api/types/chat_action_typing.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/chat_action_typing.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/chat_action_typing.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class ChatActionTyping(Object): """ The user is typing a message Attributes: ID (:obj:`str`): ``ChatActionTyping`` No parameters required. Returns: ChatAction Raises: :class:`telegram.Error` """ ID = "chatActionTyping" def __init__(self, **kwargs): pass @staticmethod def read(q: dict, *args) -> "ChatActionTyping": return ChatActionTyping()
15.516129
51
0.571726
43
481
6.302326
0.813953
0
0
0
0
0
0
0
0
0
0
0
0.318087
481
30
52
16.033333
0.82622
0.35343
0
0
0
0
0.120755
0
0
0
0
0
0
1
0.25
false
0.125
0.125
0.125
0.75
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
1
1
0
0
4
ac1b94457992ef5dfa990df8756eeff26b56dfca
993
py
Python
tests/test_funcmakers.py
ruancomelli/funcy
be16b84b5a238bd83fc4929bcfecb25eeb391cd6
[ "BSD-3-Clause" ]
1,914
2015-01-03T03:48:48.000Z
2022-03-31T16:58:11.000Z
tests/test_funcmakers.py
ruancomelli/funcy
be16b84b5a238bd83fc4929bcfecb25eeb391cd6
[ "BSD-3-Clause" ]
85
2015-01-20T09:34:33.000Z
2022-03-31T10:51:28.000Z
tests/test_funcmakers.py
ruancomelli/funcy
be16b84b5a238bd83fc4929bcfecb25eeb391cd6
[ "BSD-3-Clause" ]
112
2015-01-08T05:07:10.000Z
2022-02-16T18:11:39.000Z
from collections import defaultdict import pytest from funcy.funcmakers import * def test_callable(): assert make_func(lambda x: x + 42)(0) == 42 def test_int(): assert make_func(0)('abc') == 'a' assert make_func(2)([1,2,3]) == 3 assert make_func(1)({1: 'a'}) == 'a' with pytest.raises(IndexError): make_func(1)('a') with pytest.raises(TypeError): make_func(1)(42) def test_slice(): assert make_func(slice(1, None))('abc') == 'bc' def test_str(): assert make_func(r'\d+')('ab42c') == '42' assert make_func(r'\d+')('abc') is None assert make_pred(r'\d+')('ab42c') is True assert make_pred(r'\d+')('abc') is False def test_dict(): assert make_func({1: 'a'})(1) == 'a' with pytest.raises(KeyError): make_func({1: 'a'})(2) d = defaultdict(int, a=42) assert make_func(d)('a') == 42 assert make_func(d)('b') == 0 def test_set(): s = set([1,2,3]) assert make_func(s)(1) is True assert make_func(s)(4) is False
23.093023
56
0.607251
165
993
3.515152
0.266667
0.206897
0.289655
0.087931
0.234483
0.062069
0
0
0
0
0
0.047441
0.193353
993
42
57
23.642857
0.676654
0
0
0
0
0
0.047331
0
0
0
0
0
0.5
1
0.214286
false
0
0.107143
0
0.321429
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
1
0
1
0
0
0
0
0
0
0
4
ac4895565b54ad994335b57da9c432b5085f86c2
345
py
Python
service/base.py
yishuangxi/car-tornado
bff2a77569ca9b2eee9298b64078d6b533ac280f
[ "MIT" ]
null
null
null
service/base.py
yishuangxi/car-tornado
bff2a77569ca9b2eee9298b64078d6b533ac280f
[ "MIT" ]
null
null
null
service/base.py
yishuangxi/car-tornado
bff2a77569ca9b2eee9298b64078d6b533ac280f
[ "MIT" ]
null
null
null
# coding=utf8 import re from tornado.gen import coroutine, Return class ServiceBase(object): def check_len(self, value, min, max): if min < len(value) < max: return True else: return False def check_str(self, value): return True def check_digital(self, value): return True
19.166667
41
0.605797
44
345
4.681818
0.568182
0.116505
0.145631
0.184466
0
0
0
0
0
0
0
0.004237
0.315942
345
17
42
20.294118
0.868644
0.031884
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.166667
0.833333
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
1
0
0
0
1
1
0
0
4
ac5a462d5f3d766428e00fde74ea1eb6447a7a32
184
py
Python
micro_shop/color_theme/forms.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
1
2021-06-17T15:11:03.000Z
2021-06-17T15:11:03.000Z
micro_shop/color_theme/forms.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
7
2020-06-30T11:25:28.000Z
2021-06-09T18:51:55.000Z
micro_shop/color_theme/forms.py
SlavaSkvortsov/micro-shop
fd8ac23550da9be277a9234464fdab1213356f3d
[ "MIT" ]
5
2020-10-02T20:01:43.000Z
2021-06-21T08:57:29.000Z
from django.forms import ModelForm from color_theme.models import ColorTheme class ColorThemeForm(ModelForm): class Meta: model = ColorTheme fields = ['colors']
18.4
41
0.711957
20
184
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.222826
184
9
42
20.444444
0.909091
0
0
0
0
0
0.032609
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
1
0
0
4
ac60e5a5732a8706335eff71aefa3e9a7400009e
2,012
py
Python
ProjectEuler/Python/largestproduct.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
ProjectEuler/Python/largestproduct.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
ProjectEuler/Python/largestproduct.py
dfm066/Programming
53d28460cd40b966cca1d4695d9dc6792ced4c6f
[ "MIT" ]
null
null
null
import time def product(num): series = "731671765313306249192251196744265747423553491949349698352031277"\ "450632623957831801698480186947885184385861560789112949495459501"\ "737958331952853208805511125406987471585238630507156932909632952"\ "274430435576689664895044524452316173185640309871112172238311362"\ "229893423380308135336276614282806444486645238749303589072962904"\ "915604407723907138105158593079608667017242712188399879790879227"\ "492190169972088809377665727333001053367881220235421809751254540"\ "594752243525849077116705560136048395864467063244157221553975369"\ "781797784617406495514929086256932197846862248283972241375657056"\ "057490261407972968652414535100474821663704844031998900088952434"\ "506585412275886668811642717147992444292823086346567481391912316"\ "282458617866458359124566529476545682848912883142607690042242190"\ "226710556263211111093705442175069416589604080719840385096245544"\ "436298123098787992724428490918884580156166097919133875499200524"\ "063689912560717606058861164671094050775410022569831552000559357"\ "2972571636269561882670428252483600823257530420752963450" maxsum = 0 st, en = 0, 0 for i in range(0, len(series)-num+1): tmp = 1 flag = 0 for j in range(0, num): if int(series[i+j]) == 0: flag = j break tmp *= int(series[i+j]) if flag != 0: i += flag continue if tmp > maxsum: maxsum = tmp st = i en = i+j print("Found maximum product in range [{0}, {1}]".format(st, en)) return maxsum ndigits = int(input()) _t = time.time() print("Digits {0}: {1}".format(ndigits, product(ndigits))) print("Time taken = {0} seconds".format(time.time() - _t))
43.73913
80
0.663022
113
2,012
11.787611
0.442478
0.015766
0.018018
0.016517
0
0
0
0
0
0
0
0.684423
0.262922
2,012
45
81
44.711111
0.213756
0
0
0
0
0
0.549059
0.508388
0
0
0
0
0
1
0.02439
false
0
0.02439
0
0.073171
0.073171
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3bd19032e096071ec7e568ba392ca7e4a85add20
299
py
Python
src/fbsrankings/query/season_by_id.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
src/fbsrankings/query/season_by_id.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
src/fbsrankings/query/season_by_id.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
from typing import Optional from uuid import UUID from dataclasses import dataclass from fbsrankings.common import Query @dataclass(frozen=True) class SeasonByIDResult: id_: UUID year: int @dataclass(frozen=True) class SeasonByIDQuery(Query[Optional[SeasonByIDResult]]): id_: UUID
16.611111
57
0.779264
36
299
6.416667
0.5
0.12987
0.164502
0.207792
0
0
0
0
0
0
0
0
0.153846
299
17
58
17.588235
0.913043
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
true
0
0.363636
0
0.818182
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
1
0
1
0
1
0
0
4
3be131bed602e8aad1ed1a973bb412d12f1cd37e
19,275
py
Python
scripts/write.py
edwardoughton/qubic
6ef3623fa69c87397d7f9e370766dfe1362d2242
[ "MIT" ]
2
2021-04-26T20:50:27.000Z
2022-02-10T23:30:28.000Z
scripts/write.py
edwardoughton/qubic
6ef3623fa69c87397d7f9e370766dfe1362d2242
[ "MIT" ]
null
null
null
scripts/write.py
edwardoughton/qubic
6ef3623fa69c87397d7f9e370766dfe1362d2242
[ "MIT" ]
null
null
null
""" Functions for writing to .csv September 2020 Written by Ed Oughton """ import os import pandas as pd import datetime def define_deciles(regions): """ Allocate deciles to regions. """ regions = regions.sort_values(by='population_km2', ascending=True) regions['decile'] = regions.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence' ], as_index=True).population_km2.apply( #cost_per_sp_user pd.qcut, q=11, precision=0, labels=[100,90,80,70,60,50,40,30,20,10,0], duplicates='drop') # [0,10,20,30,40,50,60,70,80,90,100] return regions def write_demand(regional_annual_demand, folder): """ Write all annual demand results. """ print('Writing annual_mno_demand') regional_annual_demand = pd.DataFrame(regional_annual_demand) regional_annual_demand = regional_annual_demand.loc[ regional_annual_demand['scenario'] == 'baseline_10_10_10'] # regional_annual_mno_demand = regional_annual_demand[[ # 'GID_0', 'GID_id', 'scenario', 'strategy', # 'confidence', 'year', 'population', 'area_km2', 'population_km2', # 'geotype', 'arpu_discounted_monthly', # 'penetration', 'population_with_phones','phones_on_network', # 'smartphone_penetration', 'smartphones_on_network', 'revenue' # ]] # filename = 'regional_annual_mno_demand.csv' # path = os.path.join(folder, filename) # regional_annual_mno_demand.to_csv(path, index=False) print('Writing annual_market_demand') regional_annual_market_demand = regional_annual_demand[[ 'GID_0', 'GID_id', 'scenario', 'strategy', 'confidence', 'year', 'population', # 'population_f_over_10', 'population_m_over_10', 'area_km2', 'population_km2', 'geotype', 'arpu_discounted_monthly', # 'penetration_female', # 'penetration_male', 'penetration', 'population_with_phones', # 'population_with_phones_f_over_10', # 'population_with_phones_m_over_10', 'smartphone_penetration', 'population_with_smartphones', # 'population_with_smartphones_f_over_10', # 'population_with_smartphones_m_over_10', 'revenue' ]] filename = 'regional_annual_market_demand.csv' path = os.path.join(folder, filename) regional_annual_market_demand.to_csv(path, index=False) def write_results(regional_results, folder, metric): """ Write all results. """ print('Writing national MNO results') national_results = pd.DataFrame(regional_results) national_results = national_results[[ 'GID_0', 'scenario', 'strategy', 'confidence', 'population_total', 'area_km2', 'phones_on_network', 'smartphones_on_network', 'total_estimated_sites', 'existing_mno_sites', 'upgraded_mno_sites', 'new_mno_sites', 'total_mno_revenue', 'total_mno_cost', ]] national_results = national_results.drop_duplicates() national_results = national_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence'], as_index=True).sum() national_results['cost_per_network_user'] = ( national_results['total_mno_cost'] / national_results['phones_on_network']) national_results['cost_per_smartphone_user'] = ( national_results['total_mno_cost'] / national_results['smartphones_on_network']) path = os.path.join(folder,'national_mno_results_{}.csv'.format(metric)) national_results.to_csv(path, index=True) print('Writing national cost composition results') national_cost_results = pd.DataFrame(regional_results) national_cost_results = national_cost_results[[ 'GID_0', 'scenario', 'strategy', 'confidence', 'population_total', 'phones_on_network', 'smartphones_on_network', 'total_mno_revenue', 'ran', 'backhaul_fronthaul', 'civils', 'core_network', 'administration', 'spectrum_cost', 'tax', 'profit_margin', 'total_mno_cost', 'available_cross_subsidy', 'deficit', 'used_cross_subsidy', 'required_state_subsidy', ]] national_cost_results = national_cost_results.drop_duplicates() national_cost_results = national_cost_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence'], as_index=True).sum() national_cost_results['cost_per_network_user'] = ( national_cost_results['total_mno_cost'] / national_cost_results['phones_on_network']) national_cost_results['cost_per_smartphone_user'] = ( national_cost_results['total_mno_cost'] / national_cost_results['smartphones_on_network']) #Calculate private, govt and societal costs national_cost_results['private_cost'] = national_cost_results['total_mno_cost'] national_cost_results['government_cost'] = ( national_cost_results['required_state_subsidy'] - (national_cost_results['spectrum_cost'] + national_cost_results['tax'])) national_cost_results['societal_cost'] = ( national_cost_results['private_cost'] + national_cost_results['government_cost']) path = os.path.join(folder,'national_mno_cost_results_{}.csv'.format(metric)) national_cost_results.to_csv(path, index=True) print('Writing general decile results') decile_results = pd.DataFrame(regional_results) decile_results = define_deciles(decile_results) decile_results = decile_results[[ 'GID_0', 'scenario', 'strategy', 'decile', 'confidence', 'population_total', 'area_km2', 'phones_on_network', 'smartphones_on_network', 'total_estimated_sites', 'existing_mno_sites', 'upgraded_mno_sites', 'new_mno_sites', 'total_mno_revenue', 'total_mno_cost', ]] decile_results = decile_results.drop_duplicates() decile_results = decile_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence', 'decile'], as_index=True).sum() decile_results['population_km2'] = ( decile_results['population_total'] / decile_results['area_km2']) decile_results['phone_density_on_network_km2'] = ( decile_results['phones_on_network'] / decile_results['area_km2']) decile_results['sp_density_on_network_km2'] = ( decile_results['smartphones_on_network'] / decile_results['area_km2']) decile_results['total_estimated_sites_km2'] = ( decile_results['total_estimated_sites'] / decile_results['area_km2']) decile_results['existing_mno_sites_km2'] = ( decile_results['existing_mno_sites'] / decile_results['area_km2']) decile_results['cost_per_network_user'] = ( decile_results['total_mno_cost'] / decile_results['phones_on_network']) decile_results['cost_per_smartphone_user'] = ( decile_results['total_mno_cost'] / decile_results['smartphones_on_network']) path = os.path.join(folder,'decile_mno_results_{}.csv'.format(metric)) decile_results.to_csv(path, index=True) print('Writing cost decile results') decile_cost_results = pd.DataFrame(regional_results) decile_cost_results = define_deciles(decile_cost_results) decile_cost_results = decile_cost_results[[ 'GID_0', 'scenario', 'strategy', 'decile', 'confidence', 'population_total', 'area_km2', 'phones_on_network', 'smartphones_on_network', 'total_mno_revenue', 'ran', 'backhaul_fronthaul', 'civils', 'core_network', 'administration', 'spectrum_cost', 'tax', 'profit_margin', 'total_mno_cost', 'available_cross_subsidy', 'deficit', 'used_cross_subsidy', 'required_state_subsidy', ]] decile_cost_results = decile_cost_results.drop_duplicates() decile_cost_results = decile_cost_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence', 'decile'], as_index=True).sum() decile_cost_results['cost_per_network_user'] = ( decile_cost_results['total_mno_cost'] / decile_cost_results['phones_on_network']) decile_cost_results['cost_per_smartphone_user'] = ( decile_cost_results['total_mno_cost'] / decile_cost_results['smartphones_on_network']) path = os.path.join(folder,'decile_mno_cost_results_{}.csv'.format(metric)) decile_cost_results.to_csv(path, index=True) print('Writing regional results') regional_mno_results = pd.DataFrame(regional_results) regional_mno_results = define_deciles(regional_mno_results) regional_mno_results = regional_mno_results[[ 'GID_0', 'GID_id', 'scenario', 'strategy', 'decile', 'confidence', 'population_total', 'area_km2', 'phones_on_network', 'smartphones_on_network', 'total_estimated_sites', 'existing_mno_sites', 'upgraded_mno_sites', 'new_mno_sites', 'total_mno_revenue', 'total_mno_cost', ]] regional_mno_results = regional_mno_results.drop_duplicates() regional_mno_results['cost_per_network_user'] = ( regional_mno_results['total_mno_cost'] / regional_mno_results['phones_on_network']) regional_mno_results['cost_per_smartphone_user'] = ( regional_mno_results['total_mno_cost'] / regional_mno_results['smartphones_on_network']) path = os.path.join(folder,'regional_mno_results_{}.csv'.format(metric)) regional_mno_results.to_csv(path, index=True) print('Writing national market results') national_results = pd.DataFrame(regional_results) national_results = national_results[[ 'GID_0', 'scenario', 'strategy', 'confidence', 'population_total', 'area_km2', 'total_phones', 'total_smartphones', 'total_estimated_sites', 'total_upgraded_sites', 'total_new_sites', 'total_market_revenue', 'total_market_cost', 'total_spectrum_cost', 'total_tax', 'total_required_state_subsidy', ]] national_results = national_results.drop_duplicates() national_results = national_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence'], as_index=True).sum() national_results['cost_per_network_user'] = ( national_results['total_market_cost'] / national_results['total_phones']) national_results['cost_per_smartphone_user'] = ( national_results['total_market_cost'] / national_results['total_smartphones']) national_results['private_cost'] = ( national_results['total_market_cost']) national_results['government_cost'] = ( national_results['total_required_state_subsidy'] - (national_results['total_spectrum_cost'] + national_results['total_tax'])) national_results['social_cost'] = ( national_results['private_cost'] + national_results['government_cost']) path = os.path.join(folder,'national_market_results_{}.csv'.format(metric)) national_results.to_csv(path, index=True) #=cost / market share * 100 print('Writing national market cost composition results') national_cost_results = pd.DataFrame(regional_results) national_cost_results = national_cost_results[[ 'GID_0', 'scenario', 'strategy', 'confidence', 'population_total', 'total_phones', 'total_smartphones', 'total_market_revenue', 'total_ran', 'total_backhaul_fronthaul', 'total_civils', 'total_core_network', 'total_administration', 'total_spectrum_cost', 'total_tax', 'total_profit_margin', 'total_market_cost', 'total_available_cross_subsidy', 'total_deficit', 'total_used_cross_subsidy', 'total_required_state_subsidy', ]] national_cost_results = national_cost_results.drop_duplicates() national_cost_results = national_cost_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence'], as_index=True).sum() national_cost_results['cost_per_network_user'] = ( national_cost_results['total_market_cost'] / national_cost_results['total_phones']) national_cost_results['cost_per_smartphone_user'] = ( national_cost_results['total_market_cost'] / national_cost_results['total_smartphones']) #Calculate private, govt and societal costs national_cost_results['private_cost'] = ( national_cost_results['total_market_cost']) national_cost_results['government_cost'] = ( national_cost_results['total_required_state_subsidy'] - (national_cost_results['total_spectrum_cost'] + national_cost_results['total_tax'])) national_cost_results['societal_cost'] = ( national_cost_results['private_cost'] + national_cost_results['government_cost']) path = os.path.join(folder,'national_market_cost_results_{}.csv'.format(metric)) national_cost_results.to_csv(path, index=True) print('Writing general decile results') decile_results = pd.DataFrame(regional_results) decile_results = define_deciles(decile_results) decile_results = decile_results[[ 'GID_0', 'scenario', 'strategy', 'decile', 'confidence', 'population_total', 'area_km2', 'total_phones', 'total_smartphones', 'total_market_revenue', 'total_market_cost', ]] decile_results = decile_results.drop_duplicates() decile_results = decile_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence', 'decile'], as_index=True).sum() decile_results['population_km2'] = ( decile_results['population_total'] / decile_results['area_km2']) decile_results['cost_per_network_user'] = ( decile_results['total_market_cost'] / decile_results['total_phones']) decile_results['cost_per_smartphone_user'] = ( decile_results['total_market_cost'] / decile_results['total_smartphones']) path = os.path.join(folder,'decile_market_results_{}.csv'.format(metric)) decile_results.to_csv(path, index=True) print('Writing cost decile results') decile_cost_results = pd.DataFrame(regional_results) decile_cost_results = define_deciles(decile_cost_results) decile_cost_results = decile_cost_results[[ 'GID_0', 'scenario', 'strategy', 'decile', 'confidence', 'population_total', 'area_km2', 'total_phones', 'total_smartphones', 'total_market_revenue', 'total_ran', 'total_backhaul_fronthaul', 'total_civils', 'total_core_network', 'total_administration', 'total_spectrum_cost', 'total_tax', 'total_profit_margin', 'total_market_cost', 'total_available_cross_subsidy', 'total_deficit', 'total_used_cross_subsidy', 'total_required_state_subsidy' ]] decile_cost_results = decile_cost_results.drop_duplicates() decile_cost_results = decile_cost_results.groupby([ 'GID_0', 'scenario', 'strategy', 'confidence', 'decile'], as_index=True).sum() decile_cost_results['cost_per_network_user'] = ( decile_cost_results['total_market_cost'] / decile_cost_results['total_phones']) decile_cost_results['cost_per_smartphone_user'] = ( decile_cost_results['total_market_cost'] / decile_cost_results['total_smartphones']) path = os.path.join(folder,'decile_market_cost_results_{}.csv'.format(metric)) decile_cost_results.to_csv(path, index=True) print('Writing regional results') regional_market_results = pd.DataFrame(regional_results) regional_market_results = define_deciles(regional_market_results) regional_market_results = regional_market_results[[ 'GID_0', 'GID_id', 'scenario', 'strategy', 'decile', 'geotype', 'confidence', 'population_total', 'area_km2', 'total_phones', 'total_smartphones', 'total_upgraded_sites','total_new_sites', 'total_required_state_subsidy', 'total_spectrum_cost', 'total_tax', 'total_market_revenue', 'total_market_cost', ]] regional_market_results = regional_market_results.drop_duplicates() regional_market_results['total_private_cost'] = regional_market_results['total_market_cost'] regional_market_results['total_government_cost'] = ( regional_market_results['total_required_state_subsidy'] - (regional_market_results['total_spectrum_cost'] + regional_market_results['total_tax'])) regional_market_results['total_societal_cost'] = ( regional_market_results['total_private_cost'] + regional_market_results['total_government_cost']) regional_market_results['private_cost_per_network_user'] = ( regional_market_results['total_private_cost'] / regional_market_results['total_phones']) regional_market_results['government_cost_per_network_user'] = ( regional_market_results['total_government_cost'] / regional_market_results['total_phones']) regional_market_results['societal_cost_per_network_user'] = ( regional_market_results['total_societal_cost'] / regional_market_results['total_phones']) regional_market_results['private_cost_per_smartphone_user'] = ( regional_market_results['total_private_cost'] / regional_market_results['total_smartphones']) regional_market_results['government_cost_per_smartphone_user'] = ( regional_market_results['total_government_cost'] / regional_market_results['total_smartphones']) regional_market_results['societal_cost_per_network_user'] = ( regional_market_results['total_societal_cost'] / regional_market_results['total_smartphones']) path = os.path.join(folder,'regional_market_results_{}.csv'.format(metric)) regional_market_results.to_csv(path, index=True) def write_inputs(folder, country, country_parameters, global_parameters, costs, decision_option): """ Write model inputs. """ country_info = pd.DataFrame(country.items(), columns=['parameter', 'value']) country_info['source'] = 'country_info' country_params = pd.DataFrame( country_parameters['financials'].items(), columns=['parameter', 'value']) country_params['source'] = 'country_parameters' global_parameters = pd.DataFrame(global_parameters.items(), columns=['parameter', 'value']) global_parameters['source'] = 'global_parameters' costs = pd.DataFrame(costs.items(), columns=['parameter', 'value']) costs['source'] = 'costs' parameters = country_info.append(country_params) parameters = parameters.append(global_parameters) parameters = parameters.append(costs) parameters = parameters[['source', 'parameter', 'value']] timenow = datetime.datetime.now().strftime("%Y%m%d-%H%M%S") filename = 'parameters_{}_{}.csv'.format(decision_option, timenow) path = os.path.join(folder, filename) parameters.to_csv(path, index=False) ###write out spectrum frequencies frequencies = country_parameters['frequencies'] generations = ['3G', '4G', '5G'] all_frequencies = [] for generation in generations: for key, item in frequencies.items(): if generation == key: all_frequencies.append({ 'generation': generation, 'frequency': item[0]['frequency'], 'bandwidth': item[0]['bandwidth'], }) frequency_lut = pd.DataFrame(all_frequencies) timenow = datetime.datetime.now().strftime("%Y%m%d-%H%M%S") filename = 'parameters_frequencies_{}_{}.csv'.format(decision_option, timenow) path = os.path.join(folder, filename) frequency_lut.to_csv(path, index=False)
46.557971
96
0.709624
2,193
19,275
5.770634
0.078887
0.071276
0.069064
0.043145
0.838088
0.786646
0.713236
0.693718
0.669933
0.601817
0
0.007723
0.167004
19,275
413
97
46.670702
0.780456
0.056498
0
0.452599
0
0
0.343303
0.112886
0
0
0
0
0
1
0.012232
false
0
0.009174
0
0.024465
0.036697
0
0
0
null
0
0
0
1
1
1
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
4
3bf2b9616eb29b1e4f70f4a1eddfe6239a4db8cd
211
py
Python
tests/test_skidl_loc.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
2
2022-02-27T14:31:52.000Z
2022-02-27T14:31:56.000Z
tests/test_skidl_loc.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
null
null
null
tests/test_skidl_loc.py
arjenroodselaar/skidl
0bf801bd3b74e6ef94bd9aa1b68eef756b568276
[ "MIT" ]
1
2020-09-21T23:31:41.000Z
2020-09-21T23:31:41.000Z
import pytest from skidl import * from .setup_teardown import * def test_skidl_loc(): rt = Part("Device", "R", dest=TEMPLATE, footprint="null") r1 = rt() resistors = rt(5) generate_netlist()
17.583333
61
0.654028
29
211
4.655172
0.793103
0
0
0
0
0
0
0
0
0
0
0.011976
0.208531
211
11
62
19.181818
0.790419
0
0
0
1
0
0.052381
0
0
0
0
0
0
0
null
null
0
0.375
null
null
0.125
1
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
1
0
0
0
0
4
3bf7271e61194a8fee54da8da14fb8e287ba582f
6,824
py
Python
resultQuery.py
beirbear/URDMEMining
9b2047f4c7e1f93e76a911c7a52924ba3cc84aff
[ "MIT" ]
null
null
null
resultQuery.py
beirbear/URDMEMining
9b2047f4c7e1f93e76a911c7a52924ba3cc84aff
[ "MIT" ]
null
null
null
resultQuery.py
beirbear/URDMEMining
9b2047f4c7e1f93e76a911c7a52924ba3cc84aff
[ "MIT" ]
null
null
null
import json import operator import numpy as ns ''' RESULT_FILES = ["output/urdmeMiningPartialWindow_4_1000_0_8.json", \ "output/urdmeMiningPartialWindow_4_1000_8_16.json", \ "output/urdmeMiningPartialWindow_4_1000_24_32.json", \ "output/urdmeMiningPartialWindow_4_1000_32_40.json", \ "output/urdmeMiningPartialWindow_4_1000_40_48.json", \ "output/urdmeMiningPartialWindow_4_1000_48_56.json", \ "output/urdmeMiningPartialWindow_4_1000_56_64.json", \ "output/urdmeMiningPartialWindow_4_1000_64_72.json", \ "output/urdmeMiningPartialWindow_4_1000_72_80.json", \ "output/urdmeMiningPartialWindow_4_1000_80_88.json", \ "output/urdmeMiningPartialWindow_4_1000_88_96.json", \ "output/urdmeMiningPartialWindow_4_1000_96_100.json" ] ''' RESULT_FILES = ["output/urdmeMiningPartialWindow_SE_4_5_0_4.json", \ "output/urdmeMiningPartialWindow_SE_4_5_4_8.json", \ "output/urdmeMiningPartialWindow_SE_4_5_8_12.json", \ "output/urdmeMiningPartialWindow_SE_4_5_12_16.json", \ "output/urdmeMiningPartialWindow_SE_4_5_24_28.json" ] resultList = [] ''' def filterData(inputData, matching): result = [] for line in inputData: if matching in str(line): result.append(line) ''' if __name__ == "__main__": # read result file one by one for _file in RESULT_FILES: print(_file) with open(_file) as _reader: data = [] for line in _reader: data.append(json.loads(line)) if len(data) > 1: print("Unimplement Multiple outer rows query.") quit() else: if len(data[0]) != 1: for dataSet in data[0]: content = dataSet sortedResult = sorted(content, key=lambda x: x['_value'], reverse=True) print("First") print(sortedResult[0]) print(sortedResult[1]) print(sortedResult[2]) print(sortedResult[3]) print(sortedResult[4]) print("Last") print(sortedResult[-5]) print(sortedResult[-4]) print(sortedResult[-3]) print(sortedResult[-2]) print(sortedResult[-1]) # for bandValue in reversed(range(9)): for bandValue in range(9): filteredResult = filter(lambda x: True if ('protein_B'+str(bandValue)) in str(x['_key']) else False, content) sortedFilterResult = sorted(filteredResult, key=lambda x: x['_value'], reverse=True) print("B" + str(bandValue) + " First") if len(sortedFilterResult) >= 5: print(sortedFilterResult[0]) print(sortedFilterResult[1]) print(sortedFilterResult[2]) print(sortedFilterResult[3]) print(sortedFilterResult[4]) print("B" + str(bandValue) + " Last") print(sortedFilterResult[-5]) print(sortedFilterResult[-4]) print(sortedFilterResult[-3]) print(sortedFilterResult[-2]) print(sortedFilterResult[-1]) elif len(sortedFilterResult) == 0: print("Empty Result") continue else: for j in range(len(sortedFilterResult)): print(sortedFilterResult[j]) for j in reversed(range(1,len(sortedFilterResult))): print(sortedFilterResult[j * -1]) print("Band Set--------") print("Window Set---------------------") else: content = data[0][0] sortedResult = sorted(content, key=lambda x: x['_value'], reverse=True) print("First") print(sortedResult[0]) print(sortedResult[1]) print(sortedResult[2]) print(sortedResult[3]) print(sortedResult[4]) print("Last") print(sortedResult[-5]) print(sortedResult[-4]) print(sortedResult[-3]) print(sortedResult[-2]) print(sortedResult[-1]) # for bandValue in reversed(range(9)): for bandValue in range(9): filteredResult = filter(lambda x: True if ('protein_B'+str(bandValue)) in str(x['_key']) else False, content) sortedFilterResult = sorted(filteredResult, key=lambda x: x['_value'], reverse=True) print("B" + str(bandValue) + " First") if len(sortedFilterResult) >= 5: print(sortedFilterResult[0]) print(sortedFilterResult[1]) print(sortedFilterResult[2]) print(sortedFilterResult[3]) print(sortedFilterResult[4]) print("B" + str(bandValue) + " Last") print(sortedFilterResult[-5]) print(sortedFilterResult[-4]) print(sortedFilterResult[-3]) print(sortedFilterResult[-2]) print(sortedFilterResult[-1]) elif len(sortedFilterResult) == 0: print("Empty Result") continue else: for j in range(len(sortedFilterResult)): print(sortedFilterResult[j]) for j in reversed(range(1,len(sortedFilterResult))): print(sortedFilterResult[j * -1]) print('Frame Set-----------------------------------------------------------------------------------')
49.810219
137
0.455305
535
6,824
5.626168
0.175701
0.183389
0.169435
0.139535
0.823588
0.669767
0.619269
0.619269
0.619269
0.619269
0
0.04936
0.438892
6,824
136
138
50.176471
0.736746
0.014801
0
0.745098
0
0
0.095113
0.061307
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
0.578431
0
0
0
null
0
0
0
1
0
0
0
0
1
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
1
0
4
ce0074b441e86d4bf5faac40067575fa573bc352
117
py
Python
backend/ida/mdec-ida/mdecida/__main__.py
CouleeApps/mdec
f71208dea3121bc140574b71b8a3c44b489f8017
[ "MIT" ]
null
null
null
backend/ida/mdec-ida/mdecida/__main__.py
CouleeApps/mdec
f71208dea3121bc140574b71b8a3c44b489f8017
[ "MIT" ]
null
null
null
backend/ida/mdec-ida/mdecida/__main__.py
CouleeApps/mdec
f71208dea3121bc140574b71b8a3c44b489f8017
[ "MIT" ]
null
null
null
from mdecida import IdaService from mdecbase import mdec_main if __name__ == '__main__': mdec_main(IdaService)
16.714286
30
0.777778
15
117
5.4
0.6
0.197531
0
0
0
0
0
0
0
0
0
0
0.162393
117
6
31
19.5
0.826531
0
0
0
0
0
0.068376
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
ce05bb7b7e811eafe5656a78387634ba754364a8
227
py
Python
src/gobjcreator3/model/clsintf.py
ThomasBollmeier/GObjectCreator3
20f2ad66efbae5e270f08612e5115be75399c55c
[ "Apache-2.0" ]
1
2015-03-31T12:21:14.000Z
2015-03-31T12:21:14.000Z
src/gobjcreator3/model/clsintf.py
ThomasBollmeier/GObjectCreator3
20f2ad66efbae5e270f08612e5115be75399c55c
[ "Apache-2.0" ]
null
null
null
src/gobjcreator3/model/clsintf.py
ThomasBollmeier/GObjectCreator3
20f2ad66efbae5e270f08612e5115be75399c55c
[ "Apache-2.0" ]
null
null
null
from gobjcreator3.model.type import Type class ClsIntf(Type): def __init__(self, name, category): Type.__init__(self, name, category) self.cfunc_prefix = ""
18.916667
43
0.537445
22
227
5.136364
0.636364
0.141593
0.212389
0.353982
0
0
0
0
0
0
0
0.007092
0.378855
227
12
44
18.916667
0.794326
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
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
1
0
0
4
ce2be5c67dfeb07cf091f48ae969cb768a225031
218
py
Python
src/alvarium/hash/mock.py
welo10/alvarium-sdk-python
a62aeafc62bd6bc4e11538c357e422e7a51cf825
[ "Apache-2.0" ]
null
null
null
src/alvarium/hash/mock.py
welo10/alvarium-sdk-python
a62aeafc62bd6bc4e11538c357e422e7a51cf825
[ "Apache-2.0" ]
null
null
null
src/alvarium/hash/mock.py
welo10/alvarium-sdk-python
a62aeafc62bd6bc4e11538c357e422e7a51cf825
[ "Apache-2.0" ]
null
null
null
from .interfaces import HashProvider class NoneHashProvider(HashProvider): """A mock implementation for the HashProvider interface""" def derive(self, data: bytes) -> str: return data.decode("utf-8")
31.142857
62
0.715596
25
218
6.24
0.88
0
0
0
0
0
0
0
0
0
0
0.005587
0.178899
218
7
63
31.142857
0.865922
0.238532
0
0
0
0
0.031056
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
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
1
0
0
0
1
0
0
0
4
ce37e740f00ae8d965b47067c468a0520efa9c8a
240
py
Python
HaPPPy/Transmission/__init__.py
Mohammed-El-Nabulsi/single-electron-transistor
db1abd3627312403be83197c27d06ac4e3a61746
[ "BSD-2-Clause" ]
null
null
null
HaPPPy/Transmission/__init__.py
Mohammed-El-Nabulsi/single-electron-transistor
db1abd3627312403be83197c27d06ac4e3a61746
[ "BSD-2-Clause" ]
null
null
null
HaPPPy/Transmission/__init__.py
Mohammed-El-Nabulsi/single-electron-transistor
db1abd3627312403be83197c27d06ac4e3a61746
[ "BSD-2-Clause" ]
null
null
null
""" .. module:: HaPPPy.Transmission :platform: Unix, Windows :synopsis: Tackles the two body program. Here comes the general documentation for the Transmission module. """ from .TransmissionCalculator import TransmissionCalculator
21.818182
65
0.770833
25
240
7.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15
240
10
66
24
0.906863
0.708333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
4
0207ea8c8331b50713bdb201a72d5f718ddaa06e
300
py
Python
apps/moderation/views.py
ilindrey/whatyouknow
e2960272e5a50d7975261d91bc36b921179d0536
[ "MIT" ]
2
2022-03-02T10:23:22.000Z
2022-03-09T15:16:59.000Z
apps/moderation/views.py
ilindrey/whatyouknow
e2960272e5a50d7975261d91bc36b921179d0536
[ "MIT" ]
null
null
null
apps/moderation/views.py
ilindrey/whatyouknow
e2960272e5a50d7975261d91bc36b921179d0536
[ "MIT" ]
null
null
null
from .constants import MODERATION_MODERATED_STATE class SetEditedByUserMixin: def form_valid(self, form): if form.instance.state == MODERATION_MODERATED_STATE and not form.instance.edited_by_user: form.instance.edited_by_user = True return super().form_valid(form)
30
98
0.743333
38
300
5.605263
0.578947
0.169014
0.225352
0.187793
0.225352
0
0
0
0
0
0
0
0.186667
300
9
99
33.333333
0.872951
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
1
1
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
1
0
0
4
0212688da15193f29be4e69315fd9bebc15e032a
64
py
Python
src/kgprim/__init__.py
mfrigerio17/kgprim
398f63be86e8ca465e2b58481ea0446f55a1cf62
[ "BSD-3-Clause" ]
null
null
null
src/kgprim/__init__.py
mfrigerio17/kgprim
398f63be86e8ca465e2b58481ea0446f55a1cf62
[ "BSD-3-Clause" ]
null
null
null
src/kgprim/__init__.py
mfrigerio17/kgprim
398f63be86e8ca465e2b58481ea0446f55a1cf62
[ "BSD-3-Clause" ]
null
null
null
'''Kinematic and geometric primitives, entities and relations'''
64
64
0.796875
7
64
7.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.09375
64
1
64
64
0.87931
0.90625
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
0222c7458eb97770a51c81c7c307b08c73cc508d
130,570
py
Python
UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
""" __MT_post__UMLRT2Kiltera_MM_META.py_____________________________________________________ Automatically generated AToM3 button model (DO NOT MODIFY DIRECTLY) Author: gehan Modified: Sun Feb 15 10:37:42 2015 ________________________________________________________________________________________ """ from ASG_Buttons import * from ButtonConfig import * from ATOM3Enum import * from ATOM3List import * from ATOM3Float import * from ATOM3Integer import * from ATOM3Attribute import * from ATOM3Constraint import * from ATOM3Action import * from ATOM3String import * from ATOM3BottomType import * from ATOM3Boolean import * from ATOM3Appearance import * from ATOM3Link import * def MT_post__UMLRT2Kiltera_MM_META(self, rootNode, ButtonsRootNode): ButtonsRootNode.Formalism_Name.setValue('MT_post__UMLRT2Kiltera_MM_META') ButtonsRootNode.RowSize.setValue(4) ButtonsRootNode.Formalism_File.setValue( 'MT_post__UMLRT2Kiltera_MM_MM.py' ) self.globalPrecondition(rootNode) self.objMT_post__MatchModel=ButtonConfig(self) self.objMT_post__MatchModel.Contents.Text.setValue('New MatchModel') self.objMT_post__MatchModel.Contents.Image.setValue('') self.objMT_post__MatchModel.Contents.lastSelected= 'Text' self.objMT_post__MatchModel.Drawing_Mode.setValue(1) self.objMT_post__MatchModel.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__MatchModel (self, wherex, wherey)\n')) self.objMT_post__MatchModel.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__MatchModel) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__MatchModel.graphObject_ = new_obj rootNode.addNode(self.objMT_post__MatchModel) self.globalAndLocalPostcondition(self.objMT_post__MatchModel, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ApplyModel=ButtonConfig(self) self.objMT_post__ApplyModel.Contents.Text.setValue('New ApplyModel') self.objMT_post__ApplyModel.Contents.Image.setValue('') self.objMT_post__ApplyModel.Contents.lastSelected= 'Text' self.objMT_post__ApplyModel.Drawing_Mode.setValue(1) self.objMT_post__ApplyModel.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ApplyModel (self, wherex, wherey)\n')) self.objMT_post__ApplyModel.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__ApplyModel) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ApplyModel.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ApplyModel) self.globalAndLocalPostcondition(self.objMT_post__ApplyModel, rootNode) self.globalPrecondition(rootNode) self.objMT_post__MetaModelElement_S=ButtonConfig(self) self.objMT_post__MetaModelElement_S.Contents.Text.setValue('New MetaModelElement_S') self.objMT_post__MetaModelElement_S.Contents.Image.setValue('') self.objMT_post__MetaModelElement_S.Contents.lastSelected= 'Text' self.objMT_post__MetaModelElement_S.Drawing_Mode.setValue(1) self.objMT_post__MetaModelElement_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__MetaModelElement_S (self, wherex, wherey)\n')) self.objMT_post__MetaModelElement_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__MetaModelElement_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__MetaModelElement_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__MetaModelElement_S) self.globalAndLocalPostcondition(self.objMT_post__MetaModelElement_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__MetaModelElement_T=ButtonConfig(self) self.objMT_post__MetaModelElement_T.Contents.Text.setValue('New MetaModelElement_T') self.objMT_post__MetaModelElement_T.Contents.Image.setValue('') self.objMT_post__MetaModelElement_T.Contents.lastSelected= 'Text' self.objMT_post__MetaModelElement_T.Drawing_Mode.setValue(1) self.objMT_post__MetaModelElement_T.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__MetaModelElement_T (self, wherex, wherey)\n')) self.objMT_post__MetaModelElement_T.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__MetaModelElement_T) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__MetaModelElement_T.graphObject_ = new_obj rootNode.addNode(self.objMT_post__MetaModelElement_T) self.globalAndLocalPostcondition(self.objMT_post__MetaModelElement_T, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Element=ButtonConfig(self) self.objMT_post__Element.Contents.Text.setValue('New Element') self.objMT_post__Element.Contents.Image.setValue('') self.objMT_post__Element.Contents.lastSelected= 'Text' self.objMT_post__Element.Drawing_Mode.setValue(1) self.objMT_post__Element.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Element (self, wherex, wherey)\n')) self.objMT_post__Element.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Element) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Element.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Element) self.globalAndLocalPostcondition(self.objMT_post__Element, rootNode) self.globalPrecondition(rootNode) self.objMT_post__NamedElement=ButtonConfig(self) self.objMT_post__NamedElement.Contents.Text.setValue('New NamedElement') self.objMT_post__NamedElement.Contents.Image.setValue('') self.objMT_post__NamedElement.Contents.lastSelected= 'Text' self.objMT_post__NamedElement.Drawing_Mode.setValue(1) self.objMT_post__NamedElement.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__NamedElement (self, wherex, wherey)\n')) self.objMT_post__NamedElement.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__NamedElement) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__NamedElement.graphObject_ = new_obj rootNode.addNode(self.objMT_post__NamedElement) self.globalAndLocalPostcondition(self.objMT_post__NamedElement, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Trigger_S=ButtonConfig(self) self.objMT_post__Trigger_S.Contents.Text.setValue('New Trigger_S') self.objMT_post__Trigger_S.Contents.Image.setValue('') self.objMT_post__Trigger_S.Contents.lastSelected= 'Text' self.objMT_post__Trigger_S.Drawing_Mode.setValue(1) self.objMT_post__Trigger_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Trigger_S (self, wherex, wherey)\n')) self.objMT_post__Trigger_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Trigger_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Trigger_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Trigger_S) self.globalAndLocalPostcondition(self.objMT_post__Trigger_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Action=ButtonConfig(self) self.objMT_post__Action.Contents.Text.setValue('New Action') self.objMT_post__Action.Contents.Image.setValue('') self.objMT_post__Action.Contents.lastSelected= 'Text' self.objMT_post__Action.Drawing_Mode.setValue(1) self.objMT_post__Action.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Action (self, wherex, wherey)\n')) self.objMT_post__Action.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Action) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Action.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Action) self.globalAndLocalPostcondition(self.objMT_post__Action, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PortRef=ButtonConfig(self) self.objMT_post__PortRef.Contents.Text.setValue('New PortRef') self.objMT_post__PortRef.Contents.Image.setValue('') self.objMT_post__PortRef.Contents.lastSelected= 'Text' self.objMT_post__PortRef.Drawing_Mode.setValue(1) self.objMT_post__PortRef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PortRef (self, wherex, wherey)\n')) self.objMT_post__PortRef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__PortRef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PortRef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PortRef) self.globalAndLocalPostcondition(self.objMT_post__PortRef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PortConnectorRef=ButtonConfig(self) self.objMT_post__PortConnectorRef.Contents.Text.setValue('New PortConnectorRef') self.objMT_post__PortConnectorRef.Contents.Image.setValue('') self.objMT_post__PortConnectorRef.Contents.lastSelected= 'Text' self.objMT_post__PortConnectorRef.Drawing_Mode.setValue(1) self.objMT_post__PortConnectorRef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PortConnectorRef (self, wherex, wherey)\n')) self.objMT_post__PortConnectorRef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__PortConnectorRef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PortConnectorRef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PortConnectorRef) self.globalAndLocalPostcondition(self.objMT_post__PortConnectorRef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__StateMachineElement=ButtonConfig(self) self.objMT_post__StateMachineElement.Contents.Text.setValue('New StateMachineElement') self.objMT_post__StateMachineElement.Contents.Image.setValue('') self.objMT_post__StateMachineElement.Contents.lastSelected= 'Text' self.objMT_post__StateMachineElement.Drawing_Mode.setValue(1) self.objMT_post__StateMachineElement.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__StateMachineElement (self, wherex, wherey)\n')) self.objMT_post__StateMachineElement.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__StateMachineElement) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__StateMachineElement.graphObject_ = new_obj rootNode.addNode(self.objMT_post__StateMachineElement) self.globalAndLocalPostcondition(self.objMT_post__StateMachineElement, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Protocol=ButtonConfig(self) self.objMT_post__Protocol.Contents.Text.setValue('New Protocol') self.objMT_post__Protocol.Contents.Image.setValue('') self.objMT_post__Protocol.Contents.lastSelected= 'Text' self.objMT_post__Protocol.Drawing_Mode.setValue(1) self.objMT_post__Protocol.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Protocol (self, wherex, wherey)\n')) self.objMT_post__Protocol.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Protocol) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Protocol.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Protocol) self.globalAndLocalPostcondition(self.objMT_post__Protocol, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Signal=ButtonConfig(self) self.objMT_post__Signal.Contents.Text.setValue('New Signal') self.objMT_post__Signal.Contents.Image.setValue('') self.objMT_post__Signal.Contents.lastSelected= 'Text' self.objMT_post__Signal.Drawing_Mode.setValue(1) self.objMT_post__Signal.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Signal (self, wherex, wherey)\n')) self.objMT_post__Signal.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Signal) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Signal.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Signal) self.globalAndLocalPostcondition(self.objMT_post__Signal, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Port=ButtonConfig(self) self.objMT_post__Port.Contents.Text.setValue('New Port') self.objMT_post__Port.Contents.Image.setValue('') self.objMT_post__Port.Contents.lastSelected= 'Text' self.objMT_post__Port.Drawing_Mode.setValue(1) self.objMT_post__Port.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Port (self, wherex, wherey)\n')) self.objMT_post__Port.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Port) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Port.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Port) self.globalAndLocalPostcondition(self.objMT_post__Port, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Vertex=ButtonConfig(self) self.objMT_post__Vertex.Contents.Text.setValue('New Vertex') self.objMT_post__Vertex.Contents.Image.setValue('') self.objMT_post__Vertex.Contents.lastSelected= 'Text' self.objMT_post__Vertex.Drawing_Mode.setValue(1) self.objMT_post__Vertex.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Vertex (self, wherex, wherey)\n')) self.objMT_post__Vertex.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Vertex) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Vertex.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Vertex) self.globalAndLocalPostcondition(self.objMT_post__Vertex, rootNode) self.globalPrecondition(rootNode) self.objMT_post__InitialPoint=ButtonConfig(self) self.objMT_post__InitialPoint.Contents.Text.setValue('New InitialPoint') self.objMT_post__InitialPoint.Contents.Image.setValue('') self.objMT_post__InitialPoint.Contents.lastSelected= 'Text' self.objMT_post__InitialPoint.Drawing_Mode.setValue(1) self.objMT_post__InitialPoint.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__InitialPoint (self, wherex, wherey)\n')) self.objMT_post__InitialPoint.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__InitialPoint) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__InitialPoint.graphObject_ = new_obj rootNode.addNode(self.objMT_post__InitialPoint) self.globalAndLocalPostcondition(self.objMT_post__InitialPoint, rootNode) self.globalPrecondition(rootNode) self.objMT_post__EntryPoint=ButtonConfig(self) self.objMT_post__EntryPoint.Contents.Text.setValue('New EntryPoint') self.objMT_post__EntryPoint.Contents.Image.setValue('') self.objMT_post__EntryPoint.Contents.lastSelected= 'Text' self.objMT_post__EntryPoint.Drawing_Mode.setValue(1) self.objMT_post__EntryPoint.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__EntryPoint (self, wherex, wherey)\n')) self.objMT_post__EntryPoint.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__EntryPoint) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__EntryPoint.graphObject_ = new_obj rootNode.addNode(self.objMT_post__EntryPoint) self.globalAndLocalPostcondition(self.objMT_post__EntryPoint, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ExitPoint=ButtonConfig(self) self.objMT_post__ExitPoint.Contents.Text.setValue('New ExitPoint') self.objMT_post__ExitPoint.Contents.Image.setValue('') self.objMT_post__ExitPoint.Contents.lastSelected= 'Text' self.objMT_post__ExitPoint.Drawing_Mode.setValue(1) self.objMT_post__ExitPoint.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ExitPoint (self, wherex, wherey)\n')) self.objMT_post__ExitPoint.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__ExitPoint) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ExitPoint.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ExitPoint) self.globalAndLocalPostcondition(self.objMT_post__ExitPoint, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Transition=ButtonConfig(self) self.objMT_post__Transition.Contents.Text.setValue('New Transition') self.objMT_post__Transition.Contents.Image.setValue('') self.objMT_post__Transition.Contents.lastSelected= 'Text' self.objMT_post__Transition.Drawing_Mode.setValue(1) self.objMT_post__Transition.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Transition (self, wherex, wherey)\n')) self.objMT_post__Transition.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Transition) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Transition.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Transition) self.globalAndLocalPostcondition(self.objMT_post__Transition, rootNode) self.globalPrecondition(rootNode) self.objMT_post__StateMachine=ButtonConfig(self) self.objMT_post__StateMachine.Contents.Text.setValue('New StateMachine') self.objMT_post__StateMachine.Contents.Image.setValue('') self.objMT_post__StateMachine.Contents.lastSelected= 'Text' self.objMT_post__StateMachine.Drawing_Mode.setValue(1) self.objMT_post__StateMachine.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__StateMachine (self, wherex, wherey)\n')) self.objMT_post__StateMachine.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__StateMachine) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__StateMachine.graphObject_ = new_obj rootNode.addNode(self.objMT_post__StateMachine) self.globalAndLocalPostcondition(self.objMT_post__StateMachine, rootNode) self.globalPrecondition(rootNode) self.objMT_post__State=ButtonConfig(self) self.objMT_post__State.Contents.Text.setValue('New State') self.objMT_post__State.Contents.Image.setValue('') self.objMT_post__State.Contents.lastSelected= 'Text' self.objMT_post__State.Drawing_Mode.setValue(1) self.objMT_post__State.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__State (self, wherex, wherey)\n')) self.objMT_post__State.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__State) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__State.graphObject_ = new_obj rootNode.addNode(self.objMT_post__State) self.globalAndLocalPostcondition(self.objMT_post__State, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Capsule=ButtonConfig(self) self.objMT_post__Capsule.Contents.Text.setValue('New Capsule') self.objMT_post__Capsule.Contents.Image.setValue('') self.objMT_post__Capsule.Contents.lastSelected= 'Text' self.objMT_post__Capsule.Drawing_Mode.setValue(1) self.objMT_post__Capsule.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Capsule (self, wherex, wherey)\n')) self.objMT_post__Capsule.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Capsule) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Capsule.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Capsule) self.globalAndLocalPostcondition(self.objMT_post__Capsule, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PackageContainer=ButtonConfig(self) self.objMT_post__PackageContainer.Contents.Text.setValue('New PackageContainer') self.objMT_post__PackageContainer.Contents.Image.setValue('') self.objMT_post__PackageContainer.Contents.lastSelected= 'Text' self.objMT_post__PackageContainer.Drawing_Mode.setValue(1) self.objMT_post__PackageContainer.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PackageContainer (self, wherex, wherey)\n')) self.objMT_post__PackageContainer.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__PackageContainer) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PackageContainer.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PackageContainer) self.globalAndLocalPostcondition(self.objMT_post__PackageContainer, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Model_S=ButtonConfig(self) self.objMT_post__Model_S.Contents.Text.setValue('New Model_S') self.objMT_post__Model_S.Contents.Image.setValue('') self.objMT_post__Model_S.Contents.lastSelected= 'Text' self.objMT_post__Model_S.Drawing_Mode.setValue(1) self.objMT_post__Model_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Model_S (self, wherex, wherey)\n')) self.objMT_post__Model_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Model_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Model_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Model_S) self.globalAndLocalPostcondition(self.objMT_post__Model_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Package=ButtonConfig(self) self.objMT_post__Package.Contents.Text.setValue('New Package') self.objMT_post__Package.Contents.Image.setValue('') self.objMT_post__Package.Contents.lastSelected= 'Text' self.objMT_post__Package.Drawing_Mode.setValue(1) self.objMT_post__Package.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Package (self, wherex, wherey)\n')) self.objMT_post__Package.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Package) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Package.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Package) self.globalAndLocalPostcondition(self.objMT_post__Package, rootNode) self.globalPrecondition(rootNode) self.objMT_post__CapsuleRole=ButtonConfig(self) self.objMT_post__CapsuleRole.Contents.Text.setValue('New CapsuleRole') self.objMT_post__CapsuleRole.Contents.Image.setValue('') self.objMT_post__CapsuleRole.Contents.lastSelected= 'Text' self.objMT_post__CapsuleRole.Drawing_Mode.setValue(1) self.objMT_post__CapsuleRole.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__CapsuleRole (self, wherex, wherey)\n')) self.objMT_post__CapsuleRole.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__CapsuleRole) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__CapsuleRole.graphObject_ = new_obj rootNode.addNode(self.objMT_post__CapsuleRole) self.globalAndLocalPostcondition(self.objMT_post__CapsuleRole, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PortConnector=ButtonConfig(self) self.objMT_post__PortConnector.Contents.Text.setValue('New PortConnector') self.objMT_post__PortConnector.Contents.Image.setValue('') self.objMT_post__PortConnector.Contents.lastSelected= 'Text' self.objMT_post__PortConnector.Drawing_Mode.setValue(1) self.objMT_post__PortConnector.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PortConnector (self, wherex, wherey)\n')) self.objMT_post__PortConnector.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__PortConnector) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PortConnector.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PortConnector) self.globalAndLocalPostcondition(self.objMT_post__PortConnector, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Thread=ButtonConfig(self) self.objMT_post__Thread.Contents.Text.setValue('New Thread') self.objMT_post__Thread.Contents.Image.setValue('') self.objMT_post__Thread.Contents.lastSelected= 'Text' self.objMT_post__Thread.Drawing_Mode.setValue(1) self.objMT_post__Thread.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Thread (self, wherex, wherey)\n')) self.objMT_post__Thread.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Thread) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Thread.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Thread) self.globalAndLocalPostcondition(self.objMT_post__Thread, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PhysicalThread=ButtonConfig(self) self.objMT_post__PhysicalThread.Contents.Text.setValue('New PhysicalThread') self.objMT_post__PhysicalThread.Contents.Image.setValue('') self.objMT_post__PhysicalThread.Contents.lastSelected= 'Text' self.objMT_post__PhysicalThread.Drawing_Mode.setValue(1) self.objMT_post__PhysicalThread.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PhysicalThread (self, wherex, wherey)\n')) self.objMT_post__PhysicalThread.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__PhysicalThread) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PhysicalThread.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PhysicalThread) self.globalAndLocalPostcondition(self.objMT_post__PhysicalThread, rootNode) self.globalPrecondition(rootNode) self.objMT_post__LogicalThread=ButtonConfig(self) self.objMT_post__LogicalThread.Contents.Text.setValue('New LogicalThread') self.objMT_post__LogicalThread.Contents.Image.setValue('') self.objMT_post__LogicalThread.Contents.lastSelected= 'Text' self.objMT_post__LogicalThread.Drawing_Mode.setValue(1) self.objMT_post__LogicalThread.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__LogicalThread (self, wherex, wherey)\n')) self.objMT_post__LogicalThread.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__LogicalThread) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__LogicalThread.graphObject_ = new_obj rootNode.addNode(self.objMT_post__LogicalThread) self.globalAndLocalPostcondition(self.objMT_post__LogicalThread, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PortType=ButtonConfig(self) self.objMT_post__PortType.Contents.Text.setValue('New PortType') self.objMT_post__PortType.Contents.Image.setValue('') self.objMT_post__PortType.Contents.lastSelected= 'Text' self.objMT_post__PortType.Drawing_Mode.setValue(1) self.objMT_post__PortType.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PortType (self, wherex, wherey)\n')) self.objMT_post__PortType.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__PortType) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PortType.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PortType) self.globalAndLocalPostcondition(self.objMT_post__PortType, rootNode) self.globalPrecondition(rootNode) self.objMT_post__BASE0=ButtonConfig(self) self.objMT_post__BASE0.Contents.Text.setValue('New BASE0') self.objMT_post__BASE0.Contents.Image.setValue('') self.objMT_post__BASE0.Contents.lastSelected= 'Text' self.objMT_post__BASE0.Drawing_Mode.setValue(1) self.objMT_post__BASE0.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__BASE0 (self, wherex, wherey)\n')) self.objMT_post__BASE0.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__BASE0) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__BASE0.graphObject_ = new_obj rootNode.addNode(self.objMT_post__BASE0) self.globalAndLocalPostcondition(self.objMT_post__BASE0, rootNode) self.globalPrecondition(rootNode) self.objMT_post__CONJUGATE1=ButtonConfig(self) self.objMT_post__CONJUGATE1.Contents.Text.setValue('New CONJUGATE1') self.objMT_post__CONJUGATE1.Contents.Image.setValue('') self.objMT_post__CONJUGATE1.Contents.lastSelected= 'Text' self.objMT_post__CONJUGATE1.Drawing_Mode.setValue(1) self.objMT_post__CONJUGATE1.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__CONJUGATE1 (self, wherex, wherey)\n')) self.objMT_post__CONJUGATE1.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__CONJUGATE1) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__CONJUGATE1.graphObject_ = new_obj rootNode.addNode(self.objMT_post__CONJUGATE1) self.globalAndLocalPostcondition(self.objMT_post__CONJUGATE1, rootNode) self.globalPrecondition(rootNode) self.objMT_post__SignalType=ButtonConfig(self) self.objMT_post__SignalType.Contents.Text.setValue('New SignalType') self.objMT_post__SignalType.Contents.Image.setValue('') self.objMT_post__SignalType.Contents.lastSelected= 'Text' self.objMT_post__SignalType.Drawing_Mode.setValue(1) self.objMT_post__SignalType.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__SignalType (self, wherex, wherey)\n')) self.objMT_post__SignalType.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__SignalType) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__SignalType.graphObject_ = new_obj rootNode.addNode(self.objMT_post__SignalType) self.globalAndLocalPostcondition(self.objMT_post__SignalType, rootNode) self.globalPrecondition(rootNode) self.objMT_post__OUT1=ButtonConfig(self) self.objMT_post__OUT1.Contents.Text.setValue('New OUT1') self.objMT_post__OUT1.Contents.Image.setValue('') self.objMT_post__OUT1.Contents.lastSelected= 'Text' self.objMT_post__OUT1.Drawing_Mode.setValue(1) self.objMT_post__OUT1.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__OUT1 (self, wherex, wherey)\n')) self.objMT_post__OUT1.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__OUT1) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__OUT1.graphObject_ = new_obj rootNode.addNode(self.objMT_post__OUT1) self.globalAndLocalPostcondition(self.objMT_post__OUT1, rootNode) self.globalPrecondition(rootNode) self.objMT_post__IN0=ButtonConfig(self) self.objMT_post__IN0.Contents.Text.setValue('New IN0') self.objMT_post__IN0.Contents.Image.setValue('') self.objMT_post__IN0.Contents.lastSelected= 'Text' self.objMT_post__IN0.Drawing_Mode.setValue(1) self.objMT_post__IN0.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__IN0 (self, wherex, wherey)\n')) self.objMT_post__IN0.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__IN0) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__IN0.graphObject_ = new_obj rootNode.addNode(self.objMT_post__IN0) self.globalAndLocalPostcondition(self.objMT_post__IN0, rootNode) self.globalPrecondition(rootNode) self.objMT_post__RoleType=ButtonConfig(self) self.objMT_post__RoleType.Contents.Text.setValue('New RoleType') self.objMT_post__RoleType.Contents.Image.setValue('') self.objMT_post__RoleType.Contents.lastSelected= 'Text' self.objMT_post__RoleType.Drawing_Mode.setValue(1) self.objMT_post__RoleType.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__RoleType (self, wherex, wherey)\n')) self.objMT_post__RoleType.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__RoleType) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__RoleType.graphObject_ = new_obj rootNode.addNode(self.objMT_post__RoleType) self.globalAndLocalPostcondition(self.objMT_post__RoleType, rootNode) self.globalPrecondition(rootNode) self.objMT_post__FIXED0=ButtonConfig(self) self.objMT_post__FIXED0.Contents.Text.setValue('New FIXED0') self.objMT_post__FIXED0.Contents.Image.setValue('') self.objMT_post__FIXED0.Contents.lastSelected= 'Text' self.objMT_post__FIXED0.Drawing_Mode.setValue(1) self.objMT_post__FIXED0.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__FIXED0 (self, wherex, wherey)\n')) self.objMT_post__FIXED0.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__FIXED0) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__FIXED0.graphObject_ = new_obj rootNode.addNode(self.objMT_post__FIXED0) self.globalAndLocalPostcondition(self.objMT_post__FIXED0, rootNode) self.globalPrecondition(rootNode) self.objMT_post__OPTIONAL1=ButtonConfig(self) self.objMT_post__OPTIONAL1.Contents.Text.setValue('New OPTIONAL1') self.objMT_post__OPTIONAL1.Contents.Image.setValue('') self.objMT_post__OPTIONAL1.Contents.lastSelected= 'Text' self.objMT_post__OPTIONAL1.Drawing_Mode.setValue(1) self.objMT_post__OPTIONAL1.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__OPTIONAL1 (self, wherex, wherey)\n')) self.objMT_post__OPTIONAL1.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__OPTIONAL1) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__OPTIONAL1.graphObject_ = new_obj rootNode.addNode(self.objMT_post__OPTIONAL1) self.globalAndLocalPostcondition(self.objMT_post__OPTIONAL1, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PLUGIN2=ButtonConfig(self) self.objMT_post__PLUGIN2.Contents.Text.setValue('New PLUGIN2') self.objMT_post__PLUGIN2.Contents.Image.setValue('') self.objMT_post__PLUGIN2.Contents.lastSelected= 'Text' self.objMT_post__PLUGIN2.Drawing_Mode.setValue(1) self.objMT_post__PLUGIN2.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PLUGIN2 (self, wherex, wherey)\n')) self.objMT_post__PLUGIN2.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__PLUGIN2) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PLUGIN2.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PLUGIN2) self.globalAndLocalPostcondition(self.objMT_post__PLUGIN2, rootNode) self.globalPrecondition(rootNode) self.objMT_post__TransitionType=ButtonConfig(self) self.objMT_post__TransitionType.Contents.Text.setValue('New TransitionType') self.objMT_post__TransitionType.Contents.Image.setValue('') self.objMT_post__TransitionType.Contents.lastSelected= 'Text' self.objMT_post__TransitionType.Drawing_Mode.setValue(1) self.objMT_post__TransitionType.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__TransitionType (self, wherex, wherey)\n')) self.objMT_post__TransitionType.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__TransitionType) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__TransitionType.graphObject_ = new_obj rootNode.addNode(self.objMT_post__TransitionType) self.globalAndLocalPostcondition(self.objMT_post__TransitionType, rootNode) self.globalPrecondition(rootNode) self.objMT_post__SIBLING0=ButtonConfig(self) self.objMT_post__SIBLING0.Contents.Text.setValue('New SIBLING0') self.objMT_post__SIBLING0.Contents.Image.setValue('') self.objMT_post__SIBLING0.Contents.lastSelected= 'Text' self.objMT_post__SIBLING0.Drawing_Mode.setValue(1) self.objMT_post__SIBLING0.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__SIBLING0 (self, wherex, wherey)\n')) self.objMT_post__SIBLING0.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__SIBLING0) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__SIBLING0.graphObject_ = new_obj rootNode.addNode(self.objMT_post__SIBLING0) self.globalAndLocalPostcondition(self.objMT_post__SIBLING0, rootNode) self.globalPrecondition(rootNode) self.objMT_post__IN1=ButtonConfig(self) self.objMT_post__IN1.Contents.Text.setValue('New IN1') self.objMT_post__IN1.Contents.Image.setValue('') self.objMT_post__IN1.Contents.lastSelected= 'Text' self.objMT_post__IN1.Drawing_Mode.setValue(1) self.objMT_post__IN1.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__IN1 (self, wherex, wherey)\n')) self.objMT_post__IN1.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__IN1) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__IN1.graphObject_ = new_obj rootNode.addNode(self.objMT_post__IN1) self.globalAndLocalPostcondition(self.objMT_post__IN1, rootNode) self.globalPrecondition(rootNode) self.objMT_post__OUT2=ButtonConfig(self) self.objMT_post__OUT2.Contents.Text.setValue('New OUT2') self.objMT_post__OUT2.Contents.Image.setValue('') self.objMT_post__OUT2.Contents.lastSelected= 'Text' self.objMT_post__OUT2.Drawing_Mode.setValue(1) self.objMT_post__OUT2.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__OUT2 (self, wherex, wherey)\n')) self.objMT_post__OUT2.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__OUT2) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__OUT2.graphObject_ = new_obj rootNode.addNode(self.objMT_post__OUT2) self.globalAndLocalPostcondition(self.objMT_post__OUT2, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Def=ButtonConfig(self) self.objMT_post__Def.Contents.Text.setValue('New Def') self.objMT_post__Def.Contents.Image.setValue('') self.objMT_post__Def.Contents.lastSelected= 'Text' self.objMT_post__Def.Drawing_Mode.setValue(1) self.objMT_post__Def.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Def (self, wherex, wherey)\n')) self.objMT_post__Def.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Def) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Def.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Def) self.globalAndLocalPostcondition(self.objMT_post__Def, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Expr=ButtonConfig(self) self.objMT_post__Expr.Contents.Text.setValue('New Expr') self.objMT_post__Expr.Contents.Image.setValue('') self.objMT_post__Expr.Contents.lastSelected= 'Text' self.objMT_post__Expr.Drawing_Mode.setValue(1) self.objMT_post__Expr.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Expr (self, wherex, wherey)\n')) self.objMT_post__Expr.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Expr) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Expr.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Expr) self.globalAndLocalPostcondition(self.objMT_post__Expr, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Pattern=ButtonConfig(self) self.objMT_post__Pattern.Contents.Text.setValue('New Pattern') self.objMT_post__Pattern.Contents.Image.setValue('') self.objMT_post__Pattern.Contents.lastSelected= 'Text' self.objMT_post__Pattern.Drawing_Mode.setValue(1) self.objMT_post__Pattern.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Pattern (self, wherex, wherey)\n')) self.objMT_post__Pattern.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Pattern) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Pattern.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Pattern) self.globalAndLocalPostcondition(self.objMT_post__Pattern, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Proc=ButtonConfig(self) self.objMT_post__Proc.Contents.Text.setValue('New Proc') self.objMT_post__Proc.Contents.Image.setValue('') self.objMT_post__Proc.Contents.lastSelected= 'Text' self.objMT_post__Proc.Drawing_Mode.setValue(1) self.objMT_post__Proc.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Proc (self, wherex, wherey)\n')) self.objMT_post__Proc.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Proc) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Proc.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Proc) self.globalAndLocalPostcondition(self.objMT_post__Proc, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ProcDef=ButtonConfig(self) self.objMT_post__ProcDef.Contents.Text.setValue('New ProcDef') self.objMT_post__ProcDef.Contents.Image.setValue('') self.objMT_post__ProcDef.Contents.lastSelected= 'Text' self.objMT_post__ProcDef.Drawing_Mode.setValue(1) self.objMT_post__ProcDef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ProcDef (self, wherex, wherey)\n')) self.objMT_post__ProcDef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__ProcDef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ProcDef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ProcDef) self.globalAndLocalPostcondition(self.objMT_post__ProcDef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__FuncDef=ButtonConfig(self) self.objMT_post__FuncDef.Contents.Text.setValue('New FuncDef') self.objMT_post__FuncDef.Contents.Image.setValue('') self.objMT_post__FuncDef.Contents.lastSelected= 'Text' self.objMT_post__FuncDef.Drawing_Mode.setValue(1) self.objMT_post__FuncDef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__FuncDef (self, wherex, wherey)\n')) self.objMT_post__FuncDef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__FuncDef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__FuncDef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__FuncDef) self.globalAndLocalPostcondition(self.objMT_post__FuncDef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Name=ButtonConfig(self) self.objMT_post__Name.Contents.Text.setValue('New Name') self.objMT_post__Name.Contents.Image.setValue('') self.objMT_post__Name.Contents.lastSelected= 'Text' self.objMT_post__Name.Drawing_Mode.setValue(1) self.objMT_post__Name.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Name (self, wherex, wherey)\n')) self.objMT_post__Name.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Name) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Name.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Name) self.globalAndLocalPostcondition(self.objMT_post__Name, rootNode) self.globalPrecondition(rootNode) self.objMT_post__PythonRef=ButtonConfig(self) self.objMT_post__PythonRef.Contents.Text.setValue('New PythonRef') self.objMT_post__PythonRef.Contents.Image.setValue('') self.objMT_post__PythonRef.Contents.lastSelected= 'Text' self.objMT_post__PythonRef.Drawing_Mode.setValue(1) self.objMT_post__PythonRef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__PythonRef (self, wherex, wherey)\n')) self.objMT_post__PythonRef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__PythonRef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__PythonRef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__PythonRef) self.globalAndLocalPostcondition(self.objMT_post__PythonRef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Module=ButtonConfig(self) self.objMT_post__Module.Contents.Text.setValue('New Module') self.objMT_post__Module.Contents.Image.setValue('') self.objMT_post__Module.Contents.lastSelected= 'Text' self.objMT_post__Module.Drawing_Mode.setValue(1) self.objMT_post__Module.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Module (self, wherex, wherey)\n')) self.objMT_post__Module.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Module) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Module.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Module) self.globalAndLocalPostcondition(self.objMT_post__Module, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Null=ButtonConfig(self) self.objMT_post__Null.Contents.Text.setValue('New Null') self.objMT_post__Null.Contents.Image.setValue('') self.objMT_post__Null.Contents.lastSelected= 'Text' self.objMT_post__Null.Drawing_Mode.setValue(1) self.objMT_post__Null.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Null (self, wherex, wherey)\n')) self.objMT_post__Null.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Null) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Null.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Null) self.globalAndLocalPostcondition(self.objMT_post__Null, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Trigger_T=ButtonConfig(self) self.objMT_post__Trigger_T.Contents.Text.setValue('New Trigger_T') self.objMT_post__Trigger_T.Contents.Image.setValue('') self.objMT_post__Trigger_T.Contents.lastSelected= 'Text' self.objMT_post__Trigger_T.Drawing_Mode.setValue(1) self.objMT_post__Trigger_T.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Trigger_T (self, wherex, wherey)\n')) self.objMT_post__Trigger_T.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Trigger_T) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Trigger_T.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Trigger_T) self.globalAndLocalPostcondition(self.objMT_post__Trigger_T, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Listen=ButtonConfig(self) self.objMT_post__Listen.Contents.Text.setValue('New Listen') self.objMT_post__Listen.Contents.Image.setValue('') self.objMT_post__Listen.Contents.lastSelected= 'Text' self.objMT_post__Listen.Drawing_Mode.setValue(1) self.objMT_post__Listen.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Listen (self, wherex, wherey)\n')) self.objMT_post__Listen.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Listen) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Listen.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Listen) self.globalAndLocalPostcondition(self.objMT_post__Listen, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ConditionBranch=ButtonConfig(self) self.objMT_post__ConditionBranch.Contents.Text.setValue('New ConditionBranch') self.objMT_post__ConditionBranch.Contents.Image.setValue('') self.objMT_post__ConditionBranch.Contents.lastSelected= 'Text' self.objMT_post__ConditionBranch.Drawing_Mode.setValue(1) self.objMT_post__ConditionBranch.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ConditionBranch (self, wherex, wherey)\n')) self.objMT_post__ConditionBranch.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__ConditionBranch) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ConditionBranch.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ConditionBranch) self.globalAndLocalPostcondition(self.objMT_post__ConditionBranch, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ListenBranch=ButtonConfig(self) self.objMT_post__ListenBranch.Contents.Text.setValue('New ListenBranch') self.objMT_post__ListenBranch.Contents.Image.setValue('') self.objMT_post__ListenBranch.Contents.lastSelected= 'Text' self.objMT_post__ListenBranch.Drawing_Mode.setValue(1) self.objMT_post__ListenBranch.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ListenBranch (self, wherex, wherey)\n')) self.objMT_post__ListenBranch.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__ListenBranch) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ListenBranch.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ListenBranch) self.globalAndLocalPostcondition(self.objMT_post__ListenBranch, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Site=ButtonConfig(self) self.objMT_post__Site.Contents.Text.setValue('New Site') self.objMT_post__Site.Contents.Image.setValue('') self.objMT_post__Site.Contents.lastSelected= 'Text' self.objMT_post__Site.Drawing_Mode.setValue(1) self.objMT_post__Site.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Site (self, wherex, wherey)\n')) self.objMT_post__Site.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Site) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Site.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Site) self.globalAndLocalPostcondition(self.objMT_post__Site, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Model_T=ButtonConfig(self) self.objMT_post__Model_T.Contents.Text.setValue('New Model_T') self.objMT_post__Model_T.Contents.Image.setValue('') self.objMT_post__Model_T.Contents.lastSelected= 'Text' self.objMT_post__Model_T.Drawing_Mode.setValue(1) self.objMT_post__Model_T.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Model_T (self, wherex, wherey)\n')) self.objMT_post__Model_T.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Model_T) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Model_T.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Model_T) self.globalAndLocalPostcondition(self.objMT_post__Model_T, rootNode) self.globalPrecondition(rootNode) self.objMT_post__MatchCase=ButtonConfig(self) self.objMT_post__MatchCase.Contents.Text.setValue('New MatchCase') self.objMT_post__MatchCase.Contents.Image.setValue('') self.objMT_post__MatchCase.Contents.lastSelected= 'Text' self.objMT_post__MatchCase.Drawing_Mode.setValue(1) self.objMT_post__MatchCase.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__MatchCase (self, wherex, wherey)\n')) self.objMT_post__MatchCase.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__MatchCase) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__MatchCase.graphObject_ = new_obj rootNode.addNode(self.objMT_post__MatchCase) self.globalAndLocalPostcondition(self.objMT_post__MatchCase, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Condition=ButtonConfig(self) self.objMT_post__Condition.Contents.Text.setValue('New Condition') self.objMT_post__Condition.Contents.Image.setValue('') self.objMT_post__Condition.Contents.lastSelected= 'Text' self.objMT_post__Condition.Drawing_Mode.setValue(1) self.objMT_post__Condition.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Condition (self, wherex, wherey)\n')) self.objMT_post__Condition.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Condition) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Condition.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Condition) self.globalAndLocalPostcondition(self.objMT_post__Condition, rootNode) self.globalPrecondition(rootNode) self.objMT_post__New=ButtonConfig(self) self.objMT_post__New.Contents.Text.setValue('New New') self.objMT_post__New.Contents.Image.setValue('') self.objMT_post__New.Contents.lastSelected= 'Text' self.objMT_post__New.Drawing_Mode.setValue(1) self.objMT_post__New.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__New (self, wherex, wherey)\n')) self.objMT_post__New.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__New) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__New.graphObject_ = new_obj rootNode.addNode(self.objMT_post__New) self.globalAndLocalPostcondition(self.objMT_post__New, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Delay=ButtonConfig(self) self.objMT_post__Delay.Contents.Text.setValue('New Delay') self.objMT_post__Delay.Contents.Image.setValue('') self.objMT_post__Delay.Contents.lastSelected= 'Text' self.objMT_post__Delay.Drawing_Mode.setValue(1) self.objMT_post__Delay.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Delay (self, wherex, wherey)\n')) self.objMT_post__Delay.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Delay) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Delay.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Delay) self.globalAndLocalPostcondition(self.objMT_post__Delay, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Par=ButtonConfig(self) self.objMT_post__Par.Contents.Text.setValue('New Par') self.objMT_post__Par.Contents.Image.setValue('') self.objMT_post__Par.Contents.lastSelected= 'Text' self.objMT_post__Par.Drawing_Mode.setValue(1) self.objMT_post__Par.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Par (self, wherex, wherey)\n')) self.objMT_post__Par.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Par) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Par.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Par) self.globalAndLocalPostcondition(self.objMT_post__Par, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ParIndexed=ButtonConfig(self) self.objMT_post__ParIndexed.Contents.Text.setValue('New ParIndexed') self.objMT_post__ParIndexed.Contents.Image.setValue('') self.objMT_post__ParIndexed.Contents.lastSelected= 'Text' self.objMT_post__ParIndexed.Drawing_Mode.setValue(1) self.objMT_post__ParIndexed.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ParIndexed (self, wherex, wherey)\n')) self.objMT_post__ParIndexed.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__ParIndexed) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ParIndexed.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ParIndexed) self.globalAndLocalPostcondition(self.objMT_post__ParIndexed, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Inst=ButtonConfig(self) self.objMT_post__Inst.Contents.Text.setValue('New Inst') self.objMT_post__Inst.Contents.Image.setValue('') self.objMT_post__Inst.Contents.lastSelected= 'Text' self.objMT_post__Inst.Drawing_Mode.setValue(1) self.objMT_post__Inst.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Inst (self, wherex, wherey)\n')) self.objMT_post__Inst.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Inst) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Inst.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Inst) self.globalAndLocalPostcondition(self.objMT_post__Inst, rootNode) self.globalPrecondition(rootNode) self.objMT_post__LocalDef=ButtonConfig(self) self.objMT_post__LocalDef.Contents.Text.setValue('New LocalDef') self.objMT_post__LocalDef.Contents.Image.setValue('') self.objMT_post__LocalDef.Contents.lastSelected= 'Text' self.objMT_post__LocalDef.Drawing_Mode.setValue(1) self.objMT_post__LocalDef.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__LocalDef (self, wherex, wherey)\n')) self.objMT_post__LocalDef.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__LocalDef) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__LocalDef.graphObject_ = new_obj rootNode.addNode(self.objMT_post__LocalDef) self.globalAndLocalPostcondition(self.objMT_post__LocalDef, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Seq=ButtonConfig(self) self.objMT_post__Seq.Contents.Text.setValue('New Seq') self.objMT_post__Seq.Contents.Image.setValue('') self.objMT_post__Seq.Contents.lastSelected= 'Text' self.objMT_post__Seq.Drawing_Mode.setValue(1) self.objMT_post__Seq.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Seq (self, wherex, wherey)\n')) self.objMT_post__Seq.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Seq) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Seq.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Seq) self.globalAndLocalPostcondition(self.objMT_post__Seq, rootNode) self.globalPrecondition(rootNode) self.objMT_post__ConditionSet=ButtonConfig(self) self.objMT_post__ConditionSet.Contents.Text.setValue('New ConditionSet') self.objMT_post__ConditionSet.Contents.Image.setValue('') self.objMT_post__ConditionSet.Contents.lastSelected= 'Text' self.objMT_post__ConditionSet.Drawing_Mode.setValue(1) self.objMT_post__ConditionSet.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__ConditionSet (self, wherex, wherey)\n')) self.objMT_post__ConditionSet.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__ConditionSet) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__ConditionSet.graphObject_ = new_obj rootNode.addNode(self.objMT_post__ConditionSet) self.globalAndLocalPostcondition(self.objMT_post__ConditionSet, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Match=ButtonConfig(self) self.objMT_post__Match.Contents.Text.setValue('New Match') self.objMT_post__Match.Contents.Image.setValue('') self.objMT_post__Match.Contents.lastSelected= 'Text' self.objMT_post__Match.Drawing_Mode.setValue(1) self.objMT_post__Match.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Match (self, wherex, wherey)\n')) self.objMT_post__Match.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Match) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Match.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Match) self.globalAndLocalPostcondition(self.objMT_post__Match, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Print=ButtonConfig(self) self.objMT_post__Print.Contents.Text.setValue('New Print') self.objMT_post__Print.Contents.Image.setValue('') self.objMT_post__Print.Contents.lastSelected= 'Text' self.objMT_post__Print.Drawing_Mode.setValue(1) self.objMT_post__Print.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Print (self, wherex, wherey)\n')) self.objMT_post__Print.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Print) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Print.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Print) self.globalAndLocalPostcondition(self.objMT_post__Print, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Attribute=ButtonConfig(self) self.objMT_post__Attribute.Contents.Text.setValue('New Attribute') self.objMT_post__Attribute.Contents.Image.setValue('') self.objMT_post__Attribute.Contents.lastSelected= 'Text' self.objMT_post__Attribute.Drawing_Mode.setValue(1) self.objMT_post__Attribute.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Attribute (self, wherex, wherey)\n')) self.objMT_post__Attribute.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Attribute) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Attribute.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Attribute) self.globalAndLocalPostcondition(self.objMT_post__Attribute, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Expression=ButtonConfig(self) self.objMT_post__Expression.Contents.Text.setValue('New Expression') self.objMT_post__Expression.Contents.Image.setValue('') self.objMT_post__Expression.Contents.lastSelected= 'Text' self.objMT_post__Expression.Drawing_Mode.setValue(1) self.objMT_post__Expression.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Expression (self, wherex, wherey)\n')) self.objMT_post__Expression.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Expression) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Expression.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Expression) self.globalAndLocalPostcondition(self.objMT_post__Expression, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Equation=ButtonConfig(self) self.objMT_post__Equation.Contents.Text.setValue('New Equation') self.objMT_post__Equation.Contents.Image.setValue('') self.objMT_post__Equation.Contents.lastSelected= 'Text' self.objMT_post__Equation.Drawing_Mode.setValue(1) self.objMT_post__Equation.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Equation (self, wherex, wherey)\n')) self.objMT_post__Equation.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Equation) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Equation.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Equation) self.globalAndLocalPostcondition(self.objMT_post__Equation, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Operation=ButtonConfig(self) self.objMT_post__Operation.Contents.Text.setValue('New Operation') self.objMT_post__Operation.Contents.Image.setValue('') self.objMT_post__Operation.Contents.lastSelected= 'Text' self.objMT_post__Operation.Drawing_Mode.setValue(1) self.objMT_post__Operation.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Operation (self, wherex, wherey)\n')) self.objMT_post__Operation.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Operation) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Operation.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Operation) self.globalAndLocalPostcondition(self.objMT_post__Operation, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Add=ButtonConfig(self) self.objMT_post__Add.Contents.Text.setValue('New Add') self.objMT_post__Add.Contents.Image.setValue('') self.objMT_post__Add.Contents.lastSelected= 'Text' self.objMT_post__Add.Drawing_Mode.setValue(1) self.objMT_post__Add.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Add (self, wherex, wherey)\n')) self.objMT_post__Add.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Add) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Add.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Add) self.globalAndLocalPostcondition(self.objMT_post__Add, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Subtract=ButtonConfig(self) self.objMT_post__Subtract.Contents.Text.setValue('New Subtract') self.objMT_post__Subtract.Contents.Image.setValue('') self.objMT_post__Subtract.Contents.lastSelected= 'Text' self.objMT_post__Subtract.Drawing_Mode.setValue(1) self.objMT_post__Subtract.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Subtract (self, wherex, wherey)\n')) self.objMT_post__Subtract.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__Subtract) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Subtract.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Subtract) self.globalAndLocalPostcondition(self.objMT_post__Subtract, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Concat=ButtonConfig(self) self.objMT_post__Concat.Contents.Text.setValue('New Concat') self.objMT_post__Concat.Contents.Image.setValue('') self.objMT_post__Concat.Contents.lastSelected= 'Text' self.objMT_post__Concat.Drawing_Mode.setValue(1) self.objMT_post__Concat.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Concat (self, wherex, wherey)\n')) self.objMT_post__Concat.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__Concat) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Concat.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Concat) self.globalAndLocalPostcondition(self.objMT_post__Concat, rootNode) self.globalPrecondition(rootNode) self.objMT_post__Constant=ButtonConfig(self) self.objMT_post__Constant.Contents.Text.setValue('New Constant') self.objMT_post__Constant.Contents.Image.setValue('') self.objMT_post__Constant.Contents.lastSelected= 'Text' self.objMT_post__Constant.Drawing_Mode.setValue(1) self.objMT_post__Constant.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__Constant (self, wherex, wherey)\n')) self.objMT_post__Constant.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__Constant) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__Constant.graphObject_ = new_obj rootNode.addNode(self.objMT_post__Constant) self.globalAndLocalPostcondition(self.objMT_post__Constant, rootNode) self.globalPrecondition(rootNode) self.objMT_post__GenericNode_UMLRT2Kiltera_MM=ButtonConfig(self) self.objMT_post__GenericNode_UMLRT2Kiltera_MM.Contents.Text.setValue('New GenericNode') self.objMT_post__GenericNode_UMLRT2Kiltera_MM.Contents.Image.setValue('') self.objMT_post__GenericNode_UMLRT2Kiltera_MM.Contents.lastSelected= 'Text' self.objMT_post__GenericNode_UMLRT2Kiltera_MM.Drawing_Mode.setValue(1) self.objMT_post__GenericNode_UMLRT2Kiltera_MM.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__GenericNode_UMLRT2Kiltera_MM (self, wherex, wherey)\n')) self.objMT_post__GenericNode_UMLRT2Kiltera_MM.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__GenericNode_UMLRT2Kiltera_MM) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__GenericNode_UMLRT2Kiltera_MM.graphObject_ = new_obj rootNode.addNode(self.objMT_post__GenericNode_UMLRT2Kiltera_MM) self.globalAndLocalPostcondition(self.objMT_post__GenericNode_UMLRT2Kiltera_MM, rootNode) self.globalPrecondition(rootNode) self.objMT_post__paired_with=ButtonConfig(self) self.objMT_post__paired_with.Contents.Text.setValue('New paired_with') self.objMT_post__paired_with.Contents.Image.setValue('') self.objMT_post__paired_with.Contents.lastSelected= 'Text' self.objMT_post__paired_with.Drawing_Mode.setValue(1) self.objMT_post__paired_with.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__paired_with (self, wherex, wherey)\n')) self.objMT_post__paired_with.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__paired_with) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__paired_with.graphObject_ = new_obj rootNode.addNode(self.objMT_post__paired_with) self.globalAndLocalPostcondition(self.objMT_post__paired_with, rootNode) self.globalPrecondition(rootNode) self.objMT_post__match_contains=ButtonConfig(self) self.objMT_post__match_contains.Contents.Text.setValue('New match_contains') self.objMT_post__match_contains.Contents.Image.setValue('') self.objMT_post__match_contains.Contents.lastSelected= 'Text' self.objMT_post__match_contains.Drawing_Mode.setValue(1) self.objMT_post__match_contains.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__match_contains (self, wherex, wherey)\n')) self.objMT_post__match_contains.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__match_contains) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__match_contains.graphObject_ = new_obj rootNode.addNode(self.objMT_post__match_contains) self.globalAndLocalPostcondition(self.objMT_post__match_contains, rootNode) self.globalPrecondition(rootNode) self.objMT_post__apply_contains=ButtonConfig(self) self.objMT_post__apply_contains.Contents.Text.setValue('New apply_contains') self.objMT_post__apply_contains.Contents.Image.setValue('') self.objMT_post__apply_contains.Contents.lastSelected= 'Text' self.objMT_post__apply_contains.Drawing_Mode.setValue(1) self.objMT_post__apply_contains.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__apply_contains (self, wherex, wherey)\n')) self.objMT_post__apply_contains.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__apply_contains) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__apply_contains.graphObject_ = new_obj rootNode.addNode(self.objMT_post__apply_contains) self.globalAndLocalPostcondition(self.objMT_post__apply_contains, rootNode) self.globalPrecondition(rootNode) self.objMT_post__directLink_T=ButtonConfig(self) self.objMT_post__directLink_T.Contents.Text.setValue('New directLink_T') self.objMT_post__directLink_T.Contents.Image.setValue('') self.objMT_post__directLink_T.Contents.lastSelected= 'Text' self.objMT_post__directLink_T.Drawing_Mode.setValue(1) self.objMT_post__directLink_T.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__directLink_T (self, wherex, wherey)\n')) self.objMT_post__directLink_T.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__directLink_T) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__directLink_T.graphObject_ = new_obj rootNode.addNode(self.objMT_post__directLink_T) self.globalAndLocalPostcondition(self.objMT_post__directLink_T, rootNode) self.globalPrecondition(rootNode) self.objMT_post__directLink_S=ButtonConfig(self) self.objMT_post__directLink_S.Contents.Text.setValue('New directLink_S') self.objMT_post__directLink_S.Contents.Image.setValue('') self.objMT_post__directLink_S.Contents.lastSelected= 'Text' self.objMT_post__directLink_S.Drawing_Mode.setValue(1) self.objMT_post__directLink_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__directLink_S (self, wherex, wherey)\n')) self.objMT_post__directLink_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__directLink_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__directLink_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__directLink_S) self.globalAndLocalPostcondition(self.objMT_post__directLink_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__indirectLink_S=ButtonConfig(self) self.objMT_post__indirectLink_S.Contents.Text.setValue('New indirectLink_S') self.objMT_post__indirectLink_S.Contents.Image.setValue('') self.objMT_post__indirectLink_S.Contents.lastSelected= 'Text' self.objMT_post__indirectLink_S.Drawing_Mode.setValue(1) self.objMT_post__indirectLink_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__indirectLink_S (self, wherex, wherey)\n')) self.objMT_post__indirectLink_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__indirectLink_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__indirectLink_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__indirectLink_S) self.globalAndLocalPostcondition(self.objMT_post__indirectLink_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__backward_link=ButtonConfig(self) self.objMT_post__backward_link.Contents.Text.setValue('New backward_link') self.objMT_post__backward_link.Contents.Image.setValue('') self.objMT_post__backward_link.Contents.lastSelected= 'Text' self.objMT_post__backward_link.Drawing_Mode.setValue(1) self.objMT_post__backward_link.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__backward_link (self, wherex, wherey)\n')) self.objMT_post__backward_link.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__backward_link) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__backward_link.graphObject_ = new_obj rootNode.addNode(self.objMT_post__backward_link) self.globalAndLocalPostcondition(self.objMT_post__backward_link, rootNode) self.globalPrecondition(rootNode) self.objMT_post__trace_link=ButtonConfig(self) self.objMT_post__trace_link.Contents.Text.setValue('New trace_link') self.objMT_post__trace_link.Contents.Image.setValue('') self.objMT_post__trace_link.Contents.lastSelected= 'Text' self.objMT_post__trace_link.Drawing_Mode.setValue(1) self.objMT_post__trace_link.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__trace_link (self, wherex, wherey)\n')) self.objMT_post__trace_link.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__trace_link) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__trace_link.graphObject_ = new_obj rootNode.addNode(self.objMT_post__trace_link) self.globalAndLocalPostcondition(self.objMT_post__trace_link, rootNode) self.globalPrecondition(rootNode) self.objMT_post__hasAttribute_S=ButtonConfig(self) self.objMT_post__hasAttribute_S.Contents.Text.setValue('New hasAttribute_S') self.objMT_post__hasAttribute_S.Contents.Image.setValue('') self.objMT_post__hasAttribute_S.Contents.lastSelected= 'Text' self.objMT_post__hasAttribute_S.Drawing_Mode.setValue(1) self.objMT_post__hasAttribute_S.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__hasAttribute_S (self, wherex, wherey)\n')) self.objMT_post__hasAttribute_S.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__hasAttribute_S) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__hasAttribute_S.graphObject_ = new_obj rootNode.addNode(self.objMT_post__hasAttribute_S) self.globalAndLocalPostcondition(self.objMT_post__hasAttribute_S, rootNode) self.globalPrecondition(rootNode) self.objMT_post__hasAttribute_T=ButtonConfig(self) self.objMT_post__hasAttribute_T.Contents.Text.setValue('New hasAttribute_T') self.objMT_post__hasAttribute_T.Contents.Image.setValue('') self.objMT_post__hasAttribute_T.Contents.lastSelected= 'Text' self.objMT_post__hasAttribute_T.Drawing_Mode.setValue(1) self.objMT_post__hasAttribute_T.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__hasAttribute_T (self, wherex, wherey)\n')) self.objMT_post__hasAttribute_T.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__hasAttribute_T) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__hasAttribute_T.graphObject_ = new_obj rootNode.addNode(self.objMT_post__hasAttribute_T) self.globalAndLocalPostcondition(self.objMT_post__hasAttribute_T, rootNode) self.globalPrecondition(rootNode) self.objMT_post__leftExpr=ButtonConfig(self) self.objMT_post__leftExpr.Contents.Text.setValue('New leftExpr') self.objMT_post__leftExpr.Contents.Image.setValue('') self.objMT_post__leftExpr.Contents.lastSelected= 'Text' self.objMT_post__leftExpr.Drawing_Mode.setValue(1) self.objMT_post__leftExpr.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__leftExpr (self, wherex, wherey)\n')) self.objMT_post__leftExpr.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__leftExpr) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__leftExpr.graphObject_ = new_obj rootNode.addNode(self.objMT_post__leftExpr) self.globalAndLocalPostcondition(self.objMT_post__leftExpr, rootNode) self.globalPrecondition(rootNode) self.objMT_post__rightExpr=ButtonConfig(self) self.objMT_post__rightExpr.Contents.Text.setValue('New rightExpr') self.objMT_post__rightExpr.Contents.Image.setValue('') self.objMT_post__rightExpr.Contents.lastSelected= 'Text' self.objMT_post__rightExpr.Drawing_Mode.setValue(1) self.objMT_post__rightExpr.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__rightExpr (self, wherex, wherey)\n')) self.objMT_post__rightExpr.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(260, 150,self.objMT_post__rightExpr) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__rightExpr.graphObject_ = new_obj rootNode.addNode(self.objMT_post__rightExpr) self.globalAndLocalPostcondition(self.objMT_post__rightExpr, rootNode) self.globalPrecondition(rootNode) self.objMT_post__hasArgs=ButtonConfig(self) self.objMT_post__hasArgs.Contents.Text.setValue('New hasArgs') self.objMT_post__hasArgs.Contents.Image.setValue('') self.objMT_post__hasArgs.Contents.lastSelected= 'Text' self.objMT_post__hasArgs.Drawing_Mode.setValue(1) self.objMT_post__hasArgs.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__hasArgs (self, wherex, wherey)\n')) self.objMT_post__hasArgs.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(10, 10,self.objMT_post__hasArgs) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__hasArgs.graphObject_ = new_obj rootNode.addNode(self.objMT_post__hasArgs) self.globalAndLocalPostcondition(self.objMT_post__hasArgs, rootNode) self.globalPrecondition(rootNode) self.objMT_post__GenericEdge_UMLRT2Kiltera_MM=ButtonConfig(self) self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.Contents.Text.setValue('New GenericEdge_UMLRT2Kiltera_MM') self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.Contents.Image.setValue('') self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.Contents.lastSelected= 'Text' self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.Drawing_Mode.setValue(1) self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.Action.setValue(('ActionButton1', (['Python', 'OCL'], 1), (['PREcondition', 'POSTcondition'], 1),(['EDIT', 'SAVE', 'CREATE', 'CONNECT', 'DELETE', 'DISCONNECT', 'TRANSFORM', 'SELECT', 'DRAG', 'DROP', 'MOVE OBJECT'], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), '# This method has as parameters:\n# - wherex : X Position in window coordinates where the user clicked.\n# - wherey : Y Position in window coordinates where the user clicked.\nnewPlace = self.createNewMT_post__GenericEdge_UMLRT2Kiltera_MM (self, wherex, wherey)\n')) self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.graphClass_= graph_ButtonConfig if self.genGraphics: from graph_ButtonConfig import * new_obj = graph_ButtonConfig(135, 80,self.objMT_post__GenericEdge_UMLRT2Kiltera_MM) new_obj.DrawObject(self.UMLmodel) self.UMLmodel.addtag_withtag('ButtonConfig', new_obj.tag) else: new_obj = None self.objMT_post__GenericEdge_UMLRT2Kiltera_MM.graphObject_ = new_obj rootNode.addNode(self.objMT_post__GenericEdge_UMLRT2Kiltera_MM) self.globalAndLocalPostcondition(self.objMT_post__GenericEdge_UMLRT2Kiltera_MM, rootNode) newfunction = MT_post__UMLRT2Kiltera_MM_META loadedMMName = 'Buttons' atom3version = '0.3'
74.911073
571
0.750632
16,804
130,570
5.535646
0.012676
0.101106
0.146042
0.032681
0.914965
0.808065
0.724073
0.613421
0.546425
0.535126
0
0.01819
0.120878
130,570
1,742
572
74.954076
0.792189
0.002259
0
0.348411
1
0.058068
0.288554
0.024058
0
0
0
0
0
1
0.000611
false
0
0.066626
0
0.067237
0
0
0
0
null
0
0
0
1
1
1
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
4
022ca68c48364aa8c38f5e80a40d65b52f9adf13
193
py
Python
1/week10/nested_loops.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
1/week10/nested_loops.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
1/week10/nested_loops.py
briannice/logiscool-python
00cf772072f574d297ed487e8edc9bb0158b6c68
[ "Apache-2.0" ]
null
null
null
for x in range(10): for y in range(10): print(x * y, end='\t') print() for i in range(1,11): for j in range(1,11): print(j + (i - 1) * 10, end="\t") print("")
17.545455
41
0.46114
36
193
2.472222
0.361111
0.314607
0.202247
0.224719
0
0
0
0
0
0
0
0.100775
0.331606
193
10
42
19.3
0.589147
0
0
0
0
0
0.020725
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
1
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
1
0
4
023ccb806c2b9af91affc9396a18046ee2865a5b
9,767
py
Python
World/Object/Unit/model.py
fboyd/idewave-core
eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef
[ "Apache-2.0" ]
null
null
null
World/Object/Unit/model.py
fboyd/idewave-core
eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef
[ "Apache-2.0" ]
null
null
null
World/Object/Unit/model.py
fboyd/idewave-core
eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.orm import relationship from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy import orm from DB.BaseModel import BaseModel from World.Object.model import Object from World.Object.Constants.ObjectType import ObjectType from World.Object.Constants.HighGuid import HighGuid from World.Object.Constants.TypeMask import TypeMask from World.Object.Position import Position from Utils.Debug.Logger import Logger from Config.Run.config import Config class UnitTemplate(BaseModel): __tablename__ = 'unit_template' id = BaseModel.column(type='integer', primary_key=True) entry = BaseModel.column(type='integer', unique=True) name = BaseModel.column(type='string') sub_name = BaseModel.column(type='string') min_level = BaseModel.column(type='integer') max_level = BaseModel.column(type='integer') display_id_1 = BaseModel.column(type='integer') display_id_2 = BaseModel.column(type='integer') display_id_3 = BaseModel.column(type='integer') display_id_4 = BaseModel.column(type='integer') faction_template = BaseModel.column(type='integer') scale_x = BaseModel.column(type='float', default=1.0) family = BaseModel.column(type='integer') creature_type = BaseModel.column(type='integer') inhabit_type = BaseModel.column(type='integer') regenerate_stats = BaseModel.column(type='integer') is_racial_leader = BaseModel.column(type='tinyint') npc_flags = BaseModel.column(type='integer') unit_flags = BaseModel.column(type='integer') dynamic_flags = BaseModel.column(type='integer') extra_flags = BaseModel.column(type='integer') creature_type_flags = BaseModel.column(type='integer') speed_walk = BaseModel.column(type='float') speed_run = BaseModel.column(type='float') unit_class = BaseModel.column(type='tinyint') rank = BaseModel.column(type='integer') health_multiplier = BaseModel.column(type='float') power_multiplier = BaseModel.column(type='float') damage_multiplier = BaseModel.column(type='float') damage_variance = BaseModel.column(type='float') armor_multiplier = BaseModel.column(type='float') experience_multiplier = BaseModel.column(type='float') min_health = BaseModel.column(type='integer') max_health = BaseModel.column(type='integer') min_mana = BaseModel.column(type='integer') max_mana = BaseModel.column(type='integer') min_damage = BaseModel.column(type='integer') max_damage = BaseModel.column(type='integer') min_ranged_damage = BaseModel.column(type='float') max_ranged_damage = BaseModel.column(type='float') armor = BaseModel.column(type='integer') melee_attack_power = BaseModel.column(type='integer') ranged_attack_power = BaseModel.column(type='integer') melee_base_attack_time = BaseModel.column(type='integer') ranged_base_attack_time = BaseModel.column(type='integer') damage_school = BaseModel.column(type='tinyint') min_loot_gold = BaseModel.column(type='integer') max_loot_gold = BaseModel.column(type='integer') mechanic_immune_mask = BaseModel.column(type='integer') resistance_holy = BaseModel.column(type='integer') resistance_fire = BaseModel.column(type='integer') resistance_nature = BaseModel.column(type='integer') resistance_frost = BaseModel.column(type='integer') resistance_shadow = BaseModel.column(type='integer') resistance_arcane = BaseModel.column(type='integer') movement_type = BaseModel.column(type='tinyint') trainer_type = BaseModel.column(type='tinyint') trainer_spell = BaseModel.column(type='integer') trainer_class = BaseModel.column(type='tinyint') trainer_race = BaseModel.column(type='tinyint') is_civilian = BaseModel.column(type='tinyint') __table_args__ = { 'schema': Config.Database.DBNames.world_db } class Unit(Object): id = Object.column(type='integer', foreign_key=Config.Database.DBNames.realm_db + '.object.id', primary_key=True) health = Object.column(type='integer') max_health = Object.column(type='integer') mana = Object.column(type='integer') max_mana = Object.column(type='integer') rage = Object.column(type='integer') max_rage = Object.column(type='integer') focus = Object.column(type='integer') max_focus = Object.column(type='integer') energy = Object.column(type='integer') max_energy = Object.column(type='integer') happiness = Object.column(type='integer') max_happiness = Object.column(type='integer') race = Object.column(type='integer') char_class = Object.column(type='integer') gender = Object.column(type='integer') level = Object.column(type='integer', length=3) unit_flags = Object.column(type='integer') display_id = Object.column(type='integer') native_display_id = Object.column(type='integer') faction_template = Object.column(type='integer') min_damage = Object.column(type='integer') max_damage = Object.column(type='integer') min_offhand_damage = Object.column(type='integer') max_offhand_damage = Object.column(type='integer') unit_bytes_1 = Object.column(type='integer') mod_cast_speed = Object.column(type='float') strength = Object.column(type='integer') agility = Object.column(type='integer') stamina = Object.column(type='integer') intellect = Object.column(type='integer') spirit = Object.column(type='integer') resistance_fire = Object.column(type='integer') resistance_nature = Object.column(type='integer') resistance_frost = Object.column(type='integer') resistance_shadow = Object.column(type='integer') resistance_arcane = Object.column(type='integer') armor = Object.column(type='integer') attack_power = Object.column(type='integer') base_mana = Object.column(type='integer') base_health = Object.column(type='integer') unit_bytes_2 = Object.column(type='integer') ranged_attack_power = Object.column(type='integer') min_ranged_damage = Object.column(type='integer') max_ranged_damage = Object.column(type='integer') x = Object.column(type='float') y = Object.column(type='float') z = Object.column(type='float') orientation = Object.column(type='float') map_id = Object.column(type='integer') power_type = Object.column(type='integer') unit_template_id = Object.column(type='integer', foreign_key=Config.Database.DBNames.world_db + '.unit_template.id', nullable=True) region_id = Object.column(type='integer', foreign_key=Config.Database.DBNames.world_db + '.region.id', nullable=True) unit_template = relationship('UnitTemplate', lazy='subquery') region = relationship('Region', lazy='subquery') __table_args__ = { 'schema': Config.Database.DBNames.realm_db } def __init__(self): self._target = None # this uses on session.query() etc @orm.reconstructor def init_on_load(self): self._target = None @hybrid_property def target(self): return self._target @target.setter def target(self, guid: int): self._target = guid @hybrid_property def object_type(self): return ObjectType.UNIT.value @hybrid_property def type_mask(self): return TypeMask.UNIT.value @hybrid_property def high_guid(self): return HighGuid.HIGHGUID_UNIT.value @hybrid_property def entry(self): if self.unit_template is not None: return self.unit_template.entry else: return None @hybrid_property def position(self): return Position(x=self.x, y=self.y, z=self.z, orientation=self.orientation) @position.setter def position(self, new_position: Position): self.x = new_position.x self.y = new_position.y self.z = new_position.z self.orientation = new_position.orientation
48.1133
111
0.579605
970
9,767
5.660825
0.160825
0.207612
0.272446
0.201056
0.57403
0.24094
0.047714
0.033145
0.033145
0.033145
0
0.001351
0.317805
9,767
202
112
48.351485
0.822753
0.003276
0
0.067797
0
0
0.088359
0
0
0
0
0
0
1
0.056497
false
0
0.062147
0.028249
0.841808
0
0
0
0
null
1
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
1
0
0
4
0286928d2e9e299b2264839939164633b2cd9c59
241
py
Python
torchmoon/torch/activations.py
afeldman/TorchMoon
04c6ad75b0202542a2a885cb2a900085e43c5884
[ "MIT" ]
null
null
null
torchmoon/torch/activations.py
afeldman/TorchMoon
04c6ad75b0202542a2a885cb2a900085e43c5884
[ "MIT" ]
null
null
null
torchmoon/torch/activations.py
afeldman/TorchMoon
04c6ad75b0202542a2a885cb2a900085e43c5884
[ "MIT" ]
null
null
null
from torch.nn import (ReLU, PReLU, ELU) def Activation(activation, nchan): if "elu" == activation: return ELU(inplace=True) elif "prelu" == activation: return PReLU(nchan) else: return ReLU(inplace=True)
24.1
39
0.630705
29
241
5.241379
0.551724
0.210526
0
0
0
0
0
0
0
0
0
0
0.253112
241
9
40
26.777778
0.844444
0
0
0
0
0
0.033195
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.625
0
1
0
0
null
1
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
1
0
0
4
65fba6062a946c69bc099bac1f8196f661bad081
286
py
Python
lpsmap/__init__.py
tsvm/lp-sparsemap
713fb64366fb060ed1e5e57bab4836f4f50336bc
[ "MIT" ]
null
null
null
lpsmap/__init__.py
tsvm/lp-sparsemap
713fb64366fb060ed1e5e57bab4836f4f50336bc
[ "MIT" ]
null
null
null
lpsmap/__init__.py
tsvm/lp-sparsemap
713fb64366fb060ed1e5e57bab4836f4f50336bc
[ "MIT" ]
null
null
null
from .api.factors import (Xor, Or, AtMostOne, Imply, XorOut, OrOut, AndOut, Budget, Pair) from .api.factors_extension import Sequence, DepTree from .api.api import FactorGraph try: from .api.autograd import TorchFactorGraph except ImportError: pass
22
67
0.695804
34
286
5.823529
0.676471
0.141414
0.141414
0
0
0
0
0
0
0
0
0
0.230769
286
12
68
23.833333
0.9
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.125
0.625
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
0
0
0
0
1
1
1
0
1
0
0
4
5a1e4c0857a9b3d75a2a7dd9881b936ec7a08d30
340
py
Python
Mundo 3_Estruturas Compostas/Desafio_78.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
Mundo 3_Estruturas Compostas/Desafio_78.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
Mundo 3_Estruturas Compostas/Desafio_78.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
lista = [] for v in range(0,5): lista.append(int(input("Digite um numero: "))) print(f'Você digitou os numeros {lista}.') print(f'Os maiores valores digitados foram {max(lista)} e estão nas posiçôes {lista.index(max(lista))+1}') print(f'Os menores valores digitados foram {min(lista)} e estão nas posiçôes {lista.index(min(lista))+1}')
48.571429
106
0.711765
57
340
4.245614
0.561404
0.07438
0.066116
0.115702
0.264463
0.264463
0.264463
0
0
0
0
0.013423
0.123529
340
6
107
56.666667
0.798658
0
0
0
0
0.333333
0.711765
0.158824
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
5a28e23e90b8c8e7ecc81d1de85738c973271d90
113
py
Python
Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py
homveloper/Algorithm
ae2e063d75a3ecc2537f97ede002450b45da4aa5
[ "Apache-2.0" ]
null
null
null
# 조건 : n >= 1 # 기능 : 1~n 까지의 합 def recursiveSum(n): if n <= 1 : return n return n + recursiveSum(n-1)
12.555556
32
0.530973
21
113
2.857143
0.47619
0.1
0
0
0
0
0
0
0
0
0
0.051948
0.318584
113
8
33
14.125
0.727273
0.230089
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
1
0
0
0
0
1
0
0
4
5a2c0c9e9745a1eab389a32594b6dd8afb21ff8d
158
py
Python
envdsys/envdatasystem/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
1
2021-11-06T19:22:53.000Z
2021-11-06T19:22:53.000Z
envdsys/envdatasystem/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
25
2019-06-18T20:40:36.000Z
2021-07-23T20:56:48.000Z
envdsys/envdatasystem/apps.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class EnvdatasystemConfig(AppConfig): name = 'envdatasystem' def ready(self): import envdatasystem.signals
22.571429
37
0.740506
16
158
7.3125
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.189873
158
7
38
22.571429
0.914063
0
0
0
0
0
0.081761
0
0
0
0
0
0
1
0.2
false
0
0.4
0
1
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
1
0
1
0
0
4
5a5693b3576df740b8965c883d2addfc1acde216
126
py
Python
legacy/main.py
Mnormansell/catan-start-pos-ai
641d1b76eae305aac657fc62b55102298df644da
[ "MIT" ]
null
null
null
legacy/main.py
Mnormansell/catan-start-pos-ai
641d1b76eae305aac657fc62b55102298df644da
[ "MIT" ]
null
null
null
legacy/main.py
Mnormansell/catan-start-pos-ai
641d1b76eae305aac657fc62b55102298df644da
[ "MIT" ]
null
null
null
import parser """ NEED TO PARSE ARGUMENTS LIKE num_players board player_pos chosen strategy enemy agent maybe more? """
8.4
28
0.753968
18
126
5.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.190476
126
15
29
8.4
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
4
5a5a86be46b38c1a855dd5f64cf2cd9445b3c89e
180
py
Python
Curso Python/PythonExercicios/venv/Scripts/django-admin.py
marcos-saba/Cursos
1c063392867e9ed86d141dad8861a2a35488b1c6
[ "MIT" ]
null
null
null
Curso Python/PythonExercicios/venv/Scripts/django-admin.py
marcos-saba/Cursos
1c063392867e9ed86d141dad8861a2a35488b1c6
[ "MIT" ]
null
null
null
Curso Python/PythonExercicios/venv/Scripts/django-admin.py
marcos-saba/Cursos
1c063392867e9ed86d141dad8861a2a35488b1c6
[ "MIT" ]
null
null
null
#!C:\Users\teste\PycharmProjects\PythonExercicios\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
30
73
0.805556
22
180
6.090909
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.083333
180
5
74
36
0.812121
0.4
0
0
0
0
0.074766
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
4
5a64dcc3a74e09f1790718f777b9d0489ea65709
229
py
Python
Solutions/beta/beta_get_the_status_of_generator_expression.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/beta/beta_get_the_status_of_generator_expression.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/beta/beta_get_the_status_of_generator_expression.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
from inspect import getgeneratorlocals as ggl def check_generator(gen): return { len(ggl(gen))==1: 'Created', len(ggl(gen))==2: 'Started', len(ggl(gen))==0: 'Finished' }[True]
25.444444
45
0.537118
27
229
4.518519
0.703704
0.147541
0.221311
0
0
0
0
0
0
0
0
0.018868
0.305677
229
8
46
28.625
0.748428
0
0
0
0
0
0.09607
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
1
0
0
null
0
1
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
1
0
0
0
4
5a6bef67e0f6cabf862028e8f084f5c9bf5c92fd
1,866
py
Python
src/sdk/test/test_departments_api.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/sdk/test/test_departments_api.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/sdk/test/test_departments_api.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
1
2021-12-31T06:48:41.000Z
2021-12-31T06:48:41.000Z
# coding: utf-8 """ 蓝鲸用户管理 API User management APIs for BlueKing # noqa: E501 OpenAPI spec version: v2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import bkuser_sdk from api.departments_api import DepartmentsApi # noqa: E501 from bkuser_sdk.rest import ApiException class TestDepartmentsApi(unittest.TestCase): """DepartmentsApi unit test stubs""" def setUp(self): self.api = api.departments_api.DepartmentsApi() # noqa: E501 def tearDown(self): pass def test_v2_departments_create(self): """Test case for v2_departments_create """ pass def test_v2_departments_delete(self): """Test case for v2_departments_delete """ pass def test_v2_departments_get_ancestor(self): """Test case for v2_departments_get_ancestor """ pass def test_v2_departments_get_children(self): """Test case for v2_departments_get_children """ pass def test_v2_departments_list(self): """Test case for v2_departments_list """ pass def test_v2_departments_partial_update(self): """Test case for v2_departments_partial_update """ pass def test_v2_departments_profiles_create(self): """Test case for v2_departments_profiles_create """ pass def test_v2_departments_profiles_read(self): """Test case for v2_departments_profiles_read """ pass def test_v2_departments_read(self): """Test case for v2_departments_read """ pass def test_v2_departments_update(self): """Test case for v2_departments_update """ pass if __name__ == '__main__': unittest.main()
19.851064
69
0.646838
218
1,866
5.183486
0.275229
0.230089
0.097345
0.115044
0.545133
0.481416
0.246018
0
0
0
0
0.022878
0.273848
1,866
93
70
20.064516
0.81107
0.381029
0
0.34375
1
0
0.007477
0
0
0
0
0
0
1
0.375
false
0.34375
0.15625
0
0.5625
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
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
ce61510d8c00c9697a583f3cdcd3a74d64f5d579
407
py
Python
src/test/python/fixtures/proc_class.py
raduteo/illumon-jpy
370b0d8cc7a286c615fea2daac47ec9aa101ea26
[ "Apache-2.0" ]
null
null
null
src/test/python/fixtures/proc_class.py
raduteo/illumon-jpy
370b0d8cc7a286c615fea2daac47ec9aa101ea26
[ "Apache-2.0" ]
1
2019-05-01T16:28:34.000Z
2019-05-01T16:28:34.000Z
src/test/python/fixtures/proc_class.py
raduteo/illumon-jpy
370b0d8cc7a286c615fea2daac47ec9aa101ea26
[ "Apache-2.0" ]
5
2018-04-26T20:15:09.000Z
2020-05-25T22:05:55.000Z
class Processor: def __init__(self): pass def initialize(self): return 'initialize' def computeTile(self, x, y, array): self.spend_some_time() return 'computeTile-' + str(x) + ',' + str(y) def dispose(self): return 'dispose' def spend_some_time(self): l = list(range(10000)) for i in range(10000): l.reverse()
16.958333
53
0.547912
48
407
4.479167
0.520833
0.093023
0.12093
0
0
0
0
0
0
0
0
0.03663
0.329238
407
23
54
17.695652
0.750916
0
0
0
0
0
0.074257
0
0
0
0
0
0
1
0.357143
false
0.071429
0
0.142857
0.642857
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
1
1
0
0
4
ce69d5a2dfc778108392a0dc32519817c9f41b42
163
py
Python
webdbpress60/scope/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
48
2015-02-05T15:25:47.000Z
2022-01-07T05:52:03.000Z
webdbpress60/scope/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
null
null
null
webdbpress60/scope/test.py
zhao-embassy/learn_language
2719f27dea1877ba1da32f1c1d53ebedd5a81fdf
[ "FSFAP" ]
21
2015-02-12T23:50:10.000Z
2019-12-12T08:25:35.000Z
from coderunner import test, Perl, main test(Perl, "dynamic.pl", """ yobu-local """, is_file=True) test(Perl, "static.pl", """ global """, is_file=True) main()
13.583333
39
0.650307
24
163
4.333333
0.625
0.230769
0.192308
0
0
0
0
0
0
0
0
0
0.134969
163
11
40
14.818182
0.737589
0
0
0.25
0
0
0.239264
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
1
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
1
0
0
0
0
0
0
4
ce80347dcb2eb1481b7f9b8edc38e9eba6ef3e23
88
py
Python
nyoka/PMML44/behaviors/insNeuron.py
maxibor/nyoka
19f480eee608035aa5fba368c96d4143bc2f5710
[ "Apache-2.0" ]
71
2020-08-24T07:59:56.000Z
2022-03-21T08:36:35.000Z
nyoka/PMML43Ext/behaviors/insNeuron.py
Chiragasourabh/nyoka
44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0
[ "Apache-2.0" ]
16
2020-09-02T10:27:36.000Z
2022-03-31T05:37:12.000Z
nyoka/PMML43Ext/behaviors/insNeuron.py
Chiragasourabh/nyoka
44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0
[ "Apache-2.0" ]
16
2020-09-17T15:01:33.000Z
2022-03-28T03:13:25.000Z
self.Neuron.insert(index, value) self.numberOfNeurons = len(self.Neuron)
44
47
0.659091
10
88
5.8
0.7
0.344828
0
0
0
0
0
0
0
0
0
0
0.227273
88
2
47
44
0.852941
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
1
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
1
0
0
0
0
0
0
0
0
4
ce821368d5bce8d1db2093c808ceb6a76a6a2745
1,572
py
Python
cool_certificate/views.py
vra/cool_certificate
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
[ "MIT" ]
1
2019-08-19T01:48:18.000Z
2019-08-19T01:48:18.000Z
cool_certificate/views.py
vra/cool_certificate
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
[ "MIT" ]
null
null
null
cool_certificate/views.py
vra/cool_certificate
a1ea59149b90b8633d0382f5e3fa40cabb2cead2
[ "MIT" ]
null
null
null
# coding: utf-8 from django.http import HttpResponse from django.shortcuts import render_to_response from django.template import RequestContext #import request import create_certificates from forms import * def index(request): return render_to_response('index.html') def feiji(request): if request.method == "POST": form = NameForm(request.POST) if form.is_valid(): name = request.POST['name'] create_certificates.feiji(name); return render_to_response('feiji.html', {'form':form, 'done':1}, context_instance=RequestContext(request)) else: form = NameForm() return render_to_response('feiji.html', {'form':form, 'done':0}, context_instance=RequestContext(request)) def chaojishuaige(request): if request.method == "POST": form = NameForm(request.POST) if form.is_valid(): name = request.POST['name'] create_certificates.chaojishuaige(name); return render_to_response('chaojishuaige.html', {'form':form, 'done':1}, context_instance=RequestContext(request)) else: form = NameForm() return render_to_response('chaojishuaige.html', {'form':form, 'done':0}, context_instance=RequestContext(request)) def qianshui(request): if request.method == "POST": form = NameForm(request.POST) if form.is_valid(): name = request.POST['name'] create_certificates.qianshui(name); return render_to_response('qianshui.html', {'form':form, 'done':1}, context_instance=RequestContext(request)) else: form = NameForm() return render_to_response('qianshui.html', {'form':form, 'done':0}, context_instance=RequestContext(request))
32.75
117
0.743003
199
1,572
5.723618
0.19598
0.05619
0.112379
0.135206
0.759438
0.748903
0.748903
0.748903
0.748903
0.598771
0
0.005032
0.11514
1,572
47
118
33.446809
0.813803
0.017176
0
0.486486
0
0
0.106355
0
0
0
0
0
0
1
0.108108
false
0
0.135135
0.027027
0.432432
0
0
0
0
null
0
0
0
0
1
1
1
1
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
4
ce8e6efbc9a2cb260e843bd0fd5d833ff86909bc
1,768
py
Python
codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
from main import mxdiflg s1 = ["hoqq", "bbllkw", "oox", "ejjuyyy", "plmiis", "xxxzgpsssa", "xxwwkktt", "znnnnfqknaz", "qqquuhii", "dvvvwz"] s2 = ["cccooommaaqqoxii", "gggqaffhhh", "tttoowwwmmww"] def test(benchmark): assert benchmark(mxdiflg, s1, s2) == 13 def test2(benchmark): assert benchmark(mxdiflg, s1, s2) == 13 ''''''''' ----------------------------------------------------------------------------------- benchmark: 2 tests ---------------------------------------------------------------------------------- Name (time in us) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test2 1.5680 (1.0) 14.5567 (1.0) 1.6544 (1.0) 0.2915 (1.0) 1.6000 (1.0) 0.0470 (1.0) 4665;18920 604.4431 (1.0) 178604 3 test 1.6260 (1.04) 32.2320 (2.21) 1.7490 (1.06) 0.5048 (1.73) 1.6840 (1.05) 0.0500 (1.06) 2163;5781 571.7588 (0.95) 126663 1 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean ============================================================================ 2 passed in 3.54 seconds ======================= '''''''''''
63.142857
185
0.341629
154
1,768
3.922078
0.61039
0.023179
0.07947
0.102649
0.122517
0.122517
0.122517
0
0
0
0
0.118364
0.211538
1,768
27
186
65.481481
0.314921
0
0
0.210526
0
0.210526
0.862656
0.359818
0
0
0
0
0.105263
1
0.105263
false
0.052632
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
cec439decc3ce870db5e45f5d8fa25bce71db95d
2,803
py
Python
kids_math/img.py
crvernon/kids_math
7975d87de9a4fe951ae345bb6ef9167bca236d4e
[ "MIT" ]
null
null
null
kids_math/img.py
crvernon/kids_math
7975d87de9a4fe951ae345bb6ef9167bca236d4e
[ "MIT" ]
null
null
null
kids_math/img.py
crvernon/kids_math
7975d87de9a4fe951ae345bb6ef9167bca236d4e
[ "MIT" ]
null
null
null
import pkg_resources from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" from IPython import display # class ImageQueue: # # # https://www.google.com/url?sa=i&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FRecycling_symbol&psig=AOvVaw2GNY83bu2O5H-QsZthasM5&ust=1585754401094000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCIiP8s-BxegCFQAAAAAdAAAAABAG # RECYCLE = pkg_resources.resource_filename('kids_math', '/img/recycle.png') # # # https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.playprelude.com%2Fthe-star-enduring-symbol-of-excellence%2F&psig=AOvVaw1LADueQERSmgmCS2yccUr1&ust=1585755157140000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCLCQsLqExegCFQAAAAAdAAAAABAD # STAR = pkg_resources.resource_filename('kids_math', '/img/star.jpeg') # # # https://www.google.com/url?sa=i&url=https%3A%2F%2Fpngimage.net%2Frectangle-black-png-2%2F&psig=AOvVaw1B-XrUOJkruAPEbWn0OKp9&ust=1585755215178000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCODOs9qExegCFQAAAAAdAAAAABAH # RECTANGLE = pkg_resources.resource_filename('kids_math', '/img/rectangle.png') # # # https://www.google.com/url?sa=i&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FConcave_polygon&psig=AOvVaw1eDb0BuktqWcCHy76p-IXK&ust=1585755302231000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCKiz4IOFxegCFQAAAAAdAAAAABAD # CONCAVE_POLYGON = pkg_resources.resource_filename('kids_math', '/img/concave_polygon.png') # # # https://www.google.com/url?sa=i&url=https%3A%2F%2Fetc.usf.edu%2Fclipart%2F42600%2F42616%2Firreghept_42616.htm&psig=AOvVaw0zPqcjZVCB3_DadMrAASSA&ust=1585755383000000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCMDM46iFxegCFQAAAAAdAAAAABAI # IRREGULAR_POLYGON = pkg_resources.resource_filename('kids_math', '/img/irregular_polygon.gif') # # @staticmethod # def display_img(img): # """Display image # # :param img: string; Full path with file name and extension to the desired image # # """ # with open(img, 'rb') as f: # return display.Image(data=f.read(), format='png') class RabbitImg: # https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.pinterest.com%2Fpin%2F559783428674901803%2F&psig=AOvVaw2_nraiVWQeMHhkEa2IR3K3&ust=1585677594411000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCPDxnsLjwugCFQAAAAAdAAAAABAO RUNNING = pkg_resources.resource_filename('kids_math', '/img/rabbit_running.jpeg') # https://www.google.com/url?sa=i&url=https%3A%2F%2Fthenounproject.com%2Fterm%2Frabbit%2F29549%2F&psig=AOvVaw2_nraiVWQeMHhkEa2IR3K3&ust=1585677594411000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCPDxnsLjwugCFQAAAAAdAAAAABAa SITTING = pkg_resources.resource_filename('kids_math', '/img/rabbit_sitting.png') def display_img(self): """Fill in.""" pass
56.06
243
0.766322
344
2,803
6.133721
0.389535
0.045498
0.046446
0.056398
0.407109
0.359716
0.359716
0.304265
0.218009
0.218009
0
0.090945
0.101677
2,803
49
244
57.204082
0.747021
0.828755
0
0
0
0
0.154195
0.106576
0
0
0
0
0
1
0.111111
false
0.111111
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
cecda859b56efa5ee220b03384762881b3f36b48
141
py
Python
utils.py
tannerbohn/NeuralAntArt
3a43833dc36698def435c57dbd6c99cdb6e20f99
[ "MIT" ]
2
2018-05-28T17:26:42.000Z
2022-03-13T01:34:12.000Z
utils.py
tannerbohn/NeuralAntArt
3a43833dc36698def435c57dbd6c99cdb6e20f99
[ "MIT" ]
null
null
null
utils.py
tannerbohn/NeuralAntArt
3a43833dc36698def435c57dbd6c99cdb6e20f99
[ "MIT" ]
null
null
null
def clip(m, M, val): return min(max(val, m), M) def toHex(cvec): rgb = tuple([int(255*v) for v in cvec]) return '#%02x%02x%02x' % rgb
14.1
40
0.595745
28
141
3
0.607143
0.047619
0
0
0
0
0
0
0
0
0
0.079646
0.198582
141
10
41
14.1
0.663717
0
0
0
0
0
0.092857
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
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
1
0
0
0
1
1
0
0
4
ced6eb4cd4bf53b04e432905ca7c5fdbc6e4b524
234
py
Python
Ubot/core/methods/messages/__init__.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
1
2022-01-04T11:36:06.000Z
2022-01-04T11:36:06.000Z
Ubot/core/methods/messages/__init__.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
1
2022-01-08T20:18:50.000Z
2022-01-08T20:18:50.000Z
Ubot/core/methods/messages/__init__.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
3
2022-01-08T20:10:47.000Z
2022-03-12T08:09:32.000Z
__all__ = ['Messages'] from .send_message import SendMessage from .edit_message_text import EditMessageText from .send_as_file import SendAsFile class Messages(SendMessage, EditMessageText, SendAsFile): """ methods.messages """
26
57
0.794872
26
234
6.807692
0.576923
0.090395
0
0
0
0
0
0
0
0
0
0
0.119658
234
9
58
26
0.859223
0.068376
0
0
0
0
0.037915
0
0
0
0
0
0
1
0
false
0
0.6
0
0.8
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
1
0
1
0
0
4
0cb4c3744ffaf8733025aa0ac7ec3d03e082eec6
273
py
Python
Ex021.py
dpsaraiva/Exercicios_Python
d325df344a37126a1b9c68a21dfa2fff9ca8a3d6
[ "MIT" ]
null
null
null
Ex021.py
dpsaraiva/Exercicios_Python
d325df344a37126a1b9c68a21dfa2fff9ca8a3d6
[ "MIT" ]
null
null
null
Ex021.py
dpsaraiva/Exercicios_Python
d325df344a37126a1b9c68a21dfa2fff9ca8a3d6
[ "MIT" ]
null
null
null
#Desafio:Faça um programa em Python que abra e reproduza um arquivo de mp3. #import pygame #pygame.mixer.init() #pygame.mixer.music.load('Ex021.mp3') #pygame.mixer.music.play() #while(pygame.mixer.music.get_busy()): pass import playsound playsound.playsound('Ex021.mp3')
24.818182
75
0.765568
42
273
4.952381
0.619048
0.211538
0.230769
0
0
0
0
0
0
0
0
0.03629
0.091575
273
10
76
27.3
0.802419
0.765568
0
0
0
0
0.155172
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
0ce3e6638f98b21fb56f7d6c625bbba422fb78c7
42
py
Python
tests/res/script-blank.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
9
2020-05-11T08:13:12.000Z
2022-01-20T11:35:14.000Z
tests/res/script-blank.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
77
2019-02-22T07:34:58.000Z
2022-02-23T15:32:34.000Z
tests/res/script-blank.py
mate-code/alfred
e687e9318ecefe3a49565027841ca8d910647978
[ "MIT" ]
6
2020-11-11T16:51:04.000Z
2022-02-21T10:29:02.000Z
import alfred3 as al exp = al.Experiment()
21
21
0.761905
7
42
4.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.027778
0.142857
42
2
21
21
0.861111
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
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
1
0
0
0
0
4
0cee5c24b4cef1d074e9aae10695cb6a9f855498
144
py
Python
api/beers/apps.py
haavardnk/Vinmonopolet-x-Untappd
950db7201593d7b94daf091884949aed4377d4ca
[ "MIT" ]
null
null
null
api/beers/apps.py
haavardnk/Vinmonopolet-x-Untappd
950db7201593d7b94daf091884949aed4377d4ca
[ "MIT" ]
null
null
null
api/beers/apps.py
haavardnk/Vinmonopolet-x-Untappd
950db7201593d7b94daf091884949aed4377d4ca
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BeersConfig(AppConfig): name = "beers" def ready(self): import beers.signals
16
34
0.645833
16
144
5.8125
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.277778
144
8
35
18
0.894231
0
0
0
0
0
0.036765
0
0
0
0
0
0
1
0.2
false
0
0.4
0
1
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
1
0
1
0
0
4
0cfc1fac1522c6ffa5f1a3e68b857ac8afc6d51c
190
py
Python
gluoncv/model_zoo/rpn/__init__.py
Angzz/gluon-cv-fpn
fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec
[ "Apache-2.0" ]
10
2019-01-16T10:08:37.000Z
2022-02-23T06:13:30.000Z
gluoncv/model_zoo/rpn/__init__.py
Angzz/gluon-cv-fpn
fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec
[ "Apache-2.0" ]
1
2019-01-18T06:42:59.000Z
2019-01-18T12:26:11.000Z
gluoncv/model_zoo/rpn/__init__.py
Angzz/gluon-cv-fpn
fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec
[ "Apache-2.0" ]
1
2019-08-30T12:03:58.000Z
2019-08-30T12:03:58.000Z
"""Region Proposal Network.""" from __future__ import absolute_import from .rpn import RPN from . import bbox_clip from .anchor import RPNAnchorGenerator from .proposal import RPNProposal
21.111111
38
0.810526
24
190
6.166667
0.541667
0
0
0
0
0
0
0
0
0
0
0
0.131579
190
8
39
23.75
0.89697
0.126316
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
4
0b40abb16bcbd7f9351819a8ea4750af8a312e44
36,049
py
Python
src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py
name212/GrammarEngine
1912809d6a19977c9d2fff88279b76a6152b659d
[ "MIT" ]
55
2015-04-11T17:39:27.000Z
2022-01-07T17:52:22.000Z
src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py
name212/GrammarEngine
1912809d6a19977c9d2fff88279b76a6152b659d
[ "MIT" ]
17
2017-11-22T13:31:11.000Z
2021-06-06T08:30:43.000Z
src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py
qwazer/GrammarEngine
08e1eb7bdfd77f29a51a7063848d74b9171291c4
[ "MIT" ]
28
2015-05-21T08:27:31.000Z
2022-02-24T21:42:36.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.4 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_desr', [dirname(__file__)]) except ImportError: import _desr return _desr if fp is not None: try: _mod = imp.load_module('_desr', fp, pathname, description) finally: fp.close() return _mod _desr = swig_import_helper() del swig_import_helper else: import _desr del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _desr.delete_SwigPyIterator __del__ = lambda self : None; def value(self): return _desr.SwigPyIterator_value(self) def incr(self, n = 1): return _desr.SwigPyIterator_incr(self, n) def decr(self, n = 1): return _desr.SwigPyIterator_decr(self, n) def distance(self, *args): return _desr.SwigPyIterator_distance(self, *args) def equal(self, *args): return _desr.SwigPyIterator_equal(self, *args) def copy(self): return _desr.SwigPyIterator_copy(self) def next(self): return _desr.SwigPyIterator_next(self) def __next__(self): return _desr.SwigPyIterator___next__(self) def previous(self): return _desr.SwigPyIterator_previous(self) def advance(self, *args): return _desr.SwigPyIterator_advance(self, *args) def __eq__(self, *args): return _desr.SwigPyIterator___eq__(self, *args) def __ne__(self, *args): return _desr.SwigPyIterator___ne__(self, *args) def __iadd__(self, *args): return _desr.SwigPyIterator___iadd__(self, *args) def __isub__(self, *args): return _desr.SwigPyIterator___isub__(self, *args) def __add__(self, *args): return _desr.SwigPyIterator___add__(self, *args) def __sub__(self, *args): return _desr.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _desr.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) class ios_base(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ios_base, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ios_base, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr erase_event = _desr.ios_base_erase_event imbue_event = _desr.ios_base_imbue_event copyfmt_event = _desr.ios_base_copyfmt_event def register_callback(self, *args): return _desr.ios_base_register_callback(self, *args) def flags(self, *args): return _desr.ios_base_flags(self, *args) def setf(self, *args): return _desr.ios_base_setf(self, *args) def unsetf(self, *args): return _desr.ios_base_unsetf(self, *args) def precision(self, *args): return _desr.ios_base_precision(self, *args) def width(self, *args): return _desr.ios_base_width(self, *args) __swig_getmethods__["sync_with_stdio"] = lambda x: _desr.ios_base_sync_with_stdio if _newclass:sync_with_stdio = staticmethod(_desr.ios_base_sync_with_stdio) def imbue(self, *args): return _desr.ios_base_imbue(self, *args) def getloc(self): return _desr.ios_base_getloc(self) __swig_getmethods__["xalloc"] = lambda x: _desr.ios_base_xalloc if _newclass:xalloc = staticmethod(_desr.ios_base_xalloc) def iword(self, *args): return _desr.ios_base_iword(self, *args) def pword(self, *args): return _desr.ios_base_pword(self, *args) __swig_destroy__ = _desr.delete_ios_base __del__ = lambda self : None; ios_base_swigregister = _desr.ios_base_swigregister ios_base_swigregister(ios_base) cvar = _desr.cvar ios_base.boolalpha = _desr.cvar.ios_base_boolalpha ios_base.dec = _desr.cvar.ios_base_dec ios_base.fixed = _desr.cvar.ios_base_fixed ios_base.hex = _desr.cvar.ios_base_hex ios_base.internal = _desr.cvar.ios_base_internal ios_base.left = _desr.cvar.ios_base_left ios_base.oct = _desr.cvar.ios_base_oct ios_base.right = _desr.cvar.ios_base_right ios_base.scientific = _desr.cvar.ios_base_scientific ios_base.showbase = _desr.cvar.ios_base_showbase ios_base.showpoint = _desr.cvar.ios_base_showpoint ios_base.showpos = _desr.cvar.ios_base_showpos ios_base.skipws = _desr.cvar.ios_base_skipws ios_base.unitbuf = _desr.cvar.ios_base_unitbuf ios_base.uppercase = _desr.cvar.ios_base_uppercase ios_base.adjustfield = _desr.cvar.ios_base_adjustfield ios_base.basefield = _desr.cvar.ios_base_basefield ios_base.floatfield = _desr.cvar.ios_base_floatfield ios_base.badbit = _desr.cvar.ios_base_badbit ios_base.eofbit = _desr.cvar.ios_base_eofbit ios_base.failbit = _desr.cvar.ios_base_failbit ios_base.goodbit = _desr.cvar.ios_base_goodbit ios_base.app = _desr.cvar.ios_base_app ios_base.ate = _desr.cvar.ios_base_ate ios_base.binary = _desr.cvar.ios_base_binary ios_base.ios_base_in = _desr.cvar.ios_base_ios_base_in ios_base.out = _desr.cvar.ios_base_out ios_base.trunc = _desr.cvar.ios_base_trunc ios_base.beg = _desr.cvar.ios_base_beg ios_base.cur = _desr.cvar.ios_base_cur ios_base.end = _desr.cvar.ios_base_end def ios_base_sync_with_stdio(__sync = True): return _desr.ios_base_sync_with_stdio(__sync) ios_base_sync_with_stdio = _desr.ios_base_sync_with_stdio def ios_base_xalloc(): return _desr.ios_base_xalloc() ios_base_xalloc = _desr.ios_base_xalloc class ios(ios_base): __swig_setmethods__ = {} for _s in [ios_base]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ios, name, value) __swig_getmethods__ = {} for _s in [ios_base]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ios, name) __repr__ = _swig_repr def rdstate(self): return _desr.ios_rdstate(self) def clear(self, *args): return _desr.ios_clear(self, *args) def setstate(self, *args): return _desr.ios_setstate(self, *args) def good(self): return _desr.ios_good(self) def eof(self): return _desr.ios_eof(self) def fail(self): return _desr.ios_fail(self) def bad(self): return _desr.ios_bad(self) def exceptions(self, *args): return _desr.ios_exceptions(self, *args) def __init__(self, *args): this = _desr.new_ios(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_ios __del__ = lambda self : None; def tie(self, *args): return _desr.ios_tie(self, *args) def rdbuf(self, *args): return _desr.ios_rdbuf(self, *args) def copyfmt(self, *args): return _desr.ios_copyfmt(self, *args) def fill(self, *args): return _desr.ios_fill(self, *args) def imbue(self, *args): return _desr.ios_imbue(self, *args) def narrow(self, *args): return _desr.ios_narrow(self, *args) def widen(self, *args): return _desr.ios_widen(self, *args) ios_swigregister = _desr.ios_swigregister ios_swigregister(ios) class ostream(ios): __swig_setmethods__ = {} for _s in [ios]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ostream, name, value) __swig_getmethods__ = {} for _s in [ios]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ostream, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_ostream(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_ostream __del__ = lambda self : None; def __lshift__(self, *args): return _desr.ostream___lshift__(self, *args) def put(self, *args): return _desr.ostream_put(self, *args) def write(self, *args): return _desr.ostream_write(self, *args) def flush(self): return _desr.ostream_flush(self) def tellp(self): return _desr.ostream_tellp(self) def seekp(self, *args): return _desr.ostream_seekp(self, *args) ostream_swigregister = _desr.ostream_swigregister ostream_swigregister(ostream) cin = cvar.cin cout = cvar.cout cerr = cvar.cerr clog = cvar.clog class istream(ios): __swig_setmethods__ = {} for _s in [ios]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, istream, name, value) __swig_getmethods__ = {} for _s in [ios]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, istream, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_istream(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_istream __del__ = lambda self : None; def __rshift__(self, *args): return _desr.istream___rshift__(self, *args) def gcount(self): return _desr.istream_gcount(self) def get(self, *args): return _desr.istream_get(self, *args) def getline(self, *args): return _desr.istream_getline(self, *args) def ignore(self, *args): return _desr.istream_ignore(self, *args) def peek(self): return _desr.istream_peek(self) def read(self, *args): return _desr.istream_read(self, *args) def readsome(self, *args): return _desr.istream_readsome(self, *args) def putback(self, *args): return _desr.istream_putback(self, *args) def unget(self): return _desr.istream_unget(self) def sync(self): return _desr.istream_sync(self) def tellg(self): return _desr.istream_tellg(self) def seekg(self, *args): return _desr.istream_seekg(self, *args) istream_swigregister = _desr.istream_swigregister istream_swigregister(istream) class iostream(istream,ostream): __swig_setmethods__ = {} for _s in [istream,ostream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, iostream, name, value) __swig_getmethods__ = {} for _s in [istream,ostream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, iostream, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_iostream(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_iostream __del__ = lambda self : None; iostream_swigregister = _desr.iostream_swigregister iostream_swigregister(iostream) endl_cb_ptr = _desr.endl_cb_ptr def endl(*args): return _desr.endl(*args) endl = _desr.endl ends_cb_ptr = _desr.ends_cb_ptr def ends(*args): return _desr.ends(*args) ends = _desr.ends flush_cb_ptr = _desr.flush_cb_ptr def flush(*args): return _desr.flush(*args) flush = _desr.flush class ifstream(istream): __swig_setmethods__ = {} for _s in [istream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ifstream, name, value) __swig_getmethods__ = {} for _s in [istream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ifstream, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_ifstream(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_ifstream __del__ = lambda self : None; ifstream_swigregister = _desr.ifstream_swigregister ifstream_swigregister(ifstream) class ofstream(istream): __swig_setmethods__ = {} for _s in [istream]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ofstream, name, value) __swig_getmethods__ = {} for _s in [istream]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ofstream, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_ofstream(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_ofstream __del__ = lambda self : None; ofstream_swigregister = _desr.ofstream_swigregister ofstream_swigregister(ofstream) class Disposable(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Disposable, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Disposable, name) __repr__ = _swig_repr def Dispose(self): return _desr.Disposable_Dispose(self) def __init__(self): this = _desr.new_Disposable() try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_Disposable __del__ = lambda self : None; Disposable_swigregister = _desr.Disposable_swigregister Disposable_swigregister(Disposable) class RefCountable(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, RefCountable, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, RefCountable, name) __repr__ = _swig_repr def __init__(self): this = _desr.new_RefCountable() try: self.this.append(this) except: self.this = this __swig_setmethods__["refCount"] = _desr.RefCountable_refCount_set __swig_getmethods__["refCount"] = _desr.RefCountable_refCount_get if _newclass:refCount = _swig_property(_desr.RefCountable_refCount_get, _desr.RefCountable_refCount_set) def incRef(self): return _desr.RefCountable_incRef(self) def decRef(self): return _desr.RefCountable_decRef(self) __swig_destroy__ = _desr.delete_RefCountable __del__ = lambda self : None; RefCountable_swigregister = _desr.RefCountable_swigregister RefCountable_swigregister(RefCountable) class VectorToken(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VectorToken, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VectorToken, name) def iterator(self): return _desr.VectorToken_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _desr.VectorToken___nonzero__(self) def __bool__(self): return _desr.VectorToken___bool__(self) def __len__(self): return _desr.VectorToken___len__(self) def pop(self): return _desr.VectorToken_pop(self) def __getslice__(self, *args): return _desr.VectorToken___getslice__(self, *args) def __setslice__(self, *args): return _desr.VectorToken___setslice__(self, *args) def __delslice__(self, *args): return _desr.VectorToken___delslice__(self, *args) def __delitem__(self, *args): return _desr.VectorToken___delitem__(self, *args) def __getitem__(self, *args): return _desr.VectorToken___getitem__(self, *args) def __setitem__(self, *args): return _desr.VectorToken___setitem__(self, *args) def append(self, *args): return _desr.VectorToken_append(self, *args) def empty(self): return _desr.VectorToken_empty(self) def size(self): return _desr.VectorToken_size(self) def clear(self): return _desr.VectorToken_clear(self) def swap(self, *args): return _desr.VectorToken_swap(self, *args) def get_allocator(self): return _desr.VectorToken_get_allocator(self) def begin(self): return _desr.VectorToken_begin(self) def end(self): return _desr.VectorToken_end(self) def rbegin(self): return _desr.VectorToken_rbegin(self) def rend(self): return _desr.VectorToken_rend(self) def pop_back(self): return _desr.VectorToken_pop_back(self) def erase(self, *args): return _desr.VectorToken_erase(self, *args) def __init__(self, *args): this = _desr.new_VectorToken(*args) try: self.this.append(this) except: self.this = this def push_back(self, *args): return _desr.VectorToken_push_back(self, *args) def front(self): return _desr.VectorToken_front(self) def back(self): return _desr.VectorToken_back(self) def assign(self, *args): return _desr.VectorToken_assign(self, *args) def resize(self, *args): return _desr.VectorToken_resize(self, *args) def insert(self, *args): return _desr.VectorToken_insert(self, *args) def reserve(self, *args): return _desr.VectorToken_reserve(self, *args) def capacity(self): return _desr.VectorToken_capacity(self) def __repr__(self): return _desr.VectorToken___repr__(self) __swig_destroy__ = _desr.delete_VectorToken __del__ = lambda self : None; VectorToken_swigregister = _desr.VectorToken_swigregister VectorToken_swigregister(VectorToken) class AttributeIndex(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, AttributeIndex, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, AttributeIndex, name) __repr__ = _swig_repr def insert(self, *args): return _desr.AttributeIndex_insert(self, *args) __swig_setmethods__["names"] = _desr.AttributeIndex_names_set __swig_getmethods__["names"] = _desr.AttributeIndex_names_get if _newclass:names = _swig_property(_desr.AttributeIndex_names_get, _desr.AttributeIndex_names_set) def __init__(self): this = _desr.new_AttributeIndex() try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_AttributeIndex __del__ = lambda self : None; AttributeIndex_swigregister = _desr.AttributeIndex_swigregister AttributeIndex_swigregister(AttributeIndex) class Language(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Language, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Language, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_Language(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _desr.delete_Language __del__ = lambda self : None; Language_swigregister = _desr.Language_swigregister Language_swigregister(Language) class Corpus(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Corpus, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Corpus, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_Corpus(*args) try: self.this.append(this) except: self.this = this __swig_getmethods__["create"] = lambda x: _desr.Corpus_create if _newclass:create = staticmethod(_desr.Corpus_create) def sentenceReader(self, *args): return _desr.Corpus_sentenceReader(self, *args) def toString(self, *args): return _desr.Corpus_toString(self, *args) __swig_setmethods__["index"] = _desr.Corpus_index_set __swig_getmethods__["index"] = _desr.Corpus_index_get if _newclass:index = _swig_property(_desr.Corpus_index_get, _desr.Corpus_index_set) __swig_destroy__ = _desr.delete_Corpus __del__ = lambda self : None; Corpus_swigregister = _desr.Corpus_swigregister Corpus_swigregister(Corpus) def Corpus_create(*args): return _desr.Corpus_create(*args) Corpus_create = _desr.Corpus_create class Attributes(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Attributes, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Attributes, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_Attributes(*args) try: self.this.append(this) except: self.this = this def get(self, *args): return _desr.Attributes_get(self, *args) def index(self, *args): return _desr.Attributes_index(self, *args) def insert(self, *args): return _desr.Attributes_insert(self, *args) __swig_destroy__ = _desr.delete_Attributes __del__ = lambda self : None; Attributes_swigregister = _desr.Attributes_swigregister Attributes_swigregister(Attributes) class TokenLink(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, TokenLink, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, TokenLink, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_TokenLink(*args) try: self.this.append(this) except: self.this = this __swig_setmethods__["head"] = _desr.TokenLink_head_set __swig_getmethods__["head"] = _desr.TokenLink_head_get if _newclass:head = _swig_property(_desr.TokenLink_head_get, _desr.TokenLink_head_set) __swig_setmethods__["label"] = _desr.TokenLink_label_set __swig_getmethods__["label"] = _desr.TokenLink_label_get if _newclass:label = _swig_property(_desr.TokenLink_label_get, _desr.TokenLink_label_set) __swig_destroy__ = _desr.delete_TokenLink __del__ = lambda self : None; TokenLink_swigregister = _desr.TokenLink_swigregister TokenLink_swigregister(TokenLink) class Tag(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Tag, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Tag, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_Tag(*args) try: self.this.append(this) except: self.this = this def open(self): return _desr.Tag_open(self) def close(self): return _desr.Tag_close(self) __swig_setmethods__["name"] = _desr.Tag_name_set __swig_getmethods__["name"] = _desr.Tag_name_get if _newclass:name = _swig_property(_desr.Tag_name_get, _desr.Tag_name_set) def __getitem__(self, *args): return _desr.Tag___getitem__(self, *args) def __setitem__(self, *args): return _desr.Tag___setitem__(self, *args) __swig_destroy__ = _desr.delete_Tag __del__ = lambda self : None; Tag_swigregister = _desr.Tag_swigregister Tag_swigregister(Tag) class Context(RefCountable): __swig_setmethods__ = {} for _s in [RefCountable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Context, name, value) __swig_getmethods__ = {} for _s in [RefCountable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Context, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_Context(*args) try: self.this.append(this) except: self.this = this __swig_setmethods__["tag"] = _desr.Context_tag_set __swig_getmethods__["tag"] = _desr.Context_tag_get if _newclass:tag = _swig_property(_desr.Context_tag_get, _desr.Context_tag_set) __swig_setmethods__["parent"] = _desr.Context_parent_set __swig_getmethods__["parent"] = _desr.Context_parent_get if _newclass:parent = _swig_property(_desr.Context_parent_get, _desr.Context_parent_set) def __eq__(self, *args): return _desr.Context___eq__(self, *args) def __ne__(self, *args): return _desr.Context___ne__(self, *args) __swig_destroy__ = _desr.delete_Context __del__ = lambda self : None; Context_swigregister = _desr.Context_swigregister Context_swigregister(Context) class Token(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Token, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Token, name) def __init__(self, *args): this = _desr.new_Token(*args) try: self.this.append(this) except: self.this = this def attrIndex(self, *args): return _desr.Token_attrIndex(self, *args) __swig_setmethods__["form"] = _desr.Token_form_set __swig_getmethods__["form"] = _desr.Token_form_get if _newclass:form = _swig_property(_desr.Token_form_get, _desr.Token_form_set) __swig_setmethods__["attributes"] = _desr.Token_attributes_set __swig_getmethods__["attributes"] = _desr.Token_attributes_get if _newclass:attributes = _swig_property(_desr.Token_attributes_get, _desr.Token_attributes_set) __swig_setmethods__["links"] = _desr.Token_links_set __swig_getmethods__["links"] = _desr.Token_links_get if _newclass:links = _swig_property(_desr.Token_links_get, _desr.Token_links_set) def context(self): return _desr.Token_context(self) def __repr__(self): return _desr.Token___repr__(self) def __setitem__(self, *args): return _desr.Token___setitem__(self, *args) def __getitem__(self, *args): return _desr.Token___getitem__(self, *args) __swig_destroy__ = _desr.delete_Token __del__ = lambda self : None; Token_swigregister = _desr.Token_swigregister Token_swigregister(Token) class TreeToken(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, TreeToken, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, TreeToken, name) def __init__(self, *args): this = _desr.new_TreeToken(*args) try: self.this.append(this) except: self.this = this __swig_setmethods__["token"] = _desr.TreeToken_token_set __swig_getmethods__["token"] = _desr.TreeToken_token_get if _newclass:token = _swig_property(_desr.TreeToken_token_get, _desr.TreeToken_token_set) __swig_setmethods__["id"] = _desr.TreeToken_id_set __swig_getmethods__["id"] = _desr.TreeToken_id_get if _newclass:id = _swig_property(_desr.TreeToken_id_get, _desr.TreeToken_id_set) __swig_setmethods__["left"] = _desr.TreeToken_left_set __swig_getmethods__["left"] = _desr.TreeToken_left_get if _newclass:left = _swig_property(_desr.TreeToken_left_get, _desr.TreeToken_left_set) __swig_setmethods__["right"] = _desr.TreeToken_right_set __swig_getmethods__["right"] = _desr.TreeToken_right_get if _newclass:right = _swig_property(_desr.TreeToken_right_get, _desr.TreeToken_right_set) def form(self): return _desr.TreeToken_form(self) def get(self, *args): return _desr.TreeToken_get(self, *args) def set(self, *args): return _desr.TreeToken_set(self, *args) def linkHead(self, i = 0): return _desr.TreeToken_linkHead(self, i) def linkLabel(self, i = 0): return _desr.TreeToken_linkLabel(self, i) def __repr__(self): return _desr.TreeToken___repr__(self) def __getitem__(self, *args): return _desr.TreeToken___getitem__(self, *args) __swig_destroy__ = _desr.delete_TreeToken __del__ = lambda self : None; TreeToken_swigregister = _desr.TreeToken_swigregister TreeToken_swigregister(TreeToken) class VectorTreeToken(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VectorTreeToken, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VectorTreeToken, name) __repr__ = _swig_repr def iterator(self): return _desr.VectorTreeToken_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _desr.VectorTreeToken___nonzero__(self) def __bool__(self): return _desr.VectorTreeToken___bool__(self) def __len__(self): return _desr.VectorTreeToken___len__(self) def pop(self): return _desr.VectorTreeToken_pop(self) def __getslice__(self, *args): return _desr.VectorTreeToken___getslice__(self, *args) def __setslice__(self, *args): return _desr.VectorTreeToken___setslice__(self, *args) def __delslice__(self, *args): return _desr.VectorTreeToken___delslice__(self, *args) def __delitem__(self, *args): return _desr.VectorTreeToken___delitem__(self, *args) def __getitem__(self, *args): return _desr.VectorTreeToken___getitem__(self, *args) def __setitem__(self, *args): return _desr.VectorTreeToken___setitem__(self, *args) def append(self, *args): return _desr.VectorTreeToken_append(self, *args) def empty(self): return _desr.VectorTreeToken_empty(self) def size(self): return _desr.VectorTreeToken_size(self) def clear(self): return _desr.VectorTreeToken_clear(self) def swap(self, *args): return _desr.VectorTreeToken_swap(self, *args) def get_allocator(self): return _desr.VectorTreeToken_get_allocator(self) def begin(self): return _desr.VectorTreeToken_begin(self) def end(self): return _desr.VectorTreeToken_end(self) def rbegin(self): return _desr.VectorTreeToken_rbegin(self) def rend(self): return _desr.VectorTreeToken_rend(self) def pop_back(self): return _desr.VectorTreeToken_pop_back(self) def erase(self, *args): return _desr.VectorTreeToken_erase(self, *args) def __init__(self, *args): this = _desr.new_VectorTreeToken(*args) try: self.this.append(this) except: self.this = this def push_back(self, *args): return _desr.VectorTreeToken_push_back(self, *args) def front(self): return _desr.VectorTreeToken_front(self) def back(self): return _desr.VectorTreeToken_back(self) def assign(self, *args): return _desr.VectorTreeToken_assign(self, *args) def resize(self, *args): return _desr.VectorTreeToken_resize(self, *args) def insert(self, *args): return _desr.VectorTreeToken_insert(self, *args) def reserve(self, *args): return _desr.VectorTreeToken_reserve(self, *args) def capacity(self): return _desr.VectorTreeToken_capacity(self) __swig_destroy__ = _desr.delete_VectorTreeToken __del__ = lambda self : None; VectorTreeToken_swigregister = _desr.VectorTreeToken_swigregister VectorTreeToken_swigregister(VectorTreeToken) class EnumeratorSentence(Disposable): __swig_setmethods__ = {} for _s in [Disposable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, EnumeratorSentence, name, value) __swig_getmethods__ = {} for _s in [Disposable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, EnumeratorSentence, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr def MoveNext(self): return _desr.EnumeratorSentence_MoveNext(self) def Current(self): return _desr.EnumeratorSentence_Current(self) def Reset(self): return _desr.EnumeratorSentence_Reset(self) __swig_destroy__ = _desr.delete_EnumeratorSentence __del__ = lambda self : None; def __iter__(self): return _desr.EnumeratorSentence___iter__(self) def next(self): return _desr.EnumeratorSentence_next(self) EnumeratorSentence_swigregister = _desr.EnumeratorSentence_swigregister EnumeratorSentence_swigregister(EnumeratorSentence) class Sentence(VectorTreeToken): __swig_setmethods__ = {} for _s in [VectorTreeToken]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Sentence, name, value) __swig_getmethods__ = {} for _s in [VectorTreeToken]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Sentence, name) def __init__(self, language = None): this = _desr.new_Sentence(language) try: self.this.append(this) except: self.this = this __swig_setmethods__["language"] = _desr.Sentence_language_set __swig_getmethods__["language"] = _desr.Sentence_language_get if _newclass:language = _swig_property(_desr.Sentence_language_get, _desr.Sentence_language_set) def deref(self): return _desr.Sentence_deref(self) def __repr__(self): return _desr.Sentence___repr__(self) __swig_destroy__ = _desr.delete_Sentence __del__ = lambda self : None; Sentence_swigregister = _desr.Sentence_swigregister Sentence_swigregister(Sentence) class SentenceReader(EnumeratorSentence): __swig_setmethods__ = {} for _s in [EnumeratorSentence]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, SentenceReader, name, value) __swig_getmethods__ = {} for _s in [EnumeratorSentence]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, SentenceReader, name) __repr__ = _swig_repr def __init__(self, *args): this = _desr.new_SentenceReader(*args) try: self.this.append(this) except: self.this = this def MoveNext(self): return _desr.SentenceReader_MoveNext(self) def Current(self): return _desr.SentenceReader_Current(self) __swig_destroy__ = _desr.delete_SentenceReader __del__ = lambda self : None; SentenceReader_swigregister = _desr.SentenceReader_swigregister SentenceReader_swigregister(SentenceReader) class Parser(RefCountable): __swig_setmethods__ = {} for _s in [RefCountable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, Parser, name, value) __swig_getmethods__ = {} for _s in [RefCountable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, Parser, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr __swig_getmethods__["create"] = lambda x: _desr.Parser_create if _newclass:create = staticmethod(_desr.Parser_create) def pipe(self, *args): return _desr.Parser_pipe(self, *args) def parse(self, *args): return _desr.Parser_parse(self, *args) def showPerplexity(self): return _desr.Parser_showPerplexity(self) __swig_destroy__ = _desr.delete_Parser __del__ = lambda self : None; Parser_swigregister = _desr.Parser_swigregister Parser_swigregister(Parser) def Parser_create(*args): return _desr.Parser_create(*args) Parser_create = _desr.Parser_create # This file is compatible with both classic and new-style classes.
48.387919
108
0.742905
4,553
36,049
5.244235
0.065891
0.064665
0.053357
0.064832
0.544834
0.434393
0.388198
0.345605
0.309712
0.261674
0
0.000524
0.153707
36,049
744
109
48.452957
0.782123
0.008156
0
0.267626
1
0
0.023416
0
0
0
0
0
0
1
0.290647
false
0.002878
0.01295
0.248921
0.608633
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
1
0
0
0
1
1
0
0
4
0b652dc64eeb47401f02a83e16c4ee49dc024ce2
189
py
Python
trading/tests/test_recommender_unit.py
nud3l/Dinvest
21d7f0891eb14ef88e6780d05e99fee1bff5d182
[ "MIT" ]
13
2017-06-19T10:38:45.000Z
2021-02-06T07:38:28.000Z
trading/tests/test_recommender_unit.py
nud3l/Dinvest
21d7f0891eb14ef88e6780d05e99fee1bff5d182
[ "MIT" ]
null
null
null
trading/tests/test_recommender_unit.py
nud3l/Dinvest
21d7f0891eb14ef88e6780d05e99fee1bff5d182
[ "MIT" ]
9
2016-12-23T23:03:30.000Z
2021-09-07T23:19:42.000Z
#from recommender.InvestHandler import getSectors #from web3 import Web3 #class TestInvestHandler: # def test_get_sectors(self): # sectors = getSectors() # assert sectors
23.625
49
0.724868
20
189
6.75
0.7
0
0
0
0
0
0
0
0
0
0
0.013245
0.201058
189
7
50
27
0.880795
0.931217
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
0b658c0047790de044999a9bc563f532f9a6025b
46
py
Python
pystt/__init__.py
nws0507/pystt
af7393a2d16858f43b776d94511fd36c9c8e5312
[ "MIT" ]
null
null
null
pystt/__init__.py
nws0507/pystt
af7393a2d16858f43b776d94511fd36c9c8e5312
[ "MIT" ]
null
null
null
pystt/__init__.py
nws0507/pystt
af7393a2d16858f43b776d94511fd36c9c8e5312
[ "MIT" ]
null
null
null
__version__ = '0.2.2' from .stt import PyStt
11.5
22
0.695652
8
46
3.5
0.875
0
0
0
0
0
0
0
0
0
0
0.078947
0.173913
46
3
23
15.333333
0.657895
0
0
0
0
0
0.108696
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
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
1
0
0
0
0
4
0b65f5cbb5db01c1f7742ccf85ae3de236c160dc
198
py
Python
server/adoptions/apps.py
tombushmitz86/vims
1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e
[ "MIT" ]
null
null
null
server/adoptions/apps.py
tombushmitz86/vims
1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e
[ "MIT" ]
null
null
null
server/adoptions/apps.py
tombushmitz86/vims
1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class AdoptionsConfig(AppConfig): name = 'adoptions' verbose_name = _('Adoptions and deliveries')
24.75
55
0.777778
23
198
6.521739
0.73913
0.133333
0
0
0
0
0
0
0
0
0
0
0.151515
198
7
56
28.285714
0.892857
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.4
0
1
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
1
0
1
0
0
4
0b877f5dd7ab770e11ed87df58a7b9daeb179b1a
52
py
Python
modules/2.79/bpy/types/Lattice.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/Lattice.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
modules/2.79/bpy/types/Lattice.py
cmbasnett/fake-bpy-module
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
[ "MIT" ]
null
null
null
def transform(matrix, shape_keys=False): pass
10.4
40
0.711538
7
52
5.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.192308
52
4
41
13
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
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
1
0
1
0
0
0
0
0
4
f004432884b39d8c1d28c5aafb43da3336c709c4
123
py
Python
7KYU/count_languages.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/count_languages.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/count_languages.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
from collections import Counter def count_languages(lst: list) -> dict:      return Counter([i['language'] for i in lst])
24.6
48
0.715447
18
123
4.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.170732
123
4
49
30.75
0.852941
0
0
0
0
0
0.065041
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
4
f0054a5f18b98dfa115a7841f0b568149011ae5d
1,405
py
Python
src/library/password.py
fahadahammed/NelectMon
157cd8729536b1575f71a05c7e259979b23a08be
[ "MIT" ]
null
null
null
src/library/password.py
fahadahammed/NelectMon
157cd8729536b1575f71a05c7e259979b23a08be
[ "MIT" ]
null
null
null
src/library/password.py
fahadahammed/NelectMon
157cd8729536b1575f71a05c7e259979b23a08be
[ "MIT" ]
null
null
null
from passlib.hash import pbkdf2_sha256, bcrypt_sha256 class PasswordManager: def __init__(self): self.plain_password = None self.encrypted_password = None def create_password(self, plain_password): self.plain_password = plain_password self.encrypted_password = pbkdf2_sha256.encrypt(self.plain_password, rounds=200000, salt_size=16) return self.encrypted_password def check_password(self, plain_password, encrypted_password): self.plain_password = plain_password self.encrypted_password = encrypted_password try: checkp = pbkdf2_sha256.verify(self.plain_password, self.encrypted_password) print(checkp) return pbkdf2_sha256.verify(self.plain_password, self.encrypted_password) except Exception as ex: return False def bcrypt_create_password(self, plain_password): self.plain_password = plain_password self.encrypted_password = bcrypt_sha256.encrypt(self.plain_password, rounds=10, salt_size=22) return self.encrypted_password def bcrypt_check_password(self, plain_password, encrypted_password): self.plain_password = plain_password self.encrypted_password = encrypted_password if bcrypt_sha256.verify(self.plain_password, self.encrypted_password): return True else: return False
39.027778
105
0.717438
161
1,405
5.944099
0.242236
0.244514
0.248694
0.208986
0.718913
0.656217
0.580982
0.580982
0.528736
0.411703
0
0.03379
0.220641
1,405
35
106
40.142857
0.840183
0
0
0.344828
0
0
0
0
0
0
0
0
0
1
0.172414
false
0.724138
0.034483
0
0.448276
0.034483
0
0
0
null
1
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
1
0
0
0
0
0
4
f0139ed0273ab22809410ac913aa862b43575282
257
py
Python
events/views.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
events/views.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
events/views.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import viewsets from .models import Event from .serializers import EventSerializer class EventViewset(viewsets.ModelViewSet): queryset = Event.objects.all() serializer_class = EventSerializer
28.555556
42
0.821012
29
257
7.206897
0.655172
0
0
0
0
0
0
0
0
0
0
0
0.128405
257
8
43
32.125
0.933036
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
1
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
1
0
1
0
0
4
f025d444a2ccd703709b77f8471eeaeb4973bfba
203
py
Python
model.py
oodkan/solid-guacamole
617a5d979d36d624a5110f84482a13f2bc81d7c5
[ "Unlicense" ]
null
null
null
model.py
oodkan/solid-guacamole
617a5d979d36d624a5110f84482a13f2bc81d7c5
[ "Unlicense" ]
null
null
null
model.py
oodkan/solid-guacamole
617a5d979d36d624a5110f84482a13f2bc81d7c5
[ "Unlicense" ]
null
null
null
from Jeu import Jeu from JoueurAlea import * # Let's play jeu = Jeu(True) # type: Jeu jeu.ajouterJoueur(JoueurAlea()) jeu.ajouterJoueur(JoueurAlea()) jeu.ajouterJoueur(JoueurAlea()) jeu.jouerPartie()
18.454545
31
0.753695
26
203
5.884615
0.423077
0.313725
0.509804
0.568627
0.529412
0.529412
0.529412
0
0
0
0
0
0.118227
203
10
32
20.3
0.854749
0.098522
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
1
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
4
f077a558e647c18f25700c5810d06227b5415a6e
214
py
Python
application/models/tcid50/tcid50_input_data_set.py
TurboGob/TCID50_Calculator
ff2d00443c3e0f80d753ccc815e562ce734857cc
[ "MIT" ]
null
null
null
application/models/tcid50/tcid50_input_data_set.py
TurboGob/TCID50_Calculator
ff2d00443c3e0f80d753ccc815e562ce734857cc
[ "MIT" ]
null
null
null
application/models/tcid50/tcid50_input_data_set.py
TurboGob/TCID50_Calculator
ff2d00443c3e0f80d753ccc815e562ce734857cc
[ "MIT" ]
null
null
null
from typing import List from application.models.tcid50.dilution import Dilution class TCID50InputDataSet: dilutions = [] def __init__(self, dilutions: List[Dilution]): self.dilutions = dilutions
21.4
55
0.742991
23
214
6.73913
0.608696
0.167742
0
0
0
0
0
0
0
0
0
0.022857
0.182243
214
9
56
23.777778
0.862857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.833333
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
1
0
1
0
0
4
b2b54b25a801cdce1b1525775e23757875fec1dc
136
py
Python
null-pattern/nullclass.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
null-pattern/nullclass.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
null-pattern/nullclass.py
Tomvictor/python-design-patterns
6b99607d721bbe03d26a0a451a10e88cd1c1d112
[ "MIT" ]
null
null
null
from abs_class import AbsClass class NullClass(AbsClass): def do_something(self, value): print('Not doing %s.' % value)
27.2
38
0.676471
18
136
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.220588
136
5
38
27.2
0.849057
0
0
0
0
0
0.097744
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0.25
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
1
0
0
0
0
1
0
0
4
b2e0ffdbe5fbe3e293a21ce52e26ea3da65ba3dc
305
py
Python
conftest.py
jaraco/jaraco.crypto
08918ca0b2fe9cf94c3d071095ea9ef66f015a6c
[ "MIT" ]
null
null
null
conftest.py
jaraco/jaraco.crypto
08918ca0b2fe9cf94c3d071095ea9ef66f015a6c
[ "MIT" ]
null
null
null
conftest.py
jaraco/jaraco.crypto
08918ca0b2fe9cf94c3d071095ea9ef66f015a6c
[ "MIT" ]
null
null
null
import platform import six collect_ignore = [ 'certutil.py', ] if platform.system() != 'Windows': collect_ignore.extend( [ 'jaraco/crypto/cert.py', ] ) if six.PY3: collect_ignore.extend( [ 'jaraco/crypto/blowfish.py', ] )
12.2
40
0.518033
29
305
5.344828
0.551724
0.251613
0.245161
0.322581
0.4
0
0
0
0
0
0
0.005076
0.354098
305
24
41
12.708333
0.781726
0
0
0.117647
0
0
0.209836
0.15082
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
1
0
0
null
1
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
4
652d7c34825b1f5941d3595b98f557ae33c2e73e
165
py
Python
artists/forms.py
flannj/urbanapplause_django
bec6197e55dc7422227fc013e9d465dae52e9cdc
[ "MIT" ]
null
null
null
artists/forms.py
flannj/urbanapplause_django
bec6197e55dc7422227fc013e9d465dae52e9cdc
[ "MIT" ]
null
null
null
artists/forms.py
flannj/urbanapplause_django
bec6197e55dc7422227fc013e9d465dae52e9cdc
[ "MIT" ]
null
null
null
from django import forms from models import Artist class ArtistForm(forms.ModelForm): class Meta: model = Artist fields = ['name', 'instrument']
23.571429
39
0.678788
19
165
5.894737
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.236364
165
7
39
23.571429
0.888889
0
0
0
0
0
0.084337
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
1
0
0
4
33041feb5700b9d32923b96861b1b5cac59926af
212
py
Python
nature/bricks/experiments/get_regularizer.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
nature/bricks/experiments/get_regularizer.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
nature/bricks/experiments/get_regularizer.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
from tensorflow_probability import layers as tfpl from . import get_prior def get_regularizer(size, prior_type="normal"): prior = get_prior(size, prior_type) return tfpl.KLDivergenceRegularizer(prior)
23.555556
49
0.787736
28
212
5.75
0.571429
0.099379
0.161491
0
0
0
0
0
0
0
0
0
0.141509
212
8
50
26.5
0.884615
0
0
0
0
0
0.028302
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
1
0
1
0
0
4
332195d639408846f291133ebb5514a995256221
6,410
py
Python
2020_3/projeto2/GrammarCheckerVisitor.py
gui555pl/compilers-cin
a92788ec2dc9f9a927fbce579ece0765d75877c5
[ "MIT" ]
24
2015-05-30T04:55:16.000Z
2022-02-27T03:16:33.000Z
2020_3/projeto2/GrammarCheckerVisitor.py
gui555pl/compilers-cin
a92788ec2dc9f9a927fbce579ece0765d75877c5
[ "MIT" ]
2
2015-06-19T23:06:53.000Z
2015-06-21T18:19:33.000Z
2020_3/projeto2/GrammarCheckerVisitor.py
gui555pl/compilers-cin
a92788ec2dc9f9a927fbce579ece0765d75877c5
[ "MIT" ]
39
2015-06-06T20:40:13.000Z
2021-03-21T23:11:01.000Z
# Generated from antlr4-python3-runtime-4.7.2/src/autogen/Grammar.g4 by ANTLR 4.7.2 from antlr4 import * if __name__ is not None and "." in __name__: from .GrammarParser import GrammarParser else: from GrammarParser import GrammarParser # This class defines a complete generic visitor for a parse tree produced by GrammarParser. ''' COMO RESGATAR INFORMAÇÕES DA ÁRVORE Observe o seu Grammar.g4. Cada regra sintática gera uma função com o nome corespondente no Visitor e na ordem em que está na gramática. Se for utilizar sua gramática do projeto 1, por causa de conflitos com Python, substitua as regras file por fiile e type por tyype. Use prints temporários para ver se está no caminho certo. "make tree" agora desenha a árvore sintática, se quiser vê-la para qualquer input, enquanto "make" roda este visitor sobre o a árvore gerada a partir de Grammar.g4 alimentada pelo input. Exemplos: # Obs.: Os exemplos abaixo utilizam nós 'expression', mas servem apra qualquer tipo de nó self.visitChildren(ctx) # visita todos os filhos do nó atual expr = self.visit(ctx.expression()) # visita a subárvore do nó expression e retorna o valor retornado na função "visitRegra" for i in range(len(ctx.expression())): # para cada expressão que este nó possui... ident = ctx.expression(i) # ...pegue a i-ésima expressão if ctx.FLOAT() != None: # se houver um FLOAT (em vez de INT ou VOID) neste nó (parser) return Type.FLOAT # retorne tipo float ctx.identifier().getText() # Obtém o texto contido no nó (neste caso, será obtido o nome do identifier) token = ctx.identifier(i).IDENTIFIER().getPayload() # Obtém o token referente à uma determinada regra léxica (neste caso, IDENTIFIER) token.line # variável com a linha do token token.column # variável com a coluna do token ''' # Dica: Retorne Type.INT, Type.FLOAT, etc. Nos nós e subnós das expressões para fazer a checagem de tipos enquanto percorre a expressão. class Type: VOID = "void" INT = "int" FLOAT = "float" STRING = "char *" class GrammarCheckerVisitor(ParseTreeVisitor): ids_defined = {} # Dicionário para armazenar as informações necessárias para cada identifier definido inside_what_function = "" # String que guarda a função atual que o visitor está visitando. Útil para acessar dados da função durante a visitação da árvore sintática da função. # Visit a parse tree produced by GrammarParser#fiile. def visitFiile(self, ctx:GrammarParser.FiileContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#function_definition. def visitFunction_definition(self, ctx:GrammarParser.Function_definitionContext): tyype = ctx.tyype().getText() name = ctx.identifier().getText() params = self.visit(ctx.arguments()) self.ids_defined[name] = tyype, params, None self.inside_what_function = name self.visit(ctx.body()) return # Visit a parse tree produced by GrammarParser#body. def visitBody(self, ctx:GrammarParser.BodyContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#statement. def visitStatement(self, ctx:GrammarParser.StatementContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#if_statement. def visitIf_statement(self, ctx:GrammarParser.If_statementContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#else_statement. def visitElse_statement(self, ctx:GrammarParser.Else_statementContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#for_loop. def visitFor_loop(self, ctx:GrammarParser.For_loopContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#for_initializer. def visitFor_initializer(self, ctx:GrammarParser.For_initializerContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#for_condition. def visitFor_condition(self, ctx:GrammarParser.For_conditionContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#for_step. def visitFor_step(self, ctx:GrammarParser.For_stepContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#variable_definition. def visitVariable_definition(self, ctx:GrammarParser.Variable_definitionContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#variable_assignment. def visitVariable_assignment(self, ctx:GrammarParser.Variable_assignmentContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#expression. def visitExpression(self, ctx:GrammarParser.ExpressionContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#array. def visitArray(self, ctx:GrammarParser.ArrayContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#array_literal. def visitArray_literal(self, ctx:GrammarParser.Array_literalContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#function_call. def visitFunction_call(self, ctx:GrammarParser.Function_callContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#arguments. def visitArguments(self, ctx:GrammarParser.ArgumentsContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#tyype. def visitTyype(self, ctx:GrammarParser.TyypeContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#integer. def visitInteger(self, ctx:GrammarParser.IntegerContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#floating. def visitFloating(self, ctx:GrammarParser.FloatingContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#string. def visitString(self, ctx:GrammarParser.StringContext): return self.visitChildren(ctx) # Visit a parse tree produced by GrammarParser#identifier. def visitIdentifier(self, ctx:GrammarParser.IdentifierContext): return self.visitChildren(ctx)
38.614458
191
0.746022
819
6,410
5.781441
0.301587
0.029145
0.048574
0.087434
0.314889
0.314889
0.30792
0.291869
0.291869
0.291869
0
0.002481
0.182683
6,410
165
192
38.848485
0.901317
0.277691
0
0.333333
1
0
0.006101
0
0
0
0
0.006061
0
1
0.349206
false
0
0.047619
0.333333
0.873016
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
1
0
0
0
1
1
0
0
4
68243812451557c85f3765b6b683041d6a1a3d56
70
py
Python
pygalgen/generator/common/macros/__init__.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
pygalgen/generator/common/macros/__init__.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
pygalgen/generator/common/macros/__init__.py
Kulivox/PyGalGen
816004bce50703737384e2fbdcfe43b61ce2f4dd
[ "MIT" ]
null
null
null
""" Subpackage containing modules used to create and handle macros """
23.333333
62
0.771429
9
70
6
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
70
3
63
23.333333
0.9
0.885714
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
682bda1361f232058f3f41b0e3468c159450efb2
68,721
py
Python
data.py
JarredParrettDickinson/AGRO-DATA
4b45c3414b0af26db7105e891b00f83a56043ebc
[ "MIT" ]
null
null
null
data.py
JarredParrettDickinson/AGRO-DATA
4b45c3414b0af26db7105e891b00f83a56043ebc
[ "MIT" ]
5
2020-05-27T17:12:03.000Z
2021-12-13T20:41:46.000Z
data.py
JarredParrettDickinson/AGRO-DATA
4b45c3414b0af26db7105e891b00f83a56043ebc
[ "MIT" ]
null
null
null
#employ cron to run this at 4am daily import requests import urllib.request as ur from urllib.request import Request, urlopen from gzip import GzipFile import pandas as pd import geopandas as gpd dict_states={'AL': {'AUTAUGA': '01001', 'BALDWIN': '01003', 'BARBOUR': '01005', 'BIBB': '01007', 'BLOUNT': '01009', 'BULLOCK': '01011', 'BUTLER': '01013', 'CALHOUN': '01015', 'CHAMBERS': '01017', 'CHEROKEE': '01019', 'CHILTON': '01021', 'CHOCTAW': '01023', 'CLARKE': '01025', 'CLAY': '01027', 'CLEBURNE': '01029', 'COFFEE': '01031', 'COLBERT': '01033', 'CONECUH': '01035', 'COOSA': '01037', 'COVINGTON': '01039', 'CRENSHAW': '01041', 'CULLMAN': '01043', 'DALE': '01045', 'DALLAS': '01047', 'DE KALB': '01049', 'ELMORE': '01051', 'ESCAMBIA': '01053', 'ETOWAH': '01055', 'FAYETTE': '01057', 'FRANKLIN': '01059', 'GENEVA': '01061', 'GREENE': '01063', 'HALE': '01065', 'HENRY': '01067', 'HOUSTON': '01069', 'JACKSON': '01071', 'JEFFERSON': '01073', 'LAMAR': '01075', 'LAUDERDALE': '01077', 'LAWRENCE': '01079', 'LEE': '01081', 'LIMESTONE': '01083', 'LOWNDES': '01085', 'MACON': '01087', 'MADISON': '01089', 'MARENGO': '01091', 'MARION': '01093', 'MARSHALL': '01095', 'MOBILE': '01097', 'MONROE': '01099', 'MONTGOMERY': '01101', 'MORGAN': '01103', 'PERRY': '01105', 'PICKENS': '01107', 'PIKE': '01109', 'RANDOLPH': '01111', 'RUSSELL': '01113', 'ST CLAIR': '01115', 'SHELBY': '01117', 'SUMTER': '01119', 'TALLADEGA': '01121', 'TALLAPOOSA': '01123', 'TUSCALOOSA': '01125', 'WALKER': '01127', 'WASHINGTON': '01129', 'WILCOX': '01131', 'WINSTON': '01133'}, 'AK': {'ALEUTIANS EAST': '02013', 'ALEUTIANS WEST': '02016', 'ANCHORAGE': '02020', 'BETHEL': '02050', 'BRISTOL BAY': '02060', 'DENALI': '02068', 'DILLINGHAM': '02070', 'FAIRBANKS NORTH STAR': '02090', 'HAINES': '02100', 'JUNEAU': '02110', 'KENAI PENINSULA': '02122', 'KETCHIKAN GATEWAY': '02130', 'KODIAK ISLAND': '02150', 'LAKE AND PENINSULA': '02164', 'MATANUSKA-SUSITNA': '02170', 'NOME': '02180', 'NORTH SLOPE': '02185', 'NORTHWEST ARCTIC': '02188', 'PRINCE OF WALES-OUTER KETCHIKAN': '02201', 'SITKA': '02220', 'SKAGWAY-HOONAH-ANGOON': '02232', 'SOUTHEAST FAIRBANKS': '02240', 'VALDEZ-CORDOVA': '02261', 'WADE HAMPTON': '02270', 'WRANGELL-PETERSBURG': '02280', 'YAKUTAT': '02282', 'YUKON-KOYUKUK': '02290'}, 'AZ': {'APACHE': '04001', 'COCHISE': '04003', 'COCONINO': '04005', 'GILA': '04007', 'GRAHAM': '04009', 'GREENLEE': '04011', 'LA PAZ': '04012', 'MARICOPA': '04013', 'MOHAVE': '04015', 'NAVAJO': '04017', 'PIMA': '04019', 'PINAL': '04021', 'SANTA CRUZ': '04023', 'YAVAPAI': '04025', 'YUMA': '04027'}, 'AR': {'ARKANSAS': '05001', 'ASHLEY': '05003', 'BAXTER': '05005', 'BENTON': '05007', 'BOONE': '05009', 'BRADLEY': '05011', 'CALHOUN': '05013', 'CARROLL': '05015', 'CHICOT': '05017', 'CLARK': '05019', 'CLAY': '05021', 'CLEBURNE': '05023', 'CLEVELAND': '05025', 'COLUMBIA': '05027', 'CONWAY': '05029', 'CRAIGHEAD': '05031', 'CRAWFORD': '05033', 'CRITTENDEN': '05035', 'CROSS': '05037', 'DALLAS': '05039', 'DESHA': '05041', 'DREW': '05043', 'FAULKNER': '05045', 'FRANKLIN': '05047', 'FULTON': '05049', 'GARLAND': '05051', 'GRANT': '05053', 'GREENE': '05055', 'HEMPSTEAD': '05057', 'HOT SPRING': '05059', 'HOWARD': '05061', 'INDEPENDENCE': '05063', 'IZARD': '05065', 'JACKSON': '05067', 'JEFFERSON': '05069', 'JOHNSON': '05071', 'LAFAYETTE': '05073', 'LAWRENCE': '05075', 'LEE': '05077', 'LINCOLN': '05079', 'LITTLE RIVER': '05081', 'LOGAN': '05083', 'LONOKE': '05085', 'MADISON': '05087', 'MARION': '05089', 'MILLER': '05091', 'MISSISSIPPI': '05093', 'MONROE': '05095', 'MONTGOMERY': '05097', 'NEVADA': '05099', 'NEWTON': '05101', 'OUACHITA': '05103', 'PERRY': '05105', 'PHILLIPS': '05107', 'PIKE': '05109', 'POINSETT': '05111', 'POLK': '05113', 'POPE': '05115', 'PRAIRIE': '05117', 'PULASKI': '05119', 'RANDOLPH': '05121', 'ST FRANCIS': '05123', 'SALINE': '05125', 'SCOTT': '05127', 'SEARCY': '05129', 'SEBASTIAN': '05131', 'SEVIER': '05133', 'SHARP': '05135', 'STONE': '05137', 'UNION': '05139', 'VAN BUREN': '05141', 'WASHINGTON': '05143', 'WHITE': '05145', 'WOODRUFF': '05147', 'YELL': '05149'}, 'CA': {'ALAMEDA': '06001', 'ALPINE': '06003', 'AMADOR': '06005', 'BUTTE': '06007', 'CALAVERAS': '06009', 'COLUSA': '06011', 'CONTRA COSTA': '06013', 'DEL NORTE': '06015', 'EL DORADO': '06017', 'FRESNO': '06019', 'GLENN': '06021', 'HUMBOLDT': '06023', 'IMPERIAL': '06025', 'INYO': '06027', 'KERN': '06029', 'KINGS': '06031', 'LAKE': '06033', 'LASSEN': '06035', 'LOS ANGELES': '06037', 'MADERA': '06039', 'MARIN': '06041', 'MARIPOSA': '06043', 'MENDOCINO': '06045', 'MERCED': '06047', 'MODOC': '06049', 'MONO': '06051', 'MONTEREY': '06053', 'NAPA': '06055', 'NEVADA': '06057', 'ORANGE': '06059', 'PLACER': '06061', 'PLUMAS': '06063', 'RIVERSIDE': '06065', 'SACRAMENTO': '06067', 'SAN BENITO': '06069', 'SAN BERNARDINO': '06071', 'SAN DIEGO': '06073', 'SAN FRANCISCO': '06075', 'SAN JOAQUIN': '06077', 'SAN LUIS OBISPO': '06079', 'SAN MATEO': '06081', 'SANTA BARBARA': '06083', 'SANTA CLARA': '06085', 'SANTA CRUZ': '06087', 'SHASTA': '06089', 'SIERRA': '06091', 'SISKIYOU': '06093', 'SOLANO': '06095', 'SONOMA': '06097', 'STANISLAUS': '06099', 'SUTTER': '06101', 'TEHAMA': '06103', 'TRINITY': '06105', 'TULARE': '06107', 'TUOLUMNE': '06109', 'VENTURA': '06111', 'YOLO': '06113', 'YUBA': '06115'}, 'CO': {'ADAMS': '08001', 'ALAMOSA': '08003', 'ARAPAHOE': '08005', 'ARCHULETA': '08007', 'BACA': '08009', 'BENT': '08011', 'BOULDER': '08013', 'CHAFFEE': '08015', 'CHEYENNE': '08017', 'CLEAR CREEK': '08019', 'CONEJOS': '08021', 'COSTILLA': '08023', 'CROWLEY': '08025', 'CUSTER': '08027', 'DELTA': '08029', 'DENVER': '08031', 'DOLORES': '08033', 'DOUGLAS': '08035', 'EAGLE': '08037', 'ELBERT': '08039', 'EL PASO': '08041', 'FREMONT': '08043', 'GARFIELD': '08045', 'GILPIN': '08047', 'GRAND': '08049', 'GUNNISON': '08051', 'HINSDALE': '08053', 'HUERFANO': '08055', 'JACKSON': '08057', 'JEFFERSON': '08059', 'KIOWA': '08061', 'KIT CARSON': '08063', 'LAKE': '08065', 'LA PLATA': '08067', 'LARIMER': '08069', 'LAS ANIMAS': '08071', 'LINCOLN': '08073', 'LOGAN': '08075', 'MESA': '08077', 'MINERAL': '08079', 'MOFFAT': '08081', 'MONTEZUMA': '08083', 'MONTROSE': '08085', 'MORGAN': '08087', 'OTERO': '08089', 'OURAY': '08091', 'PARK': '08093', 'PHILLIPS': '08095', 'PITKIN': '08097', 'PROWERS': '08099', 'PUEBLO': '08101', 'RIO BLANCO': '08103', 'RIO GRANDE': '08105', 'ROUTT': '08107', 'SAGUACHE': '08109', 'SAN JUAN': '08111', 'SAN MIGUEL': '08113', 'SEDGWICK': '08115', 'SUMMIT': '08117', 'TELLER': '08119', 'WASHINGTON': '08121', 'WELD': '08123', 'YUMA': '08125'}, 'CT': {'FAIRFIELD': '09001', 'HARTFORD': '09003', 'LITCHFIELD': '09005', 'MIDDLESEX': '09007', 'NEW HAVEN': '09009', 'NEW LONDON': '09011', 'TOLLAND': '09013', 'WINDHAM': '09015'}, 'DE': {'KENT': '10001', 'NEW CASTLE': '10003', 'SUSSEX': '10005'}, 'DC': {'WASHINGTON': '11001'}, 'FL': {'ALACHUA': '12001', 'BAKER': '12003', 'BAY': '12005', 'BRADFORD': '12007', 'BREVARD': '12009', 'BROWARD': '12011', 'CALHOUN': '12013', 'CHARLOTTE': '12015', 'CITRUS': '12017', 'CLAY': '12019', 'COLLIER': '12021', 'COLUMBIA': '12023', 'DE SOTO': '12027', 'DIXIE': '12029', 'DUVAL': '12031', 'ESCAMBIA': '12033', 'FLAGLER': '12035', 'FRANKLIN': '12037', 'GADSDEN': '12039', 'GILCHRIST': '12041', 'GLADES': '12043', 'GULF': '12045', 'HAMILTON': '12047', 'HARDEE': '12049', 'HENDRY': '12051', 'HERNANDO': '12053', 'HIGHLANDS': '12055', 'HILLSBOROUGH': '12057', 'HOLMES': '12059', 'INDIAN RIVER': '12061', 'JACKSON': '12063', 'JEFFERSON': '12065', 'LAFAYETTE': '12067', 'LAKE': '12069', 'LEE': '12071', 'LEON': '12073', 'LEVY': '12075', 'LIBERTY': '12077', 'MADISON': '12079', 'MANATEE': '12081', 'MARION': '12083', 'MARTIN': '12085', 'MIAMI-DADE': '12086', 'MONROE': '12087', 'NASSAU': '12089', 'OKALOOSA': '12091', 'OKEECHOBEE': '12093', 'ORANGE': '12095', 'OSCEOLA': '12097', 'PALM BEACH': '12099', 'PASCO': '12101', 'PINELLAS': '12103', 'POLK': '12105', 'PUTNAM': '12107', 'ST JOHNS': '12109', 'ST LUCIE': '12111', 'SANTA ROSA': '12113', 'SARASOTA': '12115', 'SEMINOLE': '12117', 'SUMTER': '12119', 'SUWANNEE': '12121', 'TAYLOR': '12123', 'UNION': '12125', 'VOLUSIA': '12127', 'WAKULLA': '12129', 'WALTON': '12131', 'WASHINGTON': '12133'}, 'GA': {'APPLING': '13001', 'ATKINSON': '13003', 'BACON': '13005', 'BAKER': '13007', 'BALDWIN': '13009', 'BANKS': '13011', 'BARROW': '13013', 'BARTOW': '13015', 'BEN HILL': '13017', 'BERRIEN': '13019', 'BIBB': '13021', 'BLECKLEY': '13023', 'BRANTLEY': '13025', 'BROOKS': '13027', 'BRYAN': '13029', 'BULLOCH': '13031', 'BURKE': '13033', 'BUTTS': '13035', 'CALHOUN': '13037', 'CAMDEN': '13039', 'CANDLER': '13043', 'CARROLL': '13045', 'CATOOSA': '13047', 'CHARLTON': '13049', 'CHATHAM': '13051', 'CHATTAHOOCHEE': '13053', 'CHATTOOGA': '13055', 'CHEROKEE': '13057', 'CLARKE': '13059', 'CLAY': '13061', 'CLAYTON': '13063', 'CLINCH': '13065', 'COBB': '13067', 'COFFEE': '13069', 'COLQUITT': '13071', 'COLUMBIA': '13073', 'COOK': '13075', 'COWETA': '13077', 'CRAWFORD': '13079', 'CRISP': '13081', 'DADE': '13083', 'DAWSON': '13085', 'DECATUR': '13087', 'DE KALB': '13089', 'DODGE': '13091', 'DOOLY': '13093', 'DOUGHERTY': '13095', 'DOUGLAS': '13097', 'EARLY': '13099', 'ECHOLS': '13101', 'EFFINGHAM': '13103', 'ELBERT': '13105', 'EMANUEL': '13107', 'EVANS': '13109', 'FANNIN': '13111', 'FAYETTE': '13113', 'FLOYD': '13115', 'FORSYTH': '13117', 'FRANKLIN': '13119', 'FULTON': '13121', 'GILMER': '13123', 'GLASCOCK': '13125', 'GLYNN': '13127', 'GORDON': '13129', 'GRADY': '13131', 'GREENE': '13133', 'GWINNETT': '13135', 'HABERSHAM': '13137', 'HALL': '13139', 'HANCOCK': '13141', 'HARALSON': '13143', 'HARRIS': '13145', 'HART': '13147', 'HEARD': '13149', 'HENRY': '13151', 'HOUSTON': '13153', 'IRWIN': '13155', 'JACKSON': '13157', 'JASPER': '13159', 'JEFF DAVIS': '13161', 'JEFFERSON': '13163', 'JENKINS': '13165', 'JOHNSON': '13167', 'JONES': '13169', 'LAMAR': '13171', 'LANIER': '13173', 'LAURENS': '13175', 'LEE': '13177', 'LIBERTY': '13179', 'LINCOLN': '13181', 'LONG': '13183', 'LOWNDES': '13185', 'LUMPKIN': '13187', 'MCDUFFIE': '13189', 'MCINTOSH': '13191', 'MACON': '13193', 'MADISON': '13195', 'MARION': '13197', 'MERIWETHER': '13199', 'MILLER': '13201', 'MITCHELL': '13205', 'MONROE': '13207', 'MONTGOMERY': '13209', 'MORGAN': '13211', 'MURRAY': '13213', 'MUSCOGEE': '13215', 'NEWTON': '13217', 'OCONEE': '13219', 'OGLETHORPE': '13221', 'PAULDING': '13223', 'PEACH': '13225', 'PICKENS': '13227', 'PIERCE': '13229', 'PIKE': '13231', 'POLK': '13233', 'PULASKI': '13235', 'PUTNAM': '13237', 'QUITMAN': '13239', 'RABUN': '13241', 'RANDOLPH': '13243', 'RICHMOND': '13245', 'ROCKDALE': '13247', 'SCHLEY': '13249', 'SCREVEN': '13251', 'SEMINOLE': '13253', 'SPALDING': '13255', 'STEPHENS': '13257', 'STEWART': '13259', 'SUMTER': '13261', 'TALBOT': '13263', 'TALIAFERRO': '13265', 'TATTNALL': '13267', 'TAYLOR': '13269', 'TELFAIR': '13271', 'TERRELL': '13273', 'THOMAS': '13275', 'TIFT': '13277', 'TOOMBS': '13279', 'TOWNS': '13281', 'TREUTLEN': '13283', 'TROUP': '13285', 'TURNER': '13287', 'TWIGGS': '13289', 'UNION': '13291', 'UPSON': '13293', 'WALKER': '13295', 'WALTON': '13297', 'WARE': '13299', 'WARREN': '13301', 'WASHINGTON': '13303', 'WAYNE': '13305', 'WEBSTER': '13307', 'WHEELER': '13309', 'WHITE': '13311', 'WHITFIELD': '13313', 'WILCOX': '13315', 'WILKES': '13317', 'WILKINSON': '13319', 'WORTH': '13321'}, 'HI': {'HAWAII': '15001', 'HONOLULU': '15003', 'KAUAI': '15007', 'MAUI': '15009'}, 'ID': {'ADA': '16001', 'ADAMS': '16003', 'BANNOCK': '16005', 'BEAR LAKE': '16007', 'BENEWAH': '16009', 'BINGHAM': '16011', 'BLAINE': '16013', 'BOISE': '16015', 'BONNER': '16017', 'BONNEVILLE': '16019', 'BOUNDARY': '16021', 'BUTTE': '16023', 'CAMAS': '16025', 'CANYON': '16027', 'CARIBOU': '16029', 'CASSIA': '16031', 'CLARK': '16033', 'CLEARWATER': '16035', 'CUSTER': '16037', 'ELMORE': '16039', 'FRANKLIN': '16041', 'FREMONT': '16043', 'GEM': '16045', 'GOODING': '16047', 'IDAHO': '16049', 'JEFFERSON': '16051', 'JEROME': '16053', 'KOOTENAI': '16055', 'LATAH': '16057', 'LEMHI': '16059', 'LEWIS': '16061', 'LINCOLN': '16063', 'MADISON': '16065', 'MINIDOKA': '16067', 'NEZ PERCE': '16069', 'ONEIDA': '16071', 'OWYHEE': '16073', 'PAYETTE': '16075', 'POWER': '16077', 'SHOSHONE': '16079', 'TETON': '16081', 'TWIN FALLS': '16083', 'VALLEY': '16085', 'WASHINGTON': '16087'}, 'IL': {'ADAMS': '17001', 'ALEXANDER': '17003', 'BOND': '17005', 'BOONE': '17007', 'BROWN': '17009', 'BUREAU': '17011', 'CALHOUN': '17013', 'CARROLL': '17015', 'CASS': '17017', 'CHAMPAIGN': '17019', 'CHRISTIAN': '17021', 'CLARK': '17023', 'CLAY': '17025', 'CLINTON': '17027', 'COLES': '17029', 'COOK': '17031', 'CRAWFORD': '17033', 'CUMBERLAND': '17035', 'DE KALB': '17037', 'DE WITT': '17039', 'DOUGLAS': '17041', 'DU PAGE': '17043', 'EDGAR': '17045', 'EDWARDS': '17047', 'EFFINGHAM': '17049', 'FAYETTE': '17051', 'FORD': '17053', 'FRANKLIN': '17055', 'FULTON': '17057', 'GALLATIN': '17059', 'GREENE': '17061', 'GRUNDY': '17063', 'HAMILTON': '17065', 'HANCOCK': '17067', 'HARDIN': '17069', 'HENDERSON': '17071', 'HENRY': '17073', 'IROQUOIS': '17075', 'JACKSON': '17077', 'JASPER': '17079', 'JEFFERSON': '17081', 'JERSEY': '17083', 'JO DAVIESS': '17085', 'JOHNSON': '17087', 'KANE': '17089', 'KANKAKEE': '17091', 'KENDALL': '17093', 'KNOX': '17095', 'LAKE': '17097', 'LA SALLE': '17099', 'LAWRENCE': '17101', 'LEE': '17103', 'LIVINGSTON': '17105', 'LOGAN': '17107', 'MCDONOUGH': '17109', 'MCHENRY': '17111', 'MCLEAN': '17113', 'MACON': '17115', 'MACOUPIN': '17117', 'MADISON': '17119', 'MARION': '17121', 'MARSHALL': '17123', 'MASON': '17125', 'MASSAC': '17127', 'MENARD': '17129', 'MERCER': '17131', 'MONROE': '17133', 'MONTGOMERY': '17135', 'MORGAN': '17137', 'MOULTRIE': '17139', 'OGLE': '17141', 'PEORIA': '17143', 'PERRY': '17145', 'PIATT': '17147', 'PIKE': '17149', 'POPE': '17151', 'PULASKI': '17153', 'PUTNAM': '17155', 'RANDOLPH': '17157', 'RICHLAND': '17159', 'ROCK ISLAND': '17161', 'ST CLAIR': '17163', 'SALINE': '17165', 'SANGAMON': '17167', 'SCHUYLER': '17169', 'SCOTT': '17171', 'SHELBY': '17173', 'STARK': '17175', 'STEPHENSON': '17177', 'TAZEWELL': '17179', 'UNION': '17181', 'VERMILION': '17183', 'WABASH': '17185', 'WARREN': '17187', 'WASHINGTON': '17189', 'WAYNE': '17191', 'WHITE': '17193', 'WHITESIDE': '17195', 'WILL': '17197', 'WILLIAMSON': '17199', 'WINNEBAGO': '17201', 'WOODFORD': '17203'}, 'IN': {'ADAMS': '18001', 'ALLEN': '18003', 'BARTHOLOMEW': '18005', 'BENTON': '18007', 'BLACKFORD': '18009', 'BOONE': '18011', 'BROWN': '18013', 'CARROLL': '18015', 'CASS': '18017', 'CLARK': '18019', 'CLAY': '18021', 'CLINTON': '18023', 'CRAWFORD': '18025', 'DAVIESS': '18027', 'DEARBORN': '18029', 'DECATUR': '18031', 'DE KALB': '18033', 'DELAWARE': '18035', 'DUBOIS': '18037', 'ELKHART': '18039', 'FAYETTE': '18041', 'FLOYD': '18043', 'FOUNTAIN': '18045', 'FRANKLIN': '18047', 'FULTON': '18049', 'GIBSON': '18051', 'GRANT': '18053', 'GREENE': '18055', 'HAMILTON': '18057', 'HANCOCK': '18059', 'HARRISON': '18061', 'HENDRICKS': '18063', 'HENRY': '18065', 'HOWARD': '18067', 'HUNTINGTON': '18069', 'JACKSON': '18071', 'JASPER': '18073', 'JAY': '18075', 'JEFFERSON': '18077', 'JENNINGS': '18079', 'JOHNSON': '18081', 'KNOX': '18083', 'KOSCIUSKO': '18085', 'LA GRANGE': '18087', 'LAKE': '18089', 'LA PORTE': '18091', 'LAWRENCE': '18093', 'MADISON': '18095', 'MARION': '18097', 'MARSHALL': '18099', 'MARTIN': '18101', 'MIAMI': '18103', 'MONROE': '18105', 'MONTGOMERY': '18107', 'MORGAN': '18109', 'NEWTON': '18111', 'NOBLE': '18113', 'OHIO': '18115', 'ORANGE': '18117', 'OWEN': '18119', 'PARKE': '18121', 'PERRY': '18123', 'PIKE': '18125', 'PORTER': '18127', 'POSEY': '18129', 'PULASKI': '18131', 'PUTNAM': '18133', 'RANDOLPH': '18135', 'RIPLEY': '18137', 'RUSH': '18139', 'ST JOSEPH': '18141', 'SCOTT': '18143', 'SHELBY': '18145', 'SPENCER': '18147', 'STARKE': '18149', 'STEUBEN': '18151', 'SULLIVAN': '18153', 'SWITZERLAND': '18155', 'TIPPECANOE': '18157', 'TIPTON': '18159', 'UNION': '18161', 'VANDERBURGH': '18163', 'VERMILLION': '18165', 'VIGO': '18167', 'WABASH': '18169', 'WARREN': '18171', 'WARRICK': '18173', 'WASHINGTON': '18175', 'WAYNE': '18177', 'WELLS': '18179', 'WHITE': '18181', 'WHITLEY': '18183'}, 'IA': {'ADAIR': '19001', 'ADAMS': '19003', 'ALLAMAKEE': '19005', 'APPANOOSE': '19007', 'AUDUBON': '19009', 'BENTON': '19011', 'BLACK HAWK': '19013', 'BOONE': '19015', 'BREMER': '19017', 'BUCHANAN': '19019', 'BUENA VISTA': '19021', 'BUTLER': '19023', 'CALHOUN': '19025', 'CARROLL': '19027', 'CASS': '19029', 'CEDAR': '19031', 'CERRO GORDO': '19033', 'CHEROKEE': '19035', 'CHICKASAW': '19037', 'CLARKE': '19039', 'CLAY': '19041', 'CLAYTON': '19043', 'CLINTON': '19045', 'CRAWFORD': '19047', 'DALLAS': '19049', 'DAVIS': '19051', 'DECATUR': '19053', 'DELAWARE': '19055', 'DES MOINES': '19057', 'DICKINSON': '19059', 'DUBUQUE': '19061', 'EMMET': '19063', 'FAYETTE': '19065', 'FLOYD': '19067', 'FRANKLIN': '19069', 'FREMONT': '19071', 'GREENE': '19073', 'GRUNDY': '19075', 'GUTHRIE': '19077', 'HAMILTON': '19079', 'HANCOCK': '19081', 'HARDIN': '19083', 'HARRISON': '19085', 'HENRY': '19087', 'HOWARD': '19089', 'HUMBOLDT': '19091', 'IDA': '19093', 'IOWA': '19095', 'JACKSON': '19097', 'JASPER': '19099', 'JEFFERSON': '19101', 'JOHNSON': '19103', 'JONES': '19105', 'KEOKUK': '19107', 'KOSSUTH': '19109', 'LEE': '19111', 'LINN': '19113', 'LOUISA': '19115', 'LUCAS': '19117', 'LYON': '19119', 'MADISON': '19121', 'MAHASKA': '19123', 'MARION': '19125', 'MARSHALL': '19127', 'MILLS': '19129', 'MITCHELL': '19131', 'MONONA': '19133', 'MONROE': '19135', 'MONTGOMERY': '19137', 'MUSCATINE': '19139', 'O BRIEN': '19141', 'OSCEOLA': '19143', 'PAGE': '19145', 'PALO ALTO': '19147', 'PLYMOUTH': '19149', 'POCAHONTAS': '19151', 'POLK': '19153', 'POTTAWATTAMIE': '19155', 'POWESHIEK': '19157', 'RINGGOLD': '19159', 'SAC': '19161', 'SCOTT': '19163', 'SHELBY': '19165', 'SIOUX': '19167', 'STORY': '19169', 'TAMA': '19171', 'TAYLOR': '19173', 'UNION': '19175', 'VAN BUREN': '19177', 'WAPELLO': '19179', 'WARREN': '19181', 'WASHINGTON': '19183', 'WAYNE': '19185', 'WEBSTER': '19187', 'WINNEBAGO': '19189', 'WINNESHIEK': '19191', 'WOODBURY': '19193', 'WORTH': '19195', 'WRIGHT': '19197'}, 'KS': {'ALLEN': '20001', 'ANDERSON': '20003', 'ATCHISON': '20005', 'BARBER': '20007', 'BARTON': '20009', 'BOURBON': '20011', 'BROWN': '20013', 'BUTLER': '20015', 'CHASE': '20017', 'CHAUTAUQUA': '20019', 'CHEROKEE': '20021', 'CHEYENNE': '20023', 'CLARK': '20025', 'CLAY': '20027', 'CLOUD': '20029', 'COFFEY': '20031', 'COMANCHE': '20033', 'COWLEY': '20035', 'CRAWFORD': '20037', 'DECATUR': '20039', 'DICKINSON': '20041', 'DONIPHAN': '20043', 'DOUGLAS': '20045', 'EDWARDS': '20047', 'ELK': '20049', 'ELLIS': '20051', 'ELLSWORTH': '20053', 'FINNEY': '20055', 'FORD': '20057', 'FRANKLIN': '20059', 'GEARY': '20061', 'GOVE': '20063', 'GRAHAM': '20065', 'GRANT': '20067', 'GRAY': '20069', 'GREELEY': '20071', 'GREENWOOD': '20073', 'HAMILTON': '20075', 'HARPER': '20077', 'HARVEY': '20079', 'HASKELL': '20081', 'HODGEMAN': '20083', 'JACKSON': '20085', 'JEFFERSON': '20087', 'JEWELL': '20089', 'JOHNSON': '20091', 'KEARNY': '20093', 'KINGMAN': '20095', 'KIOWA': '20097', 'LABETTE': '20099', 'LANE': '20101', 'LEAVENWORTH': '20103', 'LINCOLN': '20105', 'LINN': '20107', 'LOGAN': '20109', 'LYON': '20111', 'MCPHERSON': '20113', 'MARION': '20115', 'MARSHALL': '20117', 'MEADE': '20119', 'MIAMI': '20121', 'MITCHELL': '20123', 'MONTGOMERY': '20125', 'MORRIS': '20127', 'MORTON': '20129', 'NEMAHA': '20131', 'NEOSHO': '20133', 'NESS': '20135', 'NORTON': '20137', 'OSAGE': '20139', 'OSBORNE': '20141', 'OTTAWA': '20143', 'PAWNEE': '20145', 'PHILLIPS': '20147', 'POTTAWATOMIE': '20149', 'PRATT': '20151', 'RAWLINS': '20153', 'RENO': '20155', 'REPUBLIC': '20157', 'RICE': '20159', 'RILEY': '20161', 'ROOKS': '20163', 'RUSH': '20165', 'RUSSELL': '20167', 'SALINE': '20169', 'SCOTT': '20171', 'SEDGWICK': '20173', 'SEWARD': '20175', 'SHAWNEE': '20177', 'SHERIDAN': '20179', 'SHERMAN': '20181', 'SMITH': '20183', 'STAFFORD': '20185', 'STANTON': '20187', 'STEVENS': '20189', 'SUMNER': '20191', 'THOMAS': '20193', 'TREGO': '20195', 'WABAUNSEE': '20197', 'WALLACE': '20199', 'WASHINGTON': '20201', 'WICHITA': '20203', 'WILSON': '20205', 'WOODSON': '20207', 'WYANDOTTE': '20209'}, 'KY': {'ADAIR': '21001', 'ALLEN': '21003', 'ANDERSON': '21005', 'BALLARD': '21007', 'BARREN': '21009', 'BATH': '21011', 'BELL': '21013', 'BOONE': '21015', 'BOURBON': '21017', 'BOYD': '21019', 'BOYLE': '21021', 'BRACKEN': '21023', 'BREATHITT': '21025', 'BRECKINRIDGE': '21027', 'BULLITT': '21029', 'BUTLER': '21031', 'CALDWELL': '21033', 'CALLOWAY': '21035', 'CAMPBELL': '21037', 'CARLISLE': '21039', 'CARROLL': '21041', 'CARTER': '21043', 'CASEY': '21045', 'CHRISTIAN': '21047', 'CLARK': '21049', 'CLAY': '21051', 'CLINTON': '21053', 'CRITTENDEN': '21055', 'CUMBERLAND': '21057', 'DAVIESS': '21059', 'EDMONSON': '21061', 'ELLIOTT': '21063', 'ESTILL': '21065', 'FAYETTE': '21067', 'FLEMING': '21069', 'FLOYD': '21071', 'FRANKLIN': '21073', 'FULTON': '21075', 'GALLATIN': '21077', 'GARRARD': '21079', 'GRANT': '21081', 'GRAVES': '21083', 'GRAYSON': '21085', 'GREEN': '21087', 'GREENUP': '21089', 'HANCOCK': '21091', 'HARDIN': '21093', 'HARLAN': '21095', 'HARRISON': '21097', 'HART': '21099', 'HENDERSON': '21101', 'HENRY': '21103', 'HICKMAN': '21105', 'HOPKINS': '21107', 'JACKSON': '21109', 'JEFFERSON': '21111', 'JESSAMINE': '21113', 'JOHNSON': '21115', 'KENTON': '21117', 'KNOTT': '21119', 'KNOX': '21121', 'LARUE': '21123', 'LAUREL': '21125', 'LAWRENCE': '21127', 'LEE': '21129', 'LESLIE': '21131', 'LETCHER': '21133', 'LEWIS': '21135', 'LINCOLN': '21137', 'LIVINGSTON': '21139', 'LOGAN': '21141', 'LYON': '21143', 'MCCRACKEN': '21145', 'MCCREARY': '21147', 'MCLEAN': '21149', 'MADISON': '21151', 'MAGOFFIN': '21153', 'MARION': '21155', 'MARSHALL': '21157', 'MARTIN': '21159', 'MASON': '21161', 'MEADE': '21163', 'MENIFEE': '21165', 'MERCER': '21167', 'METCALFE': '21169', 'MONROE': '21171', 'MONTGOMERY': '21173', 'MORGAN': '21175', 'MUHLENBERG': '21177', 'NELSON': '21179', 'NICHOLAS': '21181', 'OHIO': '21183', 'OLDHAM': '21185', 'OWEN': '21187', 'OWSLEY': '21189', 'PENDLETON': '21191', 'PERRY': '21193', 'PIKE': '21195', 'POWELL': '21197', 'PULASKI': '21199', 'ROBERTSON': '21201', 'ROCKCASTLE': '21203', 'ROWAN': '21205', 'RUSSELL': '21207', 'SCOTT': '21209', 'SHELBY': '21211', 'SIMPSON': '21213', 'SPENCER': '21215', 'TAYLOR': '21217', 'TODD': '21219', 'TRIGG': '21221', 'TRIMBLE': '21223', 'UNION': '21225', 'WARREN': '21227', 'WASHINGTON': '21229', 'WAYNE': '21231', 'WEBSTER': '21233', 'WHITLEY': '21235', 'WOLFE': '21237', 'WOODFORD': '21239'}, 'LA': {'ACADIA': '22001', 'ALLEN': '22003', 'ASCENSION': '22005', 'ASSUMPTION': '22007', 'AVOYELLES': '22009', 'BEAUREGARD': '22011', 'BIENVILLE': '22013', 'BOSSIER': '22015', 'CADDO': '22017', 'CALCASIEU': '22019', 'CALDWELL': '22021', 'CAMERON': '22023', 'CATAHOULA': '22025', 'CLAIBORNE': '22027', 'CONCORDIA': '22029', 'DE SOTO': '22031', 'EAST BATON ROUGE': '22033', 'EAST CARROLL': '22035', 'EAST FELICIANA': '22037', 'EVANGELINE': '22039', 'FRANKLIN': '22041', 'GRANT': '22043', 'IBERIA': '22045', 'IBERVILLE': '22047', 'JACKSON': '22049', 'JEFFERSON': '22051', 'JEFFERSON DAVIS': '22053', 'LAFAYETTE': '22055', 'LAFOURCHE': '22057', 'LA SALLE': '22059', 'LINCOLN': '22061', 'LIVINGSTON': '22063', 'MADISON': '22065', 'MOREHOUSE': '22067', 'NATCHITOCHES': '22069', 'ORLEANS': '22071', 'OUACHITA': '22073', 'PLAQUEMINES': '22075', 'POINTE COUPEE': '22077', 'RAPIDES': '22079', 'RED RIVER': '22081', 'RICHLAND': '22083', 'SABINE': '22085', 'ST BERNARD': '22087', 'ST CHARLES': '22089', 'ST HELENA': '22091', 'ST JAMES': '22093', 'ST JOHN THE BAPTIST': '22095', 'ST LANDRY': '22097', 'ST MARTIN': '22099', 'ST MARY': '22101', 'ST TAMMANY': '22103', 'TANGIPAHOA': '22105', 'TENSAS': '22107', 'TERREBONNE': '22109', 'UNION': '22111', 'VERMILION': '22113', 'VERNON': '22115', 'WASHINGTON': '22117', 'WEBSTER': '22119', 'WEST BATON ROUGE': '22121', 'WEST CARROLL': '22123', 'WEST FELICIANA': '22125', 'WINN': '22127'}, 'ME': {'ANDROSCOGGIN': '23001', 'AROOSTOOK': '23003', 'CUMBERLAND': '23005', 'FRANKLIN': '23007', 'HANCOCK': '23009', 'KENNEBEC': '23011', 'KNOX': '23013', 'LINCOLN': '23015', 'OXFORD': '23017', 'PENOBSCOT': '23019', 'PISCATAQUIS': '23021', 'SAGADAHOC': '23023', 'SOMERSET': '23025', 'WALDO': '23027', 'WASHINGTON': '23029', 'YORK': '23031'}, 'MD': {'ALLEGANY': '24001', 'ANNE ARUNDEL': '24003', 'BALTIMORE': '24005', 'CALVERT': '24009', 'CAROLINE': '24011', 'CARROLL': '24013', 'CECIL': '24015', 'CHARLES': '24017', 'DORCHESTER': '24019', 'FREDERICK': '24021', 'GARRETT': '24023', 'HARFORD': '24025', 'HOWARD': '24027', 'KENT': '24029', 'MONTGOMERY': '24031', 'PRINCE GEORGES': '24033', 'QUEEN ANNES': '24035', 'ST MARYS': '24037', 'SOMERSET': '24039', 'TALBOT': '24041', 'WASHINGTON': '24043', 'WICOMICO': '24045', 'WORCESTER': '24047', 'BALTIMORE CITY': '24510'}, 'MA': {'BARNSTABLE': '25001', 'BERKSHIRE': '25003', 'BRISTOL': '25005', 'DUKES': '25007', 'ESSEX': '25009', 'FRANKLIN': '25011', 'HAMPDEN': '25013', 'HAMPSHIRE': '25015', 'MIDDLESEX': '25017', 'NANTUCKET': '25019', 'NORFOLK': '25021', 'PLYMOUTH': '25023', 'SUFFOLK': '25025', 'WORCESTER': '25027'}, 'MI': {'ALCONA': '26001', 'ALGER': '26003', 'ALLEGAN': '26005', 'ALPENA': '26007', 'ANTRIM': '26009', 'ARENAC': '26011', 'BARAGA': '26013', 'BARRY': '26015', 'BAY': '26017', 'BENZIE': '26019', 'BERRIEN': '26021', 'BRANCH': '26023', 'CALHOUN': '26025', 'CASS': '26027', 'CHARLEVOIX': '26029', 'CHEBOYGAN': '26031', 'CHIPPEWA': '26033', 'CLARE': '26035', 'CLINTON': '26037', 'CRAWFORD': '26039', 'DELTA': '26041', 'DICKINSON': '26043', 'EATON': '26045', 'EMMET': '26047', 'GENESEE': '26049', 'GLADWIN': '26051', 'GOGEBIC': '26053', 'GRAND TRAVERSE': '26055', 'GRATIOT': '26057', 'HILLSDALE': '26059', 'HOUGHTON': '26061', 'HURON': '26063', 'INGHAM': '26065', 'IONIA': '26067', 'IOSCO': '26069', 'IRON': '26071', 'ISABELLA': '26073', 'JACKSON': '26075', 'KALAMAZOO': '26077', 'KALKASKA': '26079', 'KENT': '26081', 'KEWEENAW': '26083', 'LAKE': '26085', 'LAPEER': '26087', 'LEELANAU': '26089', 'LENAWEE': '26091', 'LIVINGSTON': '26093', 'LUCE': '26095', 'MACKINAC': '26097', 'MACOMB': '26099', 'MANISTEE': '26101', 'MARQUETTE': '26103', 'MASON': '26105', 'MECOSTA': '26107', 'MENOMINEE': '26109', 'MIDLAND': '26111', 'MISSAUKEE': '26113', 'MONROE': '26115', 'MONTCALM': '26117', 'MONTMORENCY': '26119', 'MUSKEGON': '26121', 'NEWAYGO': '26123', 'OAKLAND': '26125', 'OCEANA': '26127', 'OGEMAW': '26129', 'ONTONAGON': '26131', 'OSCEOLA': '26133', 'OSCODA': '26135', 'OTSEGO': '26137', 'OTTAWA': '26139', 'PRESQUE ISLE': '26141', 'ROSCOMMON': '26143', 'SAGINAW': '26145', 'ST CLAIR': '26147', 'ST JOSEPH': '26149', 'SANILAC': '26151', 'SCHOOLCRAFT': '26153', 'SHIAWASSEE': '26155', 'TUSCOLA': '26157', 'VAN BUREN': '26159', 'WASHTENAW': '26161', 'WAYNE': '26163', 'WEXFORD': '26165'}, 'MN': {'AITKIN': '27001', 'ANOKA': '27003', 'BECKER': '27005', 'BELTRAMI': '27007', 'BENTON': '27009', 'BIG STONE': '27011', 'BLUE EARTH': '27013', 'BROWN': '27015', 'CARLTON': '27017', 'CARVER': '27019', 'CASS': '27021', 'CHIPPEWA': '27023', 'CHISAGO': '27025', 'CLAY': '27027', 'CLEARWATER': '27029', 'COOK': '27031', 'COTTONWOOD': '27033', 'CROW WING': '27035', 'DAKOTA': '27037', 'DODGE': '27039', 'DOUGLAS': '27041', 'FARIBAULT': '27043', 'FILLMORE': '27045', 'FREEBORN': '27047', 'GOODHUE': '27049', 'GRANT': '27051', 'HENNEPIN': '27053', 'HOUSTON': '27055', 'HUBBARD': '27057', 'ISANTI': '27059', 'ITASCA': '27061', 'JACKSON': '27063', 'KANABEC': '27065', 'KANDIYOHI': '27067', 'KITTSON': '27069', 'KOOCHICHING': '27071', 'LAC QUI PARLE': '27073', 'LAKE': '27075', 'LAKE OF THE WOODS': '27077', 'LE SUEUR': '27079', 'LINCOLN': '27081', 'LYON': '27083', 'MCLEOD': '27085', 'MAHNOMEN': '27087', 'MARSHALL': '27089', 'MARTIN': '27091', 'MEEKER': '27093', 'MILLE LACS': '27095', 'MORRISON': '27097', 'MOWER': '27099', 'MURRAY': '27101', 'NICOLLET': '27103', 'NOBLES': '27105', 'NORMAN': '27107', 'OLMSTED': '27109', 'OTTER TAIL': '27111', 'PENNINGTON': '27113', 'PINE': '27115', 'PIPESTONE': '27117', 'POLK': '27119', 'POPE': '27121', 'RAMSEY': '27123', 'RED LAKE': '27125', 'REDWOOD': '27127', 'RENVILLE': '27129', 'RICE': '27131', 'ROCK': '27133', 'ROSEAU': '27135', 'ST LOUIS': '27137', 'SCOTT': '27139', 'SHERBURNE': '27141', 'SIBLEY': '27143', 'STEARNS': '27145', 'STEELE': '27147', 'STEVENS': '27149', 'SWIFT': '27151', 'TODD': '27153', 'TRAVERSE': '27155', 'WABASHA': '27157', 'WADENA': '27159', 'WASECA': '27161', 'WASHINGTON': '27163', 'WATONWAN': '27165', 'WILKIN': '27167', 'WINONA': '27169', 'WRIGHT': '27171', 'YELLOW MEDICINE': '27173'}, 'MS': {'ADAMS': '28001', 'ALCORN': '28003', 'AMITE': '28005', 'ATTALA': '28007', 'BENTON': '28009', 'BOLIVAR': '28011', 'CALHOUN': '28013', 'CARROLL': '28015', 'CHICKASAW': '28017', 'CHOCTAW': '28019', 'CLAIBORNE': '28021', 'CLARKE': '28023', 'CLAY': '28025', 'COAHOMA': '28027', 'COPIAH': '28029', 'COVINGTON': '28031', 'DE SOTO': '28033', 'FORREST': '28035', 'FRANKLIN': '28037', 'GEORGE': '28039', 'GREENE': '28041', 'GRENADA': '28043', 'HANCOCK': '28045', 'HARRISON': '28047', 'HINDS': '28049', 'HOLMES': '28051', 'HUMPHREYS': '28053', 'ISSAQUENA': '28055', 'ITAWAMBA': '28057', 'JACKSON': '28059', 'JASPER': '28061', 'JEFFERSON': '28063', 'JEFFERSON DAVIS': '28065', 'JONES': '28067', 'KEMPER': '28069', 'LAFAYETTE': '28071', 'LAMAR': '28073', 'LAUDERDALE': '28075', 'LAWRENCE': '28077', 'LEAKE': '28079', 'LEE': '28081', 'LEFLORE': '28083', 'LINCOLN': '28085', 'LOWNDES': '28087', 'MADISON': '28089', 'MARION': '28091', 'MARSHALL': '28093', 'MONROE': '28095', 'MONTGOMERY': '28097', 'NESHOBA': '28099', 'NEWTON': '28101', 'NOXUBEE': '28103', 'OKTIBBEHA': '28105', 'PANOLA': '28107', 'PEARL RIVER': '28109', 'PERRY': '28111', 'PIKE': '28113', 'PONTOTOC': '28115', 'PRENTISS': '28117', 'QUITMAN': '28119', 'RANKIN': '28121', 'SCOTT': '28123', 'SHARKEY': '28125', 'SIMPSON': '28127', 'SMITH': '28129', 'STONE': '28131', 'SUNFLOWER': '28133', 'TALLAHATCHIE': '28135', 'TATE': '28137', 'TIPPAH': '28139', 'TISHOMINGO': '28141', 'TUNICA': '28143', 'UNION': '28145', 'WALTHALL': '28147', 'WARREN': '28149', 'WASHINGTON': '28151', 'WAYNE': '28153', 'WEBSTER': '28155', 'WILKINSON': '28157', 'WINSTON': '28159', 'YALOBUSHA': '28161', 'YAZOO': '28163'}, 'MO': {'ADAIR': '29001', 'ANDREW': '29003', 'ATCHISON': '29005', 'AUDRAIN': '29007', 'BARRY': '29009', 'BARTON': '29011', 'BATES': '29013', 'BENTON': '29015', 'BOLLINGER': '29017', 'BOONE': '29019', 'BUCHANAN': '29021', 'BUTLER': '29023', 'CALDWELL': '29025', 'CALLAWAY': '29027', 'CAMDEN': '29029', 'CAPE GIRARDEAU': '29031', 'CARROLL': '29033', 'CARTER': '29035', 'CASS': '29037', 'CEDAR': '29039', 'CHARITON': '29041', 'CHRISTIAN': '29043', 'CLARK': '29045', 'CLAY': '29047', 'CLINTON': '29049', 'COLE': '29051', 'COOPER': '29053', 'CRAWFORD': '29055', 'DADE': '29057', 'DALLAS': '29059', 'DAVIESS': '29061', 'DE KALB': '29063', 'DENT': '29065', 'DOUGLAS': '29067', 'DUNKLIN': '29069', 'FRANKLIN': '29071', 'GASCONADE': '29073', 'GENTRY': '29075', 'GREENE': '29077', 'GRUNDY': '29079', 'HARRISON': '29081', 'HENRY': '29083', 'HICKORY': '29085', 'HOLT': '29087', 'HOWARD': '29089', 'HOWELL': '29091', 'IRON': '29093', 'JACKSON': '29095', 'JASPER': '29097', 'JEFFERSON': '29099', 'JOHNSON': '29101', 'KNOX': '29103', 'LACLEDE': '29105', 'LAFAYETTE': '29107', 'LAWRENCE': '29109', 'LEWIS': '29111', 'LINCOLN': '29113', 'LINN': '29115', 'LIVINGSTON': '29117', 'MCDONALD': '29119', 'MACON': '29121', 'MADISON': '29123', 'MARIES': '29125', 'MARION': '29127', 'MERCER': '29129', 'MILLER': '29131', 'MISSISSIPPI': '29133', 'MONITEAU': '29135', 'MONROE': '29137', 'MONTGOMERY': '29139', 'MORGAN': '29141', 'NEW MADRID': '29143', 'NEWTON': '29145', 'NODAWAY': '29147', 'OREGON': '29149', 'OSAGE': '29151', 'OZARK': '29153', 'PEMISCOT': '29155', 'PERRY': '29157', 'PETTIS': '29159', 'PHELPS': '29161', 'PIKE': '29163', 'PLATTE': '29165', 'POLK': '29167', 'PULASKI': '29169', 'PUTNAM': '29171', 'RALLS': '29173', 'RANDOLPH': '29175', 'RAY': '29177', 'REYNOLDS': '29179', 'RIPLEY': '29181', 'ST CHARLES': '29183', 'ST CLAIR': '29185', 'STE. GENEVIEVE': '29186', 'ST FRANCOIS': '29187', 'ST LOUIS': '29189', 'SALINE': '29195', 'SCHUYLER': '29197', 'SCOTLAND': '29199', 'SCOTT': '29201', 'SHANNON': '29203', 'SHELBY': '29205', 'STODDARD': '29207', 'STONE': '29209', 'SULLIVAN': '29211', 'TANEY': '29213', 'TEXAS': '29215', 'VERNON': '29217', 'WARREN': '29219', 'WASHINGTON': '29221', 'WAYNE': '29223', 'WEBSTER': '29225', 'WORTH': '29227', 'WRIGHT': '29229', 'ST LOUIS CITY': '29510'}, 'MT': {'BEAVERHEAD': '30001', 'BIG HORN': '30003', 'BLAINE': '30005', 'BROADWATER': '30007', 'CARBON': '30009', 'CARTER': '30011', 'CASCADE': '30013', 'CHOUTEAU': '30015', 'CUSTER': '30017', 'DANIELS': '30019', 'DAWSON': '30021', 'DEER LODGE': '30023', 'FALLON': '30025', 'FERGUS': '30027', 'FLATHEAD': '30029', 'GALLATIN': '30031', 'GARFIELD': '30033', 'GLACIER': '30035', 'GOLDEN VALLEY': '30037', 'GRANITE': '30039', 'HILL': '30041', 'JEFFERSON': '30043', 'JUDITH BASIN': '30045', 'LAKE': '30047', 'LEWIS AND CLARK': '30049', 'LIBERTY': '30051', 'LINCOLN': '30053', 'MCCONE': '30055', 'MADISON': '30057', 'MEAGHER': '30059', 'MINERAL': '30061', 'MISSOULA': '30063', 'MUSSELSHELL': '30065', 'PARK': '30067', 'PETROLEUM': '30069', 'PHILLIPS': '30071', 'PONDERA': '30073', 'POWDER RIVER': '30075', 'POWELL': '30077', 'PRAIRIE': '30079', 'RAVALLI': '30081', 'RICHLAND': '30083', 'ROOSEVELT': '30085', 'ROSEBUD': '30087', 'SANDERS': '30089', 'SHERIDAN': '30091', 'SILVER BOW': '30093', 'STILLWATER': '30095', 'SWEET GRASS': '30097', 'TETON': '30099', 'TOOLE': '30101', 'TREASURE': '30103', 'VALLEY': '30105', 'WHEATLAND': '30107', 'WIBAUX': '30109', 'YELLOWSTONE': '30111', 'YELLOWSTONE NAT PARK': '30113'}, 'NE': {'ADAMS': '31001', 'ANTELOPE': '31003', 'ARTHUR': '31005', 'BANNER': '31007', 'BLAINE': '31009', 'BOONE': '31011', 'BOX BUTTE': '31013', 'BOYD': '31015', 'BROWN': '31017', 'BUFFALO': '31019', 'BURT': '31021', 'BUTLER': '31023', 'CASS': '31025', 'CEDAR': '31027', 'CHASE': '31029', 'CHERRY': '31031', 'CHEYENNE': '31033', 'CLAY': '31035', 'COLFAX': '31037', 'CUMING': '31039', 'CUSTER': '31041', 'DAKOTA': '31043', 'DAWES': '31045', 'DAWSON': '31047', 'DEUEL': '31049', 'DIXON': '31051', 'DODGE': '31053', 'DOUGLAS': '31055', 'DUNDY': '31057', 'FILLMORE': '31059', 'FRANKLIN': '31061', 'FRONTIER': '31063', 'FURNAS': '31065', 'GAGE': '31067', 'GARDEN': '31069', 'GARFIELD': '31071', 'GOSPER': '31073', 'GRANT': '31075', 'GREELEY': '31077', 'HALL': '31079', 'HAMILTON': '31081', 'HARLAN': '31083', 'HAYES': '31085', 'HITCHCOCK': '31087', 'HOLT': '31089', 'HOOKER': '31091', 'HOWARD': '31093', 'JEFFERSON': '31095', 'JOHNSON': '31097', 'KEARNEY': '31099', 'KEITH': '31101', 'KEYA PAHA': '31103', 'KIMBALL': '31105', 'KNOX': '31107', 'LANCASTER': '31109', 'LINCOLN': '31111', 'LOGAN': '31113', 'LOUP': '31115', 'MCPHERSON': '31117', 'MADISON': '31119', 'MERRICK': '31121', 'MORRILL': '31123', 'NANCE': '31125', 'NEMAHA': '31127', 'NUCKOLLS': '31129', 'OTOE': '31131', 'PAWNEE': '31133', 'PERKINS': '31135', 'PHELPS': '31137', 'PIERCE': '31139', 'PLATTE': '31141', 'POLK': '31143', 'RED WILLOW': '31145', 'RICHARDSON': '31147', 'ROCK': '31149', 'SALINE': '31151', 'SARPY': '31153', 'SAUNDERS': '31155', 'SCOTTS BLUFF': '31157', 'SEWARD': '31159', 'SHERIDAN': '31161', 'SHERMAN': '31163', 'SIOUX': '31165', 'STANTON': '31167', 'THAYER': '31169', 'THOMAS': '31171', 'THURSTON': '31173', 'VALLEY': '31175', 'WASHINGTON': '31177', 'WAYNE': '31179', 'WEBSTER': '31181', 'WHEELER': '31183', 'YORK': '31185'}, 'NV': {'CHURCHILL': '32001', 'CLARK': '32003', 'DOUGLAS': '32005', 'ELKO': '32007', 'ESMERALDA': '32009', 'EUREKA': '32011', 'HUMBOLDT': '32013', 'LANDER': '32015', 'LINCOLN': '32017', 'LYON': '32019', 'MINERAL': '32021', 'NYE': '32023', 'PERSHING': '32027', 'STOREY': '32029', 'WASHOE': '32031', 'WHITE PINE': '32033', 'CARSON CITY': '32510'}, 'NH': {'BELKNAP': '33001', 'CARROLL': '33003', 'CHESHIRE': '33005', 'COOS': '33007', 'GRAFTON': '33009', 'HILLSBOROUGH': '33011', 'MERRIMACK': '33013', 'ROCKINGHAM': '33015', 'STRAFFORD': '33017', 'SULLIVAN': '33019'}, 'NJ': {'ATLANTIC': '34001', 'BERGEN': '34003', 'BURLINGTON': '34005', 'CAMDEN': '34007', 'CAPE MAY': '34009', 'CUMBERLAND': '34011', 'ESSEX': '34013', 'GLOUCESTER': '34015', 'HUDSON': '34017', 'HUNTERDON': '34019', 'MERCER': '34021', 'MIDDLESEX': '34023', 'MONMOUTH': '34025', 'MORRIS': '34027', 'OCEAN': '34029', 'PASSAIC': '34031', 'SALEM': '34033', 'SOMERSET': '34035', 'SUSSEX': '34037', 'UNION': '34039', 'WARREN': '34041'}, 'NM': {'BERNALILLO': '35001', 'CATRON': '35003', 'CHAVES': '35005', 'CIBOLA': '35006', 'COLFAX': '35007', 'CURRY': '35009', 'DE BACA': '35011', 'DONA ANA': '35013', 'EDDY': '35015', 'GRANT': '35017', 'GUADALUPE': '35019', 'HARDING': '35021', 'HIDALGO': '35023', 'LEA': '35025', 'LINCOLN': '35027', 'LOS ALAMOS': '35028', 'LUNA': '35029', 'MCKINLEY': '35031', 'MORA': '35033', 'OTERO': '35035', 'QUAY': '35037', 'RIO ARRIBA': '35039', 'ROOSEVELT': '35041', 'SANDOVAL': '35043', 'SAN JUAN': '35045', 'SAN MIGUEL': '35047', 'SANTA FE': '35049', 'SIERRA': '35051', 'SOCORRO': '35053', 'TAOS': '35055', 'TORRANCE': '35057', 'UNION': '35059', 'VALENCIA': '35061'}, 'NY': {'ALBANY': '36001', 'ALLEGANY': '36003', 'BRONX': '36005', 'BROOME': '36007', 'CATTARAUGUS': '36009', 'CAYUGA': '36011', 'CHAUTAUQUA': '36013', 'CHEMUNG': '36015', 'CHENANGO': '36017', 'CLINTON': '36019', 'COLUMBIA': '36021', 'CORTLAND': '36023', 'DELAWARE': '36025', 'DUTCHESS': '36027', 'ERIE': '36029', 'ESSEX': '36031', 'FRANKLIN': '36033', 'FULTON': '36035', 'GENESEE': '36037', 'GREENE': '36039', 'HAMILTON': '36041', 'HERKIMER': '36043', 'JEFFERSON': '36045', 'KINGS': '36047', 'LEWIS': '36049', 'LIVINGSTON': '36051', 'MADISON': '36053', 'MONROE': '36055', 'MONTGOMERY': '36057', 'NASSAU': '36059', 'NEW YORK': '36061', 'NIAGARA': '36063', 'ONEIDA': '36065', 'ONONDAGA': '36067', 'ONTARIO': '36069', 'ORANGE': '36071', 'ORLEANS': '36073', 'OSWEGO': '36075', 'OTSEGO': '36077', 'PUTNAM': '36079', 'QUEENS': '36081', 'RENSSELAER': '36083', 'RICHMOND': '36085', 'ROCKLAND': '36087', 'ST LAWRENCE': '36089', 'SARATOGA': '36091', 'SCHENECTADY': '36093', 'SCHOHARIE': '36095', 'SCHUYLER': '36097', 'SENECA': '36099', 'STEUBEN': '36101', 'SUFFOLK': '36103', 'SULLIVAN': '36105', 'TIOGA': '36107', 'TOMPKINS': '36109', 'ULSTER': '36111', 'WARREN': '36113', 'WASHINGTON': '36115', 'WAYNE': '36117', 'WESTCHESTER': '36119', 'WYOMING': '36121', 'YATES': '36123'}, 'NC': {'ALAMANCE': '37001', 'ALEXANDER': '37003', 'ALLEGHANY': '37005', 'ANSON': '37007', 'ASHE': '37009', 'AVERY': '37011', 'BEAUFORT': '37013', 'BERTIE': '37015', 'BLADEN': '37017', 'BRUNSWICK': '37019', 'BUNCOMBE': '37021', 'BURKE': '37023', 'CABARRUS': '37025', 'CALDWELL': '37027', 'CAMDEN': '37029', 'CARTERET': '37031', 'CASWELL': '37033', 'CATAWBA': '37035', 'CHATHAM': '37037', 'CHEROKEE': '37039', 'CHOWAN': '37041', 'CLAY': '37043', 'CLEVELAND': '37045', 'COLUMBUS': '37047', 'CRAVEN': '37049', 'CUMBERLAND': '37051', 'CURRITUCK': '37053', 'DARE': '37055', 'DAVIDSON': '37057', 'DAVIE': '37059', 'DUPLIN': '37061', 'DURHAM': '37063', 'EDGECOMBE': '37065', 'FORSYTH': '37067', 'FRANKLIN': '37069', 'GASTON': '37071', 'GATES': '37073', 'GRAHAM': '37075', 'GRANVILLE': '37077', 'GREENE': '37079', 'GUILFORD': '37081', 'HALIFAX': '37083', 'HARNETT': '37085', 'HAYWOOD': '37087', 'HENDERSON': '37089', 'HERTFORD': '37091', 'HOKE': '37093', 'HYDE': '37095', 'IREDELL': '37097', 'JACKSON': '37099', 'JOHNSTON': '37101', 'JONES': '37103', 'LEE': '37105', 'LENOIR': '37107', 'LINCOLN': '37109', 'MCDOWELL': '37111', 'MACON': '37113', 'MADISON': '37115', 'MARTIN': '37117', 'MECKLENBURG': '37119', 'MITCHELL': '37121', 'MONTGOMERY': '37123', 'MOORE': '37125', 'NASH': '37127', 'NEW HANOVER': '37129', 'NORTHAMPTON': '37131', 'ONSLOW': '37133', 'ORANGE': '37135', 'PAMLICO': '37137', 'PASQUOTANK': '37139', 'PENDER': '37141', 'PERQUIMANS': '37143', 'PERSON': '37145', 'PITT': '37147', 'POLK': '37149', 'RANDOLPH': '37151', 'RICHMOND': '37153', 'ROBESON': '37155', 'ROCKINGHAM': '37157', 'ROWAN': '37159', 'RUTHERFORD': '37161', 'SAMPSON': '37163', 'SCOTLAND': '37165', 'STANLY': '37167', 'STOKES': '37169', 'SURRY': '37171', 'SWAIN': '37173', 'TRANSYLVANIA': '37175', 'TYRRELL': '37177', 'UNION': '37179', 'VANCE': '37181', 'WAKE': '37183', 'WARREN': '37185', 'WASHINGTON': '37187', 'WATAUGA': '37189', 'WAYNE': '37191', 'WILKES': '37193', 'WILSON': '37195', 'YADKIN': '37197', 'YANCEY': '37199'}, 'ND': {'ADAMS': '38001', 'BARNES': '38003', 'BENSON': '38005', 'BILLINGS': '38007', 'BOTTINEAU': '38009', 'BOWMAN': '38011', 'BURKE': '38013', 'BURLEIGH': '38015', 'CASS': '38017', 'CAVALIER': '38019', 'DICKEY': '38021', 'DIVIDE': '38023', 'DUNN': '38025', 'EDDY': '38027', 'EMMONS': '38029', 'FOSTER': '38031', 'GOLDEN VALLEY': '38033', 'GRAND FORKS': '38035', 'GRANT': '38037', 'GRIGGS': '38039', 'HETTINGER': '38041', 'KIDDER': '38043', 'LA MOURE': '38045', 'LOGAN': '38047', 'MCHENRY': '38049', 'MCINTOSH': '38051', 'MCKENZIE': '38053', 'MCLEAN': '38055', 'MERCER': '38057', 'MORTON': '38059', 'MOUNTRAIL': '38061', 'NELSON': '38063', 'OLIVER': '38065', 'PEMBINA': '38067', 'PIERCE': '38069', 'RAMSEY': '38071', 'RANSOM': '38073', 'RENVILLE': '38075', 'RICHLAND': '38077', 'ROLETTE': '38079', 'SARGENT': '38081', 'SHERIDAN': '38083', 'SIOUX': '38085', 'SLOPE': '38087', 'STARK': '38089', 'STEELE': '38091', 'STUTSMAN': '38093', 'TOWNER': '38095', 'TRAILL': '38097', 'WALSH': '38099', 'WARD': '38101', 'WELLS': '38103', 'WILLIAMS': '38105'}, 'OH': {'ADAMS': '39001', 'ALLEN': '39003', 'ASHLAND': '39005', 'ASHTABULA': '39007', 'ATHENS': '39009', 'AUGLAIZE': '39011', 'BELMONT': '39013', 'BROWN': '39015', 'BUTLER': '39017', 'CARROLL': '39019', 'CHAMPAIGN': '39021', 'CLARK': '39023', 'CLERMONT': '39025', 'CLINTON': '39027', 'COLUMBIANA': '39029', 'COSHOCTON': '39031', 'CRAWFORD': '39033', 'CUYAHOGA': '39035', 'DARKE': '39037', 'DEFIANCE': '39039', 'DELAWARE': '39041', 'ERIE': '39043', 'FAIRFIELD': '39045', 'FAYETTE': '39047', 'FRANKLIN': '39049', 'FULTON': '39051', 'GALLIA': '39053', 'GEAUGA': '39055', 'GREENE': '39057', 'GUERNSEY': '39059', 'HAMILTON': '39061', 'HANCOCK': '39063', 'HARDIN': '39065', 'HARRISON': '39067', 'HENRY': '39069', 'HIGHLAND': '39071', 'HOCKING': '39073', 'HOLMES': '39075', 'HURON': '39077', 'JACKSON': '39079', 'JEFFERSON': '39081', 'KNOX': '39083', 'LAKE': '39085', 'LAWRENCE': '39087', 'LICKING': '39089', 'LOGAN': '39091', 'LORAIN': '39093', 'LUCAS': '39095', 'MADISON': '39097', 'MAHONING': '39099', 'MARION': '39101', 'MEDINA': '39103', 'MEIGS': '39105', 'MERCER': '39107', 'MIAMI': '39109', 'MONROE': '39111', 'MONTGOMERY': '39113', 'MORGAN': '39115', 'MORROW': '39117', 'MUSKINGUM': '39119', 'NOBLE': '39121', 'OTTAWA': '39123', 'PAULDING': '39125', 'PERRY': '39127', 'PICKAWAY': '39129', 'PIKE': '39131', 'PORTAGE': '39133', 'PREBLE': '39135', 'PUTNAM': '39137', 'RICHLAND': '39139', 'ROSS': '39141', 'SANDUSKY': '39143', 'SCIOTO': '39145', 'SENECA': '39147', 'SHELBY': '39149', 'STARK': '39151', 'SUMMIT': '39153', 'TRUMBULL': '39155', 'TUSCARAWAS': '39157', 'UNION': '39159', 'VAN WERT': '39161', 'VINTON': '39163', 'WARREN': '39165', 'WASHINGTON': '39167', 'WAYNE': '39169', 'WILLIAMS': '39171', 'WOOD': '39173', 'WYANDOT': '39175'}, 'OK': {'ADAIR': '40001', 'ALFALFA': '40003', 'ATOKA': '40005', 'BEAVER': '40007', 'BECKHAM': '40009', 'BLAINE': '40011', 'BRYAN': '40013', 'CADDO': '40015', 'CANADIAN': '40017', 'CARTER': '40019', 'CHEROKEE': '40021', 'CHOCTAW': '40023', 'CIMARRON': '40025', 'CLEVELAND': '40027', 'COAL': '40029', 'COMANCHE': '40031', 'COTTON': '40033', 'CRAIG': '40035', 'CREEK': '40037', 'CUSTER': '40039', 'DELAWARE': '40041', 'DEWEY': '40043', 'ELLIS': '40045', 'GARFIELD': '40047', 'GARVIN': '40049', 'GRADY': '40051', 'GRANT': '40053', 'GREER': '40055', 'HARMON': '40057', 'HARPER': '40059', 'HASKELL': '40061', 'HUGHES': '40063', 'JACKSON': '40065', 'JEFFERSON': '40067', 'JOHNSTON': '40069', 'KAY': '40071', 'KINGFISHER': '40073', 'KIOWA': '40075', 'LATIMER': '40077', 'LE FLORE': '40079', 'LINCOLN': '40081', 'LOGAN': '40083', 'LOVE': '40085', 'MCCLAIN': '40087', 'MCCURTAIN': '40089', 'MCINTOSH': '40091', 'MAJOR': '40093', 'MARSHALL': '40095', 'MAYES': '40097', 'MURRAY': '40099', 'MUSKOGEE': '40101', 'NOBLE': '40103', 'NOWATA': '40105', 'OKFUSKEE': '40107', 'OKLAHOMA': '40109', 'OKMULGEE': '40111', 'OSAGE': '40113', 'OTTAWA': '40115', 'PAWNEE': '40117', 'PAYNE': '40119', 'PITTSBURG': '40121', 'PONTOTOC': '40123', 'POTTAWATOMIE': '40125', 'PUSHMATAHA': '40127', 'ROGER MILLS': '40129', 'ROGERS': '40131', 'SEMINOLE': '40133', 'SEQUOYAH': '40135', 'STEPHENS': '40137', 'TEXAS': '40139', 'TILLMAN': '40141', 'TULSA': '40143', 'WAGONER': '40145', 'WASHINGTON': '40147', 'WASHITA': '40149', 'WOODS': '40151', 'WOODWARD': '40153'}, 'OR': {'BAKER': '41001', 'BENTON': '41003', 'CLACKAMAS': '41005', 'CLATSOP': '41007', 'COLUMBIA': '41009', 'COOS': '41011', 'CROOK': '41013', 'CURRY': '41015', 'DESCHUTES': '41017', 'DOUGLAS': '41019', 'GILLIAM': '41021', 'GRANT': '41023', 'HARNEY': '41025', 'HOOD RIVER': '41027', 'JACKSON': '41029', 'JEFFERSON': '41031', 'JOSEPHINE': '41033', 'KLAMATH': '41035', 'LAKE': '41037', 'LANE': '41039', 'LINCOLN': '41041', 'LINN': '41043', 'MALHEUR': '41045', 'MARION': '41047', 'MORROW': '41049', 'MULTNOMAH': '41051', 'POLK': '41053', 'SHERMAN': '41055', 'TILLAMOOK': '41057', 'UMATILLA': '41059', 'UNION': '41061', 'WALLOWA': '41063', 'WASCO': '41065', 'WASHINGTON': '41067', 'WHEELER': '41069', 'YAMHILL': '41071'}, 'PA': {'ADAMS': '42001', 'ALLEGHENY': '42003', 'ARMSTRONG': '42005', 'BEAVER': '42007', 'BEDFORD': '42009', 'BERKS': '42011', 'BLAIR': '42013', 'BRADFORD': '42015', 'BUCKS': '42017', 'BUTLER': '42019', 'CAMBRIA': '42021', 'CAMERON': '42023', 'CARBON': '42025', 'CENTRE': '42027', 'CHESTER': '42029', 'CLARION': '42031', 'CLEARFIELD': '42033', 'CLINTON': '42035', 'COLUMBIA': '42037', 'CRAWFORD': '42039', 'CUMBERLAND': '42041', 'DAUPHIN': '42043', 'DELAWARE': '42045', 'ELK': '42047', 'ERIE': '42049', 'FAYETTE': '42051', 'FOREST': '42053', 'FRANKLIN': '42055', 'FULTON': '42057', 'GREENE': '42059', 'HUNTINGDON': '42061', 'INDIANA': '42063', 'JEFFERSON': '42065', 'JUNIATA': '42067', 'LACKAWANNA': '42069', 'LANCASTER': '42071', 'LAWRENCE': '42073', 'LEBANON': '42075', 'LEHIGH': '42077', 'LUZERNE': '42079', 'LYCOMING': '42081', 'MCKEAN': '42083', 'MERCER': '42085', 'MIFFLIN': '42087', 'MONROE': '42089', 'MONTGOMERY': '42091', 'MONTOUR': '42093', 'NORTHAMPTON': '42095', 'NORTHUMBERLAND': '42097', 'PERRY': '42099', 'PHILADELPHIA': '42101', 'PIKE': '42103', 'POTTER': '42105', 'SCHUYLKILL': '42107', 'SNYDER': '42109', 'SOMERSET': '42111', 'SULLIVAN': '42113', 'SUSQUEHANNA': '42115', 'TIOGA': '42117', 'UNION': '42119', 'VENANGO': '42121', 'WARREN': '42123', 'WASHINGTON': '42125', 'WAYNE': '42127', 'WESTMORELAND': '42129', 'WYOMING': '42131', 'YORK': '42133'}, 'RI': {'BRISTOL': '44001', 'KENT': '44003', 'NEWPORT': '44005', 'PROVIDENCE': '44007', 'WASHINGTON': '44009'}, 'SC': {'ABBEVILLE': '45001', 'AIKEN': '45003', 'ALLENDALE': '45005', 'ANDERSON': '45007', 'BAMBERG': '45009', 'BARNWELL': '45011', 'BEAUFORT': '45013', 'BERKELEY': '45015', 'CALHOUN': '45017', 'CHARLESTON': '45019', 'CHEROKEE': '45021', 'CHESTER': '45023', 'CHESTERFIELD': '45025', 'CLARENDON': '45027', 'COLLETON': '45029', 'DARLINGTON': '45031', 'DILLON': '45033', 'DORCHESTER': '45035', 'EDGEFIELD': '45037', 'FAIRFIELD': '45039', 'FLORENCE': '45041', 'GEORGETOWN': '45043', 'GREENVILLE': '45045', 'GREENWOOD': '45047', 'HAMPTON': '45049', 'HORRY': '45051', 'JASPER': '45053', 'KERSHAW': '45055', 'LANCASTER': '45057', 'LAURENS': '45059', 'LEE': '45061', 'LEXINGTON': '45063', 'MCCORMICK': '45065', 'MARION': '45067', 'MARLBORO': '45069', 'NEWBERRY': '45071', 'OCONEE': '45073', 'ORANGEBURG': '45075', 'PICKENS': '45077', 'RICHLAND': '45079', 'SALUDA': '45081', 'SPARTANBURG': '45083', 'SUMTER': '45085', 'UNION': '45087', 'WILLIAMSBURG': '45089', 'YORK': '45091'}, 'SD': {'AURORA': '46003', 'BEADLE': '46005', 'BENNETT': '46007', 'BON HOMME': '46009', 'BROOKINGS': '46011', 'BROWN': '46013', 'BRULE': '46015', 'BUFFALO': '46017', 'BUTTE': '46019', 'CAMPBELL': '46021', 'CHARLES MIX': '46023', 'CLARK': '46025', 'CLAY': '46027', 'CODINGTON': '46029', 'CORSON': '46031', 'CUSTER': '46033', 'DAVISON': '46035', 'DAY': '46037', 'DEUEL': '46039', 'DEWEY': '46041', 'DOUGLAS': '46043', 'EDMUNDS': '46045', 'FALL RIVER': '46047', 'FAULK': '46049', 'GRANT': '46051', 'GREGORY': '46053', 'HAAKON': '46055', 'HAMLIN': '46057', 'HAND': '46059', 'HANSON': '46061', 'HARDING': '46063', 'HUGHES': '46065', 'HUTCHINSON': '46067', 'HYDE': '46069', 'JACKSON': '46071', 'JERAULD': '46073', 'JONES': '46075', 'KINGSBURY': '46077', 'LAKE': '46079', 'LAWRENCE': '46081', 'LINCOLN': '46083', 'LYMAN': '46085', 'MCCOOK': '46087', 'MCPHERSON': '46089', 'MARSHALL': '46091', 'MEADE': '46093', 'MELLETTE': '46095', 'MINER': '46097', 'MINNEHAHA': '46099', 'MOODY': '46101', 'PENNINGTON': '46103', 'PERKINS': '46105', 'POTTER': '46107', 'ROBERTS': '46109', 'SANBORN': '46111', 'SHANNON': '46113', 'SPINK': '46115', 'STANLEY': '46117', 'SULLY': '46119', 'TODD': '46121', 'TRIPP': '46123', 'TURNER': '46125', 'UNION': '46127', 'WALWORTH': '46129', 'YANKTON': '46135', 'ZIEBACH': '46137'}, 'TN': {'ANDERSON': '47001', 'BEDFORD': '47003', 'BENTON': '47005', 'BLEDSOE': '47007', 'BLOUNT': '47009', 'BRADLEY': '47011', 'CAMPBELL': '47013', 'CANNON': '47015', 'CARROLL': '47017', 'CARTER': '47019', 'CHEATHAM': '47021', 'CHESTER': '47023', 'CLAIBORNE': '47025', 'CLAY': '47027', 'COCKE': '47029', 'COFFEE': '47031', 'CROCKETT': '47033', 'CUMBERLAND': '47035', 'DAVIDSON': '47037', 'DECATUR': '47039', 'DE KALB': '47041', 'DICKSON': '47043', 'DYER': '47045', 'FAYETTE': '47047', 'FENTRESS': '47049', 'FRANKLIN': '47051', 'GIBSON': '47053', 'GILES': '47055', 'GRAINGER': '47057', 'GREENE': '47059', 'GRUNDY': '47061', 'HAMBLEN': '47063', 'HAMILTON': '47065', 'HANCOCK': '47067', 'HARDEMAN': '47069', 'HARDIN': '47071', 'HAWKINS': '47073', 'HAYWOOD': '47075', 'HENDERSON': '47077', 'HENRY': '47079', 'HICKMAN': '47081', 'HOUSTON': '47083', 'HUMPHREYS': '47085', 'JACKSON': '47087', 'JEFFERSON': '47089', 'JOHNSON': '47091', 'KNOX': '47093', 'LAKE': '47095', 'LAUDERDALE': '47097', 'LAWRENCE': '47099', 'LEWIS': '47101', 'LINCOLN': '47103', 'LOUDON': '47105', 'MCMINN': '47107', 'MCNAIRY': '47109', 'MACON': '47111', 'MADISON': '47113', 'MARION': '47115', 'MARSHALL': '47117', 'MAURY': '47119', 'MEIGS': '47121', 'MONROE': '47123', 'MONTGOMERY': '47125', 'MOORE': '47127', 'MORGAN': '47129', 'OBION': '47131', 'OVERTON': '47133', 'PERRY': '47135', 'PICKETT': '47137', 'POLK': '47139', 'PUTNAM': '47141', 'RHEA': '47143', 'ROANE': '47145', 'ROBERTSON': '47147', 'RUTHERFORD': '47149', 'SCOTT': '47151', 'SEQUATCHIE': '47153', 'SEVIER': '47155', 'SHELBY': '47157', 'SMITH': '47159', 'STEWART': '47161', 'SULLIVAN': '47163', 'SUMNER': '47165', 'TIPTON': '47167', 'TROUSDALE': '47169', 'UNICOI': '47171', 'UNION': '47173', 'VAN BUREN': '47175', 'WARREN': '47177', 'WASHINGTON': '47179', 'WAYNE': '47181', 'WEAKLEY': '47183', 'WHITE': '47185', 'WILLIAMSON': '47187', 'WILSON': '47189'}, 'TX': {'ANDERSON': '48001', 'ANDREWS': '48003', 'ANGELINA': '48005', 'ARANSAS': '48007', 'ARCHER': '48009', 'ARMSTRONG': '48011', 'ATASCOSA': '48013', 'AUSTIN': '48015', 'BAILEY': '48017', 'BANDERA': '48019', 'BASTROP': '48021', 'BAYLOR': '48023', 'BEE': '48025', 'BELL': '48027', 'BEXAR': '48029', 'BLANCO': '48031', 'BORDEN': '48033', 'BOSQUE': '48035', 'BOWIE': '48037', 'BRAZORIA': '48039', 'BRAZOS': '48041', 'BREWSTER': '48043', 'BRISCOE': '48045', 'BROOKS': '48047', 'BROWN': '48049', 'BURLESON': '48051', 'BURNET': '48053', 'CALDWELL': '48055', 'CALHOUN': '48057', 'CALLAHAN': '48059', 'CAMERON': '48061', 'CAMP': '48063', 'CARSON': '48065', 'CASS': '48067', 'CASTRO': '48069', 'CHAMBERS': '48071', 'CHEROKEE': '48073', 'CHILDRESS': '48075', 'CLAY': '48077', 'COCHRAN': '48079', 'COKE': '48081', 'COLEMAN': '48083', 'COLLIN': '48085', 'COLLINGSWORTH': '48087', 'COLORADO': '48089', 'COMAL': '48091', 'COMANCHE': '48093', 'CONCHO': '48095', 'COOKE': '48097', 'CORYELL': '48099', 'COTTLE': '48101', 'CRANE': '48103', 'CROCKETT': '48105', 'CROSBY': '48107', 'CULBERSON': '48109', 'DALLAM': '48111', 'DALLAS': '48113', 'DAWSON': '48115', 'DEAF SMITH': '48117', 'DELTA': '48119', 'DENTON': '48121', 'DE WITT': '48123', 'DICKENS': '48125', 'DIMMIT': '48127', 'DONLEY': '48129', 'DUVAL': '48131', 'EASTLAND': '48133', 'ECTOR': '48135', 'EDWARDS': '48137', 'ELLIS': '48139', 'EL PASO': '48141', 'ERATH': '48143', 'FALLS': '48145', 'FANNIN': '48147', 'FAYETTE': '48149', 'FISHER': '48151', 'FLOYD': '48153', 'FOARD': '48155', 'FORT BEND': '48157', 'FRANKLIN': '48159', 'FREESTONE': '48161', 'FRIO': '48163', 'GAINES': '48165', 'GALVESTON': '48167', 'GARZA': '48169', 'GILLESPIE': '48171', 'GLASSCOCK': '48173', 'GOLIAD': '48175', 'GONZALES': '48177', 'GRAY': '48179', 'GRAYSON': '48181', 'GREGG': '48183', 'GRIMES': '48185', 'GUADALUPE': '48187', 'HALE': '48189', 'HALL': '48191', 'HAMILTON': '48193', 'HANSFORD': '48195', 'HARDEMAN': '48197', 'HARDIN': '48199', 'HARRIS': '48201', 'HARRISON': '48203', 'HARTLEY': '48205', 'HASKELL': '48207', 'HAYS': '48209', 'HEMPHILL': '48211', 'HENDERSON': '48213', 'HIDALGO': '48215', 'HILL': '48217', 'HOCKLEY': '48219', 'HOOD': '48221', 'HOPKINS': '48223', 'HOUSTON': '48225', 'HOWARD': '48227', 'HUDSPETH': '48229', 'HUNT': '48231', 'HUTCHINSON': '48233', 'IRION': '48235', 'JACK': '48237', 'JACKSON': '48239', 'JASPER': '48241', 'JEFF DAVIS': '48243', 'JEFFERSON': '48245', 'JIM HOGG': '48247', 'JIM WELLS': '48249', 'JOHNSON': '48251', 'JONES': '48253', 'KARNES': '48255', 'KAUFMAN': '48257', 'KENDALL': '48259', 'KENEDY': '48261', 'KENT': '48263', 'KERR': '48265', 'KIMBLE': '48267', 'KING': '48269', 'KINNEY': '48271', 'KLEBERG': '48273', 'KNOX': '48275', 'LAMAR': '48277', 'LAMB': '48279', 'LAMPASAS': '48281', 'LA SALLE': '48283', 'LAVACA': '48285', 'LEE': '48287', 'LEON': '48289', 'LIBERTY': '48291', 'LIMESTONE': '48293', 'LIPSCOMB': '48295', 'LIVE OAK': '48297', 'LLANO': '48299', 'LOVING': '48301', 'LUBBOCK': '48303', 'LYNN': '48305', 'MCCULLOCH': '48307', 'MCLENNAN': '48309', 'MCMULLEN': '48311', 'MADISON': '48313', 'MARION': '48315', 'MARTIN': '48317', 'MASON': '48319', 'MATAGORDA': '48321', 'MAVERICK': '48323', 'MEDINA': '48325', 'MENARD': '48327', 'MIDLAND': '48329', 'MILAM': '48331', 'MILLS': '48333', 'MITCHELL': '48335', 'MONTAGUE': '48337', 'MONTGOMERY': '48339', 'MOORE': '48341', 'MORRIS': '48343', 'MOTLEY': '48345', 'NACOGDOCHES': '48347', 'NAVARRO': '48349', 'NEWTON': '48351', 'NOLAN': '48353', 'NUECES': '48355', 'OCHILTREE': '48357', 'OLDHAM': '48359', 'ORANGE': '48361', 'PALO PINTO': '48363', 'PANOLA': '48365', 'PARKER': '48367', 'PARMER': '48369', 'PECOS': '48371', 'POLK': '48373', 'POTTER': '48375', 'PRESIDIO': '48377', 'RAINS': '48379', 'RANDALL': '48381', 'REAGAN': '48383', 'REAL': '48385', 'RED RIVER': '48387', 'REEVES': '48389', 'REFUGIO': '48391', 'ROBERTS': '48393', 'ROBERTSON': '48395', 'ROCKWALL': '48397', 'RUNNELS': '48399', 'RUSK': '48401', 'SABINE': '48403', 'SAN AUGUSTINE': '48405', 'SAN JACINTO': '48407', 'SAN PATRICIO': '48409', 'SAN SABA': '48411', 'SCHLEICHER': '48413', 'SCURRY': '48415', 'SHACKELFORD': '48417', 'SHELBY': '48419', 'SHERMAN': '48421', 'SMITH': '48423', 'SOMERVELL': '48425', 'STARR': '48427', 'STEPHENS': '48429', 'STERLING': '48431', 'STONEWALL': '48433', 'SUTTON': '48435', 'SWISHER': '48437', 'TARRANT': '48439', 'TAYLOR': '48441', 'TERRELL': '48443', 'TERRY': '48445', 'THROCKMORTON': '48447', 'TITUS': '48449', 'TOM GREEN': '48451', 'TRAVIS': '48453', 'TRINITY': '48455', 'TYLER': '48457', 'UPSHUR': '48459', 'UPTON': '48461', 'UVALDE': '48463', 'VAL VERDE': '48465', 'VAN ZANDT': '48467', 'VICTORIA': '48469', 'WALKER': '48471', 'WALLER': '48473', 'WARD': '48475', 'WASHINGTON': '48477', 'WEBB': '48479', 'WHARTON': '48481', 'WHEELER': '48483', 'WICHITA': '48485', 'WILBARGER': '48487', 'WILLACY': '48489', 'WILLIAMSON': '48491', 'WILSON': '48493', 'WINKLER': '48495', 'WISE': '48497', 'WOOD': '48499', 'YOAKUM': '48501', 'YOUNG': '48503', 'ZAPATA': '48505', 'ZAVALA': '48507'}, 'UT': {'BEAVER': '49001', 'BOX ELDER': '49003', 'CACHE': '49005', 'CARBON': '49007', 'DAGGETT': '49009', 'DAVIS': '49011', 'DUCHESNE': '49013', 'EMERY': '49015', 'GARFIELD': '49017', 'GRAND': '49019', 'IRON': '49021', 'JUAB': '49023', 'KANE': '49025', 'MILLARD': '49027', 'MORGAN': '49029', 'PIUTE': '49031', 'RICH': '49033', 'SALT LAKE': '49035', 'SAN JUAN': '49037', 'SANPETE': '49039', 'SEVIER': '49041', 'SUMMIT': '49043', 'TOOELE': '49045', 'UINTAH': '49047', 'UTAH': '49049', 'WASATCH': '49051', 'WASHINGTON': '49053', 'WAYNE': '49055', 'WEBER': '49057'}, 'VT': {'ADDISON': '50001', 'BENNINGTON': '50003', 'CALEDONIA': '50005', 'CHITTENDEN': '50007', 'ESSEX': '50009', 'FRANKLIN': '50011', 'GRAND ISLE': '50013', 'LAMOILLE': '50015', 'ORANGE': '50017', 'ORLEANS': '50019', 'RUTLAND': '50021', 'WASHINGTON': '50023', 'WINDHAM': '50025', 'WINDSOR': '50027'}, 'VA': {'ACCOMACK': '51001', 'ALBEMARLE': '51003', 'ALLEGHANY': '51005', 'AMELIA': '51007', 'AMHERST': '51009', 'APPOMATTOX': '51011', 'ARLINGTON': '51013', 'AUGUSTA': '51015', 'BATH': '51017', 'BEDFORD': '51019', 'BLAND': '51021', 'BOTETOURT': '51023', 'BRUNSWICK': '51025', 'BUCHANAN': '51027', 'BUCKINGHAM': '51029', 'CAMPBELL': '51031', 'CAROLINE': '51033', 'CARROLL': '51035', 'CHARLES CITY': '51036', 'CHARLOTTE': '51037', 'CHESTERFIELD': '51041', 'CLARKE': '51043', 'CRAIG': '51045', 'CULPEPER': '51047', 'CUMBERLAND': '51049', 'DICKENSON': '51051', 'DINWIDDIE': '51053', 'ESSEX': '51057', 'FAIRFAX': '51059', 'FAUQUIER': '51061', 'FLOYD': '51063', 'FLUVANNA': '51065', 'FRANKLIN': '51067', 'FREDERICK': '51069', 'GILES': '51071', 'GLOUCESTER': '51073', 'GOOCHLAND': '51075', 'GRAYSON': '51077', 'GREENE': '51079', 'GREENSVILLE': '51081', 'HALIFAX': '51083', 'HANOVER': '51085', 'HENRICO': '51087', 'HENRY': '51089', 'HIGHLAND': '51091', 'ISLE OF WIGHT': '51093', 'JAMES CITY': '51095', 'KING AND QUEEN': '51097', 'KING GEORGE': '51099', 'KING WILLIAM': '51101', 'LANCASTER': '51103', 'LEE': '51105', 'LOUDOUN': '51107', 'LOUISA': '51109', 'LUNENBURG': '51111', 'MADISON': '51113', 'MATHEWS': '51115', 'MECKLENBURG': '51117', 'MIDDLESEX': '51119', 'MONTGOMERY': '51121', 'NELSON': '51125', 'NEW KENT': '51127', 'NORTHAMPTON': '51131', 'NORTHUMBERLAND': '51133', 'NOTTOWAY': '51135', 'ORANGE': '51137', 'PAGE': '51139', 'PATRICK': '51141', 'PITTSYLVANIA': '51143', 'POWHATAN': '51145', 'PRINCE EDWARD': '51147', 'PRINCE GEORGE': '51149', 'PRINCE WILLIAM': '51153', 'PULASKI': '51155', 'RAPPAHANNOCK': '51157', 'RICHMOND': '51159', 'ROANOKE': '51161', 'ROCKBRIDGE': '51163', 'ROCKINGHAM': '51165', 'RUSSELL': '51167', 'SCOTT': '51169', 'SHENANDOAH': '51171', 'SMYTH': '51173', 'SOUTHAMPTON': '51175', 'SPOTSYLVANIA': '51177', 'STAFFORD': '51179', 'SURRY': '51181', 'SUSSEX': '51183', 'TAZEWELL': '51185', 'WARREN': '51187', 'WASHINGTON': '51191', 'WESTMORELAND': '51193', 'WISE': '51195', 'WYTHE': '51197', 'YORK': '51199', 'ALEXANDRIA CITY': '51510', 'BEDFORD CITY': '51515', 'BRISTOL CITY': '51520', 'BUENA VISTA CITY': '51530', 'CHARLOTTESVILLE CITY': '51540', 'CHESAPEAKE CITY': '51550', 'CLIFTON FORGE CITY': '51560', 'COLONIAL HEIGHTS CIT': '51570', 'COVINGTON CITY': '51580', 'DANVILLE CITY': '51590', 'EMPORIA CITY': '51595', 'FAIRFAX CITY': '51600', 'FALLS CHURCH CITY': '51610', 'FRANKLIN CITY': '51620', 'FREDERICKSBURG CITY': '51630', 'GALAX CITY': '51640', 'HAMPTON CITY': '51650', 'HARRISONBURG CITY': '51660', 'HOPEWELL CITY': '51670', 'LEXINGTON CITY': '51678', 'LYNCHBURG CITY': '51680', 'MANASSAS CITY': '51683', 'MANASSAS PARK CITY': '51685', 'MARTINSVILLE CITY': '51690', 'NEWPORT NEWS CITY': '51700', 'NORFOLK CITY': '51710', 'NORTON CITY': '51720', 'PETERSBURG CITY': '51730', 'POQUOSON CITY': '51735', 'PORTSMOUTH CITY': '51740', 'RADFORD CITY': '51750', 'RICHMOND CITY': '51760', 'ROANOKE CITY': '51770', 'SALEM CITY': '51775', 'SOUTH BOSTON CITY': '51780', 'STAUNTON CITY': '51790', 'SUFFOLK CITY': '51800', 'VIRGINIA BEACH CITY': '51810', 'WAYNESBORO CITY': '51820', 'WILLIAMSBURG CITY': '51830', 'WINCHESTER CITY': '51840'}, 'WA': {'ADAMS': '53001', 'ASOTIN': '53003', 'BENTON': '53005', 'CHELAN': '53007', 'CLALLAM': '53009', 'CLARK': '53011', 'COLUMBIA': '53013', 'COWLITZ': '53015', 'DOUGLAS': '53017', 'FERRY': '53019', 'FRANKLIN': '53021', 'GARFIELD': '53023', 'GRANT': '53025', 'GRAYS HARBOR': '53027', 'ISLAND': '53029', 'JEFFERSON': '53031', 'KING': '53033', 'KITSAP': '53035', 'KITTITAS': '53037', 'KLICKITAT': '53039', 'LEWIS': '53041', 'LINCOLN': '53043', 'MASON': '53045', 'OKANOGAN': '53047', 'PACIFIC': '53049', 'PEND OREILLE': '53051', 'PIERCE': '53053', 'SAN JUAN': '53055', 'SKAGIT': '53057', 'SKAMANIA': '53059', 'SNOHOMISH': '53061', 'SPOKANE': '53063', 'STEVENS': '53065', 'THURSTON': '53067', 'WAHKIAKUM': '53069', 'WALLA WALLA': '53071', 'WHATCOM': '53073', 'WHITMAN': '53075', 'YAKIMA': '53077'}, 'WV': {'BARBOUR': '54001', 'BERKELEY': '54003', 'BOONE': '54005', 'BRAXTON': '54007', 'BROOKE': '54009', 'CABELL': '54011', 'CALHOUN': '54013', 'CLAY': '54015', 'DODDRIDGE': '54017', 'FAYETTE': '54019', 'GILMER': '54021', 'GRANT': '54023', 'GREENBRIER': '54025', 'HAMPSHIRE': '54027', 'HANCOCK': '54029', 'HARDY': '54031', 'HARRISON': '54033', 'JACKSON': '54035', 'JEFFERSON': '54037', 'KANAWHA': '54039', 'LEWIS': '54041', 'LINCOLN': '54043', 'LOGAN': '54045', 'MCDOWELL': '54047', 'MARION': '54049', 'MARSHALL': '54051', 'MASON': '54053', 'MERCER': '54055', 'MINERAL': '54057', 'MINGO': '54059', 'MONONGALIA': '54061', 'MONROE': '54063', 'MORGAN': '54065', 'NICHOLAS': '54067', 'OHIO': '54069', 'PENDLETON': '54071', 'PLEASANTS': '54073', 'POCAHONTAS': '54075', 'PRESTON': '54077', 'PUTNAM': '54079', 'RALEIGH': '54081', 'RANDOLPH': '54083', 'RITCHIE': '54085', 'ROANE': '54087', 'SUMMERS': '54089', 'TAYLOR': '54091', 'TUCKER': '54093', 'TYLER': '54095', 'UPSHUR': '54097', 'WAYNE': '54099', 'WEBSTER': '54101', 'WETZEL': '54103', 'WIRT': '54105', 'WOOD': '54107', 'WYOMING': '54109'}, 'WI': {'ADAMS': '55001', 'ASHLAND': '55003', 'BARRON': '55005', 'BAYFIELD': '55007', 'BROWN': '55009', 'BUFFALO': '55011', 'BURNETT': '55013', 'CALUMET': '55015', 'CHIPPEWA': '55017', 'CLARK': '55019', 'COLUMBIA': '55021', 'CRAWFORD': '55023', 'DANE': '55025', 'DODGE': '55027', 'DOOR': '55029', 'DOUGLAS': '55031', 'DUNN': '55033', 'EAU CLAIRE': '55035', 'FLORENCE': '55037', 'FOND DU LAC': '55039', 'FOREST': '55041', 'GRANT': '55043', 'GREEN': '55045', 'GREEN LAKE': '55047', 'IOWA': '55049', 'IRON': '55051', 'JACKSON': '55053', 'JEFFERSON': '55055', 'JUNEAU': '55057', 'KENOSHA': '55059', 'KEWAUNEE': '55061', 'LA CROSSE': '55063', 'LAFAYETTE': '55065', 'LANGLADE': '55067', 'LINCOLN': '55069', 'MANITOWOC': '55071', 'MARATHON': '55073', 'MARINETTE': '55075', 'MARQUETTE': '55077', 'MENOMINEE': '55078', 'MILWAUKEE': '55079', 'MONROE': '55081', 'OCONTO': '55083', 'ONEIDA': '55085', 'OUTAGAMIE': '55087', 'OZAUKEE': '55089', 'PEPIN': '55091', 'PIERCE': '55093', 'POLK': '55095', 'PORTAGE': '55097', 'PRICE': '55099', 'RACINE': '55101', 'RICHLAND': '55103', 'ROCK': '55105', 'RUSK': '55107', 'ST CROIX': '55109', 'SAUK': '55111', 'SAWYER': '55113', 'SHAWANO': '55115', 'SHEBOYGAN': '55117', 'TAYLOR': '55119', 'TREMPEALEAU': '55121', 'VERNON': '55123', 'VILAS': '55125', 'WALWORTH': '55127', 'WASHBURN': '55129', 'WASHINGTON': '55131', 'WAUKESHA': '55133', 'WAUPACA': '55135', 'WAUSHARA': '55137', 'WINNEBAGO': '55139', 'WOOD': '55141'}, 'WY': {'ALBANY': '56001', 'BIG HORN': '56003', 'CAMPBELL': '56005', 'CARBON': '56007', 'CONVERSE': '56009', 'CROOK': '56011', 'FREMONT': '56013', 'GOSHEN': '56015', 'HOT SPRINGS': '56017', 'JOHNSON': '56019', 'LARAMIE': '56021', 'LINCOLN': '56023', 'NATRONA': '56025', 'NIOBRARA': '56027', 'PARK': '56029', 'PLATTE': '56031', 'SHERIDAN': '56033', 'SUBLETTE': '56035', 'SWEETWATER': '56037', 'TETON': '56039', 'UINTA': '56041', 'WASHAKIE': '56043', 'WESTON': '56045'}, 'AS': {'UNKNOWN': '60010', 'MANUA': '60020', 'OFU': '60020', 'OLOSEGA': '60020', 'TUTUILA': '60050'}, 'MP': {'COCOS ISLAND': '66010', 'ROTA': '69100', 'SAIPAN': '69110', 'AGUIJAN': '69120', 'TINIAN': '69120'}, 'GU': {'GUAM': '66010'}, 'PR': {'ADJUNTAS': '72001', 'AGUADA': '72003', 'AGUADILLA': '72005', 'AGUAS BUENAS': '72007', 'AIBONITO': '72009', 'ANASCO': '72011', 'ARECIBO': '72013', 'ARROYO': '72015', 'BARCELONETA': '72017', 'BARRANQUITAS': '72019', 'BAYAMON': '72021', 'CABO ROJO': '72023', 'CAGUAS': '72025', 'CAMUY': '72027', 'CANOVANAS': '72029', 'CAROLINA': '72031', 'CATANO': '72033', 'CAYEY': '72035', 'CEIBA': '72037', 'CIDRA': '72041', 'COAMO': '72043', 'COMERIO': '72045', 'COROZAL': '72047', 'CULEBRA': '72049', 'DORADO': '72051', 'FAJARDO': '72053', 'FLORIDA': '72054', 'GUANICA': '72055', 'GUAYAMA': '72057', 'GUAYANILLA': '72059', 'GUAYNABO': '72061', 'GURABO': '72063', 'HATILLO': '72065', 'HORMIGUEROS': '72067', 'ISABELA': '72071', 'JAYUYA': '72073', 'JUANA DIAZ': '72075', 'JUNCOS': '72077', 'LAJAS': '72079', 'LARES': '72081', 'LAS MARIAS': '72083', 'LAS PIEDRAS': '72085', 'LOIZA': '72087', 'LUQUILLO': '72089', 'MANATI': '72091', 'MARICAO': '72093', 'MAUNABO': '72095', 'MAYAGUEZ': '72097', 'MOCA': '72099', 'MOROVIS': '72101', 'NABUABO': '72103', 'NARANJITO': '72105', 'OROCOVIS': '72107', 'PATILLAS': '72109', 'PENUELAS': '72111', 'PONCE': '72113', 'QUEBRADILLAS': '72115', 'RINCON': '72117', 'RIO GRANDE': '72119', 'SABANA GRANDE': '72121', 'SALINAS': '72123', 'SAN GERMAN': '72125', 'SAN JUAN': '72127', 'SAN LORENZO': '72129', 'SAN SABASTIAN': '72131', 'SANTA ISABEL': '72133', 'TOA ALTA': '72135', 'TOA BAJA': '72137', 'TRUJILLO ALTO': '72139', 'UTUADO': '72141', 'VEGA ALTA': '72143', 'VEGA BAJA': '72145', 'VIEQUES': '72147', 'VILLALBA': '72149', 'YABUCOA': '72151', 'YAUCO': '72153'}, 'VI': {'ST. CROIX': '78010', 'ST. JOHN': '78020', 'ST. THOMAS': '78030'}} #Load AG data def get_ftp_file_names_animal_product(): #get file names try: import urllib.request as urllib2 except ImportError: import urllib2 import re urlpath =urlopen('ftp://ftp.nass.usda.gov/quickstats') string = urlpath.read().decode('utf-8') split = string.split('\n') file_names = [] for line in split: sub_split = line.split(' ') name = sub_split[-1] file_names.append(name) for name in file_names: if "animals_products" in name: print(name) return name def pull_files(file_name): file_name = file_name[0:-1] ftp_path ='ftp://ftp.nass.usda.gov/quickstats/'+str(file_name) return ftp_path def get_data(): #Get Data from USDA FTP server - this may take a minute file_name = get_ftp_file_names_animal_product() url = pull_files(file_name) print(url) req = ur.Request(url) # gz file on ftp (ensure startswith 'ftp://') z_f = ur.urlopen(req) f = GzipFile(fileobj=z_f, mode="r") df = pd.read_csv(f, sep='\t') return df def get_geo_info(df): url = "/content/gdrive/My Drive/CAITLIN/us-counties.json" dfg = gpd.read_file(url) dfg['id'] = dfg['id'].apply(lambda x: x.zfill(5)) dfg['id']=dfg['id'].astype(str) df['COUNTY_FIP']=df['COUNTY_FIP'].astype(str) df['COUNTY_FIP']=df['COUNTY_FIP'].apply(lambda x: x.zfill(5)) df = dfg.merge(df, right_on='COUNTY_FIP', left_on='id') return df def value_convert(df_animal_product): arr = df_animal_product["VALUE"] arr_out = [] for val in arr: string_val = str(val) string_val=string_val.replace(",", "") if string_val == '(D)' or string_val == '(z)' or string_val == '(Z)': string_val = "0" arr_out.append(float(string_val)) df_animal_product["VALUE"] = arr_out return df_animal_product def add_county_fip(df): fip = [] look_up_dict=dict_states for ind in df.index: county = (df["COUNTY_NAME"][ind]) state = (df["STATE_ALPHA"][ind]) state_dict = look_up_dict[state] code = state_dict[county] fip.append(str(code)) df["COUNTY_FIP"]=fip return df print("getting data") df = get_data() print("got data") df_animal_product = df for ind in df_animal_product.index: STATE = df_animal_product["STATE_ALPHA"][ind] STATE_ARRAY = dict_states.keys() if STATE not in STATE_ARRAY: df_animal_product.at[ind, 'COUNTY_NAME'] = "drop" continue COUNTY_ARR = dict_states[STATE].keys() COUNTY = df_animal_product["COUNTY_NAME"][ind] if COUNTY not in COUNTY_ARR: df_animal_product.at[ind, 'COUNTY_NAME'] = "drop" print("pre drop") df_animal_product = (df_animal_product[(df_animal_product["COUNTY_NAME"] != 'drop')]).copy() print("pre add county fip") df_animal_product=add_county_fip(df_animal_product) print("pre value convert") df_animal_product=value_convert(df_animal_product) print("pre get geo info") df_animal_product = get_geo_info(df_animal_product) print("pre writing file") path = "~/data/animal_product_data.csv" df_animal_product.to_csv(path)
642.252336
65,447
0.599235
7,340
68,721
5.593324
0.731608
0.007283
0.007307
0.000877
0.015077
0.011667
0.003166
0.003166
0
0
0
0.263793
0.108016
68,721
107
65,448
642.252336
0.405968
0.002343
0
0.053191
0
0
0.578987
0.002188
0
0
0
0
0
1
0.06383
false
0.010638
0.106383
0
0.234043
0.095745
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
684d20bedb01c78cfb97958b6e053e51bfcf1145
88
py
Python
test_module.py
andrewschreiber/fpeg
16fc3afb795040aea2e41216d6a9f88cedff2ba4
[ "MIT" ]
5
2015-02-09T06:42:21.000Z
2021-02-24T00:38:32.000Z
test_module.py
andrewschreiber/fpeg
16fc3afb795040aea2e41216d6a9f88cedff2ba4
[ "MIT" ]
1
2020-02-05T09:18:13.000Z
2020-06-30T21:42:39.000Z
test_module.py
andrewschreiber/fpeg
16fc3afb795040aea2e41216d6a9f88cedff2ba4
[ "MIT" ]
1
2019-06-11T19:30:37.000Z
2019-06-11T19:30:37.000Z
from fpeg_module import compressor compressor.compress("images/got.jpg", 10, 75, True)
22
51
0.784091
13
88
5.230769
0.923077
0
0
0
0
0
0
0
0
0
0
0.050633
0.102273
88
3
52
29.333333
0.810127
0
0
0
0
0
0.159091
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
68768aa41a8d83a4500d68e8bc4ed1510a719b11
231
py
Python
past_archive/swexpert/3456(rectangleLength).py
DongHyunByun/algorithm_practice
c726c69d35306d23467f4af6e10f2db6fdc68234
[ "MIT" ]
null
null
null
past_archive/swexpert/3456(rectangleLength).py
DongHyunByun/algorithm_practice
c726c69d35306d23467f4af6e10f2db6fdc68234
[ "MIT" ]
null
null
null
past_archive/swexpert/3456(rectangleLength).py
DongHyunByun/algorithm_practice
c726c69d35306d23467f4af6e10f2db6fdc68234
[ "MIT" ]
null
null
null
for t in range(int(input())): L=input().split() if L.count(L[0])==2 : if L[0]!=L[1]: print(f"#{t+1} {L[1]}") else: print(f"#{t+1} {L[2]}") else : print(f"#{t+1} {L[0]}")
23.1
35
0.367965
40
231
2.125
0.4
0.070588
0.247059
0.282353
0.411765
0.305882
0
0
0
0
0
0.066225
0.34632
231
9
36
25.666667
0.496689
0
0
0.222222
0
0
0.168831
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6881323123b6b4163a9d014baabfff882ee7186e
262
py
Python
chapter_7/server_movierecsys/books_recsys_app/serializers.py
HIleewei/python-web
fafacdee6468d50fba2e07fe184fcdd2fa3d272b
[ "MIT" ]
64
2016-08-06T22:19:39.000Z
2021-11-08T13:13:29.000Z
chapter_7/server_movierecsys/books_recsys_app/serializers.py
HIleewei/python-web
fafacdee6468d50fba2e07fe184fcdd2fa3d272b
[ "MIT" ]
3
2017-09-17T09:19:52.000Z
2020-10-28T13:08:16.000Z
chapter_7/server_movierecsys/books_recsys_app/serializers.py
HIleewei/python-web
fafacdee6468d50fba2e07fe184fcdd2fa3d272b
[ "MIT" ]
55
2016-12-20T00:29:53.000Z
2021-11-25T09:03:42.000Z
from books_recsys_app.models import UserProfile from rest_framework import serializers class UsersSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = UserProfile fields = ('name', 'arrayratedmoviesindxs','lastrecs')
29.111111
62
0.759542
24
262
8.166667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.171756
262
9
63
29.111111
0.903226
0
0
0
0
0
0.125475
0.079848
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
1
0
0
4
68896272c5597dac90da6bd69d73bcc369311387
196
py
Python
PythonFiles/exception.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/exception.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/exception.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
1
2019-07-26T15:25:21.000Z
2019-07-26T15:25:21.000Z
#num=int(input("Enter a number:")) #print(num) try: num = int(input("Enter a number:")) print(num) except: print("INVALID INPUT!") '''Enter a number:k INVALID INPUT!'''
15.076923
40
0.576531
27
196
4.185185
0.407407
0.265487
0.292035
0.451327
0.548673
0.548673
0.548673
0.548673
0
0
0
0
0.234694
196
13
41
15.076923
0.753333
0.219388
0
0
0
0
0.281553
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
1
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
4
689c7e8fe1d03ceec21067f638aba8dbc46757e7
49
py
Python
hello.py
mafzal2/ExplainingGitHub
187f1f274cc1a974b3d7e59f10712542b0ec0d6c
[ "MIT" ]
null
null
null
hello.py
mafzal2/ExplainingGitHub
187f1f274cc1a974b3d7e59f10712542b0ec0d6c
[ "MIT" ]
null
null
null
hello.py
mafzal2/ExplainingGitHub
187f1f274cc1a974b3d7e59f10712542b0ec0d6c
[ "MIT" ]
null
null
null
msg = "Hello Developers and QA team!" print(msg)
16.333333
37
0.714286
8
49
4.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.163265
49
2
38
24.5
0.853659
0
0
0
0
0
0.591837
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
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
1
0
4
689de54790891fa2acdf31d104d24eb99c064020
667
py
Python
app/ext/music/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
app/ext/music/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
app/ext/music/__init__.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
1
2020-11-12T23:02:15.000Z
2020-11-12T23:02:15.000Z
from app.ext.music.filter import safe from app.ext.music.Player import Player from app.ext.music.option import ytdl_format_options_a from app.ext.music.option import ytdl_format_options from app.ext.music.option import ffmpeg_options_a from app.ext.music.option import ffmpeg_options from app.ext.music.option import adult_filter from app.ext.music.option import embed_ERROR from app.ext.music.option import embed_queued from app.ext.music.option import embed_value from app.ext.music.option import EmbedSaftySearch from app.ext.music.option import BlockedContent from app.ext.music.YTDLSource import YTDLSource __all__ = ['filter', 'option', 'Player', 'YTDLSource']
44.466667
54
0.833583
108
667
5
0.212963
0.168519
0.240741
0.361111
0.642593
0.642593
0.542593
0.314815
0.162963
0
0
0
0.086957
667
15
55
44.466667
0.8867
0
0
0
0
0
0.041916
0
0
0
0
0
0
1
0
false
0
0.928571
0
0.928571
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
1
0
1
0
0
4
d7ad92b6fb2f3a35798f19c6950e42d6f6055282
1,071
py
Python
inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py
brkyavuz/webnet
0204214e138acb051a15e5d5b9ffbdc53d4a7691
[ "MIT" ]
null
null
null
inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py
brkyavuz/webnet
0204214e138acb051a15e5d5b9ffbdc53d4a7691
[ "MIT" ]
null
null
null
inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py
brkyavuz/webnet
0204214e138acb051a15e5d5b9ffbdc53d4a7691
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-24 12:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventory', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='group', name='ansible_become_pass', ), migrations.RemoveField( model_name='group', name='ansible_connection', ), migrations.RemoveField( model_name='group', name='ansible_network_os', ), migrations.RemoveField( model_name='group', name='ansible_password', ), migrations.RemoveField( model_name='group', name='ansible_user', ), migrations.RemoveField( model_name='host', name='groups', ), migrations.AddField( model_name='host', name='groups', field=models.ManyToManyField(default='ungrouped', to='inventory.group'), ), ]
24.906977
84
0.53408
91
1,071
6.120879
0.483516
0.113106
0.280072
0.32316
0.495512
0.412926
0.412926
0
0
0
0
0.027338
0.351074
1,071
42
85
25.5
0.774101
0.042017
0
0.611111
1
0
0.168945
0
0
0
0
0
0
1
0
false
0.055556
0.027778
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
d7bf4b9c4b5e968b327e287b23a534cd1dda83f3
129
py
Python
Curso de Cisco/Actividades/Funcion propia sin parametros.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Funcion propia sin parametros.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Funcion propia sin parametros.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
def mensaje(): # definiendo una función print("Hola") # cuerpo de la función mensaje() # invocación de la función
32.25
43
0.651163
17
129
5
0.705882
0.094118
0.258824
0
0
0
0
0
0
0
0
0
0.248062
129
4
44
32.25
0.865979
0.527132
0
0
0
0
0.071429
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
1
0
0
null
0
1
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
1
0
0
0
0
0
0
0
0
4
d7c8685990d4a9a6caf7934bf2ac300de99db31c
115
py
Python
maml/metalearners/__init__.py
ryujaehun/maml
fd38cb9258420c73648748fccdaa76f8d0b1c030
[ "MIT" ]
1
2021-03-24T16:23:47.000Z
2021-03-24T16:23:47.000Z
maml/metalearners/__init__.py
ryujaehun/maml
fd38cb9258420c73648748fccdaa76f8d0b1c030
[ "MIT" ]
null
null
null
maml/metalearners/__init__.py
ryujaehun/maml
fd38cb9258420c73648748fccdaa76f8d0b1c030
[ "MIT" ]
null
null
null
from maml.metalearners.maml import ModelAgnosticMetaLearning, MAML __all__ = ['ModelAgnosticMetaLearning', 'MAML']
38.333333
66
0.826087
10
115
9.1
0.6
0.637363
0
0
0
0
0
0
0
0
0
0
0.078261
115
3
67
38.333333
0.858491
0
0
0
0
0
0.25
0.215517
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
4
d7e84315d09b43e9deffc11cacb45dd198ac5b5e
250
py
Python
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
22
2021-08-24T13:43:55.000Z
2022-03-25T06:18:19.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
3
2021-09-09T00:40:56.000Z
2022-01-26T10:53:30.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
15
2021-08-19T23:53:24.000Z
2022-03-28T22:26:04.000Z
__author__ = "Gauvain Pocentek, python-gitlab team" __copyright__ = "Copyright 2013-2019 Gauvain Pocentek, 2019-2021 python-gitlab team" __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" __version__ = "2.10.1"
35.714286
84
0.776
30
250
5.666667
0.7
0.211765
0.188235
0
0
0
0
0
0
0
0
0.09417
0.108
250
6
85
41.666667
0.668161
0
0
0
0
0
0.604
0.1
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
cc0520786338fc9259819e6e20feb2607d9b894d
72
py
Python
guardnode/__main__.py
commerceblock/guardnode
1296b994ca790da8687e86091e8b65e8658a39ea
[ "MIT" ]
1
2019-06-19T23:36:00.000Z
2019-06-19T23:36:00.000Z
guardnode/__main__.py
commerceblock/guardnode
1296b994ca790da8687e86091e8b65e8658a39ea
[ "MIT" ]
14
2019-05-24T09:55:05.000Z
2020-02-28T09:58:06.000Z
guardnode/__main__.py
commerceblock/guardnode
1296b994ca790da8687e86091e8b65e8658a39ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from guardnode import guardnode guardnode.main()
18
31
0.791667
10
72
5.7
0.8
0
0
0
0
0
0
0
0
0
0
0.015385
0.097222
72
3
32
24
0.861538
0.291667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
4
cc249b2d9064ab6b1a85d068fc86334e73a9984e
41
py
Python
src/fairtest/modules/context_discovery/__init__.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
42
2017-01-12T13:59:23.000Z
2022-03-01T01:44:12.000Z
src/fairtest/modules/context_discovery/__init__.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
3
2019-05-24T21:02:51.000Z
2019-11-15T15:36:17.000Z
src/fairtest/modules/context_discovery/__init__.py
columbia/fairtest
8696051c9276f127ab8b2f437850f845ff0ca786
[ "Apache-2.0" ]
20
2017-01-12T23:07:10.000Z
2021-08-11T09:13:50.000Z
""" Guided Tree Construction Module. """
10.25
32
0.682927
4
41
7
1
0
0
0
0
0
0
0
0
0
0
0
0.146341
41
3
33
13.666667
0.8
0.780488
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
1
0
0
0
0
0
0
4
cc2cbe34eede684e88c037e02c35d494f09e237f
58
py
Python
python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def m(): print 1 class A: pass b = A() a = m()
5.8
11
0.413793
11
58
2.181818
0.727273
0
0
0
0
0
0
0
0
0
0
0.029412
0.413793
58
9
12
6.444444
0.676471
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.166667
0
null
null
0.166667
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
1
0
0
1
0
0
0
0
0
4
0be4fbfb457424364d9ca33ffbde8f818214db0d
78
py
Python
doi_site/__init__.py
AlbertoPaulPopescu/doi_site
540be1928bc83596500ead847108bc2ebf65c692
[ "BSD-3-Clause" ]
null
null
null
doi_site/__init__.py
AlbertoPaulPopescu/doi_site
540be1928bc83596500ead847108bc2ebf65c692
[ "BSD-3-Clause" ]
6
2019-11-18T16:34:13.000Z
2021-02-12T13:36:49.000Z
doi_site/__init__.py
AlbertoPaulPopescu/doi_site
540be1928bc83596500ead847108bc2ebf65c692
[ "BSD-3-Clause" ]
4
2018-01-03T13:41:27.000Z
2018-10-10T08:14:14.000Z
""" The main web pages for displaying information and logging on and off. """
39
77
0.730769
12
78
4.75
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.179487
78
1
78
78
0.890625
0.884615
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
0430cd4bfd9663bd29a0d220c29206e8abe1e97d
245
py
Python
v1/tnb_stats/urls.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
1
2021-07-24T06:54:11.000Z
2021-07-24T06:54:11.000Z
v1/tnb_stats/urls.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
4
2021-10-01T20:23:14.000Z
2021-10-01T20:57:42.000Z
v1/tnb_stats/urls.py
picko1990/Bank
d35b0a76c1dd6ceb37155b6af32e3043c63d33f5
[ "MIT" ]
3
2021-02-23T01:09:05.000Z
2021-09-12T15:52:56.000Z
from django.urls import path from .views import StatList from rest_framework.urlpatterns import format_suffix_patterns urlpatterns = [ path("api/", StatList.as_view(), name="stats_api"), ] urlpatterns = format_suffix_patterns(urlpatterns)
24.5
61
0.791837
31
245
6.032258
0.580645
0.128342
0.213904
0.331551
0
0
0
0
0
0
0
0
0.114286
245
9
62
27.222222
0.861751
0
0
0
0
0
0.053061
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
1
1
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
1
0
0
0
0
4
043ee4bf6a0dd97b134f62d32076a43d1248fa0a
375
py
Python
src/controller.py
hussainsan/enas
367e6b30e38c5c48867e31657cac2fe76fbe73e0
[ "Apache-2.0" ]
1,589
2018-04-02T02:11:54.000Z
2022-03-07T14:41:37.000Z
src/controller.py
flamato/enas
4bcfd73b524627ea96574e5fed33da74bc7855d5
[ "Apache-2.0" ]
112
2018-04-02T09:08:38.000Z
2021-12-19T23:00:37.000Z
src/controller.py
flamato/enas
4bcfd73b524627ea96574e5fed33da74bc7855d5
[ "Apache-2.0" ]
431
2018-04-02T02:16:05.000Z
2022-03-16T06:18:40.000Z
import tensorflow as tf class Controller(object): def __init__(self, *args, **kwargs): raise NotImplementedError("Abstract method.") def _build_sample(self): raise NotImplementedError("Abstract method.") def _build_greedy(self): raise NotImplementedError("Abstract method.") def _build_trainer(self): raise NotImplementedError("Abstract method.")
25
49
0.744
40
375
6.725
0.5
0.356877
0.475836
0.565056
0.698885
0.542751
0.371747
0
0
0
0
0
0.149333
375
14
50
26.785714
0.84326
0
0
0.4
0
0
0.170667
0
0
0
0
0
0
1
0.4
false
0
0.1
0
0.6
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
4
044714d4f719d4e11315729509affd5309e9c777
8,377
py
Python
scripts/predicting/analyse_tournament_predictions.py
antoinelouis02/BigDat
e9f19b2f554febf76e8840c03999406981234685
[ "MIT" ]
null
null
null
scripts/predicting/analyse_tournament_predictions.py
antoinelouis02/BigDat
e9f19b2f554febf76e8840c03999406981234685
[ "MIT" ]
null
null
null
scripts/predicting/analyse_tournament_predictions.py
antoinelouis02/BigDat
e9f19b2f554febf76e8840c03999406981234685
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib import matplotlib.pyplot as plt plt.style.use('ggplot') # Current year year = 2019 # Files players_names = "../../data/predictions/stats_players_{}.csv".format(year) predicted_probas = "../../data/predictions/players_rounds_predictions_{}.csv".format(year) # Read the csv files players_df = pd.read_csv(players_names, header=0, index_col=0) df = pd.read_csv(predicted_probas, names = ["Winner%", "Final%", "SF%", "QF%", 'R16%', 'R32%', 'R64%']) df.index = range(1, len(df)+1) # Concat names and probas players_df = players_df.iloc[:,[0,4]] new_df = pd.concat([players_df, df], axis=1) # Sort by highest probabilities for Winner winner_df = new_df.sort_values(by=['Winner%'], ascending=False) winner_df = winner_df.iloc[:,[0,1,2]] # Sort by highest probabilities for Final final_df = new_df.sort_values(by=['Final%'], ascending=False) final_df = final_df.iloc[:,[0,1,3]] # Sort by highest probabilities for SF SF_df = new_df.sort_values(by=['SF%'], ascending=False) SF_df = SF_df.iloc[:,[0,1,4]] # Sort by highest probabilities for QF QF_df = new_df.sort_values(by=['QF%'], ascending=False) QF_df = QF_df.iloc[:,[0,1,5]] # Sort by highest probabilities for R16 R16_df = new_df.sort_values(by=['R16%'], ascending=False) R16_df = R16_df.iloc[:,[0,1,6]] # Sort by highest probabilities for R32 R32_df = new_df.sort_values(by=['R32%'], ascending=False) R32_df = R32_df.iloc[:,[0,1,7]] # Sort by highest probabilities for R64 R64_df = new_df.sort_values(by=['R64%'], ascending=False) R64_df = R64_df.iloc[:,[0,1,8]] #------------------------------------------------------------------------------------------- # BAR PLOT FOR WINNER #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = winner_df.iloc[:nb_players, 0].tolist() ranks = winner_df.iloc[:nb_players, 1].tolist() probas = winner_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_winner.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR FINAL #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = final_df.iloc[:nb_players, 0].tolist() ranks = final_df.iloc[:nb_players, 1].tolist() probas = final_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_final.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR SF #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = SF_df.iloc[:nb_players, 0].tolist() ranks = SF_df.iloc[:nb_players, 1].tolist() probas = SF_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_SF.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR QF #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = QF_df.iloc[:nb_players, 0].tolist() ranks = QF_df.iloc[:nb_players, 1].tolist() probas = QF_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_QF.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR R16 #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = R16_df.iloc[:nb_players, 0].tolist() ranks = R16_df.iloc[:nb_players, 1].tolist() probas = R16_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_R16.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR R32 #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = R32_df.iloc[:nb_players, 0].tolist() ranks = R32_df.iloc[:nb_players, 1].tolist() probas = R32_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_R32.eps".format(year), bbox_inches = "tight") #------------------------------------------------------------------------------------------- # BAR PLOT FOR R64 #------------------------------------------------------------------------------------------- nb_players = 10 # Get names, ranks and probas of highest probabilities players names = R64_df.iloc[:nb_players, 0].tolist() ranks = R64_df.iloc[:nb_players, 1].tolist() probas = R64_df.iloc[:nb_players, 2].tolist() # Compute new labels for x-axis : Name (rank) x_labels = [] for i, name in enumerate(names): new_label = name + ' (' + str(int(ranks[i])) + ')' x_labels.append(new_label) # Plot plt.figure() plt.subplots_adjust(bottom=0.23) x_pos = np.arange(0, nb_players, 1) plt.bar(x_pos, probas) # Set axes plt.xticks(x_pos, x_labels, rotation=35, ha='right', fontsize=8) plt.xlabel('Players (rank)', fontsize=11) plt.ylabel('Probability', fontsize=11) # Save the plot plt.savefig("_Figures/rounds_{}_R64.eps".format(year), bbox_inches = "tight")
31.973282
103
0.596514
1,171
8,377
4.097353
0.093083
0.065652
0.035015
0.065652
0.834306
0.77699
0.743435
0.663193
0.663193
0.615673
0
0.029128
0.11066
8,377
261
104
32.095785
0.614899
0.317178
0
0.604317
0
0
0.109342
0.050248
0
0
0
0
0
1
0
false
0
0.028777
0
0.028777
0
0
0
0
null
0
0
0
1
1
1
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
4
0453879e80126d39eb47206fa8d71eecc3ef6677
10,751
py
Python
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py
bambielli-flex/dagster
30b75ba7c62fc536bc827f177c1dc6ba20f5ae20
[ "Apache-2.0" ]
null
null
null
import imp import importlib import os import pytest from dagster import ExecutionTargetHandle, PipelineDefinition, RepositoryDefinition, lambda_solid from dagster.core.definitions import LoaderEntrypoint from dagster.core.definitions.handle import ( EPHEMERAL_NAME, _ExecutionTargetMode, _get_python_file_from_previous_stack_frame, ) from dagster.core.errors import InvalidPipelineLoadingComboError from dagster.utils import script_relative_path def define_pipeline(): return 1 def test_exc_target_handle(): res = ExecutionTargetHandle.for_pipeline_fn(define_pipeline) assert res.data.python_file == __file__ assert res.data.fn_name == 'define_pipeline' def test_repository_python_file(): python_file = script_relative_path('bar_repo.py') module = imp.load_source('bar_repo', python_file) handle = ExecutionTargetHandle.for_pipeline_cli_args( {'pipeline_name': 'foo', 'python_file': python_file, 'fn_name': 'define_bar_repo'} ) assert handle.mode == _ExecutionTargetMode.REPOSITORY assert handle.entrypoint == LoaderEntrypoint(module, 'bar_repo', 'define_bar_repo') assert handle.data.pipeline_name == 'foo' with pytest.raises(InvalidPipelineLoadingComboError): ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': 'kdjfkd', 'pipeline_name': 'foo', 'python_file': script_relative_path('bar_repo.py'), 'fn_name': 'define_bar_repo', 'repository_yaml': None, } ) with pytest.raises(InvalidPipelineLoadingComboError): ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': None, 'pipeline_name': 'foo', 'python_file': script_relative_path('bar_repo.py'), 'fn_name': 'define_bar_repo', 'repository_yaml': 'kjdfkdjf', } ) def test_repository_module(): module = importlib.import_module('dagster') handle = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': 'dagster', 'pipeline_name': 'foo', 'python_file': None, 'fn_name': 'define_bar_repo', 'repository_yaml': None, } ) assert handle.mode == _ExecutionTargetMode.REPOSITORY assert handle.entrypoint == LoaderEntrypoint(module, 'dagster', 'define_bar_repo') assert handle.data.pipeline_name == 'foo' def test_pipeline_python_file(): python_file = script_relative_path('foo_pipeline.py') module = imp.load_source('foo_pipeline', python_file) handle = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': None, 'fn_name': 'define_pipeline', 'pipeline_name': None, 'python_file': python_file, 'repository_yaml': None, } ) assert handle.mode == _ExecutionTargetMode.PIPELINE assert handle.entrypoint == LoaderEntrypoint(module, 'foo_pipeline', 'define_pipeline') def test_pipeline_module(): handle = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': 'dagster', 'fn_name': 'define_pipeline', 'pipeline_name': None, 'python_file': None, 'repository_yaml': None, } ) assert handle.mode == _ExecutionTargetMode.PIPELINE assert handle.entrypoint == LoaderEntrypoint( importlib.import_module('dagster'), 'dagster', 'define_pipeline' ) def test_yaml_file(): module = importlib.import_module('dagster_examples.intro_tutorial.repos') handle = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': None, 'pipeline_name': 'foobar', 'python_file': None, 'fn_name': None, 'repository_yaml': script_relative_path('repository.yml'), } ) assert handle.mode == _ExecutionTargetMode.REPOSITORY assert handle.entrypoint == LoaderEntrypoint( module, 'dagster_examples.intro_tutorial.repos', 'define_repo' ) assert handle.data.pipeline_name == 'foobar' with pytest.raises(InvalidPipelineLoadingComboError): assert ExecutionTargetHandle.for_pipeline_cli_args( {'module_name': 'kdjfdk', 'pipeline_name': 'foobar'} ) with pytest.raises(InvalidPipelineLoadingComboError): assert ExecutionTargetHandle.for_pipeline_cli_args( {'fn_name': 'kjdfkd', 'pipeline_name': 'foobar'} ) with pytest.raises(InvalidPipelineLoadingComboError): assert ExecutionTargetHandle.for_pipeline_cli_args( {'pipeline_name': 'foobar', 'python_file': 'kjdfkdj'} ) def test_load_from_repository_file(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( { 'pipeline_name': 'foo', 'python_file': script_relative_path('test_handle.py'), 'fn_name': 'define_bar_repo', } ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'foo' def test_load_from_repository_module(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': 'dagster_examples.intro_tutorial.repos', 'pipeline_name': 'repo_demo_pipeline', 'fn_name': 'define_repo', } ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'repo_demo_pipeline' def test_load_from_pipeline_file(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( {'fn_name': 'define_foo_pipeline', 'python_file': script_relative_path('test_handle.py')} ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'foo' def test_load_from_pipeline_module(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( { 'module_name': 'dagster_examples.intro_tutorial.repos', 'fn_name': 'define_repo_demo_pipeline', } ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'repo_demo_pipeline' def test_loader_from_default_repository_module_yaml(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( { 'pipeline_name': 'repo_demo_pipeline', 'repository_yaml': script_relative_path('repository_module.yml'), } ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'repo_demo_pipeline' def test_loader_from_default_repository_file_yaml(): pipeline = ExecutionTargetHandle.for_pipeline_cli_args( {'pipeline_name': 'foo', 'repository_yaml': script_relative_path('repository_file.yml')} ).build_pipeline_definition() assert isinstance(pipeline, PipelineDefinition) assert pipeline.name == 'foo' def test_repo_entrypoints(): module = importlib.import_module('dagster_examples.intro_tutorial.repos') assert ExecutionTargetHandle.for_repo_yaml( script_relative_path('repository.yml') ).entrypoint == LoaderEntrypoint(module, 'dagster_examples.intro_tutorial.repos', 'define_repo') module = importlib.import_module('dagster') assert ExecutionTargetHandle.for_repo_module( module_name='dagster', fn_name='define_bar_repo' ).entrypoint == LoaderEntrypoint(module, 'dagster', 'define_bar_repo') python_file = script_relative_path('bar_repo.py') module = imp.load_source('bar_repo', python_file) assert ExecutionTargetHandle.for_repo_python_file( python_file=python_file, fn_name='define_bar_repo' ).entrypoint == LoaderEntrypoint(module, 'bar_repo', 'define_bar_repo') def test_repo_yaml_module_dynamic_load(): repository = ExecutionTargetHandle.for_repo_yaml( repository_yaml=script_relative_path('repository_module.yml') ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == 'demo_repository' def test_repo_yaml_file_dynamic_load(): repository = ExecutionTargetHandle.for_repo_yaml( repository_yaml=script_relative_path('repository_file.yml') ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == 'bar' def test_repo_module_dynamic_load(): repository = ExecutionTargetHandle.for_pipeline_module( module_name='dagster_examples.intro_tutorial.repos', fn_name='define_repo_demo_pipeline' ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == EPHEMERAL_NAME def test_repo_file_dynamic_load(): repository = ExecutionTargetHandle.for_repo_python_file( python_file=script_relative_path('test_handle.py'), fn_name='define_bar_repo' ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == 'bar' def test_repo_module_dynamic_load_from_pipeline(): repository = ExecutionTargetHandle.for_pipeline_module( module_name='dagster_examples.intro_tutorial.repos', fn_name='define_repo_demo_pipeline' ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == '<<unnamed>>' assert repository.get_pipeline('repo_demo_pipeline').name == 'repo_demo_pipeline' def test_repo_file_dynamic_load_from_pipeline(): repository = ExecutionTargetHandle.for_pipeline_python_file( python_file=script_relative_path('test_handle.py'), fn_name='define_foo_pipeline' ).build_repository_definition() assert isinstance(repository, RepositoryDefinition) assert repository.name == EPHEMERAL_NAME assert repository.get_pipeline('foo').name == 'foo' @lambda_solid def do_something(): return 1 def define_foo_pipeline(): return PipelineDefinition(name='foo', solids=[do_something]) def define_bar_repo(): return RepositoryDefinition('bar', {'foo': define_foo_pipeline}) def test_get_python_file_from_previous_stack_frame(): def nest_fn_call(): # This ensures that `python_file` is this file python_file = _get_python_file_from_previous_stack_frame() return python_file # We check out dagster as 'workdir' in Buildkite, so we match the rest of the path to # python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py assert nest_fn_call().split(os.sep)[-6:] == [ 'python_modules', 'dagster', 'dagster_tests', 'core_tests', 'definitions_tests', 'test_handle.py', ]
33.808176
100
0.70626
1,131
10,751
6.314766
0.094607
0.047606
0.089611
0.078409
0.817278
0.775833
0.756511
0.706945
0.660739
0.549006
0
0.000347
0.196354
10,751
317
101
33.914827
0.826273
0.01944
0
0.460251
0
0
0.187702
0.039192
0
0
0
0
0.200837
1
0.104603
false
0
0.058577
0.016736
0.1841
0
0
0
0
null
0
0
0
1
1
1
1
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
4
f09faeeba8950d503f5cc97402417b53280d4a49
209
py
Python
src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py
chrisdoherty4/sh-sensors
b698374f1f706857721ccfb13338d97ced054933
[ "Apache-2.0" ]
null
null
null
src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py
chrisdoherty4/sh-sensors
b698374f1f706857721ccfb13338d97ced054933
[ "Apache-2.0" ]
null
null
null
src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py
chrisdoherty4/sh-sensors
b698374f1f706857721ccfb13338d97ced054933
[ "Apache-2.0" ]
null
null
null
# Abstract sensor. class AbstractSensor(object): # A string name for this sensor. _name = "DEFAULT" # Constructor def __init__(self, name): self._name = name def getName(self): return self._name
17.416667
33
0.703349
27
209
5.185185
0.62963
0.171429
0
0
0
0
0
0
0
0
0
0
0.196172
209
11
34
19
0.833333
0.282297
0
0
0
0
0.047945
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.833333
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
1
0
0
0
1
1
0
0
4
f0ea98ef6b311bdff9c391ca35b870115a2fd890
1,214
py
Python
spacekit/dashboard/svm/pred.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
1
2020-10-14T18:04:07.000Z
2020-10-14T18:04:07.000Z
spacekit/dashboard/svm/pred.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
null
null
null
spacekit/dashboard/svm/pred.py
hakkeray/spacekit
f57e3bab80efca418b898996366d4dfb186246e0
[ "MIT" ]
null
null
null
# TODO: pick a random visit - show the three image frames, make prediction from dash import dcc from dash import html layout = html.Div( children=[ # nav html.Div( children=[ html.P("|", style={"display": "inline-block"}), dcc.Link( "Home", href="/", style={"padding": 5, "display": "inline-block"}, ), html.P("|", style={"display": "inline-block"}), dcc.Link( "Evaluation", href="/eval", style={"padding": 5, "display": "inline-block"}, ), html.P("|", style={"display": "inline-block"}), dcc.Link( "Analysis", href="/eda", style={"padding": 10, "display": "inline-block"}, ), html.P("|", style={"display": "inline-block"}), ], style={"display": "inline-block"}, ) ], style={ "width": "100%", "height": "100%", "background-color": "#242a44", "color": "white", }, )
30.35
74
0.391269
98
1,214
4.846939
0.438776
0.218947
0.303158
0.242105
0.507368
0.448421
0.448421
0.448421
0.374737
0.277895
0
0.021962
0.437397
1,214
39
75
31.128205
0.673499
0.062603
0
0.444444
0
0
0.229956
0
0
0
0
0.025641
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
1
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
1
0
0
0
0
0
0
0
0
0
0
4
f0f1211e415f13140112d8167b315a7f0e79020b
258
py
Python
model_search/translation.py
pmaigutyak/mp-search
435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e
[ "0BSD" ]
null
null
null
model_search/translation.py
pmaigutyak/mp-search
435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e
[ "0BSD" ]
null
null
null
model_search/translation.py
pmaigutyak/mp-search
435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e
[ "0BSD" ]
2
2018-03-14T11:07:34.000Z
2021-04-10T18:52:56.000Z
from modeltranslation.translator import translator, TranslationOptions from model_search.models import SearchTag class SearchTagTranslationOptions(TranslationOptions): fields = ('text', ) translator.register(SearchTag, SearchTagTranslationOptions)
21.5
70
0.833333
21
258
10.190476
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.104651
258
11
71
23.454545
0.926407
0
0
0
0
0
0.015564
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
1
0
1
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
4
0b094decdda34f3faa62c129f35cf8bd12af643a
57
py
Python
learn/dd/lambda.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
1
2020-07-27T14:00:50.000Z
2020-07-27T14:00:50.000Z
learn/dd/lambda.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
null
null
null
learn/dd/lambda.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
null
null
null
print(list(filter(lambda x: x % 2 == 0, range(1, 16))))
19
55
0.578947
11
57
3
0.909091
0
0
0
0
0
0
0
0
0
0
0.106383
0.175439
57
2
56
28.5
0.595745
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
4
0b1687eb9a36a670dce85fd49f715a566bf26ac4
71
py
Python
Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py
mwc360/azure.databricks.cicd.tools
691ba10f7c9b7955949a40c34541547ce9266a4b
[ "MIT" ]
85
2018-07-11T12:18:11.000Z
2022-03-17T08:53:32.000Z
Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py
mwc360/azure.databricks.cicd.tools
691ba10f7c9b7955949a40c34541547ce9266a4b
[ "MIT" ]
115
2018-10-17T18:19:06.000Z
2022-03-28T13:43:41.000Z
Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py
mwc360/azure.databricks.cicd.tools
691ba10f7c9b7955949a40c34541547ce9266a4b
[ "MIT" ]
76
2018-10-22T19:44:51.000Z
2022-03-15T11:46:33.000Z
print("CleanTestFile1") print('hello world') print("bob") print("test")
17.75
23
0.71831
9
71
5.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0.014925
0.056338
71
4
24
17.75
0.746269
0
0
0
0
0
0.444444
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
4
9be017010505350083d1f9179d53770cba0deeaf
206
py
Python
mysqlconnpool/__init__.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
13
2016-12-16T09:23:09.000Z
2018-03-10T08:04:00.000Z
mysqlconnpool/__init__.py
wenbobuaa/pykit
43e38fe40297a1e7a9329bcf3db3554c7ca48ead
[ "MIT" ]
74
2017-03-23T11:36:22.000Z
2018-04-02T06:19:09.000Z
mysqlconnpool/__init__.py
drmingdrmer/pykit
e25a71146e81aaf79625cf8d4f4c439ccd515b82
[ "MIT" ]
5
2016-12-27T07:30:47.000Z
2018-03-10T07:06:21.000Z
# from .mysqlconnpool import (MysqlConnectionPool,) from .mysqlconnpool import ( make, conn_query, MysqlConnectionPool, ) __all__ = [ 'make', 'conn_query', 'MysqlConnectionPool', ]
15.846154
51
0.669903
16
206
8.25
0.5
0.257576
0.348485
0.484848
0
0
0
0
0
0
0
0
0.218447
206
12
52
17.166667
0.819876
0.237864
0
0
0
0
0.212903
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
1
0
0
null
1
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
4
9be7a03baad24c0ebf6dc2aa7a1426f7cb58fbd5
347
py
Python
btools/building/fill/__init__.py
proteanblank/building_tool
920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2
[ "MIT" ]
559
2020-07-02T21:06:38.000Z
2022-03-30T17:58:56.000Z
btools/building/fill/__init__.py
cokar/building_tools
920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2
[ "MIT" ]
63
2020-07-02T16:23:27.000Z
2022-03-09T11:33:06.000Z
btools/building/fill/__init__.py
cokar/building_tools
920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2
[ "MIT" ]
59
2020-07-05T06:14:23.000Z
2022-03-12T03:22:18.000Z
import bpy from .fill_props import FillBars, FillPanel, FillLouver, FillGlassPanes, FillProperty from .fill_ops import BTOOLS_OT_add_fill from .fill_types import fill_face classes = (FillBars, FillPanel, FillLouver, FillGlassPanes, FillProperty, BTOOLS_OT_add_fill) register_fill, unregister_fill = bpy.utils.register_classes_factory(classes)
31.545455
93
0.841499
45
347
6.177778
0.466667
0.086331
0.194245
0.294964
0.381295
0
0
0
0
0
0
0
0.097983
347
10
94
34.7
0.888179
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
1
0
0
4
500934916e4a898d10701faeb86dd865e0767bd7
285
py
Python
photos/admin.py
Mukantwarivirginie/Awwards-Project
9cd905829f9a0f81393ce598938264f2184bda86
[ "MIT" ]
null
null
null
photos/admin.py
Mukantwarivirginie/Awwards-Project
9cd905829f9a0f81393ce598938264f2184bda86
[ "MIT" ]
null
null
null
photos/admin.py
Mukantwarivirginie/Awwards-Project
9cd905829f9a0f81393ce598938264f2184bda86
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile,Project # Register your models here. class ArticleAdmin(admin.ModelAdmin): filter_horizontal =('tags',) admin.site.register(Profile) admin.site.register(Project) # admin.site.register(Follow) # admin.site.register(Image)
31.666667
37
0.792982
37
285
6.081081
0.540541
0.16
0.302222
0
0
0
0
0
0
0
0
0
0.091228
285
9
38
31.666667
0.868726
0.284211
0
0
0
0
0.019901
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
1
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
1
0
1
0
0
4
501800f1558b64dfc66189845b605ce456ed2688
7,389
py
Python
nba/endpoints/homepage.py
rozzac90/new_nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
1
2017-12-29T05:01:17.000Z
2017-12-29T05:01:17.000Z
nba/endpoints/homepage.py
rozzac90/new_nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
2
2017-10-26T07:47:15.000Z
2020-04-18T12:24:36.000Z
nba/endpoints/homepage.py
rozzac90/nba
87feec5fc8ff6654fdb65229a047e0ff3023a9ff
[ "MIT" ]
null
null
null
from nba import enums from nba.utils import clean_locals from nba.endpoints.baseendpoint import BaseEndpoint class Homepage(BaseEndpoint): def leaders( self, idx_data, league_id=enums.LeagueID.Default, stat_category=enums.StatCategory.Default, season=enums.Season.Default, season_type=enums.SeasonType.Default, player_or_team=enums.PlayerOrTeam.Default, game_scope=enums.GameScope.Default, player_scope=enums.PlayerScope.Default, ): """ Get top 5 players/teams by a particular stat. :param idx_data: the index to retrieve data from json. :type idx_data: int :param league_id: league to filter for. :type league_id: nba.enums.LeagueID :param stat_category: Stat to sort leaders table by. :type stat_category: nba.enums.StatCategory :param season: Season for which to get stat leaders. :type season: nba.enums.Season :param season_type: Regular Season or Playoffs. :type season_type: nba.enums.SeasonType :param player_or_team: whether to get individual players or by team. :type player_or_team: nba.enums.PlayerOrTeam :param game_scope: what games to include in the data. :type game_scope: nba.enums.GameScope :param player_scope: filter by rookies only or all players :type player_scope: nba.enums.PlayerScope :returns: data for specified filters, as defined below by idx_data. :rtype: DataFrame ======== ================ ================================================== idx_data Name Description ======== ================ ================================================== 0 HomePageLeaders Top 5 players/teams by stat specified. 1 LeagueAverage League average of the stat specified. 2 LeagueMax League max of each stat column. ======== ================ ================================================== """ params = clean_locals(locals()) endpoint = "homepageleaders" r = self.request(endpoint, params) df = self.process_response(r, idx_data, "resultSets") return df def other_leaders( self, idx_data, league_id=enums.LeagueID.Default, stat_type=enums.StatType.Default, season=enums.Season.Default, season_type=enums.SeasonType.Default, player_or_team=enums.PlayerOrTeam.Default, game_scope=enums.GameScope.Default, player_scope=enums.PlayerScope.Default, ): """ Get top 5 players/teams by a particular stat type. :param idx_data: the index to retrieve data from json. :type idx_data: int :param league_id: league to filter for. :type league_id: nba.enums.LeagueID :param stat_type: Stat to sort leaders table by. :type stat_type: nba.enums.StatType :param season: Season for which to get stat leaders. :type season: nba.enums.Season :param season_type: Regular Season or Playoffs. :type season_type: nba.enums.SeasonType :param player_or_team: whether to get individual players or by team. :type player_or_team: nba.enums.PlayerOrTeam :param game_scope: what games to include in the data. :type game_scope: nba.enums.GameScope :param player_scope: filter by rookies only or all players :type player_scope: nba.enums.PlayerScope :returns: top 5 players for given stat type, as defined below by idx_data. :rtype: DataFrame ======== =============== ================================================================== idx_data Name Description ======== =============== ================================================================== 0 HomePageStat1 Traditional=PTS, Advanced=OFF_RATING, Tracking=DIST_MILES 1 HomePageStat2 Traditional=REB, Advanced=DEF_RATING, Tracking=AST_POINTS_CREATED 2 HomePageStat3 Traditional=AST, Advanced=NET_RATING, Tracking=DRIVES 3 HomePageStat4 Traditional=STL, Advanced=PIE, Tracking=NUM_TOUCHES 4 HomePageStat5 Traditional=FG_PCT, Advanced=REB_PCT, Tracking=POST_TOUCHES 5 HomePageStat6 Traditional=FT_PCT, Advanced=AST_PCT, Tracking=REB_CONTEST 6 HomePageStat7 Traditional=FG3_PCT, Advanced=TS_PCT, Tracking=CATCH_SHOOT_PTS 7 HomePageStat8 Traditional=BLK, Advanced=EFG_PCT, Tracking=PULL_UP_PTS ======== =============== ================================================================== """ params = clean_locals(locals()) endpoint = "homepagev2" r = self.request(endpoint, params) df = self.process_response(r, idx_data, "resultSets") return df def leaders_tiles( self, idx_data, league_id=enums.LeagueID.Default, stat=enums.Stat.Default, season=enums.Season.Default, season_type=enums.SeasonType.Default, player_or_team=enums.PlayerOrTeam.Default, game_scope=enums.GameScope.Default, player_scope=enums.PlayerScope.Default, ): """ Get top 5 players/teams by a particular stat. :param idx_data: the index to retrieve data from json. :type idx_data: int :param league_id: league to filter for. :type league_id: nba.enums.LeagueID :param stat: Stat to sort leaders table by. :type stat: nba.enums.Stat :param season: Season for which to get stat leaders. :type season: nba.enums.Season :param season_type: Regular Season or Playoffs. :type season_type: nba.enums.SeasonType :param player_or_team: whether to get individual players or by team. :type player_or_team: nba.enums.PlayerOrTeam :param game_scope: what games to include in the data. :type game_scope: nba.enums.GameScope :param player_scope: filter by rookies only or all players :type player_scope: nba.enums.PlayerScope :returns: data for specified filters, as defined below by idx_data. :rtype: DataFrame ======== ================== ==================================================== idx_data Name Description ======== ================== ==================================================== 0 LeadersTiles Top 5 players/teams by stat specified with id info. 1 AllTimeSeasonHigh Details of the all time high of the stat specified. 2 LastSeasonHigh Details of prior seasons high of stat specified. 3 LastSeasonHigh Details of prior seasons low of stat specified. ======== ================== ==================================================== """ params = clean_locals(locals()) endpoint = "leaderstiles" r = self.request(endpoint, params) df = self.process_response(r, idx_data, "resultSet") return df
47.365385
103
0.565435
796
7,389
5.114322
0.194724
0.041268
0.026529
0.019651
0.749939
0.700565
0.700565
0.685335
0.661754
0.651191
0
0.005828
0.280146
7,389
155
104
47.670968
0.759541
0.648667
0
0.730769
0
0
0.035294
0
0
0
0
0
0
1
0.057692
false
0
0.057692
0
0.192308
0
0
0
0
null
0
0
0
0
1
1
0
0
1
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
4
502f804da273970e4b908b140a5ecf69e6fa500c
27
py
Python
shapeanalyzer/transform.py
luwei14/ShapeAnalyzer
1bf44ff3168860bf3db61ef9e22599cc3a4a861c
[ "MIT" ]
7
2017-05-23T02:22:22.000Z
2021-01-09T21:51:09.000Z
shapeanalyzer/transform.py
luwei14/ShapeAnalyzer
1bf44ff3168860bf3db61ef9e22599cc3a4a861c
[ "MIT" ]
null
null
null
shapeanalyzer/transform.py
luwei14/ShapeAnalyzer
1bf44ff3168860bf3db61ef9e22599cc3a4a861c
[ "MIT" ]
null
null
null
''' Geometry Transform '''
6.75
18
0.62963
2
27
8.5
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
3
19
9
0.73913
0.666667
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
1
0
0
0
0
0
0
4
503130094d0033cfb5fbce51c16a8df4e2156662
251
py
Python
networkit/randomization.py
marius-18/networkit
53a37c2c51add69840ebbc287e8abd1d1bd8a095
[ "MIT" ]
null
null
null
networkit/randomization.py
marius-18/networkit
53a37c2c51add69840ebbc287e8abd1d1bd8a095
[ "MIT" ]
null
null
null
networkit/randomization.py
marius-18/networkit
53a37c2c51add69840ebbc287e8abd1d1bd8a095
[ "MIT" ]
1
2020-02-05T17:39:47.000Z
2020-02-05T17:39:47.000Z
""" Randomize Graphs """ __author__ = "Marius Hagemann, Hung Tran, Manuel Penschuck" from _NetworKit import BipartiteGlobalCurveball, GlobalCurveball, Curveball, CurveballGlobalTradeGenerator, CurveballUniformTradeGenerator, DegreePreservingShuffle
41.833333
163
0.844622
18
251
11.5
1
0
0
0
0
0
0
0
0
0
0
0
0.091633
251
5
164
50.2
0.907895
0.063745
0
0
0
0
0.193833
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
1
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
1
0
0
0
0
4
ac8e03518a3018b9f3f74f3355f53ed4e865ecf8
4,688
py
Python
PyLESA/test_heatpump.py
andrewlyden/PyLESA
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
6
2021-09-03T13:25:22.000Z
2022-02-23T10:48:19.000Z
PyLESA/test_heatpump.py
ElsevierSoftwareX/SOFTX-D-21-00013
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
1
2021-12-07T00:03:31.000Z
2022-01-10T11:31:50.000Z
PyLESA/test_heatpump.py
ElsevierSoftwareX/SOFTX-D-21-00013
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
6
2021-01-11T11:24:26.000Z
2021-12-07T01:03:57.000Z
import pandas as pd import matplotlib.pyplot as plt import heatpump import inputs plt.style.use('ggplot') name = 'findhorn - west whins.xlsx' subname = 'hp_14_ts_550' myInputs = inputs.Inputs(name, subname) def plot_gen_reg(): heatpump.GenericRegression().plot_cop() # plot_gen_reg() def plot_cop(): hp = heatpump.perf(name, subname) cop = [] duty = [] for time in range(8760): cop.append(hp[time]['cop']) duty.append(hp[time]['duty']) cop = pd.DataFrame(cop) duty = pd.DataFrame(duty) plt.plot(cop) plt.show() # plot_cop() def simple(): inputs_basics = myInputs.heatpump_basics() inputs_simple = myInputs.heatpump_simple() inputs_demands = myInputs.demands() weather = myInputs.weather() simpleHeatPump = heatpump.HeatPump( inputs_basics['heat_pump_type'], inputs_basics['modelling_approach'], inputs_basics['capacity'], inputs_basics['ambient_delta_t'], inputs_basics['operation'], inputs_basics['minimum_output'], inputs_basics['data_input'], inputs_demands['source_temp'], inputs_demands['return_temp_DH'], weather, simple_cop=inputs_simple) print simpleHeatPump.performance() # simple() def lorentz(): inputs_basics = myInputs.heatpump_basics() inputs_lorentz = myInputs.heatpump_lorentz() inputs_demands = myInputs.demands() weather = myInputs.weather() HeatPump = heatpump.HeatPump( inputs_basics['heat_pump_type'], inputs_basics['modelling_approach'], inputs_basics['capacity'], inputs_basics['ambient_delta_t'], inputs_basics['operation'], inputs_basics['minimum_output'], inputs_basics['data_input'], inputs_demands['source_temp'], inputs_demands['return_temp_DH'], weather, lorentz_inputs=inputs_lorentz) # print HeatPump.performance() HeatPump.flow_temp_source = [70] * 8760 hp1 = HeatPump.performance() HeatPump.flow_temp_source = [60] * 8760 hp2 = HeatPump.performance() cop1 = [] duty1 = [] cop2 = [] duty2 = [] for time in range(8760): cop1.append(hp1[time]['cop']) duty1.append(hp1[time]['duty']) cop2.append(hp2[time]['cop']) duty2.append(hp2[time]['duty']) cop1 = pd.DataFrame(cop1) duty1 = pd.DataFrame(duty1) cop2 = pd.DataFrame(cop2) duty2 = pd.DataFrame(duty2) plt.plot(cop1) plt.plot(cop2) plt.show() lorentz() def generic(): inputs_basics = myInputs.heatpump_basics() inputs_demands = myInputs.demands() weather = myInputs.weather() HeatPump = heatpump.HeatPump( inputs_basics['heat_pump_type'], inputs_basics['modelling_approach'], inputs_basics['capacity'], inputs_basics['ambient_delta_t'], inputs_basics['operation'], inputs_basics['minimum_output'], inputs_basics['data_input'], inputs_demands['source_temp'], inputs_demands['return_temp_DH'], weather) print HeatPump.performance() # generic() def standard_regression(): myInputs = inputs.Inputs('WWHC.xlsx', 'hp_1000_ts_50000') inputs_basics = myInputs.heatpump_basics() inputs_standard_regression = myInputs.heatpump_standard_regression() inputs_demands = myInputs.demands() weather = myInputs.weather() HeatPump = heatpump.HeatPump( inputs_basics['heat_pump_type'], inputs_basics['modelling_approach'], inputs_basics['capacity'], inputs_basics['ambient_delta_t'], inputs_basics['operation'], inputs_basics['minimum_output'], inputs_basics['data_input'], inputs_demands['source_temp'], inputs_demands['return_temp_DH'], weather, standard_test_regression_inputs=inputs_standard_regression) HeatPump.flow_temp_source = [70] * 8760 hp1 = HeatPump.performance() HeatPump.flow_temp_source = [60] * 8760 hp2 = HeatPump.performance() cop1 = [] duty1 = [] cop2 = [] duty2 = [] for time in range(8760): cop1.append(hp1[time]['cop']) duty1.append(hp1[time]['duty']) cop2.append(hp2[time]['cop']) duty2.append(hp2[time]['duty']) cop1 = pd.DataFrame(cop1) duty1 = pd.DataFrame(duty1) cop2 = pd.DataFrame(cop2) duty2 = pd.DataFrame(duty2) plt.plot(cop1) plt.plot(cop2) plt.show() # standard_regression()
25.069519
73
0.62052
501
4,688
5.550898
0.161677
0.13808
0.028767
0.040273
0.725279
0.718806
0.656598
0.638619
0.638619
0.638619
0
0.028112
0.256399
4,688
186
74
25.204301
0.76965
0.020265
0
0.732824
0
0
0.126364
0
0
0
0
0
0
0
null
null
0
0.030534
null
null
0.015267
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
acacb6f73e129b20bc4c72f1c717af2692112334
1,889
py
Python
python/algobox/src/algobox/client/generated/api/models/__init__.py
IvanFan/algobox
b5511f59b735b7f91f34484c57d4133c5b36e034
[ "Apache-2.0" ]
94
2017-01-23T21:34:52.000Z
2022-01-27T17:31:49.000Z
python/algobox/src/algobox/client/generated/api/models/__init__.py
IvanFan/algobox
b5511f59b735b7f91f34484c57d4133c5b36e034
[ "Apache-2.0" ]
10
2017-01-15T13:01:49.000Z
2017-10-31T01:36:12.000Z
python/algobox/src/algobox/client/generated/api/models/__init__.py
IvanFan/algobox
b5511f59b735b7f91f34484c57d4133c5b36e034
[ "Apache-2.0" ]
58
2017-01-13T21:45:14.000Z
2021-12-22T20:37:40.000Z
# coding: utf-8 """ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) Generated by: https://github.com/swagger-api/swagger-codegen.git 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. """ from __future__ import absolute_import # import models into model package from .close_strategy import CloseStrategy from .connection_info import ConnectionInfo from .connection_registration_dto import ConnectionRegistrationDto from .connection_registration_request_dto import ConnectionRegistrationRequestDto from .health_status import HealthStatus from .instrument_info import InstrumentInfo from .instrument_info_detailed import InstrumentInfoDetailed from .instrument_mapping import InstrumentMapping from .instrument_subscription_dto import InstrumentSubscriptionDto from .market_hours import MarketHours from .open_strategy import OpenStrategy from .order import Order from .order_request import OrderRequest from .price_ohlc import PriceOhlc from .price_tick import PriceTick from .strategy_event import StrategyEvent from .strategy_history import StrategyHistory from .strategy_info import StrategyInfo from .strategy_registration import StrategyRegistration from .strategy_registration_request_dto import StrategyRegistrationRequestDto from .string_value_dto import StringValueDto from .trade import Trade
38.55102
105
0.823187
239
1,889
6.368201
0.527197
0.039422
0.018397
0.027595
0.049934
0.049934
0.049934
0
0
0
0
0.003066
0.13658
1,889
48
106
39.354167
0.930104
0.3928
0
0
1
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
acb11589f10e0578de00930852cb2e147427c801
9,653
py
Python
tests/test_apps/test_covid_optimisation.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
14
2020-03-11T06:15:30.000Z
2022-03-09T03:38:35.000Z
tests/test_apps/test_covid_optimisation.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
96
2020-01-29T05:10:29.000Z
2022-03-31T01:48:46.000Z
tests/test_apps/test_covid_optimisation.py
emmamcbryde/AuTuMN-1
b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f
[ "BSD-2-Clause-FreeBSD" ]
10
2020-04-24T00:38:00.000Z
2021-08-19T16:19:03.000Z
from datetime import date from unittest import mock import numpy as np import pytest from summer.model import CompartmentalModel # from autumn.projects.covid_19.mixing_optimisation import mixing_opti as opti # from autumn.projects.covid_19.mixing_optimisation import write_scenarios # from autumn.projects.covid_19.mixing_optimisation.constants import OPTI_REGIONS, PHASE_2_START_TIME from autumn.settings import Region @pytest.mark.mixing_optimisation def test_dummy_placeholder(): pass # # # @pytest.mark.local_only # @pytest.mark.parametrize("region", Region.MIXING_OPTI_REGIONS) # @mock.patch("models.covid_19.mixing_optimisation.mixing_opti.PHASE_2_START_TIME", 100) # def test_run_root_models_partial(region): # """ # Smoke test: ensure we can build and run each root model with nothing crashing. # """ # model = opti.run_root_model(region) # assert type(model) is CompartmentalModel # assert model.outputs is not None # # # @pytest.mark.github_only # @pytest.mark.mixing_optimisation # @pytest.mark.parametrize("region", Region.MIXING_OPTI_REGIONS) # def test_run_root_models_full(region): # """ # Smoke test: ensure we can build and run each root model with nothing crashing. # """ # model = opti.run_root_model(region) # assert type(model) is CompartmentalModel # assert model.outputs is not None # # # AGE_GROUPS = [ # "0", # "5", # "10", # "15", # "20", # "25", # "30", # "35", # "40", # "45", # "50", # "55", # "60", # "65", # "70", # "75", # ] # AVAILABLE_MODES = [ # "by_age", # "by_location", # ] # AVAILABLE_DURATIONS = ["six_months", "twelve_months"] # DECISION_VARS = { # "by_age": [1 for _ in range(len(AGE_GROUPS))], # "by_location": [1, 1, 1], # } # # # @pytest.mark.mixing_optimisation # @pytest.mark.github_only # @pytest.mark.parametrize("duration", AVAILABLE_DURATIONS) # @pytest.mark.parametrize("mode", AVAILABLE_MODES) # def test_full_optimisation_iteration_for_uk(mode, duration): # country = Region.UNITED_KINGDOM # root_model = opti.run_root_model(country) # h, d, yoll = opti.objective_function(DECISION_VARS[mode], root_model, mode, country, duration) # assert h in (True, False) # assert d >= 0 # assert yoll >= 0 # # # @pytest.mark.parametrize("duration", AVAILABLE_DURATIONS) # @pytest.mark.parametrize("mode", AVAILABLE_MODES) # def test_build_params_for_phases_2_and_3__smoke_test(mode, duration): # opti.build_params_for_phases_2_and_3( # DECISION_VARS[mode], elderly_mixing_reduction=None, duration=duration, mode=mode # ) # # # @mock.patch("models.covid_19.mixing_optimisation.mixing_opti.Scenario") # def test_objective_function_calculations(mock_scenario_cls): # root_model = mock.Mock() # sc_model = mock.Mock() # mock_scenario_cls.return_value.model = sc_model # phase_2_days = 183 # phase_3_days = 14 + 10 # num_timesteps = PHASE_2_START_TIME + phase_2_days + phase_3_days # sc_model.times = np.array(range(num_timesteps)) # sc_model.derived_outputs = { # # Expect 55 deaths as sum of vals. # "infection_deaths": np.concatenate( # [np.zeros(PHASE_2_START_TIME), np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])], # ), # # Expect 108 yoll as sum of vals. # "years_of_life_lost": np.concatenate( # [np.zeros(PHASE_2_START_TIME), np.array([1, 3, 5, 7, 9, 11, 13, 17, 19, 23])], # ), # # Expect immunity because incidence decreasing # "incidence": np.concatenate( # [ # np.zeros(PHASE_2_START_TIME + phase_2_days + 14), # np.array([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]), # ], # ), # } # # Expect 10% immune. # sc_model.compartment_names = ["a", "b_recovered", "c_recovered"] # sc_model.outputs = np.zeros([num_timesteps, 3]) # sc_model.outputs[PHASE_2_START_TIME + phase_2_days, 0] = 90 # sc_model.outputs[PHASE_2_START_TIME + phase_2_days, 1] = 3 # sc_model.outputs[PHASE_2_START_TIME + phase_2_days, 2] = 7 # # decision_variables = [1 for _ in range(len(AGE_GROUPS))] # (herd_immunity, total_nb_deaths, years_of_life_lost,) = opti.objective_function( # decision_variables, # root_model, # mode="by_age", # country="france", # duration="six_months", # ) # assert herd_immunity # assert total_nb_deaths == 55 # assert years_of_life_lost == 108 # # # @pytest.mark.xfail # def test_build_params_for_phases_2_and_3__with_location_mode_and_microdistancing(): # scenario_params = opti.build_params_for_phases_2_and_3( # decision_variables=[2, 3, 5], # elderly_mixing_reduction=None, # duration="six_months", # mode="by_location", # ) # loc_dates = [date(2020, 7, 31), date(2021, 1, 31), date(2021, 2, 1)] # # assert scenario_params == { # "time": { # "start": 213, # "end": 669, # }, # "mobility": { # "age_mixing": {}, # "microdistancing": {"behaviour": {"parameters": {"sigma": 1.0}}}, # "mixing": { # "other_locations": { # "times": loc_dates, # "values": [2, 2, 1.0], # "append": False, # }, # "school": { # "times": loc_dates, # "values": [3, 3, 1.0], # "append": False, # }, # "work": { # "times": loc_dates, # "values": [5, 5, 1.0], # "append": False, # }, # }, # }, # "importation": { # "props_by_age": None, # "movement_prop": None, # "quarantine_timeseries": {"times": [], "values": []}, # "case_timeseries": { # "times": [397, 398, 399, 400], # "values": [0, 5, 5, 0], # }, # }, # } # # # @pytest.mark.xfail # def test_build_params_for_phases_2_and_3__with_age_mode(): # scenario_params = opti.build_params_for_phases_2_and_3( # decision_variables=[i for i in range(16)], # elderly_mixing_reduction=None, # duration="six_months", # mode="by_age", # ) # age_dates = [date(2020, 7, 31), date(2020, 8, 1), date(2021, 1, 31), date(2021, 2, 1)] # loc_dates = [date(2020, 7, 31), date(2021, 1, 31), date(2021, 2, 1)] # # assert scenario_params == { # "time": { # "start": 213, # "end": 669, # }, # "mobility": { # "age_mixing": { # "0": {"values": [1, 0, 0, 1], "times": age_dates}, # "5": {"values": [1, 1, 1, 1], "times": age_dates}, # "10": {"values": [1, 2, 2, 1], "times": age_dates}, # "15": {"values": [1, 3, 3, 1], "times": age_dates}, # "20": {"values": [1, 4, 4, 1], "times": age_dates}, # "25": {"values": [1, 5, 5, 1], "times": age_dates}, # "30": {"values": [1, 6, 6, 1], "times": age_dates}, # "35": {"values": [1, 7, 7, 1], "times": age_dates}, # "40": {"values": [1, 8, 8, 1], "times": age_dates}, # "45": {"values": [1, 9, 9, 1], "times": age_dates}, # "50": {"values": [1, 10, 10, 1], "times": age_dates}, # "55": {"values": [1, 11, 11, 1], "times": age_dates}, # "60": {"values": [1, 12, 12, 1], "times": age_dates}, # "65": {"values": [1, 13, 13, 1], "times": age_dates}, # "70": {"values": [1, 14, 14, 1], "times": age_dates}, # "75": {"values": [1, 15, 15, 1], "times": age_dates}, # }, # "mixing": { # "other_locations": { # "times": loc_dates, # "values": [1.0, 1.0, 1.0], # "append": False, # }, # "school": { # "times": loc_dates, # "values": [1.0, 1.0, 1.0], # "append": False, # }, # "work": { # "times": loc_dates, # "values": [1.0, 1.0, 1.0], # "append": False, # }, # }, # }, # "importation": { # "props_by_age": None, # "movement_prop": None, # "quarantine_timeseries": {"times": [], "values": []}, # "case_timeseries": { # "times": [397, 398, 399, 400], # "values": [0, 5, 5, 0], # }, # }, # } """ Test write_scenarios module """ # # @pytest.mark.mixing_optimisation # def test_read_optimised_variables(): # test_file = "dummy_vars_for_test.csv" # df = write_scenarios.read_opti_outputs(test_file) # decision_vars = write_scenarios.read_decision_vars( # df, "france", "by_age", "six_months", "deaths" # ) # assert decision_vars == [0.99] * 16 # # # @pytest.mark.mixing_optimisation # def test_build_all_scenarios(): # test_file = "dummy_vars_for_test.csv" # all_sc_params = write_scenarios.build_all_scenario_dicts_from_outputs(test_file) # # assert set(list(all_sc_params.keys())) == set(OPTI_REGIONS) # # assert list(all_sc_params["france"].keys()) == [1, 9] # # assert list(all_sc_params["france"][1].keys()) == ["time", "mobility", "parent"]
34.598566
101
0.5389
1,137
9,653
4.301671
0.188215
0.027193
0.029442
0.045798
0.546105
0.526682
0.470456
0.422
0.370067
0.299734
0
0.059909
0.297938
9,653
278
102
34.723022
0.661797
0.917124
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0.111111
0.666667
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
4
acb4704e0d4280ce7b7919a9da22abcc5e11ec98
279
py
Python
media_manager/mixins.py
laflamablanca/media_management_lti
fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5
[ "BSD-3-Clause" ]
null
null
null
media_manager/mixins.py
laflamablanca/media_management_lti
fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5
[ "BSD-3-Clause" ]
null
null
null
media_manager/mixins.py
laflamablanca/media_management_lti
fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5
[ "BSD-3-Clause" ]
null
null
null
import json class JsonMixin(object): def to_json(self, data, pretty=True): if pretty: return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': ')) return json.dumps(data) def from_json(self, str): return json.loads(str)
25.363636
85
0.612903
37
279
4.540541
0.594595
0.178571
0.178571
0.22619
0
0
0
0
0
0
0
0.004785
0.250896
279
10
86
27.9
0.799043
0
0
0
0
0
0.010753
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.875
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
1
0
0
0
1
1
0
0
4
acc7cff9e0fb052804aa9a1ec7abf3c452882421
31
py
Python
tests/lif/if_var.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
null
null
null
tests/lif/if_var.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
1
2022-03-20T11:08:45.000Z
2022-03-20T11:08:45.000Z
tests/lif/if_var.py
Mieschendahl/assignment-final-stub
19eea657fcc4f8a455c42028f34b918628514cc0
[ "MIT" ]
6
2022-03-13T13:10:25.000Z
2022-03-28T22:18:12.000Z
x = True print(42 if x else 0)
10.333333
21
0.645161
8
31
2.5
0.875
0
0
0
0
0
0
0
0
0
0
0.130435
0.258065
31
2
22
15.5
0.73913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
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
1
0
4
acce9d75eeb0fd4597d6831068f897aa9e770341
370
py
Python
tests/test_boiler_plate.py
christiam/python-distrib-pkg-sample
c8bdf7279e770195de953265de156c7db04e07e5
[ "MIT" ]
null
null
null
tests/test_boiler_plate.py
christiam/python-distrib-pkg-sample
c8bdf7279e770195de953265de156c7db04e07e5
[ "MIT" ]
null
null
null
tests/test_boiler_plate.py
christiam/python-distrib-pkg-sample
c8bdf7279e770195de953265de156c7db04e07e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_boiler_plate ---------------------------------- Tests for `boiler_plate` module. """ import unittest import boiler_plate class TestBoiler_plate(unittest.TestCase): def setUp(self): pass def test_something(self): assert(boiler_plate.__version__) def tearDown(self): pass
14.230769
42
0.6
41
370
5.146341
0.634146
0.208531
0
0
0
0
0
0
0
0
0
0.00339
0.202703
370
25
43
14.8
0.711864
0.348649
0
0.222222
0
0
0
0
0
0
0
0
0.111111
1
0.333333
false
0.222222
0.222222
0
0.666667
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
1
0
0
1
0
0
4
ace981feda47bff4a08907ccec700b765e1948a6
52
py
Python
ygq/wsgi.py
chichengfengxue/flask-youguoqi
e1423602eaea938cb69b7ff0d60c6e61becceca5
[ "MIT" ]
null
null
null
ygq/wsgi.py
chichengfengxue/flask-youguoqi
e1423602eaea938cb69b7ff0d60c6e61becceca5
[ "MIT" ]
null
null
null
ygq/wsgi.py
chichengfengxue/flask-youguoqi
e1423602eaea938cb69b7ff0d60c6e61becceca5
[ "MIT" ]
null
null
null
from .__init__ import create_app app = create_app()
17.333333
32
0.788462
8
52
4.375
0.625
0.514286
0
0
0
0
0
0
0
0
0
0
0.134615
52
2
33
26
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
4
4a0950981a1882e84f2d1e75c5bd45d38b882cc7
105
py
Python
toggl_report/toggl_report_app/apps.py
naokodama/toggl_report
5280ec40b27872b90c72e07613829f7091ce302f
[ "MIT" ]
null
null
null
toggl_report/toggl_report_app/apps.py
naokodama/toggl_report
5280ec40b27872b90c72e07613829f7091ce302f
[ "MIT" ]
null
null
null
toggl_report/toggl_report_app/apps.py
naokodama/toggl_report
5280ec40b27872b90c72e07613829f7091ce302f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TogglReportAppConfig(AppConfig): name = 'toggl_report_app'
17.5
38
0.790476
12
105
6.75
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.142857
105
5
39
21
0.9
0
0
0
0
0
0.152381
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
1
0
0
4
4a0bde24e10dba91b983bad2939fb64d3f979cf4
41
py
Python
venv/lib/python3.6/encodings/hp_roman8.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-04-17T13:35:50.000Z
2021-12-21T00:11:36.000Z
venv/lib/python3.6/encodings/hp_roman8.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2021-03-31T19:51:24.000Z
2021-06-10T23:05:09.000Z
venv/lib/python3.6/encodings/hp_roman8.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-10-01T08:47:35.000Z
2020-07-11T06:32:16.000Z
/usr/lib/python3.6/encodings/hp_roman8.py
41
41
0.829268
8
41
4.125
1
0
0
0
0
0
0
0
0
0
0
0.073171
0
41
1
41
41
0.731707
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
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
1
0
0
0
0
0
0
0
0
4
4a181747dabfb4dcc25c47946cde12192403d54a
301
py
Python
rabbitai/migrations/versions/ef8843b41dac_.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/ef8843b41dac_.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/ef8843b41dac_.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
"""empty message Revision ID: ef8843b41dac Revises: ('3b626e2a6783', 'ab3d66c4246e') Create Date: 2016-10-02 10:35:38.825231 """ # revision identifiers, used by Alembic. revision = "ef8843b41dac" down_revision = ("3b626e2a6783", "ab3d66c4246e") def upgrade(): pass def downgrade(): pass
15.842105
48
0.710963
34
301
6.264706
0.735294
0.225352
0
0
0
0
0
0
0
0
0
0.25098
0.152824
301
18
49
16.722222
0.584314
0.538206
0
0.333333
0
0
0.274809
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
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
4
4a25480eae4cc89441bdfba7a0937e6c8735d281
82
py
Python
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
6
2016-10-02T15:27:55.000Z
2016-12-01T15:08:31.000Z
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
null
null
null
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
3
2016-10-04T16:43:48.000Z
2020-03-01T08:08:37.000Z
from .event import Event class UnfollowEvent(Event): type = 'unfollow'
13.666667
28
0.670732
9
82
6.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.243902
82
5
29
16.4
0.887097
0
0
0
0
0
0.103896
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
1
0
0
4
c57acb9c1aef629e2a000b6bd853a3d541c8da76
120
py
Python
fperms_iscore/apps.py
Formulka/django-perms-iscore
6d7e1462d6c6c72208b9af0b5d07702b2cc9f074
[ "MIT" ]
null
null
null
fperms_iscore/apps.py
Formulka/django-perms-iscore
6d7e1462d6c6c72208b9af0b5d07702b2cc9f074
[ "MIT" ]
null
null
null
fperms_iscore/apps.py
Formulka/django-perms-iscore
6d7e1462d6c6c72208b9af0b5d07702b2cc9f074
[ "MIT" ]
null
null
null
# -*- coding: utf-8 from django.apps import AppConfig class FPermsIscoreConfig(AppConfig): name = 'fperms_iscore'
17.142857
36
0.733333
14
120
6.214286
0.928571
0
0
0
0
0
0
0
0
0
0
0.009901
0.158333
120
6
37
20
0.851485
0.141667
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
1
0
0
4