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
ecaafd0b5727427ba069b55f56c4c415a6f82623
175
py
Python
model/components/ally_component.py
MattJTrueblood/Allies_RL_Prototype
1c7c4360156d0dc5ff53c49401d25026761862df
[ "Unlicense" ]
1
2018-11-19T19:51:49.000Z
2018-11-19T19:51:49.000Z
model/components/ally_component.py
MattJTrueblood/Allies_RL_Prototype
1c7c4360156d0dc5ff53c49401d25026761862df
[ "Unlicense" ]
null
null
null
model/components/ally_component.py
MattJTrueblood/Allies_RL_Prototype
1c7c4360156d0dc5ff53c49401d25026761862df
[ "Unlicense" ]
null
null
null
from model.components.base_component import BaseComponent class AllyComponent(BaseComponent): def __init__(self, parent_entity): super().__init__(parent_entity)
25
57
0.782857
19
175
6.631579
0.789474
0.190476
0
0
0
0
0
0
0
0
0
0
0.137143
175
6
58
29.166667
0.834437
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
1
0
0
4
ecab48669548d118a75e9a2263ade2e49306108b
458
py
Python
shapenet/modeling/heads/__init__.py
rakeshshrestha31/meshmvs
e82cf0121ae49dd781d87d172218f41a882e3c04
[ "BSD-3-Clause" ]
6
2020-12-11T11:38:59.000Z
2022-03-24T03:21:11.000Z
shapenet/modeling/heads/__init__.py
rakeshshrestha31/meshmvs
e82cf0121ae49dd781d87d172218f41a882e3c04
[ "BSD-3-Clause" ]
null
null
null
shapenet/modeling/heads/__init__.py
rakeshshrestha31/meshmvs
e82cf0121ae49dd781d87d172218f41a882e3c04
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .mesh_head import MeshRefinementHead from .mesh_loss import MeshLoss from .voxel_head import VoxelHead from .mvsnet import MVSNet from .depth_renderer import DepthRenderer from .multihead_attention import MultiheadAttention from .multihead_attention_feature_pooling import MultiHeadAttentionFeaturePooling from .simple_attention_feature_pooling import SimpleAttentionFeaturePooling
45.8
81
0.875546
53
458
7.358491
0.584906
0.041026
0.112821
0.148718
0
0
0
0
0
0
0
0
0.093886
458
9
82
50.888889
0.939759
0.148472
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
ece9a187c03e8f4cd4e053414852731ad4ff1ae7
187
py
Python
django/rewards/serializers.py
AdilIqbal95/Career_App
d1b50d02fc9aab543cc608e471d6cf5c4633b20e
[ "MIT" ]
null
null
null
django/rewards/serializers.py
AdilIqbal95/Career_App
d1b50d02fc9aab543cc608e471d6cf5c4633b20e
[ "MIT" ]
47
2021-05-13T13:29:12.000Z
2021-05-21T19:50:41.000Z
django/rewards/serializers.py
AdilIqbal95/Career_App
d1b50d02fc9aab543cc608e471d6cf5c4633b20e
[ "MIT" ]
2
2021-05-22T08:11:16.000Z
2021-05-22T09:51:45.000Z
from .models import Reward from rest_framework import serializers class RewardSerializer(serializers.ModelSerializer): class Meta: model = Reward fields = '__all__'
20.777778
52
0.73262
19
187
6.947368
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.213904
187
8
53
23.375
0.897959
0
0
0
0
0
0.037433
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
01cf9da9a93841593852fd0613a19bb46b48758f
197
py
Python
tests/test_constants.py
zehengl/ez-address-parser
c988a56ff0f5def34d0801b717031807f54fa18b
[ "MIT" ]
3
2020-01-30T19:34:37.000Z
2020-12-29T16:29:35.000Z
tests/test_constants.py
zehengl/ez-address-parser
c988a56ff0f5def34d0801b717031807f54fa18b
[ "MIT" ]
null
null
null
tests/test_constants.py
zehengl/ez-address-parser
c988a56ff0f5def34d0801b717031807f54fa18b
[ "MIT" ]
2
2020-10-16T17:46:38.000Z
2021-12-02T18:43:15.000Z
from ez_address_parser.constants import direction_terms, street_types, unit_designators def test_constant_values(): assert direction_terms assert street_types assert unit_designators
24.625
87
0.827411
25
197
6.12
0.68
0.183007
0
0
0
0
0
0
0
0
0
0
0.142132
197
7
88
28.142857
0.905325
0
0
0
0
0
0
0
0
0
0
0
0.6
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
01d30d3d6393677ccafdad2698b56c7232ae5808
121
py
Python
bilibili/bilibili_upload.py
mirrorhanyu/the-daily-show-with-trevor-noah
070ab3d610613119c0f6f722335c8e5192f29532
[ "Apache-2.0" ]
2
2020-04-01T06:43:27.000Z
2020-07-14T09:46:11.000Z
bilibili/bilibili_upload.py
mirrorhanyu/the-daily-show-with-trevor-noah
070ab3d610613119c0f6f722335c8e5192f29532
[ "Apache-2.0" ]
4
2020-03-17T14:00:31.000Z
2021-02-08T20:42:41.000Z
bilibili/bilibili_upload.py
mirrorhanyu/the-daily-show-with-trevor-noah
070ab3d610613119c0f6f722335c8e5192f29532
[ "Apache-2.0" ]
1
2020-03-15T09:11:15.000Z
2020-03-15T09:11:15.000Z
from bilibiliupload import Bilibili from settings import settings bilibili_upload = Bilibili(settings.BILIBILI_COOKIE)
20.166667
52
0.859504
14
121
7.285714
0.5
0.313725
0
0
0
0
0
0
0
0
0
0
0.107438
121
5
53
24.2
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
bf1bf4846b86adfe01ba3ca1e99447e72a4290ac
753
py
Python
app/utilities/strings.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
27
2015-10-02T17:27:54.000Z
2021-04-05T12:39:16.000Z
app/utilities/strings.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
1,836
2015-09-16T09:59:03.000Z
2022-03-30T14:27:06.000Z
app/utilities/strings.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
20
2016-09-09T16:56:12.000Z
2021-11-12T06:09:27.000Z
def to_bytes(bytes_or_str): """ Converts supplied data into bytes if the data is of type str. :param bytes_or_str: Data to be converted. :return: UTF-8 encoded bytes if the data was of type str. Otherwise it returns the supplied data as is. """ if isinstance(bytes_or_str, str): return bytes_or_str.encode() return bytes_or_str def to_str(bytes_or_str): """ Converts supplied data into a UTF-8 encoded string if the data is of type bytes. :param bytes_or_str: Data to be converted. :return: UTF-8 encoded string if the data was of type bytes. Otherwise it returns the supplied data as is. """ if isinstance(bytes_or_str, bytes): return bytes_or_str.decode() return bytes_or_str
35.857143
111
0.701195
126
753
4.015873
0.246032
0.13834
0.197628
0.126482
0.745059
0.745059
0.642292
0.426877
0.426877
0.426877
0
0.005181
0.231076
753
20
112
37.65
0.868739
0.584329
0
0.25
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
0
0
0
null
0
1
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
0
0
1
0
0
4
bf3d05baf96cb09e647336d5cbbce5c5f09ee954
99
py
Python
scripts/__main__.py
DemianVoksi/master_of_coin
c688c9b80c8344544fb6c1cc462db9dd840c2fc5
[ "MIT" ]
null
null
null
scripts/__main__.py
DemianVoksi/master_of_coin
c688c9b80c8344544fb6c1cc462db9dd840c2fc5
[ "MIT" ]
null
null
null
scripts/__main__.py
DemianVoksi/master_of_coin
c688c9b80c8344544fb6c1cc462db9dd840c2fc5
[ "MIT" ]
null
null
null
import classes import functions if __name__ == "__main__": functions.call_data(classes.coins)
16.5
38
0.767677
12
99
5.583333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.141414
99
5
39
19.8
0.788235
0
0
0
0
0
0.080808
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
173be2727fb6d5332ffa15deaa260299e26402c8
40
py
Python
models/__init__.py
davidqiu1993/generic-models-tf
34b11121abc7e043ee05def36404dfa3ae34019b
[ "MIT" ]
null
null
null
models/__init__.py
davidqiu1993/generic-models-tf
34b11121abc7e043ee05def36404dfa3ae34019b
[ "MIT" ]
null
null
null
models/__init__.py
davidqiu1993/generic-models-tf
34b11121abc7e043ee05def36404dfa3ae34019b
[ "MIT" ]
null
null
null
""" Copyright (C) 2019, Dicong Qiu. """
10
31
0.575
5
40
4.6
1
0
0
0
0
0
0
0
0
0
0
0.121212
0.175
40
3
32
13.333333
0.575758
0.775
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
175374bee271174378a5be06453dad02433e93e4
77
py
Python
__init__.py
anhi/obsidian-outlook-connector
cfa8654e20babea73cadd14f4d0b7185de4df93d
[ "MIT" ]
null
null
null
__init__.py
anhi/obsidian-outlook-connector
cfa8654e20babea73cadd14f4d0b7185de4df93d
[ "MIT" ]
null
null
null
__init__.py
anhi/obsidian-outlook-connector
cfa8654e20babea73cadd14f4d0b7185de4df93d
[ "MIT" ]
null
null
null
from OutlookConnector import OutlookConnector __all__ = ['OutlookConnector']
25.666667
45
0.844156
6
77
10.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.090909
77
3
46
25.666667
0.871429
0
0
0
0
0
0.205128
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
175d6ea8938fe7605fc86cd9a761164e5427e679
151
py
Python
visualization/backend/backend_application/repository/db_config.py
INSO-TUWien/portfoliometrix
f01df7c556d3b40bc0668fd49c3961daaa64096f
[ "MIT" ]
null
null
null
visualization/backend/backend_application/repository/db_config.py
INSO-TUWien/portfoliometrix
f01df7c556d3b40bc0668fd49c3961daaa64096f
[ "MIT" ]
null
null
null
visualization/backend/backend_application/repository/db_config.py
INSO-TUWien/portfoliometrix
f01df7c556d3b40bc0668fd49c3961daaa64096f
[ "MIT" ]
null
null
null
class ARANGODB: """ Arango DB configuration """ URL = 'http://arangodb:8529' USER = 'root' PASSWORD = '' DB_NAME = 'thesis'
18.875
32
0.543046
15
151
5.4
0.866667
0
0
0
0
0
0
0
0
0
0
0.038095
0.304636
151
8
33
18.875
0.733333
0.152318
0
0
0
0
0.265487
0
0
0
0
0
0
1
0
false
0.2
0
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
1
0
0
1
0
0
4
bdc3be079f8ebcc2ccc048ae97a95332b3f1d9d9
192
py
Python
movies/api/serializers.py
Aldreks/API_Filmes
79501be530fea739c5f6735040660c46967f6c86
[ "MIT" ]
null
null
null
movies/api/serializers.py
Aldreks/API_Filmes
79501be530fea739c5f6735040660c46967f6c86
[ "MIT" ]
null
null
null
movies/api/serializers.py
Aldreks/API_Filmes
79501be530fea739c5f6735040660c46967f6c86
[ "MIT" ]
null
null
null
from rest_framework import serializers from movies import models class MoviesSerializer(serializers.ModelSerializer): class Meta: model = models.Movies fields = '__all__'
24
52
0.744792
20
192
6.9
0.7
0
0
0
0
0
0
0
0
0
0
0
0.203125
192
7
53
27.428571
0.901961
0
0
0
0
0
0.036458
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bdccd7863cb64e9b2eac90267796d78d9532307e
240
py
Python
app/api/serializers.py
FurkanOzkaya/ParkApi
1fe6b54bc72d708820b90ba515364a84fb740d09
[ "MIT" ]
null
null
null
app/api/serializers.py
FurkanOzkaya/ParkApi
1fe6b54bc72d708820b90ba515364a84fb740d09
[ "MIT" ]
null
null
null
app/api/serializers.py
FurkanOzkaya/ParkApi
1fe6b54bc72d708820b90ba515364a84fb740d09
[ "MIT" ]
null
null
null
from rest_framework import serializers from app.models import ParkModel class ParkSerializer(serializers.ModelSerializer): class Meta: model = ParkModel fields = ['id', 'latitude', 'longitude', 'comment', 'created_by']
30
73
0.720833
25
240
6.84
0.8
0
0
0
0
0
0
0
0
0
0
0
0.179167
240
8
73
30
0.86802
0
0
0
0
0
0.149378
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bdd7bc478b044b6f6cdd5adc9023780e8c1731d1
149
py
Python
docs/source/transforms/remove_literal_statements.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
301
2018-06-26T04:10:43.000Z
2022-03-30T16:30:15.000Z
docs/source/transforms/remove_literal_statements.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
34
2019-04-28T13:19:13.000Z
2022-03-27T21:10:33.000Z
docs/source/transforms/remove_literal_statements.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
20
2019-11-17T00:13:27.000Z
2022-01-21T15:35:07.000Z
"""This is my module docstring""" 'This is another string that has no runtime effect' b'Bytes literal' 0 1000 def test(): 'Function docstring'
14.9
51
0.711409
23
149
4.608696
0.869565
0.113208
0
0
0
0
0
0
0
0
0
0.041322
0.187919
149
9
52
16.555556
0.834711
0.308725
0
0
0
0
0.689655
0
0
0
0
0
0
1
0.166667
true
0
0
0
0.166667
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
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
bdde6fdb83ec284ce087e713c9eec7602a527542
200
py
Python
scripts/npc/fire_kit.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/npc/fire_kit.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/npc/fire_kit.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
if sm.hasQuest(2566): if sm.hasItem(4032985): sm.chatScript("You already have the Ignition Device.") else: sm.giveItem(4032985) sm.chatScript("Ignition Device. Bring ")
33.333333
62
0.645
25
200
5.16
0.64
0.062016
0.294574
0
0
0
0
0
0
0
0
0.117647
0.235
200
6
63
33.333333
0.72549
0
0
0
0
0
0.298507
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
da007848e654eb49660bebc5bff0cd3e67ff7ecf
191
py
Python
app/main/__init__.py
myoung34/pritunl-prometheus
5627ed2f100c2813dda2f5553b6288df636adb22
[ "MIT" ]
null
null
null
app/main/__init__.py
myoung34/pritunl-prometheus
5627ed2f100c2813dda2f5553b6288df636adb22
[ "MIT" ]
1
2021-08-10T23:43:29.000Z
2021-08-10T23:43:29.000Z
app/main/__init__.py
myoung34/pritunl-prometheus
5627ed2f100c2813dda2f5553b6288df636adb22
[ "MIT" ]
null
null
null
""" main initializer for the flask routes """ from flask import Blueprint BP = Blueprint('main', __name__) from app.main import routes # noqa: F401 # pylint:disable=wrong-import-position
27.285714
81
0.743455
26
191
5.307692
0.692308
0
0
0
0
0
0
0
0
0
0
0.018519
0.151832
191
6
82
31.833333
0.833333
0.465969
0
0
0
0
0.042553
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
4
da0870ec5c32a5da933ca58512a4d9eae5023ebb
181
py
Python
7kyu/highest_and_lowest.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
1
2018-12-02T23:04:38.000Z
2018-12-02T23:04:38.000Z
7kyu/highest_and_lowest.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
null
null
null
7kyu/highest_and_lowest.py
nhsz/codewars
82703959e910254d6feff4162f78c6dbd7a1c3ed
[ "MIT" ]
null
null
null
# http://www.codewars.com/kata/554b4ac871d6813a03000035/ def high_and_low(numbers): lst = [int(num) for num in numbers.split()] return "{0} {1}".format(max(lst), min(lst))
30.166667
56
0.679558
27
181
4.481481
0.851852
0
0
0
0
0
0
0
0
0
0
0.133758
0.132597
181
5
57
36.2
0.636943
0.298343
0
0
0
0
0.056
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
da2cf3536403e759155f0187a32287f99cd740c8
178
py
Python
JIM/wsgi.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
JIM/wsgi.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
JIM/wsgi.py
Jingil-Integrated-Management/JIM_backend
f0e7860d57eddaee034531a52ab91d6715d12c18
[ "Apache-2.0" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'JIM.settings.prod_settings') application = get_wsgi_application()
22.25
77
0.831461
24
178
5.875
0.583333
0.099291
0.255319
0
0
0
0
0
0
0
0
0
0.078652
178
7
78
25.428571
0.859756
0
0
0
0
0
0.269663
0.269663
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
da2efc0032257db7e803e37378d1ec86cd56fb0d
97
py
Python
twitoff/__init__.py
NolanniLB/Twitoff
649919d415cfb59c4135a99e3494e9dc4a4bfb1e
[ "MIT" ]
null
null
null
twitoff/__init__.py
NolanniLB/Twitoff
649919d415cfb59c4135a99e3494e9dc4a4bfb1e
[ "MIT" ]
null
null
null
twitoff/__init__.py
NolanniLB/Twitoff
649919d415cfb59c4135a99e3494e9dc4a4bfb1e
[ "MIT" ]
null
null
null
'''Entry point to twitoff flask application''' from .app import create_app APP = create_app()
13.857143
46
0.731959
14
97
4.928571
0.714286
0.26087
0
0
0
0
0
0
0
0
0
0
0.164948
97
6
47
16.166667
0.851852
0.412371
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
da3059f478cd0338a6a5e1f5eefd036614fda54b
45
py
Python
python/testData/refactoring/inlinelocal/referenceInParenthesis.before.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/refactoring/inlinelocal/referenceInParenthesis.before.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/inlinelocal/referenceInParenthesis.before.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
x<caret> = 'spam!' * 42 print (x) (x) hex(x)
9
23
0.511111
9
45
2.555556
0.666667
0
0
0
0
0
0
0
0
0
0
0.055556
0.2
45
5
24
9
0.583333
0
0
0
0
0
0.108696
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
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
da4448f089fa18380ce415c3fb5cab6af52da2d1
10,309
py
Python
scathach/scathach.py
sinkaroid/scathach-api.py
bfa206b7b62f00ec9e3c877c96fcd35938bbd8b9
[ "MIT" ]
14
2020-12-26T19:49:12.000Z
2022-03-15T19:04:29.000Z
scathach/scathach.py
sinkaroid/scathach-api.py
bfa206b7b62f00ec9e3c877c96fcd35938bbd8b9
[ "MIT" ]
null
null
null
scathach/scathach.py
sinkaroid/scathach-api.py
bfa206b7b62f00ec9e3c877c96fcd35938bbd8b9
[ "MIT" ]
4
2020-12-26T19:46:34.000Z
2021-12-14T09:18:04.000Z
import urllib from . import http, dict, errors noresponse = "Couldn't contact the API right now..." def gif(): try: return http.get("/gif/")["url"] except Exception as e: raise errors.NothingFound(noresponse) def jav(): try: return http.get("/jav/")["url"] except Exception as e: raise errors.NothingFound(noresponse) def twitter(): try: return http.get("/twitter/")["url"] except Exception as e: raise errors.NothingFound(noresponse) def real(): try: return http.get("/rb/")["url"] except Exception as e: raise errors.NothingFound(noresponse) def fgo(): try: return http.get("/r34/?tags=fate/grand_order")["url"] except Exception as e: raise errors.NothingFound(noresponse) def armpits(): try: return http.get("/r34/?tags=armpits")["url"] except Exception as e: raise errors.NothingFound(noresponse) def armpit_hair(): try: return http.get("/r34/?tags=armpit_hair")["url"] except Exception as e: raise errors.NothingFound(noresponse) def armpit_licking(): try: return http.get("/r34/?tags=armpit_licking")["url"] except Exception as e: raise errors.NothingFound(noresponse) def smell(): try: return http.get("/r34/?tags=smell")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pantyhose(): try: return http.get("/r34/?tags=pantyhose")["url"] except Exception as e: raise errors.NothingFound(noresponse) def large_breasts(): try: return http.get("/r34/?tags=large_breasts")["url"] except Exception as e: raise errors.NothingFound(noresponse) def blush(): try: return http.get("/r34/?tags=blush")["url"] except Exception as e: raise errors.NothingFound(noresponse) def blowjob(): try: return http.get("/r34/?tags=blowjob")["url"] except Exception as e: raise errors.NothingFound(noresponse) def masturbation(): try: return http.get("/r34/?tags=masturbation")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pervert(): try: return http.get("/r34/?tags=pervert")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pubic_hair(): try: return http.get("/r34/?tags=pubic_hair")["url"] except Exception as e: raise errors.NothingFound(noresponse) def sweat(): try: return http.get("/r34/?tags=sweat")["url"] except Exception as e: raise errors.NothingFound(noresponse) def footjob(): try: return http.get("/r34/?tags=footjob")["url"] except Exception as e: raise errors.NothingFound(noresponse) def foot_licking(): try: return http.get("/r34/?tags=foot_licking")["url"] except Exception as e: raise errors.NothingFound(noresponse) def housewife(): try: return http.get("/r34/?tags=housewife")["url"] except Exception as e: raise errors.NothingFound(noresponse) def milf(): try: return http.get("/r34/?tags=milf")["url"] except Exception as e: raise errors.NothingFound(noresponse) def school_uniform(): try: return http.get("/r34/?tags=school_uniform")["url"] except Exception as e: raise errors.NothingFound(noresponse) def bikini(): try: return http.get("/r34/?tags=bikini")["url"] except Exception as e: raise errors.NothingFound(noresponse) def cowgirl_position(): try: return http.get("/r34/?tags=cowgirl_position")["url"] except Exception as e: raise errors.NothingFound(noresponse) def doggystyle(): try: return http.get("/r34/?tags=doggystyle")["url"] except Exception as e: raise errors.NothingFound(noresponse) def dark_skin(): try: return http.get("/r34/?tags=dark_skin")["url"] except Exception as e: raise errors.NothingFound(noresponse) def animated(): try: return http.get("/r34/?tags=animated")["url"] except Exception as e: raise errors.NothingFound(noresponse) def gangbang(): try: return http.get("/r34/?tags=gangbang")["url"] except Exception as e: raise errors.NothingFound(noresponse) def clothed_sex(): try: return http.get("/r34/?tags=clothed_sex")["url"] except Exception as e: raise errors.NothingFound(noresponse) def uncensored(): try: return http.get("/r34/?tags=uncensored")["url"] except Exception as e: raise errors.NothingFound(noresponse) def twintails(): try: return http.get("/r34/?tags=twintails")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pussy_juice(): try: return http.get("/r34/?tags=pussy_juice")["url"] except Exception as e: raise errors.NothingFound(noresponse) def rape(): try: return http.get("/r34/?tags=rape")["url"] except Exception as e: raise errors.NothingFound(noresponse) def double_penetration(): try: return http.get("/r34/?tags=double_penetration")["url"] except Exception as e: raise errors.NothingFound(noresponse) def futanari(): try: return http.get("/r34/?tags=futanari")["url"] except Exception as e: raise errors.NothingFound(noresponse) def yaoi(): try: return http.get("/r34/?tags=yaoi")["url"] except Exception as e: raise errors.NothingFound(noresponse) def yuri(): try: return http.get("/r34/?tags=yuri")["url"] except Exception as e: raise errors.NothingFound(noresponse) def ass(): try: return http.get("/r34/?tags=ass")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pregnant(): try: return http.get("/r34/?tags=pregnant")["url"] except Exception as e: raise errors.NothingFound(noresponse) def netorare(): try: return http.get("/r34/?tags=netorare")["url"] except Exception as e: raise errors.NothingFound(noresponse) def ugly_man(): try: return http.get("/r34/?tags=ugly_man")["url"] except Exception as e: raise errors.NothingFound(noresponse) def pout(): try: return http.get("/r34/?tags=pout")["url"] except Exception as e: raise errors.NothingFound(noresponse) def cum(): try: return http.get("/r34/?tags=cum")["url"] except Exception as e: raise errors.NothingFound(noresponse) def thick(): try: return http.get("/r34/?tags=thick")["url"] except Exception as e: raise errors.NothingFound(noresponse) def scathach(): try: return http.get("/r34/?tags=scathach_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def raikou(): try: return http.get("/r34/?tags=minamoto_no_raikou_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def jeanne(): try: return http.get("/r34/?tags=jeanne_d'arc_(fate)_(all)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def ereshkigal(): try: return http.get("/r34/?tags=ereshkigal_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def artoria(): try: return http.get("/r34/?tags=artoria_pendragon_(all)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def okita(): try: return http.get("/r34/?tags=okita_souji_(fate)_(all)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def kama(): try: return http.get("/r34/?tags=kama_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def davinci(): try: return http.get("/r34/?tags=leonardo_da_vinci_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def anastasia(): try: return http.get("/r34/?tags=anastasia_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def saint_martha(): try: return http.get("/r34/?tags=saint_martha")["url"] except Exception as e: raise errors.NothingFound(noresponse) def gudako(): try: return http.get("/r34/?tags=fujimaru_ritsuka_(female)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def mashu(): try: return http.get("/r34/?tags=mash_kyrielight")["url"] except Exception as e: raise errors.NothingFound(noresponse) def abigail(): try: return http.get("/r34/?tags=abigail_williams_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def ushiwakamaru(): try: return http.get("/r34/?tags=ushiwakamaru_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def consort_yu(): try: return http.get("/r34/?tags=consort_yu_(fate)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def mordred(): try: return http.get("/r34/?tags=himiko_(fate)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def himiko(): try: return http.get("/r34/?tags=thick")["url"] except Exception as e: raise errors.NothingFound(noresponse) def kiara(): try: return http.get("/r34/?tags=sesshouin_kiara")["url"] except Exception as e: raise errors.NothingFound(noresponse) def xuanzang(): try: return http.get("/r34/?tags=xuanzang_(fate/grand_order)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def bb(): try: return http.get("/r34/?tags=bb_(fate)_(all)")["url"] except Exception as e: raise errors.NothingFound(noresponse) def nero(): try: return http.get("/r34/?tags=nero_claudius_(fate)_(all)")["url"] except Exception as e: raise errors.NothingFound(noresponse)
25.967254
82
0.633427
1,259
10,309
5.130262
0.099285
0.090571
0.130825
0.161016
0.830159
0.830159
0.634309
0.614801
0.614801
0.614801
0
0.015346
0.228829
10,309
397
83
25.967254
0.797107
0
0
0.60061
0
0
0.17032
0.100388
0
0
0
0
0
1
0.198171
false
0
0.006098
0
0.402439
0
0
0
0
null
0
0
1
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
da6110adfbdf967dd95a3f872912bd9a13e040cd
177
py
Python
tests/python-reference/scope/simple-nesting.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
tests/python-reference/scope/simple-nesting.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
tests/python-reference/scope/simple-nesting.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
def make_adder(x): def adder(y): return x + y return adder inc = make_adder(1) plus10 = make_adder(10) ___assertEqual(inc(1), 2) ___assertEqual(plus10(-2), 8)
16.090909
29
0.649718
28
177
3.785714
0.464286
0.254717
0
0
0
0
0
0
0
0
0
0.079137
0.214689
177
10
30
17.7
0.683453
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0
0.125
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
0
0
1
0
0
0
4
da873c237b38f9d2ccd4f3b953a7206be01839df
181
py
Python
OurPaper/__init__.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
45
2021-04-09T12:52:44.000Z
2022-03-30T09:08:58.000Z
OurPaper/__init__.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
8
2021-06-29T07:47:07.000Z
2022-03-23T04:21:00.000Z
OurPaper/__init__.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
10
2021-05-23T05:48:29.000Z
2022-03-16T06:42:13.000Z
# Need to import cv2 before detectron2 libraries, else things crash import cv2 from typing import List # Number of coordinates needed to predict a BBOX BBOX_PRED_COORD_NUMBER = 4
22.625
67
0.80663
29
181
4.931034
0.793103
0.125874
0
0
0
0
0
0
0
0
0
0.026667
0.171271
181
7
68
25.857143
0.926667
0.618785
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e522f766a9e056eca582be75ba315c37996396f3
74
py
Python
wagtailplus/wagtaillinks/__init__.py
DanAtShenTech/wagtailplus
22cac857175d8a6f77e470751831c14a92ccd768
[ "BSD-2-Clause" ]
null
null
null
wagtailplus/wagtaillinks/__init__.py
DanAtShenTech/wagtailplus
22cac857175d8a6f77e470751831c14a92ccd768
[ "BSD-2-Clause" ]
null
null
null
wagtailplus/wagtaillinks/__init__.py
DanAtShenTech/wagtailplus
22cac857175d8a6f77e470751831c14a92ccd768
[ "BSD-2-Clause" ]
null
null
null
default_app_config = 'wagtailplus.wagtaillinks.apps.WagtailLinksAppConfig'
74
74
0.891892
7
74
9.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.027027
74
1
74
74
0.888889
0
0
0
0
0
0.68
0.68
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
e53ce377a42de2ac1f8a0076024cd2764ad64656
129
py
Python
examples/9_cells/plot_potential.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
examples/9_cells/plot_potential.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
examples/9_cells/plot_potential.py
kaeldai/sonata
9f5d95748d0a83ca231d955f77f5a0257c58ce1d
[ "BSD-3-Clause" ]
null
null
null
from bmtk.analyzer.cell_vars import plot_report node_ids = [0, 4, 8] plot_report(config_file='config.json', node_ids=node_ids)
21.5
57
0.782946
23
129
4.086957
0.695652
0.223404
0
0
0
0
0
0
0
0
0
0.025862
0.100775
129
5
58
25.8
0.784483
0
0
0
0
0
0.085271
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
e544ed7d02d8b8c51b97437c33bda55b652cab5c
170
py
Python
rinobot_plugin/test/__init__.py
rinocloud/rinobot-plugin
0196f2a5a01a85a2f4859755b262bf093cd4eb45
[ "MIT" ]
null
null
null
rinobot_plugin/test/__init__.py
rinocloud/rinobot-plugin
0196f2a5a01a85a2f4859755b262bf093cd4eb45
[ "MIT" ]
null
null
null
rinobot_plugin/test/__init__.py
rinocloud/rinobot-plugin
0196f2a5a01a85a2f4859755b262bf093cd4eb45
[ "MIT" ]
null
null
null
import os import unittest from .test import Test def all(): path = os.path.dirname(os.path.realpath(__file__)) return unittest.defaultTestLoader.discover(path)
18.888889
54
0.752941
23
170
5.391304
0.608696
0.096774
0
0
0
0
0
0
0
0
0
0
0.147059
170
8
55
21.25
0.855172
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e5816e79c7e943b71bcc3af60eb3bacabdc33597
329
py
Python
onnxruntime/python/tools/quantization/__init__.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
1
2021-07-13T03:15:04.000Z
2021-07-13T03:15:04.000Z
onnxruntime/python/tools/quantization/__init__.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
null
null
null
onnxruntime/python/tools/quantization/__init__.py
deepology/onnxruntime
a36f627a4c20317203247239ad3ded4fda328610
[ "MIT" ]
null
null
null
from .quantize import quantize, quantize_static, quantize_dynamic, quantize_qat from .quantize import QuantizationMode from .calibrate import CalibrationDataReader, calculate_calibration_data, get_calibrator, generate_calibration_table from .calibrate import calibrate from .quant_utils import QuantType, write_calibration_table
54.833333
116
0.881459
38
329
7.342105
0.526316
0.086022
0.129032
0
0
0
0
0
0
0
0
0
0.082067
329
5
117
65.8
0.923841
0
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
e58c70f835fc954fe790ceefb38bf091997e020b
172
py
Python
Shark_Training/pyimagesearch/nn/__init__.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
Shark_Training/pyimagesearch/nn/__init__.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
Shark_Training/pyimagesearch/nn/__init__.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
# Import the necessary packages from .neuralnetwork import NeuralNetwork from .perceptron import Perceptron from .fcsimple import FCSimple from .gapsimple import GAPSimple
28.666667
40
0.848837
20
172
7.3
0.45
0
0
0
0
0
0
0
0
0
0
0
0.122093
172
5
41
34.4
0.966887
0.168605
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
e5bd67c9d596c5426353d5090923c864c930a1d9
307
py
Python
tests/pyccel/project_abs_imports/project/folder2/mod3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
206
2018-06-28T00:28:47.000Z
2022-03-29T05:17:03.000Z
tests/pyccel/project_abs_imports/project/folder2/mod3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
670
2018-07-23T11:02:24.000Z
2022-03-30T07:28:05.000Z
tests/pyccel/project_abs_imports/project/folder2/mod3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
19
2019-09-19T06:01:00.000Z
2022-03-29T05:17:06.000Z
# pylint: disable=missing-function-docstring, missing-module-docstring/ from pyccel.decorators import types, pure from project.folder1.mod1 import add2 from project.folder2.mod2 import sum_to_n_squared @pure @types('int') def one_hundred_plus_sum_to_n_squared(n): return add2(100, sum_to_n_squared(n))
30.7
71
0.811075
49
307
4.836735
0.591837
0.063291
0.075949
0.164557
0.118143
0
0
0
0
0
0
0.032374
0.094463
307
9
72
34.111111
0.820144
0.224756
0
0
0
0
0.012712
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.714286
0
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
0
0
1
1
0
0
0
4
e5c5a537019c23f5a818eae180e007ce9e74fb2f
57
py
Python
main.py
houluy/chessboard
b7298ffb33fc993cf4f70b4b37fb8b7a9df93a1d
[ "MIT" ]
5
2017-09-21T01:31:28.000Z
2019-08-03T18:29:24.000Z
main.py
houluy/chessboard
b7298ffb33fc993cf4f70b4b37fb8b7a9df93a1d
[ "MIT" ]
null
null
null
main.py
houluy/chessboard
b7298ffb33fc993cf4f70b4b37fb8b7a9df93a1d
[ "MIT" ]
null
null
null
import chessboard c = chessboard.Chessboard() c.play()
9.5
27
0.736842
7
57
6
0.571429
0.52381
0
0
0
0
0
0
0
0
0
0
0.140351
57
5
28
11.4
0.857143
0
0
0
0
0
0
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
e5ed699d312d35656d0732380e40e5dbcb6cc452
110
py
Python
core/models.py
InSertCod3/Rapid_Quotes
b55284af2efa3e5107ea788f2fb25817a9a2c361
[ "MIT" ]
null
null
null
core/models.py
InSertCod3/Rapid_Quotes
b55284af2efa3e5107ea788f2fb25817a9a2c361
[ "MIT" ]
5
2019-07-30T21:26:06.000Z
2022-02-18T06:19:32.000Z
core/models.py
InSertCod3/Rapid_Quotes
b55284af2efa3e5107ea788f2fb25817a9a2c361
[ "MIT" ]
null
null
null
import os import sys class User(object): """User Database model.""" def __init__(self): pass
13.75
30
0.618182
14
110
4.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.263636
110
8
31
13.75
0.790123
0.181818
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
e5f8dabd7e9fb4484e857c5da66addeb182703ff
30
py
Python
src/fastapi_aad_auth/ui/static/fonts/__init__.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
29
2020-09-04T08:39:42.000Z
2022-01-21T08:43:48.000Z
src/fastapi_aad_auth/ui/static/fonts/__init__.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
86
2020-07-30T20:51:19.000Z
2022-03-30T16:55:24.000Z
src/fastapi_aad_auth/ui/static/fonts/__init__.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
11
2020-10-16T07:17:16.000Z
2022-02-09T17:13:55.000Z
"""Font components for ui."""
15
29
0.633333
4
30
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
0.730769
0.766667
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
f90375f80cae5661fa89cfd959ff19be88e3592b
74
py
Python
start.py
aigitech/scrapy_lianjia
faa033f05b65d35b5d7778e6413b7117e186702e
[ "MIT" ]
null
null
null
start.py
aigitech/scrapy_lianjia
faa033f05b65d35b5d7778e6413b7117e186702e
[ "MIT" ]
null
null
null
start.py
aigitech/scrapy_lianjia
faa033f05b65d35b5d7778e6413b7117e186702e
[ "MIT" ]
null
null
null
from scrapy import cmdline cmdline.execute("scrapy crawl lianjia".split())
37
47
0.810811
10
74
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.081081
74
2
47
37
0.882353
0
0
0
0
0
0.266667
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
007e3415641f532b99c749be2231718e833a307f
86
py
Python
dlutils/models/gans/relativistic/__init__.py
justusschock/dl-utils
1078f5030b8aac2bf022daf5fa14d66f74c3c893
[ "MIT" ]
13
2020-03-25T12:29:32.000Z
2022-02-05T15:02:11.000Z
dlutils/models/gans/relativistic/__init__.py
Royzon/dl-utils
be95707da9cb812a5f25a11f1469055e0b7abcd2
[ "MIT" ]
1
2021-07-05T10:14:52.000Z
2021-07-05T10:14:52.000Z
dlutils/models/gans/relativistic/__init__.py
Royzon/dl-utils
be95707da9cb812a5f25a11f1469055e0b7abcd2
[ "MIT" ]
5
2020-03-25T12:55:09.000Z
2020-12-22T20:18:52.000Z
from dlutils.models.gans.relativistic.rel_gan import RelativisticGAN, \ update_fn
28.666667
71
0.813953
11
86
6.181818
1
0
0
0
0
0
0
0
0
0
0
0
0.116279
86
2
72
43
0.894737
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
0086fff5162e8d137028ae3b5a0296001e794ffe
43
py
Python
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/ntpath.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
25
2019-03-08T01:03:03.000Z
2022-02-14T17:38:32.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/ntpath.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
2
2019-02-15T17:34:37.000Z
2019-07-11T14:37:02.000Z
Chapter16/cf_rfem_hist_price/venv/lib/python3.6/ntpath.py
wtwong316/Mastering-Elasticsearch-7.0
8e88f938c9feb201649bd23c4d517bc6af93fbaa
[ "MIT" ]
31
2019-01-15T20:16:50.000Z
2022-03-01T05:47:38.000Z
/home/wai/anaconda3/lib/python3.6/ntpath.py
43
43
0.813953
8
43
4.375
1
0
0
0
0
0
0
0
0
0
0
0.069767
0
43
1
43
43
0.744186
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
00b6d71356e7022e23050a442fb1aa9b91f384db
88
py
Python
Moves/SetZero.py
johan--/PoMoCo_RobCook
0ca95286b0f21803ed3a33cbad6d11fce4d7172a
[ "MIT", "Unlicense" ]
8
2015-08-05T02:38:12.000Z
2020-05-30T09:09:49.000Z
Moves/SetZero.py
rpcook/PoMoCo
08f5170006bafabc2d70d5a681b62f7448afdbd2
[ "Unlicense", "MIT" ]
1
2015-03-22T10:45:41.000Z
2015-03-22T10:45:41.000Z
Moves/SetZero.py
rpcook/PoMoCo
08f5170006bafabc2d70d5a681b62f7448afdbd2
[ "Unlicense", "MIT" ]
10
2015-03-13T08:10:43.000Z
2021-08-08T04:12:42.000Z
# Move: Set Zero for servo in hexy.con.servos: hexy.con.servos[servo].setPos(deg=0)
22
40
0.704545
16
88
3.875
0.75
0.225806
0.419355
0
0
0
0
0
0
0
0
0.013333
0.147727
88
4
40
22
0.813333
0.159091
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
00ca45f3419719bf58e7f0ac670bb9193e6b1530
541
py
Python
pygamp/__init__.py
flyandlure/pygamp
629183de53c13b6ad1863acca06ba2df0053b3af
[ "MIT" ]
1
2020-06-05T13:27:38.000Z
2020-06-05T13:27:38.000Z
pygamp/__init__.py
flyandlure/pygamp
629183de53c13b6ad1863acca06ba2df0053b3af
[ "MIT" ]
null
null
null
pygamp/__init__.py
flyandlure/pygamp
629183de53c13b6ad1863acca06ba2df0053b3af
[ "MIT" ]
null
null
null
from .app import screenview from .custom_definitions import custom_metric, custom_dimension from .ecommerce import item, transaction from .enhanced_ecommerce import refund_items, refund_transaction, enhanced_transaction, enhanced_transaction_items from .enhanced_ecommerce import promotion_impression, promotion_click from .enhanced_ecommerce import checkout_step, checkout_option from .events import event from .exceptions import exception from .pageviews import pageview from .social_interactions import social from .transport import send
45.083333
114
0.872458
67
541
6.80597
0.447761
0.131579
0.138158
0.177632
0
0
0
0
0
0
0
0
0.09427
541
11
115
49.181818
0.930612
0
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
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
00e35f44295d2a53ac9050de85fdde9204da9ca6
206
py
Python
silver/templatetags/dict_extras.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
222
2017-01-15T10:30:57.000Z
2022-03-08T20:34:46.000Z
silver/templatetags/dict_extras.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
141
2017-01-11T10:56:49.000Z
2021-10-12T11:51:00.000Z
silver/templatetags/dict_extras.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
76
2017-01-10T13:50:27.000Z
2022-03-25T21:37:00.000Z
from django.template.defaulttags import register @register.filter def get_item(dictionary, key): return dictionary.get(key) @register.filter def default(value, default): return value or default
17.166667
48
0.771845
27
206
5.851852
0.592593
0.177215
0.21519
0
0
0
0
0
0
0
0
0
0.145631
206
11
49
18.727273
0.897727
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
0.714286
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
00edbdb69c826dbf979181d10fb756739e1b3217
147
py
Python
problemsets/Codeforces/Python/C903.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/C903.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/C903.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ a=[*open(0)][1].split() print(max(a.count(x)for x in{*a}))
18.375
38
0.605442
23
147
3.869565
0.782609
0.292135
0
0
0
0
0
0
0
0
0
0.015748
0.136054
147
8
39
18.375
0.685039
0.510204
0
0
0
0
0
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
dad8cf87e912789e4c12b6607a4f603739d2b20c
192
py
Python
accounts/views.py
ceylonai/basic_user_authentication_framwork
a1903bd22878d5060419a00873ef5f38ac34428c
[ "MIT" ]
1
2018-10-22T17:10:40.000Z
2018-10-22T17:10:40.000Z
accounts/views.py
ceylonai/basic_user_authentication_framwork
a1903bd22878d5060419a00873ef5f38ac34428c
[ "MIT" ]
null
null
null
accounts/views.py
ceylonai/basic_user_authentication_framwork
a1903bd22878d5060419a00873ef5f38ac34428c
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.views.generic import TemplateView class ProfilePageView(TemplateView): template_name = 'accounts/profile.html'
21.333333
45
0.802083
23
192
6.652174
0.782609
0.130719
0
0
0
0
0
0
0
0
0
0
0.130208
192
8
46
24
0.916168
0.119792
0
0
0
0
0.125749
0.125749
0
0
0
0
0
1
0
false
0
0.5
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
daf7c838eb21abb16c76e9df1dfcd8bf36a446e9
269
py
Python
apis/admin.py
sling254/Mcarfix
bb3206a9d2878d8dfb767940ef174e8376f2d156
[ "MIT" ]
null
null
null
apis/admin.py
sling254/Mcarfix
bb3206a9d2878d8dfb767940ef174e8376f2d156
[ "MIT" ]
null
null
null
apis/admin.py
sling254/Mcarfix
bb3206a9d2878d8dfb767940ef174e8376f2d156
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ShopInventory,Mechanic,ServiceOffered,PairMechanic # Register your models here. admin.site.register(ShopInventory) admin.site.register(Mechanic) admin.site.register(ServiceOffered) admin.site.register(PairMechanic)
29.888889
70
0.847584
32
269
7.125
0.4375
0.157895
0.298246
0
0
0
0
0
0
0
0
0
0.066915
269
9
71
29.888889
0.908367
0.096654
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
978736f684c17a2f2b3a3850f382daa571472398
10,508
py
Python
runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_execution_history.py
DomineCore/bamboo-engine
fb4583e70f9e1e87d9d48c2393db8d8104306f37
[ "MIT" ]
55
2021-09-07T11:50:35.000Z
2022-03-23T13:19:38.000Z
runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_execution_history.py
DomineCore/bamboo-engine
fb4583e70f9e1e87d9d48c2393db8d8104306f37
[ "MIT" ]
64
2021-09-07T12:04:12.000Z
2022-03-29T03:47:18.000Z
runtime/bamboo-pipeline/pipeline/tests/eri/imp/test_execution_history.py
DomineCore/bamboo-engine
fb4583e70f9e1e87d9d48c2393db8d8104306f37
[ "MIT" ]
20
2021-09-07T11:52:08.000Z
2022-03-28T08:05:22.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/MIT Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from django.utils import timezone from django.test import TransactionTestCase from bamboo_engine.eri import ExecutionHistory, ExecutionShortHistory from pipeline.eri.imp.execution_history import ExecutionHistoryMixin from pipeline.eri.models import ExecutionHistory as DBExecutionHistory from bamboo_engine.utils.string import unique_id class Obj: def __init__(self, attr1, attr2): self.attr1 = attr1 self.attr2 = attr2 def __eq__(self, other): return self.attr1 == other.attr1 and self.attr2 == other.attr2 class ExecutionHistoryMixinTestCase(TransactionTestCase): def setUp(self): self.mixin = ExecutionHistoryMixin() self.node_id = unique_id("n") self.version = unique_id("v") self.started_time = timezone.now() self.archived_time = timezone.now() self.json_data = {"a": 1, "b": 2} self.pickle_data = {"c": 3, "d": Obj(4, Obj(5, 6))} def test_add_history(self): self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=1, skip=True, retry=3, version=self.version, inputs=self.json_data, outputs=self.pickle_data, ) self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=2, skip=False, retry=0, version=self.version, inputs=self.json_data, outputs=self.json_data, ) qs = DBExecutionHistory.objects.filter(node_id=self.node_id) self.assertEqual(len(qs), 2) self.assertEqual(qs[0].node_id, self.node_id) self.assertEqual(qs[0].started_time, self.started_time) self.assertEqual(qs[0].archived_time, self.archived_time) self.assertEqual(qs[0].loop, 1) self.assertTrue(qs[0].skip) self.assertEqual(qs[0].retry, 3) self.assertEqual(qs[0].version, self.version) self.assertEqual(qs[0].inputs_serializer, self.mixin.JSON_SERIALIZER) self.assertEqual(self.mixin._deserialize(qs[0].inputs, qs[0].inputs_serializer), self.json_data) self.assertEqual(qs[0].outputs_serializer, self.mixin.PICKLE_SERIALIZER) self.assertEqual(self.mixin._deserialize(qs[0].outputs, qs[0].outputs_serializer), self.pickle_data) self.assertEqual(qs[1].node_id, self.node_id) self.assertEqual(qs[1].started_time, self.started_time) self.assertEqual(qs[1].archived_time, self.archived_time) self.assertEqual(qs[1].loop, 2) self.assertFalse(qs[1].skip) self.assertEqual(qs[1].retry, 0) self.assertEqual(qs[1].version, self.version) self.assertEqual(qs[1].inputs_serializer, self.mixin.JSON_SERIALIZER) self.assertEqual(self.mixin._deserialize(qs[1].inputs, qs[1].inputs_serializer), self.json_data) self.assertEqual(qs[1].outputs_serializer, self.mixin.JSON_SERIALIZER) self.assertEqual(self.mixin._deserialize(qs[1].outputs, qs[1].outputs_serializer), self.json_data) def test_get_histories(self): self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=1, skip=True, retry=3, version=self.version, inputs=self.json_data, outputs=self.pickle_data, ) self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=2, skip=False, retry=0, version=self.version, inputs=self.json_data, outputs=self.json_data, ) histories = self.mixin.get_histories(node_id=self.node_id) self.assertEqual(len(histories), 2) self.assertTrue(isinstance(histories[0], ExecutionHistory)) self.assertEqual(histories[0].node_id, self.node_id) self.assertEqual(histories[0].started_time, self.started_time) self.assertEqual(histories[0].archived_time, self.archived_time) self.assertEqual(histories[0].loop, 1) self.assertTrue(histories[0].skip) self.assertEqual(histories[0].retry, 3) self.assertEqual(histories[0].version, self.version) self.assertEqual(histories[0].inputs, self.json_data) self.assertEqual(histories[0].outputs, self.pickle_data) self.assertTrue(isinstance(histories[1], ExecutionHistory)) self.assertEqual(histories[1].node_id, self.node_id) self.assertEqual(histories[1].started_time, self.started_time) self.assertEqual(histories[1].archived_time, self.archived_time) self.assertEqual(histories[1].loop, 2) self.assertFalse(histories[1].skip) self.assertEqual(histories[1].retry, 0) self.assertEqual(histories[1].version, self.version) self.assertEqual(histories[1].inputs, self.json_data) self.assertEqual(histories[1].outputs, self.json_data) def test_get_histories__with_loop(self): self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=1, skip=True, retry=3, version=self.version, inputs=self.json_data, outputs=self.pickle_data, ) self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=2, skip=False, retry=0, version=self.version, inputs=self.json_data, outputs=self.json_data, ) histories = self.mixin.get_histories(node_id=self.node_id, loop=1) self.assertEqual(len(histories), 1) self.assertTrue(isinstance(histories[0], ExecutionHistory)) self.assertEqual(histories[0].node_id, self.node_id) self.assertEqual(histories[0].started_time, self.started_time) self.assertEqual(histories[0].archived_time, self.archived_time) self.assertEqual(histories[0].loop, 1) self.assertTrue(histories[0].skip) self.assertEqual(histories[0].retry, 3) self.assertEqual(histories[0].version, self.version) self.assertEqual(histories[0].inputs, self.json_data) self.assertEqual(histories[0].outputs, self.pickle_data) def test_get_short_histories(self): self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=1, skip=True, retry=3, version=self.version, inputs=self.json_data, outputs=self.pickle_data, ) self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=2, skip=False, retry=0, version=self.version, inputs=self.json_data, outputs=self.json_data, ) histories = self.mixin.get_short_histories(node_id=self.node_id) self.assertEqual(len(histories), 2) self.assertTrue(isinstance(histories[0], ExecutionShortHistory)) self.assertEqual(histories[0].node_id, self.node_id) self.assertEqual(histories[0].started_time, self.started_time) self.assertEqual(histories[0].archived_time, self.archived_time) self.assertEqual(histories[0].loop, 1) self.assertTrue(histories[0].skip) self.assertEqual(histories[0].retry, 3) self.assertEqual(histories[0].version, self.version) self.assertTrue(isinstance(histories[1], ExecutionShortHistory)) self.assertEqual(histories[1].node_id, self.node_id) self.assertEqual(histories[1].started_time, self.started_time) self.assertEqual(histories[1].archived_time, self.archived_time) self.assertEqual(histories[1].loop, 2) self.assertFalse(histories[1].skip) self.assertEqual(histories[1].retry, 0) self.assertEqual(histories[1].version, self.version) def test_get_short_histories__with_loop(self): self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=1, skip=True, retry=3, version=self.version, inputs=self.json_data, outputs=self.pickle_data, ) self.mixin.add_history( node_id=self.node_id, started_time=self.started_time, archived_time=self.archived_time, loop=2, skip=False, retry=0, version=self.version, inputs=self.json_data, outputs=self.json_data, ) histories = self.mixin.get_short_histories(node_id=self.node_id, loop=1) self.assertEqual(len(histories), 1) self.assertTrue(isinstance(histories[0], ExecutionShortHistory)) self.assertEqual(histories[0].node_id, self.node_id) self.assertEqual(histories[0].started_time, self.started_time) self.assertEqual(histories[0].archived_time, self.archived_time) self.assertEqual(histories[0].loop, 1) self.assertTrue(histories[0].skip) self.assertEqual(histories[0].retry, 3) self.assertEqual(histories[0].version, self.version)
41.046875
115
0.651408
1,292
10,508
5.130031
0.122291
0.151629
0.152082
0.105613
0.784249
0.741702
0.727218
0.714243
0.650724
0.650724
0
0.018851
0.242767
10,508
255
116
41.207843
0.814126
0.06871
0
0.693694
0
0
0.000614
0
0
0
0
0
0.364865
1
0.036036
false
0
0.027027
0.004505
0.076577
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
97a466351288aa45207aa88ce703c716221cae1a
92
py
Python
hmlf/spaces/gym.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
1
2021-05-05T05:59:55.000Z
2021-05-05T05:59:55.000Z
hmlf/spaces/gym.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
1
2021-05-18T07:51:46.000Z
2021-05-18T07:51:46.000Z
hmlf/spaces/gym.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
null
null
null
from gym.spaces import Box, Dict, Discrete, MultiBinary, MultiDiscrete, Space, Tuple, utils
46
91
0.793478
12
92
6.083333
1
0
0
0
0
0
0
0
0
0
0
0
0.119565
92
1
92
92
0.901235
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
97b4d7905fecbcc128605dc1da50175446c192f0
238
py
Python
dimdrop/models/__init__.py
TheOZoneBE/dimdrop
bcc52426a51397e2b07d2326a42d24e55b791179
[ "MIT" ]
1
2019-08-09T06:47:11.000Z
2019-08-09T06:47:11.000Z
dimdrop/models/__init__.py
TheOZoneBE/dimdrop
bcc52426a51397e2b07d2326a42d24e55b791179
[ "MIT" ]
null
null
null
dimdrop/models/__init__.py
TheOZoneBE/dimdrop
bcc52426a51397e2b07d2326a42d24e55b791179
[ "MIT" ]
null
null
null
from .param_tsne import ParametricTSNE from .autoencoder import Autoencoder from .deepcluster import DeepCluster from .vasc import VASC from .dec import DEC __all__ = [ 'ParametricTSNE', 'Autoencoder', 'DeepCluster', 'VASC', 'DEC' ]
23.8
65
0.764706
27
238
6.555556
0.37037
0
0
0
0
0
0
0
0
0
0
0
0.142857
238
9
66
26.444444
0.867647
0
0
0
0
0
0.180672
0
0
0
0
0
0
1
0
false
0
0.625
0
0.625
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
97c7b002281e5c70d0dce5e6a8abd25e4e634aac
44
py
Python
basics/ch2__VARIABLES_AND_SIMPLE_DATA_TYPES/2_variables.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
basics/ch2__VARIABLES_AND_SIMPLE_DATA_TYPES/2_variables.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
basics/ch2__VARIABLES_AND_SIMPLE_DATA_TYPES/2_variables.py
bedoyama/python-crash-course
39101237c478cd9c97f1a47f866408d2754c849f
[ "Apache-2.0" ]
null
null
null
message = "Howdy Dallas!!!" print(message)
11
27
0.681818
5
44
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.136364
44
3
28
14.666667
0.789474
0
0
0
0
0
0.340909
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
c11c2cc41499164116ef1d7c39a71d08f61f8b6e
100
py
Python
main.py
SuperSonicHub1/HNFrontPageRSS
d9d8025719b0cd3802fa0138e44c618a722255d2
[ "Unlicense" ]
null
null
null
main.py
SuperSonicHub1/HNFrontPageRSS
d9d8025719b0cd3802fa0138e44c618a722255d2
[ "Unlicense" ]
null
null
null
main.py
SuperSonicHub1/HNFrontPageRSS
d9d8025719b0cd3802fa0138e44c618a722255d2
[ "Unlicense" ]
null
null
null
from hn_front_page_rss import create_app app = create_app() app.run("0.0.0.0", 8080, debug=False,)
20
40
0.74
20
100
3.45
0.65
0.086957
0.347826
0
0
0
0
0
0
0
0
0.089888
0.11
100
4
41
25
0.685393
0
0
0
0
0
0.07
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c130123dd79786936f66713516a1bc18991e0684
37
py
Python
models/rnn/__init__.py
for-ai/ACT
efe259117a11d0583434d09440702fd75ebcdb99
[ "MIT" ]
18
2018-09-30T13:30:12.000Z
2021-04-14T15:18:51.000Z
models/rnn/__init__.py
for-ai/ACT
efe259117a11d0583434d09440702fd75ebcdb99
[ "MIT" ]
4
2020-01-28T21:59:56.000Z
2021-08-25T14:42:58.000Z
models/rnn/__init__.py
for-ai/ACT
efe259117a11d0583434d09440702fd75ebcdb99
[ "MIT" ]
4
2018-11-25T14:12:36.000Z
2019-12-02T03:07:02.000Z
__all__ = ["rnn"] from .rnn import *
12.333333
18
0.621622
5
37
3.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.189189
37
2
19
18.5
0.633333
0
0
0
0
0
0.081081
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c16a48e8001917ace800b85e01ae6f8f416c517c
95
py
Python
ManageSnippetApp/SnippetApp/apps.py
mitalimn/PythonDjangoApp
9c8b3264991f1550732235a80775f3ed5813a416
[ "MIT" ]
null
null
null
ManageSnippetApp/SnippetApp/apps.py
mitalimn/PythonDjangoApp
9c8b3264991f1550732235a80775f3ed5813a416
[ "MIT" ]
null
null
null
ManageSnippetApp/SnippetApp/apps.py
mitalimn/PythonDjangoApp
9c8b3264991f1550732235a80775f3ed5813a416
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SnippetappConfig(AppConfig): name = 'SnippetApp'
15.833333
34
0.768421
10
95
7.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.157895
95
5
35
19
0.9125
0
0
0
0
0
0.105263
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
c18ebab1bd6c7ef97e6343296005c9de225f5665
151
py
Python
config.py
nikitinivan/gold-async
fb9d1274b3efbe4a515ee7e4d468b8b3a2ba2a04
[ "MIT" ]
null
null
null
config.py
nikitinivan/gold-async
fb9d1274b3efbe4a515ee7e4d468b8b3a2ba2a04
[ "MIT" ]
null
null
null
config.py
nikitinivan/gold-async
fb9d1274b3efbe4a515ee7e4d468b8b3a2ba2a04
[ "MIT" ]
null
null
null
class Configuration: DB = 'aiohttpdemo_polls' USER = 'aiohttpdemo_user' PASS = 'aiohttpdemo_pass' HOST = 'localhost' PORT = '5432'
21.571429
29
0.649007
15
151
6.333333
0.733333
0
0
0
0
0
0
0
0
0
0
0.035088
0.245033
151
6
30
25.166667
0.798246
0
0
0
0
0
0.410596
0
0
0
0
0
0
1
0
false
0.166667
0
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
1
0
0
1
0
0
4
c197d0c67a4c5cedbd204adc98967d07e55045d5
171
py
Python
projects/ipalm/__init__.py
Hartvi/detectron2
d8999c5d4e0b398de90821d42b57f9558151e275
[ "Apache-2.0" ]
null
null
null
projects/ipalm/__init__.py
Hartvi/detectron2
d8999c5d4e0b398de90821d42b57f9558151e275
[ "Apache-2.0" ]
null
null
null
projects/ipalm/__init__.py
Hartvi/detectron2
d8999c5d4e0b398de90821d42b57f9558151e275
[ "Apache-2.0" ]
1
2021-11-22T12:45:07.000Z
2021-11-22T12:45:07.000Z
from .ipalm import ( # """ipalm""" # ROI_MATERIAL_HEAD_REGISTRY, build_material_head, MaterialHead, ) from .config import ( add_material_head_config )
17.1
33
0.684211
19
171
5.736842
0.578947
0.330275
0
0
0
0
0
0
0
0
0
0
0.216374
171
9
34
19
0.813433
0.22807
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
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
c1ae448c4475e0199061ce7ce840c104bcd5ae65
3,681
py
Python
src/unit2/usersignup/validation.py
cdoremus/udacity-python_web_development-cs253
87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b
[ "Apache-2.0" ]
null
null
null
src/unit2/usersignup/validation.py
cdoremus/udacity-python_web_development-cs253
87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b
[ "Apache-2.0" ]
null
null
null
src/unit2/usersignup/validation.py
cdoremus/udacity-python_web_development-cs253
87cf5dd5d0e06ee745d3aba058d96fa46f2aeb6b
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 25, 2012 @author: h87966 ''' import re VERIFICATION_MESSAGES_KEYS = ['username_error','password_error','verify_error','email_error'] VERIFICATION_MESSAGES = { VERIFICATION_MESSAGES_KEYS[0]:'The username format is not valid', VERIFICATION_MESSAGES_KEYS[1]:'The password format is not valid', VERIFICATION_MESSAGES_KEYS[2]:'The verification password format is not valid', VERIFICATION_MESSAGES_KEYS[3]:'The email format is not valid' } MISMATCHED_PASSWORDS_MESSAGE = 'The Password and Verify Password fields do not match' #VALIDATION_MESSAGES = { # VERIFICATION_MESSAGES_KEYS[0]:'', # VERIFICATION_MESSAGES_KEYS[1]:'', # VERIFICATION_MESSAGES_KEYS[2]:'', # VERIFICATION_MESSAGES_KEYS[3]:'' # } class UserSignupValidation(object): ''' Validates username, password and email fields from the user signup form ''' def __init__(self): ''' Constructor ''' self.initialize_messages_dict() pass def validate(self, username, password, verify, email): is_valid = True passwords_match = True validation_messages = self.initialize_messages_dict( ) #verify matching passwords if not self.is_password_and_verify_equals(password, verify): validation_messages[VERIFICATION_MESSAGES_KEYS[1]] = MISMATCHED_PASSWORDS_MESSAGE validation_messages[VERIFICATION_MESSAGES_KEYS[2]] = MISMATCHED_PASSWORDS_MESSAGE passwords_match = False is_valid = False #validate username if not self.is_valid_username(username): validation_messages[VERIFICATION_MESSAGES_KEYS[0]] = VERIFICATION_MESSAGES[VERIFICATION_MESSAGES_KEYS[0]] is_valid = False #validate password if not self.is_valid_password(password) and passwords_match: validation_messages[VERIFICATION_MESSAGES_KEYS[1]] = VERIFICATION_MESSAGES[VERIFICATION_MESSAGES_KEYS[1]] is_valid = False #validate verify if not self.is_valid_password(verify) and passwords_match: validation_messages[VERIFICATION_MESSAGES_KEYS[2]] = VERIFICATION_MESSAGES[VERIFICATION_MESSAGES_KEYS[2]] is_valid = False #validate email if not self.is_valid_email(email): validation_messages[VERIFICATION_MESSAGES_KEYS[3]] = VERIFICATION_MESSAGES[VERIFICATION_MESSAGES_KEYS[3]] is_valid = False return validation_messages, is_valid def initialize_messages_dict(self): messages = { VERIFICATION_MESSAGES_KEYS[0]:'', VERIFICATION_MESSAGES_KEYS[1]:'', VERIFICATION_MESSAGES_KEYS[2]:'', VERIFICATION_MESSAGES_KEYS[3]:'' } return messages; def is_password_and_verify_equals(self, password, verify): return password == verify def is_valid_username(self, username): USER_RE = re.compile(r"^[a-zA-Z0-9_-]{3,20}$") return USER_RE.match(username) def is_valid_password(self, password): PASSWORD_RE = re.compile(r"^.{3,20}$") return PASSWORD_RE.match(password) def is_valid_email(self, email): if not email: return True EMAIL_RE = re.compile(r"^[\S]+@[\S]+\.[\S]+$") return EMAIL_RE.match(email)
39.159574
118
0.614507
379
3,681
5.651715
0.168865
0.261438
0.257703
0.194211
0.473389
0.370682
0.253501
0.234827
0.10084
0.10084
0
0.015947
0.301548
3,681
94
119
39.159574
0.817192
0.135289
0
0.089286
0
0
0.093031
0.006714
0
0
0
0
0
1
0.125
false
0.321429
0.017857
0.017857
0.285714
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
1
0
0
0
0
0
4
c1dc26e6a92af66bebda51c816cc71139b65dbc5
52
py
Python
dsgn/utils/numba_utils.py
fangchengji/DSGN
9a70e1574f042d5de856ed540cfa9111099437f1
[ "MIT" ]
166
2020-04-20T09:30:54.000Z
2021-05-16T07:42:15.000Z
dsgn/utils/numba_utils.py
fangchengji/DSGN
9a70e1574f042d5de856ed540cfa9111099437f1
[ "MIT" ]
15
2020-05-12T23:58:01.000Z
2021-05-05T12:03:51.000Z
dsgn/utils/numba_utils.py
fangchengji/DSGN
9a70e1574f042d5de856ed540cfa9111099437f1
[ "MIT" ]
35
2020-04-27T13:11:42.000Z
2021-05-16T07:45:02.000Z
import time import numba import numpy as np
4.727273
18
0.692308
8
52
4.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.307692
52
10
19
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
de047f9d4c8c7ff56d7bb3c71984fe8085deb5cc
88
py
Python
boardfarm/devices/windows_wsl.py
superice119/boardfarm
c525b4da94bf745d30c4a9f675aa4a7ae184b1fd
[ "BSD-3-Clause-Clear" ]
40
2018-03-23T14:17:13.000Z
2022-02-05T05:59:41.000Z
boardfarm/devices/windows_wsl.py
superice119/boardfarm
c525b4da94bf745d30c4a9f675aa4a7ae184b1fd
[ "BSD-3-Clause-Clear" ]
1
2020-04-17T01:20:12.000Z
2020-04-20T20:42:00.000Z
boardfarm/devices/windows_wsl.py
superice119/boardfarm
c525b4da94bf745d30c4a9f675aa4a7ae184b1fd
[ "BSD-3-Clause-Clear" ]
9
2018-04-11T08:31:14.000Z
2020-08-06T14:55:35.000Z
from . import debian class WindowsWSL(debian.DebianBox): model = ('windows_wsl')
12.571429
35
0.704545
10
88
6.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.181818
88
6
36
14.666667
0.847222
0
0
0
0
0
0.125
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
a9d3e68a3e5e4d42e6b5d40b51b0a974fbc02a4f
378
py
Python
apps/persons/models/persons.py
jorgesaw/kmarket
bffdced85c55585a664622b346e272af60b67c33
[ "MIT" ]
null
null
null
apps/persons/models/persons.py
jorgesaw/kmarket
bffdced85c55585a664622b346e272af60b67c33
[ "MIT" ]
1
2019-09-20T01:33:45.000Z
2019-09-20T01:33:45.000Z
apps/persons/models/persons.py
jorgesaw/kmarket
bffdced85c55585a664622b346e272af60b67c33
[ "MIT" ]
null
null
null
"""Person model.""" # Django from django.db import models from django.db import transaction from django.contrib.auth.models import User # Utilities from utils.models import BaseModel # Models from apps.persons.models import AbstractPerson class Person(AbstractPerson): """Person model. Representing a person with addresses """ pass
18
47
0.701058
44
378
6.022727
0.522727
0.113208
0.090566
0.135849
0
0
0
0
0
0
0
0
0.224868
378
20
48
18.9
0.904437
0.238095
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.714286
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
a9dfee079780e50f78f27d83b75544f4aea0a3a2
90
py
Python
src/python/weblyzard_api/xml_content/parsers/xml2005.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
9
2015-07-13T08:16:55.000Z
2020-03-17T12:06:25.000Z
src/python/weblyzard_api/xml_content/parsers/xml2005.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
40
2015-03-11T22:59:51.000Z
2022-03-25T21:47:07.000Z
src/python/weblyzard_api/xml_content/parsers/xml2005.py
PhilippKuntschik/weblyzard_api
415df7d2c3e625e96636ad0ab91f3ba669db64ea
[ "Apache-2.0" ]
5
2016-02-11T15:19:16.000Z
2020-02-06T09:47:24.000Z
from __future__ import unicode_literals from weblyzard_api.model.parsers.xml_2005 import *
45
50
0.877778
13
90
5.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0.048193
0.077778
90
2
50
45
0.819277
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
a9f16d00cd7f18aa76d58a0742017b77dec8d863
5,365
py
Python
tests/test_wrf_forecast.py
mjshaw1/spt_compute_ensco_wo_temporal_forecast_lead_flexibility_and_dams
7ea364d0588a91f5b49457b0face9e8c3c265c23
[ "BSD-3-Clause" ]
6
2019-01-16T04:41:06.000Z
2021-05-13T17:53:18.000Z
tests/test_wrf_forecast.py
mjshaw1/spt_compute_ensco_wo_temporal_forecast_lead_flexibility_and_dams
7ea364d0588a91f5b49457b0face9e8c3c265c23
[ "BSD-3-Clause" ]
7
2016-05-03T18:18:21.000Z
2017-07-11T16:47:21.000Z
tests/test_wrf_forecast.py
mjshaw1/spt_compute_ensco_wo_temporal_forecast_lead_flexibility_and_dams
7ea364d0588a91f5b49457b0face9e8c3c265c23
[ "BSD-3-Clause" ]
6
2016-03-28T19:04:03.000Z
2017-04-27T21:15:30.000Z
from datetime import datetime, timedelta from glob import glob import os from numpy.testing import assert_almost_equal, assert_array_equal import pytest import xarray as xr from spt_compute import run_lsm_forecast_process from .conftest import compare_warnings, RAPID_EXE_PATH, SetupForecast @pytest.fixture(scope="function") def wrf_setup(request, tclean): return SetupForecast(tclean, "m-s", "wrf") def test_wrf_forecast(wrf_setup): """ Test basic WRF forecast process. """ qout_name = 'Qout_wrf_wrf_1hr_20080601to20080601.nc' out_forecast_folder = '20080601t01' watershed = 'm-s' start_datetime = datetime.utcnow() run_lsm_forecast_process(rapid_executable_location=RAPID_EXE_PATH, rapid_io_files_location=wrf_setup.rapid_io_folder, lsm_forecast_location=wrf_setup.lsm_folder, main_log_directory=wrf_setup.log_folder, timedelta_between_forecasts=timedelta(seconds=0)) output_folder = os.path.join(wrf_setup.rapid_io_folder, 'output', watershed, out_forecast_folder) # check log file exists log_files = glob(os.path.join(wrf_setup.log_folder, "spt_compute_lsm_{0:%y%m%d%H%M}*.log".format(start_datetime))) assert len(log_files) == 1 # check Qout file qout_file = os.path.join(output_folder, qout_name) assert os.path.exists(qout_file) compare_qout_file = os.path.join(wrf_setup.watershed_compare_folder, out_forecast_folder, qout_name) with xr.open_dataset(qout_file) as xqf, \ xr.open_dataset(compare_qout_file) as xqc: assert_almost_equal(xqf.Qout.values, xqc.Qout.values) assert_array_equal(xqf.rivid.values, xqc.rivid.values) assert_almost_equal(xqf.lat.values, xqc.lat.values) assert_almost_equal(xqf.lon.values, xqc.lon.values) # make sure no m3 file exists m3_files = glob(os.path.join(output_folder, "m3_riv*.nc")) assert len(m3_files) == 0 # check Qinit file assert os.path.exists(os.path.join(wrf_setup.watershed_input_folder, 'Qinit_20080601t01.csv')) def test_wrf_forecast_historical(wrf_setup): """ Test basic WRF forecast process with historical data. """ qout_name = 'Qout_wrf_wrf_1hr_20080601to20080601.nc' out_forecast_folder = '20080601t01' watershed = 'm-s' start_datetime = datetime.utcnow() run_lsm_forecast_process(rapid_executable_location=RAPID_EXE_PATH, rapid_io_files_location=wrf_setup.rapid_io_folder, lsm_forecast_location=wrf_setup.lsm_folder, main_log_directory=wrf_setup.log_folder, timedelta_between_forecasts=timedelta(seconds=12*60*60), historical_data_location=wrf_setup.historical_input_folder) output_folder = os.path.join(wrf_setup.rapid_io_folder, 'output', watershed, out_forecast_folder) # check log file exists log_files = glob(os.path.join(wrf_setup.log_folder, "spt_compute_lsm_{0:%y%m%d%H%M}*.log".format(start_datetime))) assert len(log_files) == 1 # check Qout file qout_file = os.path.join(output_folder, qout_name) assert os.path.exists(qout_file) compare_qout_file = os.path.join(wrf_setup.watershed_compare_folder, out_forecast_folder, 'Qout_wrf_wrf_1hr_20080601to20080601_init.nc') with xr.open_dataset(qout_file) as xqf, \ xr.open_dataset(compare_qout_file) as xqc: assert_almost_equal(xqf.Qout.values, xqc.Qout.values) assert_array_equal(xqf.rivid.values, xqc.rivid.values) assert_almost_equal(xqf.lat.values, xqc.lat.values) assert_almost_equal(xqf.lon.values, xqc.lon.values) # make sure no m3 file exists m3_files = glob(os.path.join(output_folder, "m3_riv*.nc")) assert len(m3_files) == 0 # check Qinit file assert os.path.exists(os.path.join(wrf_setup.watershed_input_folder, 'Qinit_20080601t13.csv')) # check warning points return_2_warnings = os.path.join(output_folder, "return_2_points.geojson") return_10_warnings = os.path.join(output_folder, "return_10_points.geojson") return_20_warnings = os.path.join(output_folder, "return_20_points.geojson") assert os.path.exists(return_2_warnings) compare_return2_file = os.path.join(wrf_setup.watershed_compare_folder, out_forecast_folder, 'return_2_points.geojson') compare_warnings(return_2_warnings, compare_return2_file) assert os.path.exists(return_10_warnings) compare_return10_file = os.path.join(wrf_setup.watershed_compare_folder, out_forecast_folder, 'return_10_points.geojson') compare_warnings(return_10_warnings, compare_return10_file) assert os.path.exists(return_20_warnings) compare_return20_file = os.path.join(wrf_setup.watershed_compare_folder, out_forecast_folder, 'return_20_points.geojson') compare_warnings(return_20_warnings, compare_return20_file)
45.084034
104
0.67959
700
5,365
4.855714
0.152857
0.044131
0.052957
0.042071
0.845837
0.793469
0.725802
0.673433
0.673433
0.673433
0
0.035854
0.235788
5,365
118
105
45.466102
0.793171
0.051072
0
0.571429
0
0
0.08848
0.073832
0
0
0
0
0.238095
1
0.035714
false
0
0.095238
0.011905
0.142857
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a9fda9b5062e7517ded570470fce2fc651f38c96
1,126
py
Python
main.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
main.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
main.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
""" This file is needed so that we can split the server logic into separate files. Each such file imports app from app.py which is used in every callback's decorator, and all callbacks are imported into this file. """ import dash_bootstrap_components as dbc import os from app import app from layout.container import container from layout.navbar import navbar, modes_bar, footer from controller.data_loader import * from controller.ui_controller import * from controller.operations import * from controller.update_plot import * from controller.annotations import * from controller.analysis_controller import * from controller.session import * from controller.preprocessing_controller import * from controller.spatial import * from controller.tools import * from controller.data_uploader import * from controller.notifications import * app.layout = dbc.Container( [ navbar, modes_bar, container, footer ], fluid=True ) server = app.server if __name__ == "__main__": dev = False # Set to True if in development app.run_server(debug=dev, use_reloader=dev, host='0.0.0.0')
27.463415
63
0.761989
156
1,126
5.371795
0.49359
0.200477
0.26253
0.107399
0
0
0
0
0
0
0
0.004296
0.173179
1,126
40
64
28.15
0.895811
0.213144
0
0
0
0
0.017084
0
0
0
0
0
0
1
0
false
0
0.566667
0
0.566667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e71ea0cec8174455ac54bdb271de528197eaeece
12,801
py
Python
src/commercetools/importapi/models/_schemas/customfields.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
1
2021-04-07T20:01:30.000Z
2021-04-07T20:01:30.000Z
src/commercetools/importapi/models/_schemas/customfields.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
src/commercetools/importapi/models/_schemas/customfields.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
# Generated file, please do not change!!! import re import typing import marshmallow import marshmallow_enum from commercetools import helpers from ... import models from .common import LocalizedStringField # Fields class FieldContainerField(marshmallow.fields.Dict): def _deserialize(self, value, attr, data, **kwargs): result = super()._deserialize(value, attr, data) return models.FieldContainer(**result) # Marshmallow Schemas class CustomSchema(helpers.BaseSchema): type = helpers.LazyNestedField( nested=helpers.absmod(__name__, ".common.TypeKeyReferenceSchema"), allow_none=True, unknown=marshmallow.EXCLUDE, missing=None, ) fields = FieldContainerField( allow_none=True, metadata={"omit_empty": True}, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): return models.Custom(**data) class CustomFieldSchema(helpers.BaseSchema): type = marshmallow.fields.String(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.CustomField(**data) class BooleanFieldSchema(CustomFieldSchema): value = marshmallow.fields.Boolean(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.BooleanField(**data) class StringFieldSchema(CustomFieldSchema): value = marshmallow.fields.String(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.StringField(**data) class LocalizedStringFieldSchema(CustomFieldSchema): value = LocalizedStringField(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.LocalizedStringField(**data) class EnumFieldSchema(CustomFieldSchema): value = marshmallow.fields.String(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.EnumField(**data) class LocalizedEnumFieldSchema(CustomFieldSchema): value = marshmallow.fields.String(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.LocalizedEnumField(**data) class NumberFieldSchema(CustomFieldSchema): value = marshmallow.fields.Float(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.NumberField(**data) class MoneyFieldSchema(CustomFieldSchema): value = helpers.Discriminator( allow_none=True, discriminator_field=("type", "type"), discriminator_schemas={ "highPrecision": helpers.absmod( __name__, ".common.HighPrecisionMoneySchema" ), "centPrecision": helpers.absmod(__name__, ".common.MoneySchema"), }, missing=None, ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.MoneyField(**data) class DateFieldSchema(CustomFieldSchema): value = marshmallow.fields.Date(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.DateField(**data) class TimeFieldSchema(CustomFieldSchema): value = marshmallow.fields.Time(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.TimeField(**data) class DateTimeFieldSchema(CustomFieldSchema): value = marshmallow.fields.DateTime(allow_none=True, missing=None) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.DateTimeField(**data) class ReferenceFieldSchema(CustomFieldSchema): value = helpers.Discriminator( allow_none=True, discriminator_field=("typeId", "type_id"), discriminator_schemas={ "cart-discount": helpers.absmod( __name__, ".common.CartDiscountKeyReferenceSchema" ), "category": helpers.absmod(__name__, ".common.CategoryKeyReferenceSchema"), "channel": helpers.absmod(__name__, ".common.ChannelKeyReferenceSchema"), "customer": helpers.absmod(__name__, ".common.CustomerKeyReferenceSchema"), "customer-group": helpers.absmod( __name__, ".common.CustomerGroupKeyReferenceSchema" ), "price": helpers.absmod(__name__, ".common.PriceKeyReferenceSchema"), "product": helpers.absmod(__name__, ".common.ProductKeyReferenceSchema"), "product-discount": helpers.absmod( __name__, ".common.ProductDiscountKeyReferenceSchema" ), "product-type": helpers.absmod( __name__, ".common.ProductTypeKeyReferenceSchema" ), "product-variant": helpers.absmod( __name__, ".common.ProductVariantKeyReferenceSchema" ), "shipping-method": helpers.absmod( __name__, ".common.ShippingMethodKeyReferenceSchema" ), "state": helpers.absmod(__name__, ".common.StateKeyReferenceSchema"), "store": helpers.absmod(__name__, ".common.StoreKeyReferenceSchema"), "tax-category": helpers.absmod( __name__, ".common.TaxCategoryKeyReferenceSchema" ), "type": helpers.absmod(__name__, ".common.TypeKeyReferenceSchema"), }, missing=None, ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.ReferenceField(**data) class BooleanSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.Boolean(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.BooleanSetField(**data) class StringSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.String(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.StringSetField(**data) class LocalizedStringSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( LocalizedStringField(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.LocalizedStringSetField(**data) class EnumSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.String(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.EnumSetField(**data) class LocalizedEnumSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.String(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.LocalizedEnumSetField(**data) class NumberSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.Float(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.NumberSetField(**data) class MoneySetFieldSchema(CustomFieldSchema): value = helpers.LazyNestedField( nested=helpers.absmod(__name__, ".common.MoneySchema"), allow_none=True, many=True, unknown=marshmallow.EXCLUDE, missing=None, ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.MoneySetField(**data) class DateSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.Date(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.DateSetField(**data) class TimeSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.Time(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.TimeSetField(**data) class DateTimeSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( marshmallow.fields.DateTime(allow_none=True), allow_none=True, missing=None ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.DateTimeSetField(**data) class ReferenceSetFieldSchema(CustomFieldSchema): value = marshmallow.fields.List( helpers.Discriminator( allow_none=True, discriminator_field=("typeId", "type_id"), discriminator_schemas={ "cart-discount": helpers.absmod( __name__, ".common.CartDiscountKeyReferenceSchema" ), "category": helpers.absmod( __name__, ".common.CategoryKeyReferenceSchema" ), "channel": helpers.absmod( __name__, ".common.ChannelKeyReferenceSchema" ), "customer": helpers.absmod( __name__, ".common.CustomerKeyReferenceSchema" ), "customer-group": helpers.absmod( __name__, ".common.CustomerGroupKeyReferenceSchema" ), "price": helpers.absmod(__name__, ".common.PriceKeyReferenceSchema"), "product": helpers.absmod( __name__, ".common.ProductKeyReferenceSchema" ), "product-discount": helpers.absmod( __name__, ".common.ProductDiscountKeyReferenceSchema" ), "product-type": helpers.absmod( __name__, ".common.ProductTypeKeyReferenceSchema" ), "product-variant": helpers.absmod( __name__, ".common.ProductVariantKeyReferenceSchema" ), "shipping-method": helpers.absmod( __name__, ".common.ShippingMethodKeyReferenceSchema" ), "state": helpers.absmod(__name__, ".common.StateKeyReferenceSchema"), "store": helpers.absmod(__name__, ".common.StoreKeyReferenceSchema"), "tax-category": helpers.absmod( __name__, ".common.TaxCategoryKeyReferenceSchema" ), "type": helpers.absmod(__name__, ".common.TypeKeyReferenceSchema"), }, ), allow_none=True, missing=None, ) class Meta: unknown = marshmallow.EXCLUDE @marshmallow.post_load def post_load(self, data, **kwargs): del data["type"] return models.ReferenceSetField(**data)
29.700696
87
0.642294
1,150
12,801
6.948696
0.125217
0.048054
0.056939
0.09786
0.778751
0.762358
0.736579
0.68915
0.681892
0.670004
0
0
0.253105
12,801
430
88
29.769767
0.835791
0.005156
0
0.649231
1
0
0.12662
0.087974
0
0
0
0
0
1
0.076923
false
0
0.021538
0.003077
0.403077
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e7281dd0e969d1d26bbb802b064518b6e1904d55
403
py
Python
central_server/models/admin.py
BUPT-MAGA/central_server
1ecf0f2fe40651107fa010aac0e629b5b39b9fd0
[ "Apache-2.0" ]
null
null
null
central_server/models/admin.py
BUPT-MAGA/central_server
1ecf0f2fe40651107fa010aac0e629b5b39b9fd0
[ "Apache-2.0" ]
null
null
null
central_server/models/admin.py
BUPT-MAGA/central_server
1ecf0f2fe40651107fa010aac0e629b5b39b9fd0
[ "Apache-2.0" ]
null
null
null
from enum import Enum from pydantic import BaseModel from .data_model import DataModel from .my_types import AdminStatus @DataModel(pkey_field='username') class Admin(BaseModel): username: str password: str status: AdminStatus = AdminStatus.On @staticmethod async def check(username: str, password: str): return await Admin.get_first(username=username, password=password)
25.1875
74
0.756824
50
403
6.02
0.56
0.07309
0.126246
0.146179
0
0
0
0
0
0
0
0
0.171216
403
15
75
26.866667
0.901198
0
0
0
0
0
0.019851
0
0
0
0
0
0
1
0
true
0.25
0.333333
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
e74f63c67804c21551142f72b43179e5d27b0777
83
py
Python
JWM/__init__.py
Tdev95/JWM
d67fb77106733bccc5189a1c78f1a8c53c0564f4
[ "Apache-2.0" ]
null
null
null
JWM/__init__.py
Tdev95/JWM
d67fb77106733bccc5189a1c78f1a8c53c0564f4
[ "Apache-2.0" ]
null
null
null
JWM/__init__.py
Tdev95/JWM
d67fb77106733bccc5189a1c78f1a8c53c0564f4
[ "Apache-2.0" ]
null
null
null
from .jwm import JWM from .macaroon import Macaroon __all__ = ['JWM', 'Macaroon']
16.6
30
0.722892
11
83
5.090909
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.156627
83
4
31
20.75
0.8
0
0
0
0
0
0.13253
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e76efadc22cd055d0eaa25bfacfbb8347eb699ef
434
py
Python
quokka/core/template_filters.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
1,141
2015-02-19T12:21:16.000Z
2022-03-29T10:07:18.000Z
quokka/core/template_filters.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
284
2015-02-23T01:03:55.000Z
2019-12-20T04:54:31.000Z
quokka/core/template_filters.py
songshansitulv/quokka
5d031d419691285481ec045d42773ed713abdaf7
[ "BSD-3-Clause" ]
370
2015-02-19T10:15:19.000Z
2022-03-31T20:08:15.000Z
# coding: utf-8 from quokka.utils.blocks import get_block, get_blocks, get_block_by_id def is_list(obj): return isinstance(obj, (list, tuple)) def configure(app): """Configure Jinja filters and globals""" # app.jinja_env.filters['isinstance'] = is_instance app.add_template_global(is_list) app.add_template_global(get_block) app.add_template_global(get_block_by_id) app.add_template_global(get_blocks)
27.125
70
0.753456
66
434
4.621212
0.454545
0.104918
0.183607
0.262295
0.259016
0.183607
0
0
0
0
0
0.002688
0.142857
434
15
71
28.933333
0.817204
0.230415
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
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
0
0
1
0
0
0
1
0
0
0
4
e7989c3ba578267bb0d2e7ecfe21d9600f2d8163
77
py
Python
BlinkServer/blink/blink.py
yash101/Blink
fd0a94228063d51222a802396c776b03f77977e6
[ "MIT" ]
null
null
null
BlinkServer/blink/blink.py
yash101/Blink
fd0a94228063d51222a802396c776b03f77977e6
[ "MIT" ]
null
null
null
BlinkServer/blink/blink.py
yash101/Blink
fd0a94228063d51222a802396c776b03f77977e6
[ "MIT" ]
null
null
null
from blink.face import Face def main(): face = Face() face.start()
11
27
0.61039
11
77
4.272727
0.636364
0.340426
0
0
0
0
0
0
0
0
0
0
0.25974
77
6
28
12.833333
0.824561
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
4
99d1dcf9f2231ddf296554c40f0ae9092e4559e1
194
py
Python
twisted-deferred/defer-6.py
kvaml/twisted-intro
c4b36b5a6c39484b805562931efe954b4392fb54
[ "MIT" ]
1
2021-01-11T06:30:44.000Z
2021-01-11T06:30:44.000Z
twisted-deferred/defer-6.py
kvaml/twisted-intro
c4b36b5a6c39484b805562931efe954b4392fb54
[ "MIT" ]
23
2020-02-12T02:35:49.000Z
2022-02-11T03:45:40.000Z
twisted-deferred/defer-6.py
kvaml/twisted-intro
c4b36b5a6c39484b805562931efe954b4392fb54
[ "MIT" ]
2
2020-04-08T15:39:46.000Z
2020-10-10T10:13:09.000Z
from twisted.internet.defer import Deferred def out(s): print s d = Deferred() d.addCallbacks(out, out) d.errback(Exception('First error')) d.errback(Exception('Second error')) print 'Finished'
24.25
43
0.757732
29
194
5.068966
0.62069
0.108844
0.231293
0
0
0
0
0
0
0
0
0
0.097938
194
7
44
27.714286
0.84
0
0
0
0
0
0.159794
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.285714
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
99d2d2086d91766f408caf8c3759c959941defa6
330
py
Python
apps/talk/admin.py
theju/confista
632e651f734ff88d968efb5f24608633c313ee3f
[ "MIT" ]
null
null
null
apps/talk/admin.py
theju/confista
632e651f734ff88d968efb5f24608633c313ee3f
[ "MIT" ]
null
null
null
apps/talk/admin.py
theju/confista
632e651f734ff88d968efb5f24608633c313ee3f
[ "MIT" ]
1
2019-12-02T19:01:49.000Z
2019-12-02T19:01:49.000Z
from talk.models import Topic, Level, Talk from django.contrib import admin class TopicAdmin(admin.ModelAdmin): pass class LevelAdmin(admin.ModelAdmin): pass class TalkAdmin(admin.ModelAdmin): pass admin.site.register(Topic, TopicAdmin) admin.site.register(Level, LevelAdmin) admin.site.register(Talk, TalkAdmin)
20.625
42
0.778788
42
330
6.119048
0.404762
0.175097
0.22179
0.18677
0
0
0
0
0
0
0
0
0.127273
330
15
43
22
0.892361
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0
true
0.272727
0.181818
0
0.454545
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
1
0
0
0
0
0
4
99f43cf88a658e0a4d01d0dc0d386be1443ca99f
1,402
py
Python
__init__.py
tmizu23/CustomedFreehandRastereGeoreferencer
f19f58ca10da424f4de0424186454b3cfa9cd966
[ "MIT" ]
null
null
null
__init__.py
tmizu23/CustomedFreehandRastereGeoreferencer
f19f58ca10da424f4de0424186454b3cfa9cd966
[ "MIT" ]
null
null
null
__init__.py
tmizu23/CustomedFreehandRastereGeoreferencer
f19f58ca10da424f4de0424186454b3cfa9cd966
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** FreehandRasterGeoreferencer A QGIS plugin Interactive georeferencing of rasters ------------------- begin : 2014-05-21 copyright : (C) 2014 by GV email : guilhem.vellut@gmail.com ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ This script initializes the plugin, making it known to QGIS. """ def classFactory(iface): # load FreehandRasterGeoreferencer class from file FreehandRasterGeoreferencer from freehandrastergeoreferencer import FreehandRasterGeoreferencer return FreehandRasterGeoreferencer(iface)
50.071429
82
0.408702
93
1,402
6.16129
0.731183
0.041885
0
0
0
0
0
0
0
0
0
0.014768
0.323823
1,402
27
83
51.925926
0.589662
0.885877
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
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
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
4
821d11c7570cb0e2538b1d1b746746eb15060976
58
py
Python
cbcreator/__main__.py
myzhang1029/cbcreator
fc6f1959ce339ef55f44435edf94350217bc4ed1
[ "Apache-2.0" ]
null
null
null
cbcreator/__main__.py
myzhang1029/cbcreator
fc6f1959ce339ef55f44435edf94350217bc4ed1
[ "Apache-2.0" ]
null
null
null
cbcreator/__main__.py
myzhang1029/cbcreator
fc6f1959ce339ef55f44435edf94350217bc4ed1
[ "Apache-2.0" ]
null
null
null
import sys from .cbcreator import start sys.exit(start())
14.5
28
0.775862
9
58
5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.12069
58
3
29
19.333333
0.882353
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
82290e8c5b6a65a522813a71d80a406010d186d9
445
py
Python
oauth_tokens/factories.py
Andertaker/django-oauth-tokens
02de3de078361ca12a004979ab647aa5d745c555
[ "BSD-3-Clause" ]
null
null
null
oauth_tokens/factories.py
Andertaker/django-oauth-tokens
02de3de078361ca12a004979ab647aa5d745c555
[ "BSD-3-Clause" ]
null
null
null
oauth_tokens/factories.py
Andertaker/django-oauth-tokens
02de3de078361ca12a004979ab647aa5d745c555
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta from django.utils import timezone import factory from .models import AccessToken, UserCredentials class UserCredentialsFactory(factory.DjangoModelFactory): FACTORY_FOR = UserCredentials active = True class AccessTokenFactory(factory.DjangoModelFactory): FACTORY_FOR = AccessToken user_credentials = factory.SubFactory(UserCredentialsFactory) expires_at = timezone.now() + timedelta(1)
21.190476
65
0.797753
43
445
8.162791
0.581395
0.14245
0.182336
0.19943
0
0
0
0
0
0
0
0.002632
0.146067
445
20
66
22.25
0.921053
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.363636
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
82373e2ff6af54a4d47ed2174c544129cf474044
130
py
Python
backend/custom_admin/admin.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
2
2017-07-18T21:51:25.000Z
2017-12-23T11:08:39.000Z
backend/custom_admin/admin.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
23
2017-07-18T20:22:38.000Z
2018-01-05T05:45:15.000Z
backend/custom_admin/admin.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
2
2017-07-18T21:27:33.000Z
2017-07-18T22:07:03.000Z
from django.contrib import admin SITE_NAME = "PyCon Italy" admin.site.site_header = SITE_NAME admin.site.site_title = SITE_NAME
18.571429
34
0.8
21
130
4.714286
0.52381
0.272727
0.262626
0
0
0
0
0
0
0
0
0
0.123077
130
6
35
21.666667
0.868421
0
0
0
0
0
0.084615
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
413028db958495461d30c5bd7014f3c6204ca948
69
py
Python
StudentAnswerApp/utils/preparation.py
weiwei11/StudentAnswerSystem
575770e429ebe8f21be71101684afb8dde96c6ed
[ "MIT" ]
null
null
null
StudentAnswerApp/utils/preparation.py
weiwei11/StudentAnswerSystem
575770e429ebe8f21be71101684afb8dde96c6ed
[ "MIT" ]
null
null
null
StudentAnswerApp/utils/preparation.py
weiwei11/StudentAnswerSystem
575770e429ebe8f21be71101684afb8dde96c6ed
[ "MIT" ]
null
null
null
# coding:utf-8 """ @author:weiwei @time:2018.01.30 @version:0.1 """
8.625
16
0.623188
12
69
3.583333
1
0
0
0
0
0
0
0
0
0
0
0.180328
0.115942
69
7
17
9.857143
0.52459
0.84058
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
41430c445f912f6fcc53ab2e10309d11f1bcf18d
93
py
Python
routes/__init__.py
factcatch/factcatch
522d1a5564cda7f2c891e31f51632a591fb4cd4b
[ "MIT" ]
null
null
null
routes/__init__.py
factcatch/factcatch
522d1a5564cda7f2c891e31f51632a591fb4cd4b
[ "MIT" ]
null
null
null
routes/__init__.py
factcatch/factcatch
522d1a5564cda7f2c891e31f51632a591fb4cd4b
[ "MIT" ]
null
null
null
from . import claim,resource,source __all__ = [ "claim", "resource", "source" ]
11.625
35
0.591398
9
93
5.666667
0.666667
0.509804
0.745098
0
0
0
0
0
0
0
0
0
0.258065
93
7
36
13.285714
0.73913
0
0
0
0
0
0.204301
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
416606c0f946529af4a926eed1ce62c7f78f8d37
706
py
Python
djangocms_moderation/backends.py
adam-murray/djangocms-moderation
1fd928e806a3dd0bef62c0652408e8526838db9e
[ "BSD-3-Clause" ]
2
2019-12-17T16:20:58.000Z
2020-05-12T02:34:55.000Z
djangocms_moderation/backends.py
adam-murray/djangocms-moderation
1fd928e806a3dd0bef62c0652408e8526838db9e
[ "BSD-3-Clause" ]
15
2019-05-10T15:34:04.000Z
2020-04-06T06:44:42.000Z
djangocms_moderation/backends.py
adam-murray/djangocms-moderation
1fd928e806a3dd0bef62c0652408e8526838db9e
[ "BSD-3-Clause" ]
5
2019-06-26T19:22:50.000Z
2020-10-09T16:18:36.000Z
import uuid def uuid4_backend(**kwargs): return uuid.uuid4().hex def sequential_number_backend(**kwargs): """ This backed uses moderation request's primary key to a produce readable semi-sequential numbers. """ moderation_request = kwargs["moderation_request"] return str(moderation_request.pk) def sequential_number_with_identifier_prefix_backend(**kwargs): """ This backed uses moderation request's primary key to a produce readable semi-sequential numbers, prefixed with `workflow.identifier` field, if set """ moderation_request = kwargs["moderation_request"] return "{}{}".format(moderation_request.workflow.identifier, moderation_request.pk)
29.416667
87
0.74221
84
706
6.059524
0.416667
0.300589
0.074656
0.090373
0.550098
0.550098
0.369352
0.369352
0.369352
0.369352
0
0.003384
0.16289
706
23
88
30.695652
0.857868
0.344193
0
0.222222
0
0
0.09434
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0.111111
0.777778
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
41722d369a097298216e6d6ad40b3ed7f64eeb9e
620
py
Python
legislativeinfo/admin.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
legislativeinfo/admin.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
legislativeinfo/admin.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models # Register your models here. admin.site.register(models.CfgApprovingOfficers) admin.site.register(models.CfgAttestingOfficers) admin.site.register(models.CfgCertifyingOfficers) admin.site.register(models.CfgGlobal) admin.site.register(models.CfgOfficials) admin.site.register(models.CfgPresidingOfficers) admin.site.register(models.LegApprovedBy) admin.site.register(models.LegAttendees) admin.site.register(models.LegAttestedBy) admin.site.register(models.LegCertifiedBy) admin.site.register(models.LegPresidedOverBy) admin.site.register(models.LegislativeInfo)
32.631579
49
0.851613
72
620
7.333333
0.305556
0.204545
0.386364
0.522727
0
0
0
0
0
0
0
0
0.045161
620
18
50
34.444444
0.891892
0.041935
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
4183801158349b215a3600cb70f01ddc2df7d8ec
151
py
Python
build/lib/geo_calcs/utils.py
drew026/geo_calcs
e2d5aba7e5c7fe6cef81adb45978d3fea874868e
[ "MIT" ]
1
2021-11-26T04:32:09.000Z
2021-11-26T04:32:09.000Z
build/lib/geo_calcs/utils.py
drew026/geo_calcs
e2d5aba7e5c7fe6cef81adb45978d3fea874868e
[ "MIT" ]
null
null
null
build/lib/geo_calcs/utils.py
drew026/geo_calcs
e2d5aba7e5c7fe6cef81adb45978d3fea874868e
[ "MIT" ]
null
null
null
""" Author : Drew Heasman Date(last updated) : 05 June 2021 Description : Code used for geological calcuations. """
25.166667
52
0.562914
15
151
5.666667
1
0
0
0
0
0
0
0
0
0
0
0.061856
0.357616
151
5
53
30.2
0.814433
0.907285
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
68c7879a5f2610d8c0e2baa8c5e24f8272205f03
1,253
py
Python
plynet/magnetic.py
facom/Plynet
6003495074ddc7a8f326d6fb76676e79903045ae
[ "AFL-3.0" ]
null
null
null
plynet/magnetic.py
facom/Plynet
6003495074ddc7a8f326d6fb76676e79903045ae
[ "AFL-3.0" ]
null
null
null
plynet/magnetic.py
facom/Plynet
6003495074ddc7a8f326d6fb76676e79903045ae
[ "AFL-3.0" ]
1
2019-10-22T03:46:11.000Z
2019-10-22T03:46:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- #oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo # PHYSICS MODULE #oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo #======================================================================================== # IMPORTS #======================================================================================== from __future__ import division from plynet import * from scipy.integrate import quad import matplotlib.pylab as plt import os #======================================================================================== # MODULE CONFIGURATION #======================================================================================== confphys=loadconf("magneticrc") #======================================================================================== # MODULE COMPATIBILITY #======================================================================================== from plynet.numeric import * from plynet.data import * #======================================================================================== # ROUTINES #========================================================================================
40.419355
89
0.352753
47
1,253
9.319149
0.680851
0.068493
0
0
0
0
0
0
0
0
0
0.000842
0.052674
1,253
30
90
41.766667
0.368155
0.798085
0
0
0
0
0.042373
0
0
1
0
0
0
1
0
false
0
0.875
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
1
0
1
0
0
4
68cffa92e01a225ec2563ad566e9f5815c7cc2d3
187
py
Python
sprites/wall.py
slemonide/sirpegen
d3aa23b92cdf114f3898879cfe2e8ba2b5cfcb8a
[ "MIT" ]
null
null
null
sprites/wall.py
slemonide/sirpegen
d3aa23b92cdf114f3898879cfe2e8ba2b5cfcb8a
[ "MIT" ]
null
null
null
sprites/wall.py
slemonide/sirpegen
d3aa23b92cdf114f3898879cfe2e8ba2b5cfcb8a
[ "MIT" ]
null
null
null
from .sprite import Sprite from sprites import sprite_groups class Wall(Sprite): def __init__(self, game, x, y, img): super().__init__(game, x, y, img, sprite_groups.solid)
23.375
62
0.700535
28
187
4.321429
0.571429
0.198347
0.099174
0.14876
0
0
0
0
0
0
0
0
0.187166
187
7
63
26.714286
0.796053
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
68df9e1a60f2b6ec809c95a2badbc813f30a393c
24
py
Python
cupy/_version.py
niteya-shah/cupy
768f99a72e20288fefb56a49e4510ca077c5bcaa
[ "MIT" ]
null
null
null
cupy/_version.py
niteya-shah/cupy
768f99a72e20288fefb56a49e4510ca077c5bcaa
[ "MIT" ]
1
2020-06-03T10:59:17.000Z
2020-06-03T11:38:20.000Z
cupy/_version.py
niteya-shah/cupy
768f99a72e20288fefb56a49e4510ca077c5bcaa
[ "MIT" ]
null
null
null
__version__ = '8.0.0b2'
12
23
0.666667
4
24
3
1
0
0
0
0
0
0
0
0
0
0
0.190476
0.125
24
1
24
24
0.380952
0
0
0
0
0
0.291667
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
68e24424143af5790a9eca0e9cd483bee80bdc24
190
py
Python
neural_nets/givemeagan/model/cyrilic_dataset.py
grozail/otto-eilert
bb36429faeda671d4e7e126ff1d73212813f6039
[ "MIT" ]
null
null
null
neural_nets/givemeagan/model/cyrilic_dataset.py
grozail/otto-eilert
bb36429faeda671d4e7e126ff1d73212813f6039
[ "MIT" ]
null
null
null
neural_nets/givemeagan/model/cyrilic_dataset.py
grozail/otto-eilert
bb36429faeda671d4e7e126ff1d73212813f6039
[ "MIT" ]
null
null
null
from torch.utils.data.dataset import Dataset from torchvision import transforms, datasets import pandas as pd import os data_transforms = transforms.Compose([ transforms.ToTensor() ])
19
44
0.794737
24
190
6.25
0.625
0
0
0
0
0
0
0
0
0
0
0
0.136842
190
9
45
21.111111
0.914634
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
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
ec05554bcbfe517cbc39ce0f6fd7605833d096d4
51
py
Python
tests/__init__.py
hotenov/hotmodern-python
9e28deaed30560dac201141acbc9234bb23e72b9
[ "MIT" ]
null
null
null
tests/__init__.py
hotenov/hotmodern-python
9e28deaed30560dac201141acbc9234bb23e72b9
[ "MIT" ]
null
null
null
tests/__init__.py
hotenov/hotmodern-python
9e28deaed30560dac201141acbc9234bb23e72b9
[ "MIT" ]
null
null
null
"""Test suite for the hotmodern_python package."""
25.5
50
0.745098
7
51
5.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
51
1
51
51
0.822222
0.862745
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
ec190ec61368ad4958f43c7036b7964f8debc2f7
67
py
Python
Mundo 3/ex115/sistema.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
1
2021-03-10T21:53:38.000Z
2021-03-10T21:53:38.000Z
Mundo 3/ex115/sistema.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
Mundo 3/ex115/sistema.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
from ex115.lib.interface import * cabeçalho("sistema de arquivo")
16.75
33
0.776119
9
67
5.777778
1
0
0
0
0
0
0
0
0
0
0
0.050847
0.119403
67
3
34
22.333333
0.830508
0
0
0
0
0
0.268657
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
ec4d4e0ad586a22a849764c118abc86e1bcc4f7e
289
py
Python
h0rton/tests/test_h0_inference/test_plotting_utils.py
jiwoncpark/h0rton
2541885d70d090fdb777339cfb77a3a9f3e7996d
[ "MIT" ]
4
2020-12-02T02:18:08.000Z
2021-11-25T21:56:33.000Z
h0rton/tests/test_h0_inference/test_plotting_utils.py
jiwoncpark/h0rton
2541885d70d090fdb777339cfb77a3a9f3e7996d
[ "MIT" ]
25
2019-10-17T08:18:38.000Z
2020-12-26T09:38:05.000Z
h0rton/tests/test_h0_inference/test_plotting_utils.py
jiwoncpark/h0rton
2541885d70d090fdb777339cfb77a3a9f3e7996d
[ "MIT" ]
1
2020-12-03T02:14:12.000Z
2020-12-03T02:14:12.000Z
import numpy as np import h0rton.h0_inference.plotting_utils as plotting_utils import unittest class TestPlottingUtils(unittest.TestCase): """A suite of tests for the h0rton.h0_inference.plotting_utils package """ @classmethod def setUpClass(cls): pass
20.642857
74
0.726644
36
289
5.694444
0.694444
0.190244
0.165854
0.243902
0.292683
0
0
0
0
0
0
0.017544
0.211073
289
14
75
20.642857
0.881579
0.231834
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0.428571
0
0.714286
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
1
1
0
1
0
0
4
6b68921110fafd08f75b528b2cca679352917c2b
270
py
Python
src/main/python/libraries/edge/opensearch/response.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
6
2017-11-16T07:34:47.000Z
2021-11-10T19:20:10.000Z
src/main/python/libraries/edge/opensearch/response.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
5
2019-02-11T23:46:22.000Z
2019-12-02T21:47:31.000Z
src/main/python/libraries/edge/opensearch/response.py
mayadebellis/incubator-sdap-edge
c0899e508a06d614aa58ec9e991443640ba39e65
[ "Apache-2.0" ]
9
2017-11-16T07:34:54.000Z
2021-11-10T19:20:02.000Z
import logging from xml.dom.minidom import Document import xml.sax.saxutils class Response(object): def __init__(self): self.searchBasePath = '/ws/search/' self.metadataBasePath = '/ws/metadata/' def generate(self, pretty=False): pass
20.769231
47
0.681481
32
270
5.625
0.75
0
0
0
0
0
0
0
0
0
0
0
0.211111
270
12
48
22.5
0.84507
0
0
0
0
0
0.088889
0
0
0
0
0
0
1
0.222222
false
0.111111
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
1
0
1
0
0
4
6b7fc129d0f359254ab2c2695ebbac06bf654a92
85
py
Python
runserver.py
krist-jin/flask_rest_template
a19bea14159dd9ae4272f70d9e649f8907194cab
[ "Apache-2.0" ]
1
2015-12-18T00:29:25.000Z
2015-12-18T00:29:25.000Z
runserver.py
krist-jin/flask_rest_template
a19bea14159dd9ae4272f70d9e649f8907194cab
[ "Apache-2.0" ]
null
null
null
runserver.py
krist-jin/flask_rest_template
a19bea14159dd9ae4272f70d9e649f8907194cab
[ "Apache-2.0" ]
null
null
null
from project_main import app, routes app.run(host='0.0.0.0', port=5000, debug=True)
28.333333
46
0.729412
17
85
3.588235
0.764706
0.098361
0.098361
0
0
0
0
0
0
0
0
0.105263
0.105882
85
3
46
28.333333
0.697368
0
0
0
0
0
0.081395
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
6b88c590466245e5b1514610f1bc1730ecdfbef5
75
py
Python
marcotti/__init__.py
soccermetrics/marcotti
eda2f19bd6cbc6f9c7482e8fe31b2233b33aacfd
[ "MIT" ]
30
2015-11-23T07:51:54.000Z
2020-06-29T16:11:55.000Z
marcottimls/__init__.py
soccermetrics/marcotti-mls
84c6d0d619c1a0c70dc6602074a3c5227959803c
[ "MIT" ]
1
2016-06-26T18:44:47.000Z
2016-06-29T03:02:40.000Z
marcottimls/__init__.py
soccermetrics/marcotti-mls
84c6d0d619c1a0c70dc6602074a3c5227959803c
[ "MIT" ]
8
2016-01-13T12:23:16.000Z
2021-10-11T07:39:33.000Z
from .version import __version__ from base import Marcotti, MarcottiConfig
25
41
0.853333
9
75
6.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.12
75
2
42
37.5
0.909091
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
6b945aa3acce8584a7aec7b33cd5672d45a78e01
104
py
Python
Language Skills/Python/Unit 04 Functions/01 Functions/Built In Functions/13-max.py
rhyep/Python_tutorials
f5c8a64b91802b005dfe7dd9035f8d8daae8c3e3
[ "MIT" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 4/1-Functions/Built In Functions/13-max().py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 4/1-Functions/Built In Functions/13-max().py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
# Set maximum to the max value of any set of numbers on line 3! maximum = max(3,5,10,2) print maximum
17.333333
63
0.711538
22
104
3.363636
0.727273
0
0
0
0
0
0
0
0
0
0
0.073171
0.211538
104
5
64
20.8
0.829268
0.586538
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
6bc031ec14003cb577a8043d5c7f686421e9e978
86
py
Python
datasets/__init__.py
Immocat/coma
baf773ba5ff5f8ece96d8d11d2733dff3ec6f9cf
[ "MIT" ]
69
2020-01-15T14:25:14.000Z
2022-01-21T16:01:27.000Z
datasets/__init__.py
Immocat/coma
baf773ba5ff5f8ece96d8d11d2733dff3ec6f9cf
[ "MIT" ]
4
2020-04-04T15:48:17.000Z
2022-01-17T04:01:56.000Z
datasets/__init__.py
Immocat/coma
baf773ba5ff5f8ece96d8d11d2733dff3ec6f9cf
[ "MIT" ]
17
2020-02-02T14:55:45.000Z
2021-06-09T12:04:20.000Z
from .coma import CoMA from .meshdata import MeshData __all__ = ['CoMA', 'MeshData']
17.2
30
0.732558
11
86
5.363636
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.151163
86
4
31
21.5
0.808219
0
0
0
0
0
0.139535
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6bdd7ecd5ac27bda7ce8764cff4657e2791b6e38
396
py
Python
knowledge_distillation/nbdev_tests/multiple.py
spiaz/knowledge-distillation
d8e04adb140b6dc810862da9e862e4e63a202e60
[ "Apache-2.0" ]
null
null
null
knowledge_distillation/nbdev_tests/multiple.py
spiaz/knowledge-distillation
d8e04adb140b6dc810862da9e862e4e63a202e60
[ "Apache-2.0" ]
null
null
null
knowledge_distillation/nbdev_tests/multiple.py
spiaz/knowledge-distillation
d8e04adb140b6dc810862da9e862e4e63a202e60
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/test_nbdev_define_in_subfolder/01 define in multiple_nbs 1.ipynb (unless otherwise specified). __all__ = ['defined_in_multiple_nbs', 'defined_in_multiple_nbs'] # Cell def defined_in_multiple_nbs(): print("This function was defined on notebook 01") # Cell def defined_in_multiple_nbs(): print("This function was defined on notebook 02")
30.461538
142
0.777778
60
396
4.783333
0.5
0.174216
0.226481
0.278746
0.445993
0.445993
0.445993
0.445993
0.445993
0.445993
0
0.020468
0.136364
396
13
143
30.461538
0.818713
0.378788
0
0.4
1
0
0.518519
0.1893
0
0
0
0
0
1
0.4
false
0
0
0
0.4
0.4
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
d40dcdb6bb08eb794ea3ceb60934c470b9746dc1
343
py
Python
imctools/converters/__init__.py
BodenmillerGroup/imctools
5019836df5dc2b682722e39d5f9c62799b658929
[ "MIT" ]
19
2018-06-12T15:45:46.000Z
2022-02-12T08:33:59.000Z
imctools/converters/__init__.py
BodenmillerGroup/imctools
5019836df5dc2b682722e39d5f9c62799b658929
[ "MIT" ]
82
2017-09-19T18:38:50.000Z
2022-03-31T16:25:19.000Z
imctools/converters/__init__.py
BodenmillerGroup/imctools
5019836df5dc2b682722e39d5f9c62799b658929
[ "MIT" ]
12
2017-11-23T03:01:41.000Z
2022-03-22T14:06:27.000Z
from .exportacquisitioncsv import export_acquisition_csv from .mcdfolder2imcfolder import mcdfolder_to_imcfolder from .ome2analysis import omefile_2_analysisfolder, omefolder_to_analysisfolder from .ome2histocat import ( omefile_to_histocatfolder, omefile_to_tifffolder, omefolder_to_histocatfolder, ) from .v1tov2 import v1_to_v2
34.3
79
0.860058
39
343
7.153846
0.538462
0.09319
0
0
0
0
0
0
0
0
0
0.026144
0.107872
343
9
80
38.111111
0.885621
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.555556
0
0.555556
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
d4245c060bf8809e15115b119db3b3e11501bb1a
494
py
Python
resources/PyInstaller-3.0/tests/old_suite/basic/test_option_verbose.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/old_suite/basic/test_option_verbose.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/old_suite/basic/test_option_verbose.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this software. #----------------------------------------------------------------------------- print('test - PYTHONVERBOSE - trace import statements') import re print('test - done')
30.875
78
0.518219
45
494
5.688889
0.8
0.070313
0
0
0
0
0
0
0
0
0
0.009153
0.115385
494
15
79
32.933333
0.576659
0.783401
0
0
0
0
0.575758
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
1
0
4
d43324f5a09e7e3479e4fa4d2532b9f07a7cf2c5
1,979
py
Python
tests/test_utils.py
Mohamed-Kaizen/ihsan
94dcd9d71f4685109d760a70b64cf98d546535cf
[ "MIT" ]
null
null
null
tests/test_utils.py
Mohamed-Kaizen/ihsan
94dcd9d71f4685109d760a70b64cf98d546535cf
[ "MIT" ]
null
null
null
tests/test_utils.py
Mohamed-Kaizen/ihsan
94dcd9d71f4685109d760a70b64cf98d546535cf
[ "MIT" ]
3
2020-11-29T09:15:19.000Z
2022-01-27T19:15:57.000Z
"""Test cases for the utils module.""" import pathlib from ihsan.utils import read_adfh_file def create_adfh_file( *, directory_path: pathlib.PosixPath, adfh: str, file_extension: str = "toml" ) -> None: """Creating temporary ADFH file.""" (pathlib.Path(directory_path) / f"adfh.{file_extension}").write_text(adfh) def test_read_adfh_toml_file_successfully( tmp_path: pathlib.PosixPath, toml_adfh: str ) -> None: """It exits with a status code of zero.""" create_adfh_file(directory_path=tmp_path, adfh=toml_adfh) data = read_adfh_file(file=(pathlib.Path(tmp_path) / "adfh.toml").as_posix()) assert type(data) == dict def test_read_adfh_yaml_file_successfully( tmp_path: pathlib.PosixPath, yaml_adfh: str ) -> None: """It exits with a status code of zero.""" create_adfh_file(directory_path=tmp_path, file_extension="yaml", adfh=yaml_adfh) data = read_adfh_file(file=(pathlib.Path(tmp_path) / "adfh.yaml").as_posix()) assert type(data) == dict def test_read_adfh_toml_file_fail(tmp_path: pathlib.PosixPath, toml_adfh: str) -> None: """It exits with a status code of zero.""" data = read_adfh_file(file=(pathlib.Path(tmp_path) / "adfh_file.toml").as_posix()) assert type(data) == str assert data == "File doesn't exist." def test_read_adfh_yaml_file_fail(tmp_path: pathlib.PosixPath, yaml_adfh: str) -> None: """It exits with a status code of zero.""" data = read_adfh_file(file=(pathlib.Path(tmp_path) / "adfh_file.yaml").as_posix()) assert type(data) == str assert data == "File doesn't exist." def test_read_adfh_txt_file_fail(tmp_path: pathlib.PosixPath, toml_adfh: str) -> None: """It exits with a status code of zero.""" create_adfh_file(directory_path=tmp_path, adfh=toml_adfh, file_extension="txt") data = read_adfh_file(file=(pathlib.Path(tmp_path) / "adfh.txt").as_posix()) assert type(data) == str assert data == "You can only pick toml or yaml file."
38.057692
87
0.711976
305
1,979
4.347541
0.177049
0.090498
0.066365
0.079186
0.791855
0.771493
0.705882
0.705882
0.680241
0.680241
0
0
0.154118
1,979
51
88
38.803922
0.792115
0.124811
0
0.322581
0
0
0.09434
0.012382
0
0
0
0
0.258065
1
0.193548
false
0
0.064516
0
0.258065
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d445321b429883742cd0829578c60bf2d6f4e146
205
py
Python
windtalker/exc.py
MacHu-GWU/windtalker-project
17531ab7df72b85e7bbbfff3c53ff3bcda037d5d
[ "MIT" ]
1
2016-05-17T09:14:26.000Z
2016-05-17T09:14:26.000Z
windtalker/exc.py
MacHu-GWU/windtalker-project
17531ab7df72b85e7bbbfff3c53ff3bcda037d5d
[ "MIT" ]
1
2021-02-02T02:04:28.000Z
2021-02-02T02:04:28.000Z
windtalker/exc.py
MacHu-GWU/windtalker-project
17531ab7df72b85e7bbbfff3c53ff3bcda037d5d
[ "MIT" ]
1
2016-11-18T16:12:41.000Z
2016-11-18T16:12:41.000Z
# -*- coding: utf-8 -*- class PasswordError(Exception): """symmetric encrypt wrong password error. """ class SignatureError(Exception): """asymmetric encrypt wrong signature error. """
17.083333
48
0.658537
19
205
7.105263
0.736842
0.177778
0
0
0
0
0
0
0
0
0
0.006098
0.2
205
11
49
18.636364
0.817073
0.556098
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
4
d45809049bc90c85d8f49236d1dde20d5462fb3e
230
py
Python
django-project/sponsors/admin.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
null
null
null
django-project/sponsors/admin.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
6
2020-02-24T19:11:26.000Z
2021-05-07T13:44:56.000Z
django-project/sponsors/admin.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
1
2018-07-31T16:13:42.000Z
2018-07-31T16:13:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from . import models # Register your models here. @admin.register(models.Sponsor) class SponsorAdmin(admin.ModelAdmin): pass
17.692308
39
0.756522
29
230
5.827586
0.689655
0
0
0
0
0
0
0
0
0
0
0.005102
0.147826
230
12
40
19.166667
0.857143
0.208696
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.5
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
4
d476776eda6dc72787ad636bc84ff5f3470f85fd
251
py
Python
caer/_meta.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
caer/_meta.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
caer/_meta.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
# This file is automatically generated during the generation of setup.py # Copyright 2020, Caer author = 'Jason Dsouza <jasmcaus@gmail.com>' version = '1.7.8' full_version = '1.7.8' release = True contributors = ['Jason Dsouza <jasmcaus@gmail.com>']
27.888889
72
0.737052
37
251
4.972973
0.756757
0.119565
0.206522
0.26087
0.293478
0
0
0
0
0
0
0.046296
0.139442
251
8
73
31.375
0.805556
0.36255
0
0
1
0
0.487179
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
d47f4e3854cec5b6ee816e7c58038b06475ad66e
124
py
Python
pelicanconf.py
nitishkiitk/osdoc
c5c22b3fc7ccb7f912d8f915ded30f502d933303
[ "CC-BY-3.0" ]
1
2021-06-17T15:42:09.000Z
2021-06-17T15:42:09.000Z
pelicanconf.py
nitishkiitk/osdoc
c5c22b3fc7ccb7f912d8f915ded30f502d933303
[ "CC-BY-3.0" ]
null
null
null
pelicanconf.py
nitishkiitk/osdoc
c5c22b3fc7ccb7f912d8f915ded30f502d933303
[ "CC-BY-3.0" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from baseconf import * SITEURL = 'http://localhost:8000/' + BRANCH
17.714286
43
0.758065
16
124
5.5625
0.875
0
0
0
0
0
0
0
0
0
0
0.046729
0.137097
124
6
44
20.666667
0.785047
0.096774
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
d481fb5cb297273d0a22a8d10f00c093f15a94d7
138
py
Python
polls/my_polls/templatetags/my_polls_filters.py
ToniIvars/django-poll
3be4bbe7d711f3b9a7fc60cf983d5bfd0524580c
[ "MIT" ]
null
null
null
polls/my_polls/templatetags/my_polls_filters.py
ToniIvars/django-poll
3be4bbe7d711f3b9a7fc60cf983d5bfd0524580c
[ "MIT" ]
null
null
null
polls/my_polls/templatetags/my_polls_filters.py
ToniIvars/django-poll
3be4bbe7d711f3b9a7fc60cf983d5bfd0524580c
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter def get_by_index(iterable, index): return iterable[index]
19.714286
34
0.782609
18
138
5.888889
0.722222
0.245283
0
0
0
0
0
0
0
0
0
0
0.130435
138
7
35
19.714286
0.883333
0
0
0
0
0
0
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
2e4c20facec5ad13cf2172f16925c5da62471438
374
py
Python
ext/datawald_bcagency/datawald_bcagency/bcagent.py
ideabosque/DataWald-AWS
3ea905a40526dad3cb0eff92167c1e4230aa4aa9
[ "MIT" ]
null
null
null
ext/datawald_bcagency/datawald_bcagency/bcagent.py
ideabosque/DataWald-AWS
3ea905a40526dad3cb0eff92167c1e4230aa4aa9
[ "MIT" ]
null
null
null
ext/datawald_bcagency/datawald_bcagency/bcagent.py
ideabosque/DataWald-AWS
3ea905a40526dad3cb0eff92167c1e4230aa4aa9
[ "MIT" ]
null
null
null
from bcagency import BCAgency class BCAgent(BCAgency): def __init__(self, setting=None, logger=None, feApp='bc', boApp='bc', dataWald=None, feConn=None, boConn=None): BCAgency.__init__(self, setting=setting, logger=logger, feApp=feApp, boApp=boApp, dataWald=dataWald, feConn=feConn, boConn=boConn) def feOrdersExtFt(self, orders, rawOrders): pass
37.4
138
0.729947
47
374
5.638298
0.446809
0.060377
0.113208
0
0
0
0
0
0
0
0
0
0.147059
374
9
139
41.555556
0.830721
0
0
0
0
0
0.010695
0
0
0
0
0
0
1
0.333333
false
0.166667
0.166667
0
0.666667
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
1
0
1
0
0
1
0
0
4
2e4ecf7966acd1c926e1c0b370dd189eb30be41a
221
py
Python
mvlearn/__init__.py
Gauravsinghal09/mvlearn
81092120595fadfc3d1f624d0a772594d8bb1578
[ "Apache-2.0" ]
1
2020-12-29T15:41:29.000Z
2020-12-29T15:41:29.000Z
mvlearn/__init__.py
Gauravsinghal09/mvlearn
81092120595fadfc3d1f624d0a772594d8bb1578
[ "Apache-2.0" ]
null
null
null
mvlearn/__init__.py
Gauravsinghal09/mvlearn
81092120595fadfc3d1f624d0a772594d8bb1578
[ "Apache-2.0" ]
null
null
null
import mvlearn.embed import mvlearn.cluster import mvlearn.construct import mvlearn.semi_supervised import mvlearn.datasets import mvlearn.utils import mvlearn.factorization import mvlearn.plotting __version__ = "0.2.1"
20.090909
30
0.850679
29
221
6.310345
0.517241
0.568306
0
0
0
0
0
0
0
0
0
0.014925
0.090498
221
10
31
22.1
0.895522
0
0
0
0
0
0.022624
0
0
0
0
0
0
1
0
false
0
0.888889
0
0.888889
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
0
0
0
1
0
1
0
0
4
2e54fcd8d7df5c420637142e178c220ed76aff61
1,401
py
Python
old/htest.py
bobbydurrett/my15puzzlesolver
85ef834ce1c48bd725893bb29d820236aac98752
[ "MIT" ]
null
null
null
old/htest.py
bobbydurrett/my15puzzlesolver
85ef834ce1c48bd725893bb29d820236aac98752
[ "MIT" ]
null
null
null
old/htest.py
bobbydurrett/my15puzzlesolver
85ef834ce1c48bd725893bb29d820236aac98752
[ "MIT" ]
null
null
null
from astar import * # Rosetta Code start position """ start = Position([[15, 14, 1, 6], [ 9, 11, 4, 12], [ 0, 10, 7, 3], [13, 8, 5, 2]]) """ # 20 moves """ start = Position([[ 0, 1, 3, 4], [ 9, 5, 2, 8], [ 6, 10, 12, 7], [ 13, 14, 11, 15]]) """ # 21 moves start = Position([[ 9, 1, 3, 4], [ 0, 5, 2, 8], [ 6, 10, 12, 7], [ 13, 14, 11, 15]]) # two moves """ start = Position([[ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 0, 12], [13, 14, 11, 15]]) """ # one move """ start = Position([[ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 11, 12], [13, 14, 0, 15]]) """ # two linear conflicts """ start = Position([[ 1, 2, 3, 4], [ 9, 6, 7, 8], [ 5, 11, 10, 12], [13, 14, 15, 0]]) """ # 30 moves """ start = Position([[ 9, 3, 4, 8], [ 5, 1, 12, 0], [ 6, 10, 11, 2], [ 13, 14, 15, 7]]) """ goal = Position([[ 1, 2, 3, 4], [ 5, 6, 7, 8], [ 9, 10, 11, 12], [13, 14, 15, 0]]) hob = HeuristicObj(goal) print(hob.heuristic(start))
17.734177
36
0.294789
171
1,401
2.415205
0.216374
0.251816
0.174334
0.106538
0.353511
0.324455
0.283293
0.283293
0.283293
0.283293
0
0.264151
0.508208
1,401
78
37
17.961538
0.335269
0.067095
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.090909
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2e656cffd601563c32726c45848f09e79ee514ea
214
py
Python
engine/constants.py
karthikpanicker/card28-engine
8fa745c98712ee2e5ae4a23a7d5879eb15eb7140
[ "MIT" ]
1
2020-06-26T16:47:36.000Z
2020-06-26T16:47:36.000Z
engine/constants.py
karthikpanicker/card28-engine
8fa745c98712ee2e5ae4a23a7d5879eb15eb7140
[ "MIT" ]
null
null
null
engine/constants.py
karthikpanicker/card28-engine
8fa745c98712ee2e5ae4a23a7d5879eb15eb7140
[ "MIT" ]
null
null
null
BID_VALUE = 'BID_VALUE' PASS = "PASS" MIN_BID_VALUE = "MIN_BID_VALUE" FIRST_ROUND_HONORS_MIN= "FIRST_ROUND_HONORS_MIN" SECOND_ROUND_HONORS_MIN="SECOND_ROUND_HONORS_MIN" TRUMP_CARD_ABBREVIATION= "CARD_ABBREVIATION"
30.571429
49
0.850467
33
214
4.878788
0.333333
0.198758
0.347826
0.236025
0.335404
0.335404
0.335404
0
0
0
0
0
0.065421
214
6
50
35.666667
0.805
0
0
0
0
0
0.411215
0.21028
0
0
0
0
0
1
0
false
0.166667
0
0
0
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
1
0
0
0
0
0
4
2e8bc7c29c88f4d998b499a451712d15a22c2aea
90
py
Python
rltorch/policy/__init__.py
cindycia/Atari-SAC-Discrete
5d92339f3efbac34488a14db024499b8951fc3b3
[ "MIT" ]
16
2019-11-15T13:37:20.000Z
2022-01-24T10:29:38.000Z
rltorch/policy/__init__.py
cindycia/Atari-SAC-Discrete
5d92339f3efbac34488a14db024499b8951fc3b3
[ "MIT" ]
1
2020-05-09T18:24:21.000Z
2020-05-10T12:44:39.000Z
rltorch/policy/__init__.py
ku2482/rltorch
7819af49d95bfa268e00413a7606564b0e7286a7
[ "MIT" ]
3
2020-12-21T08:21:15.000Z
2022-01-24T10:29:43.000Z
from .gaussian import LinearGaussianPolicy from .categorical import ConvCategoricalPolicy
30
46
0.888889
8
90
10
0.75
0
0
0
0
0
0
0
0
0
0
0
0.088889
90
2
47
45
0.97561
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
cf1d68c2997ca8e6f753799e3f1dd7589527b28b
582
py
Python
atlassian_connect_django/helpers.py
gerasev-kirill/atlassian-connect-django
cd44232df512691d9ec14722c38785cf802862e9
[ "MIT" ]
null
null
null
atlassian_connect_django/helpers.py
gerasev-kirill/atlassian-connect-django
cd44232df512691d9ec14722c38785cf802862e9
[ "MIT" ]
null
null
null
atlassian_connect_django/helpers.py
gerasev-kirill/atlassian-connect-django
cd44232df512691d9ec14722c38785cf802862e9
[ "MIT" ]
null
null
null
from django.conf import settings try: from django.contrib.sites.shortcuts import get_current_site as _get_current_site from django.contrib.sites.models import Site as SiteModel if getattr(settings, 'DJANGO_ATLASSIAN_CONNECT_ADDON', {}).get('use_sites_framework', False): def get_current_site(request=None): return _get_current_site(request) else: SiteModel = None def get_current_site(request=None): return None except ImportError: SiteModel = None def get_current_site(request=None): return None
27.714286
97
0.709622
74
582
5.324324
0.405405
0.152284
0.213198
0.213198
0.345178
0.345178
0.345178
0.258883
0.258883
0.258883
0
0
0.219931
582
20
98
29.1
0.867841
0
0
0.466667
0
0
0.084192
0.051546
0
0
0
0
0
1
0.2
false
0
0.266667
0.2
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
cf2bdb50132eef331087aa11e3cade1eaa9d26f1
30
py
Python
My Resources/f2.py
PradeepDuraisamy/Python
b088f3e9ead302a97cdde2e7f709fc05d5f1068a
[ "Apache-2.0" ]
null
null
null
My Resources/f2.py
PradeepDuraisamy/Python
b088f3e9ead302a97cdde2e7f709fc05d5f1068a
[ "Apache-2.0" ]
null
null
null
My Resources/f2.py
PradeepDuraisamy/Python
b088f3e9ead302a97cdde2e7f709fc05d5f1068a
[ "Apache-2.0" ]
null
null
null
Hello World!!! This is append
10
14
0.733333
5
30
4.4
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
2
15
15
0.88
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