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
0576f6931b07313aa89bf7ef129f4f062d1c3109
125
py
Python
mugicli/pyunix2dos.py
mugiseyebrows/mugi-cli
4381086d4bd5a781248cd2cc5ef0e1042534942e
[ "MIT" ]
null
null
null
mugicli/pyunix2dos.py
mugiseyebrows/mugi-cli
4381086d4bd5a781248cd2cc5ef0e1042534942e
[ "MIT" ]
null
null
null
mugicli/pyunix2dos.py
mugiseyebrows/mugi-cli
4381086d4bd5a781248cd2cc5ef0e1042534942e
[ "MIT" ]
null
null
null
from . import convertlineterm, TO_DOS def main(): convertlineterm(TO_DOS) if __name__ == "__main__": main()
15.625
38
0.648
14
125
5.071429
0.642857
0.478873
0.56338
0
0
0
0
0
0
0
0
0
0.24
125
7
39
17.857143
0.747368
0
0
0
0
0
0.067797
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0591389f96d97da24d1c51363cd12bbbd2f9a0bd
11,409
py
Python
finnish_media_scrapers/query.py
hsci-r/finnish-media-scraper
b63b54e3cdc2c55b426eeeeb9656da45a8a9ed4f
[ "MIT" ]
6
2021-06-29T10:31:01.000Z
2022-03-16T16:02:31.000Z
finnish_media_scrapers/query.py
hsci-r/finnish-media-scraper
b63b54e3cdc2c55b426eeeeb9656da45a8a9ed4f
[ "MIT" ]
6
2021-06-28T15:09:03.000Z
2022-01-10T12:10:05.000Z
finnish_media_scrapers/query.py
hsci-r/finnish-media-scraper
b63b54e3cdc2c55b426eeeeb9656da45a8a9ed4f
[ "MIT" ]
1
2021-07-17T00:35:09.000Z
2021-07-17T00:35:09.000Z
"""Functions related to querying articles from the apis of YLE, Helsingin Sanomat (HS), Ilta-Sanomat (IS) and Iltalehti (IL) """ from datetime import datetime, timedelta from typing import AsyncIterable import attr from aiohttp import ClientSession @attr.s class Article: """An article Attributes: id (str): the unique id for the article url (str): the url from which the article may be found title (str): the title or headline of the article date_modified (str): the date of last modification for the article """ id: str = attr.ib() url: str = attr.ib() title: str = attr.ib() date_modified: str = attr.ib() @attr.s class Result: """A result from a single API call Attributes: articles (list[Article]): a list of the article objects returned url (str): the URL of the API query total (int): the total number of articles for the query. -1 if not available. """ articles: 'list[Article]' = attr.ib() url: str = attr.ib() total: int = attr.ib(default=-1) yle_api: str = "https://yle-fi-search.api.yle.fi/v1/search" async def query_yle(session: ClientSession, query: str, language: str, from_date: str, to_date: str, batch_size: int = 10000) -> AsyncIterable[Result]: """Query the YLE API for articles matching a query Args: session (ClientSession): the aiohttp session to use query (str): the query string to search for language (str): language to search (either 'fi' or 'sv') from_date (str): date to search from (inclusive, YYYY-MM-DD) to_date (str): date to search to (inclusive, YYYY-MM-DD) batch_size (int, optional): How many entries to query for in a single API call. Maximum and default for the YLE API is 10000. Raises: ValueError: when something goes wrong in the API call Yields: AsyncIterable[Result]: each Result contains the results from a single API call """ params = { 'app_id': 'hakuylefi_v2_prod', 'app_key': '4c1422b466ee676e03c4ba9866c0921f', 'service': 'uutiset', 'language': language, 'uiLanguage': language, 'type': 'article', 'time': 'custom', 'timeFrom': from_date, 'timeTo': to_date, 'query': query, 'offset': 0, 'limit': batch_size } async with session.get(yle_api, params=params) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if response_json is None: raise ValueError(f"Got empty response for {response.url}") if response_json['meta']['count'] > 10000: raise ValueError( f"Query results in {response_json['meta']['count']} results. The YLE API refuses to return more than 10000 results, so refusing to continue. You can work around this limitation by doing multiple queries on smaller timespans.") while True: async with session.get(yle_api, params=params) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if response_json is None: raise ValueError(f"Got empty response for {response.url}") if len(response_json['data']) == 0: # Got 0 results, assuming we're done. break articles = [Article(id=a['id'], url=a['url']['full'], title=a['headline'], date_modified=a['datePublished']) for a in response_json['data']] yield Result(articles, str(response.url), response_json['meta']['count']) params['offset'] += batch_size if params['offset'] > response_json['meta']['count']: # Got all results from the API.") break is_api: str = "https://www.is.fi/api/search" async def query_is(session: ClientSession, query: str, from_date: str, to_date: str, batch_size: int = 100) -> AsyncIterable[Result]: """Query the IS API for articles matching a query Args: session (ClientSession): the aiohttp session to use query (str): the query string to search for from_date (str): date to search from (inclusive, YYYY-MM-DD) to_date (str): date to search to (inclusive, YYYY-MM-DD) batch_size (int, optional): How many entries to query for in a single API call. Values supported by the IS API are 50 and 100 (which is the default). Raises: ValueError: when something goes wrong in the API call Yields: AsyncIterable[Result]: each Result contains the results from a single API call """ def _build_is_url(query: str, offset: int, limit: int, date_start: int, date_end: int) -> str: return f"{is_api}/{query}/kaikki/custom/new/{offset}/{limit}/{date_start}/{date_end}" date_start = int(datetime.timestamp( datetime.fromisoformat(from_date)) * 1000) date_end = int(datetime.timestamp( datetime.fromisoformat(to_date) + timedelta(days=1)) * 1000) async with session.get(_build_is_url( query, 9950, 50, date_start, date_end)) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if len(response_json) != 0: raise ValueError("Query results in more than 9950 results. The IS API refuses to return more than 10000 results, so refusing to continue. You can work around this limitation by doing multiple queries on smaller timespans.") offset = 0 while True: async with session.get(_build_is_url(query, offset, batch_size, date_start, date_end)) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if response_json is None: raise ValueError(f"Got empty response for {response.url}") if len(response_json) == 0: # Got 0 results, assuming we're done. break articles = [Article(id=a['id'], url='https://www.is.fi'+a['href'], title=a['title'], date_modified=a['displayDate']) for a in response_json] yield Result(articles, str(response.url), -1) offset += batch_size il_api: str = "https://api.il.fi/v1/articles/search" async def query_il(session: ClientSession, query: str, from_date: str, to_date: str, batch_size: int = 200) -> AsyncIterable[Result]: """Query the IL API for articles matching a query Args: session (ClientSession): the aiohttp session to use query (str): the query string to search for from_date (str): date to search from (inclusive, YYYY-MM-DD) to_date (str): date to search to (inclusive, YYYY-MM-DD) batch_size (int, optional): How many entries to query for in a single API call. Maximum and default for the IL API is 200. Raises: ValueError: when something goes wrong in the API call Yields: AsyncIterable[Result]: each Result contains the results from a single API call """ params = { 'date_start': from_date, 'date_end': to_date, 'q': query, 'offset': 0, 'limit': batch_size } while True: async with session.get(il_api, params=params) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = (await response.json())['response'] if response_json is None: raise ValueError(f"Got empty response for {response.url}") if len(response_json) == 0: # Got 0 results, assuming we're done. break articles = [Article( id=a['article_id'], url='http://iltalehti.fi/' + a['category']['category_name']+"/a/"+a['article_id'], title=a['title'], date_modified=a['updated_at'] if a['updated_at'] is not None else a['published_at'] ) for a in response_json] yield Result(articles, str(response.url), -1) params['offset'] += batch_size hs_api: str = "https://www.hs.fi/api/search" async def query_hs(session: ClientSession, query: str, from_date: str, to_date: str, batch_size: int = 100) -> AsyncIterable[Result]: """Query the HS API for articles matching a query Args: session (ClientSession): the aiohttp session to use query (str): the query string to search for from_date (str): date to search from (inclusive, YYYY-MM-DD) to_date (str): date to search to (inclusive, YYYY-MM-DD) batch_size (int, optional): How many entries to query for in a single API call. Values supported by the HS API are 50 and 100 (which is the default). Raises: ValueError: when something goes wrong in the API call Yields: AsyncIterable[Result]: each Result contains the results from a single API call """ def _build_hs_url(query: str, offset: int, limit: int, date_start: int, date_end: int) -> str: return f"{hs_api}/{query}/kaikki/custom/new/{offset}/{limit}/{date_start}/{date_end}" def _build_article_url(href: str) -> str: if "http" in href or "www" in href: return href return 'https://www.hs.fi'+href date_start = int(datetime.timestamp( datetime.fromisoformat(from_date)) * 1000) date_end = int(datetime.timestamp( datetime.fromisoformat(to_date) + timedelta(days=1)) * 1000) async with session.get(_build_hs_url( query, 9950, 50, date_start, date_end)) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if len(response_json) != 0: raise ValueError("Query results in more than 9950 results. The HS API refuses to return more than 10000 results, so refusing to continue. You can work around this limitation by doing multiple queries on smaller timespans.") offset = 0 while True: async with session.get(_build_hs_url(query, offset, batch_size, date_start, date_end)) as response: if response.status != 200: raise ValueError( f"Got unexpected response code {response.status} for {response.url}.") response_json = await response.json() if response_json is None: raise ValueError(f"Got empty response for {response.url}") if len(response_json) == 0: # Got 0 results, assuming we're done. break articles = [Article(id=a['id'], url=_build_article_url(a['href']), title=a['title'], date_modified=a['displayDate']) for a in response_json] yield Result(articles, str(response.url), -1) offset += batch_size
45.819277
242
0.627399
1,527
11,409
4.595285
0.128356
0.056434
0.029642
0.032493
0.762719
0.757589
0.724811
0.724811
0.723671
0.723671
0
0.01857
0.268385
11,409
248
243
46.004032
0.822092
0.068893
0
0.566667
0
0.02
0.254527
0.026911
0
0
0
0
0
1
0.02
false
0
0.026667
0.013333
0.126667
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
554ffa5716e26a34f499295280d518f7bae06f10
4,663
py
Python
test_agilent4284a.py
H000i/Agilent4284A
9c0578a870cb5a1ce5c463ffd812a57918bfa672
[ "MIT" ]
null
null
null
test_agilent4284a.py
H000i/Agilent4284A
9c0578a870cb5a1ce5c463ffd812a57918bfa672
[ "MIT" ]
2
2018-07-17T06:46:19.000Z
2018-07-22T05:58:59.000Z
test_agilent4284a.py
H000i/Agilent4284A
9c0578a870cb5a1ce5c463ffd812a57918bfa672
[ "MIT" ]
1
2019-11-08T05:24:36.000Z
2019-11-08T05:24:36.000Z
import unittest from agilent4284a import Agilent4284A from pyvisa.constants import StatusCode def get_visaaddr(): # depends on environment. please modify here. return 'GPIB0::3::INSTR' def get_id(): # depends on environment and instrument. please modify here. return 'HEWLETT-PACKARD,4284A,0,REV01.20\n' class TestAgilent4284A(unittest.TestCase): def test_init(self): visa_addr = get_visaaddr() Agilent4284A(visa_addr) def test_get_id(self): visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.get_id() self.assertEqual(result, get_id()) def test_trigger_immediate(self): visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.trigger_immediate() self.assertEqual(result[1], StatusCode.success) def test_set_frequency(self): freq = 500 visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_frequency(freq) self.assertEqual(result[1], StatusCode.success) def test_set_frequency_unit_Hz(self): freq = 500 unit = 'Hz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_frequency(freq, unit) self.assertEqual(result[1], StatusCode.success) def test_set_frequency_unit_kHz(self): freq = 500 unit = 'kHz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_frequency(freq, unit) self.assertEqual(result[1], StatusCode.success) def test_set_frequency_unit_MHz(self): freq = 1 unit = 'MHz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_frequency(freq, unit) self.assertEqual(result[1], StatusCode.success) def test_get_frequency(self): freq = 500 unit = 'Hz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result_set = lcr.set_frequency(freq, unit) result_get = lcr.get_frequency() self.assertEqual(result_set[1], StatusCode.success) self.assertEqual(result_get, freq) def test_set_impedance_type_ZTD(self): imp_type = 'ZTD' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_impedance_type(imp_type) self.assertEqual(result[1], StatusCode.success) def test_set_impedance_type_ZTR(self): imp_type = 'ZTR' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_impedance_type(imp_type) self.assertEqual(result[1], StatusCode.success) def test_get_impedance(self): visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.get_impedance() self.assertEqual(type(result), list) self.assertEqual(len(result), 3) self.assertEqual(type(result[0]), float) self.assertEqual(type(result[1]), float) def test_get_impedance_delayed(self): delay = 2 visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.get_impedance(delay) self.assertEqual(type(result), list) self.assertEqual(len(result), 3) self.assertEqual(type(result[0]), float) self.assertEqual(type(result[1]), float) def test_set_freq_and_get_impedance(self): freq = 500 unit = 'Hz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result_set = lcr.set_frequency(freq, unit) result = lcr.get_impedance() self.assertEqual(result_set[1], StatusCode.success) self.assertEqual(type(result), list) self.assertEqual(len(result), 3) self.assertEqual(type(result[0]), float) self.assertEqual(type(result[1]), float) def test_set_lowest_freq_and_get_impedance(self): freq = 20 unit = 'Hz' visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result_set = lcr.set_frequency(freq, unit) result = lcr.get_impedance() self.assertEqual(result_set[1], StatusCode.success) self.assertEqual(type(result), list) self.assertEqual(len(result), 3) self.assertEqual(type(result[0]), float) self.assertEqual(type(result[1]), float) def test_set_impedance_range(self): imp_range = 10 visa_addr = get_visaaddr() lcr = Agilent4284A(visa_addr) result = lcr.set_impedance_range(imp_range) self.assertEqual(result[1], StatusCode.success) if __name__ == '__main__': unittest.main()
30.083871
75
0.644435
563
4,663
5.092362
0.124334
0.083711
0.057551
0.099407
0.780607
0.760028
0.73038
0.73038
0.73038
0.70736
0
0.036452
0.252842
4,663
154
76
30.279221
0.786452
0.021874
0
0.644068
0
0
0.016893
0.007459
0
0
0
0
0.245763
1
0.144068
false
0
0.025424
0.016949
0.194915
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
555c98dc59d31399c36fbccf33b4c0662ccfbdbf
189
py
Python
middlewares/statistics.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
3
2021-10-17T20:37:40.000Z
2022-03-17T10:29:14.000Z
middlewares/statistics.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
4
2021-09-02T13:26:11.000Z
2022-03-16T12:26:36.000Z
middlewares/statistics.py
Zadigo/zineb
2addaa337600afec3c9696d77e0ccf3c5edc29da
[ "MIT" ]
null
null
null
class GeneralStatistics: counter = 0 def __call__(self, sender, **kwargs): self.increase_counter() def increase_counter(self): self.counter = self.counter + 1
21
41
0.650794
21
189
5.571429
0.52381
0.25641
0
0
0
0
0
0
0
0
0
0.014085
0.248677
189
8
42
23.625
0.809859
0
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
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
1
0
0
0
0
1
0
0
5
555e1fdfe5249713874a136c071c6e7a9055f1de
26
py
Python
data/micro-benchmark/lambdas/call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
121
2020-12-16T20:31:37.000Z
2022-03-21T20:32:43.000Z
data/micro-benchmark/lambdas/call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
24
2021-03-13T00:04:00.000Z
2022-03-21T17:28:11.000Z
data/micro-benchmark/lambdas/call/main.py
vitsalis/pycg-evaluation
ce37eb5668465b0c17371914e863d699826447ee
[ "Apache-2.0" ]
19
2021-03-23T10:58:47.000Z
2022-03-24T19:46:50.000Z
x = lambda x: x + 1 x(1)
6.5
19
0.461538
7
26
1.714286
0.428571
0.333333
0
0
0
0
0
0
0
0
0
0.117647
0.346154
26
3
20
8.666667
0.588235
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
1
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
0
0
0
5
5564a0aaf049f9bfec88d8a5359601e8c0a263da
22
py
Python
robots/big/strategies/2019/test/test_tof_2sensors/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
5
2018-11-27T15:15:00.000Z
2022-02-10T21:44:13.000Z
robots/big/strategies/2019/test/test_tof_2sensors/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
2
2018-10-20T15:48:40.000Z
2018-11-20T05:11:33.000Z
robots/big/strategies/2019/test/test_tof_2sensors/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
1
2020-02-07T12:44:47.000Z
2020-02-07T12:44:47.000Z
def run(): s1,s2;
4.4
10
0.454545
4
22
2.5
1
0
0
0
0
0
0
0
0
0
0
0.133333
0.318182
22
4
11
5.5
0.533333
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0
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
1
1
0
0
0
0
0
0
5
5583d0422f1ce2475bec4ef4226676fa1caf8e34
55
py
Python
pkg/job_scheduler.py
macchid/dcp-python
05ea53d0526ef29bd8004ea4c67d8a80ef645593
[ "Apache-2.0" ]
null
null
null
pkg/job_scheduler.py
macchid/dcp-python
05ea53d0526ef29bd8004ea4c67d8a80ef645593
[ "Apache-2.0" ]
1
2021-06-17T00:41:56.000Z
2021-06-17T00:41:56.000Z
pkg/job_scheduler.py
macchid/dcp-python
05ea53d0526ef29bd8004ea4c67d8a80ef645593
[ "Apache-2.0" ]
null
null
null
class Job: def __init__(self, f, n): pass
11
29
0.527273
8
55
3.125
1
0
0
0
0
0
0
0
0
0
0
0
0.363636
55
5
30
11
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
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
1
0
0
1
0
0
5
55877249a6ec82ba0377d43afe24d9581e0b4cdf
259
py
Python
src/QiitaAPINull.py
developer-kikikaikai/get_qiita_informaion
e55b0ab1b9dae04ed102b0d06ac5397318506be1
[ "MIT" ]
5
2019-12-14T00:24:26.000Z
2022-01-28T13:01:03.000Z
src/QiitaAPINull.py
developer-kikikaikai/get_qiita_informaion
e55b0ab1b9dae04ed102b0d06ac5397318506be1
[ "MIT" ]
null
null
null
src/QiitaAPINull.py
developer-kikikaikai/get_qiita_informaion
e55b0ab1b9dae04ed102b0d06ac5397318506be1
[ "MIT" ]
null
null
null
from QiitaAPI import * class QiitaAPINull(QiitaAPI): def _parse_setting(self, data): print("{'err':'This version is not support!'}") return def get_items(self): return {} def get_user_items(self): return {} def get_item(self, item): return {}
18.5
49
0.69112
36
259
4.805556
0.611111
0.156069
0.208092
0.208092
0.242775
0
0
0
0
0
0
0
0.169884
259
13
50
19.923077
0.804651
0
0
0.272727
0
0
0.146718
0
0
0
0
0
0
1
0.363636
false
0
0.090909
0.272727
0.909091
0.090909
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
1
0
0
0
1
1
0
0
5
559e82b87e90312fa5660fd5933e7f5686b747f4
158
py
Python
kpi/admin.py
wowi42/najaea
9494c3017ef9c96e106c27f892662dbf5778d0a1
[ "MIT" ]
null
null
null
kpi/admin.py
wowi42/najaea
9494c3017ef9c96e106c27f892662dbf5778d0a1
[ "MIT" ]
1
2021-06-10T18:06:12.000Z
2021-06-10T18:06:12.000Z
kpi/admin.py
wowi42/najaea
9494c3017ef9c96e106c27f892662dbf5778d0a1
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Employee, Result # Register your models here. admin.site.register(Employee) admin.site.register(Result)
22.571429
36
0.810127
22
158
5.818182
0.545455
0.140625
0.265625
0
0
0
0
0
0
0
0
0
0.107595
158
6
37
26.333333
0.907801
0.164557
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
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
1
0
1
0
0
0
0
5
e949b8ae6edb28f6f2d0fb18c77bdf3152c7b68a
2,969
py
Python
tests/components/workers/cori_srun_openmp.py
ORNL-Fusion/IPS-framework
b91951032393cc15eb828cf787d583ea686204cc
[ "BSD-3-Clause" ]
null
null
null
tests/components/workers/cori_srun_openmp.py
ORNL-Fusion/IPS-framework
b91951032393cc15eb828cf787d583ea686204cc
[ "BSD-3-Clause" ]
null
null
null
tests/components/workers/cori_srun_openmp.py
ORNL-Fusion/IPS-framework
b91951032393cc15eb828cf787d583ea686204cc
[ "BSD-3-Clause" ]
null
null
null
from ipsframework import Component class openmp_task(Component): # pylint: disable=no-member def step(self, timestamp=0.0, **keywords): cwd = self.services.get_working_dir() self.services.wait_task(self.services.launch_task(1, cwd, "check-mpi.gnu.cori", logfile="log.01", errfile="err.01")) self.services.wait_task(self.services.launch_task(1, cwd, "check-mpi.gnu.cori", logfile="log.02", errfile="err.02", task_ppn=1)) self.services.wait_task(self.services.launch_task(1, cwd, "check-mpi.gnu.cori", logfile="log.03", errfile="err.03", task_ppn=1, task_cpp=32)) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.11", errfile="err.11")) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.12", errfile="err.12", task_ppn=4)) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.13", errfile="err.13", task_ppn=4, task_cpp=8)) self.services.wait_task(self.services.launch_task(32, cwd, "check-mpi.gnu.cori", logfile="log.21", errfile="err.21")) self.services.wait_task(self.services.launch_task(32, cwd, "check-mpi.gnu.cori", logfile="log.22", errfile="err.22", task_ppn=32)) self.services.wait_task(self.services.launch_task(32, cwd, "check-mpi.gnu.cori", logfile="log.23", errfile="err.23", task_ppn=32, task_cpp=1)) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.31", errfile="err.31", task_ppn=8)) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.32", errfile="err.32", task_ppn=4, task_cpp=4)) self.services.wait_task(self.services.launch_task(4, cwd, "check-mpi.gnu.cori", logfile="log.33", errfile="err.33", task_ppn=4, task_cpp=2)) self.services.wait_task(self.services.launch_task(4, cwd, "check-hybrid.gnu.cori", logfile="log.41", errfile="err.41", task_ppn=8)) self.services.wait_task(self.services.launch_task(4, cwd, "check-hybrid.gnu.cori", logfile="log.42", errfile="err.42", task_ppn=4, task_cpp=4)) self.services.wait_task(self.services.launch_task(4, cwd, "check-hybrid.gnu.cori", logfile="log.43", errfile="err.43", task_ppn=4, task_cpp=2)) class openmp_task_pool(Component): # pylint: disable=no-member def step(self, timestamp=0.0, **keywords): cwd = self.services.get_working_dir() self.services.create_task_pool('pool') self.services.add_task('pool', 'task_1', 4, cwd, "check-mpi.gnu.cori", logfile="log.1", errfile="err.1", task_ppn=8) self.services.add_task('pool', 'task_2', 4, cwd, "check-mpi.gnu.cori", logfile="log.2", errfile="err.2", task_ppn=4, task_cpp=4) self.services.add_task('pool', 'task_3', 4, cwd, "check-mpi.gnu.cori", logfile="log.3", errfile="err.3", task_ppn=4, task_cpp=2) self.services.submit_tasks('pool')
70.690476
151
0.692826
487
2,969
4.080082
0.123203
0.223452
0.126824
0.154001
0.799195
0.78762
0.744841
0.744841
0.664821
0.661298
0
0.046272
0.119232
2,969
41
152
72.414634
0.713576
0.017178
0
0.148148
0
0
0.199314
0.021612
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.185185
0
0
0
0
null
1
0
0
0
1
1
1
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
5
e95c17148c7e3aa346d82e334d591aa89382b77c
4,075
py
Python
GTF.analysis.GeneIDName.py
razielar/Utils
f5caed82a51f20b16f43817654d2a4347bf13fdc
[ "MIT" ]
null
null
null
GTF.analysis.GeneIDName.py
razielar/Utils
f5caed82a51f20b16f43817654d2a4347bf13fdc
[ "MIT" ]
null
null
null
GTF.analysis.GeneIDName.py
razielar/Utils
f5caed82a51f20b16f43817654d2a4347bf13fdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys, re import argparse # GTF files: 1-based; formula= end-start+1 # Bed files: 0-based # http://genome.ucsc.edu/blog/the-ucsc-genome-browser-coordinate-counting-systems/ parser=argparse.ArgumentParser(description='Retrieve gene information from a gtf file') parser.add_argument("-i", "--input", help="The GTF file is the input") parser.add_argument("-o", "--output", default="Gtf.analysis.tsv", help="Output file name [default=%(default)s]") parser.add_argument("-t", "--type", help="Add type of analysis either 'gene', 'transcript' or 'exon' [default=%(default)s]", default="gene") args=parser.parse_args() output_name=args.output if args.type == "gene": print("\n") print("---- GTF analysis based on:",args.type,"----","\n") count=0 final=[['Gene_ID', 'Gene_Name', 'Gene_Type', 'Length', 'Strand']] with open(args.input, 'r') as gtf: for i in gtf: i= i.rstrip().split('\t') if re.search(r'gene', i[2]): count += 1 length=int(i[4])-(int(i[3])+1)+int(1) strand=i[6] gene_info=i[-1].split(';')[0:5] gene_name=[gene_info[i].strip().replace('"','').split(' ')[1] for i in range(len(gene_info))][0:2] gene_type=[gene_info[i].strip().replace('"', '').split(' ')[2] for i in range(len(gene_info)) if gene_info[i].startswith(' gene_type')] gene=gene_name+gene_type gene.extend([length, strand]) final.append(gene) with open(output_name, 'w') as output: for i in final: output.write("{0}\t{1}\t{2}\t{3}\t{4}\n".format(i[0],i[1],i[2],i[3],i[4])) elif args.type == "transcript": print("\n") print("---- GTF analysis based on:",args.type,"----","\n") count=0 final=[['Gene_ID', 'Gene_Name', 'Transcript_ID', 'Transcript_Name' ,'Gene_Type', 'Length', 'Strand']] with open(args.input, 'r') as gtf: for i in gtf: i= i.rstrip().split('\t') if re.search(r'transcript', i[2]): count += 1 length=int(i[4])-(int(i[3])+1)+int(1) strand=i[6] gene_info=i[-1].split(';')[0:5] gene_name=[gene_info[i].strip().replace('"','').split(' ')[1] for i in range(len(gene_info))][:-1] gene_type=[gene_info[i].strip().replace('"', '').split(' ')[2] for i in range(len(gene_info)) if gene_info[i].startswith(' gene_type')] gene=gene_name+gene_type gene.extend([length, strand]) final.append(gene) with open(output_name, 'w') as output: for i in final: output.write("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\n".format(i[0],i[1],i[2],i[3],i[4],i[5],i[6])) elif args.type == "exon": print("\n") print("---- GTF analysis based on:",args.type,"----","\n") count=0 final=[['Gene_ID', 'Gene_Name', 'Transcript_ID', 'Transcript_Name', 'Gene_Type', 'Genomic_Feature', 'Length', 'Strand']] with open(args.input, 'r') as gtf: for i in gtf: i=i.strip().split('\t') if re.search(r'exon', i[2]): count += 1 length=int(i[4])-(int(i[3])+1)+int(1) strand=i[6] feature=i[2] exon=i gene_info=i[-1].split(';')[0:5] gene_name=[gene_info[i].strip().replace('"','').split(' ')[1] for i in range(len(gene_info))][:-1] gene_type=[gene_info[i].strip().replace('"', '').split(' ')[2] for i in range(len(gene_info)) if gene_info[i].startswith(' gene_type')] gene=gene_name+gene_type gene.extend([feature,length, strand]) final.append(gene) with open(output_name, 'w') as output: for i in final: output.write("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\n".format(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]))
39.182692
151
0.521963
606
4,075
3.419142
0.161716
0.069498
0.034749
0.040541
0.709942
0.709942
0.701737
0.701737
0.701737
0.701737
0
0.028971
0.263067
4,075
103
152
39.563107
0.661006
0.039509
0
0.623377
0
0.038961
0.182028
0.036354
0
0
0
0
0
1
0
false
0
0.025974
0
0.025974
0.077922
0
0
0
null
0
0
0
0
1
1
1
1
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
5
e98e731fafb03864fb13a692407f8b32b3dda986
201
py
Python
pycristoforo/utils/constants.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
27
2019-08-02T19:20:07.000Z
2022-03-19T02:15:22.000Z
pycristoforo/utils/constants.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
14
2019-06-21T07:29:54.000Z
2022-03-20T22:51:10.000Z
pycristoforo/utils/constants.py
samdobson/PyCristoforo
5d631494e95881ef13c8dbe0e93e89b71a860782
[ "MIT" ]
6
2020-03-14T10:32:19.000Z
2021-06-11T00:10:12.000Z
import pathlib class Constants: EU_PATH = pathlib.Path(__file__).parent.parent / 'resources/countries.geojson' ACRONYM_PATH = pathlib.Path(__file__).parent.parent / 'resources/COUNTRIES.csv'
28.714286
83
0.766169
24
201
6
0.541667
0.152778
0.208333
0.263889
0.680556
0.680556
0.680556
0.680556
0
0
0
0
0.119403
201
6
84
33.5
0.813559
0
0
0
0
0
0.248756
0.248756
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
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
5
e99f0add1c628d44a4d6e4f9808127192e809db0
79
py
Python
setup.py
VtsBlack/wxPythonServer
c92942bfba45d4b6d74065c19f0eb59070f6c26d
[ "MIT" ]
null
null
null
setup.py
VtsBlack/wxPythonServer
c92942bfba45d4b6d74065c19f0eb59070f6c26d
[ "MIT" ]
null
null
null
setup.py
VtsBlack/wxPythonServer
c92942bfba45d4b6d74065c19f0eb59070f6c26d
[ "MIT" ]
1
2020-12-24T21:28:29.000Z
2020-12-24T21:28:29.000Z
from distutils.core import setup import py2exe setup(windows=['wxServer.py'])
15.8
32
0.78481
11
79
5.636364
0.818182
0
0
0
0
0
0
0
0
0
0
0.014085
0.101266
79
4
33
19.75
0.859155
0
0
0
0
0
0.139241
0
0
0
0
0
0
1
0
true
0
0.666667
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
1
0
1
0
1
0
0
5
e9a617e167e52135b10c15e79a8d7b631f01e1f6
75
py
Python
memtkinter/dnd.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
null
null
null
memtkinter/dnd.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
3
2018-06-04T09:32:20.000Z
2018-06-07T15:27:56.000Z
memtkinter/dnd.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
null
null
null
try: from tkinter.dnd import * except ImportError: from Tkdnd import *
18.75
27
0.733333
10
75
5.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.2
75
4
28
18.75
0.916667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
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
1
0
0
5
e9c001065c5d2470e3eff68629dfdb663d6e8270
57
py
Python
set_data_type.py
iqran-star/dara_types_in_python
bd44f18e30bb796a0fefaae0c6c577709f4a6e42
[ "MIT" ]
null
null
null
set_data_type.py
iqran-star/dara_types_in_python
bd44f18e30bb796a0fefaae0c6c577709f4a6e42
[ "MIT" ]
null
null
null
set_data_type.py
iqran-star/dara_types_in_python
bd44f18e30bb796a0fefaae0c6c577709f4a6e42
[ "MIT" ]
null
null
null
s={1,2,3,4,5,6,7,7} print(s) print(type(s)) print(len(s))
14.25
19
0.596491
17
57
2
0.647059
0.352941
0
0
0
0
0
0
0
0
0
0.148148
0.052632
57
4
20
14.25
0.481481
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
1
0
0
null
1
0
0
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
1
0
5
e9df9773a985c32a649d31cba3f322f9afbd89db
247
py
Python
PuppeteerLibrary/ikeywords/ijavascript_async.py
sdvicorp/robotframework-puppeteer
af6fa68b04c3cdac3a7662cffda6da2a5ace38d1
[ "Apache-2.0" ]
37
2019-10-28T01:35:43.000Z
2022-03-31T04:11:49.000Z
PuppeteerLibrary/ikeywords/ijavascript_async.py
sdvicorp/robotframework-puppeteer
af6fa68b04c3cdac3a7662cffda6da2a5ace38d1
[ "Apache-2.0" ]
61
2020-07-16T00:18:22.000Z
2022-03-24T07:12:05.000Z
PuppeteerLibrary/ikeywords/ijavascript_async.py
sdvicorp/robotframework-puppeteer
af6fa68b04c3cdac3a7662cffda6da2a5ace38d1
[ "Apache-2.0" ]
10
2020-03-03T05:28:05.000Z
2022-02-14T10:03:44.000Z
from abc import ABC, abstractmethod from PuppeteerLibrary.ikeywords.base_async_keywords import BaseAsyncKeywords class iJavascriptAsync(BaseAsyncKeywords, ABC): @abstractmethod async def execute_javascript(self, code): pass
24.7
76
0.785425
25
247
7.64
0.72
0.17801
0
0
0
0
0
0
0
0
0
0
0.165992
247
9
77
27.444444
0.927184
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.333333
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
1
1
0
0
0
0
5
75a7f6721afd18368c988320a51fbe2591dceb22
2,125
py
Python
parse_vaults.py
DonovanKelly/QiDaoDebtMonitor
3f111692e0312141c540efc3cf17e54fa1578024
[ "MIT" ]
1
2022-02-02T09:02:21.000Z
2022-02-02T09:02:21.000Z
parse_vaults.py
DonovanKelly/QiDaoDebtMonitor
3f111692e0312141c540efc3cf17e54fa1578024
[ "MIT" ]
null
null
null
parse_vaults.py
DonovanKelly/QiDaoDebtMonitor
3f111692e0312141c540efc3cf17e54fa1578024
[ "MIT" ]
1
2022-02-02T20:27:46.000Z
2022-02-02T20:27:46.000Z
import json polygon_vaults = """MATIC Vault 0xa3fa99a148fa48d14ed51d610c367c61876997f1 WETH Vault 0x3fd939B017b31eaADF9ae50C7fF7Fa5c0661d47C LINK Vault 0x61167073E31b1DAd85a3E531211c7B8F1E5cAE72 AAVE Vault 0x87ee36f780ae843A78D5735867bc1c13792b7b11 CRV Vault 0x98B5F32dd9670191568b661a3e847Ed764943875 BAL Vault 0x701A1824e5574B0b6b1c8dA808B184a7AB7A2867 dQUICK Vault 0x649Aa6E6b6194250C077DF4fB37c23EE6c098513 WBTC Vault 0x37131aEDd3da288467B6EBe9A77C523A700E6Ca1 GHST Vault 0xF086dEdf6a89e7B16145b03a6CB0C0a9979F1433 camWMATIC Vault 0x88d84a85A87ED12B8f098e8953B322fF789fCD1a camWETH Vault 0x11A33631a5B5349AF3F165d2B7901A4d67e561ad camAAVE Vault 0x578375c3af7d61586c2C3A7BA87d2eEd640EFA40 camWBTC Vault 0x7dda5e1a389e0c1892caf55940f5fce6588a9ae0 camDAI Vault 0xD2FE44055b5C874feE029119f70336447c8e8827""" polygon_vaults = polygon_vaults.replace("Vault","") polygon_vaults = polygon_vaults.replace(" ","") polygon_vaults = polygon_vaults.split('\n') polygon_vaults = dict(zip(polygon_vaults[0::2], polygon_vaults[1::2])) with open('polygon_vaults.json', 'w') as fp: json.dump(polygon_vaults,fp) fantom_vaults = """WFTM Vault 0x1066b8FC999c1eE94241344818486D5f944331A0 WETH Vault 0xD939c268C49c442F037E968F045ba02f499562D4 yvWFTM Vault 0x7efB260662a6FA95c1CE1092c53Ca23733202798 yvDAI Vault 0x682E473FcA490B0adFA7EfE94083C1E63f28F034 BTC Vault 0xE5996a2cB60eA57F03bf332b5ADC517035d8d094 LINK Vault 0xd6488d586E8Fcd53220e4804D767F19F5C846086 SUSHI Vault 0x267bDD1C19C932CE03c7A62BBe5b95375F9160A6 AAVE Vault 0xdB09908b82499CAdb9E6108444D5042f81569bD9 mooScreamFTM 0x3609A304c6A41d87E895b9c1fd18c02ba989Ba90 mooScreamETH 0xC1c7eF18ABC94013F6c58C6CdF9e829A48075b4e mooScreamBTC 0x5563Cc1ee23c4b17C861418cFF16641D46E12436 mooScreamLINK 0x8e5e4D08485673770Ab372c05f95081BE0636Fa2 mooScreamDAI 0xBf0ff8ac03f3E0DD7d8faA9b571ebA999a854146""" fantom_vaults = fantom_vaults.replace("Vault","") fantom_vaults = fantom_vaults.replace(" ","") fantom_vaults = fantom_vaults.split('\n') fantom_vaults = dict(zip(fantom_vaults[0::2], fantom_vaults[1::2])) with open('fantom_vaults.json', 'w') as fp: json.dump(fantom_vaults,fp)
29.513889
70
0.881412
166
2,125
11.138554
0.427711
0.08437
0.03245
0.042185
0.111412
0.024878
0.024878
0
0
0
0
0.374184
0.063059
2,125
72
71
29.513889
0.554495
0
0
0.089552
0
0
0.725306
0.533396
0
0
0.533396
0
0
1
0
false
0
0.014925
0
0.014925
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
5
75d5f932299ebdda754961418622c2f815bf3dec
252
py
Python
test/regression/features/slices/slices_list.py
bjpop/blip
3d9105a44d1afb7bd007da3742fb19dc69372e10
[ "BSD-3-Clause" ]
137
2015-02-13T21:03:23.000Z
2021-11-24T03:53:55.000Z
test/regression/features/slices/slices_list.py
bjpop/blip
3d9105a44d1afb7bd007da3742fb19dc69372e10
[ "BSD-3-Clause" ]
2
2015-03-07T14:08:33.000Z
2015-10-13T02:00:40.000Z
test/regression/features/slices/slices_list.py
bjpop/blip
3d9105a44d1afb7bd007da3742fb19dc69372e10
[ "BSD-3-Clause" ]
4
2015-05-03T22:07:27.000Z
2018-09-10T08:55:03.000Z
list = [1,2,3,4,5,6,7,8,9,10] print(list[:]) print(list[::]) print(list[0:]) print(list[:-1]) print(list[::-1]) print(list[0:0]) print(list[3:6]) print(list[3:20]) print(list[6:3]) print(list[6:3:-1]) print(list[3:8:2]) print(list[8:3:-2])
9.692308
29
0.571429
55
252
2.618182
0.254545
0.75
0.208333
0.25
0.201389
0
0
0
0
0
0
0.142222
0.107143
252
25
30
10.08
0.497778
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.923077
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
75ea7afe2dd77253bacb014975e3a6bad231e581
158
py
Python
tests/modules/module2.py
rhhayward/py_load_modules
e5ad3e5f10a1512f19cb4364e9dfbae452a6fee0
[ "MIT" ]
null
null
null
tests/modules/module2.py
rhhayward/py_load_modules
e5ad3e5f10a1512f19cb4364e9dfbae452a6fee0
[ "MIT" ]
null
null
null
tests/modules/module2.py
rhhayward/py_load_modules
e5ad3e5f10a1512f19cb4364e9dfbae452a6fee0
[ "MIT" ]
null
null
null
from test_loading import SuperClass from another_class import AnotherClass class SubClassTwo(SuperClass, AnotherClass): def __init__(self): pass
22.571429
44
0.78481
18
158
6.555556
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.170886
158
6
45
26.333333
0.900763
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
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
1
1
0
1
0
0
5
2f0349612694ec3870dc470845efb5248f81e353
133
py
Python
test/__init__.py
UnofficialJuliaMirrorSnapshots/JuliaRegistries-TagBot
a57211d1215b72703f78242ce23c4d15800748f2
[ "MIT" ]
null
null
null
test/__init__.py
UnofficialJuliaMirrorSnapshots/JuliaRegistries-TagBot
a57211d1215b72703f78242ce23c4d15800748f2
[ "MIT" ]
null
null
null
test/__init__.py
UnofficialJuliaMirrorSnapshots/JuliaRegistries-TagBot
a57211d1215b72703f78242ce23c4d15800748f2
[ "MIT" ]
null
null
null
import os import sys from tempfile import gettempdir os.environ["GITHUB_WORKSPACE"] = gettempdir() sys.path.insert(0, "../tagbot")
16.625
45
0.75188
18
133
5.5
0.722222
0
0
0
0
0
0
0
0
0
0
0.008475
0.112782
133
7
46
19
0.830508
0
0
0
0
0
0.18797
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
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
1
0
0
5
f98e605b71f6ec7fae35c697b1fe87c6e531c879
361
py
Python
pages/themes/beginners/sequenceDataTypes/examples/list_of_lists.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/examples/list_of_lists.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/examples/list_of_lists.py
ProgressBG-Python-Course/ProgressBG-VC2-Python
03b892a42ee1fad3d4f97e328e06a4b1573fd356
[ "MIT" ]
null
null
null
matrix = [ [1,2,3], [4,5,6], [7,8,9], ] ### retrieve the first element from the first list: print(matrix[0][0] ) # 1 ### retrieve the last element from the first list: print(matrix[0][-1]) # 3 ### retrieve the first element from the last list: print(matrix[-1][0]) # 7 ### retrieve the last element from the last list: print(matrix[-1][-1]) # 9
16.409091
51
0.617729
62
361
3.596774
0.306452
0.197309
0.251121
0.206278
0.896861
0.896861
0.618834
0.618834
0
0
0
0.072664
0.199446
361
21
52
17.190476
0.698962
0.540166
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
1
1
1
1
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
5
f9be544f4e3e2a8e8cefcb366402037b01aecd47
17,140
py
Python
Enemy.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
Enemy.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
Enemy.py
joacocruz6/cc3501-tarea2
e6560b007a377769ef27d2b128a4dce560568542
[ "MIT" ]
null
null
null
from CC3501Utils import * import math as m from pygame.locals import * class Enemy(Figura): def __init__(self,pos: Vector,tipo: int,vivo=True,rgb=(1.0,1.0,51.0/255)): self._tipo=tipo self.vivo=vivo self._r_x = 53.0 / 2 self._r_y = 46.0 / 2 self.centro=Vector(pos.x+(53.0/2),pos.y+(46.0/2)) super().__init__(pos,rgb) def figura(self): """ Crea el dibujo de los enemigos, es llamado por el metodo dibujar de la clase padre :return: None """ (r,g,b)=self.color ################## ###Rafa Gorgori### ################## if self._tipo==1: dx=53.0/14 dy=46.0/16 ############## ###Contorno### ############## glColor3f(0.0,0.0,0.0) glBegin(GL_POLYGON) glVertex2f(7*dx,6*dy) glVertex2f(7*dx,15*dy) glVertex2f(10*dx,15*dy) glVertex2f(10*dx,14*dy) glVertex2f(11*dx,14*dy) glVertex2f(11*dx,12*dy) glVertex2f(12*dx,12*dy) glVertex2f(12*dx,8*dy) glVertex2f(13*dx,8*dy) glVertex2f(13*dx,6*dy) glEnd() glBegin(GL_POLYGON) glVertex2f(7 * dx, 6 * dy) glVertex2f(7 * dx, 15 * dy) glVertex2f(4 * dx, 15 * dy) glVertex2f(4 * dx, 14 * dy) glVertex2f(3 * dx, 14 * dy) glVertex2f(3 * dx, 12 * dy) glVertex2f(2 * dx, 12 * dy) glVertex2f(2 * dx, 8 * dy) glVertex2f(dx, 8 * dy) glVertex2f(dx, 6 * dy) glEnd() #piernas glBegin(GL_QUADS) glVertex2f(3*dx,6*dy) glVertex2f(11*dx,6*dy) glVertex2f(11*dx,2*dy) glVertex2f(3*dx,2*dy) glEnd() #detalles glBegin(GL_QUADS) glVertex2f(2*dx,5*dy) glVertex2f(2*dx,6*dy) glVertex2f(3*dx,6*dy) glVertex2f(3*dx,5*dy) glEnd() glBegin(GL_QUADS) glVertex2f(11 * dx, 5 * dy) glVertex2f(11 * dx, 6 * dy) glVertex2f(12 * dx, 6 * dy) glVertex2f(12 * dx, 5 * dy) glEnd() glBegin(GL_QUADS) glVertex2f(4*dx,dy) glVertex2f(4*dx,2*dy) glVertex2f(6*dx,2*dy) glVertex2f(6*dx,dy) glEnd() glBegin(GL_QUADS) glVertex2f(8 * dx, dy) glVertex2f(8 * dx, 2 * dy) glVertex2f(10 * dx, 2 * dy) glVertex2f(10 * dx, dy) glEnd() glColor3f(138.0/255,138.0/255,138.0/255) glBegin(GL_QUADS) glVertex2f(2*dx,9*dy) glVertex2f(2*dx,11*dy) glVertex2f(3*dx,11*dy) glVertex2f(3*dx,9*dy) glEnd() glBegin(GL_QUADS) glVertex2f(11 * dx, 9 * dy) glVertex2f(11 * dx, 11 * dy) glVertex2f(12 * dx, 11 * dy) glVertex2f(12 * dx, 9 * dy) glEnd() ###figura### #---zapatos---# glColor3f(0.2, 0.2, 0.2) glBegin(GL_QUADS) glVertex2f(4*dx,2*dy) glVertex2f(4 * dx, 3 * dy) glVertex2f(6*dx,3*dy) glVertex2f(6*dx,2*dy) glEnd() glBegin(GL_QUADS) glVertex2f(8 * dx, 2 * dy) glVertex2f(8 * dx, 3 * dy) glVertex2f(10 * dx, 3 * dy) glVertex2f(10 * dx, 2 * dy) glEnd() #---pantalones---# glColor3f(165.0/255,0.0,38.0/255) glBegin(GL_QUADS) glVertex2f(4*dx,3*dy) glVertex2f(4*dx,6*dy) glVertex2f(6*dx,6*dy) glVertex2f(6*dx,3*dy) glEnd() glBegin(GL_QUADS) glVertex2f(8 * dx, 3 * dy) glVertex2f(8 * dx, 6 * dy) glVertex2f(10 * dx, 6 * dy) glVertex2f(10 * dx, 3 * dy) glEnd() #---ropa---# glColor3f(50.0/255,50.0/255,152.0/255) glBegin(GL_QUADS) glVertex2f(4*dx,6*dy) glVertex2f(4*dx,7*dy) glVertex2f(10*dx,7*dy) glVertex2f(10*dx,6*dy) glEnd() #hombros glBegin(GL_QUADS) glVertex2f(4*dx,7*dy) glVertex2f(4*dx,8*dy) glVertex2f(5*dx,8*dy) glVertex2f(5*dx,7*dy) glEnd() glBegin(GL_QUADS) glVertex2f(4 * dx, 8 * dy) glVertex2f(4 * dx, 9 * dy) glVertex2f(3 * dx, 9 * dy) glVertex2f(3 * dx, 8 * dy) glEnd() glBegin(GL_QUADS) glVertex2f(2 * dx, 7 * dy) glVertex2f(2 * dx, 8 * dy) glVertex2f(3 * dx, 8 * dy) glVertex2f(3 * dx, 7 * dy) glEnd() #derecho glBegin(GL_QUADS) glVertex2f(9 * dx, 7 * dy) glVertex2f(9 * dx, 8 * dy) glVertex2f(10 * dx, 8 * dy) glVertex2f(10 * dx, 7 * dy) glEnd() glBegin(GL_QUADS) glVertex2f(10 * dx, 8 * dy) glVertex2f(10 * dx, 9 * dy) glVertex2f(11 * dx, 9 * dy) glVertex2f(11 * dx, 8 * dy) glEnd() glBegin(GL_QUADS) glVertex2f(11 * dx, 7 * dy) glVertex2f(11 * dx, 8 * dy) glVertex2f(12 * dx, 8 * dy) glVertex2f(12 * dx, 7 * dy) glEnd() #---piel ---# #---manos---# glColor3f(r,g,b) glBegin(GL_QUADS) glVertex2f(2*dx,6*dy) glVertex2f(2*dx,7*dy) glVertex2f(3*dx,7*dy) glVertex2f(3*dx,6*dy) glEnd() glBegin(GL_QUADS) glVertex2f(11 * dx, 6 * dy) glVertex2f(11 * dx, 7 * dy) glVertex2f(12 * dx, 7 * dy) glVertex2f(12 * dx, 6 * dy) glEnd() #---cara---# #-boca-# glBegin(GL_QUADS) glVertex2f(5*dx,8*dy) glVertex2f(5*dx,9*dy) glVertex2f(9*dx,9*dy) glVertex2f(9*dx,8*dy) glEnd() #-nariz-# glBegin(GL_QUADS) glVertex2f(6*dx,9*dy) glVertex2f(6*dx,11*dy) glVertex2f(8*dx,11*dy) glVertex2f(8*dx,9*dy) glEnd() #-frente-# glBegin(GL_QUADS) glVertex2f(4*dx,11*dy) glVertex2f(4*dx,14*dy) glVertex2f(10*dx,14*dy) glVertex2f(10*dx,11*dy) glEnd() #-costados de los ojos-# glBegin(GL_QUADS) glVertex2f(4*dx,9*dy) glVertex2f(4*dx,11*dy) glVertex2f(5*dx,11*dy) glVertex2f(5*dx,9*dy) glEnd() glBegin(GL_QUADS) glVertex2f(9 * dx, 9 * dy) glVertex2f(9 * dx, 11 * dy) glVertex2f(10 * dx, 11 * dy) glVertex2f(10 * dx, 9 * dy) glEnd() #-orejas-# glBegin(GL_QUADS) glVertex2f(3*dx,11*dy) glVertex2f(3*dx,12*dy) glVertex2f(4*dx,12*dy) glVertex2f(4*dx,11*dy) glEnd() glBegin(GL_QUADS) glVertex2f(10 * dx, 11 * dy) glVertex2f(10 * dx, 12 * dy) glVertex2f(11 * dx, 12 * dy) glVertex2f(11 * dx, 11 * dy) glEnd() ###################### ###Flanders########### ###################### if self._tipo==2: dx=53.0/16 dy=46.0/20 ##################### ####contorno negro#### ###################### glColor3f(0.0,0.0,0.0) #torso glBegin(GL_POLYGON) glVertex2f(8*dx,8*dy) glVertex2f(8*dx,19*dy) glVertex2f(11*dx,19*dy) glVertex2f(11*dx,18*dy) glVertex2f(12*dx,18*dy) glVertex2f(12*dx,16*dy) glVertex2f(13*dx,16*dy) glVertex2f(13*dx,12*dy) glVertex2f(14*dx,12*dy) glVertex2f(14*dx,11*dy) glVertex2f(15*dx,11*dy) glVertex2f(15*dx,8*dy) glEnd() glBegin(GL_POLYGON) glVertex2f(8 * dx, 8 * dy) glVertex2f(8 * dx, 19 * dy) glVertex2f(5* dx, 19 * dy) glVertex2f(5 * dx, 18 * dy) glVertex2f(4 * dx, 18 * dy) glVertex2f(4 * dx, 16 * dy) glVertex2f(3 * dx, 16 * dy) glVertex2f(3 * dx, 12 * dy) glVertex2f(2 * dx, 12 * dy) glVertex2f(2 * dx, 11 * dy) glVertex2f(dx, 11 * dy) glVertex2f(dx, 8 * dy) glEnd() #---piernas--- glBegin(GL_QUADS) glVertex2f(8*dx,8*dy) glVertex2f(12*dx,8*dy) glVertex2f(12*dx,2*dy) glVertex2f(8*dx,2*dy) glEnd() glBegin(GL_QUADS) glVertex2f(8 * dx, 8 * dy) glVertex2f(4 * dx, 8 * dy) glVertex2f(4 * dx, 2 * dy) glVertex2f(8 * dx, 2 * dy) glEnd() #los que faltan (detalles) glBegin(GL_QUADS) glVertex2f(5*dx,dy) glVertex2f(5*dx,2*dy) glVertex2f(7*dx,2*dy) glVertex2f(7*dx,dy) glEnd() glBegin(GL_QUADS) glVertex2f(9 * dx, dy) glVertex2f(9 * dx, 2 * dy) glVertex2f(11 * dx, 2 * dy) glVertex2f(11 * dx, dy) glEnd() glBegin(GL_QUADS) glVertex2f(2*dx,7*dy) glVertex2f(2*dx,8*dy) glVertex2f(4*dx,8*dy) glVertex2f(4*dx,7*dy) glEnd() glBegin(GL_QUADS) glVertex2f(12 * dx, 7 * dy) glVertex2f(12 * dx, 8 * dy) glVertex2f(14 * dx, 8 * dy) glVertex2f(14 * dx, 7 * dy) glEnd() glColor3f(138.0/255,138.0/255,138.0/255) glBegin(GL_QUADS) glVertex2f(3*dx,13*dy) glVertex2f(3*dx,14*dy) glVertex2f(4*dx,14*dy) glVertex2f(4*dx,13*dy) glEnd() glBegin(GL_QUADS) glVertex2f(12 * dx, 13 * dy) glVertex2f(12 * dx, 14 * dy) glVertex2f(13 * dx, 14 * dy) glVertex2f(13 * dx, 13 * dy) glEnd() #-------------------- ####figura#### #zapatos glColor3f(0.2,0.2,0.2) glBegin(GL_QUADS) glVertex2f(5*dx,2*dy) glVertex2f(5*dx,3*dy) glVertex2f(7*dx,3*dy) glVertex2f(7*dx,2*dy) glEnd() glBegin(GL_QUADS) glVertex2f(9*dx,2*dy) glVertex2f(9*dx,3*dy) glVertex2f(11*dx,3*dy) glVertex2f(11*dx,2*dy) glEnd() #pantalones glColor3f(113.0/255,118.0/255,124.0/255) glBegin(GL_QUADS) glVertex2f(5*dx,3*dy) glVertex2f(5*dx,6*dy) glVertex2f(7*dx,6*dy) glVertex2f(7*dx,3*dy) glEnd() glBegin(GL_QUADS) glVertex2f(9 * dx, 3 * dy) glVertex2f(9 * dx, 6 * dy) glVertex2f(11 * dx, 6 * dy) glVertex2f(11 * dx, 3 * dy) glEnd() ###sueter### glColor3f(0.0,119.0/255,4.0/255) glBegin(GL_QUADS) glVertex2f(5 * dx, 6 * dy) glVertex2f(5 * dx, 10 * dy) glVertex2f(11* dx, 10 * dy) glVertex2f(11 * dx, 6 * dy) glEnd() #---hombro derecho--- glBegin(GL_QUADS) glVertex2f(2*dx,10*dy) glVertex2f(2*dx,11*dy) glVertex2f(3*dx,11*dy) glVertex2f(3*dx,10*dy) glEnd() glBegin(GL_POLYGON) glVertex2f(3*dx,10*dy) glVertex2f(3*dx,12*dy) glVertex2f(5*dx,12*dy) glVertex2f(5*dx,11*dy) glVertex2f(6*dx,11*dy) glVertex2f(6*dx,10*dy) glEnd() #---izquierdo--- glBegin(GL_QUADS) glVertex2f(10 * dx, 10 * dy) glVertex2f(10 * dx, 11 * dy) glVertex2f(11 * dx, 11 * dy) glVertex2f(11 * dx, 10 * dy) glEnd() glBegin(GL_POLYGON) glVertex2f(11 * dx, 10 * dy) glVertex2f(11 * dx, 12 * dy) glVertex2f(13 * dx, 12 * dy) glVertex2f(13 * dx, 11 * dy) glVertex2f(14 * dx, 11 * dy) glVertex2f(14 * dx, 10 * dy) glEnd() #---Manos dentro del sueter--- glBegin(GL_QUADS) glVertex2f(2*dx,9*dy) glVertex2f(2*dx,10*dy) glVertex2f(4*dx,10*dy) glVertex2f(4*dx,9*dy) glEnd() glBegin(GL_QUADS) glVertex2f(12 * dx, 9 * dy) glVertex2f(12 * dx, 10 * dy) glVertex2f(14 * dx, 10 * dy) glVertex2f(14 * dx, 9 * dy) glEnd() # cosita del chaleco glColor3f(242.0 / 255, 99.0 / 255, 180.0 / 255) glBegin(GL_QUADS) glVertex2f(7 * dx, 9 * dy) glVertex2f(7 * dx, 10 * dy) glVertex2f(9 * dx, 10 * dy) glVertex2f(9 * dx, 9 * dy) glEnd() #piel glColor3f(r,g,b) #---Manos--- glBegin(GL_QUADS) glVertex2f(2*dx,8*dy) glVertex2f(2*dx,9*dy) glVertex2f(4*dx,9*dy) glVertex2f(4*dx,8*dy) glEnd() glBegin(GL_QUADS) glVertex2f(12 * dx, 8 * dy) glVertex2f(12 * dx, 9 * dy) glVertex2f(14 * dx, 9 * dy) glVertex2f(14 * dx, 8 * dy) glEnd() #---boca--- glBegin(GL_QUADS) glVertex2f(6*dx,11*dy) glVertex2f(6*dx,13*dy) glVertex2f(10*dx,13*dy) glVertex2f(10*dx,11*dy) glEnd() #---frente--- glBegin(GL_QUADS) glVertex2f(4*dx,14*dy) glVertex2f(4*dx,16*dy) glVertex2f(12*dx,16*dy) glVertex2f(12*dx,14*dy) glEnd() #anteojo glColor3f(1.0,1.0,1.0) glBegin(GL_QUADS) glVertex2f(5*dx,12*dy) glVertex2f(5*dx,14*dy) glVertex2f(7*dx,14*dy) glVertex2f(7*dx,12*dy) glEnd() glBegin(GL_QUADS) glVertex2f(9 * dx, 12 * dy) glVertex2f(9 * dx, 14 * dy) glVertex2f(11 * dx, 14 * dy) glVertex2f(11 * dx, 12 * dy) glEnd() #--pelos-- glColor3f(97.0/255,55.0/255,0.0) #bigote glBegin(GL_QUADS) glVertex2f(7*dx,11*dy) glVertex2f(7*dx,12*dy) glVertex2f(9*dx,12*dy) glVertex2f(9*dx,11*dy) glEnd() #Pelo glBegin(GL_QUADS) glVertex2f(5*dx,16*dy) glVertex2f(5*dx,18*dy) glVertex2f(11*dx,18*dy) glVertex2f(11*dx,16*dy) glEnd() glBegin(GL_QUADS) glVertex2f(4*dx,15*dy) glVertex2f(4*dx,16*dy) glVertex2f(5*dx,16*dy) glVertex2f(5*dx,15*dy) glEnd() glBegin(GL_QUADS) glVertex2f(11 * dx, 15 * dy) glVertex2f(11 * dx, 16 * dy) glVertex2f(12 * dx, 16 * dy) glVertex2f(12 * dx, 15 * dy) glEnd() def updatecenter(self): """ Actualiza el centro del enemigo al moverse :return: None """ self.centro=Vector(self.pos.x+53.0/2,self.pos.y+46.0/2) def moverx(self,direccion: int): """ Mueve el enemigo en cierta direccion, 1 para la derecha y -1 a la izquierda :param direccion: int :return: None """ self.pos=sumar(self.pos,Vector(direccion*53.0,0.0)) self.updatecenter() def movery(self,direccion: int): """ Mueve el enemigo en cierta direccion en el eje y, 1 para arriba y -1 para abajo :param direccion: int :return: None """ self.pos=sumar(self.pos,Vector(0.0,direccion*46.0)) self.updatecenter() def getcenter(self): """ Da el centro como una tupla (x,y) :return: tuple """ return self.centro.cartesianas() def setlife(self,v): """ Recibe un nuevo estado de vida para el enemigo :param v:boolean :return:None """ self.vivo=v def getlife(self): """ True si el enemigo esta vivo :return: boolean """ return self.vivo
31.623616
90
0.439323
2,058
17,140
3.621963
0.080661
0.346123
0.1033
0.177086
0.825329
0.808693
0.574591
0.454655
0.216662
0.184867
0
0.132671
0.424796
17,140
541
91
31.68207
0.62339
0.057818
0
0.7713
0
0
0
0
0
0
0
0.001848
0
1
0.017937
false
0
0.006726
0
0.03139
0
0
0
0
null
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
dda5cb31cfa80f14abd6cef2688c785b4f616641
899
py
Python
Scripts/simulation/situations/bouncer/bouncer_client.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/situations/bouncer/bouncer_client.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/situations/bouncer/bouncer_client.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\situations\bouncer\bouncer_client.py # Compiled at: 2013-07-06 03:27:35 # Size of source mod 2**32: 2216 bytes class IBouncerClient: def on_sim_assigned_to_request(self, sim, request): raise NotImplementedError def on_sim_unassigned_from_request(self, sim, request): raise NotImplementedError def on_sim_replaced_in_request(self, old_sim, new_sim, request): raise NotImplementedError def on_failed_to_spawn_sim_for_request(self, request): raise NotImplementedError def on_tardy_request(self, request): raise NotImplementedError def on_first_assignment_pass_completed(self): raise NotImplementedError
33.296296
107
0.743048
129
899
4.968992
0.596899
0.046802
0.24181
0.265211
0.372855
0.372855
0.312012
0.165367
0.165367
0
0
0.087483
0.173526
899
27
108
33.296296
0.775236
0.353726
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.461538
false
0.076923
0
0
0.538462
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
1
0
1
0
0
1
0
0
5
ddb2086e2e2e3392c1a97f9119a7ea19aaf2e4f5
204
py
Python
setup.py
clearpath-gbp/axis_camera-release
35c64594d16175c66066343ecac8f01296cb3f72
[ "BSD-3-Clause" ]
null
null
null
setup.py
clearpath-gbp/axis_camera-release
35c64594d16175c66066343ecac8f01296cb3f72
[ "BSD-3-Clause" ]
null
null
null
setup.py
clearpath-gbp/axis_camera-release
35c64594d16175c66066343ecac8f01296cb3f72
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( install_requires=['rospy', 'urllib'], ) setup(**d)
18.545455
60
0.754902
27
204
5.444444
0.62963
0.231293
0.29932
0
0
0
0
0
0
0
0
0
0.137255
204
10
61
20.4
0.835227
0.098039
0
0
1
0
0.060109
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
ddccc445229a3de4db0bc8ff92aca22f0f4be8c7
43
py
Python
FilterBot/database/__init__.py
swatv3nub/FilterBot
1ab777585533c66931b41ada51eef22a2069c7f6
[ "MIT" ]
null
null
null
FilterBot/database/__init__.py
swatv3nub/FilterBot
1ab777585533c66931b41ada51eef22a2069c7f6
[ "MIT" ]
null
null
null
FilterBot/database/__init__.py
swatv3nub/FilterBot
1ab777585533c66931b41ada51eef22a2069c7f6
[ "MIT" ]
null
null
null
from .database import Database Database()
10.75
30
0.790698
5
43
6.8
0.6
0
0
0
0
0
0
0
0
0
0
0
0.139535
43
3
31
14.333333
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
34d2fe9d4862790289ef2bbd1628a8f199bb6e7d
306
py
Python
tests/__init__.py
razortheory/django-push-notifications
8e90b531f64ded410e6f901fcab389c53c8139cf
[ "MIT" ]
null
null
null
tests/__init__.py
razortheory/django-push-notifications
8e90b531f64ded410e6f901fcab389c53c8139cf
[ "MIT" ]
null
null
null
tests/__init__.py
razortheory/django-push-notifications
8e90b531f64ded410e6f901fcab389c53c8139cf
[ "MIT" ]
null
null
null
from test_models import * from test_gcm_push_payload import * from test_apns_push_payload import * from test_management_commands import * # conditionally test rest_framework api if the DRF package is installed try: import rest_framework except ImportError: pass else: from test_rest_framework import *
23.538462
71
0.833333
45
306
5.377778
0.555556
0.165289
0.173554
0.173554
0.206612
0
0
0
0
0
0
0
0.137255
306
12
72
25.5
0.916667
0.22549
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.1
0.7
0
0.7
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
1
1
0
1
0
0
5
55031655370620fcda2d0a995a311c47d78a6ec4
128
py
Python
src/lesson_modules_and_packages/importlib_import_module_error.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
src/lesson_modules_and_packages/importlib_import_module_error.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
src/lesson_modules_and_packages/importlib_import_module_error.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
import importlib try: importlib.import_module('example.nosuchmodule') except ImportError as err: print('Error:', err)
16
51
0.734375
15
128
6.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15625
128
7
52
18.285714
0.861111
0
0
0
0
0
0.203125
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0.2
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
1
0
0
5
551d18cea2b05dcb14b51f4728380531abbe7e7e
107
py
Python
python/incorrect-division-method/solution.py
hiljusti/codewars-solutions
1a423e8cb0fbcac94738f6e51dc333f057b0a731
[ "WTFPL" ]
2
2020-02-22T08:47:51.000Z
2021-05-21T22:21:55.000Z
python/incorrect-division-method/solution.py
hiljusti/codewars-solutions
1a423e8cb0fbcac94738f6e51dc333f057b0a731
[ "WTFPL" ]
null
null
null
python/incorrect-division-method/solution.py
hiljusti/codewars-solutions
1a423e8cb0fbcac94738f6e51dc333f057b0a731
[ "WTFPL" ]
1
2021-11-09T17:22:10.000Z
2021-11-09T17:22:10.000Z
# https://www.codewars.com/kata/54d1c59aba326343c80000e7 def divide_numbers(x,y): return 1.0 * x / y
17.833333
56
0.71028
16
107
4.6875
0.875
0.053333
0
0
0
0
0
0
0
0
0
0.208791
0.149533
107
5
57
21.4
0.615385
0.504673
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
9b2ed7da12fa23248898f36f01de3af3afadf9ff
1,061
py
Python
smart-lamp/modes/hue.py
semspanhaak/making-things-smart
c042cc314232953c32a0eb789d345471169b7d92
[ "MIT" ]
1
2021-04-08T10:00:00.000Z
2021-04-08T10:00:00.000Z
smart-lamp/modes/hue.py
semspanhaak/making-things-smart
c042cc314232953c32a0eb789d345471169b7d92
[ "MIT" ]
null
null
null
smart-lamp/modes/hue.py
semspanhaak/making-things-smart
c042cc314232953c32a0eb789d345471169b7d92
[ "MIT" ]
null
null
null
from sense_hat import SenseHat from colorsys import hsv_to_rgb from time import sleep sense = SenseHat() sense.clear() hues = [ 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, ] def scale(v): return int(v * 255) while True: o = sense.get_orientation() pitch = o["pitch"] roll = o["roll"] if 1 < pitch < 179: hues = [(h - 0.01) % 1.0 for h in hues] elif 359 > pitch > 181: [(h + 0.01) % 1.0 for h in hues] if 1 < roll < 179: hues = [(h + 0.01) % 1.0 for h in hues] elif 359 > roll > 181: [(h - 0.01) % 1.0 for h in hues] pixels = [hsv_to_rgb(h, 1.0, 1.0) for h in hues] pixels = [(scale(r), scale(g), scale(b)) for r, g, b in pixels] sense.set_pixels(pixels) sleep(0.04)
28.675676
67
0.491046
254
1,061
2.023622
0.173228
0.249027
0.367704
0.490272
0.486381
0.486381
0.486381
0.439689
0.439689
0.439689
0
0.235762
0.288407
1,061
36
68
29.472222
0.445033
0
0
0.242424
0
0
0.008483
0
0
0
0
0
0
1
0.030303
false
0
0.090909
0.030303
0.151515
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9b3f760d934886c929bf75010b865ab7b3940681
9,896
py
Python
tests/features/cluster_test.py
Imperial-iGEM/synbio
6f27ed514d9f904ca14f9055820d3922adbfe307
[ "MIT" ]
12
2019-09-20T15:47:27.000Z
2021-12-29T19:40:02.000Z
tests/features/cluster_test.py
Imperial-iGEM/synbio
6f27ed514d9f904ca14f9055820d3922adbfe307
[ "MIT" ]
11
2019-08-08T20:57:27.000Z
2020-07-29T14:27:08.000Z
tests/features/cluster_test.py
Imperial-iGEM/synbio
6f27ed514d9f904ca14f9055820d3922adbfe307
[ "MIT" ]
3
2019-09-16T14:30:01.000Z
2021-12-29T03:47:36.000Z
"""Test clustering functions.""" import unittest from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from synbio.features.cluster import _parse_row, _consensus_name class TestCluster(unittest.TestCase): """Test feature database creation.""" def test_parse_row(self): """Parse a row of iGEM XML to a SeqRecord.""" row = """<row> <field name="part_id">2557</field> <field name="ok">0</field> <field name="part_name">BBa_S01288</field> <field name="short_desc">Intermediate part from assembly 236</field> <field name="description" xsi:nil="true" /> <field name="part_type">Intermediate</field> <field name="author">Randy Rettberg</field> <field name="owning_group_id">7</field> <field name="status">Deleted</field> <field name="dominant">0</field> <field name="informational">0</field> <field name="discontinued">1</field> <field name="part_status"></field> <field name="sample_status">Discontinued</field> <field name="p_status_cache"></field> <field name="s_status_cache"></field> <field name="creation_date">2003-12-03</field> <field name="m_datetime">2018-11-06 15:23:57</field> <field name="m_user_id">0</field> <field name="uses">0</field> <field name="doc_size">533</field> <field name="works"></field> <field name="favorite">0</field> <field name="specified_u_list">_149_156_603_145_193_147_161_603_145_</field> <field name="deep_u_list">_149_156_603_145_193_147_161_603_145_</field> <field name="deep_count">9</field> <field name="ps_string" xsi:nil="true" /> <field name="scars"></field> <field name="default_scars"></field> <field name="owner_id">24</field> <field name="group_u_list">_1_</field> <field name="has_barcode">0</field> <field name="notes" xsi:nil="true" /> <field name="source"></field> <field name="nickname"></field> <field name="categories">//classic/intermediate/uncategorized</field> <field name="sequence">tcacacaggaaagtactagatgagcacaaaaaagaaaccattaacacaagagcagcttgaggacgcacgtcgccttaaagcaatttatgaaaaaaagaaaaatgaacttggcttatcccaggaatctgtcgcagacaagatggggatggggcagtcaggcgttggtgctttatttaatggcatcaatgcattaaatgcttataacgccgcattgcttgcaaaaattctcaaagttagcgttgaagaatttagcccttcaatcgccagagaaatctacgagatgtatgaagcggttagtatgcagccgtcacttagaagtgagtatgagtaccctgttttttctcatgttcaggcagggatgttctcacctgagcttagaacctttaccaaaggtgatgcggagagatgggtaagcacaaccaaaaaagccagtgattctgcattctggcttgaggttgaaggtaattccatgaccgcaccaacaggctccaagccaagctttcctgacggaatgttaattctcgttgaccctgagcaggctgttgagccaggtgatttctgcatagccagacttgggggtgatgagtttaccttcaagaaactgatcagggatagcggtcaggtgtttttacaaccactaaacccacagtacccaatgatcccatgcaatgagagttgttccgttgtggggaaagttatcgctagtcagtggcctgaagagacgtttggcgctgcaaacgacgaaaactacgctttagtagcttaataacgctgatagtgctagtgtagatcgctactagagccaggcatcaaataaaacgaaaggctcagtcgaaagactgggcctttcgttttatctgttgtttgtcggtgaacgctctctactagagtcacactggctcaccttcgggtgggcctttctgcgtttatatactagagacctgtacgatcctacaggtgcttatgttaagtaattgtattcccagcgatacaatagtgtgacaaaaatccaatttattagaatcaaatgtcaatccattaccgttttaatgatatataacacgcaaaacttgcgacaaacaataggtaatactagagattaaagaggagaaatactagatgaaaaacataaatgccgacgacacatacagaataattaataaaattaaagcttgtagaagcaataatgatattaatcaatgcttatctgatatgactaaaatggtacattgtgaatattatttactcgcgatcatttatcctcattctatggttaaatctgatatttcaatcctagataattaccctaaaaaatggaggcaatattatgatgacgctaatttaataaaatatgatcctatagtagattattctaactccaatcattcaccaattaattggaatatatttgaaaacaatgctgtaaataaaaaatctccaaatgtaattaaagaagcgaaaacatcaggtcttatcactgggtttagtttccctattcatacggctaacaatggcttcggaatgcttagttttgcacattcagaaaaagacaactatatagatagtttatttttacatgcgtgtatgaacataccattaattgttccttctctagttgataattatcgaaaaataaatatagcaaataataaatcaaacaacgatttaaccaaaagagaaaaagaatgtttagcgtgggcatgcgaaggaaaaagctcttgggatatttcaaaaatattaggttgcagtgagcgtactgtcactttccatttaaccaatgcgcaaatgaaactcaatacaacaaaccgctgccaaagtatttctaaagcaattttaacaggagcaattgattgcccatactttaaaaattaataacactgatagtgctagtgtagatcactactagagccaggcatcaaataaaacgaaaggctcagtcgaaagactgggcctttcgttttatctgttgtttgtcggtgaacgctctctactagagtcacactggctcaccttcgggtgggcctttctgcgtttata</field> <field name="sequence_sha1">?^XT]^P^?f ?]M</field> <field name="sequence_update">5</field> <field name="seq_edit_cache">&lt;script src='http://parts.igem.org/cgi/partsdb/seq_edit/all.js'&gt;&lt;/script&gt; &lt;DIV id='sequencePaneDiv' style='clear:both'&gt; &lt;INPUT type='hidden' id='new_dna_format' name='new_dna_format' value='' /&gt; &lt;INPUT type='hidden' id='selection_start' name='selection_start' value='14' /&gt; &lt;INPUT type='hidden' id='selection_end' name='selection_end' value='0' /&gt;&lt;/DIV&gt; &lt;script&gt; var sequence = new String('ttaggtattgactgtactatcagttccgtcataatatgaaccataagttcaccac'); var seqFeatures = new Array( ['brick',1,55,'R0050', 0], ['reg',8,13,'-35', 0], ['reg',30,35,'-10', 0], ['rbs',13,27,'OR2', 0], ['rbs',37,51,'OR1', 0], ['rarrow_p',43,43,'putative', 0]); var subParts = null; var Format = '_ruler_'; var PrimaryPartName = 'BBa_R0050'; var PrimaryPartID = '188'; var Selection_Start = 0; var Selection_End = 0; showSeqFeatures(false); &lt;/script&gt;&lt;div style='position:relative;clear:both;width:100%'&gt;&lt;div style=''&gt; &lt;STYLE type='text/css'&gt; .compatibility_div ul, .compatibility_div li { display: inline; } .compatibility_div li { position: relative; padding-top: 2px; padding-left:4px; padding-right:3px; margin-right:2px; margin-bottom: 5px; """ record = _parse_row(row) self.assertEqual("BBa_S01288", record.id) self.assertEqual( "tcacacaggaaagtactagatgagcacaaaaaagaaaccattaacacaagagcagcttgaggacgcacgtcgccttaaagcaatttatgaaaaaaagaaaaatgaacttggcttatcccaggaatctgtcgcagacaagatggggatggggcagtcaggcgttggtgctttatttaatggcatcaatgcattaaatgcttataacgccgcattgcttgcaaaaattctcaaagttagcgttgaagaatttagcccttcaatcgccagagaaatctacgagatgtatgaagcggttagtatgcagccgtcacttagaagtgagtatgagtaccctgttttttctcatgttcaggcagggatgttctcacctgagcttagaacctttaccaaaggtgatgcggagagatgggtaagcacaaccaaaaaagccagtgattctgcattctggcttgaggttgaaggtaattccatgaccgcaccaacaggctccaagccaagctttcctgacggaatgttaattctcgttgaccctgagcaggctgttgagccaggtgatttctgcatagccagacttgggggtgatgagtttaccttcaagaaactgatcagggatagcggtcaggtgtttttacaaccactaaacccacagtacccaatgatcccatgcaatgagagttgttccgttgtggggaaagttatcgctagtcagtggcctgaagagacgtttggcgctgcaaacgacgaaaactacgctttagtagcttaataacgctgatagtgctagtgtagatcgctactagagccaggcatcaaataaaacgaaaggctcagtcgaaagactgggcctttcgttttatctgttgtttgtcggtgaacgctctctactagagtcacactggctcaccttcgggtgggcctttctgcgtttatatactagagacctgtacgatcctacaggtgcttatgttaagtaattgtattcccagcgatacaatagtgtgacaaaaatccaatttattagaatcaaatgtcaatccattaccgttttaatgatatataacacgcaaaacttgcgacaaacaataggtaatactagagattaaagaggagaaatactagatgaaaaacataaatgccgacgacacatacagaataattaataaaattaaagcttgtagaagcaataatgatattaatcaatgcttatctgatatgactaaaatggtacattgtgaatattatttactcgcgatcatttatcctcattctatggttaaatctgatatttcaatcctagataattaccctaaaaaatggaggcaatattatgatgacgctaatttaataaaatatgatcctatagtagattattctaactccaatcattcaccaattaattggaatatatttgaaaacaatgctgtaaataaaaaatctccaaatgtaattaaagaagcgaaaacatcaggtcttatcactgggtttagtttccctattcatacggctaacaatggcttcggaatgcttagttttgcacattcagaaaaagacaactatatagatagtttatttttacatgcgtgtatgaacataccattaattgttccttctctagttgataattatcgaaaaataaatatagcaaataataaatcaaacaacgatttaaccaaaagagaaaaagaatgtttagcgtgggcatgcgaaggaaaaagctcttgggatatttcaaaaatattaggttgcagtgagcgtactgtcactttccatttaaccaatgcgcaaatgaaactcaatacaacaaaccgctgccaaagtatttctaaagcaattttaacaggagcaattgattgcccatactttaaaaattaataacactgatagtgctagtgtagatcactactagagccaggcatcaaataaaacgaaaggctcagtcgaaagactgggcctttcgttttatctgttgtttgtcggtgaacgctctctactagagtcacactggctcaccttcgggtgggcctttctgcgtttata", str(record.seq), ) self.assertEqual( len(record.features), 3 ) # only three are greater than the default word size def test_consensus_name(self): """Find a consensus name for a list of SeqRecords.""" frt1 = SeqRecord( Seq(""), id="BBa_J61020", annotations={ "short_desc": "[FRT]", "description": "Site for recombination by flp recombinase. Genes flanked by FRT sites (oriented in the same direction) in the genome can be excised with the introduction of flp recombinase-expressing helper plasmid pCP20. Note that the original FRT sequence contained an XbaI site that has been removed with a point mutation for compatibility with standard assembly. See Datsenko and Wanner for details of its use in markerless knockouts and knockins.", "categories": "//function/recombination/flp", "nickname": "FRT", }, ) frt2 = SeqRecord( Seq(""), id="BBa_J72001", annotations={ "short_desc": "{FRT} recombination site for flp recombinase in BBb", "description": "Later", "categories": "//function/recombination/flp", "nickname": "FRT", }, ) frt3 = SeqRecord( Seq(""), id="BBa_K337019", annotations={ "short_desc": "FRT site with spacing", "description": "FRT sites can be used to stably integrate DNA parts into a host cell genome via the Flip-in System.", "categories": "", "nickname": "", }, ) feature_name = _consensus_name([frt1, frt2, frt3]) self.assertEqual("FRT", feature_name)
81.785124
2,084
0.754042
696
9,896
10.586207
0.392241
0.04886
0.068404
0.014251
0.055375
0.036781
0.021716
0.013572
0.013572
0.013572
0
0.02341
0.162591
9,896
120
2,085
82.466667
0.865693
0.019907
0
0.137255
0
0.029412
0.868761
0.573318
0
1
0
0
0.039216
1
0.019608
false
0
0.039216
0
0.068627
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
9b5116f278b477a64ec529ddbe4c6e31261e995b
20
py
Python
datumaro/version.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
null
null
null
datumaro/version.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
null
null
null
datumaro/version.py
zmfkzj/datumaro
d440ee0b2378a33ef35626568df65fa9b0c53417
[ "MIT" ]
null
null
null
VERSION = '0.1.3.3'
10
19
0.55
5
20
2.2
0.8
0
0
0
0
0
0
0
0
0
0
0.235294
0.15
20
1
20
20
0.411765
0
0
0
0
0
0.35
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
9b5d08418929c5c2bd26f546c59c3d01a3de133d
75
py
Python
splearn/preprocessing/__init__.py
dtrckd/sparkit-learn
0498502107c1f7dcf33cda0cdb6f5ba4b42524b7
[ "Apache-2.0" ]
1,219
2015-01-12T15:18:57.000Z
2022-03-29T15:35:07.000Z
splearn/preprocessing/__init__.py
dtrckd/sparkit-learn
0498502107c1f7dcf33cda0cdb6f5ba4b42524b7
[ "Apache-2.0" ]
71
2015-05-05T09:13:40.000Z
2022-01-09T15:27:08.000Z
splearn/preprocessing/__init__.py
dtrckd/sparkit-learn
0498502107c1f7dcf33cda0cdb6f5ba4b42524b7
[ "Apache-2.0" ]
270
2015-05-23T10:26:57.000Z
2021-08-23T17:46:14.000Z
from .label import SparkLabelEncoder from .data import SparkStandardScaler
25
37
0.866667
8
75
8.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.106667
75
2
38
37.5
0.970149
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9b6547d2340a971dca7bb7f8784b3c4298e6df39
562
py
Python
utils/exceptions.py
Sengolda/EpicBot
4ad435dd394cc3e81978c7469265e3f90c877c23
[ "BSD-3-Clause" ]
571
2021-02-08T06:59:15.000Z
2022-03-28T08:08:24.000Z
utils/exceptions.py
Sengolda/EpicBot
4ad435dd394cc3e81978c7469265e3f90c877c23
[ "BSD-3-Clause" ]
61
2021-03-02T22:10:30.000Z
2022-03-26T14:45:42.000Z
utils/exceptions.py
Sengolda/EpicBot
4ad435dd394cc3e81978c7469265e3f90c877c23
[ "BSD-3-Clause" ]
97
2021-02-16T16:26:08.000Z
2022-03-22T17:22:35.000Z
from discord.ext import commands class MusicGone(commands.CheckFailure): pass class InvalidUrl(commands.BadArgument): def __init__(self, argument: str): self.argument = argument class InvalidAutomodModule(commands.BadArgument): def __init__(self, module: str): self.module = module class AutomodModuleNotEnabled(commands.BadArgument): def __init__(self, module: str): self.module = module class AutomodModuleAlreadyEnabled(commands.BadArgument): def __init__(self, module: str): self.module = module
21.615385
56
0.725979
58
562
6.758621
0.344828
0.153061
0.22449
0.265306
0.522959
0.446429
0.446429
0.446429
0.446429
0.446429
0
0
0.186833
562
25
57
22.48
0.857768
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.266667
false
0.066667
0.066667
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
1
0
1
0
0
1
0
0
5
9b6eb5c548cf7b88d200e614407427b385fbf0cb
147
py
Python
Python/Pattern/1.py
Aditya8821/Python
58c7ea8daf381256d8a45736832fb70f735757f7
[ "MIT" ]
2
2021-05-12T11:20:39.000Z
2021-06-17T04:35:16.000Z
Python/Pattern/1.py
Aditya8821/Python
58c7ea8daf381256d8a45736832fb70f735757f7
[ "MIT" ]
null
null
null
Python/Pattern/1.py
Aditya8821/Python
58c7ea8daf381256d8a45736832fb70f735757f7
[ "MIT" ]
null
null
null
x=int(input("Enter number:=")) for i in range(1,x+1): for j in range(1,x+1): if j<=i: print("*",end=" ") print()
21
31
0.442177
25
147
2.6
0.56
0.215385
0.246154
0.276923
0.307692
0
0
0
0
0
0
0.040816
0.333333
147
6
32
24.5
0.622449
0
0
0
0
0
0.113475
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
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
0
0
0
5
9b9d1973b7f9af1a805d38cba051278ced2045f7
7,727
py
Python
solovideojuegos/Scrapys/TodoJuegos/ScrapySVGTodoJuegos/spiders/spider.py
lKaza/VideoJuegosFisicosChile
e115607ab3615d1fdfee903406574832be4c03a3
[ "MIT" ]
null
null
null
solovideojuegos/Scrapys/TodoJuegos/ScrapySVGTodoJuegos/spiders/spider.py
lKaza/VideoJuegosFisicosChile
e115607ab3615d1fdfee903406574832be4c03a3
[ "MIT" ]
null
null
null
solovideojuegos/Scrapys/TodoJuegos/ScrapySVGTodoJuegos/spiders/spider.py
lKaza/VideoJuegosFisicosChile
e115607ab3615d1fdfee903406574832be4c03a3
[ "MIT" ]
null
null
null
import sys reload(sys) sys.setdefaultencoding('utf8') import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from scrapy.exceptions import CloseSpider from ScrapySVGTodoJuegos.items import ScrapysvgtodojuegosItem from selenium import webdriver from scrapy.crawler import CrawlerRunner from twisted.internet import reactor from scrapy.utils.log import configure_logging class SVGSpiderPS4(CrawlSpider): name = 'gamerspidertodojuegosPS4' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/Destacados/Ps4-Juegos-Disponibles/'] rules = { # Para cada item #Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="ProdDisplayType5_MasProductos_32641"]/p'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="content"]/div[3]/table')), # Ingresa al contenido callback = 'parse_item', follow = False) } def parse_item(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/PS4/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'PS4' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item class SVGSpiderPS3(CrawlSpider): name = 'gamerspidertodojuegosPS3' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/Destacados/Ps3-Todos-Los-Disponibles/'] rules = { # Para cada item #Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="ProdDisplayType5_MasProductos_32641"]/p'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="content"]/div[3]/table')), # Ingresa al contenido callback = 'parse_itemPS3', follow = False) } def parse_itemPS3(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/PS3/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'PS3' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item class SVGSpiderXONE(CrawlSpider): name = 'gamerspidertodojuegosxone' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/XONE/_juegos/'] rules = { # Para cada item Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="navLinkNext"]'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="ListadoResultados"]/table')), # Ingresa al contenido callback = 'parse_itemXOne', follow = False) } def parse_itemXOne(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/XONE/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'XboxOne' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item class SVGSpiderPSVITA(CrawlSpider): name = 'gamerspidertodojuegospsvita' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/PSV/_juegos/'] rules = { # Para cada item Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="navLinkNext"]'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="ListadoResultados"]/table')), # Ingresa al contenido callback = 'parse_itemPSVITA', follow = False) } def parse_itemPSVITA(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/PSV/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'PSVita' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item class SVGSpiderWIIU(CrawlSpider): name = 'gamerspidertodojuegospswiiu' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/wiiu/_juegos/'] rules = { # Para cada item Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="navLinkNext"]'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="ListadoResultados"]/table')), # Ingresa al contenido callback = 'parse_itemWiiu', follow = False) } def parse_itemWiiu(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/wiiu/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'Wiiu' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item class SVGSpiderNSWI(CrawlSpider): name = 'gamerspidertodojuegosNSWI' item_count = 0 allowed_domain = ['https://www.todojuegos.cl'] start_urls = ['http://www.todojuegos.cl/Productos/NSWI/_juegos/'] rules = { # Para cada item Rule(LinkExtractor(allow = (), restrict_xpaths = ('//*[@id="navLinkNext"]'))), # Click en la paginacion Rule(LinkExtractor(allow =(), restrict_xpaths = ('//*[@id="ListadoResultados"]/table')), # Ingresa al contenido callback = 'parse_itemNSWI', follow = False) } def parse_itemNSWI(self, response): ml_item = ScrapysvgtodojuegosItem() #info de producto ml_item['titulo'] = response.xpath('//*[@id="content"]/div[3]/h1/text()').extract_first() ml_item['precio'] = response.xpath('//*[@id="content"]/div[5]/div[1]/h2/text()').extract() ml_item['link'] = 'http://www.todojuegos.cl/Productos/NSWI/'+ml_item['titulo'] #ml_item['sku'] = response.xpath('//*[@id="imagen_producto"]/div[@class="dvInfoGral"][1]/span[@class="txValueInfoGral"]/text()').extract() ml_item['plataforma'] = 'NSWI' self.item_count += 1 if self.item_count > 300: raise CloseSpider('item_exceeded') yield ml_item configure_logging() runner = CrawlerRunner() runner.crawl(SVGSpiderPS4) runner.crawl(SVGSpiderPS3) runner.crawl(SVGSpiderXONE) runner.crawl(SVGSpiderPSVITA) runner.crawl(SVGSpiderNSWI) runner.crawl(SVGSpiderWIIU) d = runner.join() d.addBoth(lambda _: reactor.stop()) reactor.run()
38.829146
140
0.694189
944
7,727
5.543432
0.146186
0.055035
0.051596
0.04357
0.776037
0.776037
0.770304
0.770304
0.770304
0.770304
0
0.013861
0.11298
7,727
199
141
38.829146
0.749635
0.191666
0
0.496454
0
0
0.322015
0.144834
0
0
0
0
0
1
0.042553
false
0
0.070922
0
0.368794
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
9baeaff6d66df140fd71cb5926a539712e3b208e
237
py
Python
104_manejoCadenas/metodoStartswith.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/metodoStartswith.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/metodoStartswith.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
#El método "startswith()" es un espejo del método "endswith()" # comprueba si una cadena dada comienza con la subcadena especificada. # Demostración del método startswith() print("omega".startswith("meg")) print("omega".startswith("om"))
47.4
70
0.755274
31
237
5.774194
0.741935
0.178771
0.223464
0
0
0
0
0
0
0
0
0
0.109705
237
5
71
47.4
0.848341
0.704641
0
0
0
0
0.220588
0
0
0
0
0.2
0
1
0
true
0
0
0
0
1
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
1
0
0
0
1
0
0
0
0
1
0
5
32cf61d6f5b14f51c29ecb1f52be75c30d9bc290
140
py
Python
caulobacter_growth/__init__.py
shiyunzhu/caulobacter_growth
f3d5daa7539ff788bc853c315c04822d49b5a105
[ "MIT" ]
null
null
null
caulobacter_growth/__init__.py
shiyunzhu/caulobacter_growth
f3d5daa7539ff788bc853c315c04822d49b5a105
[ "MIT" ]
null
null
null
caulobacter_growth/__init__.py
shiyunzhu/caulobacter_growth
f3d5daa7539ff788bc853c315c04822d49b5a105
[ "MIT" ]
null
null
null
from .general_utils import * from .image_processing import * from .visualize import * __version__ = '0.0.1' __author__ = 'bebi103 group 31'
23.333333
31
0.757143
19
140
5.052632
0.736842
0.208333
0
0
0
0
0
0
0
0
0
0.066667
0.142857
140
6
32
23.333333
0.733333
0
0
0
0
0
0.148936
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
5
32e66f76850d29f40a57f782b93025f56fefb31d
69
py
Python
AtCoder/ABC/A/page-3/085A.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/A/page-3/085A.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
AtCoder/ABC/A/page-3/085A.py
Nishi05/Competitive-programming
e59a6755b706d9d5c1f359f4511d92c114e6a94e
[ "MIT" ]
null
null
null
y, m, d = map(str, input().split("/")) print("2018/" + m + "/" + d)
17.25
38
0.434783
11
69
2.727273
0.818182
0.133333
0
0
0
0
0
0
0
0
0
0.072727
0.202899
69
3
39
23
0.472727
0
0
0
0
0
0.101449
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
0
0
0
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
1
0
0
0
0
1
0
5
32eea3971efbb4810fcb6ac988923b4d7827d624
2,869
py
Python
tests/test_patcher.py
moriyoshi/greenletio
75fc944cefe58ee491e5b8ff951a64f13ae0104d
[ "MIT" ]
131
2020-07-17T22:36:25.000Z
2022-03-06T21:29:23.000Z
tests/test_patcher.py
moriyoshi/greenletio
75fc944cefe58ee491e5b8ff951a64f13ae0104d
[ "MIT" ]
7
2020-07-18T07:36:13.000Z
2021-07-16T08:28:47.000Z
tests/test_patcher.py
moriyoshi/greenletio
75fc944cefe58ee491e5b8ff951a64f13ae0104d
[ "MIT" ]
5
2020-07-18T01:08:40.000Z
2021-05-12T09:17:17.000Z
import platform import socket import sys import unittest from greenletio import patch_blocking, patch_psycopg2 from greenletio.green import socket as green_socket, \ threading as green_threading class TestPatcher(unittest.TestCase): def test_patch(self): assert 'socketserver' not in sys.modules if 'threading' in sys.modules: del sys.modules['threading'] with patch_blocking(): assert sys.modules['socket'] == green_socket assert sys.modules['threading'] == green_threading import socketserver assert socketserver.socket == green_socket assert '__greenletio_patched__' in sys.modules assert sys.modules['socket'] == socket assert 'threading' not in sys.modules assert 'socketserver' not in sys.modules assert '__greenletio_patched__' not in sys.modules def test_patch_partial(self): assert 'socketserver' not in sys.modules original_threading = sys.modules.get('threading') with patch_blocking(['socket']): assert sys.modules['socket'] == green_socket assert sys.modules.get('threading') == original_threading import socketserver assert socketserver.socket == green_socket assert '__greenletio_patched__' in sys.modules assert sys.modules['socket'] == socket assert sys.modules.get('threading') == original_threading assert 'socketserver' not in sys.modules assert '__greenletio_patched__' not in sys.modules def test_patch_recursive(self): assert 'socketserver' not in sys.modules if 'threading' in sys.modules: del sys.modules['threading'] with patch_blocking(): with patch_blocking(): assert sys.modules['socket'] == green_socket assert sys.modules['threading'] == green_threading import socketserver assert socketserver.socket == green_socket assert '__greenletio_patched__' in sys.modules assert sys.modules['socket'] == green_socket assert sys.modules['threading'] == green_threading assert 'socketserver' not in sys.modules assert '__greenletio_patched__' in sys.modules assert sys.modules['socket'] == socket assert 'threading' not in sys.modules assert 'socketserver' not in sys.modules assert '__greenletio_patched__' not in sys.modules @unittest.skipIf(platform.python_implementation() != 'CPython', 'psycopg2-binary does not install on pypy3') def test_patch_psycopg2(self): import psycopg2 assert psycopg2.extensions.get_wait_callback() is None patch_psycopg2() assert psycopg2.extensions.get_wait_callback() is not None
42.820896
69
0.65772
312
2,869
5.826923
0.147436
0.181518
0.118812
0.09901
0.771177
0.771177
0.771177
0.750825
0.669417
0.642464
0
0.003781
0.262461
2,869
66
70
43.469697
0.855388
0
0
0.672131
0
0
0.154061
0.053677
0
0
0
0
0.540984
1
0.065574
false
0
0.163934
0
0.245902
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
32f363e15deb7410848984def83a30df8259366a
253
py
Python
refinery/units/crypto/cipher/des.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
1
2022-02-13T20:57:15.000Z
2022-02-13T20:57:15.000Z
refinery/units/crypto/cipher/des.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
null
null
null
refinery/units/crypto/cipher/des.py
bronxc/refinery
9448facf48a0008f27861dd1a5ee8f5218e6bb86
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from Crypto.Cipher import DES from refinery.units.crypto.cipher import StandardBlockCipherUnit class des(StandardBlockCipherUnit, cipher=DES): """ DES encryption and decryption. """ pass
19.461538
64
0.70751
29
253
6.172414
0.689655
0.134078
0.201117
0
0
0
0
0
0
0
0
0.009569
0.173913
253
12
65
21.083333
0.84689
0.29249
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
fd125b9706f0691e5e14552a650a1a9b6f7ba2da
248
py
Python
downloader.py
augustgerro/pol
7304867e306002f63ecda9d85022c36433a15fef
[ "MIT" ]
293
2016-08-13T22:06:37.000Z
2022-03-23T23:47:25.000Z
downloader.py
augustgerro/pol
7304867e306002f63ecda9d85022c36433a15fef
[ "MIT" ]
62
2017-09-07T21:17:41.000Z
2022-03-23T08:56:25.000Z
downloader.py
augustgerro/pol
7304867e306002f63ecda9d85022c36433a15fef
[ "MIT" ]
64
2017-04-28T21:47:07.000Z
2022-03-12T08:01:36.000Z
import sys from pol.server import Server from settings import DATABASES, SNAPSHOT_DIR, DOWNLOADER_USER_AGENT, DEBUG port = sys.argv[1] if len(sys.argv) >= 2 else 1234 Server(port, DATABASES['default'], SNAPSHOT_DIR, DOWNLOADER_USER_AGENT).run()
27.555556
77
0.782258
38
248
4.947368
0.605263
0.117021
0.223404
0.265957
0.319149
0
0
0
0
0
0
0.027397
0.116935
248
8
78
31
0.83105
0
0
0
0
0
0.028226
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
5
fd200df98af5bfd444b28634de36ebbbbd41dcdd
73
py
Python
Chapter 05/Chap05_Example5.50.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 05/Chap05_Example5.50.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 05/Chap05_Example5.50.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
#games module from Kabaddi.defender import name_defender name_defender()
18.25
42
0.849315
10
73
6
0.7
0.4
0
0
0
0
0
0
0
0
0
0
0.09589
73
3
43
24.333333
0.909091
0.164384
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
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
1
0
0
0
0
5
fd596b1124a849724ca57d1f8cde94f9026207af
62
py
Python
app/utils/exceptions.py
xavizus/SSOServiceProviderAPI
464997d047b34a390fb96470f21ac2d91d33e059
[ "MIT", "BSD-3-Clause" ]
null
null
null
app/utils/exceptions.py
xavizus/SSOServiceProviderAPI
464997d047b34a390fb96470f21ac2d91d33e059
[ "MIT", "BSD-3-Clause" ]
null
null
null
app/utils/exceptions.py
xavizus/SSOServiceProviderAPI
464997d047b34a390fb96470f21ac2d91d33e059
[ "MIT", "BSD-3-Clause" ]
null
null
null
class FLASKLDAPMissingConfigurationError(Exception): pass
20.666667
52
0.83871
4
62
13
1
0
0
0
0
0
0
0
0
0
0
0
0.112903
62
2
53
31
0.945455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
5
b5eca1d412eaec65819376289d1a9a678d84b88b
322
py
Python
examples/python/007-typeconstants/MyApp.py
yann64/haiku-swig-api
1469a6a7a0a7f2df2d202b43d13a7f7f1e9c2baa
[ "MIT" ]
2
2018-11-14T15:33:23.000Z
2021-08-08T10:29:16.000Z
examples/python/007-typeconstants/MyApp.py
yann64/haiku-swig-api
1469a6a7a0a7f2df2d202b43d13a7f7f1e9c2baa
[ "MIT" ]
1
2018-11-15T05:56:55.000Z
2018-11-15T05:56:55.000Z
examples/python/007-typeconstants/MyApp.py
yann64/haiku-swig-api
1469a6a7a0a7f2df2d202b43d13a7f7f1e9c2baa
[ "MIT" ]
1
2021-08-06T14:14:07.000Z
2021-08-06T14:14:07.000Z
import haiku print("B_ANY_TYPE = '" + str(haiku.B_ANY_TYPE) + "'") print("B_ATOM_TYPE = '" + str(haiku.B_ATOM_TYPE) + "'") print("B_BOOL_TYPE = '" + str(haiku.B_BOOL_TYPE) + "'") print("B_CHAR_TYPE = '" + str(haiku.B_CHAR_TYPE) + "'") print("FAIL: SWIG is only printing out the last char in this int32 (4 char) numeric")
40.25
85
0.661491
54
322
3.648148
0.425926
0.121827
0.243655
0.263959
0
0
0
0
0
0
0
0.01087
0.142857
322
8
85
40.25
0.702899
0
0
0
0
0
0.430341
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0.833333
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
1
0
0
0
0
1
0
5
b5f5bdaedeed546cc5aed2d708a8a53b2925d85d
129
py
Python
2. funcoes/celsius_para_fahrenheit.py
andrebrito16/python-academy
544516048c0a2f8cea42ef0f252b9c40e8f5b141
[ "MIT" ]
1
2021-08-19T19:40:14.000Z
2021-08-19T19:40:14.000Z
2. funcoes/celsius_para_fahrenheit.py
andrebrito16/python-academy
544516048c0a2f8cea42ef0f252b9c40e8f5b141
[ "MIT" ]
null
null
null
2. funcoes/celsius_para_fahrenheit.py
andrebrito16/python-academy
544516048c0a2f8cea42ef0f252b9c40e8f5b141
[ "MIT" ]
null
null
null
def celsius_para_fahrenheit(celsius): fahrenheit=((celsius/ 5)*9)+32 return fahrenheit print(celsius_para_fahrenheit(40))
32.25
37
0.775194
17
129
5.647059
0.588235
0.229167
0.4375
0
0
0
0
0
0
0
0
0.052174
0.108527
129
4
38
32.25
0.782609
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0.25
1
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
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
b5fe709b5d82b68c3bd40a42ffc99062c2d36c59
237
py
Python
Desafios/Ex-049.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
1
2021-04-06T16:14:43.000Z
2021-04-06T16:14:43.000Z
Desafios/Ex-049.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
Desafios/Ex-049.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
print(f'\033[33m{"—"*30:^30}\033[m') print(f'\033[36m{"EXERCÍCIO Nº 49":^30}\033[m') print(f'\033[33m{"—"*30:^30}\033[m') print('TABUADA!') n = int(input('Digite um número: ')) for x in range(0, 11): print(f' {x:>2} x {n} = {x * n}')
33.857143
47
0.556962
50
237
2.68
0.5
0.179104
0.201493
0.246269
0.462687
0.462687
0.38806
0.38806
0.38806
0.38806
0
0.191388
0.118143
237
7
48
33.857143
0.440191
0
0
0.285714
0
0
0.579832
0.218487
0
0
0
0
0
1
0
false
0
0
0
0
0.714286
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
1
0
5
bd0dc74fe4280f376f3a66e1744587344e051e63
70
py
Python
server/app/services/tasks_scheduler/timer_tasks/app/api_count/__init__.py
goodfree/ActorCloud
e8db470830ea6f6f208ad43c2e56a2e8976bc468
[ "Apache-2.0" ]
173
2019-06-10T07:14:49.000Z
2022-03-31T08:42:36.000Z
server/app/services/tasks_scheduler/timer_tasks/app/api_count/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
27
2019-06-12T08:25:29.000Z
2022-02-26T11:37:15.000Z
server/app/services/tasks_scheduler/timer_tasks/app/api_count/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
67
2019-06-10T08:40:05.000Z
2022-03-09T03:43:56.000Z
from .count_task import api_count_task __all__ = ['api_count_task']
14
38
0.785714
11
70
4.181818
0.545455
0.586957
0.521739
0
0
0
0
0
0
0
0
0
0.128571
70
4
39
17.5
0.754098
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
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
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
bd4fd75a5df25148ce28e04f034e88096b9bd176
67
py
Python
segmentation/data/samplers/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
506
2020-06-12T01:07:56.000Z
2022-03-26T00:56:52.000Z
segmentation/data/samplers/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
85
2020-06-12T04:51:31.000Z
2022-03-23T16:19:44.000Z
segmentation/data/samplers/__init__.py
RajasekharChowdary9/panoptic-deeplab
7645bc1cf51e3ebc85153666f26f8630a407b52b
[ "Apache-2.0" ]
102
2020-06-12T06:45:44.000Z
2022-03-22T14:03:04.000Z
from .distributed_sampler import TrainingSampler, InferenceSampler
33.5
66
0.895522
6
67
9.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.074627
67
1
67
67
0.951613
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1fa7c5c46d4e5abbe4f11e36db074c1ee784dbec
213
py
Python
pro_new/my_newapp/admin.py
MaLLLiYA/Django_test
a355d24995480e26cb4164de85513a36505e692f
[ "MIT" ]
null
null
null
pro_new/my_newapp/admin.py
MaLLLiYA/Django_test
a355d24995480e26cb4164de85513a36505e692f
[ "MIT" ]
null
null
null
pro_new/my_newapp/admin.py
MaLLLiYA/Django_test
a355d24995480e26cb4164de85513a36505e692f
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from my_newapp.models import Student, Bookinfo,Peopleinfo admin.site.register(Student) admin.site.register(Bookinfo) admin.site.register(Peopleinfo)
23.666667
57
0.826291
29
213
6.034483
0.517241
0.154286
0.291429
0
0
0
0
0
0
0
0
0
0.089202
213
8
58
26.625
0.902062
0.122066
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
1
0
1
0
0
0
0
5
1fa9ab64770c4857c5b3b62ed429a076fde8f49c
76
py
Python
PyDSTool/PyCont/__init__.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/PyCont/__init__.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/PyCont/__init__.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
from __future__ import absolute_import from .ContClass import ContClass
19
39
0.828947
9
76
6.444444
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.157895
76
3
40
25.333333
0.90625
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1fe1db6e556142b2905497ee1b5f35b9af479d15
8,807
py
Python
wc_env_manager/__main__.py
KarrLab/wc_env
d9765669566bf33c3d087a7a5d23687f233cc825
[ "MIT" ]
null
null
null
wc_env_manager/__main__.py
KarrLab/wc_env
d9765669566bf33c3d087a7a5d23687f233cc825
[ "MIT" ]
19
2018-08-29T23:26:55.000Z
2019-12-19T23:44:08.000Z
wc_env_manager/__main__.py
KarrLab/wc_env_manager
d9765669566bf33c3d087a7a5d23687f233cc825
[ "MIT" ]
null
null
null
""" wc_env_manager command line interface :Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu> :Date: 2018-04-04 :Copyright: 2018, Karr Lab :License: MIT """ import cement import wc_env_manager import wc_env_manager.core VERBOSE = True class BaseController(cement.Controller): """ Base controller for command line application """ class Meta: label = 'base' description = "Whole-cell modeling environment manager" help = "Whole-cell modeling environment manager" arguments = [ (['-v', '--version'], dict(action='version', version=wc_env_manager.__version__)), ] @cement.ex(hide=True) def _default(self): self._parser.print_help() class BaseImageController(cement.Controller): """ Build, push, and pull the base image, *wc_env_dependencies* """ class Meta: label = 'base-image' description = 'Build, push, pull, and remove the base image, `wc_env_dependencies`' help = 'Build, push, pull, and remove the base image, `wc_env_dependencies`' stacked_on = 'base' stacked_type = 'nested' arguments = [] @cement.ex(hide=True) def _default(self): self._parser.print_help() @cement.ex(help='Build base image') def build(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.build_base_image() print('Built base image {}:{{{}}}'.format( mgr.config['base_image']['repo'], ', '.join(mgr.config['base_image']['tags']))) @cement.ex(help='Push base image') def push(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['base_image'] mgr.login_docker_hub() mgr.push_image(config['repo_unsquashed'], config['tags']) mgr.push_image(config['repo'], config['tags']) @cement.ex(help='Pull base image') def pull(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['base_image'] mgr.pull_image(config['repo_unsquashed'], config['tags']) mgr.pull_image(config['repo'], config['tags']) @cement.ex(help='Remove base image') def remove(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['base_image'] mgr.remove_image(config['repo_unsquashed'], config['tags'], force=True) mgr.remove_image(config['repo'], config['tags'], force=True) @cement.ex(help='Get base image version') def version(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) print(mgr.get_image_version(mgr._base_image)) class ImageController(cement.Controller): """ Build, push, and pull the image, *wc_env* """ class Meta: label = 'image' description = 'Build, push, pull, and remove the image, `wc_env`' help = 'Build, push, pull, and remove the image, `wc_env`' stacked_on = 'base' stacked_type = 'nested' arguments = [] @cement.ex(hide=True) def _default(self): self._parser.print_help() @cement.ex(help='Build image') def build(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.build_image() print('Built image {}:{{{}}}'.format( mgr.config['image']['repo'], ', '.join(mgr.config['image']['tags']))) @cement.ex(help='Push image') def push(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['image'] mgr.login_docker_hub() mgr.push_image(config['repo'], config['tags']) @cement.ex(help='Pull image') def pull(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['image'] mgr.pull_image(config['repo'], config['tags']) @cement.ex(help='Remove image') def remove(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['image'] mgr.remove_image(config['repo'], config['tags'], force=True) @cement.ex(help='Get image version') def version(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) print(mgr.get_image_version(mgr._image)) class NetworkController(cement.Controller): """ Build and remove a Docker network """ class Meta: label = 'network' description = 'Build and remove a Docker network' help = 'Build and remove a Docker network' stacked_on = 'base' stacked_type = 'nested' arguments = [] @cement.ex(hide=True) def _default(self): self._parser.print_help() @cement.ex(help='Build network') def build(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.build_network() @cement.ex(help='Remove network') def remove(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.remove_network() class ContainerController(cement.Controller): """ Build and remove containers of *wc_env* """ class Meta: label = 'container' description = 'Build and remove containers of `wc_env`' help = 'Build and remove containers of `wc_env`' stacked_on = 'base' stacked_type = 'nested' arguments = [ ] @cement.ex(hide=True) def _default(self): self._parser.print_help() @cement.ex(help='Build container') def build(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.build_container() mgr.setup_container() print('Built container {}'.format(mgr._container.name)) @cement.ex(help='Remove container') def remove(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.remove_containers(force=True) class AllController(cement.Controller): """ Build, push, pull, and remove images and containers """ class Meta: label = 'all' description = 'Build, push, pull, and remove images and containers' help = 'Build, push, pull, and remove images and containers' stacked_on = 'base' stacked_type = 'embedded' arguments = [ ] # @cement.ex(hide=True) # def _default(self): # self._parser.print_help() @cement.ex(help='Build base image, image, and container') def build(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.remove_containers() mgr.build_base_image() mgr.build_image() mgr.build_container() print('Built base image {}:{{{}}}'.format( mgr.config['base_image']['repo'], ', '.join(mgr.config['base_image']['tags']))) print('Built image {}:{{{}}}'.format( mgr.config['image']['repo'], ', '.join(mgr.config['image']['tags']))) print('Built container {}'.format(mgr._container.name)) @cement.ex(help='Push base image and image') def push(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) mgr.login_docker_hub() config = mgr.config['base_image'] mgr.push_image(config['repo_unsquashed'], config['tags']) config = mgr.config['base_image'] mgr.push_image(config['repo'], config['tags']) config = mgr.config['image'] mgr.push_image(config['repo'], config['tags']) @cement.ex(help='Pull base image and image') def pull(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['base_image'] mgr.pull_image(config['repo_unsquashed'], config['tags']) config = mgr.config['base_image'] mgr.pull_image(config['repo'], config['tags']) config = mgr.config['image'] mgr.pull_image(config['repo'], config['tags']) @cement.ex(help='Remove base image, image, and containers') def remove(self): mgr = wc_env_manager.core.WcEnvManager({'verbose': VERBOSE}) config = mgr.config['base_image'] mgr.remove_image(config['repo_unsquashed'], config['tags'], force=True) config = mgr.config['base_image'] mgr.remove_image(config['repo'], config['tags'], force=True) config = mgr.config['image'] mgr.remove_image(config['repo'], config['tags'], force=True) mgr.remove_containers(force=True) class App(cement.App): """ Command line application """ class Meta: label = 'wc-env-manager' base_controller = 'base' handlers = [ BaseController, BaseImageController, ImageController, NetworkController, ContainerController, AllController, ] def main(): with App() as app: app.run()
32.025455
94
0.617804
1,040
8,807
5.082692
0.093269
0.030269
0.052213
0.05751
0.82709
0.795876
0.740446
0.709043
0.675936
0.66364
0
0.001779
0.234018
8,807
274
95
32.142336
0.781797
0.059612
0
0.641414
0
0
0.20644
0.005103
0
0
0
0
0
1
0.121212
false
0
0.015152
0
0.207071
0.065657
0
0
0
null
0
0
0
1
1
1
1
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
5
1feb90b8e518c92fb7a79701037eccb8f7735277
92
py
Python
terrascript/oci/__init__.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/oci/__init__.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
terrascript/oci/__init__.py
vutsalsinghal/python-terrascript
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
[ "BSD-2-Clause" ]
null
null
null
# terrascript/oci/__init__.py import terrascript class oci(terrascript.Provider): pass
15.333333
32
0.782609
11
92
6.181818
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.130435
92
6
33
15.333333
0.85
0.293478
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
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
1
1
1
0
0
0
0
5
95237172241255be89402890d1f4c74eb97cc3ba
55
py
Python
src/fluent_discourse/__init__.py
graydenshand/fluent_discourse
37bcffddc1586c63a674e63e20629e7674a8a71a
[ "MIT" ]
1
2022-01-15T13:45:35.000Z
2022-01-15T13:45:35.000Z
src/fluent_discourse/__init__.py
graydenshand/fluent_discourse
37bcffddc1586c63a674e63e20629e7674a8a71a
[ "MIT" ]
null
null
null
src/fluent_discourse/__init__.py
graydenshand/fluent_discourse
37bcffddc1586c63a674e63e20629e7674a8a71a
[ "MIT" ]
null
null
null
from .discourse import Discourse from .errors import *
18.333333
32
0.8
7
55
6.285714
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.145455
55
2
33
27.5
0.93617
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
20ff473506b324e3ad37c146411fbf83f70c5967
52
py
Python
pm4pyws/requests_logging/versions/__init__.py
ehbasouri/pm4py-ws
9bf5f88848a4aa2873bae86af95d37f64ae1dde1
[ "Apache-2.0" ]
null
null
null
pm4pyws/requests_logging/versions/__init__.py
ehbasouri/pm4py-ws
9bf5f88848a4aa2873bae86af95d37f64ae1dde1
[ "Apache-2.0" ]
null
null
null
pm4pyws/requests_logging/versions/__init__.py
ehbasouri/pm4py-ws
9bf5f88848a4aa2873bae86af95d37f64ae1dde1
[ "Apache-2.0" ]
null
null
null
from pm4pyws.requests_logging.versions import basic
26
51
0.884615
7
52
6.428571
1
0
0
0
0
0
0
0
0
0
0
0.020833
0.076923
52
1
52
52
0.916667
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1f0c1565712a9dee3e45f573a4049f2f9c402b1e
29
py
Python
flambda_app/services/v1/__init__.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
flambda_app/services/v1/__init__.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
1
2022-03-31T17:55:16.000Z
2022-03-31T17:59:00.000Z
flambda_app/services/v1/__init__.py
madeiramadeirabr/template-serverless-service-python
17a57e19906f44978dad0c09cff3a16c299ff0c0
[ "MIT" ]
null
null
null
class EventService: pass
9.666667
19
0.724138
3
29
7
1
0
0
0
0
0
0
0
0
0
0
0
0.241379
29
2
20
14.5
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
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
1
1
0
0
0
0
0
5
1f2fc6024a6d12b1d3132c6b427fa3cf9fa6d17e
121
py
Python
gifs/jifs/admin.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
gifs/jifs/admin.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
gifs/jifs/admin.py
DTullis-Discover/TrendsAPI
714019115dba5701d7fc322c9213857fbaa98066
[ "MIT" ]
null
null
null
from django.contrib import admin from gifs.jifs.models import Jif # Register your models here. admin.site.register(Jif)
20.166667
32
0.801653
19
121
5.105263
0.684211
0
0
0
0
0
0
0
0
0
0
0
0.123967
121
5
33
24.2
0.915094
0.214876
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
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
1
0
1
0
1
0
0
5
1f3b7b4864d506063cab97e58bb2391cd2396a92
145
py
Python
process.py
bwosh/annovid
93f19732f5c7f31b15c3af208634cf16e0e4f98d
[ "Apache-2.0" ]
1
2020-04-20T19:11:02.000Z
2020-04-20T19:11:02.000Z
process.py
bwosh/annovid
93f19732f5c7f31b15c3af208634cf16e0e4f98d
[ "Apache-2.0" ]
null
null
null
process.py
bwosh/annovid
93f19732f5c7f31b15c3af208634cf16e0e4f98d
[ "Apache-2.0" ]
null
null
null
# TODO separate separate video processing py file # TODO add comments (docs) everywhere # TODO review type hints # TODO prepare module & setup.py
36.25
49
0.77931
21
145
5.380952
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.165517
145
4
50
36.25
0.933884
0.944828
0
null
0
null
0
0
null
0
0
0.25
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
1
0
0
0
1
0
0
0
0
0
0
5
1f598507419c04937a05420997b0586b10d3075b
73
py
Python
src/myproject/settings/test_runner.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
1
2019-05-18T04:34:59.000Z
2019-05-18T04:34:59.000Z
src/myproject/settings/test_runner.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
src/myproject/settings/test_runner.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
from .base import * TEST_RUNNER = 'myapp.test_runner.MyDiscoverRunner'
14.6
50
0.780822
9
73
6.111111
0.777778
0.363636
0
0
0
0
0
0
0
0
0
0
0.123288
73
4
51
18.25
0.859375
0
0
0
0
0
0.465753
0.465753
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
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1f6673d866ca7381d26026b0f886d15a719b7cb3
188
py
Python
lshash-master/build/scripts-3.6/test.py
SinhaUddeshya/Webscience
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
[ "MIT" ]
null
null
null
lshash-master/build/scripts-3.6/test.py
SinhaUddeshya/Webscience
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
[ "MIT" ]
null
null
null
lshash-master/build/scripts-3.6/test.py
SinhaUddeshya/Webscience
fe867a25a7ca1538fdf7a3e294d7b45a42cc28ff
[ "MIT" ]
null
null
null
from lshash import LSHash lsh = LSHash(6, 8) lsh.index([1,0,1,0,0,0,0,0]) lsh.index([1,1,1,0,0,0,0,0]) lsh.index([1,0,0,1,1,1,1,1]) print(lsh.query([1,0,1,1,1,1,1,1], 3, "hamming"))
26.857143
49
0.585106
51
188
2.156863
0.254902
0.2
0.218182
0.181818
0.390909
0.381818
0.272727
0.272727
0.272727
0
0
0.208333
0.106383
188
7
49
26.857143
0.446429
0
0
0
0
0
0.038251
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
1
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
5
2f119c8f8267a0ebfb6eb81ab1e050d73e92feee
71
py
Python
src/learn.py
niu2x/chinese-qipu
7331bd93f62b12eb88d9de4355330b5a0eaf7da8
[ "MIT" ]
null
null
null
src/learn.py
niu2x/chinese-qipu
7331bd93f62b12eb88d9de4355330b5a0eaf7da8
[ "MIT" ]
null
null
null
src/learn.py
niu2x/chinese-qipu
7331bd93f62b12eb88d9de4355330b5a0eaf7da8
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras
23.666667
28
0.84507
12
71
5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.15493
71
3
28
23.666667
1
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2f2aa0b9a70b4a405a7d1bfffd674226323d1cf9
69
py
Python
tinydb_base/exporter/__init__.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
4
2020-11-14T20:19:55.000Z
2021-11-26T04:04:11.000Z
tinydb_base/exporter/__init__.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
20
2020-03-31T11:34:35.000Z
2021-12-24T15:04:19.000Z
tinydb_base/exporter/__init__.py
MechaCoder/tinydb-baseClass
10ce8b8b34418d6f48287bbe83713cbde0e9270a
[ "MIT" ]
null
null
null
from .jsonExport import jsonExport from .ymalExport import ymalExport
34.5
34
0.869565
8
69
7.5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.101449
69
2
35
34.5
0.967742
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2f53539d30e1bb99d7fb867c9775826470d1e332
35
py
Python
vlcp/utils/__init__.py
geek-plus/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
vlcp/utils/__init__.py
wan-qy/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
vlcp/utils/__init__.py
wan-qy/vlcp
e7936e00929fcef00c04d4da39b67d9679d5f083
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
from .logger import ContextAdapter
17.5
34
0.857143
4
35
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
1
35
35
0.967742
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
2f793ee2e4721a3daccc59a4875dc4adf179a76b
78
py
Python
scanbrokers/__init__.py
Lznah/ScanBrokers
7f3b235c88da282b3aae8b9af61042d4e780ba90
[ "MIT" ]
null
null
null
scanbrokers/__init__.py
Lznah/ScanBrokers
7f3b235c88da282b3aae8b9af61042d4e780ba90
[ "MIT" ]
null
null
null
scanbrokers/__init__.py
Lznah/ScanBrokers
7f3b235c88da282b3aae8b9af61042d4e780ba90
[ "MIT" ]
null
null
null
from scanbrokers.server import app, create_app __all__ = ['app','create_app']
26
46
0.769231
11
78
4.909091
0.636364
0.333333
0.444444
0
0
0
0
0
0
0
0
0
0.102564
78
3
47
26
0.771429
0
0
0
0
0
0.164557
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
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
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
c807806f38000690071ef1303585e55315376b18
191
py
Python
problem20.py
charlesfranciscodev/project-euler
a66772853a636130fa37d83a3129ca3a66db7fd2
[ "MIT" ]
null
null
null
problem20.py
charlesfranciscodev/project-euler
a66772853a636130fa37d83a3129ca3a66db7fd2
[ "MIT" ]
null
null
null
problem20.py
charlesfranciscodev/project-euler
a66772853a636130fa37d83a3129ca3a66db7fd2
[ "MIT" ]
null
null
null
# Factorial digit sum # Answer: 648 import math def factorial_digit_sum(n=10**2): return sum(map(int, list(str(math.factorial(n))))) n = int(input()) print(factorial_digit_sum(n=n))
14.692308
54
0.696335
32
191
4.03125
0.5625
0.325581
0.395349
0.27907
0
0
0
0
0
0
0
0.036585
0.141361
191
12
55
15.916667
0.75
0.162304
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0.2
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
1
1
0
0
5
c81ae5a98cab33196256f333e2d03829caf2bab4
252
py
Python
nasws/cnn/search_space/__init__.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
8
2021-04-13T01:52:11.000Z
2022-03-30T03:53:12.000Z
nasws/cnn/search_space/__init__.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
4
2021-05-29T01:41:00.000Z
2021-08-24T09:40:43.000Z
nasws/cnn/search_space/__init__.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
null
null
null
# try: # except ModuleNotFoundError: # print("Loading nasbench101 error. continue") from .nasbench101 import * from .nasbench201 import * from .darts.darts_search_space import DartsSearchSpace from .nds.nds_search_space import DARTSSearchSpaceNDS
28
54
0.805556
28
252
7.107143
0.607143
0.100503
0.170854
0
0
0
0
0
0
0
0
0.040724
0.123016
252
8
55
31.5
0.859729
0.305556
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
1
0
0
5
c861eb8e8f3a07c1c50e42e950b6b9014e47d7eb
256
py
Python
curso em video - Phython/desafios/desafio 13.1 - teste.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
curso em video - Phython/desafios/desafio 13.1 - teste.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
curso em video - Phython/desafios/desafio 13.1 - teste.py
ThyagoHiggins/LP-Phython
78e84aa77e786cc33b7d91397d17e93c3d5a692a
[ "MIT" ]
null
null
null
salario = float(input('Informe o salário a ser reajustado: R$ ')) reajuste = float(input('Informe a porcentagem de reajuste: ')) per = (reajuste/100)+1 print(f'O salário de R$ {salario:.2f} com reajuste de {reajuste}% passar a ser R$ {salario*per:.2f}')
51.2
101
0.699219
41
256
4.365854
0.512195
0.111732
0.189944
0
0
0
0
0
0
0
0
0.027397
0.144531
256
5
101
51.2
0.789954
0
0
0
0
0.25
0.649805
0
0
0
0
0
0
1
0
false
0.25
0
0
0
0.25
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
1
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
c09820bfa55104e9295c0754a6d006b94a15f895
240
py
Python
IXGraphine/dev/web_app/config.py
ix-os/IXOS-utilities-and-extras
0ca421e7c387dd2ce829476d4a046e0ac4110e09
[ "Apache-2.0" ]
16
2021-05-22T02:05:39.000Z
2021-12-04T04:35:35.000Z
IXGraphine/dev/web_app/config.py
ix-os/IXOS-utilities-and-extras
0ca421e7c387dd2ce829476d4a046e0ac4110e09
[ "Apache-2.0" ]
2
2021-10-12T22:46:45.000Z
2022-03-25T19:09:53.000Z
dev/web_app/config.py
HUSKI3/IXGraphine
31bdb22e9e2a6880586eedd09591a62d7ce9aaed
[ "Apache-2.0" ]
7
2021-05-22T02:06:24.000Z
2021-11-27T08:39:07.000Z
import os class BaseConfig: SECRET_KEY = os.getenv('SECRET_KEY', 'REPLACE ME') class DevelopmentConfig(BaseConfig): DEBUG = True class TestingConfig(BaseConfig): DEBUG = True class ProductionConfig(BaseConfig): pass
13.333333
54
0.720833
26
240
6.576923
0.576923
0.105263
0.222222
0.280702
0
0
0
0
0
0
0
0
0.191667
240
17
55
14.117647
0.881443
0
0
0.222222
0
0
0.083333
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.888889
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
1
0
0
1
0
0
5
c09b75c563d6bbc62b16f4cef503c4d2b58dff11
71
py
Python
src/example_package/utils/str_utils.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
src/example_package/utils/str_utils.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
src/example_package/utils/str_utils.py
muyinliu/PyPiDemoProject
914668ff6f6b3eff04bc9482cd8887e053350d95
[ "MIT" ]
null
null
null
def concat(param1, param2) -> str: return str(param1) + str(param2)
35.5
36
0.676056
10
71
4.8
0.6
0
0
0
0
0
0
0
0
0
0
0.067797
0.169014
71
2
36
35.5
0.745763
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
5
c0dab5d0d337004c2dfe0b47a807fe87d72361cd
93
py
Python
positions/examples/ci_settings_mysql.py
Elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
118
2015-01-13T20:04:00.000Z
2022-03-22T17:27:05.000Z
positions/examples/ci_settings_mysql.py
Elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
28
2015-02-11T22:14:52.000Z
2021-06-10T17:29:38.000Z
positions/examples/ci_settings_mysql.py
elec/django-positions
1ee904ccfc82679d630cbab4358c5d6cc763f6df
[ "BSD-3-Clause" ]
48
2015-01-19T15:54:09.000Z
2022-03-07T02:58:55.000Z
from .settings_mysql import * DATABASES['default'].update({'USER': 'root', 'PASSWORD': ''})
23.25
61
0.666667
10
93
6.1
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
93
3
62
31
0.72619
0
0
0
0
0
0.247312
0
0
0
0
0
0
1
0
true
0.5
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
1
1
0
0
0
0
5
239bc452f655b2b656c11c43fbc6f35e82332deb
20
py
Python
odk_aggregation_tool/__init__.py
lindsay-stevens/odk_aggregation_tool
8f02a8cf7b11fba89a519e025d25c2dbf7f83b06
[ "MIT" ]
null
null
null
odk_aggregation_tool/__init__.py
lindsay-stevens/odk_aggregation_tool
8f02a8cf7b11fba89a519e025d25c2dbf7f83b06
[ "MIT" ]
null
null
null
odk_aggregation_tool/__init__.py
lindsay-stevens/odk_aggregation_tool
8f02a8cf7b11fba89a519e025d25c2dbf7f83b06
[ "MIT" ]
null
null
null
__version__ = 2016.1
20
20
0.8
3
20
4
1
0
0
0
0
0
0
0
0
0
0
0.277778
0.1
20
1
20
20
0.388889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
23ac21ff09af5e9c30521d10459410efd15e4642
540
py
Python
Automate the boring stuff with python/error handling.py
JayjeetAtGithub/books
504a94f2c2bdfa1bdf4cbd371d611df416ccf25a
[ "Apache-2.0" ]
25
2020-08-17T20:24:42.000Z
2022-01-25T02:40:13.000Z
Automate the boring stuff with python/error handling.py
JayjeetAtGithub/books
504a94f2c2bdfa1bdf4cbd371d611df416ccf25a
[ "Apache-2.0" ]
null
null
null
Automate the boring stuff with python/error handling.py
JayjeetAtGithub/books
504a94f2c2bdfa1bdf4cbd371d611df416ccf25a
[ "Apache-2.0" ]
17
2021-01-10T13:23:44.000Z
2022-03-22T02:47:43.000Z
# -*- coding: utf-8 -*- ''' Error Handling ''' #difference of placing try except block def spam(divideBy): try: return 42 / divideBy except ZeroDivisionError: print('Error: Invalid argument.') print(spam(2)) print(spam(12)) print(spam(0)) print(spam(1)) 21.0 3.5 Error: Invalid argument. None 42.0 def spam(divideBy): return 42 / divideBy try: print(spam(2)) print(spam(12)) print(spam(0)) print(spam(1)) except ZeroDivisionError: print('Error: Invalid argument.') 21.0 3.5 Error: Invalid argument.
14.210526
39
0.664815
78
540
4.602564
0.358974
0.200557
0.222841
0.183844
0.635097
0.635097
0.367688
0.228412
0.228412
0.228412
0
0.063636
0.185185
540
38
40
14.210526
0.752273
0.109259
0
0.923077
0
0
0.105033
0
0
0
0
0
0
0
null
null
0
0
null
null
0.384615
0
0
0
null
1
1
1
0
0
0
0
0
0
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
5
23d4f03c776a0805633770f5ce3b16a824d25a36
260
py
Python
L1Trigger/TrackerTFP/python/KalmanFilterFormats_cff.py
Jingyan95/cmssw
f78d843f0837f269ee6811b0e0f4c0432928c190
[ "Apache-2.0" ]
5
2020-07-02T19:05:26.000Z
2022-02-25T14:37:09.000Z
L1Trigger/TrackerTFP/python/KalmanFilterFormats_cff.py
Jingyan95/cmssw
f78d843f0837f269ee6811b0e0f4c0432928c190
[ "Apache-2.0" ]
61
2020-07-14T17:22:52.000Z
2022-03-16T11:11:12.000Z
L1Trigger/TrackerTFP/python/KalmanFilterFormats_cff.py
dally96/cmssw
c37b9bfa391850cb349c71190b0bbb2d04224cc8
[ "Apache-2.0" ]
8
2020-06-08T16:28:54.000Z
2021-11-16T14:40:00.000Z
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackerTFP.KalmanFilterFormats_cfi import TrackTriggerKalmanFilterFormats_params TrackTriggerKalmanFilterFormats = cms.ESProducer("trackerTFP::ProducerFormatsKF", TrackTriggerKalmanFilterFormats_params)
52
121
0.9
21
260
11
0.714286
0.320346
0
0
0
0
0
0
0
0
0
0.004049
0.05
260
5
121
52
0.931174
0
0
0
0
0
0.111111
0.111111
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
1
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
5
23f0f6ddeafa5c1bf43fad50474253c6cd348f82
38
py
Python
tests/__init__.py
hotoku/jmaster
f7c8cf71a07520d3f869a8cf37fb968aa2e8a065
[ "MIT" ]
null
null
null
tests/__init__.py
hotoku/jmaster
f7c8cf71a07520d3f869a8cf37fb968aa2e8a065
[ "MIT" ]
null
null
null
tests/__init__.py
hotoku/jmaster
f7c8cf71a07520d3f869a8cf37fb968aa2e8a065
[ "MIT" ]
null
null
null
"""Unit test package for jmanager."""
19
37
0.684211
5
38
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
1
38
38
0.787879
0.815789
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9b0b9ff1fa2f325d7d6826e87923bb71d23fcb32
2,974
py
Python
ExsMidterm/ex4.py
MarcelloZanghieri2/programming_marcello_zanghieri
97ac01f6c01ac12ac317ae832061ef9fd6e47c33
[ "MIT" ]
null
null
null
ExsMidterm/ex4.py
MarcelloZanghieri2/programming_marcello_zanghieri
97ac01f6c01ac12ac317ae832061ef9fd6e47c33
[ "MIT" ]
null
null
null
ExsMidterm/ex4.py
MarcelloZanghieri2/programming_marcello_zanghieri
97ac01f6c01ac12ac317ae832061ef9fd6e47c33
[ "MIT" ]
null
null
null
import sys def import_PAM250(): import re PAM250 = {} filename = 'PAM250.txt' with open(filename, 'r') as infile: line = infile.readline() match = re.search(r'rows = (.{20})', infile.readline()) A = list(match.group(1)) Lab = len(A) for i in range(Lab): line = infile.readline() for j in range(len(line.split())): PAM250[A[i] + A[j]] = int(float(line.split()[j])) for c1 in A: for c2 in A: if c1 + c2 not in PAM250: PAM250[c1 + c2] = PAM250[c2 + c1] return PAM250 def import_BLOSUM62(): import re BLOSUM62 = {} filename = 'BLOSUM62.txt' with open(filename, 'r') as infile: line = infile.readline() match = re.search(r'rows = (.{20})', infile.readline()) A = list(match.group(1)) Lab = len(A) for i in range(Lab): line = infile.readline() for j in range(len(line.split())): BLOSUM62[A[i] + A[j]] = int(float(line.split()[j])) for c1 in A: for c2 in A: if c1 + c2 not in BLOSUM62: BLOSUM62[c1 + c2] = BLOSUM62[c2 + c1] return BLOSUM62 def score_one_align(s1, s2, Msubs, d): L = len(s1) score = 0 for i in range(L): if s1[i] == '-' or s2[i] == '-': score += - d else: score += Msubs[s1[i] + s2[i]] return score def main(): # seq1 = 'ALSKLASPALSAKDLDSPAL' # seq2 = 'ALSKIADSLAPIKDLSPASL' # print((score_one_align(seq1, seq2, PAM250, -1), # score_one_align(seq1, seq2, BLOSUM62, -1))) # seq1 = 'ALSKLA-SPALSAKDLDSPAL' # seq2 = 'ALSKIADSLAP-IKDLSPASL' # print((score_one_align(seq1, seq2, PAM250, -1), # score_one_align(seq1, seq2, BLOSUM62, -1))) # seq1 = 'ALSKLASPALSAKDLDSPA-L' # seq2 = 'ALSKIADSLAPIKDLS-PASL' # print((score_one_align(seq1, seq2, PAM250, -1), # score_one_align(seq1, seq2, BLOSUM62, -1))) # seq1 = 'ALSKLASPALSAKDLDSPA-LS' # seq2 = 'ALSKIADSLAPIKDLS-PASLT' # print((score_one_align(seq1, seq2, PAM250, -1), # score_one_align(seq1, seq2, BLOSUM62, -1))) if sys.argv[1].upper() == 'PAM250': Msubs = import_PAM250() if sys.argv[1].upper() == 'BLOSUM62': Msubs = import_BLOSUM62() d = int(sys.argv[2]) seq1 = 'ALSKLASPALSAKDLDSPAL' seq2 = 'ALSKIADSLAPIKDLSPASL' print(score_one_align(seq1, seq2, Msubs, d)) seq1 = 'ALSKLA-SPALSAKDLDSPAL' seq2 = 'ALSKIADSLAP-IKDLSPASL' print(score_one_align(seq1, seq2, Msubs, d)) seq1 = 'ALSKLASPALSAKDLDSPA-L' seq2 = 'ALSKIADSLAPIKDLS-PASL' print(score_one_align(seq1, seq2, Msubs, d)) seq1 = 'ALSKLASPALSAKDLDSPA-LS' seq2 = 'ALSKIADSLAPIKDLS-PASLT' print(score_one_align(seq1, seq2, Msubs, d)) if __name__ == '__main__': main()
27.036364
67
0.547747
364
2,974
4.370879
0.186813
0.065368
0.106223
0.128221
0.761785
0.742929
0.742929
0.742929
0.739158
0.735387
0
0.07323
0.306658
2,974
110
68
27.036364
0.698351
0.216207
0
0.393939
0
0
0.1054
0.055292
0
0
0
0
0
1
0.060606
false
0
0.106061
0
0.212121
0.060606
0
0
0
null
0
0
0
0
1
1
1
1
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
5
9b0e5be52b984d1f75c02107607adf102bfca067
42
py
Python
brainframe_qt/ui/main_window/activities/identity_configuration/identity_grid_paginator/identity_entry/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
17
2021-02-11T18:19:22.000Z
2022-02-08T06:12:50.000Z
brainframe_qt/ui/main_window/activities/identity_configuration/identity_grid_paginator/identity_entry/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
80
2021-02-11T08:27:31.000Z
2021-10-13T21:33:22.000Z
brainframe_qt/ui/main_window/activities/identity_configuration/identity_grid_paginator/identity_entry/__init__.py
aotuai/brainframe-qt
082cfd0694e569122ff7c63e56dd0ec4b62d5bac
[ "BSD-3-Clause" ]
5
2021-02-12T09:51:34.000Z
2022-02-08T09:25:15.000Z
from .identity_entry import IdentityEntry
21
41
0.880952
5
42
7.2
1
0
0
0
0
0
0
0
0
0
0
0
0.095238
42
1
42
42
0.947368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
9b1150da6f268e5fe7d339fdb7e1057fcd64c8ec
45
py
Python
vformer/models/dense/__init__.py
aditya-agrawal-30502/vformer
e1f4950f980238442ff1dc39a8f0791e4fbc9dac
[ "MIT" ]
90
2021-09-08T10:21:19.000Z
2022-03-26T18:11:47.000Z
vformer/models/dense/__init__.py
aditya-agrawal-30502/vformer
e1f4950f980238442ff1dc39a8f0791e4fbc9dac
[ "MIT" ]
72
2021-09-09T06:54:50.000Z
2022-03-31T09:23:31.000Z
vformer/models/dense/__init__.py
aditya-agrawal-30502/vformer
e1f4950f980238442ff1dc39a8f0791e4fbc9dac
[ "MIT" ]
21
2021-09-09T05:56:03.000Z
2022-03-20T08:22:09.000Z
from .dpt import DPTDepth from .PVT import *
15
25
0.755556
7
45
4.857143
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.177778
45
2
26
22.5
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
9b19b218472731fc2d27738731186cccd8e4b487
66
py
Python
interfaces/transformer/__init__.py
lukovnikov/transformer_generalization
a538bfbba6877cd7a21e710f2535df2e9236ba52
[ "MIT" ]
47
2021-08-30T00:41:15.000Z
2022-01-24T02:49:17.000Z
interfaces/transformer/__init__.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
6
2020-10-19T23:57:23.000Z
2022-03-12T00:51:58.000Z
interfaces/transformer/__init__.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
5
2021-09-04T23:51:51.000Z
2022-03-10T14:03:24.000Z
from .encoder_decoder_interface import TransformerEncDecInterface
33
65
0.924242
6
66
9.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.060606
66
1
66
66
0.951613
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
f1bfa2c8ba5d83abf15237ddea66bedf1e76d538
618
py
Python
imagelib/image/color_models/color_model.py
susautw/imagelib
e582ed2139a15b0aefe16c71b4b476a5b30b7b99
[ "MIT" ]
null
null
null
imagelib/image/color_models/color_model.py
susautw/imagelib
e582ed2139a15b0aefe16c71b4b476a5b30b7b99
[ "MIT" ]
null
null
null
imagelib/image/color_models/color_model.py
susautw/imagelib
e582ed2139a15b0aefe16c71b4b476a5b30b7b99
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import TYPE_CHECKING from imagelib.patterns import Singleton if TYPE_CHECKING: from imagelib.image import Image class ColorModel(ABC, Singleton): @abstractmethod def number_of_channels(self) -> int: pass @abstractmethod def to_rgb(self, context: 'Image') -> 'Image': pass @abstractmethod def to_hsv(self, context: 'Image') -> 'Image': pass @abstractmethod def to_bgr(self, context: 'Image') -> 'Image': pass @abstractmethod def to_gray(self, context: 'Image') -> 'Image': pass
19.935484
51
0.652104
71
618
5.56338
0.380282
0.21519
0.212658
0.232911
0.397468
0.334177
0.334177
0.334177
0
0
0
0
0.247573
618
30
52
20.6
0.849462
0
0
0.47619
0
0
0.064725
0
0
0
0
0
0
1
0.238095
false
0.238095
0.190476
0
0.47619
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
1
0
0
0
0
0
5
f1e72f9b81edfba6f0646e239f700941155bbff1
40
py
Python
build/lib/pypse/__main__.py
HankelBao/PyPse
0022226703592ef030f8d4cdb94cdb089d36edb5
[ "MIT" ]
9
2018-11-25T15:31:21.000Z
2021-03-17T20:24:57.000Z
pypse/__main__.py
HankelBao/PyPse
0022226703592ef030f8d4cdb94cdb089d36edb5
[ "MIT" ]
null
null
null
pypse/__main__.py
HankelBao/PyPse
0022226703592ef030f8d4cdb94cdb089d36edb5
[ "MIT" ]
2
2019-02-02T17:42:35.000Z
2020-12-08T16:25:50.000Z
from pypse import shell shell.launch()
10
23
0.775
6
40
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.15
40
3
24
13.333333
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
f1f4fd47cd98e4c961b4993a4ee09a59b1c51889
45
py
Python
github_labelbot/__main__.py
Fanarim/github_labelbot
2bb422e4a477dc712f3f6aca9e42976d19246496
[ "MIT" ]
null
null
null
github_labelbot/__main__.py
Fanarim/github_labelbot
2bb422e4a477dc712f3f6aca9e42976d19246496
[ "MIT" ]
4
2016-10-25T21:05:46.000Z
2016-11-22T17:58:10.000Z
github_labelbot/__main__.py
Fanarim/github_labelbot
2bb422e4a477dc712f3f6aca9e42976d19246496
[ "MIT" ]
null
null
null
from github_labelbot.run import main main()
11.25
36
0.8
7
45
5
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.133333
45
3
37
15
0.897436
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
9e615bdca0f2cc001817c49497e5ab089eb4cc7d
183
py
Python
agents/__init__.py
nabaco/4-in-row
e277c6150a21a9b609c1c6c5c8f1199ca0f41d32
[ "Apache-2.0" ]
6
2019-05-13T17:02:50.000Z
2019-09-10T07:51:11.000Z
agents/__init__.py
nabaco/pg-ai
e277c6150a21a9b609c1c6c5c8f1199ca0f41d32
[ "Apache-2.0" ]
19
2019-05-12T07:32:07.000Z
2020-01-04T15:50:45.000Z
agents/__init__.py
nabaco/4-in-row
e277c6150a21a9b609c1c6c5c8f1199ca0f41d32
[ "Apache-2.0" ]
3
2019-08-12T19:33:22.000Z
2019-12-19T10:31:52.000Z
from .agent_base import Agent from .random_agent import RandomAgent from .human_agent import HumanAgent from .minimax_agents import MinimaxAgent, AlphaBetaPruningAgent, PlayerTimeout
36.6
78
0.868852
22
183
7.045455
0.590909
0.141935
0
0
0
0
0
0
0
0
0
0
0.098361
183
4
79
45.75
0.939394
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
7b6a6293295bb90b6373ed511382548034437f95
190
py
Python
esuits/shinkiSakusei/views.py
junkhp/esuites_database_modification
ac2b706a7cc8488cbe83a77d7ce062f5b8228463
[ "MIT" ]
4
2020-11-02T18:25:13.000Z
2021-03-15T07:56:41.000Z
esuits/shinkiSakusei/views.py
junkhp/esuites_database_modification
ac2b706a7cc8488cbe83a77d7ce062f5b8228463
[ "MIT" ]
9
2021-02-01T03:20:59.000Z
2021-03-06T08:15:04.000Z
esuits/shinkiSakusei/views.py
junkhp/esuites_database_modification
ac2b706a7cc8488cbe83a77d7ce062f5b8228463
[ "MIT" ]
4
2020-11-03T16:52:37.000Z
2020-11-11T16:31:26.000Z
from django.shortcuts import render from django.views import View class SinkiSakuseiView(View): def get(self,request, *args): return render(request, 'esuits/shinkiSakusei.html')
31.666667
59
0.757895
24
190
6
0.75
0.138889
0
0
0
0
0
0
0
0
0
0
0.147368
190
6
59
31.666667
0.888889
0
0
0
0
0
0.13089
0.13089
0
0
0
0
0
1
0.2
false
0
0.4
0.2
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
1
1
0
0
5
7b8df39dd83ae1cdd22e6cc93491b10feeb6e20c
140
py
Python
scrapy_po/__init__.py
ivanprado/scrapy-po
a0776e763f8c64e81edfe4eb04e8fb3e6b2b5b9e
[ "BSD-3-Clause" ]
null
null
null
scrapy_po/__init__.py
ivanprado/scrapy-po
a0776e763f8c64e81edfe4eb04e8fb3e6b2b5b9e
[ "BSD-3-Clause" ]
null
null
null
scrapy_po/__init__.py
ivanprado/scrapy-po
a0776e763f8c64e81edfe4eb04e8fb3e6b2b5b9e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from .middleware import InjectPageObjectsMiddleware from .webpage import PageObject, WebPage, ItemPage, callback_for
46.666667
64
0.792857
15
140
7.333333
0.8
0
0
0
0
0
0
0
0
0
0
0.008
0.107143
140
3
64
46.666667
0.872
0.15
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
1
0
0
5
7b9fb64e3594371b30777cecdc3fba1bc53d987b
35,579
py
Python
python-new-trunk/Crypto/testdata.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
26
2015-02-08T20:45:51.000Z
2021-04-08T00:07:56.000Z
python-new-trunk/Crypto/testdata.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
python-new-trunk/Crypto/testdata.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
9
2015-09-02T12:20:18.000Z
2021-10-05T16:03:10.000Z
# # testdata.py : Test data for the various algorithms # # Part of the Python Cryptography Toolkit # # Distribute and use freely; there are no restrictions on further # dissemination and usage except those imposed by the laws of your # country of residence. This software is provided "as is" without # warranty of fitness for use or suitability for any purpose, express # or implied. Use at your own risk or not at all. # # Data for encryption algorithms is saved as (key, plaintext, # ciphertext) tuples. Hashing algorithm test data is simply # (text, hashvalue) pairs. # MD2 validation data md2= [ ("", "8350e5a3e24c153df2275c9f80692773"), ("a", "32ec01ec4a6dac72c0ab96fb34c0b5d1"), ("abc", "da853b0d3f88d99b30283a69e6ded6bb"), ("message digest", "ab4f496bfb2a530b219ff33031fe06b0"), ("abcdefghijklmnopqrstuvwxyz", "4e8ddff3650292ab5a4108c3aa47940b"), ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "da33def2a42df13975352846c30338cd"), ("12345678901234567890123456789012345678901234567890123456789012345678901234567890", "d5976f79d83d3a0dc9806c3c66f3efd8") ] # MD4 validation data md4= [ ('', "31d6cfe0d16ae931b73c59d7e0c089c0"), ("a", "bde52cb31de33e46245e05fbdbd6fb24"), ("abc", "a448017aaf21d8525fc10ae87aa6729d"), ("message digest", "d9130a8164549fe818874806e1c7014b"), ("abcdefghijklmnopqrstuvwxyz", "d79e1c308aa5bbcdeea8ed63df412da9"), ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "043f8582f241db351ce627e153e7f0e4"), ("12345678901234567890123456789012345678901234567890123456789012345678901234567890", "e33b4ddc9c38f2199c3e7b164fcc0536"), ] # MD5 validation data md5= [ ('', "d41d8cd98f00b204e9800998ecf8427e"), ('a', "0cc175b9c0f1b6a831c399e269772661"), ('abc', "900150983cd24fb0d6963f7d28e17f72"), ('message digest', "f96b697d7cb7938d525a2f31aaf161d0"), ('abcdefghijklmnopqrstuvwxyz', "c3fcd3d76192e4007dfb496cca67e13b"), ('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', "d174ab98d277d9f5a5611c2c9f419d9f"), ('12345678901234567890123456789012345678901234567890123456789' '012345678901234567890', "57edf4a22be3c955ac49da2e2107b67a") ] # Test data for SHA, the Secure Hash Algorithm. sha = [ ('abc', "a9993e364706816aba3e25717850c26c9cd0d89d"), ('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq', "84983e441c3bd26ebaae4aa1f95129e5e54670f1"), (1000000 * 'a', '34aa973cd4c4daa4f61eeb2bdbad27316534016f'), ] sha256 = [ ('abc', "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"), ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"), ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", "cf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1"), ("Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate--we can not consecrate--we can not hallow--this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us--that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion--that we here highly resolve that these dead shall not have died in vain--that this nation, under God, shall have a new birth of freedom--and that government of the people, by the people, for the people, shall not perish from the earth. -- President Abraham Lincoln, November 19, 1863", "4d25fccf8752ce470a58cd21d90939b7eb25f3fa418dd2da4c38288ea561e600"), ("", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"), ("This is exactly 64 bytes long, not counting the terminating byte", "ab64eff7e88e2e46165e29f2bce41826bd4c7b3552f6b382a9e7d3af47c245f8"), ("For this sample, this 63-byte string will be used as input data", "f08a78cbbaee082b052ae0708f32fa1e50c5c421aa772ba5dbb406a2ea6be342"), ("And this textual data, astonishing as it may appear, is exactly 128 bytes in length, as are both SHA-384 and SHA-512 block sizes", "0ab803344830f92089494fb635ad00d76164ad6e57012b237722df0d7ad26896"), ("By hashing data that is one byte less than a multiple of a hash block length (like this 127-byte string), bugs may be revealed.", "e4326d0459653d7d3514674d713e74dc3df11ed4d30b4013fd327fdb9e394c26"), ("qwerty" * 65536, "5e3dfe0cc98fd1c2de2a9d2fd893446da43d290f2512200c515416313cdf3192"), ("Rijndael is AES" * 1024, "80fced5a97176a5009207cd119551b42c5b51ceb445230d02ecc2663bbfb483a"), (1000000 * 'a', 'cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0'), ] ripemd = [ ("", "9c1185a5c5e9fc54612808977ee8f548b2258d31"), ("a", "0bdc9d2d256b3ee9daae347be6f4dc835a467ffe"), ("abc", "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"), ("message digest", "5d0689ef49d2fae572b881b123a85ffa21595f36"), ("abcdefghijklmnopqrstuvwxyz", "f71c27109c692c1b56bbdceb5b9d2865b3708dbc"), ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "12a053384a9c0c88e405a06c27dcf49ada62eb2b"), ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "b0e20b6e3116640286ed3a87a5713079b21f5189"), (8 *"1234567890", "9b752e45573d4b39f4dbd3323cab82bf63326bfb"), (1000000 * 'a', "52783243c1697bdbe16d37f97f68f08325dc1528"), ] #Test data for SHA256 sha256 = [("abc", "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"), ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"), ("abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", "cf5b16a778af8380036ce59e7b0492370b249b11e8f07a51afac45037afee9d1"), ("Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we can not dedicate--we can not consecrate--we can not hallow--this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us--that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion--that we here highly resolve that these dead shall not have died in vain--that this nation, under God, shall have a new birth of freedom--and that government of the people, by the people, for the people, shall not perish from the earth. -- President Abraham Lincoln, November 19, 1863", "4d25fccf8752ce470a58cd21d90939b7eb25f3fa418dd2da4c38288ea561e600"), ("", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"), ("This is exactly 64 bytes long, not counting the terminating byte", "ab64eff7e88e2e46165e29f2bce41826bd4c7b3552f6b382a9e7d3af47c245f8"), ("For this sample, this 63-byte string will be used as input data", "f08a78cbbaee082b052ae0708f32fa1e50c5c421aa772ba5dbb406a2ea6be342"), ("And this textual data, astonishing as it may appear, is exactly 128 bytes in length, as are both SHA-384 and SHA-512 block sizes", "0ab803344830f92089494fb635ad00d76164ad6e57012b237722df0d7ad26896"), ("By hashing data that is one byte less than a multiple of a hash block length (like this 127-byte string), bugs may be revealed.", "e4326d0459653d7d3514674d713e74dc3df11ed4d30b4013fd327fdb9e394c26"), ("qwerty" * 65536, "5e3dfe0cc98fd1c2de2a9d2fd893446da43d290f2512200c515416313cdf3192"), ("Rijndael is AES" * 1024, "80fced5a97176a5009207cd119551b42c5b51ceb445230d02ecc2663bbfb483a"), ] sha256 = sha256[:1] # DES validation data # Key, IV, plaintext, ciphertext des_cbc= [('0123456789abcdef', 'fedcba9876543210', "7654321 Now is the time for \000\000\000\000", 'ccd173ffab2039f4acd8aefddfd8a1eb468e91157888ba681d269397f7fe62b4')] des = [ ('0000000000000000', '0000000000000000', '8CA64DE9C1B123A7'), ('FFFFFFFFFFFFFFFF', 'FFFFFFFFFFFFFFFF', '7359B2163E4EDC58'), ('3000000000000000', '1000000000000001', '958E6E627A05557B'), ('1111111111111111', '1111111111111111', 'F40379AB9E0EC533'), ('0123456789ABCDEF', '1111111111111111', '17668DFC7292532D'), ('1111111111111111', '0123456789ABCDEF', '8A5AE1F81AB8F2DD'), ('0000000000000000', '0000000000000000', '8CA64DE9C1B123A7'), ('FEDCBA9876543210', '0123456789ABCDEF', 'ED39D950FA74BCC4'), ('7CA110454A1A6E57', '01A1D6D039776742', '690F5B0D9A26939B'), ('0131D9619DC1376E', '5CD54CA83DEF57DA', '7A389D10354BD271'), ('07A1133E4A0B2686', '0248D43806F67172', '868EBB51CAB4599A'), ('3849674C2602319E', '51454B582DDF440A', '7178876E01F19B2A'), ('04B915BA43FEB5B6', '42FD443059577FA2', 'AF37FB421F8C4095'), ('0113B970FD34F2CE', '059B5E0851CF143A', '86A560F10EC6D85B'), ('0170F175468FB5E6', '0756D8E0774761D2', '0CD3DA020021DC09'), ('43297FAD38E373FE', '762514B829BF486A', 'EA676B2CB7DB2B7A'), ('07A7137045DA2A16', '3BDD119049372802', 'DFD64A815CAF1A0F'), ('04689104C2FD3B2F', '26955F6835AF609A', '5C513C9C4886C088'), ('37D06BB516CB7546', '164D5E404F275232', '0A2AEEAE3FF4AB77'), ('1F08260D1AC2465E', '6B056E18759F5CCA', 'EF1BF03E5DFA575A'), ('584023641ABA6176', '004BD6EF09176062', '88BF0DB6D70DEE56'), ('025816164629B007', '480D39006EE762F2', 'A1F9915541020B56'), ('49793EBC79B3258F', '437540C8698F3CFA', '6FBF1CAFCFFD0556'), ('4FB05E1515AB73A7', '072D43A077075292', '2F22E49BAB7CA1AC'), ('49E95D6D4CA229BF', '02FE55778117F12A', '5A6B612CC26CCE4A'), ('018310DC409B26D6', '1D9D5C5018F728C2', '5F4C038ED12B2E41'), ('1C587F1C13924FEF', '305532286D6F295A', '63FAC0D034D9F793'), ('0101010101010101', '0123456789ABCDEF', '617B3A0CE8F07100'), ('1F1F1F1F0E0E0E0E', '0123456789ABCDEF', 'DB958605F8C8C606'), ('E0FEE0FEF1FEF1FE', '0123456789ABCDEF', 'EDBFD1C66C29CCC7'), ('0000000000000000', 'FFFFFFFFFFFFFFFF', '355550B2150E2451'), ('FFFFFFFFFFFFFFFF', '0000000000000000', 'CAAAAF4DEAF1DBAE'), ('0123456789ABCDEF', '0000000000000000', 'D5D44FF720683D0D'), ('FEDCBA9876543210', 'FFFFFFFFFFFFFFFF', '2A2BB008DF97C2F2'), ('0101010101010101', '95F8A5E5DD31D900', '8000000000000000'), ('0101010101010101', 'DD7F121CA5015619', '4000000000000000'), ('0101010101010101', '2E8653104F3834EA', '2000000000000000'), ('0101010101010101', '4BD388FF6CD81D4F', '1000000000000000'), ('0101010101010101', '20B9E767B2FB1456', '0800000000000000'), ('0101010101010101', '55579380D77138EF', '0400000000000000'), ('0101010101010101', '6CC5DEFAAF04512F', '0200000000000000'), ('0101010101010101', '0D9F279BA5D87260', '0100000000000000'), ('0101010101010101', 'D9031B0271BD5A0A', '0080000000000000'), ('0101010101010101', '424250B37C3DD951', '0040000000000000'), ('0101010101010101', 'B8061B7ECD9A21E5', '0020000000000000'), ('0101010101010101', 'F15D0F286B65BD28', '0010000000000000'), ('0101010101010101', 'ADD0CC8D6E5DEBA1', '0008000000000000'), ('0101010101010101', 'E6D5F82752AD63D1', '0004000000000000'), ('0101010101010101', 'ECBFE3BD3F591A5E', '0002000000000000'), ('0101010101010101', 'F356834379D165CD', '0001000000000000'), ('0101010101010101', '2B9F982F20037FA9', '0000800000000000'), ('0101010101010101', '889DE068A16F0BE6', '0000400000000000'), ('0101010101010101', 'E19E275D846A1298', '0000200000000000'), ('0101010101010101', '329A8ED523D71AEC', '0000100000000000'), ('0101010101010101', 'E7FCE22557D23C97', '0000080000000000'), ('0101010101010101', '12A9F5817FF2D65D', '0000040000000000'), ('0101010101010101', 'A484C3AD38DC9C19', '0000020000000000'), ('0101010101010101', 'FBE00A8A1EF8AD72', '0000010000000000'), ('0101010101010101', '750D079407521363', '0000008000000000'), ('0101010101010101', '64FEED9C724C2FAF', '0000004000000000'), ('0101010101010101', 'F02B263B328E2B60', '0000002000000000'), ('0101010101010101', '9D64555A9A10B852', '0000001000000000'), ('0101010101010101', 'D106FF0BED5255D7', '0000000800000000'), ('0101010101010101', 'E1652C6B138C64A5', '0000000400000000'), ('0101010101010101', 'E428581186EC8F46', '0000000200000000'), ('0101010101010101', 'AEB5F5EDE22D1A36', '0000000100000000'), ('0101010101010101', 'E943D7568AEC0C5C', '0000000080000000'), ('0101010101010101', 'DF98C8276F54B04B', '0000000040000000'), ('0101010101010101', 'B160E4680F6C696F', '0000000020000000'), ('0101010101010101', 'FA0752B07D9C4AB8', '0000000010000000'), ('0101010101010101', 'CA3A2B036DBC8502', '0000000008000000'), ('0101010101010101', '5E0905517BB59BCF', '0000000004000000'), ('0101010101010101', '814EEB3B91D90726', '0000000002000000'), ('0101010101010101', '4D49DB1532919C9F', '0000000001000000'), ('0101010101010101', '25EB5FC3F8CF0621', '0000000000800000'), ('0101010101010101', 'AB6A20C0620D1C6F', '0000000000400000'), ('0101010101010101', '79E90DBC98F92CCA', '0000000000200000'), ('0101010101010101', '866ECEDD8072BB0E', '0000000000100000'), ('0101010101010101', '8B54536F2F3E64A8', '0000000000080000'), ('0101010101010101', 'EA51D3975595B86B', '0000000000040000'), ('0101010101010101', 'CAFFC6AC4542DE31', '0000000000020000'), ('0101010101010101', '8DD45A2DDF90796C', '0000000000010000'), ('0101010101010101', '1029D55E880EC2D0', '0000000000008000'), ('0101010101010101', '5D86CB23639DBEA9', '0000000000004000'), ('0101010101010101', '1D1CA853AE7C0C5F', '0000000000002000'), ('0101010101010101', 'CE332329248F3228', '0000000000001000'), ('0101010101010101', '8405D1ABE24FB942', '0000000000000800'), ('0101010101010101', 'E643D78090CA4207', '0000000000000400'), ('0101010101010101', '48221B9937748A23', '0000000000000200'), ('0101010101010101', 'DD7C0BBD61FAFD54', '0000000000000100'), ('0101010101010101', '2FBC291A570DB5C4', '0000000000000080'), ('0101010101010101', 'E07C30D7E4E26E12', '0000000000000040'), ('0101010101010101', '0953E2258E8E90A1', '0000000000000020'), ('0101010101010101', '5B711BC4CEEBF2EE', '0000000000000010'), ('0101010101010101', 'CC083F1E6D9E85F6', '0000000000000008'), ('0101010101010101', 'D2FD8867D50D2DFE', '0000000000000004'), ('0101010101010101', '06E7EA22CE92708F', '0000000000000002'), ('0101010101010101', '166B40B44ABA4BD6', '0000000000000001'), ('8001010101010101', '0000000000000000', '95A8D72813DAA94D'), ('4001010101010101', '0000000000000000', '0EEC1487DD8C26D5'), ('2001010101010101', '0000000000000000', '7AD16FFB79C45926'), ('1001010101010101', '0000000000000000', 'D3746294CA6A6CF3'), ('0801010101010101', '0000000000000000', '809F5F873C1FD761'), ('0401010101010101', '0000000000000000', 'C02FAFFEC989D1FC'), ('0201010101010101', '0000000000000000', '4615AA1D33E72F10'), ('0180010101010101', '0000000000000000', '2055123350C00858'), ('0140010101010101', '0000000000000000', 'DF3B99D6577397C8'), ('0120010101010101', '0000000000000000', '31FE17369B5288C9'), ('0110010101010101', '0000000000000000', 'DFDD3CC64DAE1642'), ('0108010101010101', '0000000000000000', '178C83CE2B399D94'), ('0104010101010101', '0000000000000000', '50F636324A9B7F80'), ('0102010101010101', '0000000000000000', 'A8468EE3BC18F06D'), ('0101800101010101', '0000000000000000', 'A2DC9E92FD3CDE92'), ('0101400101010101', '0000000000000000', 'CAC09F797D031287'), ('0101200101010101', '0000000000000000', '90BA680B22AEB525'), ('0101100101010101', '0000000000000000', 'CE7A24F350E280B6'), ('0101080101010101', '0000000000000000', '882BFF0AA01A0B87'), ('0101040101010101', '0000000000000000', '25610288924511C2'), ('0101020101010101', '0000000000000000', 'C71516C29C75D170'), ('0101018001010101', '0000000000000000', '5199C29A52C9F059'), ('0101014001010101', '0000000000000000', 'C22F0A294A71F29F'), ('0101012001010101', '0000000000000000', 'EE371483714C02EA'), ('0101011001010101', '0000000000000000', 'A81FBD448F9E522F'), ('0101010801010101', '0000000000000000', '4F644C92E192DFED'), ('0101010401010101', '0000000000000000', '1AFA9A66A6DF92AE'), ('0101010201010101', '0000000000000000', 'B3C1CC715CB879D8'), ('0101010180010101', '0000000000000000', '19D032E64AB0BD8B'), ('0101010140010101', '0000000000000000', '3CFAA7A7DC8720DC'), ('0101010120010101', '0000000000000000', 'B7265F7F447AC6F3'), ('0101010110010101', '0000000000000000', '9DB73B3C0D163F54'), ('0101010108010101', '0000000000000000', '8181B65BABF4A975'), ('0101010104010101', '0000000000000000', '93C9B64042EAA240'), ('0101010102010101', '0000000000000000', '5570530829705592'), ('0101010101800101', '0000000000000000', '8638809E878787A0'), ('0101010101400101', '0000000000000000', '41B9A79AF79AC208'), ('0101010101200101', '0000000000000000', '7A9BE42F2009A892'), ('0101010101100101', '0000000000000000', '29038D56BA6D2745'), ('0101010101080101', '0000000000000000', '5495C6ABF1E5DF51'), ('0101010101040101', '0000000000000000', 'AE13DBD561488933'), ('0101010101020101', '0000000000000000', '024D1FFA8904E389'), ('0101010101018001', '0000000000000000', 'D1399712F99BF02E'), ('0101010101014001', '0000000000000000', '14C1D7C1CFFEC79E'), ('0101010101012001', '0000000000000000', '1DE5279DAE3BED6F'), ('0101010101011001', '0000000000000000', 'E941A33F85501303'), ('0101010101010801', '0000000000000000', 'DA99DBBC9A03F379'), ('0101010101010401', '0000000000000000', 'B7FC92F91D8E92E9'), ('0101010101010201', '0000000000000000', 'AE8E5CAA3CA04E85'), ('0101010101010180', '0000000000000000', '9CC62DF43B6EED74'), ('0101010101010140', '0000000000000000', 'D863DBB5C59A91A0'), ('0101010101010120', '0000000000000000', 'A1AB2190545B91D7'), ('0101010101010110', '0000000000000000', '0875041E64C570F7'), ('0101010101010108', '0000000000000000', '5A594528BEBEF1CC'), ('0101010101010104', '0000000000000000', 'FCDB3291DE21F0C0'), ('0101010101010102', '0000000000000000', '869EFD7F9F265A09'), ('1046913489980131', '0000000000000000', '88D55E54F54C97B4'), ('1007103489988020', '0000000000000000', '0C0CC00C83EA48FD'), ('10071034C8980120', '0000000000000000', '83BC8EF3A6570183'), ('1046103489988020', '0000000000000000', 'DF725DCAD94EA2E9'), ('1086911519190101', '0000000000000000', 'E652B53B550BE8B0'), ('1086911519580101', '0000000000000000', 'AF527120C485CBB0'), ('5107B01519580101', '0000000000000000', '0F04CE393DB926D5'), ('1007B01519190101', '0000000000000000', 'C9F00FFC74079067'), ('3107915498080101', '0000000000000000', '7CFD82A593252B4E'), ('3107919498080101', '0000000000000000', 'CB49A2F9E91363E3'), ('10079115B9080140', '0000000000000000', '00B588BE70D23F56'), ('3107911598080140', '0000000000000000', '406A9A6AB43399AE'), ('1007D01589980101', '0000000000000000', '6CB773611DCA9ADA'), ('9107911589980101', '0000000000000000', '67FD21C17DBB5D70'), ('9107D01589190101', '0000000000000000', '9592CB4110430787'), ('1007D01598980120', '0000000000000000', 'A6B7FF68A318DDD3'), ('1007940498190101', '0000000000000000', '4D102196C914CA16'), ('0107910491190401', '0000000000000000', '2DFA9F4573594965'), ('0107910491190101', '0000000000000000', 'B46604816C0E0774'), ('0107940491190401', '0000000000000000', '6E7E6221A4F34E87'), ('19079210981A0101', '0000000000000000', 'AA85E74643233199'), ('1007911998190801', '0000000000000000', '2E5A19DB4D1962D6'), ('10079119981A0801', '0000000000000000', '23A866A809D30894'), ('1007921098190101', '0000000000000000', 'D812D961F017D320'), ('100791159819010B', '0000000000000000', '055605816E58608F'), ('1004801598190101', '0000000000000000', 'ABD88E8B1B7716F1'), ('1004801598190102', '0000000000000000', '537AC95BE69DA1E1'), ('1004801598190108', '0000000000000000', 'AED0F6AE3C25CDD8'), ('1002911598100104', '0000000000000000', 'B3E35A5EE53E7B8D'), ('1002911598190104', '0000000000000000', '61C79C71921A2EF8'), ('1002911598100201', '0000000000000000', 'E2F5728F0995013C'), ('1002911698100101', '0000000000000000', '1AEAC39A61F0A464'), ('7CA110454A1A6E57', '01A1D6D039776742', '690F5B0D9A26939B'), ('0131D9619DC1376E', '5CD54CA83DEF57DA', '7A389D10354BD271'), ('07A1133E4A0B2686', '0248D43806F67172', '868EBB51CAB4599A'), ('3849674C2602319E', '51454B582DDF440A', '7178876E01F19B2A'), ('04B915BA43FEB5B6', '42FD443059577FA2', 'AF37FB421F8C4095'), ('0113B970FD34F2CE', '059B5E0851CF143A', '86A560F10EC6D85B'), ('0170F175468FB5E6', '0756D8E0774761D2', '0CD3DA020021DC09'), ('43297FAD38E373FE', '762514B829BF486A', 'EA676B2CB7DB2B7A'), ('07A7137045DA2A16', '3BDD119049372802', 'DFD64A815CAF1A0F'), ('04689104C2FD3B2F', '26955F6835AF609A', '5C513C9C4886C088'), ('37D06BB516CB7546', '164D5E404F275232', '0A2AEEAE3FF4AB77'), ('1F08260D1AC2465E', '6B056E18759F5CCA', 'EF1BF03E5DFA575A'), ('584023641ABA6176', '004BD6EF09176062', '88BF0DB6D70DEE56'), ('025816164629B007', '480D39006EE762F2', 'A1F9915541020B56'), ('49793EBC79B3258F', '437540C8698F3CFA', '6FBF1CAFCFFD0556'), ('4FB05E1515AB73A7', '072D43A077075292', '2F22E49BAB7CA1AC'), ('49E95D6D4CA229BF', '02FE55778117F12A', '5A6B612CC26CCE4A'), ('018310DC409B26D6', '1D9D5C5018F728C2', '5F4C038ED12B2E41'), ('1C587F1C13924FEF', '305532286D6F295A', '63FAC0D034D9F793') ] # Test data for Alleged RC4 arc4 = [ ('0000000000000000', '0000000000000000', 'de188941a3375d3a'), ('0123456789abcdef', '0123456789abcdef', '75b7878099e0c596'), ('0123456789abcdef', '0000000000000000', '7494c2e7104b0879'), ('ef012345', '00000000000000000000', 'd6a141a7ec3c38dfbd61') ] # Test data for IDEA idea = [('00010002000300040005000600070008', '0000000100020003', '11fbed2b01986de5'), ('00010002000300040005000600070008', '0102030405060708', '540E5FEA18C2F8B1'), ('00010002000300040005000600070008', '0019324B647D96AF', '9F0A0AB6E10CED78'), ('00010002000300040005000600070008', 'F5202D5B9C671B08', 'CF18FD7355E2C5C5'), ('00010002000300040005000600070008', 'FAE6D2BEAA96826E', '85DF52005608193D'), ('00010002000300040005000600070008', '0A141E28323C4650', '2F7DE750212FB734'), ('00010002000300040005000600070008', '050A0F14191E2328', '7B7314925DE59C09'), ('0005000A000F00140019001E00230028', '0102030405060708', '3EC04780BEFF6E20'), ('3A984E2000195DB32EE501C8C47CEA60', '0102030405060708', '97BCD8200780DA86'), ('006400C8012C019001F4025802BC0320', '05320A6414C819FA', '65BE87E7A2538AED'), ('9D4075C103BC322AFB03E7BE6AB30006', '0808080808080808', 'F5DB1AC45E5EF9F9') ]; # Test data for RC5 rc5 = [('10200c1000000000000000000000000000000000', '0000000000000000', '21A5DBEE154B8F6D'), ('10200c10915F4619BE41B2516355A50110A9CE91', '21A5DBEE154B8F6D', 'F7C013AC5B2B8952'), ('10200c10783348E75AEB0F2FD7B169BB8DC16787', 'F7C013AC5B2B8952', '2F42B3B70369FC92'), ('10200c10DC49DB1375A5584F6485B413B5F12BAF', '2F42B3B70369FC92', '65C178B284D197CC'), ('10200c105269F149D41BA0152497574D7F153125', '65C178B284D197CC', 'EB44E415DA319824') ] # Test data for ARC2 arc2 = [ ('5068696c6970476c617373', '0000000000000000', '624fb3e887419e48'), ('5068696c6970476c617373', 'ffffffffffffffff', '79cadef44c4a5a85'), ('5068696c6970476c617373', '0001020304050607', '90411525b34e4c2c'), ('5068696c6970476c617373', '0011223344556677', '078656aaba61cbfb'), ('ffffffffffffffff', '0000000000000000', 'd7bcc5dbb4d6e56a'), ('ffffffffffffffff', 'ffffffffffffffff', '7259018ec557b357'), ('ffffffffffffffff', '0001020304050607', '93d20a497f2ccb62'), ('ffffffffffffffff', '0011223344556677', 'cb15a7f819c0014d'), ('ffffffffffffffff5065746572477265656e6177617953e5ffe553', '0000000000000000', '63ac98cdf3843a7a'), ('ffffffffffffffff5065746572477265656e6177617953e5ffe553', 'ffffffffffffffff', '3fb49e2fa12371dd'), ('ffffffffffffffff5065746572477265656e6177617953e5ffe553', '0001020304050607', '46414781ab387d5f'), ('ffffffffffffffff5065746572477265656e6177617953e5ffe553', '0011223344556677', 'be09dc81feaca271'), ('53e5ffe553', '0000000000000000', 'e64221e608be30ab'), ('53e5ffe553', 'ffffffffffffffff', '862bc60fdcd4d9a9'), ('53e5ffe553', '0001020304050607', '6a34da50fa5e47de'), ('53e5ffe553', '0011223344556677', '584644c34503122c'), ] # Test data for Blowfish blowfish = [('6162636465666768696a6b6c6d6e6f707172737475767778797a', '424c4f5746495348', '324ed0fef413a203'), ('57686f206973204a6f686e2047616c743f', 'fedcba9876543210', 'cc91732b8022f684') ] # Test data for DES3 des3_cbc=[] des3= [('0123456789abcdeffedcba9876543210', '0123456789abcde7', '7f1d0a77826b8aff'), ] # The DES test data can also be used to construct DES3 test data. for key, iv, plain, cipher in des_cbc: des3_cbc.append((key*3, iv, plain, cipher)) for key, plain, cipher in des: des3.append((key*3, plain, cipher)) # Test data for CAST _castkey = '0123456712345678234567893456789A' _castdata = '0123456789ABCDEF' cast = [(_castkey, _castdata, '238B4FE5847E44B2'), (_castkey[:10*2], _castdata, 'EB6A711A2C02271B'), (_castkey[: 5*2], _castdata, '7AC816D16E9B302E'), ] # Test data for XOR xor = [] # Test data for AES aes = [# 128-bit key ('000102030405060708090A0B0C0D0E0F', '00112233445566778899AABBCCDDEEFF', '69C4E0D86A7B0430D8CDB78070B4C55A'), # 192-bit key ('000102030405060708090A0B0C0D0E0F1011121314151617', '00112233445566778899AABBCCDDEEFF', 'DDA97CA4864CDFE06EAF70A0EC0D7191'), # 256-bit key ('000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F', '00112233445566778899AABBCCDDEEFF', '8EA2B7CA516745BFEAFC49904B496089'), ] # Test data for AES modes, from NIST SP800-38A from Crypto.Cipher import AES counter_blocks = ['\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff', '\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xff\x00', '\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xff\x01', '\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xff\x02' ] class ctr: def __init__ (self): self.index = 0 def __call__ (self): block = counter_blocks[self.index] self.index = (self.index+1) % len(counter_blocks) return block aes_modes = [ (AES.MODE_CBC, '2b7e151628aed2a6abf7158809cf4f3c', ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('7649abac8119b246cee98e9b12e9197d' '5086cb9b507219ee95db113a917678b2' '73bed6b8e3c1743b7116e69e22229516' '3ff1caa1681fac09120eca307586e1a7' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_CBC, '8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b', ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('4f021db243bc633d7178183a9fa071e8' 'b4d9ada9ad7dedf4e5e738763f69145a' '571b242012fb7ae07fa9baac3df102e0' '08b0e27988598881d920a9e64f5615cd' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_CBC, ('603deb1015ca71be2b73aef0857d7781' '1f352c073b6108d72d9810a30914dff4' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('f58c4c04d6e5f1ba779eabfb5f7bfbd6' '9cfc4e967edb808d679f777bc6702c7d' '39f23369a9d9bacfa530e26304231461' 'b2eb05e2c39be9fcda6c19078c6a9d1b' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_OFB, ('2b7e151628aed2a6abf7158809cf4f3c' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('3b3fd92eb72dad20333449f8e83cfb4a' '7789508d16918f03f53c52dac54ed825' '9740051e9c5fecf64344f7a82260edcc' '304c6528f659c77866a510d9c1d6ae5e' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_OFB, ('8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('cdc80d6fddf18cab34c25909c99a4174' 'fcc28b8d4c63837c09e81700c1100401' '8d9a9aeac0f6596f559c6d4daf59a5f2' '6d9f200857ca6c3e9cac524bd9acc92a' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_OFB, ('603deb1015ca71be2b73aef0857d7781' '1f352c073b6108d72d9810a30914dff4' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('dc7e84bfda79164b7ecd8486985d3860' '4febdc6740d20b3ac88f6ad82a4fb08d' '71ab47a086e86eedf39d1c5bba97c408' '0126141d67f37be8538f5a8be740e484' ), {'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'} ), (AES.MODE_CTR, ('2b7e151628aed2a6abf7158809cf4f3c' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('874d6191b620e3261bef6864990db6ce' '9806f66b7970fdff8617187bb9fffdff' '5ae4df3edbd5d35e5b4f09020db03eab' '1e031dda2fbe03d1792170a0f3009cee' ), {'counter':ctr()} ), (AES.MODE_CTR, ('8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('1abc932417521ca24f2b0459fe7e6e0b' '090339ec0aa6faefd5ccc2c6f4ce8e94' '1e36b26bd1ebc670d1bd1d665620abf7' '4f78a7f6d29809585a97daec58c6b050' ), {'counter':ctr()} ), (AES.MODE_CTR, ('603deb1015ca71be2b73aef0857d7781' '1f352c073b6108d72d9810a30914dff4' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ('601ec313775789a5b7a7f504bbf3d228' 'f443e3ca4d62b59aca84e990cacaf5c5' '2b0930daa23de94ce87017ba2d84988d' 'dfc9c58db67aada613c2dd08457941a6' ), {'counter':ctr()} ), (AES.MODE_CFB, '2b7e151628aed2a6abf7158809cf4f3c', '6bc1bee22e409f96e93d7e117393172aae2d', '3b79424c9c0dd436bace9e0ed4586a4f32b9', {'segment_size':8, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), (AES.MODE_CFB, '8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b', '6bc1bee22e409f96e93d7e117393172aae2d', 'cda2521ef0a905ca44cd057cbf0d47a0678a', {'segment_size':8, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), (AES.MODE_CFB, ('603deb1015ca71be2b73aef0857d7781' '1f352c073b6108d72d9810a30914dff4' ), '6bc1bee22e409f96e93d7e117393172aae2d', 'dc1f1a8520a64db55fcc8ac554844e889700', {'segment_size':8, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), (AES.MODE_CFB, ('2b7e151628aed2a6abf7158809cf4f3c' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ( '3b3fd92eb72dad20333449f8e83cfb4a' 'c8a64537a0b3a93fcde3cdad9f1ce58b' '26751f67a3cbb140b1808cf187a4f4df' 'c04b05357c5d1c0eeac4c66f9ff7f2e6' ), {'segment_size':128, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), (AES.MODE_CFB, ('8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ( 'cdc80d6fddf18cab34c25909c99a4174' '67ce7f7f81173621961a2b70171d3d7a' '2e1e8a1dd59b88b1c8e60fed1efac4c9' 'c05f9f9ca9834fa042ae8fba584b09ff' ), {'segment_size':128, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), (AES.MODE_CFB, ('603deb1015ca71be2b73aef0857d7781' '1f352c073b6108d72d9810a30914dff4' ), ('6bc1bee22e409f96e93d7e117393172a' 'ae2d8a571e03ac9c9eb76fac45af8e51' '30c81c46a35ce411e5fbc1191a0a52ef' 'f69f2445df4f9b17ad2b417be66c3710' ), ( 'dc7e84bfda79164b7ecd8486985d3860' '39ffed143b28b1c832113c6331e5407b' 'df10132415e54b92a13ed0a8267ae2f9' '75a385741ab9cef82031623d55b1e471' ), {'segment_size':128, 'IV':'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f', } ), ]
52.168622
1,527
0.729813
2,315
35,579
11.196976
0.390929
0.004938
0.005941
0.059257
0.387254
0.359786
0.31596
0.301146
0.301146
0.301146
0
0.497412
0.147615
35,579
681
1,528
52.245228
0.357305
0.029399
0
0.378965
0
0.036728
0.740521
0.292846
0
0
0
0
0
1
0.003339
false
0
0.001669
0
0.008347
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7bb0c720394fe7367ba657c41931acefc6b77063
74
py
Python
src/app/cbt/__init__.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
src/app/cbt/__init__.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
src/app/cbt/__init__.py
simondorfman/hello_cb_pro
cdb96ee1390d22753630e24dac9bfdc5e47e788d
[ "MIT" ]
null
null
null
# safer environment loading from dotenv import load_dotenv load_dotenv()
14.8
30
0.824324
10
74
5.9
0.7
0.338983
0
0
0
0
0
0
0
0
0
0
0.135135
74
4
31
18.5
0.921875
0.337838
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
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
1
0
0
0
0
5
c876ff1d570ed84e71b6529347401058e213d929
91
py
Python
legacymigrations/models.py
onepercentclub/django-legacymigrations
b4e7b8229abf81754bbe328487e9b46c5fd011a0
[ "BSD-3-Clause" ]
null
null
null
legacymigrations/models.py
onepercentclub/django-legacymigrations
b4e7b8229abf81754bbe328487e9b46c5fd011a0
[ "BSD-3-Clause" ]
null
null
null
legacymigrations/models.py
onepercentclub/django-legacymigrations
b4e7b8229abf81754bbe328487e9b46c5fd011a0
[ "BSD-3-Clause" ]
null
null
null
from django.db import models # This module exists just to allow Django to import this app.
30.333333
61
0.791209
16
91
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.175824
91
3
61
30.333333
0.96
0.648352
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
1
0
0
5
c89f21ad362540ed1dcc15f274b4f884ad95612e
19
py
Python
dbt/adapters/presto/__version__.py
whisperstream/dbt-presto
663c5d2746bfc4766dbf48975abcc1b4a47530ce
[ "Apache-2.0" ]
null
null
null
dbt/adapters/presto/__version__.py
whisperstream/dbt-presto
663c5d2746bfc4766dbf48975abcc1b4a47530ce
[ "Apache-2.0" ]
null
null
null
dbt/adapters/presto/__version__.py
whisperstream/dbt-presto
663c5d2746bfc4766dbf48975abcc1b4a47530ce
[ "Apache-2.0" ]
null
null
null
version = '0.17.2'
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
c8a6e2f3f333e680fe453f4e7e39951c93613e42
99
py
Python
PytorchRouting/CoreLayers/__init__.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
63
2018-07-19T20:12:55.000Z
2022-03-31T14:59:37.000Z
PytorchRouting/CoreLayers/__init__.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
2
2019-08-08T18:28:13.000Z
2019-09-24T16:46:22.000Z
PytorchRouting/CoreLayers/__init__.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
16
2018-07-25T05:56:51.000Z
2021-01-09T02:47:05.000Z
from .Initialization import Initialization from .Loss import Loss from .Selection import Selection
24.75
42
0.848485
12
99
7
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.121212
99
3
43
33
0.965517
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c8a7a0abce99ea2879404efadc38e14b731620ee
941
py
Python
tests/test_Extractor.py
DeqianBai/Automatically-extract-news-person-speech
77e784a01112561b64d6dd3ed3cb055f9fef1d36
[ "MIT" ]
8
2019-09-29T06:49:18.000Z
2021-05-31T12:30:12.000Z
tests/test_Extractor.py
DeqianBai/-
77e784a01112561b64d6dd3ed3cb055f9fef1d36
[ "MIT" ]
null
null
null
tests/test_Extractor.py
DeqianBai/-
77e784a01112561b64d6dd3ed3cb055f9fef1d36
[ "MIT" ]
6
2019-10-13T12:17:22.000Z
2021-12-07T01:33:04.000Z
import pytest from flaskr.extractor import SIFExtractor, SpeckExtractor @pytest.mark.parametrize("sentence", [ '近日,腾讯原副总裁吴军接受《头条有约》采访时表示,腾讯从来没有To B的基因。', '一位路人告诉记者,“没人认出他们俩”。', '声明中指出,示威者于8月12及13日围堵机场的行为,已对香港国际机场的声誉和经济造成严重损害,更带来不可估量的损失。', '陈恒当地时间5日指出,对于许多分散在美东各州的乡亲来说,纽约因为便利生活而成为他们的“故乡”', '谷歌之所以说有时候发展不行,跟这个CEO(桑达尔˙皮查伊)平庸也有很大的关系。' ]) def test_sif_extractor(sif_model, say_words, sentence): extractor = SIFExtractor(sif_model, say_words) print(extractor.extract(sentence)) @pytest.mark.parametrize("sentence", [ '近日,腾讯原副总裁吴军接受《头条有约》采访时表示,腾讯从来没有To B的基因。', '一位路人告诉记者,“没人认出他们俩”。', '声明中指出,示威者于8月12及13日围堵机场的行为,已对香港国际机场的声誉和经济造成严重损害,更带来不可估量的损失。', '陈恒当地时间5日指出,对于许多分散在美东各州的乡亲来说,纽约因为便利生活而成为他们的“故乡”', '谷歌之所以说有时候发展不行,跟这个CEO(桑达尔˙皮查伊)平庸也有很大的关系。' ]) def test_speck_extractor(speck_model, say_words, sentence): extractor = SpeckExtractor(speck_model, say_words) print(extractor.extract(sentence))
33.607143
65
0.75983
98
941
7.193878
0.418367
0.04539
0.073759
0.08227
0.814184
0.729078
0.729078
0.609929
0.609929
0.609929
0
0.014337
0.110521
941
27
66
34.851852
0.825568
0
0
0.727273
0
0
0.444208
0.37407
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.090909
0
0
0
null
0
0
0
1
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
5
cdbe865dc5a3908104e41393a83b3d59672297ac
134
py
Python
applications/medical_history/admin.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
null
null
null
applications/medical_history/admin.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
8
2020-08-17T14:36:02.000Z
2022-03-12T00:33:50.000Z
applications/medical_history/admin.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
null
null
null
from django.contrib import admin from applications.medical_history.models import MedicalHistory admin.site.register(MedicalHistory)
22.333333
62
0.865672
16
134
7.1875
0.75
0
0
0
0
0
0
0
0
0
0
0
0.08209
134
5
63
26.8
0.934959
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
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
1
0
1
0
1
0
0
5
cded1b3d5aa68b148c4bba6771e25c62e3553ad8
438
py
Python
app/requests/meals.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
null
null
null
app/requests/meals.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
null
null
null
app/requests/meals.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
2
2018-10-01T17:45:19.000Z
2020-12-07T13:48:25.000Z
from .base import JsonRequest class PostRequest(JsonRequest): @staticmethod def rules(): return { 'name': 'required|alpha|unique:Meal,name', 'cost': 'required|positive', 'img_url': 'url', } class PutRequest(JsonRequest): @staticmethod def rules(): return { 'name': 'alpha', 'cost': 'positive', 'img_url': 'url', }
19.909091
54
0.506849
37
438
5.945946
0.540541
0.209091
0.236364
0.281818
0.372727
0.372727
0
0
0
0
0
0
0.356164
438
21
55
20.857143
0.780142
0
0
0.470588
0
0
0.221461
0.070776
0
0
0
0
0
1
0.117647
true
0
0.058824
0.117647
0.411765
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
1
0
0
1
0
0
0
5
cdefeb7a431342dd0183fe9bce4eaeab8eea476d
211
py
Python
pages/__init__.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
1
2022-03-25T08:45:38.000Z
2022-03-25T08:45:38.000Z
pages/__init__.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
null
null
null
pages/__init__.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
null
null
null
from .home import Home from .snapshot import Snapshot from .backtest import Backtest from .forecast import Forecast from .strategy import Strategy from .portfolio import Portfolio from .analysis import Analysis
26.375
32
0.834123
28
211
6.285714
0.321429
0
0
0
0
0
0
0
0
0
0
0
0.132701
211
7
33
30.142857
0.961749
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a82484fe3d5c3ddbaa3c9c1eb941eeea9ede8f22
157
py
Python
contact/templatetags/contact_tags.py
shukranjs/E-commerce-project
047a509c78d9dc9ba65910349383df1e3d7228bd
[ "MIT" ]
2
2021-07-07T07:19:44.000Z
2021-08-19T19:20:14.000Z
contact/templatetags/contact_tags.py
Emrahgs/E-commerce-project
4c0ee3444701c3c1782e6b6cf75b7c63aee32371
[ "MIT" ]
null
null
null
contact/templatetags/contact_tags.py
Emrahgs/E-commerce-project
4c0ee3444701c3c1782e6b6cf75b7c63aee32371
[ "MIT" ]
null
null
null
from django import template from contact.forms import ContactForm register = template.Library() @register.simple_tag def get_form(): return ContactForm
19.625
37
0.802548
20
157
6.2
0.75
0
0
0
0
0
0
0
0
0
0
0
0.133758
157
8
38
19.625
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
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
1
1
0
0
5
a8306ee9b5b94d350704bc72c53353c737ef2ffb
42
py
Python
tests/__init__.py
dcopm999/cppexport_py
2479b1fbb4b37a546d4b184b16e6c669455b5cdf
[ "MIT" ]
null
null
null
tests/__init__.py
dcopm999/cppexport_py
2479b1fbb4b37a546d4b184b16e6c669455b5cdf
[ "MIT" ]
null
null
null
tests/__init__.py
dcopm999/cppexport_py
2479b1fbb4b37a546d4b184b16e6c669455b5cdf
[ "MIT" ]
null
null
null
"""Unit test package for cppexport_py."""
21
41
0.714286
6
42
4.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.783784
0.833333
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
b52457dba5fb634b8ee1d183ad6b1a1e84690ff2
58
py
Python
ejercicios/f20211116/ejercicio_02.py
LMedina96/codo_a_codo_1124_equipo5
f5de71628e51d71367de533c1455cccbe1099dac
[ "MIT" ]
null
null
null
ejercicios/f20211116/ejercicio_02.py
LMedina96/codo_a_codo_1124_equipo5
f5de71628e51d71367de533c1455cccbe1099dac
[ "MIT" ]
null
null
null
ejercicios/f20211116/ejercicio_02.py
LMedina96/codo_a_codo_1124_equipo5
f5de71628e51d71367de533c1455cccbe1099dac
[ "MIT" ]
4
2021-11-17T17:27:45.000Z
2021-11-17T17:34:21.000Z
def myfunction(string): return string[:100].swapcase()
29
34
0.724138
7
58
6
0.857143
0
0
0
0
0
0
0
0
0
0
0.058824
0.12069
58
2
34
29
0.764706
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
5
b567ddb97499c699fb0a771fc9011a3e67f22ce4
22
py
Python
tccli/services/mdp/v20200527/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
null
null
null
tccli/services/mdp/v20200527/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
1
2022-02-07T13:39:09.000Z
2022-02-07T13:39:09.000Z
tccli/services/mdp/v20200527/__init__.py
ivandksun/tencentcloud-cli-intl-en
41b84e339918961b8bc92f7498e56347d21e16d3
[ "Apache-2.0" ]
4
2020-07-20T01:51:58.000Z
2021-08-13T08:25:22.000Z
version = "2020-05-27"
22
22
0.681818
4
22
3.75
1
0
0
0
0
0
0
0
0
0
0
0.4
0.090909
22
1
22
22
0.35
0
0
0
0
0
0.434783
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
b5813db2d11fe7f8d344ab35b68b7517f6e6c147
90
py
Python
schema_registry/serializers/__init__.py
marcosschroh/async-python-schema-registry-client
e3b00f9dd4aa004c314e71ffa9a1a3e2288bd5ee
[ "MIT" ]
7
2019-07-25T08:07:28.000Z
2021-08-21T10:23:46.000Z
schema_registry/serializers/__init__.py
marcosschroh/async-python-schema-registry-client
e3b00f9dd4aa004c314e71ffa9a1a3e2288bd5ee
[ "MIT" ]
7
2019-11-03T10:41:23.000Z
2020-07-21T09:17:43.000Z
schema_registry/serializers/__init__.py
marcosschroh/async-python-schema-registry-client
e3b00f9dd4aa004c314e71ffa9a1a3e2288bd5ee
[ "MIT" ]
2
2019-10-10T09:26:14.000Z
2020-04-03T07:29:38.000Z
from schema_registry.serializers.message_serializer import MessageSerializer # noqa F401
45
89
0.877778
10
90
7.7
1
0
0
0
0
0
0
0
0
0
0
0.036585
0.088889
90
1
90
90
0.902439
0.1
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
1
0
0
5
b58613c50aaf80d98264c8587d9457f7e636f330
25
py
Python
rectangle/__init__.py
NeilGirdhar/rectangle
e4b930df371615da2ce7418276c45b0cf1059ecf
[ "MIT" ]
null
null
null
rectangle/__init__.py
NeilGirdhar/rectangle
e4b930df371615da2ce7418276c45b0cf1059ecf
[ "MIT" ]
null
null
null
rectangle/__init__.py
NeilGirdhar/rectangle
e4b930df371615da2ce7418276c45b0cf1059ecf
[ "MIT" ]
null
null
null
from .rectangle import *
12.5
24
0.76
3
25
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.904762
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
b59becfc424cdb07339e956103248c5686ab1df8
113
py
Python
planex/cms_site/models/__init__.py
octue/planex-cms
9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60
[ "MIT" ]
null
null
null
planex/cms_site/models/__init__.py
octue/planex-cms
9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60
[ "MIT" ]
1
2021-01-12T18:13:21.000Z
2021-01-12T18:13:21.000Z
planex/cms_site/models/__init__.py
octue/planex-cms
9ec17dccd174bf99ffcd9b46ac4f6f7c37200d60
[ "MIT" ]
null
null
null
from .pages import PageSectionsOrderable, SectionsPage # noqa: F401 from .sections import Section # noqa: F401
37.666667
68
0.787611
13
113
6.846154
0.692308
0.179775
0
0
0
0
0
0
0
0
0
0.0625
0.150442
113
2
69
56.5
0.864583
0.185841
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
1
0
0
5
a90af8a7a20de02c7c742fec61c8c8a6f482295f
73
py
Python
schema229/__init__.py
open229/ruleset-model-description-schema
0c6755a6ebc761b7b58960472df8cd073d8e6773
[ "Apache-2.0" ]
4
2021-04-19T19:47:33.000Z
2022-02-14T21:18:45.000Z
schema229/__init__.py
open229/ruleset-model-report-schema
5f0aa324c70b364e76df65ac8596c885f7a21008
[ "Apache-2.0" ]
78
2021-04-14T22:59:52.000Z
2022-03-16T23:19:07.000Z
schema229/__init__.py
open229/ruleset-model-description-schema
0c6755a6ebc761b7b58960472df8cd073d8e6773
[ "Apache-2.0" ]
1
2021-06-02T04:01:07.000Z
2021-06-02T04:01:07.000Z
from .file_io import * from .schema import A229Schema from .util import *
24.333333
30
0.780822
11
73
5.090909
0.636364
0
0
0
0
0
0
0
0
0
0
0.048387
0.150685
73
3
31
24.333333
0.854839
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5