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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1913960f43faf92c64fc37480bf846c4c2de50ee
| 695
|
py
|
Python
|
nba/team.py
|
orlandoortegajr/NotificationBot
|
5a838a656614648d338a3b9a11e090bdc018ea8e
|
[
"MIT"
] | null | null | null |
nba/team.py
|
orlandoortegajr/NotificationBot
|
5a838a656614648d338a3b9a11e090bdc018ea8e
|
[
"MIT"
] | null | null | null |
nba/team.py
|
orlandoortegajr/NotificationBot
|
5a838a656614648d338a3b9a11e090bdc018ea8e
|
[
"MIT"
] | null | null | null |
"""
Contains the Team object used represent NBA teams
"""
class Team:
"""
Object representing NBA teams containing:
team name -
three letter code -
unique team id -
nickname.
"""
def __init__(self, name, tricode, teamID, nickname):
self.name = name
self.tricode = tricode
self.id = teamID
self.nickname = nickname
def get_name(self):
return self.name
def get_tricode(self):
return self.tricode
def get_id(self):
return self.id
def get_nickname(self):
return self.nickname
def __str__(self):
return self.name + ", " + self.tricode
| 20.441176
| 56
| 0.571223
| 79
| 695
| 4.873418
| 0.329114
| 0.12987
| 0.181818
| 0.093506
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.343885
| 695
| 33
| 57
| 21.060606
| 0.844298
| 0.241727
| 0
| 0
| 0
| 0
| 0.004098
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0
| 0
| 0.3125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
192bf1c19f352c7022ea405a908eb6753a8f20e1
| 92
|
py
|
Python
|
test_plus/apps.py
|
tolgahanuzun/test_plus
|
53be09286d0df69f8959242cd68708b57a83cf30
|
[
"MIT"
] | 9
|
2019-12-12T11:55:37.000Z
|
2020-07-29T21:24:42.000Z
|
test_plus/apps.py
|
tolgahanuzun/test_plus
|
53be09286d0df69f8959242cd68708b57a83cf30
|
[
"MIT"
] | 4
|
2019-12-20T15:36:06.000Z
|
2020-07-08T09:37:01.000Z
|
test_plus/apps.py
|
tolgahanuzun/test_plus
|
53be09286d0df69f8959242cd68708b57a83cf30
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class TestPlusConfig(AppConfig):
name = 'test_plus'
| 15.333333
| 33
| 0.76087
| 11
| 92
| 6.272727
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163043
| 92
| 5
| 34
| 18.4
| 0.896104
| 0
| 0
| 0
| 0
| 0
| 0.097826
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
192f132afcc224bf26d0a6a67f869fb9818724a1
| 358
|
py
|
Python
|
Speed.py
|
mithem/Converter
|
d7aa683d444f8e0711428453c3d7691210d1a8aa
|
[
"MIT"
] | null | null | null |
Speed.py
|
mithem/Converter
|
d7aa683d444f8e0711428453c3d7691210d1a8aa
|
[
"MIT"
] | null | null | null |
Speed.py
|
mithem/Converter
|
d7aa683d444f8e0711428453c3d7691210d1a8aa
|
[
"MIT"
] | null | null | null |
def kph(ms):
return ms * 3.6
def mph(ms):
return ms * 2.2369362920544
def knots(ms):
return ms * 1.9438444924574
def minPkm(ms): # minutes per kilometre
return ms * (100 / 6)
def c(ms): # speed of light
return ms / 299792458
def speedOfLight(ms):
return c(ms)
def mach(ms):
return ms / 340
def speedOfSound(ms):
return mach(ms)
| 15.565217
| 39
| 0.648045
| 58
| 358
| 4
| 0.448276
| 0.206897
| 0.172414
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167883
| 0.234637
| 358
| 23
| 40
| 15.565217
| 0.678832
| 0.100559
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
194db513d5fb7fd37a65f3a496a7fa90054bcd71
| 150
|
py
|
Python
|
EX./ex008.py
|
CamposRodrigo/Python
|
0c9a2214f710b76e012abbf8ea082a302f3f11f3
|
[
"MIT"
] | null | null | null |
EX./ex008.py
|
CamposRodrigo/Python
|
0c9a2214f710b76e012abbf8ea082a302f3f11f3
|
[
"MIT"
] | null | null | null |
EX./ex008.py
|
CamposRodrigo/Python
|
0c9a2214f710b76e012abbf8ea082a302f3f11f3
|
[
"MIT"
] | null | null | null |
x = int(input('Digite a distancia em metros da rua: '))
print('A rua tem {} metros ou {} centimetros ou {} milimetros.'.format(x, x * 100, x * 1000))
| 50
| 93
| 0.646667
| 25
| 150
| 3.88
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056911
| 0.18
| 150
| 2
| 94
| 75
| 0.731707
| 0
| 0
| 0
| 0
| 0
| 0.613333
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
194ead4669799ddd4cef908e33c20f143920fa5c
| 206
|
py
|
Python
|
modules/detection/__init__.py
|
martinhoang11/vietnamese-ocr-toolbox
|
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
|
[
"Apache-2.0"
] | 14
|
2021-09-05T10:42:14.000Z
|
2022-03-10T16:27:26.000Z
|
modules/detection/__init__.py
|
martinhoang11/vietnamese-ocr-toolbox
|
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
|
[
"Apache-2.0"
] | 1
|
2021-06-16T11:35:24.000Z
|
2021-06-16T11:35:24.000Z
|
modules/detection/__init__.py
|
martinhoang11/vietnamese-ocr-toolbox
|
524b4908bedceb0c87b2c7cd7b5e3f6e1126ace5
|
[
"Apache-2.0"
] | 5
|
2021-09-05T13:26:51.000Z
|
2022-03-09T07:49:45.000Z
|
from .utils.util import show_img, draw_bbox
from .predict import PAN
from .models import get_model, get_loss
from .metrics import get_metric
from .datasets import get_dataloader
from .trainer import Trainer
| 34.333333
| 43
| 0.834951
| 33
| 206
| 5.030303
| 0.575758
| 0.162651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121359
| 206
| 6
| 44
| 34.333333
| 0.917127
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1955d4cb21722e851dfb062a29423ae76bf3d7e8
| 134
|
py
|
Python
|
app/models/user.py
|
seita1224/azureflasktest
|
ad34f6f790b0d4797dd48d5637fcda12610d3401
|
[
"MIT"
] | null | null | null |
app/models/user.py
|
seita1224/azureflasktest
|
ad34f6f790b0d4797dd48d5637fcda12610d3401
|
[
"MIT"
] | null | null | null |
app/models/user.py
|
seita1224/azureflasktest
|
ad34f6f790b0d4797dd48d5637fcda12610d3401
|
[
"MIT"
] | null | null | null |
class user():
def __init__(self,id,passwd):
self.id = id
self.passwd = passwd
def get_id(self):
pass
| 16.75
| 33
| 0.544776
| 18
| 134
| 3.777778
| 0.5
| 0.176471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.343284
| 134
| 7
| 34
| 19.142857
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
195a8f186b90c399ed28968551ed296c1f8af933
| 197
|
py
|
Python
|
apps/download.py
|
afanasyev-ilya/VectorGraphLibrary
|
caf2013260fc89b3afd0a5f5006a2aa85fc290e7
|
[
"Apache-2.0"
] | 8
|
2020-11-27T15:43:52.000Z
|
2021-09-28T14:22:04.000Z
|
apps/download.py
|
afanasyev-ilya/VectorGraphLibrary
|
caf2013260fc89b3afd0a5f5006a2aa85fc290e7
|
[
"Apache-2.0"
] | 1
|
2021-03-04T18:55:12.000Z
|
2021-03-04T18:55:12.000Z
|
apps/download.py
|
afanasyev-ilya/VectorGraphLibrary
|
caf2013260fc89b3afd0a5f5006a2aa85fc290e7
|
[
"Apache-2.0"
] | null | null | null |
import os
import optparse
from scripts.benchmarking_api import *
from scripts.verification_api import *
def main():
download_all_real_world_graphs()
if __name__ == "__main__":
main()
| 13.133333
| 38
| 0.746193
| 25
| 197
| 5.32
| 0.68
| 0.165414
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172589
| 197
| 14
| 39
| 14.071429
| 0.815951
| 0
| 0
| 0
| 0
| 0
| 0.041026
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| true
| 0
| 0.5
| 0
| 0.625
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1992fdd60a564077f51cca1875d1dd1974698b23
| 186
|
py
|
Python
|
view/runnable/AskHowMuch.py
|
achrafJhidri/LeCompteEstBon
|
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
|
[
"MIT"
] | null | null | null |
view/runnable/AskHowMuch.py
|
achrafJhidri/LeCompteEstBon
|
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
|
[
"MIT"
] | null | null | null |
view/runnable/AskHowMuch.py
|
achrafJhidri/LeCompteEstBon
|
06e1a3b3ca1ea9db2807e942ab8ab1bfe050ef90
|
[
"MIT"
] | null | null | null |
from view.runnable.Runnable import Runnable
class AskHowMuch(Runnable):
def __init__(self,vue):
Runnable.__init__(self,vue)
def run(self):
self.vue.askHowMuch()
| 20.666667
| 43
| 0.693548
| 23
| 186
| 5.26087
| 0.478261
| 0.173554
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.198925
| 186
| 9
| 44
| 20.666667
| 0.812081
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
271454ea9c0b57e40de9e1bf86663b22306bcad3
| 224
|
py
|
Python
|
scripts/npc/PirateMaster.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 54
|
2019-04-16T23:24:48.000Z
|
2021-12-18T11:41:50.000Z
|
scripts/npc/PirateMaster.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 3
|
2019-05-19T15:19:41.000Z
|
2020-04-27T16:29:16.000Z
|
scripts/npc/PirateMaster.py
|
G00dBye/YYMS
|
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
|
[
"MIT"
] | 49
|
2020-11-25T23:29:16.000Z
|
2022-03-26T16:20:24.000Z
|
# Created by MechAviv
# [Kyrin] | [1090000]
# Nautilus : Navigation Room
sm.setSpeakerID(1090000)
sm.sendSayOkay("Welcome aboard the Nautilus. The ship isn't headed anywhere for a while. How about going out to the deck?")
| 37.333333
| 123
| 0.75
| 33
| 224
| 5.090909
| 0.848485
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 0.15625
| 224
| 6
| 123
| 37.333333
| 0.814815
| 0.303571
| 0
| 0
| 0
| 0.5
| 0.686275
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
272f1760928ef1aa00b7c52efbedd4d21989b999
| 348
|
py
|
Python
|
tests_adapters/test_common.py
|
rahuln/adapter-transformers
|
ac3284547064686d31b95e5e1b078447a2199779
|
[
"Apache-2.0"
] | null | null | null |
tests_adapters/test_common.py
|
rahuln/adapter-transformers
|
ac3284547064686d31b95e5e1b078447a2199779
|
[
"Apache-2.0"
] | null | null | null |
tests_adapters/test_common.py
|
rahuln/adapter-transformers
|
ac3284547064686d31b95e5e1b078447a2199779
|
[
"Apache-2.0"
] | null | null | null |
from transformers.testing_utils import require_torch
@require_torch
class AdapterModelTesterMixin:
def test_training(self):
self.skipTest("Not applicable.")
def test_training_gradient_checkpointing(self):
self.skipTest("Not applicable.")
def test_correct_missing_keys(self):
self.skipTest("Not applicable.")
| 24.857143
| 52
| 0.744253
| 39
| 348
| 6.384615
| 0.538462
| 0.084337
| 0.192771
| 0.228916
| 0.405622
| 0.289157
| 0.289157
| 0
| 0
| 0
| 0
| 0
| 0.16954
| 348
| 13
| 53
| 26.769231
| 0.861592
| 0
| 0
| 0.333333
| 0
| 0
| 0.12931
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
2746ca0964d6ca77c96241e13b9e859387b49c64
| 53
|
py
|
Python
|
test3.py
|
jcarter62/settings_jc
|
edbeb848f10632471dfe48b0e0a772be47eaf83b
|
[
"MIT"
] | null | null | null |
test3.py
|
jcarter62/settings_jc
|
edbeb848f10632471dfe48b0e0a772be47eaf83b
|
[
"MIT"
] | null | null | null |
test3.py
|
jcarter62/settings_jc
|
edbeb848f10632471dfe48b0e0a772be47eaf83b
|
[
"MIT"
] | null | null | null |
from settings_jc import MyEnv
e = MyEnv()
e.exec()
| 8.833333
| 29
| 0.698113
| 9
| 53
| 4
| 0.777778
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188679
| 53
| 5
| 30
| 10.6
| 0.837209
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
276026511ba37a380d44a6ea54fe055924cb753e
| 185
|
py
|
Python
|
fle_site/apps/main/templatetags/my_filters.py
|
khangmach/fle-home
|
42c376bc9aca5a440a09e78973ea1b48a0827e3c
|
[
"MIT"
] | null | null | null |
fle_site/apps/main/templatetags/my_filters.py
|
khangmach/fle-home
|
42c376bc9aca5a440a09e78973ea1b48a0827e3c
|
[
"MIT"
] | null | null | null |
fle_site/apps/main/templatetags/my_filters.py
|
khangmach/fle-home
|
42c376bc9aca5a440a09e78973ea1b48a0827e3c
|
[
"MIT"
] | null | null | null |
from django.template import Library
register = Library()
@register.assignment_tag
def get_twitter_bootstrap_alert_msg_css_name(tags):
return 'danger' if tags == 'error' else tags
| 23.125
| 51
| 0.789189
| 26
| 185
| 5.346154
| 0.846154
| 0.215827
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12973
| 185
| 7
| 52
| 26.428571
| 0.863354
| 0
| 0
| 0
| 0
| 0
| 0.059459
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
2787130fd4499883b82e57f0d3bb2f4d0e3c88dc
| 114
|
py
|
Python
|
unif/unif_plots.py
|
franpena-kth/learning-deep-learning
|
9cd287b602dee1358672c4189445721a9c24f107
|
[
"MIT"
] | null | null | null |
unif/unif_plots.py
|
franpena-kth/learning-deep-learning
|
9cd287b602dee1358672c4189445721a9c24f107
|
[
"MIT"
] | null | null | null |
unif/unif_plots.py
|
franpena-kth/learning-deep-learning
|
9cd287b602dee1358672c4189445721a9c24f107
|
[
"MIT"
] | null | null | null |
import matplotlib.pyplot as plt
def plot(all_losses):
plt.figure()
plt.plot(all_losses)
plt.show()
| 12.666667
| 31
| 0.675439
| 17
| 114
| 4.411765
| 0.647059
| 0.186667
| 0.346667
| 0.426667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 114
| 8
| 32
| 14.25
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
279e6da751a31ed324810374bbf5d44ec6de17df
| 195
|
py
|
Python
|
backend/loader/model/dataset.py
|
prisms-center/materialscommons.org
|
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
|
[
"MIT"
] | 6
|
2015-09-25T20:07:30.000Z
|
2021-03-07T02:41:35.000Z
|
backend/loader/model/dataset.py
|
materials-commons/materialscommons.org
|
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
|
[
"MIT"
] | 770
|
2015-03-04T17:13:31.000Z
|
2019-05-03T13:55:57.000Z
|
backend/loader/model/dataset.py
|
prisms-center/materialscommons.org
|
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
|
[
"MIT"
] | 3
|
2016-06-23T19:36:20.000Z
|
2020-09-06T12:26:00.000Z
|
from dataitem import DataItem
class DataSet(DataItem):
def __init__(self, name, access, owner):
super(DataSet, self).__init__(name, access, owner, "dataset")
self.items = []
| 27.857143
| 69
| 0.671795
| 23
| 195
| 5.347826
| 0.565217
| 0.162602
| 0.243902
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205128
| 195
| 6
| 70
| 32.5
| 0.793548
| 0
| 0
| 0
| 0
| 0
| 0.035897
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
27a705bbb3b0521cc0992cecf20f1c185185908b
| 610
|
py
|
Python
|
dark_keeper/exceptions.py
|
itcrab/dark-keeper
|
7a263b210ec01f712c9173f65871193ac2190c31
|
[
"MIT"
] | 2
|
2016-10-21T06:57:26.000Z
|
2016-10-22T20:44:25.000Z
|
dark_keeper/exceptions.py
|
itcrab/dark_keeper
|
7a263b210ec01f712c9173f65871193ac2190c31
|
[
"MIT"
] | 8
|
2017-12-01T05:31:55.000Z
|
2021-03-20T13:04:05.000Z
|
dark_keeper/exceptions.py
|
itcrab/dark_keeper
|
7a263b210ec01f712c9173f65871193ac2190c31
|
[
"MIT"
] | 1
|
2021-05-07T16:37:57.000Z
|
2021-05-07T16:37:57.000Z
|
class DarkKeeperError(Exception):
pass
class DarkKeeperCacheError(DarkKeeperError):
pass
class DarkKeeperCacheReadError(DarkKeeperCacheError):
pass
class DarkKeeperCacheWriteError(DarkKeeperCacheError):
pass
class DarkKeeperParseError(DarkKeeperError):
pass
class DarkKeeperParseContentError(DarkKeeperParseError):
pass
class DarkKeeperRequestError(DarkKeeperError):
pass
class DarkKeeperRequestResponseError(DarkKeeperRequestError):
pass
class DarkKeeperMongoError(DarkKeeperError):
pass
class DarkKeeperParseUriMongoError(DarkKeeperMongoError):
pass
| 15.641026
| 61
| 0.806557
| 40
| 610
| 12.3
| 0.325
| 0.164634
| 0.195122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144262
| 610
| 38
| 62
| 16.052632
| 0.942529
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 0
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
7e01077b8161dd87fbeb67e8b1f2b7d4d4bc07b0
| 48
|
py
|
Python
|
utils/__init__.py
|
marcosricardoss/django-virtualenv-boilerplate
|
c8b1aad93ced82fac6a4727c2ca2dce8ae0f89ef
|
[
"MIT"
] | 1
|
2020-03-16T03:06:17.000Z
|
2020-03-16T03:06:17.000Z
|
utils/__init__.py
|
marcosricardoss/django-virtualenv-boilerplate
|
c8b1aad93ced82fac6a4727c2ca2dce8ae0f89ef
|
[
"MIT"
] | null | null | null |
utils/__init__.py
|
marcosricardoss/django-virtualenv-boilerplate
|
c8b1aad93ced82fac6a4727c2ca2dce8ae0f89ef
|
[
"MIT"
] | null | null | null |
default_app_config = "utils.apps.UtilsAppConfig"
| 48
| 48
| 0.854167
| 6
| 48
| 6.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041667
| 48
| 1
| 48
| 48
| 0.847826
| 0
| 0
| 0
| 0
| 0
| 0.510204
| 0.510204
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7e02bdcec4ce745b1f7add80557ee7bb8350965b
| 356
|
py
|
Python
|
src/marketdata/_commands/__init__.py
|
hyperwave-research/hyperwave
|
561d2225666f2190213184e464e8e9376c241b43
|
[
"MIT"
] | null | null | null |
src/marketdata/_commands/__init__.py
|
hyperwave-research/hyperwave
|
561d2225666f2190213184e464e8e9376c241b43
|
[
"MIT"
] | null | null | null |
src/marketdata/_commands/__init__.py
|
hyperwave-research/hyperwave
|
561d2225666f2190213184e464e8e9376c241b43
|
[
"MIT"
] | null | null | null |
from .download import set_command as download_set_command
from .download_index import set_command as download_index_command
from .split_assets import set_command as split_asset_command
from .resample import set_command as resample_command
commands = [
download_set_command,
download_index_command,
split_asset_command,
resample_command,
]
| 29.666667
| 65
| 0.831461
| 49
| 356
| 5.632653
| 0.244898
| 0.217391
| 0.231884
| 0.26087
| 0.188406
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.13764
| 356
| 11
| 66
| 32.363636
| 0.899023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 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
| 1
| 0
| 0
| 0
|
0
| 4
|
fd6ca14ffc4223e5370406718a923b8b8147c6aa
| 148
|
py
|
Python
|
scripts/examples/custom_type_args.py
|
Laufire/ec
|
63e84a1daef9234487d7de538e5da233a7d13071
|
[
"BSD-3-Clause"
] | 2
|
2017-08-26T12:21:14.000Z
|
2017-08-28T10:55:04.000Z
|
scripts/examples/custom_type_args.py
|
Laufire/ec
|
63e84a1daef9234487d7de538e5da233a7d13071
|
[
"BSD-3-Clause"
] | null | null | null |
scripts/examples/custom_type_args.py
|
Laufire/ec
|
63e84a1daef9234487d7de538e5da233a7d13071
|
[
"BSD-3-Clause"
] | null | null | null |
from ec.ec import task, arg
from ec.types.regex import email
@task
@arg('email_id', type=email, desc='email')
def add(email_id):
print email_id
| 16.444444
| 42
| 0.72973
| 27
| 148
| 3.888889
| 0.518519
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141892
| 148
| 8
| 43
| 18.5
| 0.826772
| 0
| 0
| 0
| 0
| 0
| 0.087838
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 0.166667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fdc3dff15f461809bdb1023978c05b509f423276
| 132
|
py
|
Python
|
countinggis/generators/rand_gen.py
|
Kodsport/nova-challenge-2018
|
e9d5e3d63a79c2191ca55f48438344d8b7719d90
|
[
"Apache-2.0"
] | 1
|
2019-09-13T13:38:16.000Z
|
2019-09-13T13:38:16.000Z
|
countinggis/generators/rand_gen.py
|
Kodsport/nova-challenge-2018
|
e9d5e3d63a79c2191ca55f48438344d8b7719d90
|
[
"Apache-2.0"
] | null | null | null |
countinggis/generators/rand_gen.py
|
Kodsport/nova-challenge-2018
|
e9d5e3d63a79c2191ca55f48438344d8b7719d90
|
[
"Apache-2.0"
] | null | null | null |
import random
w = sorted(set([random.choice(range(1, 100000)) for _ in range(10000)])) + [1000000]
print(1000000, len(w))
print(*w)
| 26.4
| 84
| 0.689394
| 21
| 132
| 4.285714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 0.113636
| 132
| 4
| 85
| 33
| 0.547009
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
a90644c52bad335ac360e743cf50accbc564a058
| 156
|
py
|
Python
|
strategy/__init__.py
|
goomhow/Leopards
|
2b636e0701af4d5bc8e965d63c1e2d00bffbbb8f
|
[
"MIT"
] | null | null | null |
strategy/__init__.py
|
goomhow/Leopards
|
2b636e0701af4d5bc8e965d63c1e2d00bffbbb8f
|
[
"MIT"
] | null | null | null |
strategy/__init__.py
|
goomhow/Leopards
|
2b636e0701af4d5bc8e965d63c1e2d00bffbbb8f
|
[
"MIT"
] | null | null | null |
__all__ = ['backtrace_ma250.py ','breakthrough_platform.py ','enter.py ','exit.py','keep_increasing.py ','low_atr.py','parking_apron.py','turtle_trade.py']
| 78
| 155
| 0.737179
| 23
| 156
| 4.565217
| 0.695652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020134
| 0.044872
| 156
| 1
| 156
| 156
| 0.684564
| 0
| 0
| 0
| 0
| 0
| 0.769231
| 0.153846
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e334b8becf281dadc3260b9a3d9ed9a928aff838
| 465
|
py
|
Python
|
test/functional/test_framework/__init__.py
|
ckti/ion-dash-pr
|
94e8aa4c7bc587318361e29c49f965e820be1f84
|
[
"MIT"
] | 59
|
2016-04-06T02:23:40.000Z
|
2021-10-03T16:36:23.000Z
|
test/functional/test_framework/__init__.py
|
ckti/ion-dash-pr
|
94e8aa4c7bc587318361e29c49f965e820be1f84
|
[
"MIT"
] | 107
|
2018-03-30T08:48:06.000Z
|
2021-08-09T12:38:09.000Z
|
test/functional/test_framework/__init__.py
|
ckti/ion-dash-pr
|
94e8aa4c7bc587318361e29c49f965e820be1f84
|
[
"MIT"
] | 70
|
2018-03-28T23:33:55.000Z
|
2021-11-20T11:10:03.000Z
|
# Copyright (c) 2018 The Bitcoin Unlimited developers
# Copyright (c) 2020 The Ion Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.ionlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_ANYONECANPAY, ScriptMachine, ScriptFlags, ScriptError, Error, ION
| 66.428571
| 227
| 0.810753
| 60
| 465
| 6.2
| 0.8
| 0.053763
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021792
| 0.111828
| 465
| 6
| 228
| 77.5
| 0.878935
| 0.488172
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e33806d06a95b1721133aaa03f2320dff57de50e
| 1,857
|
py
|
Python
|
backend/histocat/core/init_db.py
|
BodenmillerGroup/histocat-web
|
c598cd07506febf0b7c209626d4eb869761f2e62
|
[
"MIT"
] | 4
|
2021-06-14T15:19:25.000Z
|
2022-02-09T13:17:39.000Z
|
backend/histocat/core/init_db.py
|
BodenmillerGroup/histocat-web
|
c598cd07506febf0b7c209626d4eb869761f2e62
|
[
"MIT"
] | null | null | null |
backend/histocat/core/init_db.py
|
BodenmillerGroup/histocat-web
|
c598cd07506febf0b7c209626d4eb869761f2e62
|
[
"MIT"
] | 1
|
2022-02-09T13:17:41.000Z
|
2022-02-09T13:17:41.000Z
|
from histocat.config import config
from histocat.core.acquisition.models import AcquisitionModel # noqa
from histocat.core.base import Base # noqa
from histocat.core.dataset.models import DatasetModel # noqa
from histocat.core.gate.models import GateModel # noqa
from histocat.core.group.models import GroupModel # noqa
from histocat.core.member.models import MemberModel # noqa
from histocat.core.model.models import ModelModel # noqa
from histocat.core.panorama.models import PanoramaModel # noqa
from histocat.core.pipeline.models import PipelineModel # noqa
from histocat.core.preset.models import PresetModel # noqa
from histocat.core.project.models import ProjectModel # noqa
from histocat.core.result.models import ResultModel # noqa
from histocat.core.security import get_password_hash
from histocat.core.slide.models import SlideModel # noqa
from histocat.core.user import service
from histocat.core.user.dto import UserCreateDto
from histocat.core.user.models import UserModel # noqa
# make sure all SQL Alchemy models are imported (app.db.base) before initializing DB
# otherwise, SQL Alchemy might fail to initialize relationships properly
# for more details: https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/28
def init_db(db_session):
# Tables should be created with Alembic migrations
# But if you don't want to use migrations, create
# the tables un-commenting the next line
# Base.metadata.create_all(bind=engine)
user = service.get_by_email(db_session, email=config.FIRST_SUPERUSER)
if not user:
hashed_password = get_password_hash(config.FIRST_SUPERUSER_PASSWORD)
user_in = UserCreateDto(
email=config.FIRST_SUPERUSER,
password=hashed_password,
is_admin=True,
)
user = service.create(db_session, params=user_in)
| 46.425
| 87
| 0.77706
| 252
| 1,857
| 5.646825
| 0.43254
| 0.151792
| 0.191145
| 0.182713
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001275
| 0.155089
| 1,857
| 39
| 88
| 47.615385
| 0.905672
| 0.260097
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035714
| false
| 0.107143
| 0.642857
| 0
| 0.678571
| 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
| 1
| 1
| 0
| 0
| 0
|
0
| 4
|
e3600d672de08299309f7415ed5b2331bf5bafb5
| 591
|
py
|
Python
|
armisc/__init__.py
|
asifr/armisc
|
486220ba498353faeb94f70cd8ffe917109526d2
|
[
"MIT"
] | null | null | null |
armisc/__init__.py
|
asifr/armisc
|
486220ba498353faeb94f70cd8ffe917109526d2
|
[
"MIT"
] | null | null | null |
armisc/__init__.py
|
asifr/armisc
|
486220ba498353faeb94f70cd8ffe917109526d2
|
[
"MIT"
] | null | null | null |
from .utils import reload_module
# from . import utils
# from . import plot
# from .df import describe
# from .performance import performance
# from .binning import apply_binning, binning
# from .imputation import fit_multiple_imputation, impute, knnimputer
# from . import ts
# from .ewma import ewma
# from .windowed_view import windowed_view, segmentation
# from .pyspark import assert_pyspark, load_spark
# from .trainer import (
# to_floats,
# Trainer,
# count_parameters,
# adjust_learning_rate,
# warmup_learning_rate,
# TrainerOpts,
# )
# from . import models
| 29.55
| 69
| 0.744501
| 72
| 591
| 5.916667
| 0.5
| 0.093897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179357
| 591
| 20
| 70
| 29.55
| 0.878351
| 0.879865
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
e364e0fde620213465c1cdd694ae6690add6b25a
| 206
|
py
|
Python
|
thermos/wsgi.py
|
debu999/flaskmicroframework
|
af7f4c968df784979f284c0a2997fe66d0b128a3
|
[
"BSD-3-Clause"
] | null | null | null |
thermos/wsgi.py
|
debu999/flaskmicroframework
|
af7f4c968df784979f284c0a2997fe66d0b128a3
|
[
"BSD-3-Clause"
] | null | null | null |
thermos/wsgi.py
|
debu999/flaskmicroframework
|
af7f4c968df784979f284c0a2997fe66d0b128a3
|
[
"BSD-3-Clause"
] | null | null | null |
"""WSGI python file for more running flask app with gunicorn"""
import sys
from pprint import pprint as pp
from thermos.views import application
if __name__ == "__main__":
application.run(debug=True)
| 22.888889
| 63
| 0.762136
| 30
| 206
| 4.966667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160194
| 206
| 8
| 64
| 25.75
| 0.861272
| 0.276699
| 0
| 0
| 0
| 0
| 0.055944
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0.2
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
8b4dce0683c03acc0b125cac1b09ab08b6748122
| 213
|
py
|
Python
|
TXHousing/utilities/__init__.py
|
amspector100/TXHousing
|
5579ed6372c1ca78a72ba5e47a0f1f3146181bf8
|
[
"MIT"
] | 1
|
2020-04-20T04:30:58.000Z
|
2020-04-20T04:30:58.000Z
|
TXHousing/utilities/__init__.py
|
amspector100/TXHousing
|
5579ed6372c1ca78a72ba5e47a0f1f3146181bf8
|
[
"MIT"
] | null | null | null |
TXHousing/utilities/__init__.py
|
amspector100/TXHousing
|
5579ed6372c1ca78a72ba5e47a0f1f3146181bf8
|
[
"MIT"
] | null | null | null |
"""Sub-package containing (almost) all of the utility functions for the project"""
__all__ = ['simple', 'spatial_joins', 'measurements']
from . import simple
from . import spatial_joins
from . import measurements
| 35.5
| 82
| 0.760563
| 27
| 213
| 5.777778
| 0.62963
| 0.192308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131455
| 213
| 6
| 83
| 35.5
| 0.843243
| 0.356808
| 0
| 0
| 0
| 0
| 0.234848
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
8b8eed5adb1ace8a591f41f3e3130f05cb53cdc4
| 58
|
py
|
Python
|
app/models/chapter.py
|
immortel32/Sword_Sorcery_Story_Generator
|
7978dfc335813362b2d94c455b970f58421123c8
|
[
"MIT"
] | 2
|
2021-04-01T00:50:22.000Z
|
2021-04-01T02:18:45.000Z
|
app/models/chapter.py
|
immortel32/Sword_Sorcery_Story_Generator
|
7978dfc335813362b2d94c455b970f58421123c8
|
[
"MIT"
] | 1
|
2021-04-01T21:39:44.000Z
|
2021-04-01T21:39:44.000Z
|
app/models/chapter.py
|
immortel32/Sword_Sorcery_Story_Generator
|
7978dfc335813362b2d94c455b970f58421123c8
|
[
"MIT"
] | 1
|
2021-04-01T01:03:33.000Z
|
2021-04-01T01:03:33.000Z
|
class Chapter:
id: float
title: str
text: str
| 11.6
| 14
| 0.586207
| 8
| 58
| 4.25
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.344828
| 58
| 4
| 15
| 14.5
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
8bc2dcb2037758b45ada5d3a0e1417af0b9828bc
| 62
|
py
|
Python
|
lambda.py
|
r-souza/dio-python-intro
|
a3c39dab7eb629957baaae96d493b623b9b25a22
|
[
"MIT"
] | null | null | null |
lambda.py
|
r-souza/dio-python-intro
|
a3c39dab7eb629957baaae96d493b623b9b25a22
|
[
"MIT"
] | null | null | null |
lambda.py
|
r-souza/dio-python-intro
|
a3c39dab7eb629957baaae96d493b623b9b25a22
|
[
"MIT"
] | null | null | null |
# count_letters = lambda words: [len(word) for word in words]
| 31
| 61
| 0.725806
| 10
| 62
| 4.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 62
| 1
| 62
| 62
| 0.846154
| 0.951613
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8bc3a80e42f69a0b52e820f00ae22d9b268c7ca3
| 93
|
py
|
Python
|
django-backend/backend/apps/imagepack/apps.py
|
cleber-solutions/curso-online-crossbar
|
75913ccc92743c6ce35f56f9d82c41597526af24
|
[
"MIT"
] | null | null | null |
django-backend/backend/apps/imagepack/apps.py
|
cleber-solutions/curso-online-crossbar
|
75913ccc92743c6ce35f56f9d82c41597526af24
|
[
"MIT"
] | null | null | null |
django-backend/backend/apps/imagepack/apps.py
|
cleber-solutions/curso-online-crossbar
|
75913ccc92743c6ce35f56f9d82c41597526af24
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class ImagepackConfig(AppConfig):
name = 'imagepack'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
8bc7a293128621087b0106fe27a8c8d06426b023
| 199
|
py
|
Python
|
preprocessing/nltk_tokenizer.py
|
pri1311/PodMatcher
|
a9f614152e57f97885804d1762eac5f65025ed5c
|
[
"MIT"
] | 4
|
2022-02-05T14:11:57.000Z
|
2022-02-06T09:54:42.000Z
|
preprocessing/nltk_tokenizer.py
|
pri1311/PodMatcher
|
a9f614152e57f97885804d1762eac5f65025ed5c
|
[
"MIT"
] | null | null | null |
preprocessing/nltk_tokenizer.py
|
pri1311/PodMatcher
|
a9f614152e57f97885804d1762eac5f65025ed5c
|
[
"MIT"
] | 2
|
2022-02-05T15:22:09.000Z
|
2022-02-06T22:14:08.000Z
|
import nltk
def tokenize_document(text_file):
tokens = nltk.word_tokenize(text_file)
return tokens
def tag_tokens(tokens):
tagged_tokens = nltk.pos_tag(tokens)
return tagged_tokens
| 19.9
| 42
| 0.758794
| 28
| 199
| 5.107143
| 0.464286
| 0.111888
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170854
| 199
| 9
| 43
| 22.111111
| 0.866667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0
| 0.714286
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
8be581766ace5b22e382f72fbed2073b2d82ce34
| 133
|
py
|
Python
|
study_sample/enchance_oop/use_type/hello.py
|
dantefung/Python-Codebase
|
7e154100a1016ad79ec5d6adc7c11f096ec1966b
|
[
"MIT"
] | null | null | null |
study_sample/enchance_oop/use_type/hello.py
|
dantefung/Python-Codebase
|
7e154100a1016ad79ec5d6adc7c11f096ec1966b
|
[
"MIT"
] | 5
|
2021-04-30T21:18:36.000Z
|
2022-03-12T00:55:18.000Z
|
study_sample/enchance_oop/use_type/hello.py
|
dantefung/Python-Codebase
|
7e154100a1016ad79ec5d6adc7c11f096ec1966b
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
# -*- coding: UTF-8 -*-
class Hello(object):
def hello(self, name='world'):
print('Hello, %s.' % name)
| 22.166667
| 34
| 0.556391
| 18
| 133
| 4.111111
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009434
| 0.203008
| 133
| 6
| 35
| 22.166667
| 0.688679
| 0.285714
| 0
| 0
| 0
| 0
| 0.159574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
474a463cf9fac7e8486305577cc4bebd440a33a9
| 1,641
|
py
|
Python
|
utils/db_mysql.py
|
pengzhuo/sdt_server
|
711ea082d0bb543b551d806df35379e1aea0e34d
|
[
"MIT"
] | null | null | null |
utils/db_mysql.py
|
pengzhuo/sdt_server
|
711ea082d0bb543b551d806df35379e1aea0e34d
|
[
"MIT"
] | null | null | null |
utils/db_mysql.py
|
pengzhuo/sdt_server
|
711ea082d0bb543b551d806df35379e1aea0e34d
|
[
"MIT"
] | null | null | null |
# coding: utf-8
# Author: pengz
# Email: pch987.net@163.com
# import MySQLdb
# from DBUtils.PooledDB import PooledDB
from utils.singleton import Singleton
from utils.log import log
from config import *
#数据库操作
class Db_Mysql():
__metaclass__ = Singleton
#数据库对象
pool = None
conn = None
cur = None
def __init__(self):
# self.pool = PooledDB(
# MySQLdb,
# DB_MINCONNUM,
# host=DB_HOST,
# port=DB_PORT,
# user=DB_USER,
# passwd=DB_PASSWD,
# db=DB_NAME,
# )
pass
def query(self, sql):
# res = None
# try:
# self.conn = self.pool.connection()
# self.cur = self.conn.cursor()
# self.cur.execute(sql)
# res = self.cur.fetchall()
# self.cur.close()
# self.conn.close()
# except:
# import traceback
# log().error(traceback.print_exc())
# finally:
# return res
return None
def execSql(self, sql):
# res = None
# try:
# self.conn = self.pool.connection()
# self.cur = self.conn.cursor()
# res = self.cur.execute(sql)
# self.conn.commit()
# self.cur.close()
# self.conn.close()
# except:
# import traceback
# log().error(traceback.print_exc())
# finally:
# return res
return True
def close(self):
# if self.pool is not None:
# self.pool.close()
# self.pool = None
pass
| 24.132353
| 48
| 0.491773
| 172
| 1,641
| 4.593023
| 0.354651
| 0.070886
| 0.025316
| 0.035443
| 0.397468
| 0.397468
| 0.397468
| 0.397468
| 0.397468
| 0.397468
| 0
| 0.007071
| 0.396709
| 1,641
| 68
| 49
| 24.132353
| 0.790909
| 0.542962
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.125
| 0.1875
| 0.125
| 0.875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
47845bd9f484125cfdeec50a82ac70c142919c14
| 234
|
py
|
Python
|
leetcode/lc0090/Main.py
|
philippzhang/leetcodeLearnPython
|
0e341efbbdeb1fafb960dcfe1d804c52c3fa195e
|
[
"Apache-2.0"
] | 2
|
2019-06-20T08:14:17.000Z
|
2021-02-07T03:05:38.000Z
|
leetcode/lc0559/Main.py
|
philippzhang/leetcodeLearnPython
|
0e341efbbdeb1fafb960dcfe1d804c52c3fa195e
|
[
"Apache-2.0"
] | null | null | null |
leetcode/lc0559/Main.py
|
philippzhang/leetcodeLearnPython
|
0e341efbbdeb1fafb960dcfe1d804c52c3fa195e
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
from leetcode.base.CallBack import CallBack
from leetcode.base.Utilitys import test
import os
class Main(CallBack):
def __init__(self):
pass
if __name__ == "__main__":
test(Main(), os.getcwd())
| 15.6
| 43
| 0.696581
| 31
| 234
| 4.870968
| 0.645161
| 0.15894
| 0.211921
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005236
| 0.183761
| 234
| 14
| 44
| 16.714286
| 0.78534
| 0.07265
| 0
| 0
| 0
| 0
| 0.037037
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0.125
| 0.375
| 0
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
4797e425b9b0b187590865d7d758cd040827a82c
| 87
|
py
|
Python
|
fantasy_sports/apps/tennis/apps.py
|
rbennett91/fantasy_sports
|
f5b80f1009610a37d775943df0a46ac3864e6a82
|
[
"MIT"
] | 4
|
2020-01-16T08:22:33.000Z
|
2021-12-30T09:20:39.000Z
|
fantasy_sports/apps/tennis/apps.py
|
rbennett91/fantasy_sports
|
f5b80f1009610a37d775943df0a46ac3864e6a82
|
[
"MIT"
] | null | null | null |
fantasy_sports/apps/tennis/apps.py
|
rbennett91/fantasy_sports
|
f5b80f1009610a37d775943df0a46ac3864e6a82
|
[
"MIT"
] | 2
|
2018-03-24T15:52:27.000Z
|
2019-07-15T06:20:19.000Z
|
from django.apps import AppConfig
class TennisConfig(AppConfig):
name = 'tennis'
| 14.5
| 33
| 0.747126
| 10
| 87
| 6.5
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 87
| 5
| 34
| 17.4
| 0.902778
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
47ca0353df17dcf3d3ead5417d7e8cd352831d88
| 150
|
py
|
Python
|
__main__.py
|
jongwony/console-calendar
|
aa07c9887891f47d7a68abc877142ad7e98e27fb
|
[
"MIT"
] | null | null | null |
__main__.py
|
jongwony/console-calendar
|
aa07c9887891f47d7a68abc877142ad7e98e27fb
|
[
"MIT"
] | null | null | null |
__main__.py
|
jongwony/console-calendar
|
aa07c9887891f47d7a68abc877142ad7e98e27fb
|
[
"MIT"
] | null | null | null |
import sys
from . import main
if __name__ == '__main__':
try:
sys.exit(main())
except (KeyboardInterrupt, SystemExit):
pass
| 15
| 43
| 0.613333
| 16
| 150
| 5.25
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.28
| 150
| 9
| 44
| 16.666667
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0.053333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.142857
| 0.285714
| 0
| 0.285714
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
47e4d9cc54fba3a6da6d5db2ae5574b7318790a1
| 1,138
|
py
|
Python
|
dfimagetools/helpers.py
|
joachimmetz/imagetools
|
8d7f4ffbefe907f6aba73c546e0fe3bae4570d0e
|
[
"Apache-2.0"
] | 4
|
2022-02-02T09:37:03.000Z
|
2022-03-13T03:33:05.000Z
|
dfimagetools/helpers.py
|
joachimmetz/imagetools
|
8d7f4ffbefe907f6aba73c546e0fe3bae4570d0e
|
[
"Apache-2.0"
] | 15
|
2021-12-26T07:59:52.000Z
|
2022-03-19T14:12:08.000Z
|
dfimagetools/helpers.py
|
joachimmetz/imagetools
|
8d7f4ffbefe907f6aba73c546e0fe3bae4570d0e
|
[
"Apache-2.0"
] | 1
|
2021-10-31T13:10:26.000Z
|
2021-10-31T13:10:26.000Z
|
# -*- coding: utf-8 -*-
"""Helper functions for CLI tools."""
from dfvfs.lib import definitions as dfvfs_definitions
def SetDFVFSBackEnd(back_end):
"""Sets the dfVFS back-end.
Args:
back_end (str): dfVFS back-end.
"""
if back_end == 'EXT':
dfvfs_definitions.PREFERRED_EXT_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_EXT)
elif back_end == 'GPT':
dfvfs_definitions.PREFERRED_GPT_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_GPT)
elif back_end == 'HFS':
dfvfs_definitions.PREFERRED_HFS_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_HFS)
elif back_end == 'NTFS':
dfvfs_definitions.PREFERRED_NTFS_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_NTFS)
elif back_end == 'TSK':
dfvfs_definitions.PREFERRED_EXT_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_TSK)
dfvfs_definitions.PREFERRED_GPT_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_TSK_PARTITION)
dfvfs_definitions.PREFERRED_HFS_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_TSK)
dfvfs_definitions.PREFERRED_NTFS_BACK_END = (
dfvfs_definitions.TYPE_INDICATOR_TSK)
| 29.947368
| 55
| 0.733743
| 141
| 1,138
| 5.460993
| 0.234043
| 0.353247
| 0.25974
| 0.238961
| 0.683117
| 0.683117
| 0.683117
| 0.675325
| 0.675325
| 0.675325
| 0
| 0.001071
| 0.179262
| 1,138
| 37
| 56
| 30.756757
| 0.82334
| 0.105448
| 0
| 0.478261
| 0
| 0
| 0.016
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043478
| false
| 0
| 0.043478
| 0
| 0.086957
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
47e4f762b502a1338372a1b9aa9842a158f93657
| 8,091
|
py
|
Python
|
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/api/proxy.py
|
foruy/openflow-multiopenstack
|
74140b041ac25ed83898ff3998e8dcbed35572bb
|
[
"Apache-2.0"
] | 1
|
2019-09-11T11:56:19.000Z
|
2019-09-11T11:56:19.000Z
|
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/api/proxy.py
|
foruy/openflow-multiopenstack
|
74140b041ac25ed83898ff3998e8dcbed35572bb
|
[
"Apache-2.0"
] | null | null | null |
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/api/proxy.py
|
foruy/openflow-multiopenstack
|
74140b041ac25ed83898ff3998e8dcbed35572bb
|
[
"Apache-2.0"
] | null | null | null |
from django.conf import settings
from proxyclient.v1 import client as proxy_client
from openstack_dashboard.api import base
def proxyclient(request):
management_url = getattr(settings, 'MANAGEMENT_URL')
conn = proxy_client.Client(http_log_debug=True)
conn.set_management_url(management_url)
return conn
def _proxy(request):
return proxyclient(request).proxy
def availability_zone_list(request, detail=False):
user_id = request.user.id if not detail else None
return _proxy(request).availability_zone_list(user_id=user_id)
def availability_zone_get(request, id):
return _proxy(request).availability_zone_get(id)
def authenticate(request, username, password, **kwargs):
return _proxy(request).authenticate(username, password, **kwargs)
def authenticate_by_zone(request, zone_id):
return _proxy(request).authenticate_by_zone(request.user.id, zone_id)
def logout(request):
_proxy(request).logout(request.user.id)
def flavor_list(request, zone_id): #cg
return _proxy(request).flavor_list(zone_id)
def image_list_detailed(request, zone_id, filters=None): #cg
images = _proxy(request).image_list_detailed(zone_id, filters=filters)
return images, False
def project_absolute_limits(request, zone_id):
return _proxy(request).project_absolute_limits(request.user.id, zone_id)
def user_absolute_limits(request):
return _proxy(request).user_absolute_limits(request.user.id)
def server_get(request, instance_id):
return _proxy(request).server_get(instance_id)
def server_list(request, all_tenants=False):
return _proxy(request).server_list(request.user.id, all_tenants=all_tenants)
def server_delete(request, instance_id):
_proxy(request).server_delete(request.user.id, instance_id)
def server_start(request, instance_id):
_proxy(request).server_start(instance_id)
def server_stop(request, instance_id):
_proxy(request).server_stop(instance_id)
def server_create(request, name, image, flavor, zone_id=None,
key_name=None, user_data=None, security_groups=None,
block_device_mapping=None, block_device_mapping_v2=None, nics=None,
availability_zone=None, instance_count=1, admin_pass=None,
disk_config=None, accessIPv4=None, gateway=None, net_type=None): #cg
return _proxy(request).server_create(
request.user.id, name, image, flavor, zone_id=zone_id,
user_data=user_data, security_groups=security_groups,
key_name=key_name, block_device_mapping=block_device_mapping,
block_device_mapping_v2=block_device_mapping_v2,
nics=nics, availability_zone=availability_zone,
instance_count=instance_count, admin_pass=admin_pass,
disk_config=disk_config, accessIPv4=accessIPv4,
gateway=gateway, net_type=net_type)
def firewall_get(request, instance_id):
return _proxy(request).firewall_get(instance_id)
def firewall_delete(request, firewall_id):
_proxy(request).firewall_delete(firewall_id)
def firewall_create(request, instance_id, hostname, gateway_port, service_port):
return _proxy(request).firewall_create(
instance_id=instance_id, hostname=hostname,
gateway_port=gateway_port, service_port=service_port)
def firewall_exist(request, instance_id, hostname=None, gateway_port=None):
return _proxy(request).firewall_exist(
instance_id, hostname=hostname, gateway_port=gateway_port)
def gateway_list(request):
return _proxy(request).gateway_list()
def gateway_get(request, id):
return _proxy(request).gateway_get(id)
def gateway_get_by_instance(request, instance_id):
return _proxy(request).gateway_get_instance(instance_id)
def gateway_update(request, id, **kwargs):
return _proxy(request).gateway_update(id, **kwargs)
def security_group_list(request):
return _proxy(request).security_group_list(request.user.id)
def security_group_update(request, **kwargs):
_proxy(request).security_group_update(request.user.id, **kwargs)
# User
def user_list(request):
return _proxy(request).user_list(request.user.id)
def user_get(request, user_id):
return _proxy(request).user_get(user_id)
def register(request, **values):
return _proxy(request).register(**values)
def checkdata(request, key, val):
return _proxy(request).check_data(key, val)
def user_login_list(request):
return _proxy(request).user_login_list(request.user.id)
def user_login_get(request, user_id=None):
user_id = user_id or request.user.id
return _proxy(request).user_login_get(user_id)
def server_network(request, address=None):
return _proxy(request).server_network(request.user.id, address=address)
def image_get(request, zone):
return _proxy(request).image_get(zone)
def image_delete(request, image_id):
return _proxy(request).image_delete(image_id)
def image_rebuild(request, zone):
return _proxy(request).image_rebuild(request.user.id, zone)
def zone_create(request, id=None, name=None, auth_url=None,
token=None, default_instances=None):
#return _proxy(request).zone_create(request.user.id, id=id, name=name,
return _proxy(request).zone_create(request.user.id, name=name,
auth_url=auth_url, token=token,
default_instances=default_instances)
def zone_delete(request, zone_id):
_proxy(request).zone_delete(zone_id)
def flavor_get_by_zone(request, zone_id):
return _proxy(request).flavor_get_by_zone(zone_id)
def flavor_delete(request, zone_id):
_proxy(request).flavor_delete(zone_id)
def flavor_rebuild(request, zone):
return _proxy(request).flavor_rebuild(request.user.id, zone)
def gateway_get_by_zone(request, zone_id):
return _proxy(request).gateway_get_by_zone(zone_id)
def gateway_delete(request, zone_id):
_proxy(request).gateway_delete(zone_id)
def gateway_rebuild(request, zone):
return _proxy(request).gateway_rebuild(request.user.id, zone)
# Deprecated
def get_last_network_type(request):
return _proxy(request).get_last_network_type(request.user.id)
def network_list(request):
return _proxy(request).network_list()
def network_get_by_zone(request, zone_id):
return _proxy(request).network_get_by_zone(zone_id)
def network_rebuild(request, zone):
return _proxy(request).network_rebuild(request.user.id, zone)
def network_delete(request, network_id):
_proxy(request).network_delete(network_id)
def network_type_list(request):
return _proxy(request).network_type_list()
def network_type_delete(request, id):
_proxy(request).network_type_delete(id)
def resource_list(request, user_id=None):
return _proxy(request).resource_list(user_id or request.user.id)
def resource_get(request, user_id=None, source_name=None, source_id=None):
filters = {'source_id': source_id, 'source_name': source_name}
return _proxy(request).resource_get(user_id or request.user.id,
filters=filters)
def user_get_by_time(request, start_time=None, end_time=None):
return _proxy(request).user_get_by_time(
request.user.id, start_time=start_time, end_time=end_time)
def validate_user(request, username=None, password=None, email=None):
return _proxy(request).validate_user(
username=username, password=password, email=email)
def update_user_key(request, username, email, url=None, key=None):
return _proxy(request).update_user_key(username, email, url=url, key=key)
def getpassword(request, id, username, email, key=None):
return _proxy(request).getpassword(id, username, email, key=key)
def resetpassword(request, id, username, email, key=None, password=None):
return _proxy(request).resetpassword(
id, username, email, key=key, password=password)
def user_delete(request, user_id):
return _proxy(request).user_delete(request.user.id, user_id)
def get_monitor(request, instance):
return _proxy(request).get_monitor(instance)
def device_get(request, gateway_id):
return _proxy(request).device_get(gateway_id)
| 36.120536
| 86
| 0.758374
| 1,127
| 8,091
| 5.122449
| 0.100266
| 0.128876
| 0.15278
| 0.051966
| 0.38195
| 0.273168
| 0.089382
| 0.058029
| 0.020786
| 0
| 0
| 0.001148
| 0.138673
| 8,091
| 223
| 87
| 36.282511
| 0.827235
| 0.011247
| 0
| 0
| 0
| 0
| 0.004253
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.397436
| false
| 0.070513
| 0.019231
| 0.294872
| 0.74359
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
47f675a53b5a7b3ac36ae319d928eae8eef17663
| 763
|
py
|
Python
|
py2asm/functions/base.py
|
malikshahzad228/py2asm
|
de80070a0a166bc752657040af928da0f3f8be5b
|
[
"MIT"
] | null | null | null |
py2asm/functions/base.py
|
malikshahzad228/py2asm
|
de80070a0a166bc752657040af928da0f3f8be5b
|
[
"MIT"
] | 1
|
2020-09-05T17:11:09.000Z
|
2020-09-06T11:24:05.000Z
|
py2asm/functions/base.py
|
malikshahzad228/py2asm
|
de80070a0a166bc752657040af928da0f3f8be5b
|
[
"MIT"
] | 2
|
2020-09-02T08:05:20.000Z
|
2021-05-26T05:27:56.000Z
|
from py2asm.blocks.block import LeafBlock
class InstructionGroupMixin:
def render(self):
return '\n'.join(c.render() for c in self.get_instructions())
def get_instructions(self):
raise NotImplementedError()
class InstructionGroup(InstructionGroupMixin):
pass
class Function(InstructionGroupMixin, LeafBlock):
def render(self):
return super().render() + '\n'
class Raw(Function):
def __init__(self, *instructions, should_register=True):
self.instructions = instructions
super().__init__(should_register)
def get_instructions(self):
return self.instructions
def render(self):
return '\n'.join(c if type(c) == str else c.render() for c in self.get_instructions()) + '\n'
| 24.612903
| 101
| 0.684142
| 88
| 763
| 5.772727
| 0.386364
| 0.07874
| 0.076772
| 0.112205
| 0.222441
| 0.222441
| 0.222441
| 0.125984
| 0
| 0
| 0
| 0.001645
| 0.203145
| 763
| 30
| 102
| 25.433333
| 0.833882
| 0
| 0
| 0.263158
| 0
| 0
| 0.010485
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0.052632
| 0.052632
| 0.210526
| 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
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
9a15983e5450cb85a45857fd36eef68b12fc431a
| 22
|
py
|
Python
|
__init__.py
|
chris5593/vampitest
|
6564523185e452c1073d7abc9e5d4eaac36c9a71
|
[
"MIT"
] | 1
|
2019-09-05T07:01:07.000Z
|
2019-09-05T07:01:07.000Z
|
activate.txt
|
Jyeo-Archive/Eunyeoul-Bamboo
|
93d369e6e2387d2c56825e55aa8e78af77a7b2a6
|
[
"MIT"
] | null | null | null |
activate.txt
|
Jyeo-Archive/Eunyeoul-Bamboo
|
93d369e6e2387d2c56825e55aa8e78af77a7b2a6
|
[
"MIT"
] | null | null | null |
heroku ps:scale web=1
| 11
| 21
| 0.772727
| 5
| 22
| 3.4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 0.136364
| 22
| 1
| 22
| 22
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9a366f890eb72cd2437c471de6ff03412b04d4bd
| 18,059
|
py
|
Python
|
magnum/conductor/handlers/k8s_conductor.py
|
gyliu513/magnum
|
943eba8a7b03b11878399198091327d2e1b90fcb
|
[
"Apache-2.0"
] | null | null | null |
magnum/conductor/handlers/k8s_conductor.py
|
gyliu513/magnum
|
943eba8a7b03b11878399198091327d2e1b90fcb
|
[
"Apache-2.0"
] | null | null | null |
magnum/conductor/handlers/k8s_conductor.py
|
gyliu513/magnum
|
943eba8a7b03b11878399198091327d2e1b90fcb
|
[
"Apache-2.0"
] | 1
|
2020-09-09T14:35:08.000Z
|
2020-09-09T14:35:08.000Z
|
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from k8sclient.client import rest
from oslo_log import log as logging
from magnum.common import exception
from magnum.common import k8s_manifest
from magnum.common import utils
from magnum.conductor import k8s_api as k8s
from magnum.conductor import utils as conductor_utils
from magnum import objects
import ast
LOG = logging.getLogger(__name__)
class Handler(object):
"""Magnum Kubernetes RPC handler.
These are the backend operations. They are executed by the backend service.
API calls via AMQP (within the ReST API) trigger the handlers to be called.
"""
def __init__(self):
super(Handler, self).__init__()
def service_create(self, context, service):
LOG.debug("service_create")
bay = conductor_utils.retrieve_bay(context, service.bay_uuid)
self.k8s_api = k8s.create_k8s_api(context, bay)
manifest = k8s_manifest.parse(service.manifest)
try:
resp = self.k8s_api.create_namespaced_service(body=manifest,
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ServiceCreationFailed(bay_uuid=service.bay_uuid)
service['uuid'] = resp.metadata.uid
service['name'] = resp.metadata.name
service['labels'] = ast.literal_eval(resp.metadata.labels)
service['selector'] = ast.literal_eval(resp.spec.selector)
service['ip'] = resp.spec.cluster_ip
service_value = []
for p in resp.spec.ports:
ports = p.to_dict()
if not ports['name']:
ports['name'] = 'k8s-service'
service_value.append(ports)
service['ports'] = service_value
return service
def service_update(self, context, service_ident, bay_ident, manifest):
LOG.debug("service_update %s", service_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(service_ident):
service = objects.Service.get_by_uuid(context,
service_ident,
bay.uuid,
self.k8s_api)
else:
service = objects.Service.get_by_name(context,
service_ident,
bay.uuid,
self.k8s_api)
service_ident = service.name
try:
resp = self.k8s_api.replace_namespaced_service(
name=str(service_ident),
body=manifest,
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ServiceNotFound(service=service.uuid)
service['uuid'] = resp.metadata.uid
service['name'] = resp.metadata.name
service['project_id'] = context.project_id
service['user_id'] = context.user_id
service['bay_uuid'] = bay.uuid
service['labels'] = ast.literal_eval(resp.metadata.labels)
if not resp.spec.selector:
service['selector'] = {}
else:
service['selector'] = ast.literal_eval(resp.spec.selector)
service['ip'] = resp.spec.cluster_ip
service_value = []
for p in resp.spec.ports:
ports = p.to_dict()
if not ports['name']:
ports['name'] = 'k8s-service'
service_value.append(ports)
service['ports'] = service_value
return service
def service_delete(self, context, service_ident, bay_ident):
LOG.debug("service_delete %s", service_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(service_ident):
service = objects.Service.get_by_uuid(context, service_ident,
bay.uuid, self.k8s_api)
service_name = service.name
else:
service_name = service_ident
if conductor_utils.object_has_stack(context, bay.uuid):
try:
self.k8s_api.delete_namespaced_service(name=str(service_name),
namespace='default')
except rest.ApiException as err:
if err.status == 404:
pass
else:
raise exception.KubernetesAPIFailed(err=err)
def service_show(self, context, service_ident, bay_ident):
LOG.debug("service_show %s", service_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(service_ident):
service = objects.Service.get_by_uuid(context, service_ident,
bay.uuid, self.k8s_api)
else:
service = objects.Service.get_by_name(context, service_ident,
bay.uuid, self.k8s_api)
return service
def service_list(self, context, bay_ident):
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
try:
resp = self.k8s_api.list_namespaced_service(namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ServiceListNotFound(bay_uuid=bay.uuid)
services = []
for service_entry in resp.items:
service = {}
service['uuid'] = service_entry.metadata.uid
service['name'] = service_entry.metadata.name
service['project_id'] = context.project_id
service['user_id'] = context.user_id
service['bay_uuid'] = bay.uuid
service['labels'] = ast.literal_eval(
service_entry.metadata.labels)
if not service_entry.spec.selector:
service['selector'] = {}
else:
service['selector'] = ast.literal_eval(
service_entry.spec.selector)
service['ip'] = service_entry.spec.cluster_ip
service_value = []
for p in service_entry.spec.ports:
ports = p.to_dict()
if not ports['name']:
ports['name'] = 'k8s-service'
service_value.append(ports)
service['ports'] = service_value
service_obj = objects.Service(context, **service)
services.append(service_obj)
return services
# Pod Operations
def pod_create(self, context, pod):
LOG.debug("pod_create")
bay = conductor_utils.retrieve_bay(context, pod.bay_uuid)
self.k8s_api = k8s.create_k8s_api(context, bay)
manifest = k8s_manifest.parse(pod.manifest)
try:
resp = self.k8s_api.create_namespaced_pod(body=manifest,
namespace='default')
except rest.ApiException as err:
pod.status = 'failed'
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.PodCreationFailed(bay_uuid=pod.bay_uuid)
pod['uuid'] = resp.metadata.uid
pod['name'] = resp.metadata.name
pod['images'] = [c.image for c in resp.spec.containers]
pod['labels'] = ast.literal_eval(resp.metadata.labels)
pod['status'] = resp.status.phase
pod['host'] = resp.spec.node_name
return pod
def pod_update(self, context, pod_ident, bay_ident, manifest):
LOG.debug("pod_update %s", pod_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(pod_ident):
pod = objects.Pod.get_by_uuid(context, pod_ident,
bay.uuid, self.k8s_api)
else:
pod = objects.Pod.get_by_name(context, pod_ident,
bay.uuid, self.k8s_api)
pod_ident = pod.name
try:
resp = self.k8s_api.replace_namespaced_pod(name=str(pod_ident),
body=manifest,
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.PodNotFound(pod=pod.uuid)
pod['uuid'] = resp.metadata.uid
pod['name'] = resp.metadata.name
pod['project_id'] = context.project_id
pod['user_id'] = context.user_id
pod['bay_uuid'] = bay.uuid
pod['images'] = [c.image for c in resp.spec.containers]
if not resp.metadata.labels:
pod['labels'] = {}
else:
pod['labels'] = ast.literal_eval(resp.metadata.labels)
pod['status'] = resp.status.phase
pod['host'] = resp.spec.node_name
return pod
def pod_delete(self, context, pod_ident, bay_ident):
LOG.debug("pod_delete %s", pod_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(pod_ident):
pod = objects.Pod.get_by_uuid(context, pod_ident,
bay.uuid, self.k8s_api)
pod_name = pod.name
else:
pod_name = pod_ident
if conductor_utils.object_has_stack(context, bay.uuid):
try:
self.k8s_api.delete_namespaced_pod(name=str(pod_name), body={},
namespace='default')
except rest.ApiException as err:
if err.status == 404:
pass
else:
raise exception.KubernetesAPIFailed(err=err)
def pod_show(self, context, pod_ident, bay_ident):
LOG.debug("pod_show %s", pod_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(pod_ident):
pod = objects.Pod.get_by_uuid(context, pod_ident,
bay.uuid, self.k8s_api)
else:
pod = objects.Pod.get_by_name(context, pod_ident,
bay.uuid, self.k8s_api)
return pod
def pod_list(self, context, bay_ident):
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
try:
resp = self.k8s_api.list_namespaced_pod(namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.PodListNotFound(bay_uuid=bay.uuid)
pods = []
for pod_entry in resp.items:
pod = {}
pod['uuid'] = pod_entry.metadata.uid
pod['name'] = pod_entry.metadata.name
pod['project_id'] = context.project_id
pod['user_id'] = context.user_id
pod['bay_uuid'] = bay.uuid
pod['images'] = [c.image for c in pod_entry.spec.containers]
if not pod_entry.metadata.labels:
pod['labels'] = {}
else:
pod['labels'] = ast.literal_eval(pod_entry.metadata.labels)
pod['status'] = pod_entry.status.phase
pod['host'] = pod_entry.spec.node_name
pod_obj = objects.Pod(context, **pod)
pods.append(pod_obj)
return pods
# Replication Controller Operations
def rc_create(self, context, rc):
LOG.debug("rc_create")
bay = conductor_utils.retrieve_bay(context, rc.bay_uuid)
self.k8s_api = k8s.create_k8s_api(context, bay)
manifest = k8s_manifest.parse(rc.manifest)
try:
resp = self.k8s_api.create_namespaced_replication_controller(
body=manifest,
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ReplicationControllerCreationFailed(
bay_uuid=rc.bay_uuid)
rc['uuid'] = resp.metadata.uid
rc['name'] = resp.metadata.name
rc['images'] = [c.image for c in resp.spec.template.spec.containers]
rc['labels'] = ast.literal_eval(resp.metadata.labels)
rc['replicas'] = resp.status.replicas
return rc
def rc_update(self, context, rc_ident, bay_ident, manifest):
LOG.debug("rc_update %s", rc_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(rc_ident):
rc = objects.ReplicationController.get_by_uuid(context, rc_ident,
bay.uuid,
self.k8s_api)
else:
rc = objects.ReplicationController.get_by_name(context, rc_ident,
bay.uuid,
self.k8s_api)
try:
resp = self.k8s_api.replace_namespaced_replication_controller(
name=str(rc.name),
body=manifest,
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ReplicationControllerNotFound(rc=rc.uuid)
rc['uuid'] = resp.metadata.uid
rc['name'] = resp.metadata.name
rc['project_id'] = context.project_id
rc['user_id'] = context.user_id
rc['images'] = [c.image for c in resp.spec.template.spec.containers]
rc['bay_uuid'] = bay.uuid
rc['labels'] = ast.literal_eval(resp.metadata.labels)
rc['replicas'] = resp.status.replicas
return rc
def rc_delete(self, context, rc_ident, bay_ident):
LOG.debug("rc_delete %s", rc_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(rc_ident):
rc = objects.ReplicationController.get_by_uuid(context, rc_ident,
bay.uuid,
self.k8s_api)
rc_name = rc.name
else:
rc_name = rc_ident
if conductor_utils.object_has_stack(context, bay.uuid):
try:
self.k8s_api.delete_namespaced_replication_controller(
name=str(rc_name),
body={},
namespace='default')
except rest.ApiException as err:
if err.status == 404:
pass
else:
raise exception.KubernetesAPIFailed(err=err)
def rc_show(self, context, rc_ident, bay_ident):
LOG.debug("rc_show %s", rc_ident)
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
if utils.is_uuid_like(rc_ident):
rc = objects.ReplicationController.get_by_uuid(context, rc_ident,
bay.uuid,
self.k8s_api)
else:
rc = objects.ReplicationController.get_by_name(context, rc_ident,
bay.uuid,
self.k8s_api)
return rc
def rc_list(self, context, bay_ident):
bay = conductor_utils.retrieve_bay(context, bay_ident)
self.k8s_api = k8s.create_k8s_api(context, bay)
try:
resp = self.k8s_api.list_namespaced_replication_controller(
namespace='default')
except rest.ApiException as err:
raise exception.KubernetesAPIFailed(err=err)
if resp is None:
raise exception.ReplicationControllerListNotFound(
bay_uuid=bay.uuid)
rcs = []
for entry in resp._items:
rc = {}
rc['uuid'] = entry.metadata.uid
rc['name'] = entry.metadata.name
rc['project_id'] = context.project_id
rc['user_id'] = context.user_id
rc['images'] = [
c.image for c in entry.spec.template.spec.containers]
rc['bay_uuid'] = bay.uuid
# Convert string to dictionary
rc['labels'] = ast.literal_eval(entry.metadata.labels)
rc['replicas'] = entry.status.replicas
rc_obj = objects.ReplicationController(context, **rc)
rcs.append(rc_obj)
return rcs
| 40.400447
| 79
| 0.566477
| 2,030
| 18,059
| 4.837438
| 0.093103
| 0.035438
| 0.04277
| 0.025662
| 0.758961
| 0.740835
| 0.727393
| 0.710591
| 0.673931
| 0.636151
| 0
| 0.008006
| 0.342932
| 18,059
| 446
| 80
| 40.491031
| 0.819569
| 0.044908
| 0
| 0.653005
| 0
| 0
| 0.042928
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043716
| false
| 0.008197
| 0.02459
| 0
| 0.103825
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9a3817aad9ef134e608559dd1c7f95f820f61130
| 57
|
py
|
Python
|
website/meta/macros.py
|
sophieball/Cornell-Conversational-Analysis-Toolkit
|
da65358baffc34a518114be2d94f1748f8e01240
|
[
"MIT"
] | 371
|
2016-07-19T22:10:13.000Z
|
2022-03-28T08:04:32.000Z
|
website/meta/macros.py
|
sophieball/Cornell-Conversational-Analysis-Toolkit
|
da65358baffc34a518114be2d94f1748f8e01240
|
[
"MIT"
] | 92
|
2017-07-25T22:04:11.000Z
|
2022-03-29T13:46:07.000Z
|
website/meta/macros.py
|
sophieball/Cornell-Conversational-Analysis-Toolkit
|
da65358baffc34a518114be2d94f1748f8e01240
|
[
"MIT"
] | 105
|
2016-07-04T15:04:53.000Z
|
2022-03-30T01:36:38.000Z
|
# macro("example", lambda ctx: fetch(ctx, "site.title"))
| 28.5
| 56
| 0.666667
| 8
| 57
| 4.75
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 57
| 1
| 57
| 57
| 0.745098
| 0.947368
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9a5755920c5fd77d48da1c71dd927c040ab8eb07
| 143
|
py
|
Python
|
tests/sphinx-tree/sg-examples/simple_plot.py
|
anntzer/sphinx-exhibit
|
5bdb0c41ef5bde3aea72b48e5aebe292696c53c1
|
[
"MIT"
] | null | null | null |
tests/sphinx-tree/sg-examples/simple_plot.py
|
anntzer/sphinx-exhibit
|
5bdb0c41ef5bde3aea72b48e5aebe292696c53c1
|
[
"MIT"
] | null | null | null |
tests/sphinx-tree/sg-examples/simple_plot.py
|
anntzer/sphinx-exhibit
|
5bdb0c41ef5bde3aea72b48e5aebe292696c53c1
|
[
"MIT"
] | null | null | null |
"""
A title to keep sphinx-gallery happy
====================================
"""
from matplotlib import pyplot as plt
plt.plot()
plt.show()
| 14.3
| 36
| 0.524476
| 17
| 143
| 4.411765
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132867
| 143
| 9
| 37
| 15.888889
| 0.604839
| 0.51049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7bfc4edf7ddc4cc374588132addf803a69990e21
| 544
|
py
|
Python
|
code/simulations/__init__.py
|
neurorestore/neuraldynamicplatform
|
ac32df03a8892dafdf9765c6148b60ccdd34f1d6
|
[
"MIT"
] | 2
|
2020-12-27T03:46:03.000Z
|
2021-05-01T10:29:45.000Z
|
code/simulations/__init__.py
|
neurorestore/neuraldynamicplatform
|
ac32df03a8892dafdf9765c6148b60ccdd34f1d6
|
[
"MIT"
] | null | null | null |
code/simulations/__init__.py
|
neurorestore/neuraldynamicplatform
|
ac32df03a8892dafdf9765c6148b60ccdd34f1d6
|
[
"MIT"
] | null | null | null |
from Simulation import Simulation
from MyelinatedAfferentStimulation import MyelinatedAfferentStimulation
from CellsRecording import CellsRecording
from ForwardSimulation import ForwardSimulation
from ForSimMuscleSpindles import ForSimMuscleSpindles
from ForSimMuscleSpindlesCybex import ForSimMuscleSpindlesCybex
from ForSimSpinalModulation import ForSimSpinalModulation
from ForSimRORa import ForSimRORa
from ClosedLoop import ClosedLoop
from CollisionEesNatural import CollisionEesNatural
from IsoModulationCurves import IsoModulationCurves
| 45.333333
| 71
| 0.919118
| 44
| 544
| 11.363636
| 0.295455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080882
| 544
| 11
| 72
| 49.454545
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7bfcf3f4a9e4124ea77cbab461e8326d70c1e517
| 4,127
|
py
|
Python
|
ppydb/column.py
|
louisdevie/ppydb
|
39155835ffc847086bb37c6f1d30628f102e8ba2
|
[
"MIT"
] | null | null | null |
ppydb/column.py
|
louisdevie/ppydb
|
39155835ffc847086bb37c6f1d30628f102e8ba2
|
[
"MIT"
] | null | null | null |
ppydb/column.py
|
louisdevie/ppydb
|
39155835ffc847086bb37c6f1d30628f102e8ba2
|
[
"MIT"
] | 1
|
2021-12-09T21:36:38.000Z
|
2021-12-09T21:36:38.000Z
|
from . import _predicates
import enum
class Column:
def __init__(self, name, *constraints):
self._name = name
self._constraints = constraint
# Unary operators and functions
def __pos__(self):
pass # To get called for unary positive e.g. +someobject.
def __neg__(self):
pass # To get called for unary negative e.g. -someobject.
def __abs__(self):
pass # To get called by built-in abs() function.
def __invert__(self):
pass # To get called for inversion using the ~ operator.
def __round__(self, n):
pass # To get called by built-in round() function.
def __floor__(self):
pass # To get called by built-in math.floor() function.
def __ceil__(self):
pass # To get called by built-in math.ceil() function.
def __trunc__(self):
pass # To get called by built-in math.trunc() function.
# Type Conversion Magic Methods
def __int__(self):
pass # To get called by built-int int() method to convert a type to an int.
def __float__(self):
pass # To get called by built-int float() method to convert a type to float.
def __complex__(self):
pass # To get called by built-int complex() method to convert a type to complex.
def __oct__(self):
pass # To get called by built-int oct() method to convert a type to octal.
def __hex__(self):
pass # To get called by built-int hex() method to convert a type to hexadecimal.
def __index__(self):
pass # To get called on type conversion to an int when the object is used in a slice expression.
def __trunc__(self):
pass # To get called from math.trunc() method.
# String Magic Methods
def __str__(self):
pass # To get called by built-int str() method to return a string representation of a type.
def __repr__(self):
pass # To get called by built-int repr() method to return a machine readable representation of a type.
def __unicode__(self):
pass # To get called by built-int unicode() method to return an unicode string of a type.
def __format__(self, formatstr):
pass # To get called by built-int string.format() method to return a new style of string.
def __hash__(self):
pass # To get called by built-int hash() method to return an integer.
def __nonzero__(self):
pass # To get called by built-int bool() method to return True or False.
def __dir__(self):
pass # To get called by built-int dir() method to return a list of attributes of a class.
def __sizeof__(self):
pass # To get called by built-int sys.getsizeof() method to return the size of an object.
# Operator Magic Methods
def __add__(self, other):
pass # To get called on add operation using + operator
def __sub__(self, other):
pass # To get called on subtraction operation using - operator.
def __mul__(self, other):
pass # To get called on multiplication operation using * operator.
def __floordiv__(self, other):
pass # To get called on floor division operation using // operator.
def __truediv__(self, other):
pass # To get called on division operation using / operator.
def __mod__(self, other):
pass # To get called on modulo operation using % operator.
def __pow__(self, other):
pass # To get called on calculating the power using ** operator.
def __lt__(self, other):
pass # To get called on comparison using < operator.
def __le__(self, other):
pass # To get called on comparison using <= operator.
def __eq__(self, other):
pass # To get called on comparison using == operator.
def __ne__(self, other):
pass # To get called on comparison using != operator.
def __ge__(self, other):
pass # To get called on comparison using >= operator.
class Int(Column):
pass
class Str(Column):
def contains(self, item):
return _predicates.Contains(item, self)
class EnumCol(Column):
pass
| 31.503817
| 111
| 0.652532
| 587
| 4,127
| 4.335605
| 0.201022
| 0.082515
| 0.123772
| 0.206287
| 0.517092
| 0.464047
| 0.412181
| 0.286444
| 0.138703
| 0.100982
| 0
| 0
| 0.272837
| 4,127
| 130
| 112
| 31.746154
| 0.848051
| 0.542283
| 0
| 0.46988
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.445783
| false
| 0.445783
| 0.024096
| 0.012048
| 0.53012
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
d00c65a8c9c2e30b518a34c42f827197229151a5
| 11
|
py
|
Python
|
tests/ast/input/simple-assign.py
|
Nakrez/RePy
|
057db55a99eac2c5cb3d622fa1f2e29f6083d8d6
|
[
"MIT"
] | 1
|
2020-11-24T05:24:26.000Z
|
2020-11-24T05:24:26.000Z
|
tests/bind/good/simple-assign.py
|
Nakrez/RePy
|
057db55a99eac2c5cb3d622fa1f2e29f6083d8d6
|
[
"MIT"
] | null | null | null |
tests/bind/good/simple-assign.py
|
Nakrez/RePy
|
057db55a99eac2c5cb3d622fa1f2e29f6083d8d6
|
[
"MIT"
] | null | null | null |
test = 100
| 5.5
| 10
| 0.636364
| 2
| 11
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.375
| 0.272727
| 11
| 1
| 11
| 11
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d0238eecbf633a2d508c8238b23b593b8d51a6e4
| 325
|
py
|
Python
|
atlas/foundations_core_cli/src/test/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 296
|
2020-03-16T19:55:00.000Z
|
2022-01-10T19:46:05.000Z
|
atlas/foundations_core_cli/src/test/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 57
|
2020-03-17T11:15:57.000Z
|
2021-07-10T14:42:27.000Z
|
atlas/foundations_core_cli/src/test/__init__.py
|
DeepLearnI/atlas
|
8aca652d7e647b4e88530b93e265b536de7055ed
|
[
"Apache-2.0"
] | 38
|
2020-03-17T21:06:05.000Z
|
2022-02-08T03:19:34.000Z
|
import faker
from test.test_project import TestProject
from test.test_scaffold import TestScaffold
from test.test_command_line_interface import TestCommandLineInterface
from test.test_environment_fetcher import TestEnvironmentFetcher
from test.test_config_listing import TestConfigListing
from test.job_submission import *
| 32.5
| 69
| 0.892308
| 41
| 325
| 6.829268
| 0.487805
| 0.171429
| 0.214286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086154
| 325
| 10
| 70
| 32.5
| 0.942761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d0920e3e53eb282848091ca95f8d96076527448e
| 66
|
py
|
Python
|
2/2.3/personal_message.py
|
singi2016cn/python-scaffold
|
274e508d1919da67e599aa73be139800c043bce4
|
[
"MIT"
] | null | null | null |
2/2.3/personal_message.py
|
singi2016cn/python-scaffold
|
274e508d1919da67e599aa73be139800c043bce4
|
[
"MIT"
] | null | null | null |
2/2.3/personal_message.py
|
singi2016cn/python-scaffold
|
274e508d1919da67e599aa73be139800c043bce4
|
[
"MIT"
] | null | null | null |
# personal message
my_name = 'singi'
print('my name is '+my_name)
| 16.5
| 28
| 0.712121
| 11
| 66
| 4.090909
| 0.636364
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 66
| 3
| 29
| 22
| 0.803571
| 0.242424
| 0
| 0
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
d0abe679ae6d18d2c2a9b2fce6a7b784e883e50a
| 136
|
py
|
Python
|
mask/eolearn/mask/__init__.py
|
chrieke/eo-learn
|
3f5a9e70d89e749fd5c12739eb1fab5fa97c614b
|
[
"MIT"
] | 2
|
2020-07-03T06:29:48.000Z
|
2021-04-06T18:18:40.000Z
|
mask/eolearn/mask/__init__.py
|
chrieke/eo-learn
|
3f5a9e70d89e749fd5c12739eb1fab5fa97c614b
|
[
"MIT"
] | null | null | null |
mask/eolearn/mask/__init__.py
|
chrieke/eo-learn
|
3f5a9e70d89e749fd5c12739eb1fab5fa97c614b
|
[
"MIT"
] | null | null | null |
from .cloud_mask import AddCloudMaskTask, get_s2_pixel_cloud_detector
from .masking import AddValidDataMaskTask
__version__ = '0.3.2'
| 22.666667
| 69
| 0.838235
| 18
| 136
| 5.833333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032787
| 0.102941
| 136
| 5
| 70
| 27.2
| 0.827869
| 0
| 0
| 0
| 0
| 0
| 0.036765
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
d0bba8bcbd518ead61a47a085acd5e6f363f3718
| 92
|
py
|
Python
|
pt/114/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
pt/114/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
pt/114/python/main.py
|
franciscogomes2020/exercises
|
8b33c4b9349a9331e4002a8225adc2a482c70024
|
[
"MIT"
] | null | null | null |
# Crie um código em Python que teste se o site pudim está acessível pelo computador usado.
| 30.666667
| 90
| 0.782609
| 16
| 92
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.195652
| 92
| 2
| 91
| 46
| 0.972973
| 0.956522
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
efe31af3f1a7be9480d9924c6e9efa6752561003
| 308
|
py
|
Python
|
DesignPatterns/05_iterator/2_iterator/1_iterator/department_collection.py
|
eduardormonteiro/PythonPersonalLibrary
|
561733bb8305c4e25a08f99c28b60ec77251ad67
|
[
"MIT"
] | null | null | null |
DesignPatterns/05_iterator/2_iterator/1_iterator/department_collection.py
|
eduardormonteiro/PythonPersonalLibrary
|
561733bb8305c4e25a08f99c28b60ec77251ad67
|
[
"MIT"
] | null | null | null |
DesignPatterns/05_iterator/2_iterator/1_iterator/department_collection.py
|
eduardormonteiro/PythonPersonalLibrary
|
561733bb8305c4e25a08f99c28b60ec77251ad67
|
[
"MIT"
] | null | null | null |
from collections import Sequence
class Departments(Sequence):
_departments = []
def add_department(self, department):
self._departments.append(department)
def __getitem__(self, item):
return self._departments[item]
def __len__(self):
return len(self._departments)
| 22
| 44
| 0.698052
| 32
| 308
| 6.3125
| 0.46875
| 0.222772
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214286
| 308
| 13
| 45
| 23.692308
| 0.834711
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.111111
| 0.222222
| 0.888889
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
efec8a9867a83791f73b9b0fe5500b9741786bc1
| 112
|
py
|
Python
|
src/waldur_mastermind/notifications/urls.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 26
|
2017-10-18T13:49:58.000Z
|
2021-09-19T04:44:09.000Z
|
src/waldur_mastermind/notifications/urls.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 14
|
2018-12-10T14:14:51.000Z
|
2021-06-07T10:33:39.000Z
|
src/waldur_mastermind/notifications/urls.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 32
|
2017-09-24T03:10:45.000Z
|
2021-10-16T16:41:09.000Z
|
from . import views
def register_in(router):
router.register(r'notifications', views.NotificationViewSet)
| 18.666667
| 64
| 0.776786
| 13
| 112
| 6.615385
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 112
| 5
| 65
| 22.4
| 0.877551
| 0
| 0
| 0
| 0
| 0
| 0.116071
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
56011bbe1d8e3d45d808b6404b3d912833553352
| 512
|
py
|
Python
|
choose_nodes/__init__.py
|
newTypeGeek/Network-Reconstruction
|
135a07cc304dac0666a9d11d3548aee7a669eaad
|
[
"MIT"
] | 3
|
2020-10-15T09:33:59.000Z
|
2022-03-12T11:22:04.000Z
|
choose_nodes/__init__.py
|
newTypeGeek/Network-Reconstruction
|
135a07cc304dac0666a9d11d3548aee7a669eaad
|
[
"MIT"
] | null | null | null |
choose_nodes/__init__.py
|
newTypeGeek/Network-Reconstruction
|
135a07cc304dac0666a9d11d3548aee7a669eaad
|
[
"MIT"
] | 1
|
2020-10-15T09:38:20.000Z
|
2020-10-15T09:38:20.000Z
|
#!/usr/bin/env python3
'''
choose_nodes package contains functions to select nodes as measured nodes and hidden nodes
All functions take two key arguments:
1. N: Total number of nodes
2. n: Number of measured nodes
Each of the functions return two numpy arrays:
1. measure_id: The measured node indices correspond to the whole network
2. hidden_id: The hidden node indices correspond to the whole network
'''
from choose_nodes.lazy import lazy
from choose_nodes.random import random
| 34.133333
| 90
| 0.755859
| 80
| 512
| 4.775
| 0.525
| 0.086387
| 0.109948
| 0.120419
| 0.198953
| 0.198953
| 0.198953
| 0
| 0
| 0
| 0
| 0.012195
| 0.199219
| 512
| 14
| 91
| 36.571429
| 0.919512
| 0.833984
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4be294fc420f718da9bac725c06e8f33a59c78f5
| 140
|
py
|
Python
|
Example_Cases/CFAST_Transient_HRR/Run_Case.py
|
koverholt/bayes-fire
|
4333cdf7b93bf77d8e021f0c4a1931a77056534d
|
[
"BSD-3-Clause"
] | 6
|
2016-06-19T12:44:22.000Z
|
2021-12-21T07:01:38.000Z
|
Example_Cases/CFAST_Transient_HRR/Run_Case.py
|
koverholt/bayes-fire
|
4333cdf7b93bf77d8e021f0c4a1931a77056534d
|
[
"BSD-3-Clause"
] | null | null | null |
Example_Cases/CFAST_Transient_HRR/Run_Case.py
|
koverholt/bayes-fire
|
4333cdf7b93bf77d8e021f0c4a1931a77056534d
|
[
"BSD-3-Clause"
] | 2
|
2017-10-15T02:37:25.000Z
|
2022-03-04T16:22:44.000Z
|
#!/usr/bin/env python
import os
os.chdir('Scripts/')
print 'Running CFAST_Transient_HRR ...'
os.system('python pymc_cfast_transient.py')
| 15.555556
| 43
| 0.742857
| 21
| 140
| 4.761905
| 0.761905
| 0.28
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 140
| 8
| 44
| 17.5
| 0.793651
| 0.142857
| 0
| 0
| 0
| 0
| 0.579832
| 0.193277
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.25
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4bee0afaa09fea6731f37bb360e0a673206f5f52
| 23
|
py
|
Python
|
src/pdp/__init__.py
|
shi27feng/PDP-Solver
|
bf6e392f72f8a3572e0987313230943d94d53c95
|
[
"MIT"
] | 28
|
2019-05-09T16:05:30.000Z
|
2022-03-15T09:31:31.000Z
|
src/pdp/__init__.py
|
shi27feng/PDP-Solver
|
bf6e392f72f8a3572e0987313230943d94d53c95
|
[
"MIT"
] | 3
|
2019-05-20T02:16:40.000Z
|
2020-11-23T13:01:02.000Z
|
src/pdp/__init__.py
|
shi27feng/PDP-Solver
|
bf6e392f72f8a3572e0987313230943d94d53c95
|
[
"MIT"
] | 14
|
2019-07-01T04:48:35.000Z
|
2021-09-13T12:46:32.000Z
|
"""
PDP Solver.
"""
| 5.75
| 12
| 0.391304
| 2
| 23
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.304348
| 23
| 3
| 13
| 7.666667
| 0.5625
| 0.478261
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4bf6d925ceb2f3eccf22bedc5e551bb06ffccabb
| 917
|
py
|
Python
|
windows/winproxy/apis/ktmw32.py
|
IMULMUL/PythonForWindows
|
61e027a678d5b87aa64fcf8a37a6661a86236589
|
[
"BSD-3-Clause"
] | 479
|
2016-01-08T00:53:34.000Z
|
2022-03-22T10:28:19.000Z
|
windows/winproxy/apis/ktmw32.py
|
IMULMUL/PythonForWindows
|
61e027a678d5b87aa64fcf8a37a6661a86236589
|
[
"BSD-3-Clause"
] | 38
|
2017-12-29T17:09:04.000Z
|
2022-01-31T08:27:47.000Z
|
windows/winproxy/apis/ktmw32.py
|
IMULMUL/PythonForWindows
|
61e027a678d5b87aa64fcf8a37a6661a86236589
|
[
"BSD-3-Clause"
] | 103
|
2016-01-10T01:32:17.000Z
|
2021-12-24T17:21:06.000Z
|
import ctypes
import windows.generated_def as gdef
from ..apiproxy import ApiProxy, NeededParameter
from ..error import fail_on_zero
class Ktmw32Proxy(ApiProxy):
APIDLL = "Ktmw32"
default_error_check = staticmethod(fail_on_zero)
@Ktmw32Proxy()
def CommitTransaction(TransactionHandle):
return CommitTransaction.ctypes_function(TransactionHandle)
@Ktmw32Proxy()
def CreateTransaction(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description):
return CreateTransaction.ctypes_function(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description)
@Ktmw32Proxy()
def RollbackTransaction(TransactionHandle):
return RollbackTransaction.ctypes_function(TransactionHandle)
@Ktmw32Proxy()
def OpenTransaction(dwDesiredAccess, TransactionId):
return OpenTransaction.ctypes_function(dwDesiredAccess, TransactionId)
| 30.566667
| 143
| 0.82988
| 81
| 917
| 9.259259
| 0.45679
| 0.074667
| 0.026667
| 0.112
| 0.346667
| 0.226667
| 0.226667
| 0
| 0
| 0
| 0
| 0.014528
| 0.099237
| 917
| 29
| 144
| 31.62069
| 0.893462
| 0
| 0
| 0.210526
| 1
| 0
| 0.006543
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.210526
| false
| 0
| 0.210526
| 0.210526
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
4bf798529fc1ab15931218f73a9e21352c8a0853
| 79
|
py
|
Python
|
spectroscopyx/diagnostics/optics/tests/__init__.py
|
jcclark1/SpectroscoPyx
|
b2534080eaf352be4c0938bd92489cd480796e1a
|
[
"BSD-2-Clause-Patent"
] | 26
|
2018-06-21T19:45:49.000Z
|
2022-03-05T11:17:08.000Z
|
spectroscopyx/diagnostics/optics/tests/__init__.py
|
jcclark1/SpectroscoPyx
|
b2534080eaf352be4c0938bd92489cd480796e1a
|
[
"BSD-2-Clause-Patent"
] | 42
|
2017-11-08T03:19:48.000Z
|
2018-04-30T21:30:34.000Z
|
spectroscopyx/diagnostics/optics/tests/__init__.py
|
jcclark1/SpectroscoPyx
|
b2534080eaf352be4c0938bd92489cd480796e1a
|
[
"BSD-2-Clause-Patent"
] | 10
|
2018-05-12T12:03:23.000Z
|
2021-12-04T08:47:09.000Z
|
from .test_dispersive import (Test_bragg_angle,
)
| 39.5
| 47
| 0.518987
| 7
| 79
| 5.428571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.43038
| 79
| 2
| 48
| 39.5
| 0.844444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
ef0497d231512d9ef3febda7ac5542dc41159534
| 69
|
py
|
Python
|
app/database/api/test/__init__.py
|
space-logistics-org/spacenet
|
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
|
[
"MIT"
] | 1
|
2022-02-17T18:01:41.000Z
|
2022-02-17T18:01:41.000Z
|
app/database/api/test/__init__.py
|
space-logistics-org/spacenet
|
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
|
[
"MIT"
] | 2
|
2021-06-19T19:41:15.000Z
|
2021-07-21T17:07:48.000Z
|
app/database/api/test/__init__.py
|
space-logistics-org/spacenet
|
fd004437ed7b27dd6dc41a374e1dedfcea92e37d
|
[
"MIT"
] | 3
|
2021-06-16T16:31:12.000Z
|
2022-02-17T18:02:57.000Z
|
"""
This module defines tests for the database editor API routes.
"""
| 23
| 61
| 0.73913
| 10
| 69
| 5.1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15942
| 69
| 3
| 62
| 23
| 0.87931
| 0.884058
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ef0a56616c1f0517d463d38bede0fcc911d9ae2c
| 191
|
py
|
Python
|
most_digits.py
|
Kunalpod/codewars
|
8dc1af2f3c70e209471045118fd88b3ea1e627e5
|
[
"MIT"
] | null | null | null |
most_digits.py
|
Kunalpod/codewars
|
8dc1af2f3c70e209471045118fd88b3ea1e627e5
|
[
"MIT"
] | null | null | null |
most_digits.py
|
Kunalpod/codewars
|
8dc1af2f3c70e209471045118fd88b3ea1e627e5
|
[
"MIT"
] | null | null | null |
#Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Most digits
#Problem level: 7 kyu
def find_longest(arr):
return arr[[len(str(x)) for x in arr].index(max([len(str(x)) for x in arr]))]
| 23.875
| 81
| 0.685864
| 34
| 191
| 3.823529
| 0.676471
| 0.092308
| 0.107692
| 0.153846
| 0.246154
| 0.246154
| 0.246154
| 0
| 0
| 0
| 0
| 0.006211
| 0.157068
| 191
| 7
| 82
| 27.285714
| 0.801242
| 0.403141
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ef1274d8247f7bc2f0f3cb068cfe0dd0ba46010c
| 56
|
py
|
Python
|
python/testData/paramInfo/StarredParam.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/paramInfo/StarredParam.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/paramInfo/StarredParam.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def foo(a, b, c):
pass
foo(<arg1>1, <arg23>*(2, 3))
| 9.333333
| 28
| 0.5
| 12
| 56
| 2.333333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 0.214286
| 56
| 5
| 29
| 11.2
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.333333
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
3229e43942f017fba265249f4c84a6fe95683fc8
| 289
|
py
|
Python
|
models/admin/codes.py
|
KittensAreDaBest/kittenpanel
|
e6e071458256967a376ecda98a167ec949ce0bc9
|
[
"MIT"
] | 33
|
2021-08-30T08:28:29.000Z
|
2022-03-06T12:04:41.000Z
|
models/admin/codes.py
|
Shersha01/kittenpanel
|
e6e071458256967a376ecda98a167ec949ce0bc9
|
[
"MIT"
] | 2
|
2021-09-12T06:58:24.000Z
|
2021-09-21T15:55:43.000Z
|
models/admin/codes.py
|
Shersha01/kittenpanel
|
e6e071458256967a376ecda98a167ec949ce0bc9
|
[
"MIT"
] | 5
|
2021-08-30T08:29:18.000Z
|
2022-01-23T05:41:11.000Z
|
from pydantic import BaseModel
from typing import Optional
class Codes(BaseModel):
id: str
cpu: Optional[int] = None
ram: Optional[int] = None
hdd: Optional[int] = None
backups: Optional[int] = None
ports: Optional[int] = None
databases: Optional[int] = None
| 22.230769
| 35
| 0.67474
| 37
| 289
| 5.27027
| 0.486486
| 0.338462
| 0.461538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228374
| 289
| 12
| 36
| 24.083333
| 0.874439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
32539a8b5578b54b67aa3adab6ff0631fdf267d2
| 198
|
py
|
Python
|
evalutils/template/hooks/post_gen_project.py
|
HolyGuacamole/evalutils
|
6570d965ffacc1d88c7f68764efe8dca555626c2
|
[
"MIT"
] | null | null | null |
evalutils/template/hooks/post_gen_project.py
|
HolyGuacamole/evalutils
|
6570d965ffacc1d88c7f68764efe8dca555626c2
|
[
"MIT"
] | null | null | null |
evalutils/template/hooks/post_gen_project.py
|
HolyGuacamole/evalutils
|
6570d965ffacc1d88c7f68764efe8dca555626c2
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import shutil
from pathlib import Path
templated_python_files = Path(os.getcwd()).glob('*.py.j2')
for f in templated_python_files:
shutil.move(f.name, f.stem)
| 22
| 58
| 0.712121
| 32
| 198
| 4.28125
| 0.6875
| 0.218978
| 0.291971
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011696
| 0.136364
| 198
| 8
| 59
| 24.75
| 0.789474
| 0.106061
| 0
| 0
| 0
| 0
| 0.04
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
325914ff90633c2bcd2560b23487ad036b606276
| 80
|
py
|
Python
|
yolov4-deepsort/func.py
|
saru-d2/road-tracking-yolov4
|
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
|
[
"MIT"
] | null | null | null |
yolov4-deepsort/func.py
|
saru-d2/road-tracking-yolov4
|
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
|
[
"MIT"
] | null | null | null |
yolov4-deepsort/func.py
|
saru-d2/road-tracking-yolov4
|
fca383e9ac01db79d6a62c6998e31d6f3b8c60a7
|
[
"MIT"
] | null | null | null |
''' functions to test out in jupyter notebook '''
def add(a,b):
return a + b
| 26.666667
| 49
| 0.6375
| 14
| 80
| 3.642857
| 0.857143
| 0.078431
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225
| 80
| 3
| 50
| 26.666667
| 0.822581
| 0.5125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
325a61a189018b7af6f06a5d49c2cf333271e45f
| 233
|
py
|
Python
|
tests/_support/foo.py
|
IvanMalison/invoke
|
322718d7f38ce04fc2bde947ba67ab4002f669b6
|
[
"BSD-2-Clause"
] | null | null | null |
tests/_support/foo.py
|
IvanMalison/invoke
|
322718d7f38ce04fc2bde947ba67ab4002f669b6
|
[
"BSD-2-Clause"
] | null | null | null |
tests/_support/foo.py
|
IvanMalison/invoke
|
322718d7f38ce04fc2bde947ba67ab4002f669b6
|
[
"BSD-2-Clause"
] | 1
|
2021-02-17T12:08:40.000Z
|
2021-02-17T12:08:40.000Z
|
from invoke.tasks import task
@task
def mytask(ctx):
pass
@task
def basic_arg(ctx, arg='val'):
pass
@task
def multiple_args(ctx, arg1='val1', otherarg='val2'):
pass
@task
def basic_bool(ctx, mybool=True):
pass
| 11.095238
| 53
| 0.665236
| 36
| 233
| 4.222222
| 0.583333
| 0.184211
| 0.217105
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016129
| 0.201717
| 233
| 20
| 54
| 11.65
| 0.801075
| 0
| 0
| 0.615385
| 0
| 0
| 0.04721
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.307692
| false
| 0.307692
| 0.076923
| 0
| 0.384615
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
32608b8d02865b8319ace93421bc20346cd61eee
| 121
|
py
|
Python
|
hellpy/exceptions.py
|
helldatabase/hellpy
|
03dd87b6bb6717ac6029cecfa0655e5b83f9de61
|
[
"MIT"
] | null | null | null |
hellpy/exceptions.py
|
helldatabase/hellpy
|
03dd87b6bb6717ac6029cecfa0655e5b83f9de61
|
[
"MIT"
] | null | null | null |
hellpy/exceptions.py
|
helldatabase/hellpy
|
03dd87b6bb6717ac6029cecfa0655e5b83f9de61
|
[
"MIT"
] | null | null | null |
class Error(Exception):
pass
class InvalidTypeError(Error):
pass
class InvalidArgumentError(Error):
pass
| 11
| 34
| 0.719008
| 12
| 121
| 7.25
| 0.5
| 0.206897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206612
| 121
| 10
| 35
| 12.1
| 0.90625
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
329f7563cae9edd055e30a7108801a2bfedac470
| 103
|
py
|
Python
|
foodFitnessProject/foodFitnessApp/apps.py
|
cs-fullstack-2019-spring/django-authentication-cw-MelaatiJ
|
85b1cdc045cebd6152d6716d0716b09c003dd82e
|
[
"Apache-2.0"
] | null | null | null |
foodFitnessProject/foodFitnessApp/apps.py
|
cs-fullstack-2019-spring/django-authentication-cw-MelaatiJ
|
85b1cdc045cebd6152d6716d0716b09c003dd82e
|
[
"Apache-2.0"
] | null | null | null |
foodFitnessProject/foodFitnessApp/apps.py
|
cs-fullstack-2019-spring/django-authentication-cw-MelaatiJ
|
85b1cdc045cebd6152d6716d0716b09c003dd82e
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class FoodfitnessappConfig(AppConfig):
name = 'foodFitnessApp'
| 17.166667
| 38
| 0.786408
| 10
| 103
| 8.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145631
| 103
| 5
| 39
| 20.6
| 0.920455
| 0
| 0
| 0
| 0
| 0
| 0.135922
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
085fe8d145a5e21e7f485b5517fbc2c94f3320ba
| 225
|
py
|
Python
|
quoters/enum.py
|
suman-kr/random-quotes
|
5d3241dc9647a7b16a93dece12e9f214072e64c3
|
[
"MIT"
] | 22
|
2020-01-24T08:59:18.000Z
|
2022-02-09T02:35:20.000Z
|
quoters/enum.py
|
suman-kr/random-quotes
|
5d3241dc9647a7b16a93dece12e9f214072e64c3
|
[
"MIT"
] | 9
|
2021-04-07T00:57:09.000Z
|
2022-03-31T10:18:06.000Z
|
quoters/enum.py
|
suman-kr/random-quotes
|
5d3241dc9647a7b16a93dece12e9f214072e64c3
|
[
"MIT"
] | 1
|
2021-06-06T19:00:55.000Z
|
2021-06-06T19:00:55.000Z
|
from enum import Enum
class QuoteType(Enum):
QUOTE = 'QUOTE'
SERIES_QUOTE = 'SERIES_QUOTE'
ANIME_QUOTE = 'ANIME_QUOTE'
PROGRAMMING_QUOTE = 'PROGRAMMING_QUOTE'
def __str__(self):
return self.value
| 22.5
| 43
| 0.688889
| 27
| 225
| 5.37037
| 0.518519
| 0.151724
| 0.22069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.226667
| 225
| 10
| 44
| 22.5
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.199115
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.125
| 0.125
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
087fe3f471f83a9cc4d855ef479a2e7d60b32c31
| 97
|
py
|
Python
|
backend/api/admin.py
|
tuguldurio/fullstack-ecommerce
|
06257e704c657b008587aabb4075750899149b1d
|
[
"MIT"
] | null | null | null |
backend/api/admin.py
|
tuguldurio/fullstack-ecommerce
|
06257e704c657b008587aabb4075750899149b1d
|
[
"MIT"
] | null | null | null |
backend/api/admin.py
|
tuguldurio/fullstack-ecommerce
|
06257e704c657b008587aabb4075750899149b1d
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from api.product.admin import ProductAdmin, ProductImageAdmin
| 32.333333
| 61
| 0.845361
| 12
| 97
| 6.833333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113402
| 97
| 3
| 61
| 32.333333
| 0.953488
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
08b7bfa08c7a4b7c1b90f853469846106a25d656
| 228
|
py
|
Python
|
xallennlp/data/preprocessors/lowercase.py
|
altescy/xallennlp
|
9c10ec8832d551e160f6cf63345dda206395a9dd
|
[
"MIT"
] | 7
|
2020-06-21T02:33:16.000Z
|
2022-01-26T10:45:11.000Z
|
xallennlp/data/preprocessors/lowercase.py
|
altescy/xallennlp
|
9c10ec8832d551e160f6cf63345dda206395a9dd
|
[
"MIT"
] | 7
|
2021-07-11T09:00:16.000Z
|
2022-01-17T06:53:50.000Z
|
xallennlp/data/preprocessors/lowercase.py
|
altescy/xallennlp
|
9c10ec8832d551e160f6cf63345dda206395a9dd
|
[
"MIT"
] | 3
|
2020-07-23T09:41:30.000Z
|
2021-06-10T03:55:10.000Z
|
from xallennlp.data.preprocessors.preprocessor import Preprocessor
@Preprocessor.register("lowercase")
class Lowercase(Preprocessor[str, str]):
@staticmethod
def __call__(data: str) -> str:
return data.lower()
| 25.333333
| 66
| 0.741228
| 24
| 228
| 6.875
| 0.625
| 0.072727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149123
| 228
| 8
| 67
| 28.5
| 0.850515
| 0
| 0
| 0
| 0
| 0
| 0.039474
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
08c2cf7cfc1ecc1bb3e2abbfeb7a08026b976cd1
| 218
|
py
|
Python
|
app/utils/filters.py
|
cabralwilliams/python-social
|
8ec0e3965312c280f31cf74a8b1e2e77d0629324
|
[
"MIT"
] | null | null | null |
app/utils/filters.py
|
cabralwilliams/python-social
|
8ec0e3965312c280f31cf74a8b1e2e77d0629324
|
[
"MIT"
] | null | null | null |
app/utils/filters.py
|
cabralwilliams/python-social
|
8ec0e3965312c280f31cf74a8b1e2e77d0629324
|
[
"MIT"
] | null | null | null |
# format the date in January 1, 2022 form
def format_date(date):
return date.strftime('%B %d, %Y')
# format plural word
def format_plural(total, word):
if total != 1:
return word + 's'
return word
| 21.8
| 41
| 0.642202
| 34
| 218
| 4.058824
| 0.558824
| 0.130435
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036364
| 0.243119
| 218
| 9
| 42
| 24.222222
| 0.8
| 0.266055
| 0
| 0
| 0
| 0
| 0.063694
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.166667
| 0.833333
| 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
| 1
| 1
| 0
|
0
| 4
|
08d59eb141b165b5b1267b60f3f11366f4a7e2af
| 189
|
py
|
Python
|
src/xml_editors/hold_actions/CraftingEditor.py
|
rdok/cyberpunk2077-usability
|
9c51038c098166c9bd92bb434d88242b640bf543
|
[
"MIT"
] | 4
|
2020-12-19T15:51:03.000Z
|
2020-12-21T13:12:46.000Z
|
src/xml_editors/hold_actions/CraftingEditor.py
|
rdok/cyberpunk2077-usability
|
9c51038c098166c9bd92bb434d88242b640bf543
|
[
"MIT"
] | 8
|
2020-12-25T18:32:12.000Z
|
2021-11-05T20:48:14.000Z
|
src/xml_editors/hold_actions/CraftingEditor.py
|
rdok/cyberpunk2077-r6-config-editor
|
d4149e91bbeeb641c7e8f85be468085b251c6ae7
|
[
"MIT"
] | null | null | null |
from src.xml_editors.hold_actions.HoldActionEditor import HoldActionEditor
class CraftingEditor(HoldActionEditor):
def get_xpath(self):
return './/hold[@action="craft_item"]'
| 27
| 74
| 0.767196
| 21
| 189
| 6.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126984
| 189
| 6
| 75
| 31.5
| 0.854545
| 0
| 0
| 0
| 0
| 0
| 0.153439
| 0.153439
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
08f7a5b06d88bc505c8c121108b508f0b20474e3
| 162
|
py
|
Python
|
figures_main_text_and_new_network_model/remaining_code/small_netwulf_expon_smallworld.py
|
benmaier/DigCT
|
62fc3fddb7600e2a43761e08618b2e3df423569c
|
[
"MIT"
] | null | null | null |
figures_main_text_and_new_network_model/remaining_code/small_netwulf_expon_smallworld.py
|
benmaier/DigCT
|
62fc3fddb7600e2a43761e08618b2e3df423569c
|
[
"MIT"
] | null | null | null |
figures_main_text_and_new_network_model/remaining_code/small_netwulf_expon_smallworld.py
|
benmaier/DigCT
|
62fc3fddb7600e2a43761e08618b2e3df423569c
|
[
"MIT"
] | 1
|
2021-07-12T13:50:35.000Z
|
2021-07-12T13:50:35.000Z
|
import netwulf as nw
from expon_smallworld import get_expon_small_world
N = 20
k0 = 3
G = get_expon_small_world(N,k0,node_creation_order='asc')
nw.visualize(G)
| 18
| 57
| 0.796296
| 30
| 162
| 4
| 0.666667
| 0.133333
| 0.216667
| 0.3
| 0.316667
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035211
| 0.123457
| 162
| 8
| 58
| 20.25
| 0.809859
| 0
| 0
| 0
| 0
| 0
| 0.018519
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
08f8dfcd4207be745cb28303bb4d45dc6d687201
| 28
|
py
|
Python
|
tests/data/__init__.py
|
matz-e/sphinx-bluebrain-theme
|
fb2a48fcc95705c04f50bfb5306fdb476765f956
|
[
"MIT"
] | 2
|
2020-08-08T18:47:51.000Z
|
2021-07-23T13:56:51.000Z
|
tests/data/__init__.py
|
matz-e/sphinx-bluebrain-theme
|
fb2a48fcc95705c04f50bfb5306fdb476765f956
|
[
"MIT"
] | 15
|
2020-04-09T13:24:12.000Z
|
2022-03-29T08:24:45.000Z
|
tests/data/__init__.py
|
matz-e/sphinx-bluebrain-theme
|
fb2a48fcc95705c04f50bfb5306fdb476765f956
|
[
"MIT"
] | 2
|
2021-04-22T08:15:13.000Z
|
2021-12-22T08:23:37.000Z
|
"""Regression test data."""
| 14
| 27
| 0.642857
| 3
| 28
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 28
| 1
| 28
| 28
| 0.72
| 0.75
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3ead4a6b2b444b693470da11537ff4953fe3a941
| 201
|
py
|
Python
|
common/consts.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
common/consts.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
common/consts.py
|
yovelcohen/ccl
|
ba2abe609110f21f1db7c0c95f785e4010df8abd
|
[
"MIT"
] | null | null | null |
RATING_DATE = 'rating_date'
ANALYSTS_MIN_MEAN_SUCCESS_RATE = 'ANALYSTS_MIN_MEAN_SUCCESS_RATE'
DAYS_SINCE_ANALYSTS_ALERT = 'DAYS_SINCE_ANALYSTS_ALERT'
QUESTIONABLE_SOURCES = []
EMISSIONS = 'emissions'
| 28.714286
| 65
| 0.845771
| 26
| 201
| 5.884615
| 0.5
| 0.130719
| 0.196078
| 0.287582
| 0.339869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079602
| 201
| 6
| 66
| 33.5
| 0.827027
| 0
| 0
| 0
| 0
| 0
| 0.373134
| 0.273632
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3ebcd91dd056fc19cb9fefa2493a452ee21d2b99
| 273
|
py
|
Python
|
audio/flacfile.py
|
redmond-penguin/musicplayer
|
1b342b885e6e97d073b92e624d0ae5dc38f7c687
|
[
"BSD-3-Clause"
] | null | null | null |
audio/flacfile.py
|
redmond-penguin/musicplayer
|
1b342b885e6e97d073b92e624d0ae5dc38f7c687
|
[
"BSD-3-Clause"
] | null | null | null |
audio/flacfile.py
|
redmond-penguin/musicplayer
|
1b342b885e6e97d073b92e624d0ae5dc38f7c687
|
[
"BSD-3-Clause"
] | null | null | null |
from audio.oggfile import OggFile
class FlacFile(OggFile):
def convert_to_wav(self, output_file):
self.perform_operation("flac", None, ["-d", "-o", output_file])
def convert_from_wav(self, input_file):
self.perform_operation("flac", [input_file])
| 30.333333
| 71
| 0.699634
| 37
| 273
| 4.891892
| 0.540541
| 0.110497
| 0.165746
| 0.265193
| 0.309392
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164835
| 273
| 8
| 72
| 34.125
| 0.79386
| 0
| 0
| 0
| 0
| 0
| 0.043956
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
3ef564d00d34966e68b46ab998f6fff9385534d9
| 24
|
py
|
Python
|
avatar/__init__.py
|
numerigraphe/django-avatar
|
3f96bfb5fd3a5c951531185fac85da739fd249f2
|
[
"BSD-3-Clause"
] | null | null | null |
avatar/__init__.py
|
numerigraphe/django-avatar
|
3f96bfb5fd3a5c951531185fac85da739fd249f2
|
[
"BSD-3-Clause"
] | null | null | null |
avatar/__init__.py
|
numerigraphe/django-avatar
|
3f96bfb5fd3a5c951531185fac85da739fd249f2
|
[
"BSD-3-Clause"
] | null | null | null |
__version__ = '4.1.0.2'
| 12
| 23
| 0.625
| 5
| 24
| 2.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.190476
| 0.125
| 24
| 1
| 24
| 24
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3efb8036270960ef056fa665138c1695cfb3c9cd
| 89
|
py
|
Python
|
MyResumes/MyResumes/Resumes/apps.py
|
githubError/MessyRepository
|
2380ed13c167c5c6174f0e71c8dfc634318cda4f
|
[
"MIT"
] | 2
|
2018-03-12T08:01:47.000Z
|
2018-03-12T08:06:14.000Z
|
MyResumes/MyResumes/Resumes/apps.py
|
githubError/MessyRepository
|
2380ed13c167c5c6174f0e71c8dfc634318cda4f
|
[
"MIT"
] | null | null | null |
MyResumes/MyResumes/Resumes/apps.py
|
githubError/MessyRepository
|
2380ed13c167c5c6174f0e71c8dfc634318cda4f
|
[
"MIT"
] | 1
|
2019-11-06T15:58:05.000Z
|
2019-11-06T15:58:05.000Z
|
from django.apps import AppConfig
class ResumesConfig(AppConfig):
name = 'Resumes'
| 14.833333
| 33
| 0.752809
| 10
| 89
| 6.7
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168539
| 89
| 5
| 34
| 17.8
| 0.905405
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3efcef58ddb3fc4266a096668f3c894771292105
| 183
|
py
|
Python
|
tests/brownie-test-project/scripts/token.py
|
banteg/brownie
|
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
|
[
"MIT"
] | 3
|
2021-05-21T06:55:28.000Z
|
2021-06-22T07:31:50.000Z
|
tests/brownie-test-project/scripts/token.py
|
banteg/brownie
|
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
|
[
"MIT"
] | null | null | null |
tests/brownie-test-project/scripts/token.py
|
banteg/brownie
|
eccd0c6ac8cf769ed3331c05189e8518e7cc2fdd
|
[
"MIT"
] | 1
|
2021-08-02T05:50:59.000Z
|
2021-08-02T05:50:59.000Z
|
#!/usr/bin/python3
from brownie import accounts, project
def main():
accounts[0].deploy(project.Token, "Test Token", "TEST", 18, "1000 ether")
def donothing(a):
return a
| 15.25
| 77
| 0.672131
| 26
| 183
| 4.730769
| 0.769231
| 0.146341
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05298
| 0.174863
| 183
| 11
| 78
| 16.636364
| 0.761589
| 0.092896
| 0
| 0
| 0
| 0
| 0.145455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
411c31559802fefc8dd7177d65ff605538225d55
| 293
|
py
|
Python
|
homePage/admin.py
|
bmackley/ancientassyrian
|
baaf973a1162765d964f613e8bd839ef8cc3ea60
|
[
"Apache-2.0"
] | null | null | null |
homePage/admin.py
|
bmackley/ancientassyrian
|
baaf973a1162765d964f613e8bd839ef8cc3ea60
|
[
"Apache-2.0"
] | null | null | null |
homePage/admin.py
|
bmackley/ancientassyrian
|
baaf973a1162765d964f613e8bd839ef8cc3ea60
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
from django.contrib import admin
from .models import *
# register any models here
admin.site.register(User)
admin.site.register(Tablet)
admin.site.register(Line)
admin.site.register(AssyrianChar)
admin.site.register(Sign)
admin.site.register(IdentifiedCharacter)
| 24.416667
| 40
| 0.819113
| 41
| 293
| 5.853659
| 0.414634
| 0.225
| 0.425
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081911
| 293
| 11
| 41
| 26.636364
| 0.892193
| 0.081911
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f5abb6d6ac667c6c99af093c1c5331c9eeff66db
| 579
|
py
|
Python
|
entity.py
|
ctII/somegame
|
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
|
[
"MIT"
] | null | null | null |
entity.py
|
ctII/somegame
|
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
|
[
"MIT"
] | null | null | null |
entity.py
|
ctII/somegame
|
d49aaed0b23abe99deebe9ad80cb23b05dd5a75d
|
[
"MIT"
] | null | null | null |
import uuid
class entity:
def __init__(self, world, posX, posY, form):
self.world = world
self.posX = posX
self.posY = posY
self.form = form
self.uuid = uuid.uuid4()
def getWorld(self):
return self.world
def setX(self, x):
self.posX = x
def setY(self, y):
self.posY = y
def getX(self):
return self.posX
def getY(self):
return self.posY
def getForm(self):
return self.form
def tick(self):
pass
def getUUID(self):
return self.uuid
| 16.542857
| 48
| 0.540587
| 75
| 579
| 4.12
| 0.32
| 0.161812
| 0.226537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00271
| 0.362694
| 579
| 34
| 49
| 17.029412
| 0.834688
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.375
| false
| 0.041667
| 0.041667
| 0.208333
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
f5b22d18e47997a04c79cd1b89289a56f63be118
| 181
|
py
|
Python
|
.venv/bin/django-admin.py
|
Daniel1404/Virtual-env-explanation
|
4a026ffa27407f3531c8e230e632d58e7e7a7131
|
[
"MIT"
] | null | null | null |
.venv/bin/django-admin.py
|
Daniel1404/Virtual-env-explanation
|
4a026ffa27407f3531c8e230e632d58e7e7a7131
|
[
"MIT"
] | null | null | null |
.venv/bin/django-admin.py
|
Daniel1404/Virtual-env-explanation
|
4a026ffa27407f3531c8e230e632d58e7e7a7131
|
[
"MIT"
] | null | null | null |
#!/home/daniel/MEGA/my-git/github/Virtual-env-explanation/.venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 30.166667
| 74
| 0.78453
| 25
| 181
| 5.24
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082873
| 181
| 5
| 75
| 36.2
| 0.789157
| 0.403315
| 0
| 0
| 0
| 0
| 0.074766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
f5be0acc15afa7e9498e34378ebf3aab79715a15
| 55
|
py
|
Python
|
gittest.py
|
petereh/pyneteng
|
3dd548ca699be857a8ceb89cb5ddf8349411c0ef
|
[
"Apache-2.0"
] | null | null | null |
gittest.py
|
petereh/pyneteng
|
3dd548ca699be857a8ceb89cb5ddf8349411c0ef
|
[
"Apache-2.0"
] | null | null | null |
gittest.py
|
petereh/pyneteng
|
3dd548ca699be857a8ceb89cb5ddf8349411c0ef
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
for i in range(8):
print i
| 11
| 21
| 0.6
| 11
| 55
| 3
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.254545
| 55
| 4
| 22
| 13.75
| 0.780488
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
f5d99b962bfcad257d18b1ed9f93a6767aba0626
| 100
|
py
|
Python
|
TVQAplus/eval/maskrcnn_voc/__init__.py
|
slewyh/vqa
|
b34d86d8db2f371e2d4cf55439ebaa83ae1918aa
|
[
"MIT"
] | 3
|
2021-04-23T11:53:13.000Z
|
2022-02-11T12:29:34.000Z
|
TVQAplus/eval/maskrcnn_voc/__init__.py
|
slewyh/vqa
|
b34d86d8db2f371e2d4cf55439ebaa83ae1918aa
|
[
"MIT"
] | 2
|
2022-02-11T12:43:03.000Z
|
2022-02-14T15:18:39.000Z
|
eval/maskrcnn_voc/__init__.py
|
Lee-Ft/RHA
|
8a832a9afebc9204148bbd340c31e26c83138024
|
[
"MIT"
] | null | null | null |
__author__ = "Jie Lei"
from .bounding_box import BoxList
from .voc_eval import eval_detection_voc
| 16.666667
| 40
| 0.81
| 15
| 100
| 4.866667
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14
| 100
| 5
| 41
| 20
| 0.848837
| 0
| 0
| 0
| 0
| 0
| 0.070707
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
eb40c4c93c661a97f5ded8895d9404857ab4cbc3
| 188
|
py
|
Python
|
train.py
|
jstzwj/VoiceStyleTransfer
|
d301a09184265676ece52796b5ae7ed8e41ede4c
|
[
"MIT"
] | 3
|
2020-04-04T13:37:29.000Z
|
2021-07-27T11:10:30.000Z
|
train.py
|
jstzwj/VoiceStyleTransfer
|
d301a09184265676ece52796b5ae7ed8e41ede4c
|
[
"MIT"
] | null | null | null |
train.py
|
jstzwj/VoiceStyleTransfer
|
d301a09184265676ece52796b5ae7ed8e41ede4c
|
[
"MIT"
] | null | null | null |
from utils import *
device = 'cpu'
def train():
a_content, sr = wav2spectrum('./data/boy.wav')
a_style, sr = wav2spectrum('./data/girl.wav')
if __name__ == "__main__":
pass
| 17.090909
| 50
| 0.632979
| 25
| 188
| 4.36
| 0.8
| 0.256881
| 0.330275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013245
| 0.196809
| 188
| 11
| 51
| 17.090909
| 0.708609
| 0
| 0
| 0
| 0
| 0
| 0.212766
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.142857
| 0.142857
| 0
| 0.285714
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
de234a0f9db2e379d2c376a72e0a65c3d6c1c79d
| 169
|
py
|
Python
|
longitude/core/data_sources/postgres/common.py
|
Rovaro/Longitude
|
b17b40a7b19edb10c62238ea20d136a3a8147f13
|
[
"MIT"
] | 1
|
2020-11-06T11:12:42.000Z
|
2020-11-06T11:12:42.000Z
|
longitude/core/data_sources/postgres/common.py
|
Rovaro/Longitude
|
b17b40a7b19edb10c62238ea20d136a3a8147f13
|
[
"MIT"
] | 22
|
2017-11-20T21:18:55.000Z
|
2021-07-06T10:22:14.000Z
|
longitude/core/data_sources/postgres/common.py
|
Rovaro/Longitude
|
b17b40a7b19edb10c62238ea20d136a3a8147f13
|
[
"MIT"
] | 4
|
2018-03-22T08:38:03.000Z
|
2020-06-14T04:29:15.000Z
|
from psycopg2.extensions import string_types
def psycopg2_type_as_string(type_id):
type_ = string_types.get(type_id)
return type_.name if type_ else 'unknown'
| 24.142857
| 45
| 0.786982
| 26
| 169
| 4.730769
| 0.615385
| 0.178862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013889
| 0.147929
| 169
| 6
| 46
| 28.166667
| 0.840278
| 0
| 0
| 0
| 0
| 0
| 0.04142
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
de3e54370cf425d70cbd7a3ecf8930eace1183e6
| 110
|
py
|
Python
|
dapodix/gui/__init__.py
|
dapodix/dapodix
|
484ebbc4cfb9959c9f2e3d17b4079d4fa824e224
|
[
"MIT"
] | null | null | null |
dapodix/gui/__init__.py
|
dapodix/dapodix
|
484ebbc4cfb9959c9f2e3d17b4079d4fa824e224
|
[
"MIT"
] | null | null | null |
dapodix/gui/__init__.py
|
dapodix/dapodix
|
484ebbc4cfb9959c9f2e3d17b4079d4fa824e224
|
[
"MIT"
] | null | null | null |
from .login import LoginFrame
from .main import MainApplication
__all__ = ["LoginFrame", "MainApplication"]
| 18.333333
| 43
| 0.781818
| 11
| 110
| 7.454545
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127273
| 110
| 5
| 44
| 22
| 0.854167
| 0
| 0
| 0
| 0
| 0
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
de3fa6c54d866b976c0fc7d0978c5ecf3aa78d09
| 313
|
py
|
Python
|
webinterface/src/WebChilds/External/Example.py
|
Mariusz1970/enigma2-plugins-1
|
126d31d075c156f32b09d4321ebe1a17f93a5bd6
|
[
"OLDAP-2.3"
] | 41
|
2016-01-21T17:54:44.000Z
|
2021-06-26T05:54:41.000Z
|
webinterface/src/WebChilds/External/Example.py
|
Mariusz1970/enigma2-plugins-1
|
126d31d075c156f32b09d4321ebe1a17f93a5bd6
|
[
"OLDAP-2.3"
] | 124
|
2015-04-27T21:30:48.000Z
|
2022-03-29T10:21:39.000Z
|
webinterface/src/WebChilds/External/Example.py
|
Mariusz1970/enigma2-plugins-1
|
126d31d075c156f32b09d4321ebe1a17f93a5bd6
|
[
"OLDAP-2.3"
] | 193
|
2015-01-10T09:21:26.000Z
|
2022-03-21T08:19:33.000Z
|
#from Plugins.Extensions.WebInterface import __file__
#from Plugins.Extensions.WebInterface.WebChilds.Toplevel import addExternalChild
#
#from twisted.web import static
#from twisted.python import util
#
#
#addExternalChild( ["example", static.File(util.sibpath(__file__, "example")), "Example Module", "0.1a"] )
| 34.777778
| 106
| 0.789137
| 36
| 313
| 6.638889
| 0.527778
| 0.09205
| 0.175732
| 0.276151
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006993
| 0.086262
| 313
| 8
| 107
| 39.125
| 0.828671
| 0.948882
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
de590e291adc34f68fc9195700f11f03e17e2239
| 123
|
py
|
Python
|
Python/app.python/aula5/aula5a.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
Python/app.python/aula5/aula5a.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
Python/app.python/aula5/aula5a.py
|
jacksontenorio8/python
|
a484f019960faa5aa29177eff44a1bb1e3f3b9d0
|
[
"MIT"
] | null | null | null |
lista = [1, 3, 5, 7]
lista_animal = ['cachorro', 'gato', 'elefante']
print(lista)
print(type(lista))
print(lista_animal[1])
| 24.6
| 47
| 0.674797
| 19
| 123
| 4.263158
| 0.578947
| 0.271605
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 0.105691
| 123
| 5
| 48
| 24.6
| 0.690909
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.6
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
de5e1855a849968f27bacbd339439c7f36beed12
| 205
|
py
|
Python
|
Credentials.py
|
munganyendesandrine/PasswordLocker
|
0962819b501ec2d9068988093920d9c01acc124a
|
[
"Unlicense",
"MIT"
] | null | null | null |
Credentials.py
|
munganyendesandrine/PasswordLocker
|
0962819b501ec2d9068988093920d9c01acc124a
|
[
"Unlicense",
"MIT"
] | null | null | null |
Credentials.py
|
munganyendesandrine/PasswordLocker
|
0962819b501ec2d9068988093920d9c01acc124a
|
[
"Unlicense",
"MIT"
] | null | null | null |
class Credentials:
"""
Class that generates new instances of credentials.
"""
def __init__(self,username,password):
self.username = username
self.password = password
| 20.5
| 54
| 0.634146
| 20
| 205
| 6.3
| 0.6
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.282927
| 205
| 10
| 55
| 20.5
| 0.857143
| 0.243902
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
de75b060fd94c7f1945900174d005ed0abe713ef
| 91
|
py
|
Python
|
Test.py
|
XXerxesG/Hackathon_01022019
|
b46e4047aaad0bcb132c9b72df6c1dc771697847
|
[
"MIT"
] | null | null | null |
Test.py
|
XXerxesG/Hackathon_01022019
|
b46e4047aaad0bcb132c9b72df6c1dc771697847
|
[
"MIT"
] | null | null | null |
Test.py
|
XXerxesG/Hackathon_01022019
|
b46e4047aaad0bcb132c9b72df6c1dc771697847
|
[
"MIT"
] | null | null | null |
print "hello world"
print(1 + 1)
print('Yes, we can')
#anyhow one two three
print(2+2)
| 9.1
| 21
| 0.648352
| 17
| 91
| 3.470588
| 0.705882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054795
| 0.197802
| 91
| 9
| 22
| 10.111111
| 0.753425
| 0.21978
| 0
| 0
| 0
| 0
| 0.314286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
de81e300a670a8221a2bb546c51a52d2610f11a4
| 172
|
py
|
Python
|
src/boogie/configurations/django_conf/services.py
|
pencil-labs/django-boogie
|
79b759617785ce33a24cb6013266a0810b24801c
|
[
"BSD-3-Clause"
] | null | null | null |
src/boogie/configurations/django_conf/services.py
|
pencil-labs/django-boogie
|
79b759617785ce33a24cb6013266a0810b24801c
|
[
"BSD-3-Clause"
] | null | null | null |
src/boogie/configurations/django_conf/services.py
|
pencil-labs/django-boogie
|
79b759617785ce33a24cb6013266a0810b24801c
|
[
"BSD-3-Clause"
] | 2
|
2021-09-16T22:11:35.000Z
|
2021-09-25T12:28:27.000Z
|
from .environment import EnvironmentConf
class ServicesConf(EnvironmentConf):
"""
Config and inspect external services required for running the platform.
"""
| 21.5
| 75
| 0.75
| 17
| 172
| 7.588235
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186047
| 172
| 7
| 76
| 24.571429
| 0.921429
| 0.412791
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
deb4f0a1e1db01ee7527523b0c5c31a4db7441c9
| 276
|
py
|
Python
|
halfpipe/logging/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
halfpipe/logging/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
halfpipe/logging/__init__.py
|
fossabot/Halfpipe-1
|
9e9fae20467d2c73b67fcb2cc73ed7144d79db3a
|
[
"FTL"
] | null | null | null |
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from .base import setupcontext, setup, teardown
from .context import Context
__all__ = ["setupcontext", "setup", "teardown", "Context"]
| 30.666667
| 73
| 0.666667
| 40
| 276
| 4.5
| 0.675
| 0.188889
| 0.277778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.148551
| 276
| 8
| 74
| 34.5
| 0.744681
| 0.474638
| 0
| 0
| 0
| 0
| 0.22695
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
deb941ac976e4d0ba4c0f55a0f6f9e94f7bbfac1
| 1,630
|
py
|
Python
|
oddeven-test.py
|
mnajmikl/pythontest
|
e949ccca6737295e0aad6c3203c2f883a5690cf2
|
[
"MIT"
] | 1
|
2022-03-31T15:43:26.000Z
|
2022-03-31T15:43:26.000Z
|
oddeven-test.py
|
mnajmikl/pythontest
|
e949ccca6737295e0aad6c3203c2f883a5690cf2
|
[
"MIT"
] | null | null | null |
oddeven-test.py
|
mnajmikl/pythontest
|
e949ccca6737295e0aad6c3203c2f883a5690cf2
|
[
"MIT"
] | null | null | null |
from oddeven import oddnumbers, evennumbers, oddevens
def test_1_10_5():
o,e = oddevens(1, 10)
assert oddnumbers(1, 10) == len(o), f"oddnumbers(1, 10) should return {len(o)}"
assert evennumbers(1, 10) == len(e), f"evennumbers(1, 10) should return {len(e)}"
def test_1_11_6():
o,e = oddevens(1, 11)
assert oddnumbers(1, 11) == len(o), f"oddnumbers(1, 11) should return {len(o)}"
assert evennumbers(1, 11) == len(e), f"evennumbers(1, 11) should return {len(e)}"
def test_9_11_2():
o,e = oddevens(9, 11)
assert oddnumbers(9, 11) == len(o), f"oddnumbers(9, 11) should return {len(o)}"
assert evennumbers(9, 11) == len(e), f"evennumbers(9, 11) should return {len(e)}"
def test_1_100_50():
o,e = oddevens(1, 100)
assert oddnumbers(1, 100) == len(o), f"oddnumbers(1, 100) should return {len(o)}"
assert evennumbers(1, 100) == len(e), f"evennumbers(1, 100) should return {len(e)}"
def test_1_99_50():
o,e = oddevens(1, 99)
assert oddnumbers(1, 99) == len(o), f"oddnumbers(1, 99) should return {len(o)}"
assert evennumbers(1, 99) == len(e), f"evennumbers(1, 99) should return {len(e)}"
def test_0_100_50():
o,e = oddevens(0, 100)
assert oddnumbers(0, 100) == len(o), f"oddnumbers(0, 100) should return {len(o)}"
assert evennumbers(0, 100) == len(e), f"evennumbers(0, 100) should return {len(e)}"
def test_neg3_99_52():
o,e = oddevens(-3, 99)
assert oddnumbers(-3, 99) == len(o), f"oddnumbers(-3, 99) should return {len(o)}"
assert evennumbers(-3, 99) == len(e), f"evennumbers(-3, 99) should return {len(e)}"
| 44.054054
| 88
| 0.619632
| 272
| 1,630
| 3.636029
| 0.106618
| 0.056623
| 0.212336
| 0.106168
| 0.735086
| 0.404449
| 0.381193
| 0
| 0
| 0
| 0
| 0.113654
| 0.195706
| 1,630
| 36
| 89
| 45.277778
| 0.640732
| 0
| 0
| 0
| 0
| 0
| 0.359473
| 0
| 0
| 0
| 0
| 0
| 0.482759
| 1
| 0.241379
| true
| 0
| 0.034483
| 0
| 0.275862
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7222b4142cf649e178de5220679b49626fa22f48
| 168
|
py
|
Python
|
df_utils.py
|
KyleHaggin/lambdata
|
369fffea9498f496094aad77e1e47f40539e5b97
|
[
"MIT"
] | null | null | null |
df_utils.py
|
KyleHaggin/lambdata
|
369fffea9498f496094aad77e1e47f40539e5b97
|
[
"MIT"
] | 4
|
2020-03-24T17:38:00.000Z
|
2021-06-02T00:32:00.000Z
|
df_utils.py
|
KyleHaggin/lambdata
|
369fffea9498f496094aad77e1e47f40539e5b97
|
[
"MIT"
] | null | null | null |
"""
Utility function for working with DataFrames
"""
#import funcitons
import pandas as import pdb; pdb.set_trace()
#test functions
TEST_DF = pd.DataFrame([1, 2, 3])
| 16.8
| 44
| 0.732143
| 25
| 168
| 4.84
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020979
| 0.14881
| 168
| 9
| 45
| 18.666667
| 0.825175
| 0.178571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
7226813aadf2c28bd0a280a8040d8533655bda7b
| 90
|
py
|
Python
|
src/services/monolithic/hardware_abstraction/__init__.py
|
IAPark/PITherm
|
a334cb0843b1961997aa90e45671d556be91380f
|
[
"MIT"
] | null | null | null |
src/services/monolithic/hardware_abstraction/__init__.py
|
IAPark/PITherm
|
a334cb0843b1961997aa90e45671d556be91380f
|
[
"MIT"
] | null | null | null |
src/services/monolithic/hardware_abstraction/__init__.py
|
IAPark/PITherm
|
a334cb0843b1961997aa90e45671d556be91380f
|
[
"MIT"
] | null | null | null |
__author__ = 'Isaac'
from pin import Pin
from temperature_sensor import TemperatureSensor
| 22.5
| 48
| 0.844444
| 11
| 90
| 6.454545
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122222
| 90
| 4
| 48
| 22.5
| 0.898734
| 0
| 0
| 0
| 0
| 0
| 0.054945
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7230113d6a8f7b15e63f98d0edf6f756e8ec4605
| 141
|
py
|
Python
|
django_loci/channels/consumers.py
|
Purhan/django-loci
|
f1f3612efa5881cb935126607f1b7f87e4d61663
|
[
"BSD-3-Clause"
] | 205
|
2017-11-17T10:35:02.000Z
|
2022-03-29T18:50:32.000Z
|
django_loci/channels/consumers.py
|
Purhan/django-loci
|
f1f3612efa5881cb935126607f1b7f87e4d61663
|
[
"BSD-3-Clause"
] | 98
|
2017-11-20T16:03:27.000Z
|
2022-01-19T21:12:47.000Z
|
django_loci/channels/consumers.py
|
Purhan/django-loci
|
f1f3612efa5881cb935126607f1b7f87e4d61663
|
[
"BSD-3-Clause"
] | 46
|
2017-11-20T23:25:26.000Z
|
2022-02-10T05:06:16.000Z
|
from ..models import Location
from .base import BaseLocationBroadcast
class LocationBroadcast(BaseLocationBroadcast):
model = Location
| 20.142857
| 47
| 0.815603
| 13
| 141
| 8.846154
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134752
| 141
| 6
| 48
| 23.5
| 0.942623
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
a0c969f1528a337e61c19252d509983d534c6764
| 336
|
gyp
|
Python
|
binding.gyp
|
AdjacentDoor/node-native-simple
|
76dd04e9e8d765a1b258e35072e84b07bb137572
|
[
"MIT",
"Unlicense"
] | null | null | null |
binding.gyp
|
AdjacentDoor/node-native-simple
|
76dd04e9e8d765a1b258e35072e84b07bb137572
|
[
"MIT",
"Unlicense"
] | null | null | null |
binding.gyp
|
AdjacentDoor/node-native-simple
|
76dd04e9e8d765a1b258e35072e84b07bb137572
|
[
"MIT",
"Unlicense"
] | null | null | null |
{
'targets':[
{
'target_name': 'native_module',
'sources': [
'src/native_module.cc',
'src/native.cc'
],
'conditions': [
['OS=="linux"', {
'cflags_cc': [ '-std=c++0x' ]
}]
]
}
]
}
| 19.764706
| 49
| 0.294643
| 21
| 336
| 4.52381
| 0.714286
| 0.252632
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00641
| 0.535714
| 336
| 16
| 50
| 21
| 0.602564
| 0
| 0
| 0
| 0
| 0
| 0.330357
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
a0ec9d2792b50facc716772b4a1ae37bf6607a82
| 28
|
py
|
Python
|
modules/2.79/bpy/types/Lamp.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/Lamp.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
modules/2.79/bpy/types/Lamp.py
|
cmbasnett/fake-bpy-module
|
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
|
[
"MIT"
] | null | null | null |
Lamp.texture_slots = None
| 7
| 25
| 0.75
| 4
| 28
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 28
| 3
| 26
| 9.333333
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
9d25d5efd8c04b539802bbe550f658b8badc9d48
| 58
|
py
|
Python
|
Problem144.py
|
Cleancode404/ProjectEuler
|
2f93b256b107bfb6a395b8aa197cfeacc599b00b
|
[
"MIT"
] | null | null | null |
Problem144.py
|
Cleancode404/ProjectEuler
|
2f93b256b107bfb6a395b8aa197cfeacc599b00b
|
[
"MIT"
] | null | null | null |
Problem144.py
|
Cleancode404/ProjectEuler
|
2f93b256b107bfb6a395b8aa197cfeacc599b00b
|
[
"MIT"
] | null | null | null |
"""
Investigating multiple reflections of a laser beam
"""
| 19.333333
| 50
| 0.758621
| 7
| 58
| 6.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 58
| 3
| 51
| 19.333333
| 0.88
| 0.862069
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
19b4ec67a2ad051c49d19c9c20cdbeacbc1c0f50
| 761
|
py
|
Python
|
RunIt/app/models/task_models.py
|
antx-code/funcode
|
a8a9b99274e169562771b488a3a9551277ef4b99
|
[
"MIT"
] | 3
|
2021-09-27T08:07:07.000Z
|
2022-03-11T04:46:30.000Z
|
RunIt/app/models/task_models.py
|
antx-code/funcode
|
a8a9b99274e169562771b488a3a9551277ef4b99
|
[
"MIT"
] | null | null | null |
RunIt/app/models/task_models.py
|
antx-code/funcode
|
a8a9b99274e169562771b488a3a9551277ef4b99
|
[
"MIT"
] | null | null | null |
from pydantic import BaseModel
from typing import Optional
import time
class TaskLists(BaseModel):
page: int
size: int
class TaskCreate(BaseModel):
room: int
task_name: Optional[str] = f'RUNIT-{int(time.time())}'
mode: str = 'record'
class TaskStopDelete(BaseModel):
task_id: str
class PokerModel(BaseModel):
head: Optional[list] = [None, None, None]
mid: Optional[list] = [None, None, None, None, None]
tail: Optional[list] = [None, None, None, None, None]
drop: Optional[list] = [None, None, None, None]
class RecordModel(BaseModel):
local: PokerModel
player1: PokerModel
player1: Optional[PokerModel]
class AppStorageRecord(BaseModel):
task_id: str
room: int
status: str
record: dict
| 23.060606
| 58
| 0.683311
| 94
| 761
| 5.5
| 0.382979
| 0.201161
| 0.208897
| 0.154739
| 0.224371
| 0.17795
| 0.123791
| 0
| 0
| 0
| 0
| 0.0033
| 0.203679
| 761
| 32
| 59
| 23.78125
| 0.849835
| 0
| 0
| 0.153846
| 0
| 0
| 0.039422
| 0.031537
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.115385
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
19cf6dfec000be47225b0d5a6bffc665e934dccb
| 69
|
py
|
Python
|
World 1/Modules/ex021 - Playing Songs.py
|
MiguelChichorro/PythonExercises
|
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
|
[
"MIT"
] | 2
|
2021-04-23T19:18:06.000Z
|
2021-05-15T17:45:21.000Z
|
World 1/Modules/ex021 - Playing Songs.py
|
MiguelChichorro/PythonExercises
|
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
|
[
"MIT"
] | 1
|
2021-05-14T00:29:23.000Z
|
2021-05-14T00:29:23.000Z
|
World 1/Modules/ex021 - Playing Songs.py
|
MiguelChichorro/PythonExercises
|
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
|
[
"MIT"
] | 1
|
2021-05-14T00:19:33.000Z
|
2021-05-14T00:19:33.000Z
|
from playsound import playsound
playsound('../../Implements/la.mp3')
| 23
| 36
| 0.753623
| 8
| 69
| 6.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015625
| 0.072464
| 69
| 2
| 37
| 34.5
| 0.796875
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
19ea4b3a65c3bad9f690a991f8b80c738be592c9
| 92
|
py
|
Python
|
python/testData/inspections/PyStringFormatInspection/NewStylePositionalSubstitutionWithDictArg.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/inspections/PyStringFormatInspection/NewStylePositionalSubstitutionWithDictArg.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/inspections/PyStringFormatInspection/NewStylePositionalSubstitutionWithDictArg.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
print(<warning descr="Too few arguments for format string">'{}'</warning>.format(foo='foo'))
| 92
| 92
| 0.717391
| 13
| 92
| 5.076923
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065217
| 92
| 1
| 92
| 92
| 0.767442
| 0
| 0
| 0
| 0
| 0
| 0.430108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.