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
af44e38f4fc4b26a6eb78fe22073ad09fabd401d
448
py
Python
automatization_of_data_mining_project/data_set_loader/exceptions/loader_exceptions.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_loader/exceptions/loader_exceptions.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
automatization_of_data_mining_project/data_set_loader/exceptions/loader_exceptions.py
Sale1996/automatization_of_data_mining_project
223aec59231586563a3b125bff064f8420630a8f
[ "MIT" ]
null
null
null
class Error(Exception): """Base class for other exceptions""" pass class WrongPathNameFormatError(Error): """Raised when the path name has wrong format""" pass class FileIsNotFoundError(Error): """Raised when the input file from the path name was not found by loader""" pass class MissingIm...
23.578947
90
0.714286
58
448
5.517241
0.637931
0.084375
0.140625
0.16875
0
0
0
0
0
0
0
0
0.205357
448
18
91
24.888889
0.898876
0.502232
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0.125
0
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
af46a2ea0f37088b4c94dab6def8bfe883202613
810
py
Python
vision/src/VisionTest/BroadcasterTEST.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
null
null
null
vision/src/VisionTest/BroadcasterTEST.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
52
2020-01-15T16:45:32.000Z
2020-04-19T12:00:01.000Z
vision/src/VisionTest/BroadcasterTEST.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
4
2020-01-15T15:11:08.000Z
2021-01-11T17:41:07.000Z
from VisionInterfaces.Broadcaster import Broadcaster import cv2 class BroadcasterTEST(Broadcaster) : def __init__(self): self.m_currentFrame = 0 def broadcastCoordinatesOfPuck(self,i_xPos,i_Ypos): """ This implementation does nothing, as the USB implementation does not need to brodcast...
33.75
110
0.650617
100
810
5.13
0.55
0.02924
0.099415
0.066277
0
0
0
0
0
0
0
0.006849
0.279012
810
24
111
33.75
0.871575
0.379012
0
0
0
0
0.091127
0.091127
0
0
0
0
0
1
0.3
false
0.1
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
af5265170244a04b51b1a732586b616b84ef14f5
840
py
Python
transistor/persistence/__init__.py
awesome-archive/transistor
d164438474f91dd38bae693af426a0ac4187511f
[ "MIT" ]
232
2019-01-04T00:19:18.000Z
2022-03-14T15:48:33.000Z
transistor/persistence/__init__.py
awesome-archive/transistor
d164438474f91dd38bae693af426a0ac4187511f
[ "MIT" ]
65
2018-11-12T15:41:00.000Z
2021-06-25T15:23:30.000Z
transistor/persistence/__init__.py
bmjjr/transistor
4bc5eaa1beac334cd05f2149a1dd584e0d803921
[ "MIT" ]
22
2019-03-20T07:51:25.000Z
2021-08-02T07:53:42.000Z
# -*- coding: utf-8 -*- """ transistor.persistence ~~~~~~~~~~~~ This module implements classes and methods to aid persistence, including database, spreadsheet export, write to file. :copyright: Copyright (C) 2018 by BOM Quote Limited :license: The MIT License, see LICENSE for more details. ~~~~~~~~~~~~ """ from .expo...
38.181818
83
0.727381
82
840
7.304878
0.658537
0.1202
0.180301
0.230384
0.347245
0.347245
0
0
0
0
0
0.007022
0.152381
840
21
84
40
0.83427
0.355952
0
0
0
0
0.292683
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.25
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
0
0
0
3
af7f23d711e36d850bdf48aceef06c7a42421242
132
py
Python
app/db.py
vladkhard/learning_fastapi
e15885b72c3a4ba42c74d061304f05b47f6aa4c0
[ "MIT" ]
null
null
null
app/db.py
vladkhard/learning_fastapi
e15885b72c3a4ba42c74d061304f05b47f6aa4c0
[ "MIT" ]
null
null
null
app/db.py
vladkhard/learning_fastapi
e15885b72c3a4ba42c74d061304f05b47f6aa4c0
[ "MIT" ]
null
null
null
import os import pymongo DB_NAME = os.getenv("DB_NAME") client = pymongo.MongoClient("mongodb://db:27017") db = client[DB_NAME]
13.2
50
0.727273
20
132
4.65
0.5
0.193548
0
0
0
0
0
0
0
0
0
0.043478
0.128788
132
9
51
14.666667
0.765217
0
0
0
0
0
0.189394
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
af920561ac190dcc6a10f3d2d93616881847c6bf
5,048
py
Python
stubs.min/System/Windows/Forms/__init___parts/ListBindingHelper.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Forms/__init___parts/ListBindingHelper.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Forms/__init___parts/ListBindingHelper.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class ListBindingHelper(object): """ Provides functionality to discover a bindable list and the properties of the items contained in the list when they differ from the public properties of the object to which they bind. """ @staticmethod def GetList(*__args): """ GetList(dataSource: object,dataMember: str) ...
41.04065
192
0.727417
614
5,048
5.964169
0.159609
0.068269
0.05325
0.028673
0.588476
0.502185
0.469962
0.433916
0.433916
0.395685
0
0
0.227021
5,048
122
193
41.377049
0.938493
0.859746
0
0.421053
0
0
0.151685
0.058989
0
0
0
0
0
1
0.210526
false
0.210526
0
0
0.315789
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
1
0
0
0
0
0
3
afbd8fd9438398c67ccf1553c595f5d817a0df9a
138
py
Python
App.py
RRFreitas/Projeto_APS
28471ee1e525ccbc483cad2abc9a17ba515bf0da
[ "MIT" ]
null
null
null
App.py
RRFreitas/Projeto_APS
28471ee1e525ccbc483cad2abc9a17ba515bf0da
[ "MIT" ]
null
null
null
App.py
RRFreitas/Projeto_APS
28471ee1e525ccbc483cad2abc9a17ba515bf0da
[ "MIT" ]
null
null
null
from Sistema import Sistema def main(): sistema = Sistema() sistema.menuPrincipal() if __name__ == '__main__': main()
17.25
28
0.630435
14
138
5.642857
0.571429
0.35443
0
0
0
0
0
0
0
0
0
0
0.253623
138
8
29
17.25
0.76699
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
0
0
0
0
0
3
afc516af56e84d673c14f4220aa43b27425098f4
218
py
Python
src/envs/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/envs/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/envs/__init__.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
from functools import partial def env_fn(env, **kwargs): return env(**kwargs) REGISTRY = {} from .starcraft2 import StarCraft2Env REGISTRY["sc2"] = partial(env_fn, env=StarCraft2Env)
16.769231
44
0.642202
24
218
5.75
0.541667
0.072464
0.115942
0
0
0
0
0
0
0
0
0.02454
0.252294
218
12
45
18.166667
0.822086
0
0
0
0
0
0.013825
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0.142857
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
afcda485e39f0fe0a343a9024f381bf93baca79f
242
py
Python
src/blockchain/data/mempool.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/data/mempool.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
src/blockchain/data/mempool.py
ParisNeo/blockchain
8bc2768a3e89088e202ea89e5f301576f6f9d95c
[ "MIT" ]
null
null
null
""" File : mempool.py Author : ParisNeo Description : Here are stored the pending transactions """ import pickle import time from blockchain.data import transaction class MemPool(): def __init__(self): self.transactions=[]
17.285714
44
0.714876
28
242
6.035714
0.821429
0
0
0
0
0
0
0
0
0
0
0
0.198347
242
13
45
18.615385
0.871134
0.396694
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
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
3
bb68f2feb093d08bc209b06a10c4f49d79cb7901
4,508
py
Python
ds-sdk-mini/DeepSecurity/antimalware.py
zachwhaley/thus
22b006c4ea110fbdc09a79c38e49e79ba04bb4d4
[ "MIT" ]
24
2020-09-10T18:34:04.000Z
2022-02-09T01:52:20.000Z
ds-sdk-mini/DeepSecurity/antimalware.py
zachwhaley/thus
22b006c4ea110fbdc09a79c38e49e79ba04bb4d4
[ "MIT" ]
5
2020-09-11T17:22:08.000Z
2021-09-08T15:51:58.000Z
ds-sdk-mini/DeepSecurity/antimalware.py
zachwhaley/thus
22b006c4ea110fbdc09a79c38e49e79ba04bb4d4
[ "MIT" ]
6
2020-09-10T20:03:00.000Z
2021-06-25T07:33:21.000Z
# Copyright (c) 2020. Brendan Johnson. All Rights Reserved. #import connect #import config class Antimalware: def __init__(self, config, connection): self._config=config self._connection = connection ##Antimalware config def list(self): return self._connection.get(url='/antimalware...
59.315789
147
0.749778
428
4,508
7.813084
0.161215
0.129785
0.179426
0.121112
0.695873
0.604366
0.433313
0.158493
0
0
0
0.001024
0.133097
4,508
75
148
60.106667
0.854657
0.031943
0
0
0
0
0.175063
0.142397
0
0
0
0
0
1
0.484375
false
0
0
0.46875
0.96875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bb6f794f984d908ecdc4f733727cc9d472304ead
122
py
Python
python/models/apps.py
thejoeejoee/UPA-MIT-VUT-2020-2021
578ac0ec057b23d71792bab9df34e0bc143aabd3
[ "MIT" ]
null
null
null
python/models/apps.py
thejoeejoee/UPA-MIT-VUT-2020-2021
578ac0ec057b23d71792bab9df34e0bc143aabd3
[ "MIT" ]
5
2021-04-08T20:36:28.000Z
2021-09-22T19:39:33.000Z
python/models/apps.py
thejoeejoee/UPA-MIT-VUT-2020-2021
578ac0ec057b23d71792bab9df34e0bc143aabd3
[ "MIT" ]
1
2021-09-08T10:23:34.000Z
2021-09-08T10:23:34.000Z
from django.apps import AppConfig class ModelsAppConfig(AppConfig): name = 'models' __all__ = ['ModelsAppConfig']
13.555556
33
0.737705
12
122
7.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.163934
122
8
34
15.25
0.843137
0
0
0
0
0
0.172131
0
0
0
0
0
0
1
0
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
0
0
0
0
0
1
0
0
3
bb7d8e9b022d00ff8e650dc55ef998ef2a8eb1cd
489
py
Python
metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/timeseries/__init__.py
zhoxie-cisco/datahub
254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad
[ "Apache-2.0" ]
1
2022-02-09T03:13:59.000Z
2022-02-09T03:13:59.000Z
metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/timeseries/__init__.py
zhoxie-cisco/datahub
254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad
[ "Apache-2.0" ]
4
2022-03-02T03:01:24.000Z
2022-03-23T00:57:33.000Z
metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/timeseries/__init__.py
zhoxie-cisco/datahub
254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # This file is autogenerated by /metadata-ingestion/scripts/avro_codegen.py # Do not modify manually! # fmt: off from .....schema_classes import CalendarIntervalClass from .....schema_classes import PartitionSpecClass from .....schema_classes import TimeWindowClass from .....schema_classes import TimeW...
27.166667
75
0.813906
49
489
8.020408
0.653061
0.101781
0.173028
0.234097
0
0
0
0
0
0
0
0.002294
0.108384
489
17
76
28.764706
0.899083
0.259714
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bb7fdf7658d46823eadb8d9f819662299e86039d
1,410
py
Python
Platforms/Web/Processing/Api/Discord/Commands/main.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/Commands/main.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/Commands/main.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Discord.main_discord import PhaazebotDiscord from Platforms.Web.index import WebIndex from aiohttp.web import Response, Request from .get import apiDiscordCommandsGet from .create import apiDiscordCommandsCreate from .list import apiDiscordCommandsLis...
34.390244
102
0.796454
158
1,410
7.082278
0.360759
0.078642
0.075961
0.10277
0.080429
0
0
0
0
0
0
0
0.119149
1,410
40
103
35.25
0.900966
0
0
0
0
0
0.082784
0
0
0
0
0
0
1
0
true
0
0.37037
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
bb97179530736c442fa5028798bab55f6b4c6332
2,320
py
Python
assignment2/src/photogallery/tests/exporter_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
1
2017-04-25T07:06:22.000Z
2017-04-25T07:06:22.000Z
assignment2/src/photogallery/tests/exporter_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
null
null
null
assignment2/src/photogallery/tests/exporter_test.py
rahulraj/web_projects
4d16cb7d7a9c0e408d5f44165dbdc050bbaceddd
[ "MIT" ]
null
null
null
import unittest from ..utils.inject import assign_injectables from ..utils.immutabledict import ImmutableDict from ..generator.exporter import Exporter directory_values = ['title', 'images'] picture_values = ['alt_text', 'src', 'caption_data'] class MockJinja2Template(object): def __init__(self, required_values): ...
29.367089
80
0.751293
285
2,320
5.842105
0.252632
0.06006
0.042042
0.043243
0.452853
0.4
0.361562
0.224625
0.183784
0.122523
0
0.006042
0.143966
2,320
78
81
29.74359
0.832326
0
0
0.396552
0
0
0.063793
0
0
0
0
0
0.017241
1
0.310345
false
0
0.068966
0.172414
0.637931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
bbd1db1d98f46f62e99e986034cc23595fc6ad48
290
py
Python
xs/utils/data/dataset.py
eLeVeNnN/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
290
2020-07-06T02:13:12.000Z
2021-01-04T14:23:39.000Z
xs/utils/data/dataset.py
E1eveNn/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
1
2020-12-03T11:11:48.000Z
2020-12-03T11:11:48.000Z
xs/utils/data/dataset.py
E1eveNn/xshinnosuke
69da91e0ea5042437edfc31c0e6ff9ef394c6cc9
[ "MIT" ]
49
2020-07-16T00:27:47.000Z
2020-11-26T03:03:14.000Z
class DataSet: def __init__(self, *datas): self.datas = list(datas) def __len__(self): return len(self.datas[0]) def __getitem__(self, item): ret_list = [] for data in self.datas: ret_list.append(data[item]) return ret_list
22.307692
39
0.575862
37
290
4.108108
0.459459
0.236842
0
0
0
0
0
0
0
0
0
0.005025
0.313793
290
12
40
24.166667
0.758794
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0
0.1
0.6
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
bbdfcd7eb62ca85aded2a392a32870a62c671c8f
217
py
Python
lfd_hw1_introd/hw1_test.py
MahmutOsmanovic/machine-learning-mooc-caltech
deca978e13f6d6950f06417c4d520e71904962d7
[ "MIT" ]
null
null
null
lfd_hw1_introd/hw1_test.py
MahmutOsmanovic/machine-learning-mooc-caltech
deca978e13f6d6950f06417c4d520e71904962d7
[ "MIT" ]
null
null
null
lfd_hw1_introd/hw1_test.py
MahmutOsmanovic/machine-learning-mooc-caltech
deca978e13f6d6950f06417c4d520e71904962d7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 2 12:21:09 2021 @author: Mahmu """ import random import pylab import numpy as np x1 = random.uniform(-1, 1) y1 = random.uniform(-1, 1) print(str(x1) + "\n" + str(y1))
15.5
35
0.62212
38
217
3.552632
0.710526
0.192593
0.207407
0.222222
0
0
0
0
0
0
0
0.112994
0.184332
217
14
36
15.5
0.649718
0.341014
0
0
0
0
0.014706
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.166667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bbe146dd0200e6e282b8218e43fa69c6864242f4
2,578
py
Python
test/test_plugins/test_image.py
fenwar/limbo
a6e42ad90daa3691c2dce846023662e0a650171b
[ "MIT" ]
null
null
null
test/test_plugins/test_image.py
fenwar/limbo
a6e42ad90daa3691c2dce846023662e0a650171b
[ "MIT" ]
1
2018-10-29T20:23:38.000Z
2018-10-29T20:23:38.000Z
test/test_plugins/test_image.py
fenwar/limbo
a6e42ad90daa3691c2dce846023662e0a650171b
[ "MIT" ]
1
2018-09-19T08:36:42.000Z
2018-09-19T08:36:42.000Z
# -*- coding: UTF-8 -*- import json import os import sys import limbo import vcr DIR = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.join(DIR, '../../limbo/plugins')) from image import on_message # The set of valid images given the bananas fixture bananas_images = ['http://cdn1.medicalnewst...
71.611111
1,652
0.757952
361
2,578
5.33241
0.470914
0.04
0.074805
0.069091
0.16987
0.134026
0.108052
0.108052
0.108052
0.108052
0
0.0711
0.072537
2,578
35
1,653
73.657143
0.734003
0.044608
0
0.083333
0
0.375
0.699065
0.026027
0
0
0
0
0.041667
1
0.125
false
0
0.291667
0.041667
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
bbf84594a2273f0f91ba2118f3e652180d22e2b0
451
py
Python
tests/test_storage_aws.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
5
2018-09-23T23:15:06.000Z
2019-07-04T00:19:44.000Z
tests/test_storage_aws.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
null
null
null
tests/test_storage_aws.py
Accelize/apyfal
22dfe791e0956d3d3353daeba0c7a21dfe2f9b77
[ "Apache-2.0" ]
4
2018-07-17T08:39:41.000Z
2020-01-10T23:15:38.000Z
# coding=utf-8 """apyfal.storage.aws tests""" import pytest from tests.test_storage import ( run_full_real_test_sequence, import_from_generic_test) def test_s3class_import(): """S3Storage import""" # Test: Import by factory without errors import_from_generic_test('AWS') @pytest.mark.need_csp @pytes...
22.55
58
0.749446
65
451
4.861538
0.446154
0.044304
0.06962
0.094937
0.14557
0
0
0
0
0
0
0.012887
0.13969
451
19
59
23.736842
0.801546
0.259424
0
0
0
0
0.018927
0
0
0
0
0
0
1
0.222222
false
0
0.555556
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
a536aae3c33c79b131a8e29db67f2b9a4a8d0835
290
py
Python
models/validation/OneOfValidator.py
meguia/virtualroom
adf7317c8af929883129de4f96bb0fae437b8340
[ "MIT" ]
1
2021-11-17T00:30:22.000Z
2021-11-17T00:30:22.000Z
models/validation/OneOfValidator.py
meguia/virtualroom
adf7317c8af929883129de4f96bb0fae437b8340
[ "MIT" ]
1
2022-03-16T23:53:48.000Z
2022-03-16T23:53:48.000Z
models/validation/OneOfValidator.py
meguia/virtualroom
adf7317c8af929883129de4f96bb0fae437b8340
[ "MIT" ]
null
null
null
from .Validator import Validator class OneOfValidator(Validator): def __init__(self, *options): self.options = set(options) def validate(self, value): if value not in self.options: raise ValueError(f'Expected {value!r} to be one of {self.options!r}')
26.363636
81
0.665517
38
290
4.973684
0.631579
0.232804
0
0
0
0
0
0
0
0
0
0
0.231034
290
10
82
29
0.847534
0
0
0
0
0
0.165517
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.571429
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
a53ef0665c38ea16982dacffcbfe86cf8fff5053
231
py
Python
importify/__init__.py
litcoderr/loadit
3f91bba04b84062d99f8806fa976d7c09846fe5d
[ "MIT" ]
1
2020-08-17T23:35:19.000Z
2020-08-17T23:35:19.000Z
importify/__init__.py
litcoderr/importify
3f91bba04b84062d99f8806fa976d7c09846fe5d
[ "MIT" ]
null
null
null
importify/__init__.py
litcoderr/importify
3f91bba04b84062d99f8806fa976d7c09846fe5d
[ "MIT" ]
null
null
null
# Copyright 2020 by Youngchae James Chee. # Github: https://github.com/litcoderr # All rights reserved. # This file is released under the "MIT License Agreement". # Please see the LICENSE file. from .interface import Serializable
28.875
58
0.770563
32
231
5.5625
0.875
0
0
0
0
0
0
0
0
0
0
0.020408
0.151515
231
7
59
33
0.887755
0.792208
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
0
0
0
3
a541ac41228d2b1d158a63f7589b60a3cc3d8a9e
218
py
Python
data/models/simulator/pepsenum.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
5
2019-08-29T13:55:47.000Z
2021-11-15T08:30:33.000Z
data/models/simulator/pepsenum.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
295
2019-08-19T12:40:29.000Z
2022-01-24T14:03:20.000Z
data/models/simulator/pepsenum.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
7
2020-05-27T06:28:48.000Z
2021-11-17T10:00:54.000Z
from enum import IntEnum from abc import abstractmethod class PepsEnum(IntEnum): @property @abstractmethod def display_text(self): raise NotImplementedError('display_text method not implemented')
21.8
72
0.756881
24
218
6.791667
0.75
0.134969
0
0
0
0
0
0
0
0
0
0
0.188073
218
9
73
24.222222
0.920904
0
0
0
0
0
0.16055
0
0
0
0
0
0
1
0.142857
false
0
0.285714
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
0
0
1
0
0
3
a5457db99f0d45cfb7c38e822294ecc0c353afd0
62
py
Python
mmdet/ops/corner_pool/__init__.py
vanyalzr/mmdetection
7fc2e1a20cd4b4dda82027659363be2b15e4adf9
[ "Apache-2.0" ]
274
2021-04-06T15:46:06.000Z
2022-03-31T02:00:10.000Z
mmdet/ops/corner_pool/__init__.py
wondervictor/lvis-mmdet
68532eb6f4643ddf0179a4384c8c9e004a2c1d07
[ "Apache-2.0" ]
136
2021-07-11T11:26:54.000Z
2022-03-31T02:45:34.000Z
mmdet/ops/corner_pool/__init__.py
wondervictor/lvis-mmdet
68532eb6f4643ddf0179a4384c8c9e004a2c1d07
[ "Apache-2.0" ]
84
2021-05-29T06:58:14.000Z
2022-03-31T07:44:10.000Z
from .corner_pool import CornerPool __all__ = ['CornerPool']
15.5
35
0.774194
7
62
6.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.129032
62
3
36
20.666667
0.796296
0
0
0
0
0
0.16129
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
a562dc5b3b17b775311b9d0ef0e2f37faf63b22e
134
py
Python
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/06. Multidimensional Lists/05_primary_diagonal.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/06. Multidimensional Lists/05_primary_diagonal.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.1 Python Advanced (September 2021)/06. Multidimensional Lists/05_primary_diagonal.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
size = int(input()) matrix = [[int(x) for x in input().split()] for _ in range(size)] print(sum([matrix[x][x] for x in range(size)]))
33.5
65
0.626866
25
134
3.32
0.44
0.096386
0.120482
0.168675
0
0
0
0
0
0
0
0
0.141791
134
3
66
44.666667
0.721739
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
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
0
0
0
0
0
3
a56bca8f24752d07a5e8e8fede003e6e529c4a7f
53
py
Python
backend/gifz_api/gifs/__init__.py
mkusiciel/terraform-workshops
52fd795cbd4e2b180dc7729cefe69cde40a50abf
[ "MIT" ]
3
2018-04-14T08:30:56.000Z
2018-06-30T06:56:00.000Z
backend/gifz_api/gifs/__init__.py
0mk1/terraform-workshops
689ed933bbffa90dd49cd2bc5617a971cb2c5e37
[ "MIT" ]
1
2018-06-30T07:08:09.000Z
2018-06-30T07:08:09.000Z
backend/gifz_api/gifs/__init__.py
0mk1/terraform-workshops
689ed933bbffa90dd49cd2bc5617a971cb2c5e37
[ "MIT" ]
3
2018-04-14T10:41:59.000Z
2019-11-10T21:27:43.000Z
default_app_config = 'gifz_api.gifs.apps.GifsConfig'
26.5
52
0.830189
8
53
5.125
1
0
0
0
0
0
0
0
0
0
0
0
0.056604
53
1
53
53
0.82
0
0
0
0
0
0.54717
0.54717
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a5b80ed2e2bf86503490b0a49198e8505e86dec0
238
py
Python
nevernoip/P1422.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
nevernoip/P1422.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
nevernoip/P1422.py
GalvinGao/2019-ProgrammingCourse
b668bc9bab902959a574aa3db73ae481131c0c27
[ "MIT" ]
null
null
null
def main(x): if x <= 150: return x * .4463 elif x <= 400: return (x - 150) * .4663 + 150 * .4463 else: return 250 * .4663 + 150 * .4463 + (x - 400) * .5663 print("{0:.2f}".format(main(int(input()))))
21.636364
60
0.470588
34
238
3.294118
0.558824
0.071429
0.196429
0
0
0
0
0
0
0
0
0.29375
0.327731
238
10
61
23.8
0.40625
0
0
0
0
0
0.029536
0
0
0
0
0
0
1
0.125
false
0
0
0
0.5
0.125
0
0
0
null
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a5baae5179dcc05dd3e31432f9b4a569512da5a8
94
py
Python
Directory-observer/test/__init__.py
hiroki8080/MyPythonLibrary
e8557df491c548252ca51ef3f4c47a269a49db85
[ "MIT" ]
null
null
null
Directory-observer/test/__init__.py
hiroki8080/MyPythonLibrary
e8557df491c548252ca51ef3f4c47a269a49db85
[ "MIT" ]
null
null
null
Directory-observer/test/__init__.py
hiroki8080/MyPythonLibrary
e8557df491c548252ca51ef3f4c47a269a49db85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import test_engine __author__ = 'Shishou'
15.666667
24
0.62766
12
94
4.5
1
0
0
0
0
0
0
0
0
0
0
0.013158
0.191489
94
6
25
15.666667
0.697368
0.446809
0
0
0
0
0.152174
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
3c012643069908301538c0c4c934e049011e8b24
322
py
Python
blog/models.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
null
null
null
blog/models.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
null
null
null
blog/models.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
1
2021-01-19T16:27:29.000Z
2021-01-19T16:27:29.000Z
from django.db import models # Create your models here. class Blog(models.Model): """ Represents a project model in home page. """ title = models.CharField(max_length=50) description = models.CharField(max_length=150) date = models.DateField() def __str__(self): return self.tit...
24.769231
50
0.670807
41
322
5.121951
0.731707
0.142857
0.171429
0.228571
0
0
0
0
0
0
0
0.020161
0.229814
322
13
51
24.769231
0.826613
0.204969
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
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
0
0
0
1
1
0
0
3
3c02673f1a9ce884ad573e79462af272266ff1f4
122
py
Python
src/pypiserver_testing/_version.py
pypiserver/pypiserver-testing-common
1f0d63a6a28d2c0f7a0a47fd1540ab85871b7260
[ "MIT" ]
null
null
null
src/pypiserver_testing/_version.py
pypiserver/pypiserver-testing-common
1f0d63a6a28d2c0f7a0a47fd1540ab85871b7260
[ "MIT" ]
null
null
null
src/pypiserver_testing/_version.py
pypiserver/pypiserver-testing-common
1f0d63a6a28d2c0f7a0a47fd1540ab85871b7260
[ "MIT" ]
null
null
null
"""Define version constants.""" import re __version__ = '1.0.0' __version_info__ = tuple(re.split('[.-]', __version__))
17.428571
55
0.680328
15
122
4.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0.027778
0.114754
122
6
56
20.333333
0.62037
0.204918
0
0
0
0
0.098901
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
3c3cb8b8a2c6c3bd62096549788d326fea11a6a8
649
py
Python
swagger_marshmallow_codegen/tests/dst/00default.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
swagger_marshmallow_codegen/tests/dst/00default.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
swagger_marshmallow_codegen/tests/dst/00default.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
from marshmallow import ( Schema, fields ) import datetime from collections import OrderedDict class X(Schema): string = fields.String(missing=lambda: 'default') integer = fields.Integer(missing=lambda: 10) boolean = fields.Boolean(missing=lambda: True) datetime = fields.DateTime(missing=lambd...
30.904762
98
0.688752
81
649
5.518519
0.382716
0.232662
0.134228
0.174497
0
0
0
0
0
0
0
0.033088
0.161787
649
20
99
32.45
0.788603
0
0
0
0
0
0.041602
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.8125
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
3c4119492a6245e88acad0cafac1655ef5b8c6a6
245
py
Python
lightbus/utilities/io.py
gcollard/lightbus
d04deeda8ccef5a582b79255725ca2025a085c02
[ "Apache-2.0" ]
178
2017-07-22T12:35:00.000Z
2022-03-28T07:53:13.000Z
lightbus/utilities/io.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
26
2017-08-03T12:09:29.000Z
2021-10-19T16:47:18.000Z
lightbus/utilities/io.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
19
2017-09-15T17:51:24.000Z
2022-02-28T13:00:16.000Z
import logging logger = logging.getLogger(__name__) def make_file_safe_api_name(api_name): """Make an api name safe for use in a file name""" return "".join([c for c in api_name if c.isalpha() or c.isdigit() or c in (".", "_", "-")])
27.222222
95
0.661224
42
245
3.595238
0.52381
0.18543
0
0
0
0
0
0
0
0
0
0
0.183673
245
8
96
30.625
0.755
0.179592
0
0
0
0
0.015385
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
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
0
0
0
1
0
0
3
3c41e2d055dc739777991ac68f07c2ea85fc7e25
15,004
py
Python
tests/_async/test_client_with_auto_confirm_enabled.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
13
2021-10-06T08:50:55.000Z
2022-03-29T18:21:12.000Z
tests/_async/test_client_with_auto_confirm_enabled.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
82
2021-09-29T11:50:29.000Z
2022-03-24T07:27:33.000Z
tests/_async/test_client_with_auto_confirm_enabled.py
zodman/gotrue-py
2f94bfdbc2cf20ef50ec777bbda03face1da3e85
[ "MIT" ]
4
2021-09-15T07:33:22.000Z
2022-01-13T22:53:01.000Z
from typing import AsyncIterable, Optional import pytest from faker import Faker from gotrue import AsyncGoTrueClient from gotrue.exceptions import APIError from gotrue.types import Session, User, UserAttributes GOTRUE_URL = "http://localhost:9998" TEST_TWILIO = False @pytest.fixture(name="client") async def creat...
32.12848
87
0.677753
1,847
15,004
5.243097
0.074716
0.088187
0.031599
0.040892
0.790582
0.746076
0.719847
0.676786
0.65128
0.602334
0
0.0037
0.243402
15,004
466
88
32.197425
0.849366
0
0
0.656098
0
0
0.060517
0.018528
0
0
0
0
0.365854
1
0
false
0.029268
0.014634
0
0.014634
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3c47da61a7e339dbd8039068604d70b87a101617
191
py
Python
odor_env/__init__.py
chinaheyu/pydog_training
2c4188a94dc21090bb5f6b348e268c3ee2158b01
[ "MIT" ]
null
null
null
odor_env/__init__.py
chinaheyu/pydog_training
2c4188a94dc21090bb5f6b348e268c3ee2158b01
[ "MIT" ]
null
null
null
odor_env/__init__.py
chinaheyu/pydog_training
2c4188a94dc21090bb5f6b348e268c3ee2158b01
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='OdorEnvA-v0', entry_point='odor_env.odor_env:OdorEnvA' ) register( id='OdorEnvB-v0', entry_point='odor_env.odor_env:OdorEnvB' )
15.916667
42
0.769634
28
191
5.035714
0.5
0.198582
0.170213
0.22695
0.368794
0.368794
0.368794
0
0
0
0
0.011561
0.094241
191
11
43
17.363636
0.803468
0
0
0.222222
0
0
0.387435
0.272251
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
1
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
0
0
0
0
0
3
3c480dfc4d9f7a9c2fa3ab83f49bd950c754e638
1,293
py
Python
support_functions.py
DataCentric1/ponpare
f19624f1fdae570491662a5b611e61d81da8acbe
[ "MIT" ]
2
2017-01-10T05:42:31.000Z
2017-01-10T05:42:32.000Z
support_functions.py
DataCentric1/ponpare
f19624f1fdae570491662a5b611e61d81da8acbe
[ "MIT" ]
null
null
null
support_functions.py
DataCentric1/ponpare
f19624f1fdae570491662a5b611e61d81da8acbe
[ "MIT" ]
null
null
null
######################################################################################################### # Description: Collection of support functions that'll be used often # ######################################################################################################### import numpy as np ################...
25.352941
105
0.492653
159
1,293
3.716981
0.421384
0.054146
0.047377
0.060914
0.203046
0.091371
0.091371
0
0
0
0
0.006699
0.191802
1,293
50
106
25.86
0.558852
0.192575
0
0.076923
0
0
0.024931
0
0
0
0
0.02
0
0
null
null
0.153846
0.038462
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
1
0
0
0
0
0
3
3c6372c47f1a25fd3f87b29b81d079ad0a9d6afd
368
py
Python
codes/pandas/pandas-1-loading-and-displaying-data.py
sandywadhwa/machine-learning-in-python
e0027ee5f860d0597158c17a9785e28e1dec3ec1
[ "Apache-2.0" ]
null
null
null
codes/pandas/pandas-1-loading-and-displaying-data.py
sandywadhwa/machine-learning-in-python
e0027ee5f860d0597158c17a9785e28e1dec3ec1
[ "Apache-2.0" ]
null
null
null
codes/pandas/pandas-1-loading-and-displaying-data.py
sandywadhwa/machine-learning-in-python
e0027ee5f860d0597158c17a9785e28e1dec3ec1
[ "Apache-2.0" ]
null
null
null
import pandas import numpy import matplotlib # READ CSV FILE df = pandas.read_csv("../../data/uci-pima-indian-diabetes-data-original.csv") # Print Dimensions of Data (Rows, Cols) print("Dimensions of Data", df.shape) # Print First n Rows n = 5 print(df.head(n)) # Print Last n Rows print(df.tail(n)) # Get One Part...
19.368421
77
0.706522
62
368
4.177419
0.564516
0.081081
0.131274
0.162162
0
0
0
0
0
0
0
0.006329
0.141304
368
19
78
19.368421
0.813291
0.353261
0
0
0
0
0.317597
0.227468
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.444444
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
3
3c6cc3f5178c3d823c554ccbd778d4f73386a646
303
py
Python
backend/pints/utils.py
ebunt/pulse
1bd2570e9e333304e8a4e4624e440b019d4e4111
[ "MIT" ]
63
2021-08-22T07:50:27.000Z
2022-03-24T03:20:22.000Z
backend/pints/utils.py
ebunt/pulse
1bd2570e9e333304e8a4e4624e440b019d4e4111
[ "MIT" ]
5
2021-08-11T11:10:29.000Z
2021-08-23T18:21:26.000Z
backend/pints/utils.py
ebunt/pulse
1bd2570e9e333304e8a4e4624e440b019d4e4111
[ "MIT" ]
4
2021-09-01T05:17:12.000Z
2022-02-19T19:52:33.000Z
import os from cryptography.fernet import Fernet FERNET_KEY = os.environ.get('PAPER_FERNET_KEY') def encrypt(e): f = Fernet(FERNET_KEY) e = e.encode("utf-8") return f.encrypt(e).decode() def decrypt(d): f = Fernet(FERNET_KEY) d = f.decrypt(d.encode("utf-8")) return d.decode()
21.642857
47
0.666667
49
303
4.020408
0.408163
0.182741
0.228426
0.162437
0
0
0
0
0
0
0
0.008065
0.181518
303
14
48
21.642857
0.78629
0
0
0.181818
0
0
0.085526
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.545455
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
3c7537c53e60bacdbebd5a49ec26da9bf41d7ae2
78
py
Python
make_data.py
kazurayam/ks_LogViewerSlowsDownTests_HowToPrevent
63ed013c5691765d52400f60a66ecdb401fca25f
[ "Intel" ]
null
null
null
make_data.py
kazurayam/ks_LogViewerSlowsDownTests_HowToPrevent
63ed013c5691765d52400f60a66ecdb401fca25f
[ "Intel" ]
null
null
null
make_data.py
kazurayam/ks_LogViewerSlowsDownTests_HowToPrevent
63ed013c5691765d52400f60a66ecdb401fca25f
[ "Intel" ]
null
null
null
print('ID') for number in range(1000): print("#" + format(number, '0>4'))
19.5
38
0.589744
12
78
3.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.092308
0.166667
78
3
39
26
0.615385
0
0
0
0
0
0.076923
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
1
0
3
3c8ef35b0f92c9f00cb2488d3554dc48dd3b92b6
161
py
Python
deathgod/directions.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
deathgod/directions.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
deathgod/directions.py
wmakley/deathgod
eee9c32e813ae7f23e804c8c9bcae872a59e58d6
[ "MIT" ]
null
null
null
"""Constants indicating compass directions used throughout deathgod.""" (NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, NORTHWEST) = list(range(8))
40.25
87
0.757764
18
161
6.777778
1
0
0
0
0
0
0
0
0
0
0
0.006993
0.111801
161
3
88
53.666667
0.846154
0.403727
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
3c92356b9c776e3ad71d550c7417b7d37ac48986
6,142
py
Python
programming_ex/ex-11/POplanning/numbers.py
nnhjy/AI-python
35a23215b788464b2790fd3609f560add771ffcd
[ "MIT" ]
null
null
null
programming_ex/ex-11/POplanning/numbers.py
nnhjy/AI-python
35a23215b788464b2790fd3609f560add771ffcd
[ "MIT" ]
null
null
null
programming_ex/ex-11/POplanning/numbers.py
nnhjy/AI-python
35a23215b788464b2790fd3609f560add771ffcd
[ "MIT" ]
2
2022-03-09T18:30:26.000Z
2022-03-25T12:10:54.000Z
# State space problems with observability # # States # applActions actions applicabable in the state # succs successor states of the state w.r.t. action # preds predecessor states of the state w.r.t. action # compatible Is the state compatible with an observation? # Actions # observati...
27.419643
93
0.592966
771
6,142
4.57847
0.219196
0.033994
0.028045
0.040793
0.356657
0.303116
0.283286
0.230028
0.206232
0.164306
0
0.020423
0.306415
6,142
223
94
27.542601
0.808216
0.236894
0
0.413333
0
0
0.038561
0
0
0
0
0
0
1
0.246667
false
0
0.02
0.153333
0.586667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b1cb40b1ee5c88bc7aa75b1a0704615ebae04714
729
py
Python
source/cognidron/interfaces/eeg/eegInterfaz.py
dregmli/cognidron
f5e3a1e2299699e25b9c38b9ef2056e1b59302c6
[ "Apache-2.0" ]
1
2019-07-21T03:59:20.000Z
2019-07-21T03:59:20.000Z
source/cognidron/interfaces_esp/eeg/eegInterfaz.py
dregmli/cognidron
f5e3a1e2299699e25b9c38b9ef2056e1b59302c6
[ "Apache-2.0" ]
null
null
null
source/cognidron/interfaces_esp/eeg/eegInterfaz.py
dregmli/cognidron
f5e3a1e2299699e25b9c38b9ef2056e1b59302c6
[ "Apache-2.0" ]
null
null
null
# Para usar esta clase como una interfaz en POO se utiliza esta libreria # mas info en: https://www.python-course.eu/python3_abstract_classes.php from abc import ABC, abstractmethod class EegInterfaz(ABC): """ Interfaz abstracta que debe implementarse para conectar el cognidron con el dispositivo de EEG...
20.25
103
0.677641
84
729
5.809524
0.654762
0.147541
0.172131
0.153689
0
0
0
0
0
0
0
0.001852
0.259259
729
35
104
20.828571
0.901852
0.408779
0
0.470588
0
0
0
0
0
0
0
0
0
1
0.294118
false
0.235294
0.058824
0.058824
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
b1dc9209e5ed725bd5132e2576226b7ad6b68627
434
py
Python
cse/migrations/0009_auto_20210418_0602.py
Kunal614/Resources
6bba32f9f70554ddc658e9dab864433d150e46d2
[ "Apache-2.0" ]
1
2021-10-08T10:42:39.000Z
2021-10-08T10:42:39.000Z
cse/migrations/0009_auto_20210418_0602.py
Kunal614/Resources
6bba32f9f70554ddc658e9dab864433d150e46d2
[ "Apache-2.0" ]
1
2021-07-10T04:22:44.000Z
2021-07-10T04:22:44.000Z
cse/migrations/0009_auto_20210418_0602.py
Kunal614/Resources
6bba32f9f70554ddc658e9dab864433d150e46d2
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.5 on 2021-04-18 06:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cse', '0008_problemset_name'), ] operations = [ migrations.DeleteModel( name='cp', ), migrations.DeleteModel( ...
18.869565
47
0.550691
39
434
6.076923
0.692308
0.265823
0.316456
0
0
0
0
0
0
0
0
0.065972
0.336406
434
22
48
19.727273
0.756944
0.103687
0
0.375
1
0
0.121447
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b1dfe84f6adc566fa0a06089ec24e27d12ec8387
6,749
py
Python
20_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
20_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
20_1.py
yunjung-lee/class_python_numpy
589817c8bbca85d70596e4097c0ece093b5353c3
[ "MIT" ]
null
null
null
####################데이터프레임의 문자열 컬럼들을 합치는 등의 작업으로 새로운 컬럼 생성####################################### #이용함수 apply import pandas as pd import numpy as np from pandas import DataFrame, Series # df = pd.DataFrame({'id' : [1,2,10,20,100,200], # "name":['aaa','bbb','ccc','ddd','eee','fff']}) # print(df) # ...
19.619186
117
0.485998
1,142
6,749
2.772329
0.215412
0.037903
0.027795
0.035376
0.526216
0.49084
0.477258
0.462097
0.415666
0.393241
0
0.241618
0.337087
6,749
343
118
19.676385
0.466026
0.743962
0
0.129032
0
0
0.119274
0
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.16129
0.419355
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
b1e58b91cbb2deda2244165ea650e33dc39aac58
154
py
Python
test_app.py
suchayan01/scaler-boocamp
f684c8680f11b65257ef98a82c684d11edeb152f
[ "MIT" ]
null
null
null
test_app.py
suchayan01/scaler-boocamp
f684c8680f11b65257ef98a82c684d11edeb152f
[ "MIT" ]
1
2022-03-05T12:06:28.000Z
2022-03-05T12:06:28.000Z
test_app.py
suchayan01/scaler-boocamp
f684c8680f11b65257ef98a82c684d11edeb152f
[ "MIT" ]
null
null
null
from app import app with app.test_client() as c: response= c.get('/') assert response.data == b'Hello World!' assert response.status_code==200
30.8
43
0.688312
24
154
4.333333
0.75
0.269231
0
0
0
0
0
0
0
0
0
0.02381
0.181818
154
5
44
30.8
0.801587
0
0
0
0
0
0.083871
0
0
0
0
0
0.4
1
0
false
0
0.2
0
0.2
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b1eb79c8497efde9277170b168f00a9b4872050c
7,776
py
Python
src/kcri/bap/data.py
zwets/kcri-cge-bap
d8a14d848a87b325ead25068fa098f357844eee6
[ "Apache-2.0" ]
null
null
null
src/kcri/bap/data.py
zwets/kcri-cge-bap
d8a14d848a87b325ead25068fa098f357844eee6
[ "Apache-2.0" ]
4
2021-04-20T23:16:19.000Z
2021-09-17T17:48:16.000Z
src/kcri/bap/data.py
zwets/kcri-cge-bap
d8a14d848a87b325ead25068fa098f357844eee6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # kcri.bap.data # # Defines the data structures that are shared across the BAP services. # import os, enum from datetime import datetime from pico.workflow.blackboard import Blackboard ### BAPBlackboard class # # Wraps the generic Blackboard with an API that adds getters and putters for ...
33.662338
90
0.661265
1,074
7,776
4.614525
0.178771
0.06255
0.032284
0.048023
0.418684
0.328289
0.257466
0.209645
0.089992
0.034302
0
0.000163
0.210391
7,776
230
91
33.808696
0.807003
0.164352
0
0.031746
0
0
0.167266
0.075419
0
0
0
0
0
1
0.396825
false
0
0.02381
0.166667
0.626984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b1f43ef6730981098be45080b6e45e26b40e38db
2,604
py
Python
tests/conftest.py
verotel/pyzeebe
8fc8c07a9316cc10155cd03fb0b45c226fecf469
[ "MIT" ]
null
null
null
tests/conftest.py
verotel/pyzeebe
8fc8c07a9316cc10155cd03fb0b45c226fecf469
[ "MIT" ]
null
null
null
tests/conftest.py
verotel/pyzeebe
8fc8c07a9316cc10155cd03fb0b45c226fecf469
[ "MIT" ]
null
null
null
from random import randint from threading import Event from unittest.mock import patch, MagicMock from uuid import uuid4 import pytest from pyzeebe import ZeebeClient, ZeebeWorker, ZeebeTaskRouter, Job from pyzeebe.grpc_internals.zeebe_adapter import ZeebeAdapter from pyzeebe.task.task import Task from pyzeebe.worker...
21.170732
100
0.763441
352
2,604
5.420455
0.235795
0.129455
0.134172
0.029874
0.192348
0.192348
0.114256
0.04717
0
0
0
0.004496
0.145929
2,604
122
101
21.344262
0.853417
0
0
0.283951
0
0
0.037634
0.026882
0
0
0
0
0
1
0.246914
false
0
0.160494
0.135802
0.604938
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
590f1f385aa01aa2e93c2e1620ec8d3a64df628c
794
py
Python
src/ui/exif_view.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
src/ui/exif_view.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
src/ui/exif_view.py
jmacgrillen/perspective
6e6e833d8921c54c907dd6314d4bc02ba3a3c0b6
[ "MIT" ]
null
null
null
#! /usr/bin/env python -*- coding: utf-8 -*- """ Name: exif_view.py Desscription: Display any EXIF data attached to the image. Version: 1 - Initial release Author: J.MacGrillen <macgrillen@gmail.com> Copyright: Copyright (c) John MacGrillen. All rights reserve...
22.685714
59
0.673804
98
794
5.22449
0.683673
0.0625
0
0
0
0
0
0
0
0
0
0.00813
0.225441
794
34
60
23.352941
0.82439
0.36398
0
0
0
0
0.085973
0
0
0
0
0
0
1
0.076923
false
0.076923
0.384615
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
591701084c08ebd07fb9f01f896b9ee6dad51ff1
1,156
py
Python
fyp/guardian/tests.py
Rishi-42/Guardain-1.0
acc8b3ea722392b172678470a2613fa626230049
[ "BSD-3-Clause" ]
null
null
null
fyp/guardian/tests.py
Rishi-42/Guardain-1.0
acc8b3ea722392b172678470a2613fa626230049
[ "BSD-3-Clause" ]
null
null
null
fyp/guardian/tests.py
Rishi-42/Guardain-1.0
acc8b3ea722392b172678470a2613fa626230049
[ "BSD-3-Clause" ]
null
null
null
from urllib import response from django.test import TestCase from selenium import webdriver from account.forms import RegistrationForm # class FunctionalTestCase(TestCase): # def setUp(self): # self.browser = webdriver.Firefox() # def test(self): # self.browser.get('http://localhost:8000') # ...
35.030303
198
0.661765
130
1,156
5.753846
0.5
0.058824
0.06016
0.061497
0.07754
0.07754
0
0
0
0
0
0.007511
0.193772
1,156
32
199
36.125
0.795064
0.83564
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
5936578bc64de922a8159219f9fdab74cdb9c355
5,530
py
Python
shawl/core/_base_collection.py
oiakinat/shawl
699aa28aa405ce4afc171b109567975f3d3a00f6
[ "MIT" ]
3
2021-09-24T07:40:40.000Z
2022-03-09T14:15:31.000Z
shawl/core/_base_collection.py
oiakinat/shawl
699aa28aa405ce4afc171b109567975f3d3a00f6
[ "MIT" ]
1
2022-01-23T17:21:29.000Z
2022-01-23T17:35:53.000Z
shawl/core/_base_collection.py
oiakinat/shawl
699aa28aa405ce4afc171b109567975f3d3a00f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Iterator, List, Optional, Tuple from selenium.common.exceptions import ( StaleElementReferenceException, TimeoutException ) from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement from selenium.webdriver.su...
31.781609
78
0.629656
630
5,530
5.28254
0.230159
0.039063
0.035156
0.040865
0.329026
0.29357
0.238882
0.184195
0.142127
0.142127
0
0.00177
0.28481
5,530
173
79
31.965318
0.839697
0.210127
0
0.194175
0
0
0.061989
0.013695
0
0
0
0
0
1
0.213592
false
0
0.087379
0.145631
0.514563
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
3cdb16192fd5e14efd0bbef22a774c34fb5d3683
3,510
py
Python
data/transcoder_evaluation_gfg/python/SCHEDULE_JOBS_SERVER_GETS_EQUAL_LOAD.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SCHEDULE_JOBS_SERVER_GETS_EQUAL_LOAD.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SCHEDULE_JOBS_SERVER_GETS_EQUAL_LOAD.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , b , n ) : s = 0 for i in range ( 0 , n ) : s += a [ i ] + b [ i ] if n == 1 : retur...
53.181818
392
0.393447
732
3,510
1.863388
0.20082
0.109971
0.136364
0.158358
0.202346
0.167889
0.14956
0.125367
0.121701
0.108504
0
0.384956
0.356125
3,510
66
393
53.181818
0.218584
0.052707
0
0.232143
0
0
0.007233
0
0
0
0
0
0
1
0.017857
false
0
0
0
0.125
0.017857
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3ce25baff53f98f79e7d71462ccad26d38ea94e8
65
py
Python
aiohttp_asgi/__init__.py
PaulWasTaken/aiohttp-asgi
75182be2892cae2ea43a364085ec1ac48706893c
[ "Apache-2.0" ]
10
2020-08-12T02:59:21.000Z
2022-01-03T09:57:28.000Z
aiohttp_asgi/__init__.py
PaulWasTaken/aiohttp-asgi
75182be2892cae2ea43a364085ec1ac48706893c
[ "Apache-2.0" ]
6
2021-01-18T13:51:28.000Z
2021-10-18T07:43:54.000Z
aiohttp_asgi/__init__.py
PaulWasTaken/aiohttp-asgi
75182be2892cae2ea43a364085ec1ac48706893c
[ "Apache-2.0" ]
3
2021-01-19T11:52:07.000Z
2021-05-02T14:58:29.000Z
from .resource import ASGIResource __all__ = ("ASGIResource",)
13
34
0.753846
6
65
7.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.138462
65
4
35
16.25
0.803571
0
0
0
0
0
0.184615
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
3
3ce81cebbbdaa4ff2718d77d8174f8e80caad4aa
1,073
py
Python
connections/conn_napalm.py
no-such-anthony/net-run
cb1189e8b3e5f27d0c0d19ed509d138b15a8025a
[ "MIT" ]
1
2021-06-28T04:52:53.000Z
2021-06-28T04:52:53.000Z
connections/conn_napalm.py
no-such-anthony/net-run
cb1189e8b3e5f27d0c0d19ed509d138b15a8025a
[ "MIT" ]
null
null
null
connections/conn_napalm.py
no-such-anthony/net-run
cb1189e8b3e5f27d0c0d19ed509d138b15a8025a
[ "MIT" ]
null
null
null
from napalm import get_network_driver class conn_napalm(): def __init__(self, device, connection_key): self.device = device self.connection_key = connection_key #check for required kwargs, grab root level key if not in connection_key #could have some default values? ...
38.321429
86
0.638397
124
1,073
5.354839
0.322581
0.23494
0.228916
0.09488
0.194277
0.194277
0.194277
0.194277
0
0
0
0
0.245107
1,073
28
87
38.321429
0.819753
0.095061
0
0
0
0
0.091198
0
0
0
0
0
0
1
0.157895
false
0.105263
0.052632
0
0.315789
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
1
0
0
0
0
0
3
a70888186e33870c1b8a207439595d37718ceb3c
620
py
Python
examples/144. Binary Tree Preorder Traversal.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
examples/144. Binary Tree Preorder Traversal.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
examples/144. Binary Tree Preorder Traversal.py
yehzhang/RapidTest
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
[ "MIT" ]
null
null
null
from rapidtest import Test, Case, TreeNode from solutions.binary_tree_preorder_traversal import Solution with Test(Solution) as test: Case(TreeNode.from_string('[1,null,2,3]'), result=[1, 2, 3]) Case(TreeNode.from_string('[]'), result=[]) Case(TreeNode.from_string('[1]'), result=[1]) Case(TreeNode.from...
47.692308
97
0.619355
118
620
3.177966
0.228814
0.042667
0.298667
0.352
0.432
0.309333
0.234667
0.234667
0.234667
0.234667
0
0.113852
0.15
620
12
98
51.666667
0.597723
0
0
0.181818
0
0.090909
0.180645
0.137097
0
0
0
0
0
1
0
true
0
0.181818
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
a708e9328b4998fca7f736cf4cb8440db5d78d20
2,690
py
Python
microcosm_pubsub/chain/statements/assign.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
5
2016-07-23T21:20:50.000Z
2021-07-15T00:27:47.000Z
microcosm_pubsub/chain/statements/assign.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
76
2016-03-22T23:41:21.000Z
2020-07-27T17:35:36.000Z
microcosm_pubsub/chain/statements/assign.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
8
2016-06-01T18:43:41.000Z
2021-04-27T20:22:15.000Z
""" assign("foo.bar").to("baz") assign_constant(1).to("qux") """ from inspect import getfullargspec from microcosm_pubsub.chain.exceptions import AttributeNotFound class Reference: def __init__(self, name): self.parts = name.split(".") @property def key(self): return self.parts[0] ...
22.79661
99
0.592193
311
2,690
4.96463
0.340836
0.03886
0.028497
0.046632
0.029793
0
0
0
0
0
0
0.005917
0.308922
2,690
117
100
22.991453
0.824637
0.228253
0
0.225806
0
0
0.009921
0
0
0
0
0
0
1
0.258065
false
0
0.032258
0.112903
0.564516
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
a72bfe6c49f33c34edaf1541121557cb59335a7a
112
py
Python
1-DiveIntoPython/week5/lecturesdemos/AsychnchronousProgramming/generators.py
mamoudmatook/PythonSpecializaionInRussian
3340780b2f8a876a0f59e22036147fd98909d545
[ "MIT" ]
null
null
null
1-DiveIntoPython/week5/lecturesdemos/AsychnchronousProgramming/generators.py
mamoudmatook/PythonSpecializaionInRussian
3340780b2f8a876a0f59e22036147fd98909d545
[ "MIT" ]
null
null
null
1-DiveIntoPython/week5/lecturesdemos/AsychnchronousProgramming/generators.py
mamoudmatook/PythonSpecializaionInRussian
3340780b2f8a876a0f59e22036147fd98909d545
[ "MIT" ]
null
null
null
def myrange_generator(top): current = 0: while current < top: yield current current += 1
22.4
27
0.589286
13
112
5
0.692308
0
0
0
0
0
0
0
0
0
0
0.026667
0.330357
112
5
28
22.4
0.84
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
a7354b6e84ff2fe03b516cccf10931f36aea65b7
207
py
Python
examples/example_cidnotfound.py
Mirio/psnstoreprice
9492249aeccf16f14a68406f365447d6da5e517a
[ "BSD-2-Clause" ]
1
2017-05-12T11:46:25.000Z
2017-05-12T11:46:25.000Z
examples/example_cidnotfound.py
Mirio/psnstoreprice
9492249aeccf16f14a68406f365447d6da5e517a
[ "BSD-2-Clause" ]
null
null
null
examples/example_cidnotfound.py
Mirio/psnstoreprice
9492249aeccf16f14a68406f365447d6da5e517a
[ "BSD-2-Clause" ]
null
null
null
from psnstoreprice import PsnStorePrice url = "https://store.playstation.com/#!/it-it/giochi/arslan-the-warriors-of-legend-con-bonus/" pricelib = PsnStorePrice() pricelib.getpage(pricelib.normalizeurl(url))
41.4
94
0.797101
26
207
6.346154
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.05314
207
5
95
41.4
0.841837
0
0
0
0
0.25
0.413462
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
a7375d39d2e4a2c216b85bbe793513b7199f2305
101
py
Python
backend/liveHeartbeat/apps.py
rajc1729/django-nextjs-realtime
4d551f544729cc71a02878ad198dab665840987a
[ "MIT" ]
null
null
null
backend/liveHeartbeat/apps.py
rajc1729/django-nextjs-realtime
4d551f544729cc71a02878ad198dab665840987a
[ "MIT" ]
null
null
null
backend/liveHeartbeat/apps.py
rajc1729/django-nextjs-realtime
4d551f544729cc71a02878ad198dab665840987a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LiveheartbeatConfig(AppConfig): name = 'liveHeartbeat'
16.833333
37
0.782178
10
101
7.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.148515
101
5
38
20.2
0.918605
0
0
0
0
0
0.128713
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
59592ee97c81e84f7b04e6c6fd3036a93751cfb8
4,404
py
Python
a10_neutron_lbaas/tests/unit/test_a10_config.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
10
2015-09-15T05:16:15.000Z
2020-03-18T02:34:39.000Z
a10_neutron_lbaas/tests/unit/test_a10_config.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
334
2015-02-11T23:45:00.000Z
2020-02-28T08:58:51.000Z
a10_neutron_lbaas/tests/unit/test_a10_config.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
24
2015-01-13T21:14:45.000Z
2021-06-02T17:22:14.000Z
# Copyright 2014, Doug Wiegley (dougwig), A10 Networks # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
44.484848
97
0.678474
583
4,404
4.977702
0.315609
0.060303
0.132667
0.115782
0.39938
0.377326
0.314266
0.250517
0.216058
0.19297
0
0.011299
0.196185
4,404
98
98
44.938776
0.808475
0.325613
0
0.12
0
0
0.114626
0
0
0
0
0.010204
0.48
1
0.22
false
0
0.02
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
1
0
1
0
0
0
0
0
0
0
3
5962957921dbd8147fc5dd1c3ff9d2a9f89e163a
2,150
py
Python
sample_run.py
kyle-yong-kim/APS490-Sentiment-Analysis-Model
a300b472d472223a7539e4ecced1a9ee515d8471
[ "MIT" ]
null
null
null
sample_run.py
kyle-yong-kim/APS490-Sentiment-Analysis-Model
a300b472d472223a7539e4ecced1a9ee515d8471
[ "MIT" ]
null
null
null
sample_run.py
kyle-yong-kim/APS490-Sentiment-Analysis-Model
a300b472d472223a7539e4ecced1a9ee515d8471
[ "MIT" ]
null
null
null
import main # send review data here review_text = "This is a good branch. Friendly staff and good service. However, the line up was very very long and slow. I had to wait 30 minutes in line to get my service." review_text = "This is a good branch. The line is very fast and efficient. The staffs were not friendly towar...
143.333333
585
0.778605
382
2,150
4.356021
0.442408
0.060096
0.016827
0.019231
0.222356
0.222356
0.222356
0.189904
0.189904
0.189904
0
0.003386
0.175814
2,150
15
586
143.333333
0.935666
0.469767
0
0
0
0.5
0.859155
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5979b28eabca509cb31345d7125eb1a3c97fd449
697
py
Python
trybs4.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
trybs4.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
trybs4.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import xlsxwriter workbook= xlsxwriter.Workbook("data.xlsx") worksheet = workbook.add_worksheet() f = open('rough.html',"r") data=f.read() soup=BeautifulSoup(data) div = soup.find('div', {"class":'dataTables_scroll'}) table=div.find('table') tbody=div.find('tbody') rows=tbody.find_all('tr...
23.233333
62
0.701578
116
697
4.172414
0.396552
0.173554
0.235537
0.190083
0.103306
0.103306
0
0
0
0
0
0.025437
0.097561
697
29
63
24.034483
0.744038
0
0
0
0
0
0.094964
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.041667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
5982a244235e8edf2a423a27fcca31ae6a50112d
359
py
Python
python/interpret-core/interpret/ext/glassbox/__init__.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
2,674
2019-10-03T14:14:35.000Z
2022-03-31T13:40:49.000Z
python/interpret-core/interpret/ext/glassbox/__init__.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
257
2019-11-08T19:22:56.000Z
2022-03-29T20:09:07.000Z
python/interpret-core/interpret/ext/glassbox/__init__.py
prateekiiest/interpret
b5530a587251a77516ab443037fc37f71708564c
[ "MIT" ]
367
2019-10-31T15:33:21.000Z
2022-03-31T13:40:50.000Z
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license import sys from interpret.ext.extension_utils import load_class_extensions from interpret.ext.extension import GLASSBOX_EXTENSION_KEY, _is_valid_glassbox_explainer load_class_extensions( sys.modules[__name__], GLASSBOX_EXTENSI...
32.636364
88
0.857939
47
359
6.106383
0.595745
0.090592
0.111498
0.174216
0.30662
0.30662
0.30662
0
0
0
0
0.012346
0.097493
359
10
89
35.9
0.873457
0.231198
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
0
0
0
3
599a52c8a6504bed66f1a366c7997c208e59517e
161
py
Python
bpmn/utils/string_utils.py
marcelobbfonseca/SFDjango-BPMN
50565763414f52d9e84004494cf550c6fe2358fa
[ "MIT" ]
1
2021-09-22T02:04:07.000Z
2021-09-22T02:04:07.000Z
bpmn/utils/string_utils.py
marcelobbfonseca/SFDjango-BPMN
50565763414f52d9e84004494cf550c6fe2358fa
[ "MIT" ]
5
2021-09-22T13:54:06.000Z
2021-09-22T14:05:56.000Z
bpmn/utils/string_utils.py
marcelobbfonseca/SFDjango-BPMN
50565763414f52d9e84004494cf550c6fe2358fa
[ "MIT" ]
null
null
null
from re import sub def snake_case(s): return '_'.join( sub('([A-Z][a-z]+)', r' \1', sub('([A-Z]+)', r' \1', s.replace('-', ' '))).split()).lower()
23
42
0.459627
26
161
2.769231
0.653846
0.083333
0.138889
0.111111
0
0
0
0
0
0
0
0.015385
0.192547
161
6
43
26.833333
0.538462
0
0
0
0
0
0.186335
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
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
0
0
0
1
0
0
0
3
59d195f6fe27fcf2a35b5310d5540ea4d7bc9cb8
425
py
Python
models/random_player.py
danilonumeroso/role
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
1
2021-06-24T16:30:45.000Z
2021-06-24T16:30:45.000Z
models/random_player.py
danilonumeroso/chess-rl
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
null
null
null
models/random_player.py
danilonumeroso/chess-rl
921c625f2675e8dab9e70d5ae0492f36ed189bd2
[ "MIT" ]
null
null
null
import random import chess import chess.engine class RandomPlayer: def __init__(self): self.id = { 'name': 'RandomPlayer' } def play(self, board: chess.Board, limit=None) -> chess.engine.PlayResult: legal_moves = list(board.legal_moves) move = random.choice(legal_...
20.238095
78
0.630588
50
425
5.22
0.5
0.126437
0.16092
0
0
0
0
0
0
0
0
0
0.265882
425
20
79
21.25
0.836538
0
0
0
0
0
0.037647
0
0
0
0
0
0
1
0.214286
false
0.071429
0.214286
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
59df04b32dc163862f36f75d7ff5f9905c388ddb
127
py
Python
sessionAPI/sessionApp/forms.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
sessionAPI/sessionApp/forms.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
sessionAPI/sessionApp/forms.py
KiralyTamas/Django
d0df4bcffa499c25602e2672c230226440879f6d
[ "MIT" ]
null
null
null
from django import forms class ItemForm(forms.Form): name=forms.CharField(max_length=40) quantity=forms.IntegerField()
25.4
39
0.771654
17
127
5.705882
0.823529
0
0
0
0
0
0
0
0
0
0
0.018018
0.125984
127
5
40
25.4
0.855856
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
3
59e0bb16665ecb5a21d3d33e9d1b13dbd5c22d4e
1,003
py
Python
bldr/cmd/new.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
bldr/cmd/new.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
bldr/cmd/new.py
bldr-cmd/bldr-cmd
300750fbccc2987efd23f69b7b2d76d8563e2995
[ "Apache-2.0" ]
null
null
null
""" `deps.get` Command """ from bldr.environment import Environment import os import sys from git.objects.submodule.root import RootUpdateProgress import bldr import bldr.gen.render import bldr.util import giturlparse from git import Repo from pathlib import Path import click import json from bldr.cli import pass_...
25.717949
101
0.738784
154
1,003
4.720779
0.415584
0.055021
0.037139
0.05227
0
0
0
0
0
0
0
0
0.11665
1,003
38
102
26.394737
0.820542
0.017946
0
0
0
0
0.132308
0
0
0
0
0
0
1
0.038462
false
0.076923
0.576923
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
3
ab7c19e7d64dac26e16dbadaba7823486e6bcb4e
365
py
Python
tests/request_tests.py
yoshikiohshima/gato
d4b97f4bf68107c81d20e0d7894a654c5d8924e9
[ "BSD-2-Clause" ]
null
null
null
tests/request_tests.py
yoshikiohshima/gato
d4b97f4bf68107c81d20e0d7894a654c5d8924e9
[ "BSD-2-Clause" ]
null
null
null
tests/request_tests.py
yoshikiohshima/gato
d4b97f4bf68107c81d20e0d7894a654c5d8924e9
[ "BSD-2-Clause" ]
null
null
null
import unittest2 from sphero import request from nose.tools import assert_equal class RequestTest(unittest2.TestCase): def test_ping(self): assert_equal('\xff\xff\x00\x01\x00\x01\xfd', request.Ping().bytes) def test_set_rgb(self): response = request.SetRGB(0, 0, 100, 200, 0) assert_eq...
28.076923
74
0.70411
53
365
4.716981
0.603774
0.132
0
0
0
0
0
0
0
0
0
0.079208
0.169863
365
12
75
30.416667
0.745875
0
0
0
0
0
0.112329
0.076712
0
0
0
0
0.333333
1
0.222222
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
abace88665864f8e70745615856fd1e4579b0687
84
py
Python
gae/api/__init__.py
trevorhreed/gae-boilerplate
90157a66110fcdc9588324b05ef8aaca46f5feef
[ "MIT" ]
null
null
null
gae/api/__init__.py
trevorhreed/gae-boilerplate
90157a66110fcdc9588324b05ef8aaca46f5feef
[ "MIT" ]
null
null
null
gae/api/__init__.py
trevorhreed/gae-boilerplate
90157a66110fcdc9588324b05ef8aaca46f5feef
[ "MIT" ]
null
null
null
import core class Test(core.Endpoint): def get(self): self.json({'what': 'now'})
16.8
28
0.666667
13
84
4.307692
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.130952
84
5
28
16.8
0.767123
0
0
0
0
0
0.082353
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
0
0
0
3
abae7d2bfff199089c125e0df0ae17cc6a79f6c0
516
py
Python
tests/test_cli.py
jacebrowning/slackoff
82e1644b579aaef07c56a9120c684c1395abb186
[ "MIT" ]
null
null
null
tests/test_cli.py
jacebrowning/slackoff
82e1644b579aaef07c56a9120c684c1395abb186
[ "MIT" ]
10
2022-03-27T18:08:20.000Z
2022-03-29T14:07:31.000Z
tests/test_cli.py
jacebrowning/slackoff
82e1644b579aaef07c56a9120c684c1395abb186
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned import pytest from click.testing import CliRunner from expecter import expect from slackoff.cli import main @pytest.fixture def runner(): return CliRunner() def describe_cli(): def describe_signout(): def it_can_force_s...
23.454545
78
0.695736
64
516
5.515625
0.671875
0.062323
0
0
0
0
0
0
0
0
0
0.002415
0.197674
516
21
79
24.571429
0.850242
0.147287
0
0
0
0
0.107306
0
0
0
0
0
0
1
0.307692
false
0
0.307692
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
abc79064f9f95113ae28936961cc710d802d742d
1,588
py
Python
pytautulli/models/home_stats.py
bdraco/pytautulli
42d79d48c431bca4cabac8a50469b2f0645f851d
[ "MIT" ]
2
2018-12-02T18:03:01.000Z
2020-12-20T23:23:24.000Z
pytautulli/models/home_stats.py
bdraco/pytautulli
42d79d48c431bca4cabac8a50469b2f0645f851d
[ "MIT" ]
10
2018-10-20T12:49:12.000Z
2021-11-30T06:16:20.000Z
pytautulli/models/home_stats.py
bdraco/pytautulli
42d79d48c431bca4cabac8a50469b2f0645f851d
[ "MIT" ]
5
2018-10-20T10:52:48.000Z
2021-11-14T09:46:46.000Z
"""PyTautulliApiHomeStats.""" from __future__ import annotations from pytautulli.models.user import PyTautulliApiUser from .base import APIResponseType, PyTautulliApiBaseModel class PyTautulliApiHomeStatsRow(PyTautulliApiUser, PyTautulliApiBaseModel): """PyTautulliApiHomeStatsRow""" _responsetype = APIResp...
29.407407
79
0.675063
182
1,588
5.708791
0.32967
0.215592
0.211742
0.028874
0
0
0
0
0
0
0
0
0.235516
1,588
53
80
29.962264
0.855848
0.04597
0
0
0
0
0
0
0
0
0
0
0
1
0.025641
false
0
0.076923
0
0.948718
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
abf71fa75156167e7d2178198047a4ee715477fe
364
py
Python
rssparser/tests/test_convert_module.py
disp1air/rss_parser
92f9f6202e700126757d5f3b68b3d6f5f7368cd1
[ "MIT" ]
null
null
null
rssparser/tests/test_convert_module.py
disp1air/rss_parser
92f9f6202e700126757d5f3b68b3d6f5f7368cd1
[ "MIT" ]
null
null
null
rssparser/tests/test_convert_module.py
disp1air/rss_parser
92f9f6202e700126757d5f3b68b3d6f5f7368cd1
[ "MIT" ]
null
null
null
import unittest from rssparser.convert_module import rss_items_to_list, rss_to_dict class TestConvertModule(unittest.TestCase): def test_rss_items_to_list(self): self.assertEqual(rss_items_to_list([{}]), [{}]) def test_rss_to_dict(self): self.assertEqual(rss_to_dict([{}]), {'item1': {}}) if ...
26
67
0.708791
48
364
4.833333
0.458333
0.103448
0.12931
0.181034
0
0
0
0
0
0
0
0.003236
0.151099
364
13
68
28
0.747573
0
0
0
0
0
0.035714
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
abfb3eddb38237087269cd3b9f00b5fc056c4db9
1,743
py
Python
test/message_test.py
gavincyi/Telex
1d177d173f2e459d97ae0bcfc7402f1c9f603311
[ "Apache-2.0" ]
null
null
null
test/message_test.py
gavincyi/Telex
1d177d173f2e459d97ae0bcfc7402f1c9f603311
[ "Apache-2.0" ]
null
null
null
test/message_test.py
gavincyi/Telex
1d177d173f2e459d97ae0bcfc7402f1c9f603311
[ "Apache-2.0" ]
null
null
null
#!/bin/python import unittest import logging import os import sys from src.message import message class message_test(unittest.TestCase): def test_from_message_record(self): message_record = message( msg_id=185, channel_id=82, ...
44.692308
95
0.662077
215
1,743
4.962791
0.227907
0.316776
0.223055
0.262418
0.567948
0.495783
0.468604
0.447048
0.205248
0.205248
0
0.013017
0.250717
1,743
39
96
44.692308
0.803982
0.022949
0
0
0
0
0.01648
0
0
0
0
0
0.387097
1
0.032258
false
0
0.16129
0
0.225806
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e6054285fcc436ded47d46f7418638956371c195
164
py
Python
number_reader.py
CoffeeCodeRpt/python-crash-course
762645a20aad4c3dd9e1b17cbd6873128e5717ae
[ "MIT" ]
null
null
null
number_reader.py
CoffeeCodeRpt/python-crash-course
762645a20aad4c3dd9e1b17cbd6873128e5717ae
[ "MIT" ]
null
null
null
number_reader.py
CoffeeCodeRpt/python-crash-course
762645a20aad4c3dd9e1b17cbd6873128e5717ae
[ "MIT" ]
null
null
null
from fileinput import filename import json filename = 'chapter_10/numbers.json' with open(filename) as f_object: numbers = json.load(f_object) print(numbers)
18.222222
36
0.77439
24
164
5.166667
0.625
0.177419
0
0
0
0
0
0
0
0
0
0.014184
0.140244
164
9
37
18.222222
0.865248
0
0
0
0
0
0.139394
0.139394
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e61343d300126ade06ee9dbf6a3b32e71e7411e4
91
py
Python
2018/07/debug_me/1_2.py
lfrommelt/monty
e8cabf0e4ac01ab3d97eecee5e699139076d6544
[ "MIT" ]
null
null
null
2018/07/debug_me/1_2.py
lfrommelt/monty
e8cabf0e4ac01ab3d97eecee5e699139076d6544
[ "MIT" ]
null
null
null
2018/07/debug_me/1_2.py
lfrommelt/monty
e8cabf0e4ac01ab3d97eecee5e699139076d6544
[ "MIT" ]
1
2020-03-20T14:26:28.000Z
2020-03-20T14:26:28.000Z
# drink price list prices = {coke: 2, beer: 2.5, water: 0, juice: 2} print(price('beer'))
18.2
49
0.626374
16
91
3.5625
0.75
0
0
0
0
0
0
0
0
0
0
0.066667
0.175824
91
4
50
22.75
0.693333
0.175824
0
0
0
0
0.054795
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
e625121320d5ad14b9e1daa641afea509c89c27f
332
py
Python
r_pass/urls.py
abztrakt/r-pass
e01c22bef2497ce2c7fa10f5205e066277e0000e
[ "Apache-2.0" ]
null
null
null
r_pass/urls.py
abztrakt/r-pass
e01c22bef2497ce2c7fa10f5205e066277e0000e
[ "Apache-2.0" ]
null
null
null
r_pass/urls.py
abztrakt/r-pass
e01c22bef2497ce2c7fa10f5205e066277e0000e
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url urlpatterns = patterns('', # Examples: url(r'^service/.*/(?P<service_id>[0-9]+)/edit/?$', 'r_pass.views.edit'), url(r'^service/.*/(?P<service_id>[0-9]+)/?$', 'r_pass.views.service'), url(r'^create/?$', 'r_pass.views.create'), url(r'', 'r_pass.view...
33.2
76
0.60241
49
332
3.959184
0.428571
0.082474
0.206186
0.123711
0.237113
0.237113
0.237113
0.237113
0
0
0
0.013746
0.123494
332
9
77
36.888889
0.652921
0.027108
0
0
0
0
0.504673
0.246106
0
0
0
0
0
1
0
false
0.571429
0.142857
0
0.142857
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
e6371ee6b0425887e405e24c3bbd0170183d7538
49
py
Python
devpay/__init__.py
DevpayInc/devpay-python-sdk
499b57dba5a21de9d2ee7294ac6b60fc3bab3494
[ "MIT" ]
null
null
null
devpay/__init__.py
DevpayInc/devpay-python-sdk
499b57dba5a21de9d2ee7294ac6b60fc3bab3494
[ "MIT" ]
null
null
null
devpay/__init__.py
DevpayInc/devpay-python-sdk
499b57dba5a21de9d2ee7294ac6b60fc3bab3494
[ "MIT" ]
null
null
null
# Version of devpay package __version__ = "1.0.0"
24.5
27
0.734694
8
49
4
0.75
0
0
0
0
0
0
0
0
0
0
0.071429
0.142857
49
2
28
24.5
0.690476
0.510204
0
0
0
0
0.217391
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e64a1ea08259275cf6cd709b38b9ad094b9e3c3a
164
py
Python
5. Word error rate.py
srijoni68566/Dataset-preparation-for-training-deep-speech2-model-and-making-speech-to-text-conversion-system
cea119e7829d186016451eea0edc5896c9e0d7e1
[ "MIT" ]
null
null
null
5. Word error rate.py
srijoni68566/Dataset-preparation-for-training-deep-speech2-model-and-making-speech-to-text-conversion-system
cea119e7829d186016451eea0edc5896c9e0d7e1
[ "MIT" ]
null
null
null
5. Word error rate.py
srijoni68566/Dataset-preparation-for-training-deep-speech2-model-and-making-speech-to-text-conversion-system
cea119e7829d186016451eea0edc5896c9e0d7e1
[ "MIT" ]
null
null
null
from jiwer import wer ground_truth = "কুমিল্লার খাদি সারা দেশে পরিচিত" hypothesis = "কুমিল্লার খাদে সারা দেশে পরিচিত" error = wer(ground_truth, hypothesis) error
20.5
48
0.640244
65
164
1.953846
0.369231
0.062992
0.070866
0.062992
0.409449
0.409449
0.409449
0.409449
0.409449
0.409449
0
0
0.152439
164
7
49
23.428571
0.741007
0
0
0
0
0.4
0.378049
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0501489320c01e904cfe6190a8e6a3167e7ea8d8
36
py
Python
example_problem/settings/daphne_fields.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
example_problem/settings/daphne_fields.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
2
2019-09-22T19:14:20.000Z
2020-01-22T20:49:37.000Z
example_problem/settings/daphne_fields.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
1
2018-03-30T19:34:30.000Z
2018-03-30T19:34:30.000Z
daphne_fields = ['context', 'data']
18
35
0.666667
4
36
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
36
1
36
36
0.71875
0
0
0
0
0
0.305556
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
050325ca063d3646dc22960c0d4f30e7b0bb798d
283
py
Python
mtml/toy/tests/test_avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
5
2020-03-02T23:38:36.000Z
2021-01-22T04:00:23.000Z
mtml/toy/tests/test_avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
mtml/toy/tests/test_avimadsen.py
crb479/mcdevitt-trauma-ml
9ed7ed7cd1e4be0071a18f9bbf375414088d5ed2
[ "MIT" ]
null
null
null
from ..avimadsen import add_user_tag from .. import echo_args def test_avimadsen(): wrapped_echo_args = add_user_tag(echo_args) print(wrapped_echo_args('test1', 'test2')) assert(hasattr(wrapped_echo_args, '__user_tag__') and (wrapped_echo_args.__user_tag__ == 'avimadsen'))
25.727273
54
0.777385
41
283
4.756098
0.414634
0.246154
0.307692
0.194872
0.225641
0
0
0
0
0
0
0.007905
0.106007
283
11
55
25.727273
0.762846
0
0
0
0
0
0.109155
0
0
0
0
0
0.142857
1
0.142857
false
0
0.285714
0
0.428571
0.142857
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
050647a369bba47dc77b75bd55eda8a3d6c248f5
155
py
Python
app/sub_app2/views.py
darklab8/darklab_fastapi
595bd0ec63977349fb7dedc3d91b93923d3ef4e8
[ "MIT" ]
null
null
null
app/sub_app2/views.py
darklab8/darklab_fastapi
595bd0ec63977349fb7dedc3d91b93923d3ef4e8
[ "MIT" ]
null
null
null
app/sub_app2/views.py
darklab8/darklab_fastapi
595bd0ec63977349fb7dedc3d91b93923d3ef4e8
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter() @router.get("/items2/{item_id}") async def read_item2(item_id: int): return {"item_id": item_id}
17.222222
35
0.716129
23
155
4.608696
0.652174
0.226415
0
0
0
0
0
0
0
0
0
0.015038
0.141935
155
8
36
19.375
0.781955
0
0
0
0
0
0.154839
0
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
051047bdd1170299eff76a5c1801b2d6cc2e9e33
1,189
py
Python
Chapter 02/438_chapter_2_basic_syntax.py
bpbpublications/A-Journey-to-Core-Python
3dc764c705833901865acef61fa1aff24f385106
[ "MIT" ]
null
null
null
Chapter 02/438_chapter_2_basic_syntax.py
bpbpublications/A-Journey-to-Core-Python
3dc764c705833901865acef61fa1aff24f385106
[ "MIT" ]
null
null
null
Chapter 02/438_chapter_2_basic_syntax.py
bpbpublications/A-Journey-to-Core-Python
3dc764c705833901865acef61fa1aff24f385106
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Chapter 2 - Basic Syntax Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ZCgjPQh22xnQbcARKoosyaj5Ul10efpa """ #Interactive Mode Programming #On Linux # 1. $ python # 2. Python 3.3.2 (default, Dec 10 2013, 11:35:01) # 3. ...
22.018519
100
0.650967
185
1,189
4.167568
0.605405
0.036316
0.046693
0.064851
0.111543
0.111543
0.111543
0
0
0
0
0.088083
0.188394
1,189
53
101
22.433962
0.710881
0.925988
0
null
1
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
0546cbe2273bbc593aab58c1dc542ed3e8e10c15
192,363
py
Python
menpo/visualize/widgets/tools.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/visualize/widgets/tools.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/visualize/widgets/tools.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from StringIO import StringIO # Global variables to try and reduce overhead of loading the logo MENPO_LOGO = None MENPO_LOGO_SCALE = None def logo(scale=0.3): r""" Creates a widget with Menpo Logo Image. The structure of the widgets is the following: logo.chi...
43.442412
82
0.635356
22,423
192,363
5.131205
0.024885
0.044413
0.037381
0.022684
0.8076
0.733949
0.69157
0.629219
0.590021
0.54486
0
0.009973
0.275479
192,363
4,427
83
43.452225
0.815571
0.044962
0
0.407487
0
0
0.086067
0.007309
0
0
0
0
0
0
null
null
0.00043
0.010327
null
null
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
054796fb38131b08b7efda51114633d16690325e
826
py
Python
bloombox_tests/schema_tests.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
bloombox_tests/schema_tests.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
bloombox_tests/schema_tests.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# -*- coding: utf-8 -*- """ bloombox testsuite: schema tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) Momentum Ideas Co., 2018 :license: This software makes use of the Apache License v2. A copy of this license is included as ``LICENSE.md`` in the root of the project. """ import...
25.8125
68
0.671913
100
826
5.47
0.53
0.073126
0.131627
0.120658
0.288848
0.270567
0.157221
0
0
0
0
0.015038
0.194915
826
31
69
26.645161
0.807519
0.513317
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.875
0
1.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
0560a8328e5c50e3a031519356ea14957467d952
79
py
Python
venv/Lib/site-packages/xlsxwriter/__init__.py
IFFP-Team-IT/ScrapingApec
9501a2d6e0183c1369c8a92b7ce4ea895341b270
[ "bzip2-1.0.6" ]
1
2021-06-03T21:57:32.000Z
2021-06-03T21:57:32.000Z
env/lib/python3.9/site-packages/xlsxwriter/__init__.py
febycloud/wagtail_project_demo
0a72f112133423b08c1a149d527f3366cfad198f
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
env/lib/python3.9/site-packages/xlsxwriter/__init__.py
febycloud/wagtail_project_demo
0a72f112133423b08c1a149d527f3366cfad198f
[ "MIT" ]
null
null
null
__version__ = '1.4.3' __VERSION__ = __version__ from .workbook import Workbook
19.75
30
0.78481
10
79
5
0.7
0
0
0
0
0
0
0
0
0
0
0.043478
0.126582
79
3
31
26.333333
0.681159
0
0
0
0
0
0.063291
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
056a80841d983fb78e04d44bd5fa8b4a91cad9ec
157
py
Python
tasklist/views.py
marcbperez/django-tasklist
cfab15b9c4cb93485bce695962cc2a2e95054a6d
[ "Apache-2.0" ]
1
2019-04-16T08:51:08.000Z
2019-04-16T08:51:08.000Z
tasklist/views.py
mbpez/django-tasklist
cfab15b9c4cb93485bce695962cc2a2e95054a6d
[ "Apache-2.0" ]
null
null
null
tasklist/views.py
mbpez/django-tasklist
cfab15b9c4cb93485bce695962cc2a2e95054a6d
[ "Apache-2.0" ]
null
null
null
from .models import Task from django.http import HttpResponse def index(request): collection = Task.objects.all() return HttpResponse(collection)
17.444444
36
0.757962
19
157
6.263158
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.165605
157
8
37
19.625
0.908397
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
0
0
0
3
0591a4fad9b2f43cba7b12a9fd659418103c14ac
4,570
py
Python
dssg_challenge/ga/algorithm/simulated_annealing.py
DavidSilva98/dssgsummit2020-challenge
55befaf1c7e1644d371fbb100509551d0b9dee30
[ "MIT" ]
null
null
null
dssg_challenge/ga/algorithm/simulated_annealing.py
DavidSilva98/dssgsummit2020-challenge
55befaf1c7e1644d371fbb100509551d0b9dee30
[ "MIT" ]
1
2021-09-09T09:00:36.000Z
2021-09-09T09:00:36.000Z
dssg_challenge/ga/algorithm/simulated_annealing.py
DavidSilva98/dssgsummit2020-challenge
55befaf1c7e1644d371fbb100509551d0b9dee30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------------------------- """ Simulated Annealing Meta-Heuristic ---------------------------------- Content: ▶ class Simulated Annealing ───────────────────────────────────────────────────────────────────────── CIFO -...
34.885496
118
0.394967
336
4,570
5.505952
0.339286
0.008649
0.036757
0.03027
0.28973
0.272432
0.272432
0.272432
0.272432
0.272432
0
0.013834
0.224945
4,570
131
119
34.885496
0.487578
0.752079
0
0.277778
0
0
0
0
0
0
0
0
0
1
0.388889
false
0.277778
0
0.055556
0.5
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
0
0
0
0
0
1
0
1
0
0
0
0
0
3
059545ee401359c90937549ccff70e4e90c82262
169
py
Python
backend/registry/enums/document.py
Don-King-Kong/mrmap
f58a77bf979142876c38b98de0b7514c475b9905
[ "MIT" ]
10
2021-03-12T17:46:38.000Z
2022-03-11T10:59:01.000Z
backend/registry/enums/document.py
Don-King-Kong/mrmap
f58a77bf979142876c38b98de0b7514c475b9905
[ "MIT" ]
214
2021-03-10T19:24:17.000Z
2022-03-15T07:34:24.000Z
backend/registry/enums/document.py
Don-King-Kong/mrmap
f58a77bf979142876c38b98de0b7514c475b9905
[ "MIT" ]
9
2021-03-16T19:47:54.000Z
2022-03-11T11:01:22.000Z
from MrMap.enums import EnumChoice class DocumentEnum(EnumChoice): """ Defines all document types """ CAPABILITY = "Capability" METADATA = "Metadata"
16.9
34
0.686391
16
169
7.25
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.218935
169
9
35
18.777778
0.878788
0.153846
0
0
0
0
0.138462
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
3
553ec5c0aec9ddbf6e753732fcebb139eeea6254
697
py
Python
metareserve_geni/internal/gni/py2/util/geni_util.py
MariskaIJpelaar/metareserve-GENI
d3f52eb714b79a628d6911d528895ef6feae57c3
[ "MIT" ]
3
2021-04-25T16:04:46.000Z
2021-10-05T12:25:42.000Z
metareserve_geni/internal/gni/py2/util/geni_util.py
MariskaIJpelaar/metareserve-GENI
d3f52eb714b79a628d6911d528895ef6feae57c3
[ "MIT" ]
1
2022-02-08T09:29:49.000Z
2022-02-08T09:29:49.000Z
metareserve_geni/internal/gni/py2/util/geni_util.py
MariskaIJpelaar/metareserve-GENI
d3f52eb714b79a628d6911d528895ef6feae57c3
[ "MIT" ]
2
2021-10-05T12:25:35.000Z
2021-12-21T18:45:01.000Z
import geni.util def get_context(): try: return geni.util.loadContext() except IOError as e: # File not found. No credentials loaded? print('ERROR: Could not load context: ', e) print('''Are there any credentials available? If not, check https://docs.emulab.net/geni-lib/intro/creden...
36.684211
80
0.652798
94
697
4.829787
0.702128
0.035242
0
0
0
0
0
0
0
0
0
0
0.218077
697
18
81
38.722222
0.833028
0.054519
0
0
0
0.0625
0.73516
0
0
0
0
0
0
1
0.0625
true
0.125
0.0625
0
0.25
0.125
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
1
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
55760744980750dd2313dfffd376c534e50833a7
7,247
py
Python
tests/test_wrangling.py
BlaneG/CAN-income-stats
da8a9e8b26488101a15a071d44f216d4f93779b5
[ "MIT" ]
null
null
null
tests/test_wrangling.py
BlaneG/CAN-income-stats
da8a9e8b26488101a15a071d44f216d4f93779b5
[ "MIT" ]
null
null
null
tests/test_wrangling.py
BlaneG/CAN-income-stats
da8a9e8b26488101a15a071d44f216d4f93779b5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pytest from ..wrangling import ( subset_plot_data_for_income_bins, subset_plot_data_for_scatter_plot, subset_year_age_sex_geo ) def test_subset_plot_data_for_income_bins(): expected_result = {'Age group': {598748: '35 to 44 years', ...
47.677632
100
0.345798
543
7,247
4.504604
0.20442
0.022895
0.034342
0.06296
0.128782
0.099346
0.026165
0.026165
0.026165
0
0
0.294042
0.571547
7,247
152
101
47.677632
0.49372
0.004278
0
0.057971
0
0
0.186608
0.007486
0
0
0
0
0.014493
1
0.014493
false
0
0.028986
0
0.043478
0
0
0
0
null
0
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
3
557b3a045d6d8bf06fe7e029029d036e7b32db52
740
py
Python
bot.py
joonsauce/sus-bot
4b12df4b9f54be5d57df8af64968d40d0ed92630
[ "MIT" ]
1
2021-10-30T01:39:16.000Z
2021-10-30T01:39:16.000Z
bot.py
joonsauce/susbot
4b12df4b9f54be5d57df8af64968d40d0ed92630
[ "MIT" ]
null
null
null
bot.py
joonsauce/susbot
4b12df4b9f54be5d57df8af64968d40d0ed92630
[ "MIT" ]
null
null
null
# links the main bot file with the other feature files # links to the redesigned help command from help import * # links to the random sus meme feature from redditAPI import * # links to the roll features from roll import * # links to the various bot settings from setting import * # links to the different "sus...
32.173913
140
0.731081
122
740
4.42623
0.5
0.077778
0.111111
0.148148
0
0
0
0
0
0
0
0
0.218919
740
22
141
33.636364
0.934256
0.627027
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
558af04b48611f43c3d625d1b33e7734fbdfc9b5
3,155
py
Python
tools/pretty-printers/gdb/cista_vector.py
mayhemheroes/cista
c889baf253081571913b88b26ad30be0104a82cd
[ "MIT" ]
null
null
null
tools/pretty-printers/gdb/cista_vector.py
mayhemheroes/cista
c889baf253081571913b88b26ad30be0104a82cd
[ "MIT" ]
null
null
null
tools/pretty-printers/gdb/cista_vector.py
mayhemheroes/cista
c889baf253081571913b88b26ad30be0104a82cd
[ "MIT" ]
null
null
null
import re import gdb.xmethod def is_cista_vector(gdb_type): return str(gdb_type.strip_typedefs().unqualified()).startswith("cista::basic_vector") def is_raw_vector(gdb_type): return not str(gdb_type.strip_typedefs().template_argument(1)).startswith("cista::offset_ptr") class CistaVector: def __init__(sel...
28.944954
98
0.66149
390
3,155
5.053846
0.230769
0.050736
0.027905
0.038052
0.373922
0.313546
0.292237
0.292237
0.292237
0.253678
0
0.00123
0.226624
3,155
108
99
29.212963
0.806557
0.032013
0
0.276316
0
0
0.052528
0
0
0
0
0
0
1
0.289474
false
0
0.026316
0.118421
0.644737
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e96232eec66e4e2adac64851dc6de51e48d3d40f
152
py
Python
Ex010.py
paulosv2/CursoEmVideo
958de1316626845dcc6fa4ff185a64165859d14e
[ "MIT" ]
null
null
null
Ex010.py
paulosv2/CursoEmVideo
958de1316626845dcc6fa4ff185a64165859d14e
[ "MIT" ]
null
null
null
Ex010.py
paulosv2/CursoEmVideo
958de1316626845dcc6fa4ff185a64165859d14e
[ "MIT" ]
null
null
null
real = float(input('Insíra quantos reais voce quer converter para dólar: ')) dolar = real / 3.27 print(f'Com R${real} você pode comprar US${dolar}!')
25.333333
76
0.697368
25
152
4.24
0.88
0
0
0
0
0
0
0
0
0
0
0.023438
0.157895
152
5
77
30.4
0.804688
0
0
0
0
0
0.625
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
0
0
0
0
0
3
e965ddc62326600017625386dc5e08d6eed621ce
147
py
Python
grsc_app/apps.py
NicholasFry/geothermalrisingsc
af47ffb278acf81aad073ca4281dbc059fa2e2e1
[ "CC0-1.0" ]
null
null
null
grsc_app/apps.py
NicholasFry/geothermalrisingsc
af47ffb278acf81aad073ca4281dbc059fa2e2e1
[ "CC0-1.0" ]
null
null
null
grsc_app/apps.py
NicholasFry/geothermalrisingsc
af47ffb278acf81aad073ca4281dbc059fa2e2e1
[ "CC0-1.0" ]
null
null
null
from django.apps import AppConfig class GrscAppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'grsc_app'
21
56
0.761905
18
147
6.055556
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.14966
147
6
57
24.5
0.872
0
0
0
0
0
0.251701
0.197279
0
0
0
0
0
1
0
false
0
0.25
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
0
0
1
0
0
3
e9685a7f5ed9b56a149a156bad1422ec37543fbc
3,017
py
Python
junos_get_bgp_neighbors.py
ksator/junos-automation-with-NAPALM
aee4382b2fdeaad0186a8771c90bb0e14d7b563e
[ "MIT" ]
15
2017-12-06T18:11:19.000Z
2021-06-14T07:41:36.000Z
junos_get_bgp_neighbors.py
ksator/junos-automation-with-NAPALM
aee4382b2fdeaad0186a8771c90bb0e14d7b563e
[ "MIT" ]
null
null
null
junos_get_bgp_neighbors.py
ksator/junos-automation-with-NAPALM
aee4382b2fdeaad0186a8771c90bb0e14d7b563e
[ "MIT" ]
9
2017-11-15T15:42:11.000Z
2020-12-26T13:23:05.000Z
from json import dumps from napalm_base import get_network_driver junos_driver = get_network_driver('junos') junos_device = {'username': 'pytraining', 'password': 'Poclab123', 'hostname': '172.30.179.95'} with junos_driver(**junos_device) as junos: print('-'*60) print junos.get_bgp_neighbors() print('-'*60) p...
40.77027
759
0.444481
318
3,017
4.003145
0.204403
0.084839
0.032993
0.062844
0.611155
0.557738
0.524745
0.428908
0.378633
0.378633
0
0.102912
0.339741
3,017
73
760
41.328767
0.536145
0
0
0.272727
0
0
0.197849
0
0
0
0
0
0
0
null
null
0.090909
0.181818
null
null
0.545455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
1
0
3
e9a1168bb23d6bb7f56613e4eb911302a3de7269
1,007
py
Python
tests/unit/models/test_title.py
kmarekspartz/library
6078e895bcbd0a7db029d23a9c1088ece6b1e4ba
[ "MIT" ]
null
null
null
tests/unit/models/test_title.py
kmarekspartz/library
6078e895bcbd0a7db029d23a9c1088ece6b1e4ba
[ "MIT" ]
null
null
null
tests/unit/models/test_title.py
kmarekspartz/library
6078e895bcbd0a7db029d23a9c1088ece6b1e4ba
[ "MIT" ]
null
null
null
from unittest import TestCase from library.models.title import Title from tests.unit.models.test_base import BaseTest class TestTitle(BaseTest, TestCase): cls = Title def test_class_has_isbn(self): """ The Title model should have an ISBN. """ self.assertTrue(hasattr(self.cls...
25.175
70
0.619662
125
1,007
4.832
0.264
0.07947
0.173841
0.206954
0.519868
0.445364
0.445364
0.268212
0
0
0
0
0.276068
1,007
39
71
25.820513
0.828532
0.196624
0
0
0
0
0.044733
0
0
0
0
0
0.333333
1
0.333333
false
0
0.2
0
0.666667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
e9a1b98d82defa20f788206b2cae1adcbd0a2f3e
237
py
Python
src/data_visualiazation.py
RikiTikkiTavi/Dota2-Winner-Prediction
226516029a4189a0e4ae87a4f3a800b1365a6c7f
[ "MIT" ]
1
2021-10-04T05:40:20.000Z
2021-10-04T05:40:20.000Z
src/data_visualiazation.py
RikiTikkiTavi/Dota2-Winner-Prediction
226516029a4189a0e4ae87a4f3a800b1365a6c7f
[ "MIT" ]
null
null
null
src/data_visualiazation.py
RikiTikkiTavi/Dota2-Winner-Prediction
226516029a4189a0e4ae87a4f3a800b1365a6c7f
[ "MIT" ]
null
null
null
from sklearn.manifold import TSNE import pandas as pd import matplotlib.pyplot as plt def visualize(data): data_embedded = TSNE(n_components=2).fit_transform(data) print(data_embedded) plt.plot(data_embedded) plt.show()
23.7
60
0.759494
35
237
5
0.657143
0.205714
0.171429
0
0
0
0
0
0
0
0
0.005
0.156118
237
9
61
26.333333
0.87
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0.125
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e9a4e7a6deeab7fde7c05f3727f4561787cf5653
758
py
Python
neurolab/optimization/metric/crossent.py
udday2014/HebbianLearning
e0d17e53e3db8ce54b8fdd901702d2d6e0633732
[ "MIT" ]
6
2020-01-08T05:36:09.000Z
2022-02-09T21:07:04.000Z
neurolab/optimization/metric/crossent.py
udday2014/HebbianLearning
e0d17e53e3db8ce54b8fdd901702d2d6e0633732
[ "MIT" ]
null
null
null
neurolab/optimization/metric/crossent.py
udday2014/HebbianLearning
e0d17e53e3db8ce54b8fdd901702d2d6e0633732
[ "MIT" ]
1
2021-09-11T08:12:29.000Z
2021-09-11T08:12:29.000Z
import torch.nn as nn from ..optimization import MetricManager from neurolab import params as P # Wrapper around Pytorch CrossEntropyLoss criterion class CrossEntMetric: def __init__(self): self.crossent_loss = nn.CrossEntropyLoss() def __call__(self, outputs, targets): if isinstance(outputs, dict): outputs ...
25.266667
70
0.773087
97
758
5.773196
0.474227
0.053571
0.039286
0
0
0
0
0
0
0
0
0
0.141161
758
30
71
25.266667
0.860215
0.118734
0
0
0
0
0.01952
0
0
0
0
0
0
1
0.315789
false
0
0.157895
0.157895
0.789474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
e9b0caea88db59def68227a0ce7937c0da15f759
1,891
py
Python
databases/seeds/sneaker_table_seeder.py
GuMarYae/project4_sneakers_app_backend
7bfc232d50c51afa2a89570940e4439ce50aeaf3
[ "MIT" ]
null
null
null
databases/seeds/sneaker_table_seeder.py
GuMarYae/project4_sneakers_app_backend
7bfc232d50c51afa2a89570940e4439ce50aeaf3
[ "MIT" ]
null
null
null
databases/seeds/sneaker_table_seeder.py
GuMarYae/project4_sneakers_app_backend
7bfc232d50c51afa2a89570940e4439ce50aeaf3
[ "MIT" ]
null
null
null
"""SneakerTableSeeder Seeder.""" from masoniteorm.seeds import Seeder from app.Sneaker import Sneaker class SneakerTableSeeder(Seeder): def run(self): Sneaker.create({"brand": "Nike", "name": "Lebron 19", "cost": "$200", "year": "2021", "image": "https://static.nike.com/a/images/c_limit,w_592,f_auto/t_pr...
118.1875
301
0.708091
251
1,891
5.25498
0.533865
0.068992
0.095527
0.08188
0.271418
0.231994
0.16376
0.11069
0.11069
0.11069
0
0.125361
0.084611
1,891
15
302
126.066667
0.636626
0.013749
0
0
0
0.545455
0.687466
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e9db79f54c36e68829f887ea621a6bdb7da4ce57
40
py
Python
vendor/feedvalidator/demo/src/rdflib/syntax/parsers/__init__.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
65
2015-01-30T09:17:59.000Z
2022-03-05T16:23:46.000Z
vendor/feedvalidator/demo/src/rdflib/syntax/parsers/__init__.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
25
2015-01-30T09:23:28.000Z
2021-11-30T08:52:08.000Z
vendor/feedvalidator/demo/src/rdflib/syntax/parsers/__init__.py
BenoitZugmeyer/NewsBlur
8d63f2598fa83245d381933d552ca490d84df526
[ "MIT" ]
33
2015-03-13T17:14:15.000Z
2022-03-05T11:18:43.000Z
__all__ = ["RDFXMLParser", "NTParser"]
13.333333
38
0.675
3
40
7.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.125
40
2
39
20
0.657143
0
0
0
0
0
0.512821
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e9dc1e28641d11b9f26551cb76610f45bfc6db41
165
py
Python
tests/test15.py
ngurkan/judicious
8b814b2848122df8e62729d725709d33719f16a1
[ "MIT" ]
4
2018-02-07T23:59:36.000Z
2020-07-17T14:37:57.000Z
tests/test15.py
ngurkan/judicious
8b814b2848122df8e62729d725709d33719f16a1
[ "MIT" ]
1,463
2017-09-27T15:13:57.000Z
2022-03-31T14:09:04.000Z
tests/test15.py
ngurkan/judicious
8b814b2848122df8e62729d725709d33719f16a1
[ "MIT" ]
6
2017-10-30T17:51:36.000Z
2020-06-03T02:56:34.000Z
import judicious # judicious.register("http://127.0.0.1:5000") judicious.register("https://imprudent.herokuapp.com") solved = judicious.recaptcha() print(solved)
18.333333
53
0.751515
21
165
5.904762
0.714286
0.274194
0
0
0
0
0
0
0
0
0
0.065359
0.072727
165
8
54
20.625
0.745098
0.260606
0
0
0
0
0.258333
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
0
0
3
e9df81c140e2a33273a2865d72ad644e0b294205
440
py
Python
example/wishingpiece.py
KKtheGhost/PokeAuto
75dd658ee725004bb4e6b1457e5e9019828c2f70
[ "MIT" ]
23
2020-02-15T15:21:38.000Z
2022-02-11T01:58:51.000Z
example/wishingpiece.py
Ojors/Switch-Fightstick
7732342a1f2e010f85d2f92f5ce70c7dfcfeeea8
[ "MIT" ]
null
null
null
example/wishingpiece.py
Ojors/Switch-Fightstick
7732342a1f2e010f85d2f92f5ce70c7dfcfeeea8
[ "MIT" ]
16
2020-02-07T20:35:57.000Z
2022-01-06T07:36:11.000Z
from NXController import Controller ctr = Controller() ctr.LS() ctr.A() ctr.pause(1) ctr.A() ctr.pause(1) ctr.A() ctr.pause(0.3) ctr.h() response = input("Restart(y/n): ") while response == 'y': ctr.X() ctr.A() ctr.pause(3) ctr.A() ctr.pause(1) ctr.A() ctr.pause(15) ctr.A() ctr.pause(7) ctr.A() ctr.paus...
11.282051
35
0.602273
83
440
3.192771
0.26506
0.166038
0.290566
0.45283
0.592453
0.592453
0.592453
0.592453
0.592453
0.498113
0
0.03504
0.156818
440
39
36
11.282051
0.679245
0
0
0.709677
0
0
0.06576
0
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e9e1940ac31b8c1c37b13dd0a37ba7f650b1a551
10,376
py
Python
spefit/pdf/tests/test_base.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/pdf/tests/test_base.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/pdf/tests/test_base.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
from spefit.pdf.base import PDFParameter, PDF from spefit.common.stats import normal_pdf import numpy as np from numpy.testing import assert_allclose import pytest def test_pdf_parameter(): initial = 1 limits = (0, 4) fixed = True multi = True param = PDFParameter(initial=initial, limits=limits, ...
35.534247
84
0.661334
1,441
10,376
4.639833
0.068702
0.05863
0.095722
0.071792
0.803021
0.774155
0.685911
0.676488
0.629674
0.619503
0
0.046252
0.187355
10,376
291
85
35.656357
0.746679
0.016962
0
0.523013
0
0
0.031002
0
0
0
0
0
0.372385
1
0.062762
false
0
0.020921
0
0.083682
0
0
0
0
null
0
0
0
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
3
75788108af780de1db3f61d9351c3ebe27da097f
373
py
Python
conf/landscapes_relay/configen/landscapes/models/meta/ft/conf.py
wearepal/landscapes-ml
10b0159201d15358b97716ad6a3f89747eb634e5
[ "Apache-2.0" ]
null
null
null
conf/landscapes_relay/configen/landscapes/models/meta/ft/conf.py
wearepal/landscapes-ml
10b0159201d15358b97716ad6a3f89747eb634e5
[ "Apache-2.0" ]
null
null
null
conf/landscapes_relay/configen/landscapes/models/meta/ft/conf.py
wearepal/landscapes-ml
10b0159201d15358b97716ad6a3f89747eb634e5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from omegaconf import MISSING from typing import Any @dataclass class LinearProbeConf: _target_: str = "landscapes.models.meta.ft.LinearProbe" model: Any = MISSING # ClassificationModel @dataclass class BitFitConf: _target_: str = "landscapes.models.meta.ft.Bit...
21.941176
59
0.761394
41
373
6.829268
0.536585
0.1
0.135714
0.178571
0.221429
0.221429
0
0
0
0
0
0
0.16622
373
16
60
23.3125
0.900322
0.104558
0
0.363636
0
0
0.209091
0.209091
0
0
0
0
0
1
0
true
0
0.272727
0
0.818182
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
3
757db96c2218785b0cb74d58880f63ed09889798
211
py
Python
47.Replace_list_-1_0_1.py
gptakhil/Python_Practice_Beginner
ebff3da1204dfed6762bce0cfc6b0ea562212548
[ "MIT" ]
2
2020-10-13T08:16:56.000Z
2020-10-14T10:05:16.000Z
47.Replace_list_-1_0_1.py
gptakhil/Python_Practice_Beginner
ebff3da1204dfed6762bce0cfc6b0ea562212548
[ "MIT" ]
null
null
null
47.Replace_list_-1_0_1.py
gptakhil/Python_Practice_Beginner
ebff3da1204dfed6762bce0cfc6b0ea562212548
[ "MIT" ]
2
2020-10-13T08:17:04.000Z
2020-10-17T11:19:33.000Z
mylist = [8,4,7,6,2,3,5,-2,-1,0,1,-6,-8,5,0,-9] print(mylist) for i in range(len(mylist)): if mylist[i]>0: mylist[i]=1 elif mylist[i]<0: mylist[i]=-1 else: mylist[i]=0 print(mylist)
19.181818
47
0.540284
45
211
2.533333
0.444444
0.307018
0.210526
0.245614
0.280702
0.280702
0
0
0
0
0
0.127273
0.218009
211
11
48
19.181818
0.563636
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3