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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae8717cc6ec7a31e75cba01c1fc914a4ff1f64a2
| 495
|
py
|
Python
|
src/finitestate/firmware/schemas/schema_vulnerability_statistics.py
|
FiniteStateInc/clearcode-toolkit
|
521c3a2ab9d9fa6d7b9059227c6af9d09b031c33
|
[
"Apache-2.0"
] | null | null | null |
src/finitestate/firmware/schemas/schema_vulnerability_statistics.py
|
FiniteStateInc/clearcode-toolkit
|
521c3a2ab9d9fa6d7b9059227c6af9d09b031c33
|
[
"Apache-2.0"
] | null | null | null |
src/finitestate/firmware/schemas/schema_vulnerability_statistics.py
|
FiniteStateInc/clearcode-toolkit
|
521c3a2ab9d9fa6d7b9059227c6af9d09b031c33
|
[
"Apache-2.0"
] | 1
|
2020-12-22T16:51:40.000Z
|
2020-12-22T16:51:40.000Z
|
import pyspark.sql.types
vulnerability_statistics_parquet_schema = pyspark.sql.types.StructType([
pyspark.sql.types.StructField('firmware_hash', pyspark.sql.types.StringType()),
pyspark.sql.types.StructField('low', pyspark.sql.types.IntegerType()),
pyspark.sql.types.StructField('medium', pyspark.sql.types.IntegerType()),
pyspark.sql.types.StructField('high', pyspark.sql.types.IntegerType()),
pyspark.sql.types.StructField('critical', pyspark.sql.types.IntegerType()),
])
| 49.5
| 83
| 0.763636
| 58
| 495
| 6.448276
| 0.310345
| 0.320856
| 0.481283
| 0.347594
| 0.417112
| 0.417112
| 0.417112
| 0.417112
| 0
| 0
| 0
| 0
| 0.074747
| 495
| 9
| 84
| 55
| 0.816594
| 0
| 0
| 0
| 0
| 0
| 0.068687
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0
| 0
| 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
| 4
|
ae9e852012b81c1910c630ba4842ed252806260a
| 85
|
py
|
Python
|
ensureTaskCanceled/__init__.py
|
monk-after-90s/ensureTaskCanceled
|
e52505ec7c84f9233a41d77c8752e8184a50b989
|
[
"MIT"
] | null | null | null |
ensureTaskCanceled/__init__.py
|
monk-after-90s/ensureTaskCanceled
|
e52505ec7c84f9233a41d77c8752e8184a50b989
|
[
"MIT"
] | null | null | null |
ensureTaskCanceled/__init__.py
|
monk-after-90s/ensureTaskCanceled
|
e52505ec7c84f9233a41d77c8752e8184a50b989
|
[
"MIT"
] | null | null | null |
from .ensureTaskCanceled import ensureTaskCanceled
__all__ = ['ensureTaskCanceled']
| 21.25
| 50
| 0.835294
| 6
| 85
| 11.166667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094118
| 85
| 3
| 51
| 28.333333
| 0.87013
| 0
| 0
| 0
| 0
| 0
| 0.211765
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
8826763327a42b25a4040f797a59c9d38d3e35b6
| 885
|
py
|
Python
|
epm_client/models/__init__.py
|
tub-elastest/epm-client-python
|
4e708a7e8c80334337d2f05c0baec46fdd581b8f
|
[
"Apache-2.0"
] | 1
|
2019-05-23T12:51:18.000Z
|
2019-05-23T12:51:18.000Z
|
epm_client/models/__init__.py
|
tub-elastest/epm-client-python
|
4e708a7e8c80334337d2f05c0baec46fdd581b8f
|
[
"Apache-2.0"
] | null | null | null |
epm_client/models/__init__.py
|
tub-elastest/epm-client-python
|
4e708a7e8c80334337d2f05c0baec46fdd581b8f
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
EPM REST API
REST API description of the ElasTest Platform Manager Module.
OpenAPI spec version: 0.1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model package
from .adapter import Adapter
from .command_execution_body import CommandExecutionBody
from .event import Event
from .file_download_body import FileDownloadBody
from .file_upload_body import FileUploadBody
from .key import Key
from .key_value_pair import KeyValuePair
from .network import Network
from .po_p import PoP
from .resource_group import ResourceGroup
from .vdu import VDU
from .worker import Worker
from .worker_from_vdu import WorkerFromVDU
from .cluster import Cluster
from .cluster_from_resource_group import ClusterFromResourceGroup
from .auth_credentials import AuthCredentials
| 26.818182
| 68
| 0.813559
| 121
| 885
| 5.77686
| 0.53719
| 0.042918
| 0.048641
| 0.065808
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005263
| 0.141243
| 885
| 32
| 69
| 27.65625
| 0.914474
| 0.246328
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
882f892e4424e95e6e12c7299a283704b75ceda8
| 47
|
py
|
Python
|
src/test.py
|
MihirMehta5695/Bengaluru-House-Price-data
|
86f5b17da36c30f3ab32f8583d44a28b78ca57e2
|
[
"MIT"
] | null | null | null |
src/test.py
|
MihirMehta5695/Bengaluru-House-Price-data
|
86f5b17da36c30f3ab32f8583d44a28b78ca57e2
|
[
"MIT"
] | null | null | null |
src/test.py
|
MihirMehta5695/Bengaluru-House-Price-data
|
86f5b17da36c30f3ab32f8583d44a28b78ca57e2
|
[
"MIT"
] | null | null | null |
import numpy
hello='Hello World!'
print(hello)
| 11.75
| 20
| 0.765957
| 7
| 47
| 5.142857
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 47
| 3
| 21
| 15.666667
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
88605e62dbf0ba78d17e9194d30cc72431614a4a
| 160
|
py
|
Python
|
gama/dashboard/pages/__init__.py
|
learsi1911/GAMA_pygmo_v4
|
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
|
[
"Apache-2.0"
] | 49
|
2018-10-22T06:05:29.000Z
|
2021-09-07T20:12:36.000Z
|
gama/dashboard/pages/__init__.py
|
learsi1911/GAMA_pygmo_v4
|
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
|
[
"Apache-2.0"
] | 102
|
2018-10-02T12:00:47.000Z
|
2021-02-24T14:35:30.000Z
|
gama/dashboard/pages/__init__.py
|
learsi1911/GAMA_pygmo_v4
|
459807db352dd1c9f9c1e0e322f8c1e9b5abbca0
|
[
"Apache-2.0"
] | 11
|
2021-06-04T11:56:19.000Z
|
2022-03-21T20:21:15.000Z
|
from .homepage import HomePage
from .runningpage import RunningPage
from .analysispage import AnalysisPage
pages = [HomePage(), RunningPage(), AnalysisPage()]
| 26.666667
| 51
| 0.8
| 16
| 160
| 8
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1125
| 160
| 5
| 52
| 32
| 0.901408
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
887b446dea11df1d86eb6a08c33a27a07871a1d3
| 200
|
py
|
Python
|
solar/computable_inputs/helpers/python_helpers.py
|
Mirantis/solar
|
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
|
[
"Apache-2.0"
] | 7
|
2015-09-07T22:52:32.000Z
|
2016-01-14T09:27:09.000Z
|
solar/computable_inputs/helpers/python_helpers.py
|
Mirantis/solar
|
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
|
[
"Apache-2.0"
] | 117
|
2015-09-08T05:46:16.000Z
|
2016-04-14T16:46:33.000Z
|
solar/computable_inputs/helpers/python_helpers.py
|
Mirantis/solar
|
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
|
[
"Apache-2.0"
] | 21
|
2015-09-08T06:34:50.000Z
|
2015-12-09T09:14:24.000Z
|
def make_arr(data):
t = {}
for ov in data:
if t.get(ov['resource']) is None:
t[ov['resource']] = {}
t[ov['resource']][ov['other_input']] = ov['value']
return t
| 25
| 58
| 0.49
| 29
| 200
| 3.310345
| 0.586207
| 0.3125
| 0.229167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.305
| 200
| 7
| 59
| 28.571429
| 0.690647
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
88ab99a3c61ec990c5c4e3fcc5e89cf19efb2c34
| 222
|
py
|
Python
|
script.py
|
sarikasoman/Casimir-programming
|
31acfc5b224b1d54d9eea5983105791b59536409
|
[
"MIT"
] | null | null | null |
script.py
|
sarikasoman/Casimir-programming
|
31acfc5b224b1d54d9eea5983105791b59536409
|
[
"MIT"
] | null | null | null |
script.py
|
sarikasoman/Casimir-programming
|
31acfc5b224b1d54d9eea5983105791b59536409
|
[
"MIT"
] | null | null | null |
from test import *
print('This is script.py')
print('I print stuff.')
print('circumference of a circle with radius 10 is {}'.format(circumference(10)))
print('area of a circle with radius 10 is {}'.format(circ_area(10)))
| 31.714286
| 81
| 0.720721
| 37
| 222
| 4.297297
| 0.540541
| 0.037736
| 0.113208
| 0.163522
| 0.36478
| 0.36478
| 0.36478
| 0.36478
| 0
| 0
| 0
| 0.041451
| 0.130631
| 222
| 7
| 82
| 31.714286
| 0.782383
| 0
| 0
| 0
| 0
| 0
| 0.511211
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0.8
| 0
| 0
| 0
| null | 0
| 0
| 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
| 4
|
31f1f47bc31d56fff710feca71639bf0ee88119e
| 86
|
py
|
Python
|
bad-project/fix_me/apps.py
|
Capwell/review-test
|
9ade933b2efd86c7b85401de3da536592bef2dcd
|
[
"MIT"
] | null | null | null |
bad-project/fix_me/apps.py
|
Capwell/review-test
|
9ade933b2efd86c7b85401de3da536592bef2dcd
|
[
"MIT"
] | null | null | null |
bad-project/fix_me/apps.py
|
Capwell/review-test
|
9ade933b2efd86c7b85401de3da536592bef2dcd
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class FixMeConfig(AppConfig):
name = 'fix_me'
| 14.333333
| 33
| 0.744186
| 11
| 86
| 5.727273
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174419
| 86
| 5
| 34
| 17.2
| 0.887324
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
ee1f994874db6ea844e627b29edfd44e2c0050ac
| 98
|
py
|
Python
|
logdispatchr/models.py
|
paulollivier/logdispatchr
|
0f50477a0cd47e9d54cacd13b11810b796bffe72
|
[
"MIT"
] | null | null | null |
logdispatchr/models.py
|
paulollivier/logdispatchr
|
0f50477a0cd47e9d54cacd13b11810b796bffe72
|
[
"MIT"
] | 2
|
2016-08-31T14:21:51.000Z
|
2021-03-25T21:47:05.000Z
|
logdispatchr/models.py
|
paulollivier/logdispatchr
|
0f50477a0cd47e9d54cacd13b11810b796bffe72
|
[
"MIT"
] | null | null | null |
# -*- coding:utf-8 -*-
class Message(dict):
"""
The base message class
"""
pass
| 10.888889
| 26
| 0.5
| 11
| 98
| 4.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0.316327
| 98
| 8
| 27
| 12.25
| 0.716418
| 0.44898
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
c9bb1eac4f622443e9d66fe90954f110df052507
| 83
|
py
|
Python
|
DiepVision2/main.py
|
DerekZhang0000/Diep-Vision
|
21e133e5703638f7c804ea9367d68c0e42ab57be
|
[
"MIT"
] | 1
|
2022-03-14T00:11:02.000Z
|
2022-03-14T00:11:02.000Z
|
DiepVision2/main.py
|
DerekZhang0000/Diep-Vision
|
21e133e5703638f7c804ea9367d68c0e42ab57be
|
[
"MIT"
] | null | null | null |
DiepVision2/main.py
|
DerekZhang0000/Diep-Vision
|
21e133e5703638f7c804ea9367d68c0e42ab57be
|
[
"MIT"
] | 1
|
2022-03-18T01:22:37.000Z
|
2022-03-18T01:22:37.000Z
|
from Detector import *
detector = Detector()
detector.onImage("images/test.jpg")
| 13.833333
| 35
| 0.746988
| 10
| 83
| 6.2
| 0.7
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120482
| 83
| 6
| 35
| 13.833333
| 0.849315
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c9c012c5fcd2da8a3025e14be82049581512accb
| 201
|
py
|
Python
|
Python/hello_dodgers_fans.py
|
PushpneetSingh/Hello-world
|
def0f44737e02fb40063cd347e93e456658e2532
|
[
"MIT"
] | 1,428
|
2018-10-03T15:15:17.000Z
|
2019-03-31T18:38:36.000Z
|
Python/hello_dodgers_fans.py
|
PushpneetSingh/Hello-world
|
def0f44737e02fb40063cd347e93e456658e2532
|
[
"MIT"
] | 1,162
|
2018-10-03T15:05:49.000Z
|
2018-10-18T14:17:52.000Z
|
Python/hello_dodgers_fans.py
|
PushpneetSingh/Hello-world
|
def0f44737e02fb40063cd347e93e456658e2532
|
[
"MIT"
] | 3,909
|
2018-10-03T15:07:19.000Z
|
2019-03-31T18:39:08.000Z
|
print("hello Dodger fans")
print("I know you haven't won a world series in a while")
print("but the rest of the NL West fans don't care")
print("Go Brewers!")
print("Even though you beat the Rockies")
| 33.5
| 57
| 0.726368
| 39
| 201
| 3.74359
| 0.74359
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159204
| 201
| 5
| 58
| 40.2
| 0.863905
| 0
| 0
| 0
| 0
| 0
| 0.751244
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
c9ea47f667686213b70bf23ced53d24267d75d26
| 5,525
|
py
|
Python
|
app/api_1_0/auth.py
|
Oday1024/cdt-auth
|
9b5a76abcd84779286010a619c04384a863eacb8
|
[
"MIT"
] | null | null | null |
app/api_1_0/auth.py
|
Oday1024/cdt-auth
|
9b5a76abcd84779286010a619c04384a863eacb8
|
[
"MIT"
] | null | null | null |
app/api_1_0/auth.py
|
Oday1024/cdt-auth
|
9b5a76abcd84779286010a619c04384a863eacb8
|
[
"MIT"
] | null | null | null |
#!/usr/local/bin/venv/python
# -*- coding: utf-8 -*-
# @Time : 2018/3/13 17:25
# @Author : ShenFeng
# @Site :
# @File : auth.py
# @Software: PyCharm
# import time
# from flask import request, make_response, jsonify
# from flask_login import login_user, logout_user, login_required, \
# current_user
# from . import sysapi
# from ..models import Users
# from ..util.calljar import getpassword
#
#
# TOKEN = 'XSRF-TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhdXRoc3lzIiwic' \
# '3ViIjoie1wiYWNjb3VudFwiOlwic3VwZXJhZG1pblwiLFwib3BlbklkXC' \
# 'I6XCI2NGY2YWE0OTllOTFjMTI2YTc0Mjg5MmZiMDNmMzVhZlwiLFwiZGF' \
# '0YUFjY2Vzc0xldmVsXCI6MTB9IiwiaWF0IjoxNTIwNjA4MzU3LCJleHAi' \
# 'OjE1MjA2MTAxNTd9.vILwLZtusKsHN5g1bgZJ9kjrsKWSb1pjXdRm9G1nK3E'
#
#
# # 将登录成功返回数据存储在LOGIN_SUCCESS字典中
# LOGIN_SUCCESS = {
# "msg": "200200",
# "result": "true"
# }
#
#
# # 将登录失败返回数据存储在LOGIN_ERR字典中
# LOGIN_ERR = {
# "msg": "400400",
# "result": "false"
# }
#
#
# @sysapi.before_app_request
# def before_request():
# if current_user.is_authenticated:
# current_user.ping()
#
#
# @sysapi.route('/authsys/api_1_0/account/login', methods=['POST'])
# def login():
# """
# 1、获取请求参数用户名、密码
# 2、验证用户名密码是否正确,如果正确,返回json格式正确响应码
# 3、如果用户名或者密码错误,则返回json格式错误码
# :return:
# 200200,正确
# 400400,错误
# """
# # 获取请求参数中的用户名、密码明文
# # 采用curl -X POST http://127.0.0.1:5000/authsys/login/ -d 'username=guest&password=shenfeng'已经OK
# # 采用Restlet Client - REST API Testing 工具测试OK
# username = request.form.get('username')
#
# # 前端用Date.parse()函数,返回该参数中日期与1970年1月1日午夜之间相差的毫秒数,
# # 因此需要除以1000转换成精确到秒的时间戳格式
# reqkey = request.form.get('key')
#
# # 精确到秒的时间戳格式,因为是一个int型,不能直接转换成时间格式
# timestamp = int(reqkey) / 1000
#
# # 1、先将int型的时间戳转换成localtime
# local_time_key = time.localtime(timestamp)
#
# # 2、再将localtime进行格式化
# key_dt = time.strftime("%Y%m%d %H:%M:%S", local_time_key)
#
# # print str(key_dt)[0:8]
# # print str(key_dt)[9:17]
#
# fistkey = 'chuangdada'
#
# # 取出格式化后的日期,并转化成字符串
# secondkey = str(key_dt)[0:8]
#
# # 取出格式化后的时分秒,并转化成字符串
# thirdkey = str(key_dt)[9:17]
#
# passwd = getpassword(request.form.get('password'), fistkey, secondkey, thirdkey)
#
# # 测试请求参数数据
# # print(username)
# # print(key)
# # print(passwd)
#
# # 用请求参数中的username查询数据库判断登录用户是否存在
# user = Users.query.filter_by(account=username).first()
# # print user.password
# # 如果用户存在并且验证用户密码与数据库hash后的值相等
# # if user is not None and user.verify_password(passwd):
#
# # 数据库存明文password,如果改成hash存储,须修改models对应代码
# if user is not None and user.password == passwd:
# # 构造响应参数
# # make_response的参数不能是dict、数组等,需要先转化为json格式
# rsp = make_response(jsonify(LOGIN_SUCCESS))
# rsp.mimetype = 'application/json'
# # 返回TOKEN值
# rsp.set_cookie(TOKEN)
# return rsp
#
# else:
# return jsonify(LOGIN_ERR)
import time
from flask import jsonify, make_response
from ..models import Users
from ..util.calljar import getpassword
from flask_restful import Resource, reqparse
from app.api_1_0 import api
TOKEN = 'XSRF-TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhdXRoc3lzIiwic' \
'3ViIjoie1wiYWNjb3VudFwiOlwic3VwZXJhZG1pblwiLFwib3BlbklkXC' \
'I6XCI2NGY2YWE0OTllOTFjMTI2YTc0Mjg5MmZiMDNmMzVhZlwiLFwiZGF' \
'0YUFjY2Vzc0xldmVsXCI6MTB9IiwiaWF0IjoxNTIwNjA4MzU3LCJleHAi' \
'OjE1MjA2MTAxNTd9.vILwLZtusKsHN5g1bgZJ9kjrsKWSb1pjXdRm9G1nK3E'
# 将登录成功返回数据存储在LOGIN_SUCCESS字典中
LOGIN_SUCCESS = {
"msg": "200200",
"result": "true"
}
# 将登录失败返回数据存储在LOGIN_ERR字典中
LOGIN_ERR = {
"msg": "400400",
"result": "false"
}
class Login(Resource):
def post(self):
parser = reqparse.RequestParser()
parser.add_argument('username', type=str, required=True)
parser.add_argument('password', type=str, required=True)
parser.add_argument('key', type=str)
args = parser.parse_args()
# 前端用Date.parse()函数,返回该参数中日期与1970年1月1日午夜之间相差的毫秒数,
# 因此需要除以1000转换成精确到秒的时间戳格式
reqkey = args['key']
# 精确到秒的时间戳格式,因为是一个int型,不能直接转换成时间格式
timestamp = int(reqkey) / 1000
# 1、先将int型的时间戳转换成localtime
local_time_key = time.localtime(timestamp)
# 2、再将localtime进行格式化
key_dt = time.strftime("%Y%m%d %H:%M:%S", local_time_key)
# print str(key_dt)[0:8]
# print str(key_dt)[9:17]
fistkey = 'chuangdada'
# 取出格式化后的日期,并转化成字符串
secondkey = str(key_dt)[0:8]
# 取出格式化后的时分秒,并转化成字符串
thirdkey = str(key_dt)[9:17]
passwd = getpassword(args['password'], fistkey, secondkey, thirdkey)
# 测试请求参数数据
# print(username)
# print(key)
# print(passwd)
# 用请求参数中的username查询数据库判断登录用户是否存在
user = Users.query.filter_by(account=args['username']).first()
# print user.password
# 如果用户存在并且验证用户密码与数据库hash后的值相等
# if user is not None and user.verify_password(passwd):
# 数据库存明文password,如果改成hash存储,须修改models对应代码
if user is not None and user.password == passwd:
# 构造响应参数
# make_response的参数不能是dict、数组等,需要先转化为json格式
rsp = make_response(jsonify(LOGIN_SUCCESS))
rsp.mimetype = 'application/json'
# 返回TOKEN值
rsp.set_cookie(TOKEN)
return rsp
else:
return jsonify(LOGIN_ERR)
api.add_resource(Login, '/authsys/api/account/login')
| 27.487562
| 101
| 0.652127
| 545
| 5,525
| 6.495413
| 0.322936
| 0.014124
| 0.018079
| 0.014689
| 0.761582
| 0.747458
| 0.707345
| 0.687006
| 0.687006
| 0.657062
| 0
| 0.043366
| 0.227873
| 5,525
| 200
| 102
| 27.625
| 0.786451
| 0.599638
| 0
| 0
| 0
| 0
| 0.210117
| 0.152724
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023256
| false
| 0.093023
| 0.139535
| 0
| 0.232558
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
c9f5d03583792524b2e384e405d4b65ac4106c9c
| 199
|
py
|
Python
|
libsvc/utils/pathlike.py
|
derekmerck/endpoint
|
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
|
[
"MIT"
] | null | null | null |
libsvc/utils/pathlike.py
|
derekmerck/endpoint
|
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
|
[
"MIT"
] | null | null | null |
libsvc/utils/pathlike.py
|
derekmerck/endpoint
|
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
|
[
"MIT"
] | null | null | null |
import typing as typ
import pathlib
PathLike = typ.Union[str, pathlib.Path]
def mk_path(path: PathLike) -> pathlib.Path:
path = pathlib.Path(path)
path = path.expanduser()
return path
| 18.090909
| 44
| 0.703518
| 28
| 199
| 4.964286
| 0.464286
| 0.28777
| 0.215827
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190955
| 199
| 10
| 45
| 19.9
| 0.863354
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.285714
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4e5ad75b4f5594ec2ca92dc66192f15c00cb1347
| 150
|
py
|
Python
|
setup.py
|
thekio/justsql
|
0d735fd4c5ee87750d51db74b4bb532901e26e4c
|
[
"MIT"
] | null | null | null |
setup.py
|
thekio/justsql
|
0d735fd4c5ee87750d51db74b4bb532901e26e4c
|
[
"MIT"
] | null | null | null |
setup.py
|
thekio/justsql
|
0d735fd4c5ee87750d51db74b4bb532901e26e4c
|
[
"MIT"
] | null | null | null |
from setuptools import setup, find_packages
install_reqs = ['pytest==4.4.0', 'psycopg2==2.8.1']
setup(name="PACKAGENAME", packages=find_packages())
| 25
| 51
| 0.74
| 22
| 150
| 4.909091
| 0.772727
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051095
| 0.086667
| 150
| 5
| 52
| 30
| 0.737226
| 0
| 0
| 0
| 0
| 0
| 0.26
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4e66945b639c06ac52770fbe6e8de3cbc1c81df8
| 57
|
py
|
Python
|
setup.py
|
Sherif-Abdou/NPLOrganizer
|
d7cf8e11bbbd8681e49affdfe09566d638a19f6d
|
[
"MIT"
] | null | null | null |
setup.py
|
Sherif-Abdou/NPLOrganizer
|
d7cf8e11bbbd8681e49affdfe09566d638a19f6d
|
[
"MIT"
] | null | null | null |
setup.py
|
Sherif-Abdou/NPLOrganizer
|
d7cf8e11bbbd8681e49affdfe09566d638a19f6d
|
[
"MIT"
] | null | null | null |
from setuptools import setup
setup(name="nlporganizer")
| 14.25
| 28
| 0.807018
| 7
| 57
| 6.571429
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 57
| 3
| 29
| 19
| 0.901961
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4e916d06a2f31b757e2744023685bdc6f96782be
| 396
|
py
|
Python
|
tests/form_data_tests/conftest.py
|
PicturePipe/hopper
|
13c571cd1bf9e0044991d1d85de728332440a357
|
[
"BSD-3-Clause"
] | null | null | null |
tests/form_data_tests/conftest.py
|
PicturePipe/hopper
|
13c571cd1bf9e0044991d1d85de728332440a357
|
[
"BSD-3-Clause"
] | 3
|
2017-12-01T17:40:53.000Z
|
2019-09-24T14:28:22.000Z
|
tests/form_data_tests/conftest.py
|
PicturePipe/hopper
|
13c571cd1bf9e0044991d1d85de728332440a357
|
[
"BSD-3-Clause"
] | null | null | null |
# encoding: utf-8
import json
import pytest
from pytest_factoryboy import LazyFixture, register
from . import factories
@pytest.fixture
def elements(fixture):
return json.loads(fixture('simple_form.json'))['form']['elements']
register(factories.FormDataFactory, 'form', elements=LazyFixture('elements'))
register(factories.FormDataFactory, 'form_with_user', author=LazyFixture('user'))
| 23.294118
| 81
| 0.780303
| 46
| 396
| 6.630435
| 0.478261
| 0.078689
| 0.163934
| 0.262295
| 0.288525
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002786
| 0.093434
| 396
| 16
| 82
| 24.75
| 0.846797
| 0.037879
| 0
| 0
| 0
| 0
| 0.153034
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.444444
| 0.111111
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
4e9e5eb985f1927f6a76e4dfe856ae0482455046
| 107
|
py
|
Python
|
tests/unit/catalogs/test_forms.py
|
etienne86/oc_p13_team_spirit
|
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
|
[
"MIT"
] | null | null | null |
tests/unit/catalogs/test_forms.py
|
etienne86/oc_p13_team_spirit
|
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
|
[
"MIT"
] | null | null | null |
tests/unit/catalogs/test_forms.py
|
etienne86/oc_p13_team_spirit
|
fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa
|
[
"MIT"
] | null | null | null |
"""Contain the unit tests related to the forms in app ``catalogs``."""
# from django.test import TestCase
| 26.75
| 70
| 0.719626
| 16
| 107
| 4.8125
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158879
| 107
| 3
| 71
| 35.666667
| 0.855556
| 0.915888
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4ea62092bd99ea466086365fc5ad1871acb4e258
| 97
|
py
|
Python
|
registerapp/apps.py
|
infohaseeb/djangoregister
|
8f68c591ea40f0234f513004aba3b8d88c56cc97
|
[
"MIT"
] | null | null | null |
registerapp/apps.py
|
infohaseeb/djangoregister
|
8f68c591ea40f0234f513004aba3b8d88c56cc97
|
[
"MIT"
] | 6
|
2021-03-19T04:17:51.000Z
|
2021-09-22T19:07:17.000Z
|
registerapp/apps.py
|
infohaseeb/djangoregister
|
8f68c591ea40f0234f513004aba3b8d88c56cc97
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class RegisterappConfig(AppConfig):
name = 'registerapp'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
14cac7ab796bcb4a587e5b02f510af4a435bf067
| 517
|
py
|
Python
|
Python_Exercicios/cm.py
|
thalles-dreissig20/Quebra_Cabeca
|
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
|
[
"MIT"
] | null | null | null |
Python_Exercicios/cm.py
|
thalles-dreissig20/Quebra_Cabeca
|
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
|
[
"MIT"
] | 1
|
2021-11-29T18:37:14.000Z
|
2021-11-29T18:37:14.000Z
|
Python_Exercicios/cm.py
|
thalles-dreissig20/Quebra_Cabeca
|
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
|
[
"MIT"
] | null | null | null |
# Calcular todos em:
# KM HM DAM M DM CM MM
var = float(input("Digite um valor: "))
print("O valor em decimetro fica {}".format(var * 10)) #DM
print("O valor em centimetros fica {}".format(var * 100)) #CM
print("O valor e milimetros fica {}".format(var * 1000)) #MM
print("O valor em metros fica {}".format(var * 10000)) #M
print("O valor em decametro fica {}".format(var / 10)) #DAM
print("O valor em micrometro fica {}".format(var / 100)) #HM
print("O valor em Kilometro fica {}".format(var / 1000)) #KM
| 43.083333
| 62
| 0.651838
| 86
| 517
| 3.918605
| 0.372093
| 0.124629
| 0.228487
| 0.231454
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054118
| 0.17795
| 517
| 12
| 63
| 43.083333
| 0.738824
| 0.102515
| 0
| 0
| 0
| 0
| 0.468132
| 0
| 0
| 0
| 0
| 0.083333
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.875
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
14d641875396616cddcb2ec95c34513adaf854cd
| 109
|
py
|
Python
|
ml4h/__init__.py
|
deflaux/ml4h
|
b1de99143b943c78cd8a1c86fcac36523c502ee5
|
[
"BSD-3-Clause"
] | 45
|
2020-11-02T18:22:17.000Z
|
2022-03-17T04:11:37.000Z
|
ml4h/__init__.py
|
deflaux/ml4h
|
b1de99143b943c78cd8a1c86fcac36523c502ee5
|
[
"BSD-3-Clause"
] | 55
|
2020-11-03T19:49:53.000Z
|
2022-03-17T11:04:54.000Z
|
ml4h/__init__.py
|
deflaux/ml4h
|
b1de99143b943c78cd8a1c86fcac36523c502ee5
|
[
"BSD-3-Clause"
] | 9
|
2020-11-02T18:22:46.000Z
|
2022-01-25T22:14:32.000Z
|
from . import defines
#from .tensorize.database.tensorize import tensorize_sql_fields, write_tensor_from_sql
| 36.333333
| 86
| 0.862385
| 15
| 109
| 5.933333
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082569
| 109
| 2
| 87
| 54.5
| 0.89
| 0.779817
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
14f12f61f09b2b9a2c79d835d89d693a2af13ade
| 58
|
py
|
Python
|
python-101/idiomatic/__init__.py
|
carmine/uni-py
|
b2311c311b7f6c91242888130c9c207e9d056052
|
[
"Apache-2.0"
] | null | null | null |
python-101/idiomatic/__init__.py
|
carmine/uni-py
|
b2311c311b7f6c91242888130c9c207e9d056052
|
[
"Apache-2.0"
] | null | null | null |
python-101/idiomatic/__init__.py
|
carmine/uni-py
|
b2311c311b7f6c91242888130c9c207e9d056052
|
[
"Apache-2.0"
] | null | null | null |
""" idiomatic holds some code idioms that seem useful """
| 29
| 57
| 0.724138
| 8
| 58
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 58
| 1
| 58
| 58
| 0.875
| 0.844828
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
09259674465499361d110a2e02b20f3b8d8f2b55
| 203
|
py
|
Python
|
bobstack/sipmessaging/concretesipmessages/updateSIPRequest.py
|
bobjects/BobStack
|
c177b286075044832f44baf9ace201780c8b4320
|
[
"Apache-2.0"
] | null | null | null |
bobstack/sipmessaging/concretesipmessages/updateSIPRequest.py
|
bobjects/BobStack
|
c177b286075044832f44baf9ace201780c8b4320
|
[
"Apache-2.0"
] | null | null | null |
bobstack/sipmessaging/concretesipmessages/updateSIPRequest.py
|
bobjects/BobStack
|
c177b286075044832f44baf9ace201780c8b4320
|
[
"Apache-2.0"
] | null | null | null |
from ...sipmessaging import SIPRequest
class UPDATESIPRequest(SIPRequest):
@property
def is_update_request(self):
return True
@property
def is_known(self):
return True
| 16.916667
| 38
| 0.679803
| 22
| 203
| 6.136364
| 0.681818
| 0.162963
| 0.192593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.251232
| 203
| 11
| 39
| 18.454545
| 0.888158
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.25
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
09278795f2554c99cb57ca0e1f93a3c7e457f2cb
| 185
|
py
|
Python
|
jinsi/value.py
|
scravy/jinsi
|
d9cea4e22de603c05e6da3d16bff63e6ae094047
|
[
"MIT"
] | 13
|
2020-12-06T04:35:17.000Z
|
2022-02-21T19:47:12.000Z
|
jinsi/value.py
|
scravy/jinsi
|
d9cea4e22de603c05e6da3d16bff63e6ae094047
|
[
"MIT"
] | 11
|
2021-01-27T21:51:42.000Z
|
2021-04-17T16:23:51.000Z
|
jinsi/value.py
|
scravy/jinsi
|
d9cea4e22de603c05e6da3d16bff63e6ae094047
|
[
"MIT"
] | 3
|
2021-02-11T10:35:23.000Z
|
2021-04-24T15:00:45.000Z
|
from decimal import Decimal
from datetime import date
from typing import Union, List, Dict
Value = Union[None, str, bool, int, float, date, Decimal, List['Value'], Dict[str, 'Value']]
| 30.833333
| 92
| 0.735135
| 28
| 185
| 4.857143
| 0.535714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145946
| 185
| 5
| 93
| 37
| 0.860759
| 0
| 0
| 0
| 0
| 0
| 0.054054
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
f505f413ce107e6dd9ef3f05062039345eee7aad
| 4,633
|
gyp
|
Python
|
chrome/browser/sync/protocol/sync_proto.gyp
|
SlimKatLegacy/android_external_chromium
|
bc611cda58cc18d0dbaa8a7aee05eb3c0742e573
|
[
"BSD-3-Clause"
] | 2
|
2017-02-20T14:25:04.000Z
|
2019-12-13T13:58:28.000Z
|
chrome/browser/sync/protocol/sync_proto.gyp
|
SlimKatLegacy/android_external_chromium
|
bc611cda58cc18d0dbaa8a7aee05eb3c0742e573
|
[
"BSD-3-Clause"
] | 2
|
2017-07-25T09:37:22.000Z
|
2017-08-04T07:18:56.000Z
|
chrome/browser/sync/protocol/sync_proto.gyp
|
SlimKatLegacy/android_external_chromium
|
bc611cda58cc18d0dbaa8a7aee05eb3c0742e573
|
[
"BSD-3-Clause"
] | 2
|
2020-01-12T00:55:53.000Z
|
2020-11-04T06:36:41.000Z
|
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
},
'targets': [
{
# Protobuf compiler / generate rule for sync.proto. This is used by
# test code in net, which is why it's isolated into its own .gyp file.
'target_name': 'sync_proto',
'type': 'none',
'sources': [
'sync.proto',
'encryption.proto',
'app_specifics.proto',
'autofill_specifics.proto',
'bookmark_specifics.proto',
'extension_specifics.proto',
'nigori_specifics.proto',
'password_specifics.proto',
'preference_specifics.proto',
'session_specifics.proto',
'test.proto',
'theme_specifics.proto',
'typed_url_specifics.proto',
],
'rules': [
{
'rule_name': 'genproto',
'extension': 'proto',
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
],
'outputs': [
'<(PRODUCT_DIR)/pyproto/sync_pb/<(RULE_INPUT_ROOT)_pb2.py',
'<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/<(RULE_INPUT_ROOT).pb.cc',
],
'action': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
'--proto_path=.',
'./<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
'--cpp_out=<(protoc_out_dir)/chrome/browser/sync/protocol',
'--python_out=<(PRODUCT_DIR)/pyproto/sync_pb',
],
'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
},
],
'dependencies': [
'../../../../third_party/protobuf/protobuf.gyp:protoc#host',
],
},
{
'target_name': 'sync_proto_cpp',
'type': '<(library)',
'sources': [
'<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/encryption.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/encryption.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/app_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/autofill_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/bookmark_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/extension_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/nigori_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/password_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/preference_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/session_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/theme_specifics.pb.h',
'<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.cc',
'<(protoc_out_dir)/chrome/browser/sync/protocol/typed_url_specifics.pb.h',
],
'export_dependent_settings': [
'../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
'sync_proto',
],
'dependencies': [
'../../../../third_party/protobuf/protobuf.gyp:protobuf_lite',
'sync_proto',
],
'direct_dependent_settings': {
'include_dirs': [
'<(protoc_out_dir)',
],
},
# This target exports a hard dependency because it includes generated
# header files.
'hard_dependency': 1,
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
| 41.738739
| 86
| 0.632635
| 543
| 4,633
| 5.139963
| 0.246777
| 0.09674
| 0.124686
| 0.174131
| 0.630598
| 0.614117
| 0.595127
| 0.547474
| 0.547474
| 0.44321
| 0
| 0.002723
| 0.207425
| 4,633
| 110
| 87
| 42.118182
| 0.757353
| 0.102525
| 0
| 0.21875
| 0
| 0
| 0.714837
| 0.618818
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.03125
| 0
| 0
| 0
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eec9d037dfe9abbb84693ce675bdc59e011f97f0
| 148
|
py
|
Python
|
interview/missing.py
|
styam/coading_practice
|
00f9e696bfde621c96b92f17449590aa13221f64
|
[
"MIT"
] | null | null | null |
interview/missing.py
|
styam/coading_practice
|
00f9e696bfde621c96b92f17449590aa13221f64
|
[
"MIT"
] | null | null | null |
interview/missing.py
|
styam/coading_practice
|
00f9e696bfde621c96b92f17449590aa13221f64
|
[
"MIT"
] | null | null | null |
def find_missing(array):
return [x for x in range(array[0], array[-1] + 1) if x not in array]
lst = [2, 4, 1, 7, 10]
print(find_missing(lst))
| 21.142857
| 72
| 0.628378
| 30
| 148
| 3.033333
| 0.633333
| 0.241758
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076271
| 0.202703
| 148
| 7
| 73
| 21.142857
| 0.694915
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.5
| 0.25
| 0
| 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
| 1
| 0
| 0
|
0
| 4
|
eedb917c7807fe8fc66de76ef8eb26d4c694505f
| 2,106
|
py
|
Python
|
database_populator.py
|
shubhushan49/take_home_user_records
|
8e86c751455b7bc131718a398932561c17d45ffc
|
[
"MIT"
] | null | null | null |
database_populator.py
|
shubhushan49/take_home_user_records
|
8e86c751455b7bc131718a398932561c17d45ffc
|
[
"MIT"
] | null | null | null |
database_populator.py
|
shubhushan49/take_home_user_records
|
8e86c751455b7bc131718a398932561c17d45ffc
|
[
"MIT"
] | null | null | null |
from database_helper import *
def populate_database():
#id = 1
session.add(User(user_id="johnny123", first_name="John", last_name="Don"))
#id = 2
session.add(User(user_id="luffy", first_name="Monkey", last_name="Luffy"))
#id = 3
session.add(User(user_id="zoro", first_name="Roronoa", last_name="Zoro"))
#id = 4
session.add(User(user_id="sanji", first_name="vinsmoke", last_name="Sanji"))
#id = 5
session.add(User(user_id="robin", first_name="Nico", last_name="Robin"))
#id = 6
session.add(User(user_id="nami", first_name="Nami", last_name=""))
#id = 7
session.add(User(user_id="dragon", first_name="Monkey", last_name="Dragon"))
#id = 8
session.add(User(user_id="garp", first_name="Monkey", last_name="Garp"))
#id = 9
session.add(User(user_id="sabo", first_name="Monkey", last_name="Sabo"))
#id = 10
session.add(User(user_id="ace", first_name="Portgas", last_name="Ace"))
session.commit()
#id = 1
session.add(Group(name="mugiwara"))
#id = 2
session.add(Group(name="navy"))
#id = 3
session.add(Group(name="revolutionary"))
#id = 4
session.add(Group(name="unknown"))
session.commit()
session.add(UserAndGroup(user_id=1, group_id=4))
session.add(UserAndGroup(user_id=2, group_id=1))
session.add(UserAndGroup(user_id=3, group_id=1))
session.add(UserAndGroup(user_id=4, group_id=1))
session.add(UserAndGroup(user_id=5, group_id=1))
session.add(UserAndGroup(user_id=6, group_id=1))
session.add(UserAndGroup(user_id=8, group_id=2))
session.add(UserAndGroup(user_id=7, group_id=3))
session.add(UserAndGroup(user_id=9, group_id=3))
session.add(UserAndGroup(user_id=10, group_id=2))
session.add(UserAndGroup(user_id=10, group_id=1))
session.add(UserAndGroup(user_id=1, group_id=2))
session.add(UserAndGroup(user_id=2, group_id=2))
session.add(UserAndGroup(user_id=3, group_id=4))
session.add(UserAndGroup(user_id=4, group_id=4))
session.commit()
if __name__ == "__main__":
populate_database()
print("Database populated")
| 38.290909
| 80
| 0.676638
| 323
| 2,106
| 4.19195
| 0.157895
| 0.21418
| 0.243722
| 0.288035
| 0.6226
| 0.406942
| 0.406942
| 0.406942
| 0
| 0
| 0
| 0.027949
| 0.150522
| 2,106
| 55
| 81
| 38.290909
| 0.728899
| 0.040361
| 0
| 0.081081
| 0
| 0
| 0.101594
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.027027
| true
| 0
| 0.027027
| 0
| 0.054054
| 0.027027
| 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
| 0
| 0
| 0
|
0
| 4
|
eeddbf23601c89dd4ba1299c1b166393527df126
| 684
|
py
|
Python
|
ticket/triggers/trg_mensagem_ticket_solucao.py
|
rafaelnoronha/tickets
|
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
|
[
"MIT"
] | null | null | null |
ticket/triggers/trg_mensagem_ticket_solucao.py
|
rafaelnoronha/tickets
|
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
|
[
"MIT"
] | null | null | null |
ticket/triggers/trg_mensagem_ticket_solucao.py
|
rafaelnoronha/tickets
|
5497b8de4efed02e5d2cad78fe8e8811ad1e03c1
|
[
"MIT"
] | null | null | null |
def trigger():
return """
CREATE OR REPLACE FUNCTION trg_mensagem_ticket_solucao()
RETURNS TRIGGER AS $$
BEGIN
IF (NEW.solucao) THEN
UPDATE ticket SET solucionado_id = NEW.id, data_solucao = NOW(), hora_solucao = NOW() WHERE id = NEW.ticket_id;
END IF;
RETURN NEW;
END
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS trg_mensagem_ticket_solucao ON mensagem_ticket;
CREATE TRIGGER trg_mensagem_ticket_solucao
AFTER INSERT ON mensagem_ticket
FOR EACH ROW EXECUTE PROCEDURE trg_mensagem_ticket_solucao();
"""
| 36
| 131
| 0.587719
| 75
| 684
| 5.12
| 0.506667
| 0.21875
| 0.177083
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.356725
| 684
| 18
| 132
| 38
| 0.872727
| 0
| 0
| 0
| 0
| 0.0625
| 0.951754
| 0.165205
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| true
| 0
| 0
| 0.0625
| 0.125
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
eee643affb8d1741015ca8d750c501a626a4919e
| 578
|
py
|
Python
|
src/api/SegmenterAPI.py
|
gregbugaj/marie-ai
|
f51a74f19ab5d7231c9f8a426284feff1671b974
|
[
"MIT"
] | 4
|
2021-09-23T22:38:48.000Z
|
2022-01-19T12:03:02.000Z
|
src/api/SegmenterAPI.py
|
gregbugaj/marie-icr
|
f51a74f19ab5d7231c9f8a426284feff1671b974
|
[
"MIT"
] | 17
|
2021-12-22T16:37:21.000Z
|
2022-03-16T16:07:34.000Z
|
src/api/SegmenterAPI.py
|
gregbugaj/marie-ai
|
f51a74f19ab5d7231c9f8a426284feff1671b974
|
[
"MIT"
] | null | null | null |
from flask_restful import Resource, reqparse
class SegmenterListAPI(Resource):
def __init__(self):
self.reqparse = reqparse.RequestParser()
super(SegmenterListAPI, self).__init__()
def get(self):
return {}, 200
def post(self):
pass
class SegmenterAPI(Resource):
def __init__(self):
self.reqparse = reqparse.RequestParser()
super(SegmenterAPI, self).__init__()
def get(self, id):
return {'qeueue_id':id}, 200
def put(self, id):
pass
def delete(self, id):
pass
| 20.642857
| 48
| 0.608997
| 62
| 578
| 5.387097
| 0.370968
| 0.053892
| 0.08982
| 0.113772
| 0.449102
| 0.341317
| 0.341317
| 0.341317
| 0.341317
| 0
| 0
| 0.014493
| 0.283737
| 578
| 28
| 49
| 20.642857
| 0.792271
| 0
| 0
| 0.368421
| 0
| 0
| 0.015544
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.368421
| false
| 0.157895
| 0.052632
| 0.105263
| 0.631579
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
eeeaf91ea87b75f92e4d82ff207facbbf45e58cf
| 278
|
py
|
Python
|
src/ecn/views.py
|
Busaka/ecn
|
12ffe05ae854b1b43a053fb74698ac28e019d37b
|
[
"MIT"
] | null | null | null |
src/ecn/views.py
|
Busaka/ecn
|
12ffe05ae854b1b43a053fb74698ac28e019d37b
|
[
"MIT"
] | null | null | null |
src/ecn/views.py
|
Busaka/ecn
|
12ffe05ae854b1b43a053fb74698ac28e019d37b
|
[
"MIT"
] | null | null | null |
from django.views import generic
class HomePage(generic.TemplateView):
template_name = "home.html"
class SupportAndTraining(generic.TemplateView):
template_name = "support_training.html"
class Management(generic.TemplateView):
template_name = "management.html"
| 21.384615
| 47
| 0.780576
| 30
| 278
| 7.1
| 0.533333
| 0.267606
| 0.380282
| 0.43662
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129496
| 278
| 12
| 48
| 23.166667
| 0.880165
| 0
| 0
| 0
| 0
| 0
| 0.161871
| 0.07554
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
eef60013fbc35527ab09c5d59b0ca22c3fbdb908
| 372
|
py
|
Python
|
testing/testapp/admin.py
|
pombredanne/discipline
|
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
|
[
"MIT"
] | null | null | null |
testing/testapp/admin.py
|
pombredanne/discipline
|
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
|
[
"MIT"
] | null | null | null |
testing/testapp/admin.py
|
pombredanne/discipline
|
f9d2041c9f1fbb5577a1682d858d487c1f4fce1b
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from django.contrib import admin
from discipline.admin import DisciplinedModelAdmin
from testing.testapp.models import *
admin.site.register(Concept, DisciplinedModelAdmin)
admin.site.register(Word, DisciplinedModelAdmin)
admin.site.register(WordConceptConnection, DisciplinedModelAdmin)
admin.site.register(LanguageKey, DisciplinedModelAdmin)
| 28.615385
| 65
| 0.830645
| 38
| 372
| 8.131579
| 0.5
| 0.116505
| 0.220065
| 0.368932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002915
| 0.077957
| 372
| 12
| 66
| 31
| 0.897959
| 0.056452
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e100cfefd8f986f6507e70ad6a2d0df56241e1b8
| 236
|
py
|
Python
|
utils.py
|
bnguyen2/covid-hackathon
|
016ce5f0239c8f182840420d4a946da3603775ee
|
[
"Apache-2.0"
] | 1
|
2020-04-16T05:41:07.000Z
|
2020-04-16T05:41:07.000Z
|
utils.py
|
bnguyen2/covid-hackathon
|
016ce5f0239c8f182840420d4a946da3603775ee
|
[
"Apache-2.0"
] | 27
|
2020-03-31T02:21:33.000Z
|
2020-04-12T23:13:43.000Z
|
utils.py
|
bnguyen2/covid-hackathon
|
016ce5f0239c8f182840420d4a946da3603775ee
|
[
"Apache-2.0"
] | 1
|
2020-04-12T16:37:31.000Z
|
2020-04-12T16:37:31.000Z
|
"""
Some helpful functions that can be used across the Flask codebase
"""
from random import randint
def get_next_id():
"""
Return the next ID. Should be a random
32 bit integer
"""
return randint(1, 1000000000)
| 15.733333
| 65
| 0.669492
| 34
| 236
| 4.588235
| 0.794118
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073446
| 0.25
| 236
| 14
| 66
| 16.857143
| 0.80791
| 0.504237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e1178ccfc3d42ce911e2462e469214e14de55479
| 134
|
py
|
Python
|
src/configs/data.py
|
dksifoua/Stock-Market-Prediction
|
b2c143ef6705f17f043a5210439a1f39c19114dd
|
[
"Apache-2.0"
] | 9
|
2020-08-08T14:34:09.000Z
|
2021-12-18T23:59:36.000Z
|
src/configs/data.py
|
dksifoua/Stock-Market-Prediction
|
b2c143ef6705f17f043a5210439a1f39c19114dd
|
[
"Apache-2.0"
] | null | null | null |
src/configs/data.py
|
dksifoua/Stock-Market-Prediction
|
b2c143ef6705f17f043a5210439a1f39c19114dd
|
[
"Apache-2.0"
] | 5
|
2020-08-08T14:34:12.000Z
|
2022-01-22T21:41:48.000Z
|
import os
class DataConfig:
YEAR = 2019
API_TOKEN = os.environ.get('API_TOKEN', None)
PATH = './data'
FREQ = '1min'
| 14.888889
| 49
| 0.604478
| 18
| 134
| 4.388889
| 0.833333
| 0.202532
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.050505
| 0.261194
| 134
| 8
| 50
| 16.75
| 0.747475
| 0
| 0
| 0
| 0
| 0
| 0.141791
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0121b169b2cfc3d6c9486c547b57ade513474037
| 252
|
bzl
|
Python
|
containers.bzl
|
opensourceways/app-robot-server
|
8cfa0dfe57f9cfac06a510fb7047d75cf9a99e97
|
[
"Apache-2.0"
] | null | null | null |
containers.bzl
|
opensourceways/app-robot-server
|
8cfa0dfe57f9cfac06a510fb7047d75cf9a99e97
|
[
"Apache-2.0"
] | null | null | null |
containers.bzl
|
opensourceways/app-robot-server
|
8cfa0dfe57f9cfac06a510fb7047d75cf9a99e97
|
[
"Apache-2.0"
] | 2
|
2021-09-15T06:54:46.000Z
|
2021-09-16T03:40:20.000Z
|
load("@io_bazel_rules_docker//container:pull.bzl", "container_pull")
def containers():
container_pull(
name = "alpine_linux_amd64",
registry = "index.docker.io",
repository = "library/alpine",
tag = "3.14.2",
)
| 25.2
| 68
| 0.615079
| 29
| 252
| 5.103448
| 0.758621
| 0.263514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031088
| 0.234127
| 252
| 9
| 69
| 28
| 0.735751
| 0
| 0
| 0
| 0
| 0
| 0.43254
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0
| 0
| 0
| 0.125
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
015f987998584a0bdc7d9b99e7f7792d5d7fe56d
| 40
|
py
|
Python
|
exercise.py
|
xin678/DataAnalysis
|
3fad5de8c0cc547c9c826a633baf1341a5cd5b31
|
[
"MIT"
] | null | null | null |
exercise.py
|
xin678/DataAnalysis
|
3fad5de8c0cc547c9c826a633baf1341a5cd5b31
|
[
"MIT"
] | null | null | null |
exercise.py
|
xin678/DataAnalysis
|
3fad5de8c0cc547c9c826a633baf1341a5cd5b31
|
[
"MIT"
] | null | null | null |
for i in range(10):
print(i, end = " ")
| 20
| 20
| 0.55
| 8
| 40
| 2.75
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.064516
| 0.225
| 40
| 2
| 20
| 20
| 0.645161
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
017794c799077f677a5914d160a8af8b066d1bd6
| 111
|
py
|
Python
|
problem_16/power_digit_sum.py
|
plilja/project-euler
|
646d1989cf15e903ef7e3c6e487284847d522ec9
|
[
"Apache-2.0"
] | null | null | null |
problem_16/power_digit_sum.py
|
plilja/project-euler
|
646d1989cf15e903ef7e3c6e487284847d522ec9
|
[
"Apache-2.0"
] | null | null | null |
problem_16/power_digit_sum.py
|
plilja/project-euler
|
646d1989cf15e903ef7e3c6e487284847d522ec9
|
[
"Apache-2.0"
] | null | null | null |
def power_digit_sum(exponent):
power_of_2 = str(2 ** exponent)
return sum([int(x) for x in power_of_2])
| 37
| 44
| 0.693694
| 21
| 111
| 3.380952
| 0.619048
| 0.197183
| 0.225352
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032967
| 0.18018
| 111
| 3
| 44
| 37
| 0.747253
| 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 | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0177e6a95509f1fbcd732cbf482a90bb65249bdb
| 492
|
py
|
Python
|
audl/stats/endpoints/_base.py
|
yukikongju/audl
|
ecf8edea4508926313df1a34d8604aa905bf4258
|
[
"MIT"
] | null | null | null |
audl/stats/endpoints/_base.py
|
yukikongju/audl
|
ecf8edea4508926313df1a34d8604aa905bf4258
|
[
"MIT"
] | 10
|
2021-08-04T03:01:12.000Z
|
2021-08-11T00:08:27.000Z
|
audl/stats/endpoints/_base.py
|
yukikongju/audl
|
ecf8edea4508926313df1a34d8604aa905bf4258
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env/python
import pandas as pd
class Endpoint(object):
def __init__(self, base_url: str):
self.base_url = base_url
self.endpoint = None
self.url = None
def _fetch_dfs_from_url(self):
return pd.read_html(self.url)
def _get_url(self) -> str:
return f"{self.base_url}{self.endpoint}"
# def _get_url(self, endpoint:str) -> str:
# return f"{self.base}{endpoint}"
def _get_endpoint(self) -> str:
pass
| 20.5
| 48
| 0.611789
| 70
| 492
| 4.028571
| 0.385714
| 0.124113
| 0.117021
| 0.134752
| 0.12766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.264228
| 492
| 23
| 49
| 21.391304
| 0.779006
| 0.193089
| 0
| 0
| 0
| 0
| 0.076142
| 0.076142
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.083333
| 0.083333
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
01914af2aadc671ab256e7c2482440e39491aec7
| 262
|
py
|
Python
|
tube/etl/plugins/__init__.py
|
chicagopcdc/tube
|
547d021fe00aa25995e7e8d2eb2a57f5633395fd
|
[
"Apache-2.0"
] | 3
|
2020-08-26T20:39:44.000Z
|
2021-04-15T19:48:47.000Z
|
tube/etl/plugins/__init__.py
|
chicagopcdc/tube
|
547d021fe00aa25995e7e8d2eb2a57f5633395fd
|
[
"Apache-2.0"
] | 32
|
2018-09-06T21:40:11.000Z
|
2022-03-28T21:49:32.000Z
|
tube/etl/plugins/__init__.py
|
chicagopcdc/tube
|
547d021fe00aa25995e7e8d2eb2a57f5633395fd
|
[
"Apache-2.0"
] | 9
|
2018-09-21T18:54:10.000Z
|
2021-06-28T16:25:21.000Z
|
from .mapping import add_auth_resource_path_mapping
from .post_process import add_auth_resource_path, add_auth_resource_path_to_dataframe
post_process_plugins = [add_auth_resource_path]
post_process_plugins_on_dataframe = [add_auth_resource_path_to_dataframe]
| 37.428571
| 85
| 0.900763
| 40
| 262
| 5.225
| 0.325
| 0.167464
| 0.358852
| 0.454545
| 0.526316
| 0.287081
| 0
| 0
| 0
| 0
| 0
| 0
| 0.064886
| 262
| 6
| 86
| 43.666667
| 0.853061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6d98061a767c55faad037efdb93619c7a6fe2741
| 251
|
py
|
Python
|
bin/extract.py
|
GregWildman/4cade
|
4fc1ed61ecdf2cee99fa57b0e5a1816655c012e7
|
[
"MIT"
] | null | null | null |
bin/extract.py
|
GregWildman/4cade
|
4fc1ed61ecdf2cee99fa57b0e5a1816655c012e7
|
[
"MIT"
] | null | null | null |
bin/extract.py
|
GregWildman/4cade
|
4fc1ed61ecdf2cee99fa57b0e5a1816655c012e7
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import sys
import glob
import os.path
indir = sys.argv[1]
for infile in glob.glob(os.path.join(indir, "*.po")):
print("cadius EXTRACTVOLUME \"" + infile + "\" build/X/ || cadius EXTRACTVOLUME \"" + infile + "\" build/X/")
| 25.1
| 113
| 0.649402
| 36
| 251
| 4.527778
| 0.611111
| 0.07362
| 0.306748
| 0.368098
| 0.380368
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009434
| 0.155378
| 251
| 9
| 114
| 27.888889
| 0.759434
| 0.083665
| 0
| 0
| 0
| 0
| 0.41048
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.166667
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
6dbeb27056724201b5fc78efac967cd175d08e79
| 23
|
py
|
Python
|
data/studio21_generated/introductory/4034/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4034/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4034/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def sillycase(silly):
| 11.5
| 21
| 0.73913
| 3
| 23
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 23
| 2
| 22
| 11.5
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6de4480cb4137b5d19a499de99d6149de6c4ea9a
| 136
|
py
|
Python
|
random/python/random_generate_permutation.py
|
lmbaeza/Crypto
|
2cbb085e625713b387d99720fbdeadb0b74f31a1
|
[
"MIT"
] | 1
|
2020-08-31T12:17:06.000Z
|
2020-08-31T12:17:06.000Z
|
random/python/random_generate_permutation.py
|
lmbaeza/Cripto
|
2cbb085e625713b387d99720fbdeadb0b74f31a1
|
[
"MIT"
] | null | null | null |
random/python/random_generate_permutation.py
|
lmbaeza/Cripto
|
2cbb085e625713b387d99720fbdeadb0b74f31a1
|
[
"MIT"
] | null | null | null |
def generate_permutation(n, start):
permutation = list(range(start, start+n))
random.shuffle(permutation)
return permutation
| 34
| 45
| 0.742647
| 16
| 136
| 6.25
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154412
| 136
| 4
| 46
| 34
| 0.869565
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6dfe5e25fff68faf012b1d5bdb654b2fd9c15c2a
| 223
|
py
|
Python
|
preferences/context_processors.py
|
mgrubb/django-preferences
|
8766a1461ce6d4833b874d3b43ac8fd249f0d7a5
|
[
"BSD-3-Clause"
] | null | null | null |
preferences/context_processors.py
|
mgrubb/django-preferences
|
8766a1461ce6d4833b874d3b43ac8fd249f0d7a5
|
[
"BSD-3-Clause"
] | null | null | null |
preferences/context_processors.py
|
mgrubb/django-preferences
|
8766a1461ce6d4833b874d3b43ac8fd249f0d7a5
|
[
"BSD-3-Clause"
] | null | null | null |
from preferences import preferences
def preferences_cp(request):
"""
Adds preferences to template context when used
through TEMPLATE_CONTEXT_PROCESSORS setting.
"""
return {'preferences': preferences}
| 22.3
| 50
| 0.73991
| 23
| 223
| 7.043478
| 0.695652
| 0.185185
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192825
| 223
| 9
| 51
| 24.777778
| 0.9
| 0.408072
| 0
| 0
| 0
| 0
| 0.098214
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
097bdb29fc9bfff3a5292125135c16dacc4480e2
| 9,170
|
py
|
Python
|
server/openapi_server/controllers/default_controller.py
|
hubmapconsortium/ontology-api
|
f7fadf31de028acdd9cabbb5e9d6e48b9863ffac
|
[
"MIT"
] | 2
|
2021-10-03T15:31:55.000Z
|
2021-10-04T08:55:23.000Z
|
server/openapi_server/controllers/default_controller.py
|
hubmapconsortium/ontology-api
|
f7fadf31de028acdd9cabbb5e9d6e48b9863ffac
|
[
"MIT"
] | 105
|
2020-12-11T13:03:31.000Z
|
2022-03-31T17:08:03.000Z
|
server/openapi_server/controllers/default_controller.py
|
hubmapconsortium/ontology-api
|
f7fadf31de028acdd9cabbb5e9d6e48b9863ffac
|
[
"MIT"
] | 2
|
2021-07-08T14:49:25.000Z
|
2022-02-14T20:12:20.000Z
|
import connexion
import six
from openapi_server.models.codes_codes_obj import CodesCodesObj # noqa: E501
from openapi_server.models.concept_detail import ConceptDetail # noqa: E501
from openapi_server.models.concept_term import ConceptTerm # noqa: E501
from openapi_server.models.full_capacity_term import FullCapacityTerm # noqa: E501
from openapi_server.models.qqst import QQST # noqa: E501
from openapi_server.models.sab_code_term import SabCodeTerm # noqa: E501
from openapi_server.models.sab_definition import SabDefinition # noqa: E501
from openapi_server.models.sab_relationship_concept_prefterm import SabRelationshipConceptPrefterm # noqa: E501
from openapi_server.models.semantic_stn import SemanticStn # noqa: E501
from openapi_server.models.sty_tui_stn import StyTuiStn # noqa: E501
from openapi_server.models.term_resp_obj import TermRespObj # noqa: E501
from openapi_server.models.termtype_code import TermtypeCode # noqa: E501
from openapi_server import util
from openapi_server.managers.neo4j_manager import Neo4jManager
neo4jManager = Neo4jManager()
def codes_code_id_codes_get(code_id, sab=None): # noqa: E501
"""Returns a list of {Concept, Code, Sab} associated with the code_id optionally restricted to SAB
# noqa: E501
:param code_id: The code identifier
:type code_id: str
:param sab: One or more SABs to search
:type sab: List[str]
:rtype: List[CodesCodesObj]
"""
return neo4jManager.codes_code_id_codes_get(code_id, sab)
def codes_code_id_concepts_get(code_id): # noqa: E501
"""Returns a list of {Concept, Prefterm} associated with the code_id
# noqa: E501
:param code_id: The code identifier
:type code_id: str
:rtype: List[ConceptDetail]
"""
return neo4jManager.codes_code_id_concepts_get(code_id)
def codes_code_id_description_get(code_id): # noqa: E501
"""Returns a list of {SAB, Code, Term} dictionaries associated with the code_id
# noqa: E501
:param code_id: The code identifier
:type code_id: str
:rtype: List[SabCodeTerm]
"""
return neo4jManager.codes_code_id_description_get(code_id)
def codes_code_id_terms_get(code_id, sab=None, tty=None, rel=None): # noqa: E501
"""Returns a list of TermRespObjs associated with the code_id as follows Code(code_id)<--Concept-[rel.sab]->Concept-->Code-[Type]->Term
# noqa: E501
:param code_id: The code identifier which is used to identify the initial Concept
:type code_id: str
:param sab: Restrict the ConceptI-[rel.sab]->ConceptR search to Relationships of this Sab
:type sab: List[str]
:param tty: Restrict the Code2-[Type]->Term search to one or more TTY types
:type tty: List[str]
:param rel: One or more TTYs to search of the form 'Type[SAB]'
:type rel: List[str]
:rtype: List[TermRespObj]
"""
return neo4jManager.codes_code_id_terms_get(code_id, sab, tty, rel)
def concepts_concept_id_codes_get(concept_id, sab=None): # noqa: E501
"""Returns a distinct list of codes associated with the concept_id
# noqa: E501
:param concept_id: The concept identifier
:type concept_id: str
:param sab: One or more SABs to search
:type sab: List[str]
:rtype: List[str]
"""
return neo4jManager.concepts_concept_id_codes_get(concept_id, sab)
def concepts_concept_id_concepts_get(concept_id): # noqa: E501
"""Returns a list of {Sab, Relationship, Concept, Prefterm} dictionaries associated with the concept_id
# noqa: E501
:param concept_id: The concept identifier
:type concept_id: str
:rtype: List[SabRelationshipConceptPrefterm]
"""
return neo4jManager.concepts_concept_id_concepts_get(concept_id)
def concepts_concept_id_definitions_get(concept_id): # noqa: E501
"""Returns a list of {Sab, Definition} dictionaries associated with the concept_id
# noqa: E501
:param concept_id: The concept identifier
:type concept_id: str
:rtype: List[SabDefinition]
"""
return neo4jManager.concepts_concept_id_definitions_get(concept_id)
def concepts_concept_id_semantics_get(concept_id): # noqa: E501
"""Returns a list of {Sty, Tui, Stn} dictionaries associated with the concept_id
# noqa: E501
:param concept_id: The concept identifier
:type concept_id: str
:rtype: List[StyTuiStn]
"""
return neo4jManager.concepts_concept_id_semantics_get(concept_id)
def concepts_concept_id_terms_get(concept_id, sab=None, tty=None, rel=None): # noqa: E501
"""Returns a list of TermRespObjs associated with the concept_id as follows Concept(concept_id)-[rel.sab]->Concept-->Code-[Type]->Term
# noqa: E501
:param concept_id: The concept identifier which is used to identify the initial Concept
:type concept_id: str
:param sab: Restrict the ConceptI-[rel.sab]->ConceptR search to Relationships of this Sab
:type sab: List[str]
:param tty: Restrict the Code2-[Type]->Term search to one or more TTY types
:type tty: List[str]
:param rel: One or more TTYs to search of the form 'Type[SAB]'
:type rel: List[str]
:rtype: List[TermRespObj]
"""
return neo4jManager.concepts_concept_id_terms_get(concept_id, sab, tty, rel)
def full_capacity_paremeterized_term_get(term, sab=None, tty=None, semantic=None, contains=None, case=None): # noqa: E501
"""Returns information associated with the term
# noqa: E501
:param term: The term
:type term: str
:param sab: One or more SABs to search
:type sab: List[str]
:param tty: One or more TTYs to search
:type tty: List[str]
:param semantic: One or more semanticss to search
:type semantic: List[str]
:param contains: True contains term. False equals term
:type contains: bool
:param case: True case sensitive. False case insensitive
:type case: bool
:rtype: List[FullCapacityTerm]
"""
return neo4jManager.full_capacity_paremeterized_term_get(term, sab, tty, semantic, contains, case)
def nodes_node_id_terms_get(node_id, sab=None, tty=None, rel=None): # noqa: E501
"""Returns a list of TermRespObjs associated with the node_id
# noqa: E501
:param node_id: The node (either code, concept, term) identifier which is used to identify the initial Concept
:type node_id: str
:param sab: Restrict the ConceptI-[rel.sab]->ConceptR search to Relationships of this Sab
:type sab: List[str]
:param tty: Restrict the Code2-[Type]->Term search to one or more TTY types
:type tty: List[str]
:param rel: One or more TTYs to search of the form 'Type[SAB]'
:type rel: List[str]
:rtype: List[TermRespObj]
"""
return neo4jManager.nodes_node_id_terms_get(node_id, sab, tty, rel)
def semantics_semantic_id_semantics_get(semantic_id): # noqa: E501
"""Returns a list of {queryTUI, querySTN ,semantic, TUI_STN} dictionaries associated with the concept_id
# noqa: E501
:param semantic_id: The semantic identifier
:type semantic_id: str
:rtype: List[QQST]
"""
return neo4jManager.semantics_semantic_id_semantics_get(semantic_id)
def terms_term_id_codes_get(term_id): # noqa: E501
"""Returns a list of {TermType, Code} dictionaries associated with the term_id
# noqa: E501
:param term_id: The term identifier
:type term_id: str
:rtype: List[TermtypeCode]
"""
return neo4jManager.terms_term_id_codes_get(term_id)
def terms_term_id_concepts_get(term_id): # noqa: E501
"""Returns a list of Terms associated with the concept_id
# noqa: E501
:param term_id: The term identifier
:type term_id: str
:rtype: List[str]
"""
return neo4jManager.terms_term_id_concepts_get(term_id)
def terms_term_id_concepts_terms_get(term_id): # noqa: E501
"""Returns a list of {Concept, Term} dictionaries associated with the term_id
# noqa: E501
:param term_id: The term identifier
:type term_id: str
:rtype: List[ConceptTerm]
"""
return neo4jManager.terms_term_id_concepts_terms_get(term_id)
def terms_term_id_terms_get(term_id, sab=None, tty=None, rel=None): # noqa: E501
"""Returns a list of TermRespObjs associated with the term_id
# noqa: E501
:param term_id: The term identifier which is used to identify the initial Concept
:type term_id: str
:param sab: Restrict the ConceptI-[rel.sab]->ConceptR search to Relationships of this Sab
:type sab: List[str]
:param tty: Restrict the Code2-[Type]->Term search to one or more TTY types
:type tty: List[str]
:param rel: One or more TTYs to search of the form 'Type[SAB]'
:type rel: List[str]
:rtype: List[TermRespObj]
"""
return neo4jManager.terms_term_id_terms_get(term_id, sab, tty, rel)
def tui_tui_id_semantics_get(tui_id): # noqa: E501
"""Returns a list of {semantic, STN} dictionaries associated with the tui_id
# noqa: E501
:param tui_id: The TUI identifier
:type tui_id: str
:rtype: List[SemanticStn]
"""
return neo4jManager.tui_tui_id_semantics_get(tui_id)
| 32.75
| 151
| 0.724427
| 1,350
| 9,170
| 4.732593
| 0.084444
| 0.057599
| 0.035999
| 0.040069
| 0.779778
| 0.732979
| 0.688214
| 0.555486
| 0.473314
| 0.443731
| 0
| 0.024059
| 0.188659
| 9,170
| 279
| 152
| 32.867384
| 0.834677
| 0.580589
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.313725
| 0
| 0.980392
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
097f27d3750ad316ba825948cf23a65f86615b0c
| 448
|
py
|
Python
|
models/base_model.py
|
mjlbach/graphtrans
|
0918b98621639d3b16fc435988cb6690ad4e3a0e
|
[
"Apache-2.0"
] | 32
|
2021-11-14T10:00:59.000Z
|
2022-03-30T03:23:47.000Z
|
models/base_model.py
|
mjlbach/graphtrans
|
0918b98621639d3b16fc435988cb6690ad4e3a0e
|
[
"Apache-2.0"
] | null | null | null |
models/base_model.py
|
mjlbach/graphtrans
|
0918b98621639d3b16fc435988cb6690ad4e3a0e
|
[
"Apache-2.0"
] | 6
|
2021-12-14T15:53:47.000Z
|
2022-03-18T18:52:28.000Z
|
import torch
import torch.nn as nn
class BaseModel(nn.Module):
@staticmethod
def need_deg():
return False
@staticmethod
def add_args(parser):
return
@staticmethod
def name(args):
raise NotImplementedError
def __init__(self):
super().__init__()
def forward(self, batched_data, perturb=None):
raise NotImplementedError
def epoch_callback(self, epoch):
return
| 17.230769
| 50
| 0.640625
| 49
| 448
| 5.612245
| 0.591837
| 0.163636
| 0.196364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.28125
| 448
| 25
| 51
| 17.92
| 0.854037
| 0
| 0
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
09892ecbae3ca56c3f94f1b4e94f66aa6e740637
| 1,950
|
py
|
Python
|
tree/optimized_train/data_view.py
|
A4Vision/naive-decision-tree
|
91ee33c91b3f8a596991959ac23c161b5552d9bf
|
[
"MIT"
] | null | null | null |
tree/optimized_train/data_view.py
|
A4Vision/naive-decision-tree
|
91ee33c91b3f8a596991959ac23c161b5552d9bf
|
[
"MIT"
] | 2
|
2019-10-05T15:35:31.000Z
|
2019-10-12T12:25:36.000Z
|
tree/optimized_train/data_view.py
|
A4Vision/naive-decision-tree
|
91ee33c91b3f8a596991959ac23c161b5552d9bf
|
[
"MIT"
] | null | null | null |
from typing import Tuple
import numpy as np
from tree.descision_tree import SimpleDecisionRule
def _validate_indices(rows_indices: np.ndarray, target_array_length: int):
assert rows_indices.dtype in (np.int64, np.uint8)
assert rows_indices.ndim == 1
assert 0 <= rows_indices.max() < target_array_length
class NodeTrainDataView:
def __init__(self, x: np.ndarray, y: np.ndarray, rows_indices: np.ndarray):
assert y.shape[0] > 0
assert y.shape[0] == x.shape[0]
_validate_indices(rows_indices, x.shape[0])
self._x = x
self._y = y
self._rows = rows_indices
def all_rows(self):
return self._rows
def n_rows(self):
return self._rows.shape[0]
def k_features(self):
return self._x.shape[1]
def sample_rows(self, n):
assert n <= self._rows.shape[0]
return np.random.choice(self._rows, n, replace=False)
def residue_values(self, rows: np.ndarray) -> np.ndarray:
return self._y[rows]
def features_values(self, features_list: np.ndarray, rows: np.ndarray) -> np.ndarray:
_validate_indices(features_list, self.k_features())
return self._x[np.ix_(rows, features_list)]
def is_trivial_split(self, rule: SimpleDecisionRule) -> bool:
decision = rule.decide_is_right_array(self._x[self._rows])
return decision.sum() in (0, len(self._rows))
def create_children_views(self, rule: SimpleDecisionRule) -> Tuple['NodeTrainDataView', 'NodeTrainDataView']:
# TODO(Assaf): Does this operation copy the array, or does it just create a view ?
decision = rule.decide_is_right_array(self._x[self._rows])
left_rows = self._rows[~decision]
right_rows = self._rows[decision]
return NodeTrainDataView(self._x, self._y, left_rows), NodeTrainDataView(self._x, self._y, right_rows)
def get_all_rows(self) -> np.ndarray:
return self._rows.copy()
| 34.821429
| 113
| 0.68
| 274
| 1,950
| 4.580292
| 0.277372
| 0.076494
| 0.028685
| 0.041434
| 0.181673
| 0.068526
| 0.068526
| 0.068526
| 0.068526
| 0.068526
| 0
| 0.009073
| 0.208718
| 1,950
| 55
| 114
| 35.454545
| 0.804277
| 0.041026
| 0
| 0.051282
| 0
| 0
| 0.018201
| 0
| 0
| 0
| 0
| 0.018182
| 0.153846
| 1
| 0.282051
| false
| 0
| 0.076923
| 0.128205
| 0.615385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
09b1687bad6cf2fab870a83bf1d77063ecf6fe21
| 202
|
py
|
Python
|
object_detection/voxelnet_v2/setup.py
|
hadleyhzy34/point_cloud
|
9327b1ad084daa61376311181498391693c1c01a
|
[
"MIT"
] | null | null | null |
object_detection/voxelnet_v2/setup.py
|
hadleyhzy34/point_cloud
|
9327b1ad084daa61376311181498391693c1c01a
|
[
"MIT"
] | null | null | null |
object_detection/voxelnet_v2/setup.py
|
hadleyhzy34/point_cloud
|
9327b1ad084daa61376311181498391693c1c01a
|
[
"MIT"
] | null | null | null |
from distutils.core import setup
from Cython.Build import cythonize
import numpy
setup(
name='box overlaps',
ext_modules=cythonize('./box_overlaps.pyx'),
include_dirs=[numpy.get_include()]
)
| 25.25
| 48
| 0.752475
| 27
| 202
| 5.481481
| 0.666667
| 0.148649
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133663
| 202
| 8
| 49
| 25.25
| 0.845714
| 0
| 0
| 0
| 0
| 0
| 0.147783
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.375
| 0
| 0.375
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
09cabd93ea4ecc994e29bd9193ba71fab93587a6
| 258
|
py
|
Python
|
fabfile.py
|
johan--/commcare-hq
|
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
|
[
"BSD-3-Clause"
] | 1
|
2017-02-10T03:14:51.000Z
|
2017-02-10T03:14:51.000Z
|
fabfile.py
|
bglar/commcare-hq
|
972129fc26864c08c7bef07874bd2a7218550bff
|
[
"BSD-3-Clause"
] | 1
|
2022-03-12T01:03:25.000Z
|
2022-03-12T01:03:25.000Z
|
fabfile.py
|
johan--/commcare-hq
|
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
|
[
"BSD-3-Clause"
] | null | null | null |
if __name__ == '__main__':
import settings
import sys
from fab.pillow_settings import test_pillow_settings
if sys.argv[1] == 'test_pillows':
test_pillow_settings(sys.argv[2], settings.PILLOWTOPS)
else:
from fab.fabfile import *
| 23.454545
| 62
| 0.70155
| 34
| 258
| 4.911765
| 0.5
| 0.251497
| 0.215569
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009756
| 0.205426
| 258
| 10
| 63
| 25.8
| 0.804878
| 0
| 0
| 0
| 0
| 0
| 0.077821
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
61e089122055c077ac58666709ecf562e7f8be53
| 82
|
py
|
Python
|
lovecalc/__init__.py
|
skylarr1227/FlameBountyCogs
|
5fc0cc4b3b931a713c142248c2e0c89f118d4d45
|
[
"MIT"
] | 3
|
2019-12-29T02:39:18.000Z
|
2021-06-20T22:25:16.000Z
|
lovecalc/__init__.py
|
skylarr1227/FlameBountyCogs
|
5fc0cc4b3b931a713c142248c2e0c89f118d4d45
|
[
"MIT"
] | 1
|
2019-11-19T14:05:43.000Z
|
2019-11-19T14:05:43.000Z
|
lovecalc/__init__.py
|
skylarr1227/FlameBountyCogs
|
5fc0cc4b3b931a713c142248c2e0c89f118d4d45
|
[
"MIT"
] | 3
|
2019-11-18T21:29:21.000Z
|
2020-01-11T19:55:55.000Z
|
from .lovecalc import LoveCalc
async def setup(bot):
bot.add_cog(LoveCalc(bot))
| 16.4
| 30
| 0.768293
| 13
| 82
| 4.769231
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 82
| 4
| 31
| 20.5
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
61eee8091182770f9cc97300d9b47aa4528fa13d
| 132
|
py
|
Python
|
misc.py
|
aliveoutside/cumtextbot
|
985ce342cca5046159bca2d86bd03cecdd816c16
|
[
"MIT"
] | 1
|
2021-01-02T14:14:45.000Z
|
2021-01-02T14:14:45.000Z
|
misc.py
|
toxyxd/cumtextbot
|
985ce342cca5046159bca2d86bd03cecdd816c16
|
[
"MIT"
] | null | null | null |
misc.py
|
toxyxd/cumtextbot
|
985ce342cca5046159bca2d86bd03cecdd816c16
|
[
"MIT"
] | null | null | null |
import logging
from aiogram import Bot, Dispatcher
bot = Bot(token="")
dp = Dispatcher(bot)
logging.basicConfig(level=logging.INFO)
| 22
| 39
| 0.780303
| 18
| 132
| 5.722222
| 0.611111
| 0.252427
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 132
| 6
| 39
| 22
| 0.872881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
111b3115f0257f15c815909d557b4b2a0f033481
| 182
|
py
|
Python
|
EventFilter/RPCRawToDigi/python/RPCCPPFRawToDigi_sqlite_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
EventFilter/RPCRawToDigi/python/RPCCPPFRawToDigi_sqlite_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
EventFilter/RPCRawToDigi/python/RPCCPPFRawToDigi_sqlite_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
import FWCore.ParameterSet.Config as cms
from CondTools.RPC.RPCLinkMap_sqlite_cff import RPCLinkMapSource
from EventFilter.RPCRawToDigi.RPCCPPFRawToDigi_cfi import rpcCPPFRawToDigi
| 36.4
| 74
| 0.895604
| 21
| 182
| 7.619048
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 182
| 4
| 75
| 45.5
| 0.946746
| 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
| 0
| 0
|
0
| 4
|
1133883babd243417990d9f0089a933ece1af265
| 71
|
py
|
Python
|
micro-benchmark-key-errs/snippets/classes/self_assignment/main.py
|
WenJinfeng/PyCG
|
b45e8e04fe697d8301cf27222a8f37646d69f168
|
[
"Apache-2.0"
] | 121
|
2020-12-16T20:31:37.000Z
|
2022-03-21T20:32:43.000Z
|
micro-benchmark-key-errs/snippets/classes/self_assignment/main.py
|
WenJinfeng/PyCG
|
b45e8e04fe697d8301cf27222a8f37646d69f168
|
[
"Apache-2.0"
] | 24
|
2021-03-13T00:04:00.000Z
|
2022-03-21T17:28:11.000Z
|
micro-benchmark-key-errs/snippets/classes/self_assignment/main.py
|
WenJinfeng/PyCG
|
b45e8e04fe697d8301cf27222a8f37646d69f168
|
[
"Apache-2.0"
] | 19
|
2021-03-23T10:58:47.000Z
|
2022-03-24T19:46:50.000Z
|
class Cls:
x = "a"
d = {"a": "ab"}
cl = Cls()
cl.x = "b"
d[cl.x]
| 7.888889
| 15
| 0.380282
| 15
| 71
| 1.8
| 0.533333
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.309859
| 71
| 8
| 16
| 8.875
| 0.55102
| 0
| 0
| 0
| 0
| 0
| 0.070423
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0.333333
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
113e30bb3f4f851e599472f0179bf99a3169ad16
| 178
|
py
|
Python
|
clientlib/models.py
|
topicaxis/clientlib
|
b93ae6b03c48654ce2755242719e0dca0ce1fb15
|
[
"MIT"
] | null | null | null |
clientlib/models.py
|
topicaxis/clientlib
|
b93ae6b03c48654ce2755242719e0dca0ce1fb15
|
[
"MIT"
] | null | null | null |
clientlib/models.py
|
topicaxis/clientlib
|
b93ae6b03c48654ce2755242719e0dca0ce1fb15
|
[
"MIT"
] | null | null | null |
from collections import namedtuple
Response = namedtuple("Response", ["status_code", "headers", "json"])
EndpointResponse = namedtuple("EndpointResponse", ["response", "data"])
| 35.6
| 71
| 0.747191
| 16
| 178
| 8.25
| 0.6875
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089888
| 178
| 4
| 72
| 44.5
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0.325843
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
feed6cb5daf0bf7196f15e55575290e0f71405d6
| 17
|
py
|
Python
|
data/studio21_generated/introductory/4813/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4813/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/4813/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def get_num(n):
| 8.5
| 15
| 0.647059
| 4
| 17
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 17
| 2
| 16
| 8.5
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3a12bfeb2322fd697ac684f01c46f6c32591bd8c
| 48
|
py
|
Python
|
Flask-todolist-Sqlite3-master/venv/lib/python3.6/keyword.py
|
IncredibleDraco/MyScholar
|
272aafa33f7227d1bc0d937d046788cbabede453
|
[
"Apache-2.0"
] | null | null | null |
Flask-todolist-Sqlite3-master/venv/lib/python3.6/keyword.py
|
IncredibleDraco/MyScholar
|
272aafa33f7227d1bc0d937d046788cbabede453
|
[
"Apache-2.0"
] | null | null | null |
Flask-todolist-Sqlite3-master/venv/lib/python3.6/keyword.py
|
IncredibleDraco/MyScholar
|
272aafa33f7227d1bc0d937d046788cbabede453
|
[
"Apache-2.0"
] | 1
|
2019-11-25T10:25:21.000Z
|
2019-11-25T10:25:21.000Z
|
/home/sheldon/anaconda3/lib/python3.6/keyword.py
| 48
| 48
| 0.833333
| 8
| 48
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 48
| 1
| 48
| 48
| 0.770833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
28b7002f21a9fc183d388bc71fbfe473c5b39377
| 97
|
py
|
Python
|
photography/apps.py
|
RakibCSE/photograpy-website
|
eab7f2056da427ad6e3e05b481ed90ec7ac13dd6
|
[
"MIT"
] | null | null | null |
photography/apps.py
|
RakibCSE/photograpy-website
|
eab7f2056da427ad6e3e05b481ed90ec7ac13dd6
|
[
"MIT"
] | 2
|
2020-06-14T22:01:08.000Z
|
2021-03-30T13:39:59.000Z
|
photography/apps.py
|
ketzu/knet-django
|
cc2ebef54bf4bd1bac6cd79c3458a6e1f3eb28a5
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class PhotographyConfig(AppConfig):
name = 'photography'
| 16.166667
| 35
| 0.773196
| 10
| 97
| 7.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.154639
| 97
| 5
| 36
| 19.4
| 0.914634
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
28ba3620a0199e31a04cfc54dce8d91518c48864
| 276
|
py
|
Python
|
core/models/__init__.py
|
petropavel13/build_options_helper
|
e591d65722d78918c84c4eeda3df8c4012e75323
|
[
"Apache-2.0"
] | null | null | null |
core/models/__init__.py
|
petropavel13/build_options_helper
|
e591d65722d78918c84c4eeda3df8c4012e75323
|
[
"Apache-2.0"
] | null | null | null |
core/models/__init__.py
|
petropavel13/build_options_helper
|
e591d65722d78918c84c4eeda3df8c4012e75323
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals # python 2/3 support
from .selector import Selector
from .restriction import Restriction
from .parameter import Parameter
from .build_parameters import BuildParameters
from .parameters_set import ParametersSet
| 27.6
| 60
| 0.815217
| 34
| 276
| 6.411765
| 0.588235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012448
| 0.126812
| 276
| 9
| 61
| 30.666667
| 0.892116
| 0.144928
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
28c7a015b557e4b20fd483f8aa3dc53d46dd453d
| 180
|
py
|
Python
|
python_modules/dagster/dagster_tests/general_tests/grpc_tests/grpc_repo_with_local_import.py
|
dbatten5/dagster
|
d76e50295054ffe5a72f9b292ef57febae499528
|
[
"Apache-2.0"
] | 4,606
|
2018-06-21T17:45:20.000Z
|
2022-03-31T23:39:42.000Z
|
python_modules/dagster/dagster_tests/general_tests/grpc_tests/grpc_repo_with_local_import.py
|
dbatten5/dagster
|
d76e50295054ffe5a72f9b292ef57febae499528
|
[
"Apache-2.0"
] | 6,221
|
2018-06-12T04:36:01.000Z
|
2022-03-31T21:43:05.000Z
|
python_modules/dagster/dagster_tests/general_tests/grpc_tests/grpc_repo_with_local_import.py
|
dbatten5/dagster
|
d76e50295054ffe5a72f9b292ef57febae499528
|
[
"Apache-2.0"
] | 619
|
2018-08-22T22:43:09.000Z
|
2022-03-31T22:48:06.000Z
|
import dummy_local_file # pylint:disable=import-error,unused-import
from dagster_tests.general_tests.grpc_tests.grpc_repo import ( # pylint:disable=unused-import
bar_repo,
)
| 36
| 94
| 0.811111
| 26
| 180
| 5.346154
| 0.576923
| 0.18705
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 180
| 4
| 95
| 45
| 0.858025
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
28dcee3790b5dbc61333cd03ac1d07a8b993a248
| 122
|
py
|
Python
|
src/openapi_parser/errors.py
|
pershinaM/openapi3-parser
|
957c86727d6d4119e98a7bc6aa260adc9fa22477
|
[
"MIT"
] | 4
|
2021-01-12T12:44:20.000Z
|
2022-03-20T07:38:46.000Z
|
src/openapi_parser/errors.py
|
pershinaM/openapi3-parser
|
957c86727d6d4119e98a7bc6aa260adc9fa22477
|
[
"MIT"
] | 17
|
2021-01-08T18:36:34.000Z
|
2022-02-16T08:21:21.000Z
|
src/openapi_parser/errors.py
|
pershinaM/openapi3-parser
|
957c86727d6d4119e98a7bc6aa260adc9fa22477
|
[
"MIT"
] | 5
|
2021-05-27T19:46:49.000Z
|
2022-03-05T00:14:45.000Z
|
class ParserError(Exception):
"""
Base parser exception class.
Throws when any error occurs.
"""
pass
| 17.428571
| 33
| 0.631148
| 13
| 122
| 5.923077
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.278689
| 122
| 6
| 34
| 20.333333
| 0.875
| 0.47541
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e91a74aac0168989a45e8206573ee1d9cb3138eb
| 250
|
py
|
Python
|
ExerciciosCursoemvideo/EXERCICIOSPYTHON/Exercicio005'Gera 5 numeros de 1 a 60'.py
|
isaiasjunior98/cursoemvideopython
|
774a16b6e12f31b9bf3fad878cd3a9c6dc50d5b8
|
[
"MIT"
] | null | null | null |
ExerciciosCursoemvideo/EXERCICIOSPYTHON/Exercicio005'Gera 5 numeros de 1 a 60'.py
|
isaiasjunior98/cursoemvideopython
|
774a16b6e12f31b9bf3fad878cd3a9c6dc50d5b8
|
[
"MIT"
] | null | null | null |
ExerciciosCursoemvideo/EXERCICIOSPYTHON/Exercicio005'Gera 5 numeros de 1 a 60'.py
|
isaiasjunior98/cursoemvideopython
|
774a16b6e12f31b9bf3fad878cd3a9c6dc50d5b8
|
[
"MIT"
] | null | null | null |
import random
n1 = random.randint(1, 60)
n2 = random.randint(1, 60)
n3 = random.randint(1, 60)
n4 = random.randint(1, 60)
n5 = random.randint(1, 60)
n6 = random.randint(1, 60)
print('O seu número da sorte é : ', n1, n2, n3, n4, n5, n6, 'Boa sorte!')
| 27.777778
| 73
| 0.652
| 47
| 250
| 3.468085
| 0.404255
| 0.478528
| 0.515337
| 0.588957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 0.168
| 250
| 8
| 74
| 31.25
| 0.639423
| 0
| 0
| 0
| 0
| 0
| 0.144
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.125
| 0.125
| 0
| 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
| 4
|
e9218319fcc7651174f1634f7f9ee77140a69a58
| 18
|
py
|
Python
|
bravado/__init__.py
|
Cloudlock/bravado
|
bacf49ea9d791ec9f564a3a141c77995d2f395b0
|
[
"BSD-3-Clause"
] | null | null | null |
bravado/__init__.py
|
Cloudlock/bravado
|
bacf49ea9d791ec9f564a3a141c77995d2f395b0
|
[
"BSD-3-Clause"
] | 2
|
2016-12-14T07:33:33.000Z
|
2017-05-11T13:40:48.000Z
|
bravado/__init__.py
|
Cloudlock/bravado
|
bacf49ea9d791ec9f564a3a141c77995d2f395b0
|
[
"BSD-3-Clause"
] | null | null | null |
version = '8.4.0'
| 9
| 17
| 0.555556
| 4
| 18
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0.166667
| 18
| 1
| 18
| 18
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e9356d903a390c62e060f3024a7f3ac9d6ae7ef5
| 42,121
|
py
|
Python
|
visualization/REST_API/cota_access_agg_REST/setting.py
|
luyuliu/Realizable-Accessibility
|
7af253fa5c768e2b614c2e8c1cca9ad74a009033
|
[
"MIT"
] | null | null | null |
visualization/REST_API/cota_access_agg_REST/setting.py
|
luyuliu/Realizable-Accessibility
|
7af253fa5c768e2b614c2e8c1cca9ad74a009033
|
[
"MIT"
] | null | null | null |
visualization/REST_API/cota_access_agg_REST/setting.py
|
luyuliu/Realizable-Accessibility
|
7af253fa5c768e2b614c2e8c1cca9ad74a009033
|
[
"MIT"
] | null | null | null |
DOMAIN = {
'20191016_1571241600': {'datasource': {'source': '20191016_1571241600'}},
'20191210_1575997200': {'datasource': {'source': '20191210_1575997200'}},
'20190724_1563969600': {'datasource': {'source': '20190724_1563969600'}},
'20191128_1574982000': {'datasource': {'source': '20191128_1574982000'}},
'20191029_1572386400': {'datasource': {'source': '20191029_1572386400'}},
'20191202_1575291600': {'datasource': {'source': '20191202_1575291600'}},
'20191122_1574427600': {'datasource': {'source': '20191122_1574427600'}},
'20190729_1564437600': {'datasource': {'source': '20190729_1564437600'}},
'20191207_1575738000': {'datasource': {'source': '20191207_1575738000'}},
'20190709_1562688000': {'datasource': {'source': '20190709_1562688000'}},
'20191022_1571760000': {'datasource': {'source': '20191022_1571760000'}},
'20190723_1563919200': {'datasource': {'source': '20190723_1563919200'}},
'20190707_1562500800': {'datasource': {'source': '20190707_1562500800'}},
'20191120_1574290800': {'datasource': {'source': '20191120_1574290800'}},
'20190810_1565438400': {'datasource': {'source': '20190810_1565438400'}},
'20190807_1565193600': {'datasource': {'source': '20190807_1565193600'}},
'20191127_1574859600': {'datasource': {'source': '20191127_1574859600'}},
'20191127_1574895600': {'datasource': {'source': '20191127_1574895600'}},
'20191009_1570658400': {'datasource': {'source': '20191009_1570658400'}},
'20190712_1562947200': {'datasource': {'source': '20190712_1562947200'}},
'20190815_1565906400': {'datasource': {'source': '20190815_1565906400'}},
'20190727_1564243200': {'datasource': {'source': '20190727_1564243200'}},
'20190829_1567116000': {'datasource': {'source': '20190829_1567116000'}},
'20190919_1568930400': {'datasource': {'source': '20190919_1568930400'}},
'20191129_1575032400': {'datasource': {'source': '20191129_1575032400'}},
'20190905_1567684800': {'datasource': {'source': '20190905_1567684800'}},
'20191129_1575068400': {'datasource': {'source': '20191129_1575068400'}},
'20190913_1568412000': {'datasource': {'source': '20190913_1568412000'}},
'20191121_1574377200': {'datasource': {'source': '20191121_1574377200'}},
'20190803_1564869600': {'datasource': {'source': '20190803_1564869600'}},
'20191108_1573232400': {'datasource': {'source': '20191108_1573232400'}},
'20191113_1573664400': {'datasource': {'source': '20191113_1573664400'}},
'20191008_1570572000': {'datasource': {'source': '20191008_1570572000'}},
'20191027_1572177600': {'datasource': {'source': '20191027_1572177600'}},
'20190710_1562774400': {'datasource': {'source': '20190710_1562774400'}},
'20191122_1574442000': {'datasource': {'source': '20191122_1574442000'}},
'20191001_1569931200': {'datasource': {'source': '20191001_1569931200'}},
'20191015_1571176800': {'datasource': {'source': '20191015_1571176800'}},
'20190826_1566856800': {'datasource': {'source': '20190826_1566856800'}},
'20191005_1570276800': {'datasource': {'source': '20191005_1570276800'}},
'20191212_1576155600': {'datasource': {'source': '20191212_1576155600'}},
'20191201_1575241200': {'datasource': {'source': '20191201_1575241200'}},
'20190717_1563364800': {'datasource': {'source': '20190717_1563364800'}},
'20191211_1576105200': {'datasource': {'source': '20191211_1576105200'}},
'20190922_1569168000': {'datasource': {'source': '20190922_1569168000'}},
'20191011_1570809600': {'datasource': {'source': '20191011_1570809600'}},
'20191012_1570917600': {'datasource': {'source': '20191012_1570917600'}},
'20190914_1568498400': {'datasource': {'source': '20190914_1568498400'}},
'20190827_1566943200': {'datasource': {'source': '20190827_1566943200'}},
'20190703_1562169600': {'datasource': {'source': '20190703_1562169600'}},
'20190906_1567785600': {'datasource': {'source': '20190906_1567785600'}},
'20191111_1573477200': {'datasource': {'source': '20191111_1573477200'}},
'20190817_1566079200': {'datasource': {'source': '20190817_1566079200'}},
'20191117_1573995600': {'datasource': {'source': '20191117_1573995600'}},
'20190714_1563105600': {'datasource': {'source': '20190714_1563105600'}},
'20190711_1562860800': {'datasource': {'source': '20190711_1562860800'}},
'20191208_1575846000': {'datasource': {'source': '20191208_1575846000'}},
'20190922_1569153600': {'datasource': {'source': '20190922_1569153600'}},
'20190820_1566302400': {'datasource': {'source': '20190820_1566302400'}},
'20190826_1566835200': {'datasource': {'source': '20190826_1566835200'}},
'20190715_1563228000': {'datasource': {'source': '20190715_1563228000'}},
'20190902_1567461600': {'datasource': {'source': '20190902_1567461600'}},
'20190901_1567339200': {'datasource': {'source': '20190901_1567339200'}},
'20190804_1564956000': {'datasource': {'source': '20190804_1564956000'}},
'20191008_1570536000': {'datasource': {'source': '20191008_1570536000'}},
'20191126_1574773200': {'datasource': {'source': '20191126_1574773200'}},
'20190811_1565539200': {'datasource': {'source': '20190811_1565539200'}},
'20190904_1567598400': {'datasource': {'source': '20190904_1567598400'}},
'20191110_1573405200': {'datasource': {'source': '20191110_1573405200'}},
'20191201_1575219600': {'datasource': {'source': '20191201_1575219600'}},
'20190912_1568304000': {'datasource': {'source': '20190912_1568304000'}},
'20191204_1575464400': {'datasource': {'source': '20191204_1575464400'}},
'20190908_1567944000': {'datasource': {'source': '20190908_1567944000'}},
'20191101_1572624000': {'datasource': {'source': '20191101_1572624000'}},
'20191023_1571868000': {'datasource': {'source': '20191023_1571868000'}},
'20190717_1563400800': {'datasource': {'source': '20190717_1563400800'}},
'20190713_1563055200': {'datasource': {'source': '20190713_1563055200'}},
'20191102_1572696000': {'datasource': {'source': '20191102_1572696000'}},
'20191126_1574787600': {'datasource': {'source': '20191126_1574787600'}},
'20190812_1565611200': {'datasource': {'source': '20190812_1565611200'}},
'20191020_1571572800': {'datasource': {'source': '20191020_1571572800'}},
'20190918_1568822400': {'datasource': {'source': '20190918_1568822400'}},
'20191107_1573146000': {'datasource': {'source': '20191107_1573146000'}},
'20190721_1563746400': {'datasource': {'source': '20190721_1563746400'}},
'20190714_1563120000': {'datasource': {'source': '20190714_1563120000'}},
'20191116_1573945200': {'datasource': {'source': '20191116_1573945200'}},
'20190909_1568044800': {'datasource': {'source': '20190909_1568044800'}},
'20191011_1570795200': {'datasource': {'source': '20191011_1570795200'}},
'20190919_1568908800': {'datasource': {'source': '20190919_1568908800'}},
'20191204_1575500400': {'datasource': {'source': '20191204_1575500400'}},
'20190921_1569081600': {'datasource': {'source': '20190921_1569081600'}},
'20190911_1568239200': {'datasource': {'source': '20190911_1568239200'}},
'20191203_1575392400': {'datasource': {'source': '20191203_1575392400'}},
'20191006_1570399200': {'datasource': {'source': '20191006_1570399200'}},
'20190914_1568476800': {'datasource': {'source': '20190914_1568476800'}},
'20190923_1569240000': {'datasource': {'source': '20190923_1569240000'}},
'20191104_1572908400': {'datasource': {'source': '20191104_1572908400'}},
'20190806_1565092800': {'datasource': {'source': '20190806_1565092800'}},
'20191112_1573563600': {'datasource': {'source': '20191112_1573563600'}},
'20191030_1572436800': {'datasource': {'source': '20191030_1572436800'}},
'full_20190701_1561982400': {'datasource': {'source': 'full_20190701_1561982400'}},
'20190729_1564401600': {'datasource': {'source': '20190729_1564401600'}},
'20191013_1570968000': {'datasource': {'source': '20191013_1570968000'}},
'20191127_1574874000': {'datasource': {'source': '20191127_1574874000'}},
'20191123_1574550000': {'datasource': {'source': '20191123_1574550000'}},
'20191112_1573599600': {'datasource': {'source': '20191112_1573599600'}},
'20191211_1576069200': {'datasource': {'source': '20191211_1576069200'}},
'20190828_1566993600': {'datasource': {'source': '20190828_1566993600'}},
'20190922_1569189600': {'datasource': {'source': '20190922_1569189600'}},
'20190727_1564228800': {'datasource': {'source': '20190727_1564228800'}},
'20190809_1565388000': {'datasource': {'source': '20190809_1565388000'}},
'20191030_1572472800': {'datasource': {'source': '20191030_1572472800'}},
'20190828_1567029600': {'datasource': {'source': '20190828_1567029600'}},
'20190929_1569794400': {'datasource': {'source': '20190929_1569794400'}},
'20191119_1574204400': {'datasource': {'source': '20191119_1574204400'}},
'20190907_1567857600': {'datasource': {'source': '20190907_1567857600'}},
'20190921_1569103200': {'datasource': {'source': '20190921_1569103200'}},
'20191104_1572886800': {'datasource': {'source': '20191104_1572886800'}},
'20190815_1565884800': {'datasource': {'source': '20190815_1565884800'}},
'20190818_1566165600': {'datasource': {'source': '20190818_1566165600'}},
'20191106_1573059600': {'datasource': {'source': '20191106_1573059600'}},
'20190701_1562018400': {'datasource': {'source': '20190701_1562018400'}},
'20191022_1571745600': {'datasource': {'source': '20191022_1571745600'}},
'20191121_1574341200': {'datasource': {'source': '20191121_1574341200'}},
'20190802_1564747200': {'datasource': {'source': '20190802_1564747200'}},
'20190704_1562256000': {'datasource': {'source': '20190704_1562256000'}},
'20190920_1568995200': {'datasource': {'source': '20190920_1568995200'}},
'20191002_1570017600': {'datasource': {'source': '20191002_1570017600'}},
'20191120_1574269200': {'datasource': {'source': '20191120_1574269200'}},
'20190812_1565647200': {'datasource': {'source': '20190812_1565647200'}},
'20191203_1575414000': {'datasource': {'source': '20191203_1575414000'}},
'20190807_1565179200': {'datasource': {'source': '20190807_1565179200'}},
'20190817_1566043200': {'datasource': {'source': '20190817_1566043200'}},
'20190704_1562241600': {'datasource': {'source': '20190704_1562241600'}},
'20190929_1569758400': {'datasource': {'source': '20190929_1569758400'}},
'20191214_1576342800': {'datasource': {'source': '20191214_1576342800'}},
'20190904_1567634400': {'datasource': {'source': '20190904_1567634400'}},
'20191130_1575118800': {'datasource': {'source': '20191130_1575118800'}},
'20191013_1571004000': {'datasource': {'source': '20191013_1571004000'}},
'20191215_1576414800': {'datasource': {'source': '20191215_1576414800'}},
'20191120_1574254800': {'datasource': {'source': '20191120_1574254800'}},
'20191211_1576083600': {'datasource': {'source': '20191211_1576083600'}},
'20191106_1573045200': {'datasource': {'source': '20191106_1573045200'}},
'20191205_1575586800': {'datasource': {'source': '20191205_1575586800'}},
'20190928_1569686400': {'datasource': {'source': '20190928_1569686400'}},
'20190927_1569585600': {'datasource': {'source': '20190927_1569585600'}},
'20191014_1571054400': {'datasource': {'source': '20191014_1571054400'}},
'20190822_1566489600': {'datasource': {'source': '20190822_1566489600'}},
'20190827_1566921600': {'datasource': {'source': '20190827_1566921600'}},
'20190912_1568289600': {'datasource': {'source': '20190912_1568289600'}},
'20190720_1563624000': {'datasource': {'source': '20190720_1563624000'}},
'20191111_1573491600': {'datasource': {'source': '20191111_1573491600'}},
'20190723_1563897600': {'datasource': {'source': '20190723_1563897600'}},
'20190907_1567893600': {'datasource': {'source': '20190907_1567893600'}},
'20190819_1566252000': {'datasource': {'source': '20190819_1566252000'}},
'20190730_1564524000': {'datasource': {'source': '20190730_1564524000'}},
'20190913_1568376000': {'datasource': {'source': '20190913_1568376000'}},
'20190906_1567771200': {'datasource': {'source': '20190906_1567771200'}},
'20191119_1574182800': {'datasource': {'source': '20191119_1574182800'}},
'20190822_1566511200': {'datasource': {'source': '20190822_1566511200'}},
'20191113_1573686000': {'datasource': {'source': '20191113_1573686000'}},
'20190715_1563192000': {'datasource': {'source': '20190715_1563192000'}},
'20190925_1569427200': {'datasource': {'source': '20190925_1569427200'}},
'20190714_1563141600': {'datasource': {'source': '20190714_1563141600'}},
'20190907_1567872000': {'datasource': {'source': '20190907_1567872000'}},
'20191009_1570636800': {'datasource': {'source': '20191009_1570636800'}},
'20190817_1566057600': {'datasource': {'source': '20190817_1566057600'}},
'20191212_1576191600': {'datasource': {'source': '20191212_1576191600'}},
'20190911_1568203200': {'datasource': {'source': '20190911_1568203200'}},
'20190902_1567425600': {'datasource': {'source': '20190902_1567425600'}},
'20190706_1562428800': {'datasource': {'source': '20190706_1562428800'}},
'20190901_1567353600': {'datasource': {'source': '20190901_1567353600'}},
'20191119_1574168400': {'datasource': {'source': '20191119_1574168400'}},
'20190926_1569513600': {'datasource': {'source': '20190926_1569513600'}},
'20190810_1565474400': {'datasource': {'source': '20190810_1565474400'}},
'20191202_1575327600': {'datasource': {'source': '20191202_1575327600'}},
'20191205_1575550800': {'datasource': {'source': '20191205_1575550800'}},
'20190718_1563487200': {'datasource': {'source': '20190718_1563487200'}},
'20190904_1567612800': {'datasource': {'source': '20190904_1567612800'}},
'20190701_1561996800': {'datasource': {'source': '20190701_1561996800'}},
'20191105_1572973200': {'datasource': {'source': '20191105_1572973200'}},
'20191017_1571328000': {'datasource': {'source': '20191017_1571328000'}},
'20191020_1571608800': {'datasource': {'source': '20191020_1571608800'}},
'20191028_1572300000': {'datasource': {'source': '20191028_1572300000'}},
'20190806_1565107200': {'datasource': {'source': '20190806_1565107200'}},
'20191105_1572958800': {'datasource': {'source': '20191105_1572958800'}},
'20191207_1575723600': {'datasource': {'source': '20191207_1575723600'}},
'20190716_1563314400': {'datasource': {'source': '20190716_1563314400'}},
'20190912_1568325600': {'datasource': {'source': '20190912_1568325600'}},
'20191216_1576501200': {'datasource': {'source': '20191216_1576501200'}},
'20190908_1567958400': {'datasource': {'source': '20190908_1567958400'}},
'20191027_1572192000': {'datasource': {'source': '20191027_1572192000'}},
'20190925_1569448800': {'datasource': {'source': '20190925_1569448800'}},
'20191110_1573426800': {'datasource': {'source': '20191110_1573426800'}},
'20191026_1572105600': {'datasource': {'source': '20191026_1572105600'}},
'20190703_1562155200': {'datasource': {'source': '20190703_1562155200'}},
'20190916_1568635200': {'datasource': {'source': '20190916_1568635200'}},
'20190924_1569362400': {'datasource': {'source': '20190924_1569362400'}},
'20191114_1573772400': {'datasource': {'source': '20191114_1573772400'}},
'20191024_1571932800': {'datasource': {'source': '20191024_1571932800'}},
'20190725_1564070400': {'datasource': {'source': '20190725_1564070400'}},
'20191016_1571263200': {'datasource': {'source': '20191016_1571263200'}},
'20190731_1564574400': {'datasource': {'source': '20190731_1564574400'}},
'20191001_1569945600': {'datasource': {'source': '20191001_1569945600'}},
'20191209_1575910800': {'datasource': {'source': '20191209_1575910800'}},
'20190920_1569016800': {'datasource': {'source': '20190920_1569016800'}},
'20190702_1562068800': {'datasource': {'source': '20190702_1562068800'}},
'20191010_1570744800': {'datasource': {'source': '20191010_1570744800'}},
'20190813_1565697600': {'datasource': {'source': '20190813_1565697600'}},
'20190706_1562450400': {'datasource': {'source': '20190706_1562450400'}},
'20191029_1572364800': {'datasource': {'source': '20191029_1572364800'}},
'20190808_1565301600': {'datasource': {'source': '20190808_1565301600'}},
'20190726_1564178400': {'datasource': {'source': '20190726_1564178400'}},
'20191004_1570204800': {'datasource': {'source': '20191004_1570204800'}},
'20191214_1576364400': {'datasource': {'source': '20191214_1576364400'}},
'20191004_1570226400': {'datasource': {'source': '20191004_1570226400'}},
'20190715_1563206400': {'datasource': {'source': '20190715_1563206400'}},
'20191117_1574010000': {'datasource': {'source': '20191117_1574010000'}},
'20191126_1574809200': {'datasource': {'source': '20191126_1574809200'}},
'20191102_1572710400': {'datasource': {'source': '20191102_1572710400'}},
'20190814_1565820000': {'datasource': {'source': '20190814_1565820000'}},
'20190821_1566403200': {'datasource': {'source': '20190821_1566403200'}},
'20191012_1570881600': {'datasource': {'source': '20191012_1570881600'}},
'20190708_1562587200': {'datasource': {'source': '20190708_1562587200'}},
'20190909_1568066400': {'datasource': {'source': '20190909_1568066400'}},
'20191129_1575046800': {'datasource': {'source': '20191129_1575046800'}},
'20190919_1568894400': {'datasource': {'source': '20190919_1568894400'}},
'20190926_1569535200': {'datasource': {'source': '20190926_1569535200'}},
'20191216_1576515600': {'datasource': {'source': '20191216_1576515600'}},
'20190823_1566597600': {'datasource': {'source': '20190823_1566597600'}},
'20190804_1564934400': {'datasource': {'source': '20190804_1564934400'}},
'20191214_1576328400': {'datasource': {'source': '20191214_1576328400'}},
'20191008_1570550400': {'datasource': {'source': '20191008_1570550400'}},
'20191204_1575478800': {'datasource': {'source': '20191204_1575478800'}},
'20191117_1574031600': {'datasource': {'source': '20191117_1574031600'}},
'20190823_1566576000': {'datasource': {'source': '20190823_1566576000'}},
'20190908_1567980000': {'datasource': {'source': '20190908_1567980000'}},
'20190831_1567252800': {'datasource': {'source': '20190831_1567252800'}},
'20191026_1572127200': {'datasource': {'source': '20191026_1572127200'}},
'20190928_1569708000': {'datasource': {'source': '20190928_1569708000'}},
'20190812_1565625600': {'datasource': {'source': '20190812_1565625600'}},
'20190829_1567080000': {'datasource': {'source': '20190829_1567080000'}},
'20191021_1571695200': {'datasource': {'source': '20191021_1571695200'}},
'20190803_1564848000': {'datasource': {'source': '20190803_1564848000'}},
'20190719_1563552000': {'datasource': {'source': '20190719_1563552000'}},
'20190719_1563537600': {'datasource': {'source': '20190719_1563537600'}},
'20190930_1569844800': {'datasource': {'source': '20190930_1569844800'}},
'20191124_1574600400': {'datasource': {'source': '20191124_1574600400'}},
'20190914_1568462400': {'datasource': {'source': '20190914_1568462400'}},
'20191103_1572818400': {'datasource': {'source': '20191103_1572818400'}},
'20191022_1571781600': {'datasource': {'source': '20191022_1571781600'}},
'20191125_1574722800': {'datasource': {'source': '20191125_1574722800'}},
'20191206_1575637200': {'datasource': {'source': '20191206_1575637200'}},
'20191021_1571673600': {'datasource': {'source': '20191021_1571673600'}},
'20191128_1574946000': {'datasource': {'source': '20191128_1574946000'}},
'20191130_1575154800': {'datasource': {'source': '20191130_1575154800'}},
'20190806_1565128800': {'datasource': {'source': '20190806_1565128800'}},
'20191118_1574096400': {'datasource': {'source': '20191118_1574096400'}},
'20190906_1567807200': {'datasource': {'source': '20190906_1567807200'}},
'20191122_1574463600': {'datasource': {'source': '20191122_1574463600'}},
'20190701_1561982400': {'datasource': {'source': '20190701_1561982400'}},
'20191208_1575810000': {'datasource': {'source': '20191208_1575810000'}},
'20191003_1570118400': {'datasource': {'source': '20191003_1570118400'}},
'20190810_1565452800': {'datasource': {'source': '20190810_1565452800'}},
'20190728_1564315200': {'datasource': {'source': '20190728_1564315200'}},
'20190801_1564660800': {'datasource': {'source': '20190801_1564660800'}},
'20191024_1571954400': {'datasource': {'source': '20191024_1571954400'}},
'20191109_1573304400': {'datasource': {'source': '20191109_1573304400'}},
'20191028_1572278400': {'datasource': {'source': '20191028_1572278400'}},
'20191007_1570464000': {'datasource': {'source': '20191007_1570464000'}},
'20191027_1572213600': {'datasource': {'source': '20191027_1572213600'}},
'20191028_1572264000': {'datasource': {'source': '20191028_1572264000'}},
'20190920_1568980800': {'datasource': {'source': '20190920_1568980800'}},
'20190730_1564502400': {'datasource': {'source': '20190730_1564502400'}},
'20190731_1564588800': {'datasource': {'source': '20190731_1564588800'}},
'20190831_1567267200': {'datasource': {'source': '20190831_1567267200'}},
'20190723_1563883200': {'datasource': {'source': '20190723_1563883200'}},
'20191209_1575932400': {'datasource': {'source': '20191209_1575932400'}},
'20190707_1562515200': {'datasource': {'source': '20190707_1562515200'}},
'20191105_1572994800': {'datasource': {'source': '20191105_1572994800'}},
'20190725_1564092000': {'datasource': {'source': '20190725_1564092000'}},
'20190826_1566820800': {'datasource': {'source': '20190826_1566820800'}},
'20191029_1572350400': {'datasource': {'source': '20191029_1572350400'}},
'20191118_1574082000': {'datasource': {'source': '20191118_1574082000'}},
'20191206_1575673200': {'datasource': {'source': '20191206_1575673200'}},
'20191017_1571349600': {'datasource': {'source': '20191017_1571349600'}},
'20191215_1576450800': {'datasource': {'source': '20191215_1576450800'}},
'20191019_1571522400': {'datasource': {'source': '20191019_1571522400'}},
'20191015_1571155200': {'datasource': {'source': '20191015_1571155200'}},
'20190718_1563451200': {'datasource': {'source': '20190718_1563451200'}},
'20190728_1564351200': {'datasource': {'source': '20190728_1564351200'}},
'20190915_1568548800': {'datasource': {'source': '20190915_1568548800'}},
'20190804_1564920000': {'datasource': {'source': '20190804_1564920000'}},
'20190803_1564833600': {'datasource': {'source': '20190803_1564833600'}},
'20190911_1568217600': {'datasource': {'source': '20190911_1568217600'}},
'20190728_1564329600': {'datasource': {'source': '20190728_1564329600'}},
'20190821_1566424800': {'datasource': {'source': '20190821_1566424800'}},
'20190811_1565524800': {'datasource': {'source': '20190811_1565524800'}},
'20190702_1562083200': {'datasource': {'source': '20190702_1562083200'}},
'20190830_1567202400': {'datasource': {'source': '20190830_1567202400'}},
'20191210_1576018800': {'datasource': {'source': '20191210_1576018800'}},
'20190823_1566561600': {'datasource': {'source': '20190823_1566561600'}},
'20190801_1564675200': {'datasource': {'source': '20190801_1564675200'}},
'20190903_1567526400': {'datasource': {'source': '20190903_1567526400'}},
'20190831_1567288800': {'datasource': {'source': '20190831_1567288800'}},
'20191103_1572796800': {'datasource': {'source': '20191103_1572796800'}},
'20190709_1562673600': {'datasource': {'source': '20190709_1562673600'}},
'20191116_1573909200': {'datasource': {'source': '20191116_1573909200'}},
'20190824_1566648000': {'datasource': {'source': '20190824_1566648000'}},
'20191213_1576278000': {'datasource': {'source': '20191213_1576278000'}},
'20191109_1573340400': {'datasource': {'source': '20191109_1573340400'}},
'20191206_1575651600': {'datasource': {'source': '20191206_1575651600'}},
'20191005_1570291200': {'datasource': {'source': '20191005_1570291200'}},
'20190705_1562364000': {'datasource': {'source': '20190705_1562364000'}},
'20190824_1566684000': {'datasource': {'source': '20190824_1566684000'}},
'20191118_1574118000': {'datasource': {'source': '20191118_1574118000'}},
'20191123_1574528400': {'datasource': {'source': '20191123_1574528400'}},
'20190910_1568131200': {'datasource': {'source': '20190910_1568131200'}},
'20190929_1569772800': {'datasource': {'source': '20190929_1569772800'}},
'20190710_1562760000': {'datasource': {'source': '20190710_1562760000'}},
'20190721_1563710400': {'datasource': {'source': '20190721_1563710400'}},
'20190720_1563638400': {'datasource': {'source': '20190720_1563638400'}},
'20191106_1573081200': {'datasource': {'source': '20191106_1573081200'}},
'20191115_1573858800': {'datasource': {'source': '20191115_1573858800'}},
'20190722_1563832800': {'datasource': {'source': '20190722_1563832800'}},
'20190718_1563465600': {'datasource': {'source': '20190718_1563465600'}},
'20191114_1573736400': {'datasource': {'source': '20191114_1573736400'}},
'20190724_1563984000': {'datasource': {'source': '20190724_1563984000'}},
'20190717_1563379200': {'datasource': {'source': '20190717_1563379200'}},
'20190814_1565784000': {'datasource': {'source': '20190814_1565784000'}},
'20190809_1565366400': {'datasource': {'source': '20190809_1565366400'}},
'20190813_1565712000': {'datasource': {'source': '20190813_1565712000'}},
'20190727_1564264800': {'datasource': {'source': '20190727_1564264800'}},
'20191101_1572645600': {'datasource': {'source': '20191101_1572645600'}},
'20190713_1563033600': {'datasource': {'source': '20190713_1563033600'}},
'20191005_1570312800': {'datasource': {'source': '20191005_1570312800'}},
'20191003_1570140000': {'datasource': {'source': '20191003_1570140000'}},
'20190814_1565798400': {'datasource': {'source': '20190814_1565798400'}},
'20191213_1576256400': {'datasource': {'source': '20191213_1576256400'}},
'20191108_1573254000': {'datasource': {'source': '20191108_1573254000'}},
'20190705_1562328000': {'datasource': {'source': '20190705_1562328000'}},
'20190925_1569412800': {'datasource': {'source': '20190925_1569412800'}},
'20191209_1575896400': {'datasource': {'source': '20191209_1575896400'}},
'20191216_1576537200': {'datasource': {'source': '20191216_1576537200'}},
'20191130_1575133200': {'datasource': {'source': '20191130_1575133200'}},
'20190909_1568030400': {'datasource': {'source': '20190909_1568030400'}},
'20190927_1569600000': {'datasource': {'source': '20190927_1569600000'}},
'20191030_1572451200': {'datasource': {'source': '20191030_1572451200'}},
'20191016_1571227200': {'datasource': {'source': '20191016_1571227200'}},
'20190821_1566388800': {'datasource': {'source': '20190821_1566388800'}},
'20191112_1573578000': {'datasource': {'source': '20191112_1573578000'}},
'20190808_1565265600': {'datasource': {'source': '20190808_1565265600'}},
'20191113_1573650000': {'datasource': {'source': '20191113_1573650000'}},
'20190825_1566734400': {'datasource': {'source': '20190825_1566734400'}},
'20191208_1575824400': {'datasource': {'source': '20191208_1575824400'}},
'20191201_1575205200': {'datasource': {'source': '20191201_1575205200'}},
'20190807_1565215200': {'datasource': {'source': '20190807_1565215200'}},
'20191125_1574686800': {'datasource': {'source': '20191125_1574686800'}},
'20190712_1562932800': {'datasource': {'source': '20190712_1562932800'}},
'20190813_1565733600': {'datasource': {'source': '20190813_1565733600'}},
'20190713_1563019200': {'datasource': {'source': '20190713_1563019200'}},
'20191102_1572732000': {'datasource': {'source': '20191102_1572732000'}},
'20191019_1571500800': {'datasource': {'source': '20191019_1571500800'}},
'20190706_1562414400': {'datasource': {'source': '20190706_1562414400'}},
'20191217_1576587600': {'datasource': {'source': '20191217_1576587600'}},
'20191217_1576602000': {'datasource': {'source': '20191217_1576602000'}},
'20190710_1562796000': {'datasource': {'source': '20190710_1562796000'}},
'20190719_1563573600': {'datasource': {'source': '20190719_1563573600'}},
'20191115_1573822800': {'datasource': {'source': '20191115_1573822800'}},
'20191109_1573318800': {'datasource': {'source': '20191109_1573318800'}},
'20191018_1571400000': {'datasource': {'source': '20191018_1571400000'}},
'20191212_1576170000': {'datasource': {'source': '20191212_1576170000'}},
'20190724_1564005600': {'datasource': {'source': '20190724_1564005600'}},
'20190805_1565006400': {'datasource': {'source': '20190805_1565006400'}},
'20190811_1565560800': {'datasource': {'source': '20190811_1565560800'}},
'20190913_1568390400': {'datasource': {'source': '20190913_1568390400'}},
'20191103_1572782400': {'datasource': {'source': '20191103_1572782400'}},
'20191001_1569967200': {'datasource': {'source': '20191001_1569967200'}},
'20191123_1574514000': {'datasource': {'source': '20191123_1574514000'}},
'20190711_1562846400': {'datasource': {'source': '20190711_1562846400'}},
'20191014_1571068800': {'datasource': {'source': '20191014_1571068800'}},
'20190801_1564696800': {'datasource': {'source': '20190801_1564696800'}},
'20191203_1575378000': {'datasource': {'source': '20191203_1575378000'}},
'20191107_1573167600': {'datasource': {'source': '20191107_1573167600'}},
'20191205_1575565200': {'datasource': {'source': '20191205_1575565200'}},
'20191024_1571918400': {'datasource': {'source': '20191024_1571918400'}},
'20191003_1570104000': {'datasource': {'source': '20191003_1570104000'}},
'20190731_1564610400': {'datasource': {'source': '20190731_1564610400'}},
'20190809_1565352000': {'datasource': {'source': '20190809_1565352000'}},
'20191020_1571587200': {'datasource': {'source': '20191020_1571587200'}},
'20190930_1569880800': {'datasource': {'source': '20190930_1569880800'}},
'20191125_1574701200': {'datasource': {'source': '20191125_1574701200'}},
'20190705_1562342400': {'datasource': {'source': '20190705_1562342400'}},
'20190816_1565971200': {'datasource': {'source': '20190816_1565971200'}},
'20191004_1570190400': {'datasource': {'source': '20191004_1570190400'}},
'20190928_1569672000': {'datasource': {'source': '20190928_1569672000'}},
'20190825_1566770400': {'datasource': {'source': '20190825_1566770400'}},
'20191111_1573513200': {'datasource': {'source': '20191111_1573513200'}},
'20191101_1572609600': {'datasource': {'source': '20191101_1572609600'}},
'20190820_1566338400': {'datasource': {'source': '20190820_1566338400'}},
'20190902_1567440000': {'datasource': {'source': '20190902_1567440000'}},
'20191213_1576242000': {'datasource': {'source': '20191213_1576242000'}},
'20190901_1567375200': {'datasource': {'source': '20190901_1567375200'}},
'20191019_1571486400': {'datasource': {'source': '20191019_1571486400'}},
'20190830_1567180800': {'datasource': {'source': '20190830_1567180800'}},
'20191107_1573131600': {'datasource': {'source': '20191107_1573131600'}},
'20190824_1566662400': {'datasource': {'source': '20190824_1566662400'}},
'20191031_1572537600': {'datasource': {'source': '20191031_1572537600'}},
'20190827_1566907200': {'datasource': {'source': '20190827_1566907200'}},
'20190725_1564056000': {'datasource': {'source': '20190725_1564056000'}},
'20191202_1575306000': {'datasource': {'source': '20191202_1575306000'}},
'20191023_1571832000': {'datasource': {'source': '20191023_1571832000'}},
'20190924_1569340800': {'datasource': {'source': '20190924_1569340800'}},
'20190716_1563278400': {'datasource': {'source': '20190716_1563278400'}},
'20190915_1568584800': {'datasource': {'source': '20190915_1568584800'}},
'20190918_1568844000': {'datasource': {'source': '20190918_1568844000'}},
'20190917_1568721600': {'datasource': {'source': '20190917_1568721600'}},
'20190917_1568736000': {'datasource': {'source': '20190917_1568736000'}},
'20190927_1569621600': {'datasource': {'source': '20190927_1569621600'}},
'20191006_1570363200': {'datasource': {'source': '20191006_1570363200'}},
'20190805_1565020800': {'datasource': {'source': '20190805_1565020800'}},
'20190720_1563660000': {'datasource': {'source': '20190720_1563660000'}},
'20190916_1568649600': {'datasource': {'source': '20190916_1568649600'}},
'20190819_1566230400': {'datasource': {'source': '20190819_1566230400'}},
'20191124_1574614800': {'datasource': {'source': '20191124_1574614800'}},
'20190825_1566748800': {'datasource': {'source': '20190825_1566748800'}},
'20191031_1572523200': {'datasource': {'source': '20191031_1572523200'}},
'20190703_1562191200': {'datasource': {'source': '20190703_1562191200'}},
'20190808_1565280000': {'datasource': {'source': '20190808_1565280000'}},
'20190802_1564783200': {'datasource': {'source': '20190802_1564783200'}},
'20191115_1573837200': {'datasource': {'source': '20191115_1573837200'}},
'20191014_1571090400': {'datasource': {'source': '20191014_1571090400'}},
'20190702_1562104800': {'datasource': {'source': '20190702_1562104800'}},
'20190819_1566216000': {'datasource': {'source': '20190819_1566216000'}},
'20190820_1566316800': {'datasource': {'source': '20190820_1566316800'}},
'20190924_1569326400': {'datasource': {'source': '20190924_1569326400'}},
'20191207_1575759600': {'datasource': {'source': '20191207_1575759600'}},
'20190707_1562536800': {'datasource': {'source': '20190707_1562536800'}},
'20190802_1564761600': {'datasource': {'source': '20190802_1564761600'}},
'20191110_1573390800': {'datasource': {'source': '20191110_1573390800'}},
'20190910_1568152800': {'datasource': {'source': '20190910_1568152800'}},
'20191217_1576623600': {'datasource': {'source': '20191217_1576623600'}},
'20190708_1562601600': {'datasource': {'source': '20190708_1562601600'}},
'20190815_1565870400': {'datasource': {'source': '20190815_1565870400'}},
'20191011_1570831200': {'datasource': {'source': '20191011_1570831200'}},
'20191017_1571313600': {'datasource': {'source': '20191017_1571313600'}},
'20191124_1574636400': {'datasource': {'source': '20191124_1574636400'}},
'20190918_1568808000': {'datasource': {'source': '20190918_1568808000'}},
'20191018_1571414400': {'datasource': {'source': '20191018_1571414400'}},
'20190722_1563796800': {'datasource': {'source': '20190722_1563796800'}},
'20191002_1570053600': {'datasource': {'source': '20191002_1570053600'}},
'20190917_1568757600': {'datasource': {'source': '20190917_1568757600'}},
'20190816_1565992800': {'datasource': {'source': '20190816_1565992800'}},
'20191025_1572019200': {'datasource': {'source': '20191025_1572019200'}},
'20190915_1568563200': {'datasource': {'source': '20190915_1568563200'}},
'20191007_1570449600': {'datasource': {'source': '20191007_1570449600'}},
'20191010_1570723200': {'datasource': {'source': '20191010_1570723200'}},
'20190726_1564156800': {'datasource': {'source': '20190726_1564156800'}},
'20191025_1572040800': {'datasource': {'source': '20191025_1572040800'}},
'20190816_1565956800': {'datasource': {'source': '20190816_1565956800'}},
'20191012_1570896000': {'datasource': {'source': '20191012_1570896000'}},
'20190818_1566129600': {'datasource': {'source': '20190818_1566129600'}},
'20191025_1572004800': {'datasource': {'source': '20191025_1572004800'}},
'20191007_1570485600': {'datasource': {'source': '20191007_1570485600'}},
'20191114_1573750800': {'datasource': {'source': '20191114_1573750800'}},
'20191116_1573923600': {'datasource': {'source': '20191116_1573923600'}},
'20190829_1567094400': {'datasource': {'source': '20190829_1567094400'}},
'20190704_1562277600': {'datasource': {'source': '20190704_1562277600'}},
'20191010_1570708800': {'datasource': {'source': '20191010_1570708800'}},
'20191006_1570377600': {'datasource': {'source': '20191006_1570377600'}},
'20190923_1569254400': {'datasource': {'source': '20190923_1569254400'}},
'20190729_1564416000': {'datasource': {'source': '20190729_1564416000'}},
'20190930_1569859200': {'datasource': {'source': '20190930_1569859200'}},
'20190921_1569067200': {'datasource': {'source': '20190921_1569067200'}},
'20191121_1574355600': {'datasource': {'source': '20191121_1574355600'}},
'20190926_1569499200': {'datasource': {'source': '20190926_1569499200'}},
'20190726_1564142400': {'datasource': {'source': '20190726_1564142400'}},
'20190712_1562968800': {'datasource': {'source': '20190712_1562968800'}},
'20190903_1567548000': {'datasource': {'source': '20190903_1567548000'}},
'20191108_1573218000': {'datasource': {'source': '20191108_1573218000'}},
'20191013_1570982400': {'datasource': {'source': '20191013_1570982400'}},
'20191031_1572559200': {'datasource': {'source': '20191031_1572559200'}},
'20190828_1567008000': {'datasource': {'source': '20190828_1567008000'}},
'20191215_1576429200': {'datasource': {'source': '20191215_1576429200'}},
'20191009_1570622400': {'datasource': {'source': '20191009_1570622400'}},
'20191021_1571659200': {'datasource': {'source': '20191021_1571659200'}},
'20191015_1571140800': {'datasource': {'source': '20191015_1571140800'}},
'20190905_1567720800': {'datasource': {'source': '20190905_1567720800'}},
'20190910_1568116800': {'datasource': {'source': '20190910_1568116800'}},
'20190822_1566475200': {'datasource': {'source': '20190822_1566475200'}},
'20191128_1574960400': {'datasource': {'source': '20191128_1574960400'}},
'20190722_1563811200': {'datasource': {'source': '20190722_1563811200'}},
'20190903_1567512000': {'datasource': {'source': '20190903_1567512000'}},
'20190709_1562709600': {'datasource': {'source': '20190709_1562709600'}},
'20190721_1563724800': {'datasource': {'source': '20190721_1563724800'}},
'20190916_1568671200': {'datasource': {'source': '20190916_1568671200'}},
'20190730_1564488000': {'datasource': {'source': '20190730_1564488000'}},
'20190905_1567699200': {'datasource': {'source': '20190905_1567699200'}},
'20191026_1572091200': {'datasource': {'source': '20191026_1572091200'}},
'20190711_1562882400': {'datasource': {'source': '20190711_1562882400'}},
'20190708_1562623200': {'datasource': {'source': '20190708_1562623200'}},
'20191104_1572872400': {'datasource': {'source': '20191104_1572872400'}},
'20190805_1565042400': {'datasource': {'source': '20190805_1565042400'}},
'20190923_1569276000': {'datasource': {'source': '20190923_1569276000'}},
'20191210_1575982800': {'datasource': {'source': '20191210_1575982800'}},
'20191018_1571436000': {'datasource': {'source': '20191018_1571436000'}},
'20191023_1571846400': {'datasource': {'source': '20191023_1571846400'}},
'20191002_1570032000': {'datasource': {'source': '20191002_1570032000'}},
'20190818_1566144000': {'datasource': {'source': '20190818_1566144000'}},
'20190830_1567166400': {'datasource': {'source': '20190830_1567166400'}},
'20190716_1563292800': {'datasource': {'source': '20190716_1563292800'}},
}
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_DBNAME = "cota_access_agg"
ALLOW_UNKNOWN=True
X_DOMAINS='*'
PUBLIC_METHODS = ['GET']
PAGINATION_LIMIT = 10000
PAGINATION_DEFAULT = 10000
| 79.925996
| 91
| 0.659006
| 3,094
| 42,121
| 8.637363
| 0.22786
| 0.305942
| 0.002694
| 0.002545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.512043
| 0.146364
| 42,121
| 527
| 92
| 79.925996
| 0.231199
| 0
| 0
| 0
| 0
| 0
| 0.655999
| 0.00114
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e9455b81fe7df25548454ca75b41f2ca54299bcb
| 82
|
py
|
Python
|
custom_user_tests/__init__.py
|
yoccodog/django-lazysignup
|
18d273b97083c8e2a21e54bf326f41c0b4e231fb
|
[
"BSD-3-Clause"
] | null | null | null |
custom_user_tests/__init__.py
|
yoccodog/django-lazysignup
|
18d273b97083c8e2a21e54bf326f41c0b4e231fb
|
[
"BSD-3-Clause"
] | null | null | null |
custom_user_tests/__init__.py
|
yoccodog/django-lazysignup
|
18d273b97083c8e2a21e54bf326f41c0b4e231fb
|
[
"BSD-3-Clause"
] | 1
|
2018-06-22T13:07:34.000Z
|
2018-06-22T13:07:34.000Z
|
# flake8: noqa
default_app_config = 'custom_user_tests.apps.CustomUserTestConfig'
| 27.333333
| 66
| 0.841463
| 10
| 82
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013158
| 0.073171
| 82
| 2
| 67
| 41
| 0.842105
| 0.146341
| 0
| 0
| 0
| 0
| 0.632353
| 0.632353
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3a89ba20d444b5a68d100af37de7098efa709481
| 108
|
py
|
Python
|
zhixuewang/student/__init__.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 22
|
2019-01-21T03:49:44.000Z
|
2020-02-13T08:43:01.000Z
|
zhixuewang/student/__init__.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 15
|
2020-02-16T13:49:45.000Z
|
2022-02-20T11:41:30.000Z
|
zhixuewang/student/__init__.py
|
lihaoze123/zhixuewang-python
|
7a54bb1ae96f74d3bb3a0845f3b084bb5942f758
|
[
"MIT"
] | 12
|
2020-08-31T05:43:16.000Z
|
2022-02-20T11:06:33.000Z
|
from zhixuewang.student.student import StudentAccount, FriendMsg
__all__ = ["StudentAccount", "FriendMsg"]
| 27
| 64
| 0.805556
| 10
| 108
| 8.3
| 0.7
| 0.554217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.092593
| 108
| 3
| 65
| 36
| 0.846939
| 0
| 0
| 0
| 0
| 0
| 0.212963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
3a96b2f8a2e8761f1e5d400bfd992a29410d111c
| 92
|
py
|
Python
|
tests/__init__.py
|
chris4540/DD2430-ds-proj
|
b876efabe949392b27a7ebd4afb2be623174e287
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
chris4540/DD2430-ds-proj
|
b876efabe949392b27a7ebd4afb2be623174e287
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
chris4540/DD2430-ds-proj
|
b876efabe949392b27a7ebd4afb2be623174e287
|
[
"MIT"
] | null | null | null |
"""
Unit test module
How to debug test:
$ pytest -s # disable all capturing
"""
| 13.142857
| 46
| 0.586957
| 12
| 92
| 4.5
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.304348
| 92
| 6
| 47
| 15.333333
| 0.84375
| 0.902174
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3ab5403953613096d2ec7a31c5b21adeaf44be6d
| 552
|
py
|
Python
|
tests/MathTests/color.py
|
goshow-jp/Kraken
|
7088b474b6cc2840cea7ab642c5938e4a3290b6c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/MathTests/color.py
|
goshow-jp/Kraken
|
7088b474b6cc2840cea7ab642c5938e4a3290b6c
|
[
"BSD-3-Clause"
] | null | null | null |
tests/MathTests/color.py
|
goshow-jp/Kraken
|
7088b474b6cc2840cea7ab642c5938e4a3290b6c
|
[
"BSD-3-Clause"
] | 1
|
2021-12-08T08:31:48.000Z
|
2021-12-08T08:31:48.000Z
|
import json
from kraken.core.maths import *
color0 = Color()
color0.r = 1.0
print "color0:" + str(color0)
color1 = Color(1.0, 0.0, 0.74, 0.5)
print "color1:" + str(color1)
print "lerp:" + str(color0.linearInterpolate(color1, 0.5))
# Random color will never pass
# print "rand:" + str(Color.randomColor(0.5))
print "equal:" + str(color0 == color1)
print "not equal:" + str(color0 != color1)
print "add:" + str(color0 + color1)
print "subtract:" + str(color0 - color1)
print "multiply:" + str(color0 * color1)
print "divide:" + str(color0 / color1)
| 25.090909
| 58
| 0.67029
| 82
| 552
| 4.512195
| 0.365854
| 0.194595
| 0.283784
| 0.27027
| 0.135135
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0.152174
| 552
| 22
| 59
| 25.090909
| 0.713675
| 0.130435
| 0
| 0
| 0
| 0
| 0.133891
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.142857
| null | null | 0.642857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
3aef97b31ecd49ea8177b706276079cece5e9aa4
| 188
|
py
|
Python
|
2_data_structures/week1/stripping_whitespaces.py
|
thanyad/learning-python
|
2389f1abe9f898ed8deee50e538f0ee30057e0d5
|
[
"Apache-2.0"
] | null | null | null |
2_data_structures/week1/stripping_whitespaces.py
|
thanyad/learning-python
|
2389f1abe9f898ed8deee50e538f0ee30057e0d5
|
[
"Apache-2.0"
] | null | null | null |
2_data_structures/week1/stripping_whitespaces.py
|
thanyad/learning-python
|
2389f1abe9f898ed8deee50e538f0ee30057e0d5
|
[
"Apache-2.0"
] | null | null | null |
greet=' hello bob '
greet.strip()
print(greet)
#right strip
greet=' hello bob '
greet.rstrip()
print(greet)
#left strip
greet=' hello bob '
greet.lstrip()
print(greet)
| 13.428571
| 25
| 0.638298
| 25
| 188
| 4.8
| 0.36
| 0.25
| 0.325
| 0.45
| 0.383333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.223404
| 188
| 13
| 26
| 14.461538
| 0.821918
| 0.111702
| 0
| 0.666667
| 0
| 0
| 0.309091
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aae9972e848c0d45578b6a95826c00b085d746d5
| 16
|
py
|
Python
|
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210713192840.py
|
minefarmer/deep-Dive-1
|
b0675b853180c5b5781888266ea63a3793b8d855
|
[
"Unlicense"
] | null | null | null |
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210713192840.py
|
minefarmer/deep-Dive-1
|
b0675b853180c5b5781888266ea63a3793b8d855
|
[
"Unlicense"
] | null | null | null |
.history/my_classes/ScopesClosuresAndDecorators/decorators_1_20210713192840.py
|
minefarmer/deep-Dive-1
|
b0675b853180c5b5781888266ea63a3793b8d855
|
[
"Unlicense"
] | null | null | null |
"""Decorators"""
| 16
| 16
| 0.625
| 1
| 16
| 10
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 16
| 1
| 16
| 16
| 0.625
| 0.625
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
aaf87f6361403fd334e4f990721ebc2b362eed6d
| 56
|
py
|
Python
|
runserver.py
|
DarkyMago/roommates
|
b12d7a020d512a71cd36ff8b851ba1f8cbf8dac9
|
[
"MIT"
] | 5
|
2015-05-06T20:35:05.000Z
|
2019-08-16T11:35:50.000Z
|
runserver.py
|
DarkyMago/roommates
|
b12d7a020d512a71cd36ff8b851ba1f8cbf8dac9
|
[
"MIT"
] | null | null | null |
runserver.py
|
DarkyMago/roommates
|
b12d7a020d512a71cd36ff8b851ba1f8cbf8dac9
|
[
"MIT"
] | 3
|
2016-03-11T16:04:51.000Z
|
2020-05-01T04:09:08.000Z
|
from roommates import app
app.run(debug=True, port=1337)
| 28
| 30
| 0.803571
| 10
| 56
| 4.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 0.089286
| 56
| 2
| 30
| 28
| 0.803922
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
c92b7e7013ad10ba3b81b8e29a2ff765ea9d5f9c
| 600
|
py
|
Python
|
pytest_splunk_addon/standard_lib/__init__.py
|
monishshah18/pytest-splunk-addon
|
1600f2c7d30ec304e9855642e63511780556b406
|
[
"Apache-2.0"
] | null | null | null |
pytest_splunk_addon/standard_lib/__init__.py
|
monishshah18/pytest-splunk-addon
|
1600f2c7d30ec304e9855642e63511780556b406
|
[
"Apache-2.0"
] | null | null | null |
pytest_splunk_addon/standard_lib/__init__.py
|
monishshah18/pytest-splunk-addon
|
1600f2c7d30ec304e9855642e63511780556b406
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
There are 3 types of tests included:
1. Knowledge objects test cases
2. CIM Compatibility test cases
3. Index Time test cases
The test generation mechanism is divided into 3 types of class
1. Tests: Test templates
2. TestGenerator: Generates the test cases using pytest.params
3. SampleGenerator: Generates the data for which the test cases will be executed.
4. EventIngestor: Ingests the generated data to Splunk.
5. Other utility classes like Add-on parser & Data model handlers.
"""
from .app_test_generator import AppTestGenerator
from .addon_basic import Basic
| 27.272727
| 81
| 0.776667
| 92
| 600
| 5.032609
| 0.684783
| 0.097192
| 0.034557
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021912
| 0.163333
| 600
| 21
| 82
| 28.571429
| 0.900398
| 0.846667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
c95cdd5e66b79e47b0e225a6af2ec533f8ef8c13
| 107
|
py
|
Python
|
students/K33401/Tikhonova_Elena/Lr3/climbing_club_project/climbing_club_app/apps.py
|
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
|
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
|
[
"MIT"
] | null | null | null |
students/K33401/Tikhonova_Elena/Lr3/climbing_club_project/climbing_club_app/apps.py
|
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
|
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
|
[
"MIT"
] | null | null | null |
students/K33401/Tikhonova_Elena/Lr3/climbing_club_project/climbing_club_app/apps.py
|
TikhonovaElena/ITMO_ICT_WebDevelopment_2020-2021
|
a0ceb17b3ec0e53fa4b92af507251381a6760e6c
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ClimbingClubAppConfig(AppConfig):
name = 'climbing_club_app'
| 17.833333
| 39
| 0.794393
| 12
| 107
| 6.916667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140187
| 107
| 5
| 40
| 21.4
| 0.902174
| 0
| 0
| 0
| 0
| 0
| 0.158879
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a319e8023caee38d80ccfa54a1d385a2d48719b2
| 225
|
py
|
Python
|
layout/MYlayoutlm/__init__.py
|
xwuShirley/mmdetection
|
f9b9eaad9f58e90862997b90a034aad1518baf2f
|
[
"Apache-2.0"
] | null | null | null |
layout/MYlayoutlm/__init__.py
|
xwuShirley/mmdetection
|
f9b9eaad9f58e90862997b90a034aad1518baf2f
|
[
"Apache-2.0"
] | null | null | null |
layout/MYlayoutlm/__init__.py
|
xwuShirley/mmdetection
|
f9b9eaad9f58e90862997b90a034aad1518baf2f
|
[
"Apache-2.0"
] | null | null | null |
# flake8: noqa
from .data.funsd import FunsdDataset
from .data.funsd_img import IMFunsdDataset
from .modeling.layoutlm import (
LayoutlmConfig,
LayoutlmForSequenceClassification,
LayoutlmForTokenClassification,
)
| 25
| 42
| 0.804444
| 20
| 225
| 9
| 0.7
| 0.088889
| 0.144444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005155
| 0.137778
| 225
| 8
| 43
| 28.125
| 0.92268
| 0.053333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.428571
| 0
| 0.428571
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
a35cc32e62bd20ce8727edd94a9eabb99f8afe6e
| 116
|
py
|
Python
|
codewof/programming/content/en/print-bigger-number/initial.py
|
uccser-admin/programming-practice-prototype
|
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
|
[
"MIT"
] | 3
|
2019-08-29T04:11:22.000Z
|
2021-06-22T16:05:51.000Z
|
codewof/programming/content/en/print-bigger-number/initial.py
|
uccser-admin/programming-practice-prototype
|
3af4c7d85308ac5bb35bb13be3ec18cac4eb8308
|
[
"MIT"
] | 265
|
2019-05-30T03:51:46.000Z
|
2022-03-31T01:05:12.000Z
|
codewof/programming/content/en/print-bigger-number/initial.py
|
samuelsandri/codewof
|
c9b8b378c06b15a0c42ae863b8f46581de04fdfc
|
[
"MIT"
] | 7
|
2019-06-29T12:13:37.000Z
|
2021-09-06T06:49:14.000Z
|
def print_bigger_number(first, second):
if first > second:
print(first)
else:
print(second)
| 19.333333
| 39
| 0.612069
| 14
| 116
| 4.928571
| 0.571429
| 0.318841
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.293103
| 116
| 5
| 40
| 23.2
| 0.841463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.2
| 0.6
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
a35dd9ca3aa1fe1158823d7b947ffa4418ba87a8
| 217
|
py
|
Python
|
Python-programs/find_next_palindrome.py
|
manavbansalcoder/Hacktoberfest2021
|
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
|
[
"CC0-1.0"
] | null | null | null |
Python-programs/find_next_palindrome.py
|
manavbansalcoder/Hacktoberfest2021
|
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
|
[
"CC0-1.0"
] | null | null | null |
Python-programs/find_next_palindrome.py
|
manavbansalcoder/Hacktoberfest2021
|
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
|
[
"CC0-1.0"
] | null | null | null |
def palindrome(number):
return number == number[::-1]
if __name__ == '__main__':
init = int(input())
number = init + 1
while not palindrome(str(number)):
number += 1
print(number - init)
| 24.111111
| 38
| 0.589862
| 26
| 217
| 4.615385
| 0.576923
| 0.2
| 0.216667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01875
| 0.262673
| 217
| 9
| 39
| 24.111111
| 0.73125
| 0
| 0
| 0
| 0
| 0
| 0.036697
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0
| 0.125
| 0.25
| 0.125
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
a35f16a79cfc3b8e2dd74669e6790b9cf400ec23
| 98
|
py
|
Python
|
pyclubapp/apps.py
|
ahegashira/PythonClubProject
|
4af6f03ea0b2ef5ce5f2f030f9dc959ba48b00f3
|
[
"Apache-2.0"
] | null | null | null |
pyclubapp/apps.py
|
ahegashira/PythonClubProject
|
4af6f03ea0b2ef5ce5f2f030f9dc959ba48b00f3
|
[
"Apache-2.0"
] | null | null | null |
pyclubapp/apps.py
|
ahegashira/PythonClubProject
|
4af6f03ea0b2ef5ce5f2f030f9dc959ba48b00f3
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class PyclubappConfig(AppConfig):
name = 'pyclubapp'
| 16.333333
| 34
| 0.72449
| 10
| 98
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204082
| 98
| 5
| 35
| 19.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a388a4d4c4980df5cfa652c6327d54bfad253434
| 164
|
py
|
Python
|
plantuml/tests/fakeepstopdf.py
|
Tommy1969/sphinx-contrib
|
d479ece0fe6c2f33bbebcc52677035d5003b7b35
|
[
"BSD-2-Clause"
] | 14
|
2016-02-22T12:06:54.000Z
|
2021-01-05T07:01:43.000Z
|
plantuml/tests/fakeepstopdf.py
|
SuperKogito/sphinx-contrib
|
3b643bffb90a27ae378717ae6335873a0e73cf9d
|
[
"BSD-2-Clause"
] | 8
|
2015-03-06T13:46:49.000Z
|
2019-10-09T08:53:14.000Z
|
plantuml/tests/fakeepstopdf.py
|
SuperKogito/sphinx-contrib
|
3b643bffb90a27ae378717ae6335873a0e73cf9d
|
[
"BSD-2-Clause"
] | 16
|
2015-05-25T02:51:05.000Z
|
2020-01-17T05:49:47.000Z
|
#!/usr/bin/env python
import sys
assert len(sys.argv) > 1
f = open(sys.argv[-1][:-4] + '.pdf', 'w')
try:
f.write(' '.join(sys.argv[1:]))
finally:
f.close()
| 18.222222
| 41
| 0.567073
| 29
| 164
| 3.206897
| 0.689655
| 0.225806
| 0.258065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.029197
| 0.164634
| 164
| 8
| 42
| 20.5
| 0.649635
| 0.121951
| 0
| 0
| 0
| 0
| 0.041958
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
a38e5877f75de96a60f2434510cece2d74bb331c
| 222
|
py
|
Python
|
Analytics/StorageSystem/Storage.py
|
CommName/WildeLifeWatcher
|
3ce3b564d0e6cc81ebc2b607a712580d3c388db6
|
[
"MIT"
] | null | null | null |
Analytics/StorageSystem/Storage.py
|
CommName/WildeLifeWatcher
|
3ce3b564d0e6cc81ebc2b607a712580d3c388db6
|
[
"MIT"
] | null | null | null |
Analytics/StorageSystem/Storage.py
|
CommName/WildeLifeWatcher
|
3ce3b564d0e6cc81ebc2b607a712580d3c388db6
|
[
"MIT"
] | null | null | null |
from abc import ABC, abstractmethod
class Storage(ABC):
@abstractmethod
def insertAnalyticData(self, analyticData):
pass
@abstractmethod
def getAnalyticData(self, imageName):
pass
| 11.684211
| 47
| 0.671171
| 20
| 222
| 7.45
| 0.65
| 0.228188
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.265766
| 222
| 18
| 48
| 12.333333
| 0.91411
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.125
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
6e627757277c0ed89c74f11925de556b085119b7
| 102
|
py
|
Python
|
Session-3/Lists/S3LS17.py
|
saianuragpeddu/python-assignemts
|
a6bb192f2c0ef8ea86531c1a98f1b76150fa474b
|
[
"MIT"
] | null | null | null |
Session-3/Lists/S3LS17.py
|
saianuragpeddu/python-assignemts
|
a6bb192f2c0ef8ea86531c1a98f1b76150fa474b
|
[
"MIT"
] | null | null | null |
Session-3/Lists/S3LS17.py
|
saianuragpeddu/python-assignemts
|
a6bb192f2c0ef8ea86531c1a98f1b76150fa474b
|
[
"MIT"
] | 1
|
2019-07-06T02:37:58.000Z
|
2019-07-06T02:37:58.000Z
|
def transpose(matrix):
return map(list, zip(*matrix))
M = [[1,2,3], [4,5,6]]
print(transpose(M))
| 17
| 34
| 0.607843
| 18
| 102
| 3.444444
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0.147059
| 102
| 5
| 35
| 20.4
| 0.643678
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.5
| 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
6e7bd2891b3d8c6e1f2ff7431a0258ea93c458a3
| 91
|
py
|
Python
|
tools/evaluation/__init__.py
|
MeowMeowLady/InstanceSeg-Without-Voxelwise-Labeling
|
5ac8ceb42d3c82b4c31871d14654e7444b3b1629
|
[
"MIT"
] | 7
|
2019-10-23T08:44:06.000Z
|
2021-11-07T14:29:04.000Z
|
tools/evaluation/__init__.py
|
MeowMeowLady/InstanceSeg-Without-Voxelwise-Labeling
|
5ac8ceb42d3c82b4c31871d14654e7444b3b1629
|
[
"MIT"
] | 1
|
2020-09-05T10:52:53.000Z
|
2020-09-05T10:52:53.000Z
|
tools/evaluation/__init__.py
|
MeowMeowLady/InstanceSeg-Without-Voxelwise-Labeling
|
5ac8ceb42d3c82b4c31871d14654e7444b3b1629
|
[
"MIT"
] | 1
|
2020-03-27T13:33:18.000Z
|
2020-03-27T13:33:18.000Z
|
# -*- coding: utf-8 -*-
"""
Created on 19-1-24 上午11:32
IDE PyCharm
@author: Meng Dong
"""
| 13
| 26
| 0.593407
| 15
| 91
| 3.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135135
| 0.186813
| 91
| 7
| 27
| 13
| 0.594595
| 0.901099
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e917b27aeae92f23e588ffe3c7382b4996e9e41
| 19
|
py
|
Python
|
tests/__init__.py
|
LordofSea/rhasspy-fuzzywuzzy
|
68ba167174286e96f95e350d1711fb21b9d31351
|
[
"MIT"
] | 2
|
2020-06-16T06:33:14.000Z
|
2021-10-30T17:30:37.000Z
|
tests/__init__.py
|
LordofSea/rhasspy-fuzzywuzzy
|
68ba167174286e96f95e350d1711fb21b9d31351
|
[
"MIT"
] | 5
|
2020-06-02T15:26:28.000Z
|
2021-06-08T19:03:47.000Z
|
tests/__init__.py
|
LordofSea/rhasspy-fuzzywuzzy
|
68ba167174286e96f95e350d1711fb21b9d31351
|
[
"MIT"
] | 5
|
2020-05-08T17:01:04.000Z
|
2021-02-23T00:02:50.000Z
|
"""No tests yet"""
| 9.5
| 18
| 0.526316
| 3
| 19
| 3.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 19
| 1
| 19
| 19
| 0.625
| 0.631579
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
42c0118e068095f3290c58d520025173d57bf979
| 193
|
py
|
Python
|
kiwi-entry/kiwi/enricher/Enricher.py
|
bubblegumsoldier/kiwi
|
91701c1806dcfbc1b038fecf7c2cab8bb07a01d4
|
[
"MIT"
] | null | null | null |
kiwi-entry/kiwi/enricher/Enricher.py
|
bubblegumsoldier/kiwi
|
91701c1806dcfbc1b038fecf7c2cab8bb07a01d4
|
[
"MIT"
] | null | null | null |
kiwi-entry/kiwi/enricher/Enricher.py
|
bubblegumsoldier/kiwi
|
91701c1806dcfbc1b038fecf7c2cab8bb07a01d4
|
[
"MIT"
] | null | null | null |
class Enricher:
def __init__(self, connection=None):
self._connection = connection
async def enrich(self, post_ids):
return await self._connection.find_many(post_ids)
| 24.125
| 57
| 0.704663
| 24
| 193
| 5.291667
| 0.625
| 0.330709
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212435
| 193
| 7
| 58
| 27.571429
| 0.835526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
42d78b09f448a073d6dc65dba7ed4ab4e4d73f00
| 34
|
py
|
Python
|
UNET_EM_DATASET/UNET_EM_DATASET_a4_0_w0_2/layover.py
|
hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation
|
f919935b975461052d5196372a837356379f973a
|
[
"MIT"
] | 69
|
2019-07-28T06:53:55.000Z
|
2022-03-22T01:07:28.000Z
|
UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/layover.py
|
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
|
4835a3d08b38617b952023f19bf59679126f5f59
|
[
"MIT"
] | 6
|
2019-08-02T07:47:09.000Z
|
2021-06-11T14:35:53.000Z
|
UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/layover.py
|
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
|
4835a3d08b38617b952023f19bf59679126f5f59
|
[
"MIT"
] | 20
|
2019-08-10T07:08:56.000Z
|
2021-10-09T17:02:30.000Z
|
../UNET_EM_DATASET_BASE/layover.py
| 34
| 34
| 0.852941
| 6
| 34
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 34
| 1
| 34
| 34
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e2145e35bb1d493668acedf53a43a3164a67e98
| 1,045
|
py
|
Python
|
kfdata/tests/test_relationship.py
|
kylef-archive/KFData.py
|
685d58255c9f8518834e395d94d3b75d3dd3eceb
|
[
"BSD-3-Clause"
] | 1
|
2015-11-08T13:23:39.000Z
|
2015-11-08T13:23:39.000Z
|
kfdata/tests/test_relationship.py
|
kylef/KFData.py
|
685d58255c9f8518834e395d94d3b75d3dd3eceb
|
[
"BSD-3-Clause"
] | null | null | null |
kfdata/tests/test_relationship.py
|
kylef/KFData.py
|
685d58255c9f8518834e395d94d3b75d3dd3eceb
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
from kfdata.relationship import Relationship
class RelationshipTests(unittest.TestCase):
def setUp(self):
self.relationship = Relationship('owner', 'Person')
def test_creation(self):
self.assertEqual(self.relationship.name, 'owner')
def test_str(self):
self.assertEqual(str(self.relationship), 'owner')
def test_repr(self):
self.assertEqual(repr(self.relationship), '<Relationship owner>')
def test_equality(self):
self.assertEqual(self.relationship, Relationship('owner', 'Person'))
def test_inequality(self):
self.assertNotEqual(self.relationship, Relationship('otherOwner', 'Person'))
def test_relstionship_to_many(self):
self.assertTrue(self.relationship.is_to_many)
self.assertFalse(self.relationship.is_to_one)
def test_relstionship_to_one(self):
relationship = Relationship('owner', 'Person', maximum_count=1)
self.assertFalse(relationship.is_to_many)
self.assertTrue(relationship.is_to_one)
| 31.666667
| 84
| 0.714833
| 117
| 1,045
| 6.213675
| 0.282051
| 0.198074
| 0.192572
| 0.181568
| 0.320495
| 0.126547
| 0.126547
| 0
| 0
| 0
| 0
| 0.001156
| 0.172249
| 1,045
| 32
| 85
| 32.65625
| 0.839306
| 0
| 0
| 0
| 0
| 0
| 0.075598
| 0
| 0
| 0
| 0
| 0
| 0.409091
| 1
| 0.363636
| false
| 0
| 0.090909
| 0
| 0.5
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
6e2ca74dcfb47d8e63fafa40333dba2ce11198f7
| 57
|
py
|
Python
|
mod.py
|
ecator/anki-translator
|
861406501bd7ea3f8cd5b46af5c242a815e48b0b
|
[
"MIT"
] | null | null | null |
mod.py
|
ecator/anki-translator
|
861406501bd7ea3f8cd5b46af5c242a815e48b0b
|
[
"MIT"
] | null | null | null |
mod.py
|
ecator/anki-translator
|
861406501bd7ea3f8cd5b46af5c242a815e48b0b
|
[
"MIT"
] | null | null | null |
#coding=utf8
def say(str):
print str
pass
name='martin'
| 11.4
| 13
| 0.719298
| 10
| 57
| 4.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020408
| 0.140351
| 57
| 5
| 14
| 11.4
| 0.816327
| 0.192982
| 0
| 0
| 0
| 0
| 0.130435
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.25
| 0
| null | null | 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
6e547825707cb6dab0987fb96ef473ff034f147b
| 321
|
py
|
Python
|
Exp2/Strategy/StrategyCreateFunctionHeader.py
|
inventivejon/INPROLA-Python
|
8aab11a868b37a64c46e6287bf358b5b05673a28
|
[
"Apache-2.0"
] | null | null | null |
Exp2/Strategy/StrategyCreateFunctionHeader.py
|
inventivejon/INPROLA-Python
|
8aab11a868b37a64c46e6287bf358b5b05673a28
|
[
"Apache-2.0"
] | null | null | null |
Exp2/Strategy/StrategyCreateFunctionHeader.py
|
inventivejon/INPROLA-Python
|
8aab11a868b37a64c46e6287bf358b5b05673a28
|
[
"Apache-2.0"
] | null | null | null |
from StrategyBaseClass import StrategyBaseClass
class StrategyCreateFunctionHeader(StrategyBaseClass):
def __init__(self):
pass
def fit_to_dataset(self, context) -> bool:
return "function_name" in context
def execute(self, context):
return "def {}:".format(context["function_name"])
| 29.181818
| 57
| 0.713396
| 33
| 321
| 6.69697
| 0.606061
| 0.099548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193146
| 321
| 11
| 57
| 29.181818
| 0.853282
| 0
| 0
| 0
| 0
| 0
| 0.102484
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0.125
| 0.125
| 0.25
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
280b214c6cab42d48a8116349b8d500f4debf20b
| 165
|
py
|
Python
|
mmdet/ops/ConvOp/__init__.py
|
NceBoy/mmd_nce
|
47223e88661701a87413136d572f1a56d05d0f03
|
[
"Apache-2.0"
] | 1
|
2021-12-25T13:22:39.000Z
|
2021-12-25T13:22:39.000Z
|
mmdet/ops/ConvOp/__init__.py
|
NceBoy/mmd_nce
|
47223e88661701a87413136d572f1a56d05d0f03
|
[
"Apache-2.0"
] | null | null | null |
mmdet/ops/ConvOp/__init__.py
|
NceBoy/mmd_nce
|
47223e88661701a87413136d572f1a56d05d0f03
|
[
"Apache-2.0"
] | 1
|
2021-02-01T13:33:26.000Z
|
2021-02-01T13:33:26.000Z
|
from .ACConv import ACBlock
from .Conv import SepConv, NormalConv
from .RepVGGBlock import RepVGGBlock
__all__ = ['ACBlock', 'SepConv', 'NormalConv', 'RepVGGBlock']
| 33
| 61
| 0.775758
| 18
| 165
| 6.888889
| 0.5
| 0.274194
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115152
| 165
| 5
| 61
| 33
| 0.849315
| 0
| 0
| 0
| 0
| 0
| 0.210843
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
280cb704bcbac57eaa615bbc6e5c87216d838c3a
| 17
|
py
|
Python
|
km/__init__.py
|
iric-soft/km
|
d846d1b7c9cc19fcf263e64fe05080f274610d0c
|
[
"MIT"
] | 9
|
2017-12-18T23:38:19.000Z
|
2022-03-18T13:52:56.000Z
|
km/__init__.py
|
iric-soft/km
|
d846d1b7c9cc19fcf263e64fe05080f274610d0c
|
[
"MIT"
] | 11
|
2018-07-10T18:37:48.000Z
|
2022-02-28T09:15:01.000Z
|
km/__init__.py
|
iric-soft/km
|
d846d1b7c9cc19fcf263e64fe05080f274610d0c
|
[
"MIT"
] | 5
|
2017-10-27T15:13:31.000Z
|
2021-02-10T17:53:13.000Z
|
__all__ = ['km']
| 8.5
| 16
| 0.529412
| 2
| 17
| 2.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.176471
| 17
| 1
| 17
| 17
| 0.357143
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 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
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
281801460fa386a9dfdbb693ab78435ab895d3f9
| 747
|
py
|
Python
|
rumble.py
|
Driftwood2D/blue
|
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
|
[
"MIT"
] | null | null | null |
rumble.py
|
Driftwood2D/blue
|
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
|
[
"MIT"
] | null | null | null |
rumble.py
|
Driftwood2D/blue
|
02b5bd3dbbc8fe2836f88c8beaa0955344cc7998
|
[
"MIT"
] | null | null | null |
def rumble(rate, intensity, duration):
__end_regular_rumble()
_["viewport"].rumble(rate, intensity, duration)
def regular_rumble(rate, intensity, duration, interval):
__end_regular_rumble()
def _rumble():
_["viewport"].rumble(rate, intensity, duration)
_["regular_rumble"] = _rumble
Driftwood.tick.register(_rumble, delay=interval)
def __end_regular_rumble():
if "regular_rumble" in Driftwood.vars:
Driftwood.tick.unregister(Driftwood.vars["regular_rumble"])
del Driftwood.vars["regular_rumble"]
def constant_rumble(rate, intensity):
__end_regular_rumble()
_["viewport"].rumble(rate, intensity, None)
def end_rumble():
__end_regular_rumble()
_["viewport"].end_rumble()
| 24.9
| 67
| 0.709505
| 83
| 747
| 5.951807
| 0.240964
| 0.263158
| 0.230769
| 0.218623
| 0.273279
| 0.273279
| 0.174089
| 0
| 0
| 0
| 0
| 0
| 0.16332
| 747
| 29
| 68
| 25.758621
| 0.7904
| 0
| 0
| 0.315789
| 0
| 0
| 0.117805
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0
| 0
| 0
| 0.315789
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
289c85e47be42be4c6b8eb47865eff2dbcd7fcf4
| 108
|
py
|
Python
|
partI_basics/Chapter3_introducing_lists/Mootorcycles.py
|
hao-beixi/PythonCrashCourse
|
194736bac3c22976d7e3fbdc8ea1f13fd30e9879
|
[
"MIT"
] | null | null | null |
partI_basics/Chapter3_introducing_lists/Mootorcycles.py
|
hao-beixi/PythonCrashCourse
|
194736bac3c22976d7e3fbdc8ea1f13fd30e9879
|
[
"MIT"
] | null | null | null |
partI_basics/Chapter3_introducing_lists/Mootorcycles.py
|
hao-beixi/PythonCrashCourse
|
194736bac3c22976d7e3fbdc8ea1f13fd30e9879
|
[
"MIT"
] | null | null | null |
motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles)
motorcycles[0] = 'ducati'
print(motorcycles)
| 21.6
| 43
| 0.722222
| 11
| 108
| 7.090909
| 0.636364
| 0.410256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010204
| 0.092593
| 108
| 5
| 44
| 21.6
| 0.785714
| 0
| 0
| 0.5
| 0
| 0
| 0.211009
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
289f6c47a89a67e3d8f4b1af535ae59c18e6b7a0
| 134
|
py
|
Python
|
01.HelloWorld/HelloWorld.py
|
sarincr/MySQL-Database-with-Python
|
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
|
[
"MIT"
] | null | null | null |
01.HelloWorld/HelloWorld.py
|
sarincr/MySQL-Database-with-Python
|
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
|
[
"MIT"
] | null | null | null |
01.HelloWorld/HelloWorld.py
|
sarincr/MySQL-Database-with-Python
|
b9cc99f6f5ec2de1bf505458a7d446fb91c2136d
|
[
"MIT"
] | null | null | null |
import mysql.connector
db_obj = mysql.connector.connect(
host="localhost",
user="username",
password="password"
)
print(db_obj)
| 16.75
| 33
| 0.738806
| 17
| 134
| 5.705882
| 0.705882
| 0.28866
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 134
| 7
| 34
| 19.142857
| 0.822034
| 0
| 0
| 0
| 0
| 0
| 0.186567
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0.142857
| 0
| 0.142857
| 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
95372d4cdcc0a9a242543c7dbf24752e42013bd1
| 249
|
py
|
Python
|
sphinxcontrib/autohttp/__init__.py
|
douardda/httpdomain
|
e547ea36f1b896f0cf94ae56f6b29be589abc6e6
|
[
"BSD-2-Clause"
] | 53
|
2017-10-22T11:57:38.000Z
|
2022-02-24T07:53:06.000Z
|
sphinxcontrib/autohttp/__init__.py
|
douardda/httpdomain
|
e547ea36f1b896f0cf94ae56f6b29be589abc6e6
|
[
"BSD-2-Clause"
] | 44
|
2018-01-08T13:43:53.000Z
|
2022-02-21T05:09:46.000Z
|
sphinxcontrib/autohttp/__init__.py
|
douardda/httpdomain
|
e547ea36f1b896f0cf94ae56f6b29be589abc6e6
|
[
"BSD-2-Clause"
] | 40
|
2018-01-09T01:47:44.000Z
|
2022-03-23T15:38:14.000Z
|
"""
sphinxcontrib.autohttp
~~~~~~~~~~~~~~~~~~~~~~
The sphinx.ext.autodoc-style HTTP API reference builder
for sphinxcontrib.httpdomain.
:copyright: Copyright 2011 by Hong Minhee
:license: BSD, see LICENSE for details.
"""
| 20.75
| 59
| 0.634538
| 26
| 249
| 6.076923
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020202
| 0.204819
| 249
| 11
| 60
| 22.636364
| 0.777778
| 0.863454
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.090909
| 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
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9540009ec7b30c210388c3c49175f977e48ddc5b
| 413
|
py
|
Python
|
dmch/common.py
|
pjordan/dmch
|
84e04ddb0679007b15acfdc275e0e3f51e50d9f2
|
[
"Apache-2.0"
] | null | null | null |
dmch/common.py
|
pjordan/dmch
|
84e04ddb0679007b15acfdc275e0e3f51e50d9f2
|
[
"Apache-2.0"
] | null | null | null |
dmch/common.py
|
pjordan/dmch
|
84e04ddb0679007b15acfdc275e0e3f51e50d9f2
|
[
"Apache-2.0"
] | 1
|
2020-02-12T23:58:40.000Z
|
2020-02-12T23:58:40.000Z
|
import torch
def to_inputs(bids, context):
return torch.cat((bids,context), dim=1)
def from_inputs(inputs, bidders):
return torch.split(inputs, (bidders,inputs.shape[1]-bidders), dim=1)
def utility(allocation, payment, values):
return allocation*values-payment
def revenue(payment):
return payment.sum(dim=-1)
def welfare(allocation, values):
return (allocation * values).sum(dim=-1)
| 24.294118
| 72
| 0.716707
| 57
| 413
| 5.157895
| 0.385965
| 0.054422
| 0.071429
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014205
| 0.1477
| 413
| 16
| 73
| 25.8125
| 0.821023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0
| 0.090909
| 0.454545
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
95514079bbf590abb5a9c778fb54b7ff7b67b147
| 82
|
py
|
Python
|
wsgi.py
|
VisExcell/riskmodels
|
012bbfd563482ba09585cd042b1f9465253ab1f4
|
[
"MIT"
] | 2
|
2019-11-04T20:57:11.000Z
|
2021-04-08T08:05:45.000Z
|
wsgi.py
|
VisExcell/riskmodels
|
012bbfd563482ba09585cd042b1f9465253ab1f4
|
[
"MIT"
] | null | null | null |
wsgi.py
|
VisExcell/riskmodels
|
012bbfd563482ba09585cd042b1f9465253ab1f4
|
[
"MIT"
] | 2
|
2020-09-22T17:05:04.000Z
|
2021-02-05T17:12:28.000Z
|
from calculators import app
if "__name__"=="__main__":
app.run(host='0.0.0.0')
| 16.4
| 27
| 0.682927
| 14
| 82
| 3.428571
| 0.714286
| 0.125
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055556
| 0.121951
| 82
| 4
| 28
| 20.5
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0.280488
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
955c61d766ba6d8c36087ac01080c7baa483ad12
| 60
|
py
|
Python
|
codewof/codewof/management/__init__.py
|
lucyturn3r/codewof
|
acb2860c4b216013ffbba5476d5fac1616c78454
|
[
"MIT"
] | null | null | null |
codewof/codewof/management/__init__.py
|
lucyturn3r/codewof
|
acb2860c4b216013ffbba5476d5fac1616c78454
|
[
"MIT"
] | null | null | null |
codewof/codewof/management/__init__.py
|
lucyturn3r/codewof
|
acb2860c4b216013ffbba5476d5fac1616c78454
|
[
"MIT"
] | null | null | null |
"""Module for the management of the CodeWOF application."""
| 30
| 59
| 0.75
| 8
| 60
| 5.625
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 60
| 1
| 60
| 60
| 0.865385
| 0.883333
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9568c244b281a33cd2f6fec6f1dc82a3c548cd18
| 81
|
py
|
Python
|
src/ufdl/annotations_plugin/common/__init__.py
|
waikato-ufdl/ufdl-annotations-plugin
|
9eb3d807e35215ad9cfbd4aa651d7f7142e83efe
|
[
"Apache-2.0"
] | null | null | null |
src/ufdl/annotations_plugin/common/__init__.py
|
waikato-ufdl/ufdl-annotations-plugin
|
9eb3d807e35215ad9cfbd4aa651d7f7142e83efe
|
[
"Apache-2.0"
] | 4
|
2020-07-29T04:09:13.000Z
|
2020-11-22T20:52:18.000Z
|
src/ufdl/annotations_plugin/common/__init__.py
|
waikato-ufdl/ufdl-annotations-plugin
|
9eb3d807e35215ad9cfbd4aa651d7f7142e83efe
|
[
"Apache-2.0"
] | null | null | null |
"""
Contains base classes for common functionality between all data domains.
"""
| 20.25
| 72
| 0.765432
| 10
| 81
| 6.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 81
| 3
| 73
| 27
| 0.898551
| 0.888889
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9598934cbeb83296932b4c1ff4a226236a53cf36
| 382
|
py
|
Python
|
taskmanager/app/views.py
|
richzli/Task-Manager
|
de1e0125ec3643afe2d49f9104755b3235c7669e
|
[
"MIT"
] | null | null | null |
taskmanager/app/views.py
|
richzli/Task-Manager
|
de1e0125ec3643afe2d49f9104755b3235c7669e
|
[
"MIT"
] | 2
|
2019-09-13T22:51:00.000Z
|
2019-12-05T04:57:26.000Z
|
taskmanager/app/views.py
|
richzli/Task-Manager
|
de1e0125ec3643afe2d49f9104755b3235c7669e
|
[
"MIT"
] | null | null | null |
from flask import render_template
from taskmanager.app import app
@app.route("/")
def home():
return render_template("home.html")
@app.route("/index/")
def index():
return render_template("index.html")
@app.route("/about/")
def about():
return render_template("about.html")
@app.route("/app/")
def app():
tasks = core.get_tasks()
return render_template()
| 16.608696
| 40
| 0.67801
| 51
| 382
| 4.960784
| 0.333333
| 0.27668
| 0.316206
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151832
| 382
| 23
| 41
| 16.608696
| 0.780864
| 0
| 0
| 0
| 0
| 0
| 0.127937
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.266667
| false
| 0
| 0.133333
| 0.2
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
95b14553c9953f8601807e14d2919d00dc965555
| 119
|
py
|
Python
|
pysysbot/constants.py
|
fabaff/pysysbot
|
bd6b37e6e38f487aff06fa126efd9fd4e6164712
|
[
"BSD-2-Clause-FreeBSD"
] | 3
|
2017-03-15T22:01:34.000Z
|
2021-04-02T17:25:49.000Z
|
pysysbot/constants.py
|
fabaff/pysysbot
|
bd6b37e6e38f487aff06fa126efd9fd4e6164712
|
[
"BSD-2-Clause-FreeBSD"
] | 1
|
2016-07-04T16:56:56.000Z
|
2016-07-04T16:56:56.000Z
|
pysysbot/constants.py
|
fabaff/pysysbot
|
bd6b37e6e38f487aff06fa126efd9fd4e6164712
|
[
"BSD-2-Clause-FreeBSD"
] | null | null | null |
"""Constants used by pysysbot."""
VERSION = '0.3.0'
AUTHOR_EMAIL = "Fabian Affolter <fabian@affolter-engineering.ch>"
| 23.8
| 65
| 0.722689
| 16
| 119
| 5.3125
| 0.8125
| 0.329412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028302
| 0.109244
| 119
| 4
| 66
| 29.75
| 0.773585
| 0.226891
| 0
| 0
| 0
| 0
| 0.616279
| 0.372093
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
95c184c6a6b2d5a9539f11974f9c694e8f5feb93
| 274
|
py
|
Python
|
statcord/exceptions.py
|
Py-Ryan/statcord.py
|
4b2df60d83b883c18f7c0889c0c7be647c65b871
|
[
"MIT"
] | null | null | null |
statcord/exceptions.py
|
Py-Ryan/statcord.py
|
4b2df60d83b883c18f7c0889c0c7be647c65b871
|
[
"MIT"
] | null | null | null |
statcord/exceptions.py
|
Py-Ryan/statcord.py
|
4b2df60d83b883c18f7c0889c0c7be647c65b871
|
[
"MIT"
] | null | null | null |
class StatcordException(Exception):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
class RequestFailure(StatcordException):
def __init__(self, status: int, response: str):
super().__init__("{}: {}".format(status, response))
| 30.444444
| 59
| 0.667883
| 27
| 274
| 6.185185
| 0.555556
| 0.083832
| 0.131737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164234
| 274
| 8
| 60
| 34.25
| 0.729258
| 0
| 0
| 0
| 0
| 0
| 0.021898
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
95f6c622cad6f562cc084b3ce33bedcbd2e7f14a
| 609
|
py
|
Python
|
robolearn/models/values/q_function.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | 1
|
2020-01-13T09:44:22.000Z
|
2020-01-13T09:44:22.000Z
|
robolearn/models/values/q_function.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | null | null | null |
robolearn/models/values/q_function.py
|
domingoesteban/robolearn
|
0d20125425c352b80ef2eeed1c0b11ab6497b11a
|
[
"BSD-3-Clause"
] | 1
|
2021-12-22T00:41:20.000Z
|
2021-12-22T00:41:20.000Z
|
import abc
from future.utils import with_metaclass
class QFunction(with_metaclass(abc.ABCMeta, object)):
"""
Base state-action value function (Q-function) interface.
:math:`Q(s_t,a_t)`
"""
def __init__(self, obs_dim, action_dim):
self._obs_dim = obs_dim
self._action_dim = action_dim
@abc.abstractmethod
def get_value(self, observation, action):
pass
def get_values(self, observations, actions):
pass
@property
def obs_dim(self):
return self._obs_dim
@property
def action_dim(self):
return self._action_dim
| 21.75
| 60
| 0.658456
| 80
| 609
| 4.7125
| 0.45
| 0.079576
| 0.079576
| 0.090186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.247947
| 609
| 27
| 61
| 22.555556
| 0.823144
| 0.123153
| 0
| 0.235294
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294118
| false
| 0.117647
| 0.117647
| 0.117647
| 0.588235
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
253b9bd988f37da852e97fd97c1b2c51a6bb0790
| 7,403
|
py
|
Python
|
db_manager.py
|
mbasart/ORM-analysis
|
2075e1fbf352ce79e821d78325c12ac974b49389
|
[
"MIT"
] | null | null | null |
db_manager.py
|
mbasart/ORM-analysis
|
2075e1fbf352ce79e821d78325c12ac974b49389
|
[
"MIT"
] | null | null | null |
db_manager.py
|
mbasart/ORM-analysis
|
2075e1fbf352ce79e821d78325c12ac974b49389
|
[
"MIT"
] | null | null | null |
import MySQLdb
import ast
def get_dbs():
#db_orm = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORM")
db_dont = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORMdontCare")
db_ninja = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORMninja")
db_click = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORMclick")
db_geo = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORMgeo")
db_pablo = MySQLdb.connect(host="127.0.0.1", port=3306, user="toor", passwd="pinacolada", db="ORMpablo")
return db_dont, db_ninja, db_click, db_geo, db_pablo
def get_headers_cookies(db, domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT DISTINCT domain.name, url.id, url.headers, url.url " \
f"FROM domain, url, domain_url " \
f"WHERE domain.id = domain_url.domain_id " \
f"AND domain_url.url_id = url.id " \
f"AND domain.name = '{domain}' " \
f"AND url.headers LIKE '%\\'set-cookie\\':%'"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
def get_all_headers(db, domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT DISTINCT domain.name, url.id, url.headers, url.url " \
f"FROM domain, url, domain_url " \
f"WHERE domain.id = domain_url.domain_id " \
f"AND domain_url.url_id = url.id " \
f"AND domain.name = '{domain}'"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
def get_count_urls(db, domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT COUNT(DISTINCT url.id) as total_urls " \
f"FROM domain, url, domain_url " \
f"WHERE domain.id = domain_url.domain_id " \
f"AND domain_url.url_id = url.id " \
f"AND domain.name = '{domain}'"
cursor.execute(query)
results = cursor.fetchall()
total_cookies = int(results[0]["total_urls"])
cursor.close()
return total_cookies
def get_count_cookies(db, domain):
total_cookies = 0
try:
requests = get_all_headers(db, domain)
except UnicodeDecodeError:
print("MySQLdb doing strange things with unicode")
else:
for request in requests:
if request["headers"] is not None and ((request["headers"].find("set-cookie") != -1) or (request["headers"].find("Set-Cookie") != -1)):
total_cookies += len(request["headers"].split("set-cookie"))-1
total_cookies += len(request["headers"].split("Set-Cookie"))-1
#if request["headers"].find("domain") != -1:
#print(request["headers"])
'''
try:
if "set-cookie" not in request["headers"] and "Set-Cookie" not in request["headers"]:
continue
header_dict = ast.literal_eval(request["headers"])
if 'set-cookie' in header_dict:
cookies_list = str.split(header_dict["set-cookie"], "\n")
total_cookies += len(cookies_list) - 1
elif 'Set-Cookie' in header_dict:
cookies_list = str.split(header_dict["Set-Cookie"], "\n")
total_cookies += len(cookies_list) - 1
except:
print("Unhandled Error")
'''
return total_cookies
def get_clicked(db, domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT clicked " \
f"FROM domain " \
f"WHERE name='{domain}'"
cursor.execute(query)
results = cursor.fetchall()
clicked_bool = bool(results[0]["clicked"])
cursor.close()
return clicked_bool
def get_total_clicked(db):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT SUM(clicked) AS clicks " \
f"FROM ORM.domain"
cursor.execute(query)
results = cursor.fetchall()
total_clicks = int(results[0]["clicks"])
cursor.close()
return total_clicks
def get_domains(db):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT domain.id, domain.name " \
f"FROM domain"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
def get_geoLocationDom(db,domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT DISTINCT location.country_code, url.headers " \
f"FROM url JOIN location " \
f"ON url.id = location.id " \
f"WHERE url.url LIKE '%{domain}%'"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
#print(key)
#print(row["country_code"])
result = row["country_code"]
#result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
def get_geoLocation(db,domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT DISTINCT location.country_code " \
f"FROM location, domain, url, domain_url " \
f"WHERE domain.id = domain_url.domain_id " \
f"AND domain_url.url_id = url.id " \
f"AND url.id = location.id " \
f"AND domain.name = '{domain}'"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
def get_geoLocationDomHead(db,domain):
cursor = db.cursor(MySQLdb.cursors.DictCursor)
query = f"SELECT DISTINCT location.country_code, url.headers " \
f"FROM url JOIN location " \
f"ON url.id = location.id " \
f"WHERE url.url LIKE '%{domain}%'"
cursor.execute(query)
results = []
for row in cursor.fetchall():
result = {}
for key in row.keys():
#print(key)
#print(row["country_code"])
#result = row["country_code"]
if row["headers"].find(domain) != -1:
result = True #It is first party domain
else:
result = False #It is third party domain
#result[key] = row[key]
if row[key] == "NULL":
result[key] = None
results.append(result)
cursor.close()
return results
| 29.97166
| 147
| 0.567608
| 908
| 7,403
| 4.539648
| 0.128855
| 0.034935
| 0.030568
| 0.045852
| 0.774139
| 0.75182
| 0.727074
| 0.727074
| 0.698447
| 0.698447
| 0
| 0.013849
| 0.297717
| 7,403
| 247
| 148
| 29.97166
| 0.778996
| 0.048224
| 0
| 0.6875
| 0
| 0
| 0.237901
| 0.013514
| 0
| 0
| 0
| 0
| 0
| 1
| 0.06875
| false
| 0.03125
| 0.0125
| 0
| 0.15
| 0.00625
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
c2583d1e251def52084a4b73b4923f2dc8686f80
| 87
|
py
|
Python
|
coverage-3.7.1/tests/farm/annotate/src/a/a.py
|
I-Valchev/UrPas
|
7babb5208fab6975891fba440e633cc9ad6e8718
|
[
"Apache-2.0"
] | 1
|
2015-03-04T09:00:44.000Z
|
2015-03-04T09:00:44.000Z
|
coverage-3.7.1/tests/farm/annotate/src/a/a.py
|
I-Valchev/UrPas
|
7babb5208fab6975891fba440e633cc9ad6e8718
|
[
"Apache-2.0"
] | null | null | null |
coverage-3.7.1/tests/farm/annotate/src/a/a.py
|
I-Valchev/UrPas
|
7babb5208fab6975891fba440e633cc9ad6e8718
|
[
"Apache-2.0"
] | null | null | null |
def a(x):
if x == 1:
print("x is 1")
else:
print("x is not 1")
| 14.5
| 27
| 0.390805
| 16
| 87
| 2.125
| 0.5625
| 0.352941
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061224
| 0.436782
| 87
| 5
| 28
| 17.4
| 0.632653
| 0
| 0
| 0
| 0
| 0
| 0.183908
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.2
| 0.4
| 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
| 0
| 0
| 0
| 0
|
0
| 4
|
c293d56e30220c1cba5f2412475c10c5afeddd1b
| 142
|
py
|
Python
|
udfalcon/lib/__init__.py
|
udacity/falcon
|
ac0c04b0310dd0301b3fd0565b2ab885b0b92d54
|
[
"MIT"
] | 5
|
2017-02-09T20:22:46.000Z
|
2020-08-02T20:10:47.000Z
|
udfalcon/lib/__init__.py
|
udacity/falcon
|
ac0c04b0310dd0301b3fd0565b2ab885b0b92d54
|
[
"MIT"
] | 3
|
2017-01-18T18:52:36.000Z
|
2017-11-30T22:48:15.000Z
|
udfalcon/lib/__init__.py
|
udacity/falcon
|
ac0c04b0310dd0301b3fd0565b2ab885b0b92d54
|
[
"MIT"
] | 4
|
2017-11-29T01:03:15.000Z
|
2019-04-24T05:02:52.000Z
|
import os
_ROOT = os.path.abspath(os.path.dirname(__file__))
def get_lib(path):
return os.path.join(_ROOT, path)
__all__ = ['get_lib']
| 15.777778
| 50
| 0.704225
| 23
| 142
| 3.826087
| 0.565217
| 0.204545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140845
| 142
| 8
| 51
| 17.75
| 0.721311
| 0
| 0
| 0
| 0
| 0
| 0.049296
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 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
| 0
| 1
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.