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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98b885f1b9eb2153dd880f99bd878e13ddc4ca0e
| 81
|
py
|
Python
|
naeval/norm/datasets/__init__.py
|
sdspieg/naeval
|
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
|
[
"MIT"
] | 36
|
2020-03-22T09:37:10.000Z
|
2022-01-17T14:49:30.000Z
|
naeval/norm/datasets/__init__.py
|
sdspieg/naeval
|
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
|
[
"MIT"
] | 11
|
2020-03-25T09:39:45.000Z
|
2020-08-16T05:37:02.000Z
|
naeval/norm/datasets/__init__.py
|
sdspieg/naeval
|
52c4a508bf212b95d4e610cfe1b5e23b8ca94d2f
|
[
"MIT"
] | 6
|
2020-05-16T05:52:04.000Z
|
2022-01-16T06:45:29.000Z
|
from .bsnlp import load_bsnlp # noqa
from .persons import load_persons # noqa
| 20.25
| 41
| 0.765432
| 12
| 81
| 5
| 0.5
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185185
| 81
| 3
| 42
| 27
| 0.909091
| 0.111111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7f50fd424f4a7fff6675e48331bbf784d65fa589
| 397
|
py
|
Python
|
logdweb/forms.py
|
hiidef/logdweb
|
c80d47f4c5759cadeb3088b9f7fa093c30e11696
|
[
"MIT"
] | 1
|
2015-08-30T02:36:13.000Z
|
2015-08-30T02:36:13.000Z
|
logdweb/forms.py
|
hiidef/logdweb
|
c80d47f4c5759cadeb3088b9f7fa093c30e11696
|
[
"MIT"
] | null | null | null |
logdweb/forms.py
|
hiidef/logdweb
|
c80d47f4c5759cadeb3088b9f7fa093c30e11696
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""logdweb forms"""
from django.forms import *
class CreatePageForm(Form):
name = CharField(max_length=50)
class ColorNameForm(Form):
stat = CharField(max_length=30)
color = CharField(max_length=10)
class ColorStatsForm(Form):
name = CharField(max_length=30)
color = CharField(max_length=30)
class ChartForm(Form):
pass
| 18.045455
| 36
| 0.692695
| 51
| 397
| 5.294118
| 0.54902
| 0.222222
| 0.333333
| 0.222222
| 0.444444
| 0.318519
| 0.318519
| 0.318519
| 0
| 0
| 0
| 0.033435
| 0.171285
| 397
| 21
| 37
| 18.904762
| 0.787234
| 0.141058
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.090909
| 0.090909
| 0
| 0.909091
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
f69362c8e53efb7e2fecf441d12805e528ccf267
| 188
|
py
|
Python
|
util/tokenizer/base_tokenizer.py
|
Kimgijoon/Product-recommendation-system
|
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
|
[
"Apache-2.0"
] | 2
|
2021-04-03T13:32:55.000Z
|
2021-04-04T07:20:12.000Z
|
util/tokenizer/base_tokenizer.py
|
Kimgijoon/Product-recommendation-system
|
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
|
[
"Apache-2.0"
] | null | null | null |
util/tokenizer/base_tokenizer.py
|
Kimgijoon/Product-recommendation-system
|
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
|
[
"Apache-2.0"
] | null | null | null |
from abc import abstractmethod
from typing import List
class BaseTokenizer(object):
"""tokenizer meta class"""
@abstractmethod
def tokenize(self, text: str) -> List[str]:
pass
| 18.8
| 45
| 0.723404
| 23
| 188
| 5.913043
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175532
| 188
| 9
| 46
| 20.888889
| 0.877419
| 0.106383
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.166667
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
f6a218a53ac1edd1067e3e1d89028beb187d4302
| 47
|
py
|
Python
|
football/__init__.py
|
Zebfred/DS-OOP-Review
|
e44577d145f40039457793caa484016443bb39c6
|
[
"MIT"
] | null | null | null |
football/__init__.py
|
Zebfred/DS-OOP-Review
|
e44577d145f40039457793caa484016443bb39c6
|
[
"MIT"
] | null | null | null |
football/__init__.py
|
Zebfred/DS-OOP-Review
|
e44577d145f40039457793caa484016443bb39c6
|
[
"MIT"
] | 4
|
2019-12-04T22:35:09.000Z
|
2020-01-21T08:53:34.000Z
|
"""
Still empty, but will keep you updated
"""
| 15.666667
| 39
| 0.659574
| 7
| 47
| 4.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191489
| 47
| 3
| 40
| 15.666667
| 0.815789
| 0.808511
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f6a6f92bdae1e2320d7606a320a1b644f61b3a4d
| 191
|
py
|
Python
|
python_tuto_variables.py
|
khinthandarkyaw98/Python_Practice
|
9b431129c79315a57dae81048a22bf85c4b5132c
|
[
"MIT"
] | null | null | null |
python_tuto_variables.py
|
khinthandarkyaw98/Python_Practice
|
9b431129c79315a57dae81048a22bf85c4b5132c
|
[
"MIT"
] | null | null | null |
python_tuto_variables.py
|
khinthandarkyaw98/Python_Practice
|
9b431129c79315a57dae81048a22bf85c4b5132c
|
[
"MIT"
] | null | null | null |
# global variables
x = "awesome"
def myfunc():
print("Python is " + x)
myfunc()
print("Python is " + x)
# Global Keyword
def func():
global x
x = "fantastic"
func()
| 10.611111
| 25
| 0.560209
| 24
| 191
| 4.458333
| 0.5
| 0.205607
| 0.317757
| 0.35514
| 0.373832
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.293194
| 191
| 18
| 26
| 10.611111
| 0.792593
| 0.162304
| 0
| 0.222222
| 0
| 0
| 0.255319
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0
| 0
| 0.222222
| 0.222222
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f6c11c4d0de6932b651c3860ae6be6b7daceb829
| 321
|
py
|
Python
|
game_exceptions.py
|
thomasmarlow/chessterisk
|
be759474c550584949cb189cb6817fbee32304d9
|
[
"MIT"
] | null | null | null |
game_exceptions.py
|
thomasmarlow/chessterisk
|
be759474c550584949cb189cb6817fbee32304d9
|
[
"MIT"
] | null | null | null |
game_exceptions.py
|
thomasmarlow/chessterisk
|
be759474c550584949cb189cb6817fbee32304d9
|
[
"MIT"
] | null | null | null |
class NoSuchPlayerInGame(Exception):
pass
class GameIsFull(Exception):
pass
class NoSuchColor(Exception):
pass
class ThisPieceCantMoveThere(Exception):
pass
class InvalidStringCoordinates(Exception):
pass
class NoSuchPieceSubtype(Exception):
pass
class NotThisColorsTurn(Exception):
pass
| 16.05
| 42
| 0.766355
| 28
| 321
| 8.785714
| 0.357143
| 0.369919
| 0.439024
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168224
| 321
| 20
| 43
| 16.05
| 0.921348
| 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
| 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
| 5
|
f6da820c4abc9ef5201cde172e227e1dceff3e33
| 117
|
py
|
Python
|
main.py
|
cgmon/code-challenge
|
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
cgmon/code-challenge
|
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
|
[
"Apache-2.0"
] | null | null | null |
main.py
|
cgmon/code-challenge
|
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
|
[
"Apache-2.0"
] | 1
|
2021-02-26T08:22:11.000Z
|
2021-02-26T08:22:11.000Z
|
from utils import lazy_iterator, iterator
import sys
if("-s" in sys.argv):
lazy_iterator()
else:
iterator()
| 16.714286
| 42
| 0.700855
| 17
| 117
| 4.705882
| 0.647059
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.188034
| 117
| 7
| 43
| 16.714286
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f6da904f7f681efcd992cf44a70eccaeb7874412
| 133
|
py
|
Python
|
random/d.py
|
tjguk/winsys
|
346a5bc0ad74f3f70b1099e714b544a6f008b72c
|
[
"MIT"
] | 51
|
2015-01-14T09:23:48.000Z
|
2021-11-08T12:53:54.000Z
|
random/d.py
|
tjguk/winsys
|
346a5bc0ad74f3f70b1099e714b544a6f008b72c
|
[
"MIT"
] | 2
|
2019-05-30T12:34:40.000Z
|
2020-06-13T20:00:55.000Z
|
random/d.py
|
tjguk/winsys
|
346a5bc0ad74f3f70b1099e714b544a6f008b72c
|
[
"MIT"
] | 15
|
2015-04-21T19:48:48.000Z
|
2020-07-29T19:30:43.000Z
|
#!python3
import os, sys
print(sys.executable)
from winsys import fs, dialogs
print(dialogs.dialog("abc", ("def", ["1", "2", "3"])))
| 22.166667
| 54
| 0.661654
| 20
| 133
| 4.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033898
| 0.112782
| 133
| 5
| 55
| 26.6
| 0.711864
| 0.06015
| 0
| 0
| 0
| 0
| 0.072581
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
f6de152204ab9a0e887e32daa4b8b1a96f2cbbad
| 37
|
py
|
Python
|
login.py
|
JOHN-XW/test007
|
4aa258010591c2f697fa40fc28dcaa28fe83a893
|
[
"MIT"
] | null | null | null |
login.py
|
JOHN-XW/test007
|
4aa258010591c2f697fa40fc28dcaa28fe83a893
|
[
"MIT"
] | null | null | null |
login.py
|
JOHN-XW/test007
|
4aa258010591c2f697fa40fc28dcaa28fe83a893
|
[
"MIT"
] | null | null | null |
num1=1
num2=2
num3=3
num4=4
num5=100
| 6.166667
| 8
| 0.72973
| 10
| 37
| 2.7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.375
| 0.135135
| 37
| 5
| 9
| 7.4
| 0.46875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
63d7d272c033f8694a10b24b5f90bdd7dd750995
| 107
|
py
|
Python
|
apps/porteiros/admin.py
|
franric/Controle-Visitante
|
5ca0c423885167c9d096e6f7ee48d238e64566f3
|
[
"MIT"
] | null | null | null |
apps/porteiros/admin.py
|
franric/Controle-Visitante
|
5ca0c423885167c9d096e6f7ee48d238e64566f3
|
[
"MIT"
] | null | null | null |
apps/porteiros/admin.py
|
franric/Controle-Visitante
|
5ca0c423885167c9d096e6f7ee48d238e64566f3
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from apps.porteiros.models import Porteiro
admin.site.register(Porteiro)
| 21.4
| 42
| 0.841121
| 15
| 107
| 6
| 0.733333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093458
| 107
| 4
| 43
| 26.75
| 0.927835
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
63ebf4963d4204c8dbbe68d7553ace82df66b666
| 27
|
py
|
Python
|
robot2019-ros/tes.py
|
junhuizhou/ROS_Learning
|
bb3a0c867ba2bd147bbd59176cf1224c09a63914
|
[
"MIT"
] | null | null | null |
robot2019-ros/tes.py
|
junhuizhou/ROS_Learning
|
bb3a0c867ba2bd147bbd59176cf1224c09a63914
|
[
"MIT"
] | 1
|
2021-05-07T07:30:11.000Z
|
2021-05-07T07:30:11.000Z
|
robot2019-ros/tes.py
|
junhuizhou/ROS_Learning
|
bb3a0c867ba2bd147bbd59176cf1224c09a63914
|
[
"MIT"
] | null | null | null |
iii
fff
ff
qqqq
'fenzhi'
| 3.375
| 8
| 0.666667
| 5
| 27
| 3.6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.259259
| 27
| 7
| 9
| 3.857143
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
122d72a559d873a88dff7bb5b54a57ab59446d18
| 97
|
py
|
Python
|
tests/inline_test_resources/5/subA/script.py
|
thesynman/pybricksdev
|
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
|
[
"MIT"
] | null | null | null |
tests/inline_test_resources/5/subA/script.py
|
thesynman/pybricksdev
|
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
|
[
"MIT"
] | null | null | null |
tests/inline_test_resources/5/subA/script.py
|
thesynman/pybricksdev
|
6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9
|
[
"MIT"
] | null | null | null |
import subB.importA
import importB
my_local = 'ggg'
print(subB.importA.foo)
print(importB.flab)
| 13.857143
| 23
| 0.783505
| 15
| 97
| 5
| 0.666667
| 0.293333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103093
| 97
| 6
| 24
| 16.166667
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0.030928
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 0.4
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
124edb12bc0b4f9c7c2db07a2a02bfd911251b8c
| 315
|
py
|
Python
|
ares/phenom/__init__.py
|
jlashner/ares
|
6df2b676ded6bd59082a531641cb1dadd475c8a8
|
[
"MIT"
] | null | null | null |
ares/phenom/__init__.py
|
jlashner/ares
|
6df2b676ded6bd59082a531641cb1dadd475c8a8
|
[
"MIT"
] | null | null | null |
ares/phenom/__init__.py
|
jlashner/ares
|
6df2b676ded6bd59082a531641cb1dadd475c8a8
|
[
"MIT"
] | 1
|
2021-06-16T23:13:56.000Z
|
2021-06-16T23:13:56.000Z
|
from ares.phenom.Tanh21cm import Tanh21cm
from ares.phenom.OpticalDepth import Madau1995
from ares.phenom.Gaussian21cm import Gaussian21cm
from ares.phenom.DustCorrection import DustCorrection
from ares.phenom.Parametric21cm import Parametric21cm
from ares.phenom.ParameterizedQuantity import ParameterizedQuantity
| 45
| 67
| 0.885714
| 36
| 315
| 7.75
| 0.305556
| 0.172043
| 0.301075
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054983
| 0.07619
| 315
| 6
| 68
| 52.5
| 0.90378
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
89c3b7ade106d6f5c8c31707197352a51ca80f2c
| 166
|
py
|
Python
|
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
|
bigr-erasmusmc/StrongR
|
48573e170771a251f629f2d13dba7173f010a38c
|
[
"Apache-2.0"
] | null | null | null |
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
|
bigr-erasmusmc/StrongR
|
48573e170771a251f629f2d13dba7173f010a38c
|
[
"Apache-2.0"
] | null | null | null |
strongr/schedulerdomain/model/scalingdrivers/abstract/abstractscalein.py
|
bigr-erasmusmc/StrongR
|
48573e170771a251f629f2d13dba7173f010a38c
|
[
"Apache-2.0"
] | null | null | null |
from abc import ABCMeta, abstractmethod
class AbstractScaleIn(object):
__metaclass__ = ABCMeta
@abstractmethod
def scalein(self, command):
pass
| 18.444444
| 39
| 0.716867
| 16
| 166
| 7.1875
| 0.875
| 0.365217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222892
| 166
| 8
| 40
| 20.75
| 0.891473
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.166667
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
89d409645521caf21089344eee4ad88ca9bce9a6
| 146
|
py
|
Python
|
dendrogenous/test/test_functional.py
|
fmaguire/dendrogenous
|
56beedf15cfffa35ab64ec088a10af7309faeb83
|
[
"BSD-3-Clause"
] | null | null | null |
dendrogenous/test/test_functional.py
|
fmaguire/dendrogenous
|
56beedf15cfffa35ab64ec088a10af7309faeb83
|
[
"BSD-3-Clause"
] | null | null | null |
dendrogenous/test/test_functional.py
|
fmaguire/dendrogenous
|
56beedf15cfffa35ab64ec088a10af7309faeb83
|
[
"BSD-3-Clause"
] | null | null | null |
from dendrogenous.test.base import BaseTestCase
class testFunctionalDendrogenous(BaseTestCase):
"""
Functional test of full run
"""
| 18.25
| 47
| 0.739726
| 14
| 146
| 7.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184932
| 146
| 7
| 48
| 20.857143
| 0.907563
| 0.184932
| 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
| 1
| 0
|
0
| 5
|
89f111936bad03aca0486268dcb26a7ace32001a
| 52
|
py
|
Python
|
PythonProjects/23-TkinterCommunication/src/main2.py
|
much2mutch/csse120-public
|
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
|
[
"MIT"
] | null | null | null |
PythonProjects/23-TkinterCommunication/src/main2.py
|
much2mutch/csse120-public
|
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
|
[
"MIT"
] | null | null | null |
PythonProjects/23-TkinterCommunication/src/main2.py
|
much2mutch/csse120-public
|
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
|
[
"MIT"
] | null | null | null |
import m1e_communication
m1e_communication.main(2)
| 13
| 25
| 0.865385
| 7
| 52
| 6.142857
| 0.714286
| 0.744186
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0.076923
| 52
| 3
| 26
| 17.333333
| 0.833333
| 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 | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d60929790eb33c556b8ac1934f6844896e136e3a
| 81
|
py
|
Python
|
version.py
|
DMcP89/yahoo-oauth
|
0153be8c7d03c4ab6634fce8c619e4292019f565
|
[
"MIT"
] | 61
|
2015-06-01T08:03:02.000Z
|
2021-09-25T14:39:46.000Z
|
version.py
|
DMcP89/yahoo-oauth
|
0153be8c7d03c4ab6634fce8c619e4292019f565
|
[
"MIT"
] | 28
|
2015-06-01T08:03:30.000Z
|
2021-09-27T23:08:16.000Z
|
version.py
|
DMcP89/yahoo-oauth
|
0153be8c7d03c4ab6634fce8c619e4292019f565
|
[
"MIT"
] | 19
|
2015-06-06T15:31:28.000Z
|
2021-05-23T02:59:31.000Z
|
# Do not edit this file, pipeline versioning is governed by git tags
__version__=
| 40.5
| 68
| 0.802469
| 13
| 81
| 4.692308
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 81
| 2
| 69
| 40.5
| 0.897059
| 0.814815
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
d62bdce02dfde4fdc7a6daa118d20a03c2cdd67f
| 47
|
py
|
Python
|
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
|
resolutedreamer/EE199
|
4a18ca64cc414fd33f35794cea2abc8d7c224deb
|
[
"Apache-2.0"
] | null | null | null |
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
|
resolutedreamer/EE199
|
4a18ca64cc414fd33f35794cea2abc8d7c224deb
|
[
"Apache-2.0"
] | null | null | null |
src/TEMPer_USB/temper-python-master/temperusb/__init__.py
|
resolutedreamer/EE199
|
4a18ca64cc414fd33f35794cea2abc8d7c224deb
|
[
"Apache-2.0"
] | null | null | null |
from temper import TemperDevice, TemperHandler
| 23.5
| 46
| 0.87234
| 5
| 47
| 8.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106383
| 47
| 1
| 47
| 47
| 0.97619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
c38ce11c9e42c5f4b8653751b56d5c8f4e4e9b17
| 6,695
|
py
|
Python
|
pluralforms.py
|
might-and-magic/mm678_i18n
|
ddc37c743ac37169908641dcd5328a7ccae5138f
|
[
"MIT"
] | 17
|
2020-02-25T14:37:23.000Z
|
2022-02-21T15:33:09.000Z
|
pluralforms.py
|
tomchen/csv2po
|
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
|
[
"MIT"
] | 1
|
2022-01-09T02:14:56.000Z
|
2022-02-13T10:08:11.000Z
|
pluralforms.py
|
tomchen/csv2po
|
75e53fbc5c473b16e8dac153ee99793fad0cd5d0
|
[
"MIT"
] | 3
|
2020-10-06T20:38:13.000Z
|
2021-02-17T02:11:17.000Z
|
# The list is from http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
pluralforms = {
'ay': 'nplurals=1; plural=0;',
'bo': 'nplurals=1; plural=0;',
'cgg': 'nplurals=1; plural=0;',
'dz': 'nplurals=1; plural=0;',
'id': 'nplurals=1; plural=0;',
'ja': 'nplurals=1; plural=0;',
'jbo': 'nplurals=1; plural=0;',
'ka': 'nplurals=1; plural=0;',
'km': 'nplurals=1; plural=0;',
'ko': 'nplurals=1; plural=0;',
'lo': 'nplurals=1; plural=0;',
'ms': 'nplurals=1; plural=0;',
'my': 'nplurals=1; plural=0;',
'sah': 'nplurals=1; plural=0;',
'su': 'nplurals=1; plural=0;',
'th': 'nplurals=1; plural=0;',
'tt': 'nplurals=1; plural=0;',
'ug': 'nplurals=1; plural=0;',
'vi': 'nplurals=1; plural=0;',
'wo': 'nplurals=1; plural=0;',
'zh': 'nplurals=1; plural=0;',
'mk': 'nplurals=2; plural= n==1 || n%10==1 ? 0 : 1;',
'jv': 'nplurals=2; plural=(n != 0);',
'af': 'nplurals=2; plural=(n != 1);',
'an': 'nplurals=2; plural=(n != 1);',
'anp': 'nplurals=2; plural=(n != 1);',
'as': 'nplurals=2; plural=(n != 1);',
'ast': 'nplurals=2; plural=(n != 1);',
'az': 'nplurals=2; plural=(n != 1);',
'bg': 'nplurals=2; plural=(n != 1);',
'bn': 'nplurals=2; plural=(n != 1);',
'brx': 'nplurals=2; plural=(n != 1);',
'ca': 'nplurals=2; plural=(n != 1);',
'da': 'nplurals=2; plural=(n != 1);',
'de': 'nplurals=2; plural=(n != 1);',
'doi': 'nplurals=2; plural=(n != 1);',
'el': 'nplurals=2; plural=(n != 1);',
'en': 'nplurals=2; plural=(n != 1);',
'eo': 'nplurals=2; plural=(n != 1);',
'es': 'nplurals=2; plural=(n != 1);',
'es_AR': 'nplurals=2; plural=(n != 1);',
'et': 'nplurals=2; plural=(n != 1);',
'eu': 'nplurals=2; plural=(n != 1);',
'ff': 'nplurals=2; plural=(n != 1);',
'fi': 'nplurals=2; plural=(n != 1);',
'fo': 'nplurals=2; plural=(n != 1);',
'fur': 'nplurals=2; plural=(n != 1);',
'fy': 'nplurals=2; plural=(n != 1);',
'gl': 'nplurals=2; plural=(n != 1);',
'gu': 'nplurals=2; plural=(n != 1);',
'ha': 'nplurals=2; plural=(n != 1);',
'he': 'nplurals=2; plural=(n != 1);',
'hi': 'nplurals=2; plural=(n != 1);',
'hne': 'nplurals=2; plural=(n != 1);',
'hu': 'nplurals=2; plural=(n != 1);',
'hy': 'nplurals=2; plural=(n != 1);',
'ia': 'nplurals=2; plural=(n != 1);',
'it': 'nplurals=2; plural=(n != 1);',
'kk': 'nplurals=2; plural=(n != 1);',
'kl': 'nplurals=2; plural=(n != 1);',
'kn': 'nplurals=2; plural=(n != 1);',
'ku': 'nplurals=2; plural=(n != 1);',
'ky': 'nplurals=2; plural=(n != 1);',
'lb': 'nplurals=2; plural=(n != 1);',
'mai': 'nplurals=2; plural=(n != 1);',
'ml': 'nplurals=2; plural=(n != 1);',
'mn': 'nplurals=2; plural=(n != 1);',
'mni': 'nplurals=2; plural=(n != 1);',
'mr': 'nplurals=2; plural=(n != 1);',
'nah': 'nplurals=2; plural=(n != 1);',
'nap': 'nplurals=2; plural=(n != 1);',
'nb': 'nplurals=2; plural=(n != 1);',
'ne': 'nplurals=2; plural=(n != 1);',
'nl': 'nplurals=2; plural=(n != 1);',
'nn': 'nplurals=2; plural=(n != 1);',
'no': 'nplurals=2; plural=(n != 1);',
'nso': 'nplurals=2; plural=(n != 1);',
'or': 'nplurals=2; plural=(n != 1);',
'pa': 'nplurals=2; plural=(n != 1);',
'pap': 'nplurals=2; plural=(n != 1);',
'pms': 'nplurals=2; plural=(n != 1);',
'ps': 'nplurals=2; plural=(n != 1);',
'pt': 'nplurals=2; plural=(n != 1);',
'rm': 'nplurals=2; plural=(n != 1);',
'rw': 'nplurals=2; plural=(n != 1);',
'sat': 'nplurals=2; plural=(n != 1);',
'sco': 'nplurals=2; plural=(n != 1);',
'sd': 'nplurals=2; plural=(n != 1);',
'se': 'nplurals=2; plural=(n != 1);',
'si': 'nplurals=2; plural=(n != 1);',
'so': 'nplurals=2; plural=(n != 1);',
'son': 'nplurals=2; plural=(n != 1);',
'sq': 'nplurals=2; plural=(n != 1);',
'sv': 'nplurals=2; plural=(n != 1);',
'sw': 'nplurals=2; plural=(n != 1);',
'ta': 'nplurals=2; plural=(n != 1);',
'te': 'nplurals=2; plural=(n != 1);',
'tk': 'nplurals=2; plural=(n != 1);',
'ur': 'nplurals=2; plural=(n != 1);',
'yo': 'nplurals=2; plural=(n != 1);',
'ach': 'nplurals=2; plural=(n > 1);',
'ak': 'nplurals=2; plural=(n > 1);',
'am': 'nplurals=2; plural=(n > 1);',
'arn': 'nplurals=2; plural=(n > 1);',
'br': 'nplurals=2; plural=(n > 1);',
'fa': 'nplurals=2; plural=(n > 1);',
'fil': 'nplurals=2; plural=(n > 1);',
'fr': 'nplurals=2; plural=(n > 1);',
'gun': 'nplurals=2; plural=(n > 1);',
'ln': 'nplurals=2; plural=(n > 1);',
'mfe': 'nplurals=2; plural=(n > 1);',
'mg': 'nplurals=2; plural=(n > 1);',
'mi': 'nplurals=2; plural=(n > 1);',
'oc': 'nplurals=2; plural=(n > 1);',
'pt_BR': 'nplurals=2; plural=(n > 1);',
'tg': 'nplurals=2; plural=(n > 1);',
'ti': 'nplurals=2; plural=(n > 1);',
'tr': 'nplurals=2; plural=(n > 1);',
'uz': 'nplurals=2; plural=(n > 1);',
'wa': 'nplurals=2; plural=(n > 1);',
'is': 'nplurals=2; plural=(n%10!=1 || n%100==11);',
'lv': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);',
'lt': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);',
'be': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'bs': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'hr': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'ru': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'sr': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'uk': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'mnk': 'nplurals=3; plural=(n==0 ? 0 : n==1 ? 1 : 2);',
'ro': 'nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);',
'pl': 'nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);',
'cs': 'nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;',
'sk': 'nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;',
'csb': 'nplurals=3; plural=(n==1) ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;',
'me': 'nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;',
'sl': 'nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);',
'mt': 'nplurals=4; plural=(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3);',
'gd': 'nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3;',
'cy': 'nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3;',
'kw': 'nplurals=4; plural=(n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : 3;',
'ga': 'nplurals=5; plural=n==1 ? 0 : n==2 ? 1 : (n>2 && n<7) ? 2 :(n>6 && n<11) ? 3 : 4;',
'ar': 'nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5);'
}
| 45.544218
| 111
| 0.494548
| 1,181
| 6,695
| 2.801863
| 0.145639
| 0.258084
| 0.261106
| 0.48353
| 0.729223
| 0.243578
| 0.2055
| 0.187972
| 0.171049
| 0.171049
| 0
| 0.119573
| 0.146826
| 6,695
| 147
| 112
| 45.544218
| 0.459734
| 0.015982
| 0
| 0
| 0
| 0.144828
| 0.82344
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
c3ec56e1c8af0f7d9f9d9a7aa6021e37dc6a449a
| 139
|
py
|
Python
|
robust_loss/robust_loss_pytorch/__init__.py
|
danieltudosiu/nmpevqvae
|
c4b96f391ddbe143b2a1e1e445890cee0da271e7
|
[
"MIT"
] | 8
|
2020-03-20T14:52:29.000Z
|
2022-03-04T03:26:45.000Z
|
robust_loss/robust_loss_pytorch/__init__.py
|
ctr26/nmpevqvae
|
c4b96f391ddbe143b2a1e1e445890cee0da271e7
|
[
"MIT"
] | 5
|
2021-04-30T21:13:08.000Z
|
2022-01-13T02:24:31.000Z
|
robust_loss/robust_loss_pytorch/__init__.py
|
ctr26/nmpevqvae
|
c4b96f391ddbe143b2a1e1e445890cee0da271e7
|
[
"MIT"
] | 5
|
2020-04-03T09:56:13.000Z
|
2022-02-25T13:24:03.000Z
|
from .adaptive import (
AdaptiveLossFunction,
StudentsTLossFunction,
AdaptiveImageLossFunction,
)
from .general import lossfun
| 19.857143
| 30
| 0.776978
| 10
| 139
| 10.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172662
| 139
| 6
| 31
| 23.166667
| 0.93913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
c3f3a3c934b982bed6554dc3bf5e9530583b0559
| 100
|
py
|
Python
|
dojopuzzles/problems/admin.py
|
rodbv/dojopuzzles
|
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
|
[
"MIT"
] | 27
|
2015-03-26T15:29:16.000Z
|
2020-01-01T16:13:44.000Z
|
dojopuzzles/problems/admin.py
|
rodbv/dojopuzzles
|
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
|
[
"MIT"
] | 23
|
2020-08-13T12:33:59.000Z
|
2021-05-05T18:31:29.000Z
|
dojopuzzles/problems/admin.py
|
rodbv/dojopuzzles
|
71d76218a8d5ba6340c384c65d0ab1913f72a5cf
|
[
"MIT"
] | 13
|
2020-08-13T12:51:59.000Z
|
2021-11-09T23:52:54.000Z
|
from django.contrib import admin
from problems.models import Problem
admin.site.register(Problem)
| 16.666667
| 35
| 0.83
| 14
| 100
| 5.928571
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11
| 100
| 5
| 36
| 20
| 0.932584
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
617041d0e30c332e98269360d1d57e46d26d1bed
| 57
|
py
|
Python
|
trading.py
|
samanbalahang/tradingBot
|
9432c813957a64808058637f3409160ad8e6dcab
|
[
"MIT"
] | null | null | null |
trading.py
|
samanbalahang/tradingBot
|
9432c813957a64808058637f3409160ad8e6dcab
|
[
"MIT"
] | null | null | null |
trading.py
|
samanbalahang/tradingBot
|
9432c813957a64808058637f3409160ad8e6dcab
|
[
"MIT"
] | null | null | null |
from driver import driver
driver.printWhatIneed(driver)
| 14.25
| 29
| 0.842105
| 7
| 57
| 6.857143
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 57
| 3
| 30
| 19
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
617706d9af1528050554eb4adddf06173dba8150
| 1,016
|
py
|
Python
|
colors.py
|
roralsorom/hfdoyedu
|
2281a7f98d20d9aae451d245df6a3310327f8988
|
[
"MIT"
] | null | null | null |
colors.py
|
roralsorom/hfdoyedu
|
2281a7f98d20d9aae451d245df6a3310327f8988
|
[
"MIT"
] | null | null | null |
colors.py
|
roralsorom/hfdoyedu
|
2281a7f98d20d9aae451d245df6a3310327f8988
|
[
"MIT"
] | null | null | null |
import platform, os
try:
if platform.system() == 'Windows':
os.system('cls')
else:
os.system('clear')
except:
pass
# Foreground colors
def black():
return '\u001b[30;1m'
def red():
return '\u001b[31;1m'
def green():
return '\u001b[32;1m'
def yellow():
return '\u001b[33;1m'
def blue():
return '\u001b[34;1m'
def magenta():
return '\u001b[35;1m'
def cyan():
return '\u001b[36;1m'
def white():
return '\u001b[37;1m'
def reset():
return '\u001b[0m'
# Background colors
def b_black():
return '\u001b[40;1m'
def b_red():
return '\u001b[41;1m'
def b_green():
return '\u001b[42;1m'
def b_yellow():
return '\u001b[43;1m'
def b_blue():
return '\u001b[44;1m'
def b_magenta():
return '\u001b[45;1m'
def b_cyan():
return '\u001b[46;1m'
def b_white():
return '\u001b[47;1m'
if __name__ == '__main__':
print('You are not supposed to run this program.\nThis was made to be a module.')
os.system('pause >NUL')
| 15.393939
| 85
| 0.600394
| 153
| 1,016
| 3.882353
| 0.424837
| 0.314815
| 0.070707
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127065
| 0.225394
| 1,016
| 66
| 86
| 15.393939
| 0.6277
| 0.034449
| 0
| 0
| 0
| 0
| 0.312564
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.377778
| true
| 0.022222
| 0.022222
| 0.377778
| 0.777778
| 0.022222
| 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
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
619ac3477b76575f17b9d296fa87950aefd73474
| 91
|
py
|
Python
|
enthought/envisage/i_application.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/envisage/i_application.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/envisage/i_application.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from envisage.i_application import *
| 22.75
| 38
| 0.846154
| 12
| 91
| 5.916667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.120879
| 91
| 3
| 39
| 30.333333
| 0.8875
| 0.131868
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
61c1095b36ced7182f84ce6fb98c5966048a181c
| 89
|
py
|
Python
|
FoodScan/ShopSync/Shops/__init__.py
|
danielBreitlauch/FoodScan
|
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
|
[
"MIT"
] | 1
|
2017-03-16T00:59:01.000Z
|
2017-03-16T00:59:01.000Z
|
FoodScan/ShopSync/Shops/__init__.py
|
danielBreitlauch/FoodScan
|
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
|
[
"MIT"
] | null | null | null |
FoodScan/ShopSync/Shops/__init__.py
|
danielBreitlauch/FoodScan
|
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
|
[
"MIT"
] | null | null | null |
from .shop import Shop
from .allyouneed import AllYouNeed
from .kaufland import Kaufland
| 22.25
| 34
| 0.831461
| 12
| 89
| 6.166667
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134831
| 89
| 3
| 35
| 29.666667
| 0.961039
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f60f25b9edeba5d195f1ac85237d350e8bef0818
| 210
|
py
|
Python
|
ABC/ABC134/abc134_b.py
|
yatabis/AtCoder-in-Python3
|
cc2948853b549a6b8f39df5685c9e84cda81499d
|
[
"MIT"
] | null | null | null |
ABC/ABC134/abc134_b.py
|
yatabis/AtCoder-in-Python3
|
cc2948853b549a6b8f39df5685c9e84cda81499d
|
[
"MIT"
] | null | null | null |
ABC/ABC134/abc134_b.py
|
yatabis/AtCoder-in-Python3
|
cc2948853b549a6b8f39df5685c9e84cda81499d
|
[
"MIT"
] | null | null | null |
# 問題URL: https://atcoder.jp/contests/abc134/tasks/abc134_b
# 解答URL: https://atcoder.jp/contests/abc134/submissions/24157832
from math import ceil
n, d = map(int, input().split())
print(ceil(n / (2 * d + 1)))
| 26.25
| 64
| 0.7
| 33
| 210
| 4.424242
| 0.727273
| 0.164384
| 0.191781
| 0.30137
| 0.383562
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102151
| 0.114286
| 210
| 7
| 65
| 30
| 0.682796
| 0.566667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f61545386a7fef2d4116c979aa993983f37d1e73
| 1,291
|
py
|
Python
|
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
"""
Module: 'uasyncio.core' on pyboard 1.13.0-95
"""
# MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG')
# Stubber: 1.3.4 - updated
from typing import Any
class CancelledError(Exception):
""""""
class IOQueue:
""""""
def _dequeue(self, *args) -> Any:
pass
def _enqueue(self, *args) -> Any:
pass
def queue_read(self, *args) -> Any:
pass
def queue_write(self, *args) -> Any:
pass
def remove(self, *args) -> Any:
pass
def wait_io_event(self, *args) -> Any:
pass
class Loop:
""""""
_exc_handler = None
def call_exception_handler(self, *args) -> Any:
pass
def close(self, *args) -> Any:
pass
def create_task(self, *args) -> Any:
pass
def default_exception_handler(self, *args) -> Any:
pass
def get_exception_handler(self, *args) -> Any:
pass
def run_forever(self, *args) -> Any:
pass
def run_until_complete(self, *args) -> Any:
pass
def set_exception_handler(self, *args) -> Any:
pass
def stop(self, *args) -> Any:
pass
class SingletonGenerator:
""""""
class Task:
""""""
| 17.445946
| 145
| 0.568552
| 161
| 1,291
| 4.434783
| 0.403727
| 0.168067
| 0.231092
| 0.315126
| 0.495798
| 0.288515
| 0.190476
| 0
| 0
| 0
| 0
| 0.039957
| 0.282727
| 1,291
| 73
| 146
| 17.684932
| 0.731102
| 0.165763
| 0
| 0.405405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.405405
| false
| 0.405405
| 0.027027
| 0
| 0.594595
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
f61e9e34b58ff2774a550e28faa9fff8e5f174d1
| 8,658
|
py
|
Python
|
S4/S4 Library/simulation/bucks/bucks_perk.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | 1
|
2021-05-20T19:33:37.000Z
|
2021-05-20T19:33:37.000Z
|
S4/S4 Library/simulation/bucks/bucks_perk.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
S4/S4 Library/simulation/bucks/bucks_perk.py
|
NeonOcean/Environment
|
ca658cf66e8fd6866c22a4a0136d415705b36d26
|
[
"CC-BY-4.0"
] | null | null | null |
from bucks.bucks_enums import BucksType
from buffs.tunable import TunableBuffReference
from event_testing.tests import TunableTestSetWithTooltip
from interactions.utils.tunable_icon import TunableIconFactory
from rewards.reward_tuning import TunableSpecificReward
from sims4.localization import TunableLocalizedStringFactory, TunableLocalizedString
from sims4.tuning.dynamic_enum import DynamicEnumLocked
from sims4.tuning.instances import TunedInstanceMetaclass
from sims4.tuning.tunable import TunableReference, TunableEnumEntry, Tunable, TunableList, TunableTuple, OptionalTunable, TunableRange, TunableMapping, TunableEnumFlags
from sims4.tuning.tunable_base import GroupNames, ExportModes
import enum
import services
import sims4
logger = sims4.log.Logger('Bucks', default_owner='tastle')
class BucksUIDisplayFlag(enum.IntFlags):
LINK_TOP = 1
class BucksPerkTunables:
PERK_UNLOCKED_TOOLTIP = TunableLocalizedStringFactory(description='\n A tooltip that will be shown on Perks unlocked manually by the user.\n \n Expected Arguments: None.\n ')
LINKED_PERK_UNLOCKED_TOOLTIP = TunableLocalizedStringFactory(description="\n A tooltip that will be shown on Perks unlocked because another Perk's\n linked_perks list referenced them. Lets the user know why this Perk is\n no longer available for purchase even though they never explicitely\n bought it.\n \n Expected Arguments: {0.String} - The display name of the Perk that\n unlocked this one.\n ")
class BucksPerk(metaclass=TunedInstanceMetaclass, manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK)):
INSTANCE_TUNABLES = {'associated_bucks_type': TunableEnumEntry(description='\n The type of Bucks required to unlock this Perk.\n ', tunable_type=BucksType, default=BucksType.INVALID, pack_safe=True, invalid_enums=(BucksType.INVALID,)), 'unlock_cost': Tunable(description='\n How many Bucks of the specified type this Perk costs to unlock.\n ', tunable_type=int, default=100), 'rewards': TunableList(description='\n A list of rewards to grant the household when this Perk is\n unlocked.\n ', tunable=TunableSpecificReward()), 'linked_perks': TunableList(description='\n A list of Perks that will be unlocked along with this one if not\n already unlocked.\n ', tunable=TunableReference(manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK))), 'next_level_perk': TunableReference(description='\n The next perk within this particular chain of perks. \n If tunable is None, then it either does not belong to a chain\n or is the last in the chain.\n ', manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK), allow_none=True), 'temporary_perk_information': OptionalTunable(TunableTuple(description='\n Tunables associated with temporary Perks.\n ', duration=TunableRange(description='\n The tunable number of Sim hours this Perk should last for, if\n temporary.\n ', tunable_type=int, default=1, minimum=1), unlocked_tooltip=OptionalTunable(TunableLocalizedStringFactory(description='\n A tooltip that will be shown on this Perk when unlocked so the\n user knows when they will be able to buy it again. No expected\n arguments.\n ')))), 'display_name': TunableLocalizedStringFactory(description="\n This Perk's display name. No expected arguments.\n ", tuning_group=GroupNames.UI), 'perk_description': TunableLocalizedStringFactory(description='\n The description for this Perk. No expected arguments.\n ', tuning_group=GroupNames.UI), 'undiscovered_description': OptionalTunable(description='\n When enabled will cause a different description to be displayed \n if the Perk has never been acquired by the Sim.\n ', tunable=TunableLocalizedStringFactory(description='\n The description for this perk when it has never been acquired\n by this Sim.\n '), tuning_group=GroupNames.UI), 'icon': TunableIconFactory(tuning_group=GroupNames.UI), 'ui_display_flags': TunableEnumFlags(description='\n The display flags for this Perk in the Perks Panel UI.\n LINK_TOP: Display a line connecting this perk to the perk above it\n ', enum_type=BucksUIDisplayFlag, allow_no_flags=True, tuning_group=GroupNames.UI), 'required_unlocks': OptionalTunable(description='\n A list of all of the bucks perks that must be unlocked for this one\n to be available for purchase.\n ', tunable=TunableList(description='\n List of required perks for this perk to be available.\n ', tunable=TunableReference(description='\n Reference to a bucks perk that must be unlocked.\n ', manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK)))), 'lock_on_purchase': OptionalTunable(description='\n A list of perks to lock when this perk is purchased.\n ', tunable=TunableList(description='\n List of perks to lock when this perk is unlocked.\n ', tunable=TunableReference(description='\n Reference to a bucks perk that must be locked.\n ', manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK)))), 'buffs_to_award': TunableList(description='\n A list of references to buffs to add to the owner of \n bucks tracker this perk is unlocked in and optional reason for the\n buffs.\n ', tunable=TunableBuffReference(description='\n A pair of Buff and Reason for the buff.\n ', pack_safe=True)), 'conflicting_perks': TunableList(description='\n A list of perks that this perk is mutually exclusive with.\n \n When a perk is mutually exclusive with another perk it means that\n the perk cannot be purchased if that perk has already been purchased.\n ', tunable=TunableReference(description='\n A reference to a perk that this perk is mutually exclusive with.\n ', manager=services.get_instance_manager(sims4.resources.Types.BUCKS_PERK))), 'loots_on_unlock': TunableList(description='\n A list of loots to award when this perk is Unlocked.\n ', tunable=TunableReference(description='\n A loot to be applied.\n \n Actor is the Sim that the perk is being unlocked for.\n ', manager=services.get_instance_manager(sims4.resources.Types.ACTION), pack_safe=True)), 'loots_on_lock': TunableList(description='\n A list of loots to award when this perk is Locked.\n ', tunable=TunableReference(description='\n A loot to be applied.\n \n Actor is the Sim that the Perk is being locked for.\n ', manager=services.get_instance_manager(sims4.resources.Types.ACTION), pack_safe=True)), 'available_for_puchase_tests': TunableTestSetWithTooltip(description='\n A set of tests that must pass in order for this perk to be\n available for purchase. \n \n This is enforced on the UI side. If the tests returns False then\n we will mark the perk as locked and pass along a tooltip, the one\n from the failed test.\n \n For the tooltip the first token is the Sim attempting to unlock the\n perk. \n '), 'progression_statistic': OptionalTunable(description='\n If enabled, this ranked statistic tracks the progress towards\n unlocking this perk. This statistic should tune an AwardPerkLoot\n in its event data with the ability to award this perk.\n \n Use an AwardPerkLoot with the progress strategy to give progress \n to obtaining the perk.\n ', tunable=TunableReference(manager=services.get_instance_manager(sims4.resources.Types.STATISTIC), class_restrictions=('RankedStatistic',)))}
@classmethod
def _verify_tuning_callback(cls):
if cls.temporary_perk_information is not None and cls.linked_perks:
logger.error("A Bucks Perk has been created that's both temporary and has linked Perks. This is not supported. {}", cls)
| 288.6
| 6,720
| 0.688496
| 1,107
| 8,658
| 5.301716
| 0.222222
| 0.063384
| 0.03544
| 0.039871
| 0.357642
| 0.336344
| 0.309252
| 0.297666
| 0.249105
| 0.225933
| 0
| 0.003491
| 0.239085
| 8,658
| 29
| 6,721
| 298.551724
| 0.887371
| 0
| 0
| 0
| 0
| 0.6
| 0.575768
| 0.013745
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04
| false
| 0.04
| 0.52
| 0
| 0.84
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f623afc62a37f314f4ef2755fd09527fe4c169f9
| 101
|
py
|
Python
|
sd/VBx/__init__.py
|
DanBerrebbi/AISHELL-4
|
75ea24e547b671eae05aac365e32b3cd09bb3b3c
|
[
"Apache-2.0"
] | 77
|
2021-06-08T11:16:53.000Z
|
2022-03-31T03:06:03.000Z
|
sd/VBx/__init__.py
|
DanBerrebbi/AISHELL-4
|
75ea24e547b671eae05aac365e32b3cd09bb3b3c
|
[
"Apache-2.0"
] | 5
|
2021-07-19T09:36:31.000Z
|
2022-01-21T13:27:34.000Z
|
sd/VBx/__init__.py
|
DanBerrebbi/AISHELL-4
|
75ea24e547b671eae05aac365e32b3cd09bb3b3c
|
[
"Apache-2.0"
] | 15
|
2021-07-02T03:02:29.000Z
|
2022-01-16T04:44:17.000Z
|
# Copyright (C) 2018 Phonexia
# Author: Jan Profant <jan.profant@phonexia.com>
# All Rights Reserved
| 25.25
| 48
| 0.752475
| 14
| 101
| 5.428571
| 0.785714
| 0.263158
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.045977
| 0.138614
| 101
| 3
| 49
| 33.666667
| 0.827586
| 0.930693
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f643292170807073c85638207f54d2d80f2a5b0f
| 68
|
py
|
Python
|
python/testData/formatter/pep8KeywordArguments.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/formatter/pep8KeywordArguments.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/formatter/pep8KeywordArguments.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def complex(real, imag = 0.0):
return magic(r = real, i = imag)
| 22.666667
| 36
| 0.602941
| 12
| 68
| 3.416667
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038462
| 0.235294
| 68
| 2
| 37
| 34
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
f65a7ec7b72b3e226df57c1b794a36c6fc4b224e
| 179
|
py
|
Python
|
mapry/__main__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 11
|
2019-06-26T05:56:41.000Z
|
2021-03-28T16:44:16.000Z
|
mapry/__main__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 4
|
2019-10-18T14:43:59.000Z
|
2020-04-02T19:12:07.000Z
|
mapry/__main__.py
|
Parquery/mapry
|
93515307f9eba8447fe64b0ac7cc68b2d07205a7
|
[
"MIT"
] | 3
|
2019-06-17T07:39:03.000Z
|
2020-04-01T14:01:23.000Z
|
"""Link to ``mapry.main`` so that you can execute it with ``python`` CLI."""
import sys
import mapry.main
if __name__ == "__main__":
sys.exit(mapry.main.run(prog="mapry"))
| 19.888889
| 76
| 0.664804
| 28
| 179
| 3.964286
| 0.714286
| 0.243243
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156425
| 179
| 8
| 77
| 22.375
| 0.735099
| 0.391061
| 0
| 0
| 0
| 0
| 0.126214
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
f661cc62c8f1f288fdb74e3ee65e3731208bb505
| 311
|
py
|
Python
|
bassl/pretrain/__init__.py
|
kakaobrain/bassl
|
551fe94343debf60a64c787be6752284153a0f7a
|
[
"Apache-2.0"
] | 55
|
2022-01-17T02:18:40.000Z
|
2022-03-25T08:24:28.000Z
|
bassl/finetune/__init__.py
|
kakaobrain/bassl
|
551fe94343debf60a64c787be6752284153a0f7a
|
[
"Apache-2.0"
] | 5
|
2022-01-18T01:59:49.000Z
|
2022-03-24T00:20:35.000Z
|
bassl/finetune/__init__.py
|
kakaobrain/bassl
|
551fe94343debf60a64c787be6752284153a0f7a
|
[
"Apache-2.0"
] | 1
|
2022-01-23T10:50:15.000Z
|
2022-01-23T10:50:15.000Z
|
# ------------------------------------------------------------------------------------
# BaSSL
# Copyright (c) 2021 KakaoBrain. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 [see LICENSE for details]
# ------------------------------------------------------------------------------------
| 51.833333
| 86
| 0.334405
| 20
| 311
| 5.2
| 0.95
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021053
| 0.083601
| 311
| 5
| 87
| 62.2
| 0.34386
| 0.96463
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9c92bba166a952628d0c7f796fdb4a115c5fe618
| 1,865
|
py
|
Python
|
test/test_modify_group.py
|
Docent321/python_traning
|
eb4b9f6ba9821f6e32dce954c83754d40b8f66c5
|
[
"Apache-2.0"
] | null | null | null |
test/test_modify_group.py
|
Docent321/python_traning
|
eb4b9f6ba9821f6e32dce954c83754d40b8f66c5
|
[
"Apache-2.0"
] | null | null | null |
test/test_modify_group.py
|
Docent321/python_traning
|
eb4b9f6ba9821f6e32dce954c83754d40b8f66c5
|
[
"Apache-2.0"
] | null | null | null |
from model.group import Group
from random import randrange
def test_modify_first_groop(app):
if app.group.count() == 0:
app.group.create(Group(name="qweqwe", header="qweqwe", footer="qweqwe"))
old_groups = app.group.get_group_list()
index = randrange(len(old_groups))
group = Group(name="1", header="1", footer="1")
group.id = old_groups[index].id
app.group.modify_group_by_index(index, group)
new_groups = app.group.get_group_list()
assert len(old_groups) == len(new_groups)
old_groups[index] = group
assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
#def test_modify_groop_name(app):
# if app.group.count() == 0:
# app.group.create(Group(name="qweqwe", header="qweqwe", footer="qweqwe"))
# old_groups = app.group.get_group_list()
# group = Group(name="New group")
# group.id = old_groups[0].id
# app.group.modify_first_group(group)
# new_groups = app.group.get_group_list()
# assert len(old_groups) == len(new_groups)
# old_groups[0] = group
# assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
#def test_modify_groop_header(app):
# if app.group.count() == 0:
# app.group.create(Group(name="qweqwe", header="qweqwe", footer="qweqwe"))
# old_groups = app.group.get_group_list()
# app.group.modify_first_group(Group(header="New header"))
# new_groups = app.group.get_group_list()
# assert len(old_groups) == len(new_groups)
#def test_modify_groop_footer(app):
# if app.group.count() == 0:
# app.group.create(Group(name="qweqwe", header="qweqwe", footer="qweqwe"))
# old_groups = app.group.get_group_list()
# app.group.modify_first_group(Group(footer="New footer"))
# new_groups = app.group.get_group_list()
# assert len(old_groups) == len(new_groups)
| 41.444444
| 94
| 0.692225
| 281
| 1,865
| 4.345196
| 0.124555
| 0.13104
| 0.091728
| 0.111384
| 0.760033
| 0.760033
| 0.740377
| 0.740377
| 0.740377
| 0.740377
| 0
| 0.005693
| 0.152279
| 1,865
| 44
| 95
| 42.386364
| 0.766603
| 0.62681
| 0
| 0
| 0
| 0
| 0.031343
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0.071429
| false
| 0
| 0.142857
| 0
| 0.214286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9c9bab4583ba12cbca4b9bc83f9587b603f8df68
| 405
|
py
|
Python
|
refinery/units/obfuscation/ps1/escape.py
|
bronxc/refinery
|
9448facf48a0008f27861dd1a5ee8f5218e6bb86
|
[
"BSD-3-Clause"
] | 1
|
2022-02-13T20:57:15.000Z
|
2022-02-13T20:57:15.000Z
|
refinery/units/obfuscation/ps1/escape.py
|
bronxc/refinery
|
9448facf48a0008f27861dd1a5ee8f5218e6bb86
|
[
"BSD-3-Clause"
] | null | null | null |
refinery/units/obfuscation/ps1/escape.py
|
bronxc/refinery
|
9448facf48a0008f27861dd1a5ee8f5218e6bb86
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from refinery.units.obfuscation import Deobfuscator
from refinery.units.obfuscation.ps1 import Ps1StringLiterals
class deob_ps1_escape(Deobfuscator):
def deobfuscate(self, data):
strlit = Ps1StringLiterals(data)
@strlit.outside
def repl(m): return m[1]
return re.sub(R'''`([^0abfnrtv`#'"\$])''', repl, data)
| 25.3125
| 62
| 0.671605
| 49
| 405
| 5.510204
| 0.653061
| 0.088889
| 0.125926
| 0.207407
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024169
| 0.182716
| 405
| 15
| 63
| 27
| 0.791541
| 0.106173
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 0.777778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
9c9cabc6e5e7bcca6db0d16855af1de0a476a452
| 234
|
py
|
Python
|
k_means_clustering/data.py
|
awesome-archive/Machine-Learning-with-Python
|
898ebbf2d7c780cb5a89bad51d0b7e043e25879f
|
[
"MIT"
] | 2
|
2020-08-11T03:59:26.000Z
|
2020-11-04T21:52:48.000Z
|
k_means_clustering/data.py
|
skylaronomics/Machine-Learning-with-Python
|
186a6f38f6719e5610e0143aecdf170c842ff107
|
[
"MIT"
] | 2
|
2021-06-02T02:30:02.000Z
|
2021-11-15T17:51:42.000Z
|
k_means_clustering/data.py
|
skylaronomics/Machine-Learning-with-Python
|
186a6f38f6719e5610e0143aecdf170c842ff107
|
[
"MIT"
] | 1
|
2020-07-21T18:36:03.000Z
|
2020-07-21T18:36:03.000Z
|
inputs = [[-14, -5], [13, 13], [20, 23], [-19, -11], [-9, -16], [21, 27], [-49, 15], [26, 13], [-46, 5], [-34, -1],
[11, 15], [-49, 0], [-22, -16], [19, 28], [-12, -8], [-13, -19], [-41, 8], [-11, -6], [-25, -9], [-18, -3]]
| 78
| 117
| 0.324786
| 41
| 234
| 1.853659
| 0.682927
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.384615
| 0.222222
| 234
| 2
| 118
| 117
| 0.032967
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9cafc3e6882c69b4dd9c6fff6f58dcd2b8f75de5
| 398
|
py
|
Python
|
onegreek/old.comments/old.comments/__init__.py
|
goldhand/onegreek
|
1ad105f15608284a9e80802734f0c6222413a4a0
|
[
"BSD-3-Clause"
] | 1
|
2019-06-13T11:46:08.000Z
|
2019-06-13T11:46:08.000Z
|
onegreek/old.comments/old.comments/__init__.py
|
goldhand/onegreek
|
1ad105f15608284a9e80802734f0c6222413a4a0
|
[
"BSD-3-Clause"
] | null | null | null |
onegreek/old.comments/old.comments/__init__.py
|
goldhand/onegreek
|
1ad105f15608284a9e80802734f0c6222413a4a0
|
[
"BSD-3-Clause"
] | null | null | null |
from django.core.urlresolvers import reverse_lazy
from .models import PComment as Comment
from .forms import PCommentForm as CommentForm
def get_model():
"""
Return the model to use for commenting.
"""
return Comment
def get_form():
"""
Return the form to use for commenting.
"""
return CommentForm
def get_form_target():
return reverse_lazy('pcomment-list')
| 20.947368
| 49
| 0.70603
| 52
| 398
| 5.288462
| 0.5
| 0.065455
| 0.123636
| 0.130909
| 0.174545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.213568
| 398
| 19
| 50
| 20.947368
| 0.878594
| 0.19598
| 0
| 0
| 0
| 0
| 0.044828
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.111111
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
9cd70cc3359c08bf7a6d62844d5b552cec8efabc
| 157
|
py
|
Python
|
blog/admin.py
|
Debanjan2001/MyBlog-WebApp
|
6a98ea512431490d0fcb9f10de0def9933e49c25
|
[
"MIT"
] | 1
|
2021-04-21T17:58:10.000Z
|
2021-04-21T17:58:10.000Z
|
blog/admin.py
|
Debanjan2001/MyBlog-WebApp
|
6a98ea512431490d0fcb9f10de0def9933e49c25
|
[
"MIT"
] | null | null | null |
blog/admin.py
|
Debanjan2001/MyBlog-WebApp
|
6a98ea512431490d0fcb9f10de0def9933e49c25
|
[
"MIT"
] | null | null | null |
from blog.models import Comment, Post
from django.contrib import admin
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment)
| 19.625
| 37
| 0.802548
| 23
| 157
| 5.478261
| 0.565217
| 0.142857
| 0.269841
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11465
| 157
| 7
| 38
| 22.428571
| 0.906475
| 0.165605
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
140436103b07b8beaed84d7d034c0ac05623632e
| 35
|
py
|
Python
|
similarweb_scraper/__init__.py
|
kilobyte2007/similarweb_scraper
|
049f8983845b7bd7504f5841bc712e970c39be66
|
[
"MIT"
] | 18
|
2019-10-19T08:07:16.000Z
|
2021-12-17T06:11:59.000Z
|
similarweb_scraper/__init__.py
|
kilobyte2007/similarweb_scraper
|
049f8983845b7bd7504f5841bc712e970c39be66
|
[
"MIT"
] | 1
|
2020-02-18T19:07:38.000Z
|
2020-04-26T12:05:15.000Z
|
similarweb_scraper/__init__.py
|
kilobyte2007/similarweb_scraper
|
049f8983845b7bd7504f5841bc712e970c39be66
|
[
"MIT"
] | 2
|
2020-02-18T18:44:34.000Z
|
2021-12-17T06:01:03.000Z
|
from .similarweb_scraper import *
| 17.5
| 34
| 0.8
| 4
| 35
| 6.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 35
| 1
| 35
| 35
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
145cd735796a8c0ced4a862fa94a42e586c1409a
| 184
|
py
|
Python
|
demo2_typing.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
demo2_typing.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
demo2_typing.py
|
cebucodecamp/pizzapy23-mypy
|
648f636356e7771cb5b122620dcdd37fcd800553
|
[
"CC0-1.0"
] | null | null | null |
from typing import List
# ./runmypy cat /usr/local/lib/python3.6/typing.py
def count_plus_first(it: List[int]):
return len(it) + it[0]
print(count_plus_first(list(range(10))))
| 18.4
| 50
| 0.711957
| 32
| 184
| 3.96875
| 0.75
| 0.141732
| 0.220472
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.03125
| 0.130435
| 184
| 9
| 51
| 20.444444
| 0.7625
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 0.25
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
21317cb8bb8924de8ccf27e0aedd6bf1a9ff8916
| 205
|
py
|
Python
|
blacksheep_context/__init__.py
|
Cdayz/blacksheep-context
|
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
|
[
"MIT"
] | 1
|
2021-06-16T18:58:30.000Z
|
2021-06-16T18:58:30.000Z
|
blacksheep_context/__init__.py
|
Cdayz/blacksheep-context
|
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
|
[
"MIT"
] | 17
|
2021-07-09T04:26:00.000Z
|
2022-03-28T04:23:19.000Z
|
blacksheep_context/__init__.py
|
Cdayz/blacksheep-context
|
3a13e8d3ef99e2343ab65b6de85512caabeaf5e1
|
[
"MIT"
] | null | null | null |
from contextvars import ContextVar
from typing import Any, Dict
_request_scope_context_storage: ContextVar[Dict[Any, Any]] = ContextVar("blacksheep_context")
from .ctx import context # noqa: F401, E402
| 29.285714
| 93
| 0.8
| 27
| 205
| 5.888889
| 0.592593
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033333
| 0.121951
| 205
| 6
| 94
| 34.166667
| 0.85
| 0.078049
| 0
| 0
| 0
| 0
| 0.096257
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2145b861123252d96c2d3306d78c3b97976c5156
| 85
|
py
|
Python
|
crusoe_observe/OS-parser-component/osrest/method/__init__.py
|
CSIRT-MU/CRUSOE
|
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
|
[
"MIT"
] | 3
|
2021-11-09T09:55:17.000Z
|
2022-02-19T02:58:27.000Z
|
crusoe_observe/OS-parser-component/osrest/method/__init__.py
|
CSIRT-MU/CRUSOE
|
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
|
[
"MIT"
] | null | null | null |
crusoe_observe/OS-parser-component/osrest/method/__init__.py
|
CSIRT-MU/CRUSOE
|
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
|
[
"MIT"
] | null | null | null |
from .domain import Domain
from .tcpml import Tcpml
from .useragent import UserAgent
| 21.25
| 32
| 0.823529
| 12
| 85
| 5.833333
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141176
| 85
| 3
| 33
| 28.333333
| 0.958904
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2165e5e0ff6a24cc499198511ada7d2a185cc95e
| 146
|
py
|
Python
|
vizbert/data/__init__.py
|
daemon/vizbert
|
e40b7d1529f8857050313f8d87ff03b1b7226c9e
|
[
"MIT"
] | null | null | null |
vizbert/data/__init__.py
|
daemon/vizbert
|
e40b7d1529f8857050313f8d87ff03b1b7226c9e
|
[
"MIT"
] | null | null | null |
vizbert/data/__init__.py
|
daemon/vizbert
|
e40b7d1529f8857050313f8d87ff03b1b7226c9e
|
[
"MIT"
] | null | null | null |
from .classification import *
from .conll import *
from .metric import *
from .transform import *
from .workspace import *
from .pattern import *
| 20.857143
| 29
| 0.753425
| 18
| 146
| 6.111111
| 0.444444
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164384
| 146
| 6
| 30
| 24.333333
| 0.901639
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
dceef88b32d68ed31878b2933c9b649dc7cdaf18
| 126
|
py
|
Python
|
building_test.py
|
yuanyan3060/ArknightsAutoHelper
|
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
|
[
"MIT"
] | 1
|
2021-10-06T12:46:42.000Z
|
2021-10-06T12:46:42.000Z
|
building_test.py
|
yuanyan3060/ArknightsAutoHelper
|
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
|
[
"MIT"
] | null | null | null |
building_test.py
|
yuanyan3060/ArknightsAutoHelper
|
99b7e2d8e8d97d4c718e974208aad0e2930ed7e0
|
[
"MIT"
] | null | null | null |
from Arknights.shell_next import _create_helper
helper, context = _create_helper(use_status_line=False)
helper.get_building()
| 31.5
| 55
| 0.857143
| 18
| 126
| 5.555556
| 0.777778
| 0.24
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 126
| 4
| 56
| 31.5
| 0.854701
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
dcfa0625fe18bf5b31b3c41c119941952321fac4
| 71
|
py
|
Python
|
general/recording-and-playing-audio/audio_player_playsound.py
|
gizzmo25/pythoncode-tutorials
|
39a413fc1da232ad6de7e5f1e8955564dc65448e
|
[
"MIT"
] | null | null | null |
general/recording-and-playing-audio/audio_player_playsound.py
|
gizzmo25/pythoncode-tutorials
|
39a413fc1da232ad6de7e5f1e8955564dc65448e
|
[
"MIT"
] | null | null | null |
general/recording-and-playing-audio/audio_player_playsound.py
|
gizzmo25/pythoncode-tutorials
|
39a413fc1da232ad6de7e5f1e8955564dc65448e
|
[
"MIT"
] | null | null | null |
from playsound import playsound
import sys
playsound(sys.argv[1])
| 14.2
| 32
| 0.760563
| 10
| 71
| 5.4
| 0.6
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016949
| 0.169014
| 71
| 4
| 33
| 17.75
| 0.898305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
0d2c7b5a5ceccd8409da7d4f14ad50c7fda7c2c7
| 67
|
py
|
Python
|
rising_threads/lib/__init__.py
|
RGood/rising_threads
|
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
|
[
"MIT"
] | 2
|
2018-10-04T21:17:23.000Z
|
2019-08-05T23:32:36.000Z
|
rising_threads/lib/__init__.py
|
RGood/rising_threads
|
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
|
[
"MIT"
] | null | null | null |
rising_threads/lib/__init__.py
|
RGood/rising_threads
|
c9c0986da04bfded5f1d21c74b18a71f76d8ffaa
|
[
"MIT"
] | null | null | null |
from .new_reader import NewReader
from .predictor import Predictor
| 33.5
| 34
| 0.850746
| 9
| 67
| 6.222222
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 67
| 2
| 35
| 33.5
| 0.949153
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
0d4a9888ae820cac189843adcdb32cd2236a6d23
| 87
|
py
|
Python
|
rtxp/ripple/traits.py
|
johansten/rtxp-py
|
47380dca6f9f4b53b90aa297df3f773c44ad4423
|
[
"BSD-3-Clause"
] | 1
|
2015-06-18T07:02:02.000Z
|
2015-06-18T07:02:02.000Z
|
rtxp/ripple/traits.py
|
johansten/rtxp-py
|
47380dca6f9f4b53b90aa297df3f773c44ad4423
|
[
"BSD-3-Clause"
] | null | null | null |
rtxp/ripple/traits.py
|
johansten/rtxp-py
|
47380dca6f9f4b53b90aa297df3f773c44ad4423
|
[
"BSD-3-Clause"
] | null | null | null |
NATIVE = 'XRP'
ALPHABET = 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'
| 29
| 71
| 0.862069
| 4
| 87
| 18.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.068966
| 87
| 2
| 72
| 43.5
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0.701149
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b497d0fd6c1a1150af128d25074c2daff3c48910
| 73
|
py
|
Python
|
PyDSTool/PyCont/__init__.py
|
mdlama/pydstool
|
3d298e908ff55340cd3612078508be0c791f63a8
|
[
"Python-2.0",
"OLDAP-2.7"
] | 2
|
2021-02-04T15:01:31.000Z
|
2021-02-25T16:08:43.000Z
|
PyDSTool/PyCont/__init__.py
|
mdlama/pydstool
|
3d298e908ff55340cd3612078508be0c791f63a8
|
[
"Python-2.0",
"OLDAP-2.7"
] | null | null | null |
PyDSTool/PyCont/__init__.py
|
mdlama/pydstool
|
3d298e908ff55340cd3612078508be0c791f63a8
|
[
"Python-2.0",
"OLDAP-2.7"
] | 1
|
2021-02-25T14:43:36.000Z
|
2021-02-25T14:43:36.000Z
|
from __future__ import absolute_import
from .ContClass import ContClass
| 18.25
| 38
| 0.863014
| 9
| 73
| 6.444444
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 73
| 3
| 39
| 24.333333
| 0.90625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
b4bd67bdd7932ab494ee265fcb7f8858ae2f0b83
| 48
|
py
|
Python
|
tests/__init__.py
|
konradical/python_boilerplate
|
726bce3729f2263b43bc4acc39549e4179a257b3
|
[
"MIT"
] | 4
|
2021-09-16T15:51:33.000Z
|
2022-02-22T01:49:38.000Z
|
tests/__init__.py
|
konradical/python_boilerplate
|
726bce3729f2263b43bc4acc39549e4179a257b3
|
[
"MIT"
] | 4
|
2021-03-30T13:39:29.000Z
|
2021-09-22T19:12:55.000Z
|
tests/__init__.py
|
konradical/python_boilerplate
|
726bce3729f2263b43bc4acc39549e4179a257b3
|
[
"MIT"
] | null | null | null |
"""Unit test package for python_boilerplate."""
| 24
| 47
| 0.75
| 6
| 48
| 5.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104167
| 48
| 1
| 48
| 48
| 0.813953
| 0.854167
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b4ff7a2689f88f39799b28e0ab3ec620248833a9
| 168
|
py
|
Python
|
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
|
tuvapp/tuvappcom
|
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
|
[
"MIT"
] | 6,989
|
2017-07-18T06:23:18.000Z
|
2022-03-31T15:58:36.000Z
|
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
|
tuvapp/tuvappcom
|
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
|
[
"MIT"
] | 1,978
|
2017-07-18T09:17:58.000Z
|
2022-03-31T14:28:43.000Z
|
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
|
tuvapp/tuvappcom
|
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
|
[
"MIT"
] | 1,228
|
2017-07-18T09:03:13.000Z
|
2022-03-29T05:57:40.000Z
|
from __future__ import absolute_import
from warnings import warn
warn("IPython.utils.traitlets has moved to a top-level traitlets package.")
from traitlets import *
| 21
| 75
| 0.809524
| 24
| 168
| 5.458333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136905
| 168
| 7
| 76
| 24
| 0.903448
| 0
| 0
| 0
| 0
| 0
| 0.39881
| 0.136905
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
370a07874deea75d3ffba660840d9b1109220320
| 789
|
py
|
Python
|
comprasnet/pages/__init__.py
|
oncase/python-comprasnet
|
5cc974873a8c1025d3f572703bf0af02c3d88b59
|
[
"Apache-2.0"
] | 2
|
2018-04-27T00:15:03.000Z
|
2018-05-23T21:32:29.000Z
|
comprasnet/pages/__init__.py
|
oncase/python-comprasnet
|
5cc974873a8c1025d3f572703bf0af02c3d88b59
|
[
"Apache-2.0"
] | 6
|
2018-04-29T22:03:47.000Z
|
2018-05-19T00:46:14.000Z
|
comprasnet/pages/__init__.py
|
oncase/python-comprasnet
|
5cc974873a8c1025d3f572703bf0af02c3d88b59
|
[
"Apache-2.0"
] | 3
|
2019-10-09T13:11:48.000Z
|
2020-06-19T07:31:41.000Z
|
import logging
from collections import OrderedDict
log = logging.getLogger('comprasnet')
class BaseDetail:
DETAIL_URL = None
def __init__(self, uasg_code, auction_code, *args, **kwargs):
self.uasg_code = uasg_code
self.auction_code = auction_code
def get_params(self):
raise NotImplementedError
def get_data(self):
raise NotImplementedError
def scrap_data(self):
raise NotImplementedError
def _order_dict(self, params):
return OrderedDict(sorted(params.items(), key=lambda x: x[0]))
@property
def url(self):
raise NotImplementedError
@property
def data(self):
return self.scrap_data()
def __str__(self):
return "{}/{}".format(self.uasg_code, self.auction_code)
| 21.324324
| 70
| 0.666667
| 92
| 789
| 5.467391
| 0.423913
| 0.063618
| 0.222664
| 0.184891
| 0.230616
| 0
| 0
| 0
| 0
| 0
| 0
| 0.001667
| 0.239544
| 789
| 36
| 71
| 21.916667
| 0.836667
| 0
| 0
| 0.25
| 0
| 0
| 0.019011
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.083333
| 0.125
| 0.625
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
2e940fa64dc6865ad17f9dcc7e74b2aaa6bf5fca
| 148
|
py
|
Python
|
setup.py
|
Syndelis/cellular-automata
|
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
|
[
"Xnet",
"X11"
] | 2
|
2019-06-12T13:13:00.000Z
|
2021-04-08T18:05:53.000Z
|
setup.py
|
Syndelis/cellular-automata
|
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
|
[
"Xnet",
"X11"
] | null | null | null |
setup.py
|
Syndelis/cellular-automata
|
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
|
[
"Xnet",
"X11"
] | null | null | null |
# Cython compiler
from distutils.core import setup
from Cython.Build import cythonize
setup(name='CA base class', ext_modules=cythonize("ca.pyx"))
| 24.666667
| 60
| 0.790541
| 22
| 148
| 5.272727
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 148
| 6
| 60
| 24.666667
| 0.878788
| 0.101351
| 0
| 0
| 0
| 0
| 0.143939
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2eac49e1485b2b305dadda77ebaf1519f5ff917c
| 47
|
py
|
Python
|
doubleratchet/exceptions/missingkeyexception.py
|
mmojahed93/python-doubleratchet
|
3a8ae7a2ab2222f50df0b8077d89b05447532978
|
[
"MIT"
] | 11
|
2018-03-28T11:15:29.000Z
|
2021-10-24T01:48:30.000Z
|
doubleratchet/exceptions/missingkeyexception.py
|
mmojahed93/python-doubleratchet
|
3a8ae7a2ab2222f50df0b8077d89b05447532978
|
[
"MIT"
] | null | null | null |
doubleratchet/exceptions/missingkeyexception.py
|
mmojahed93/python-doubleratchet
|
3a8ae7a2ab2222f50df0b8077d89b05447532978
|
[
"MIT"
] | 6
|
2019-04-22T20:13:25.000Z
|
2021-09-13T16:24:32.000Z
|
class MissingKeyException(Exception):
pass
| 15.666667
| 37
| 0.787234
| 4
| 47
| 9.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 47
| 2
| 38
| 23.5
| 0.925
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
2588e42576eb79c4a1e848245e4fe3ba547f0a58
| 75
|
py
|
Python
|
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
|
DirkFi/BigDL
|
7493209165c046116470b9a1e1c8f527915d6f1e
|
[
"Apache-2.0"
] | 2,970
|
2017-06-08T00:24:43.000Z
|
2022-03-30T12:14:55.000Z
|
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
|
DirkFi/BigDL
|
7493209165c046116470b9a1e1c8f527915d6f1e
|
[
"Apache-2.0"
] | 3,530
|
2017-05-09T08:29:10.000Z
|
2022-03-21T02:11:45.000Z
|
ppml/trusted-big-data-ml/python/docker-graphene/examples/helloworld.py
|
DirkFi/BigDL
|
7493209165c046116470b9a1e1c8f527915d6f1e
|
[
"Apache-2.0"
] | 972
|
2017-05-09T07:03:50.000Z
|
2022-03-23T07:48:48.000Z
|
#!/usr/bin/env python3
print("Hello World")
import sys;
print(sys.path);
| 10.714286
| 22
| 0.693333
| 12
| 75
| 4.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015152
| 0.12
| 75
| 6
| 23
| 12.5
| 0.772727
| 0.28
| 0
| 0
| 0
| 0
| 0.207547
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
25d66f81d37952960a38fcc5a38e1217f528a355
| 181
|
py
|
Python
|
src/django_extmodels/manager.py
|
jbowen7/django-extmodels
|
734a7ce22ada8e4a374a10dfbfe60709f38a5336
|
[
"MIT"
] | null | null | null |
src/django_extmodels/manager.py
|
jbowen7/django-extmodels
|
734a7ce22ada8e4a374a10dfbfe60709f38a5336
|
[
"MIT"
] | null | null | null |
src/django_extmodels/manager.py
|
jbowen7/django-extmodels
|
734a7ce22ada8e4a374a10dfbfe60709f38a5336
|
[
"MIT"
] | null | null | null |
from django.db.models import Manager
from django_extmodels.query import ExtQuerySet
class ExtManager(Manager.from_queryset(ExtQuerySet)):
"""
A subclassable Manager
"""
pass
| 16.454545
| 53
| 0.790055
| 22
| 181
| 6.409091
| 0.681818
| 0.141844
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127072
| 181
| 10
| 54
| 18.1
| 0.892405
| 0.121547
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
d318f3f837457a798e64736d055f63b0e16dbe57
| 69
|
py
|
Python
|
src/laundry/__init__.py
|
tomackl/laundry
|
935d7053e75580a459f937d2c9c1921044638c04
|
[
"Apache-2.0"
] | 1
|
2021-06-16T12:36:26.000Z
|
2021-06-16T12:36:26.000Z
|
src/laundry/__init__.py
|
tomackl/laundry
|
935d7053e75580a459f937d2c9c1921044638c04
|
[
"Apache-2.0"
] | null | null | null |
src/laundry/__init__.py
|
tomackl/laundry
|
935d7053e75580a459f937d2c9c1921044638c04
|
[
"Apache-2.0"
] | 1
|
2021-12-03T04:22:07.000Z
|
2021-12-03T04:22:07.000Z
|
from laundry.laundryclass import *
from laundry.laundry_cli import *
| 23
| 34
| 0.826087
| 9
| 69
| 6.222222
| 0.555556
| 0.392857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 69
| 2
| 35
| 34.5
| 0.918033
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d341d1b5c222b98c304207eceab77df2f46ba797
| 52
|
py
|
Python
|
word2vec/models/__init__.py
|
dimipauls/word2vec-playground
|
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
|
[
"MIT"
] | 1
|
2019-04-27T19:40:28.000Z
|
2019-04-27T19:40:28.000Z
|
word2vec/models/__init__.py
|
dimipauls/word2vec-playground
|
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
|
[
"MIT"
] | null | null | null |
word2vec/models/__init__.py
|
dimipauls/word2vec-playground
|
228b9f8a37a785a8538c994dc3d0bef4dffacf2b
|
[
"MIT"
] | null | null | null |
from word2vec.models.skip_gram import SkipGramModel
| 26
| 51
| 0.884615
| 7
| 52
| 6.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.020833
| 0.076923
| 52
| 1
| 52
| 52
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d35cd6f2e8a4bf94cbcb50a1a3913349d797b8bf
| 78
|
py
|
Python
|
src/sage/cpython/all.py
|
fchapoton/sage
|
765c5cb3e24dd134708eca97e4c52e0221cd94ba
|
[
"BSL-1.0"
] | 1,742
|
2015-01-04T07:06:13.000Z
|
2022-03-30T11:32:52.000Z
|
src/sage/cpython/all.py
|
Ivo-Maffei/sage
|
467fbc70a08b552b3de33d9065204ee9cbfb02c7
|
[
"BSL-1.0"
] | 66
|
2015-03-19T19:17:24.000Z
|
2022-03-16T11:59:30.000Z
|
src/sage/cpython/all.py
|
dimpase/sage
|
468f23815ade42a2192b0a9cd378de8fdc594dcd
|
[
"BSL-1.0"
] | 495
|
2015-01-10T10:23:18.000Z
|
2022-03-24T22:06:11.000Z
|
from .debug import getattr_debug, type_debug
from .getattr import raw_getattr
| 26
| 44
| 0.846154
| 12
| 78
| 5.25
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 78
| 2
| 45
| 39
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d36a75871385410e67d2a1d159624af95ddabfb2
| 76
|
py
|
Python
|
volkscv/analyzer/statistics/utils/assigner/__init__.py
|
YuxinZou/volkscv
|
67ac83f0c0ac85bd6606053732b454db17c53de0
|
[
"Apache-2.0"
] | 59
|
2020-07-09T03:22:51.000Z
|
2021-12-14T11:26:43.000Z
|
volkscv/analyzer/statistics/utils/assigner/__init__.py
|
ChaseMonsterAway/volkscv
|
aa7e898cc29e3e5f26363e56bf56f4c56574bbd8
|
[
"Apache-2.0"
] | 1
|
2020-11-24T12:18:19.000Z
|
2020-11-25T03:12:57.000Z
|
volkscv/analyzer/statistics/utils/assigner/__init__.py
|
ChaseMonsterAway/volkscv
|
aa7e898cc29e3e5f26363e56bf56f4c56574bbd8
|
[
"Apache-2.0"
] | 24
|
2020-08-05T03:13:37.000Z
|
2021-10-11T02:55:25.000Z
|
from .base import BaseAssigner
from .max_iou_assigner import MaxIoUAssigner
| 25.333333
| 44
| 0.868421
| 10
| 76
| 6.4
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 76
| 2
| 45
| 38
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d376264f031158ca378b0cfdfc3c0c40130ce654
| 53
|
py
|
Python
|
session-9/testcolor.py
|
ssxrgio/2018-19-PNE-practices
|
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
|
[
"Apache-2.0"
] | null | null | null |
session-9/testcolor.py
|
ssxrgio/2018-19-PNE-practices
|
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
|
[
"Apache-2.0"
] | null | null | null |
session-9/testcolor.py
|
ssxrgio/2018-19-PNE-practices
|
f73ed67cb676a2ffffdf7a5a3ddc4c9fa7902ee0
|
[
"Apache-2.0"
] | null | null | null |
import termcolor
termcolor.cprint('Green.', 'green')
| 17.666667
| 35
| 0.754717
| 6
| 53
| 6.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 53
| 3
| 35
| 17.666667
| 0.816327
| 0
| 0
| 0
| 0
| 0
| 0.203704
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
d3a21b10fca0823c4f8754f8d101be5090122c5c
| 122
|
py
|
Python
|
py/twombly/__init__.py
|
zshipko/libtwombly
|
6a4b74b0a293da2a50e06e6fc9850327e01c7678
|
[
"MIT"
] | 7
|
2015-09-10T16:33:40.000Z
|
2018-07-15T07:54:41.000Z
|
py/twombly/__init__.py
|
zshipko/libtwombly
|
6a4b74b0a293da2a50e06e6fc9850327e01c7678
|
[
"MIT"
] | 2
|
2015-03-21T01:18:11.000Z
|
2018-03-06T06:24:22.000Z
|
py/twombly/__init__.py
|
zshipko/libtwombly
|
6a4b74b0a293da2a50e06e6fc9850327e01c7678
|
[
"MIT"
] | 2
|
2015-09-08T08:55:29.000Z
|
2020-01-09T08:42:27.000Z
|
from __future__ import absolute_import
from .drawing import *
try:
from . import path
except ImportError:
pass
| 12.2
| 38
| 0.737705
| 15
| 122
| 5.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.221311
| 122
| 9
| 39
| 13.555556
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
6ca7e63f09f8c91237fce98092950d3ca3cab92d
| 36
|
py
|
Python
|
pymicropel/test/__init__.py
|
vkorecky/pymicropel
|
9333ba1d691664a01d0ec63f89ae13956f37d633
|
[
"Apache-2.0"
] | null | null | null |
pymicropel/test/__init__.py
|
vkorecky/pymicropel
|
9333ba1d691664a01d0ec63f89ae13956f37d633
|
[
"Apache-2.0"
] | null | null | null |
pymicropel/test/__init__.py
|
vkorecky/pymicropel
|
9333ba1d691664a01d0ec63f89ae13956f37d633
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for Micropel Connector."""
| 18
| 35
| 0.694444
| 4
| 36
| 6.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 36
| 1
| 36
| 36
| 0.78125
| 0.805556
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6cb21cadafcaede98463d01a49a737848c8a0cd7
| 360
|
py
|
Python
|
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
|
johnbywater/quantdsl
|
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
|
[
"BSD-3-Clause"
] | 269
|
2015-01-09T00:56:41.000Z
|
2022-03-30T17:09:46.000Z
|
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
|
johnbywater/quantdsl
|
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
|
[
"BSD-3-Clause"
] | 22
|
2017-04-01T13:44:56.000Z
|
2018-09-10T11:48:56.000Z
|
quantdsl/infrastructure/event_sourced_repos/simulated_price_dependencies_repo.py
|
johnbywater/quantdsl
|
81c1c69f27e094a6ed0542b28cf1ac8fcce5494a
|
[
"BSD-3-Clause"
] | 59
|
2015-01-09T00:56:50.000Z
|
2022-03-13T23:52:27.000Z
|
from eventsourcing.infrastructure.event_sourced_repo import EventSourcedRepository
from quantdsl.domain.model.simulated_price_requirements import SimulatedPriceRequirements, SimulatedPriceRequirementsRepository
class SimulatedPriceRequirementsRepo(SimulatedPriceRequirementsRepository, EventSourcedRepository):
domain_class = SimulatedPriceRequirements
| 45
| 127
| 0.908333
| 25
| 360
| 12.88
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061111
| 360
| 8
| 128
| 45
| 0.952663
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
6cca1bf9bd8e3138ff009d66eb9a75fe744c9ce3
| 163
|
py
|
Python
|
description.py
|
firmwaremodules/iot-firmware-loader
|
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
|
[
"Apache-2.0"
] | null | null | null |
description.py
|
firmwaremodules/iot-firmware-loader
|
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
|
[
"Apache-2.0"
] | 1
|
2018-02-13T18:56:47.000Z
|
2018-02-13T18:56:47.000Z
|
description.py
|
firmwaremodules/iot-firmware-loader
|
cd46d2a8c3a8489f9bb370cd340c3ed26e6c3ad6
|
[
"Apache-2.0"
] | null | null | null |
def main():
print "iot-firmware-loader is a python tool that interfaces with CMSIS-DAP and ST-LINK ARM debuggers."
if __name__ == '__main__':
main()
| 23.285714
| 106
| 0.680982
| 24
| 163
| 4.291667
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.214724
| 163
| 6
| 107
| 27.166667
| 0.804688
| 0
| 0
| 0
| 0
| 0.25
| 0.625767
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.25
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6ccb1061c6f26ea1ddc8b2931ac8a8a5db981ffb
| 222
|
py
|
Python
|
src/tic/plane/admin.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
src/tic/plane/admin.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
src/tic/plane/admin.py
|
gunduzhuseyn/Tic-SPLE
|
d6321be0a3824c6b071e558df47f372bcf855e07
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import PlaneEvent, SeatingPlan, Seat, PlaneTicket
admin.site.register(PlaneEvent)
admin.site.register(SeatingPlan)
admin.site.register(Seat)
admin.site.register(PlaneTicket)
| 24.666667
| 62
| 0.828829
| 28
| 222
| 6.571429
| 0.428571
| 0.195652
| 0.369565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076577
| 222
| 8
| 63
| 27.75
| 0.897561
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
6cd78c1488e93654d55446138cbdbe038987ba0a
| 293
|
py
|
Python
|
factories/PebbleConnectionFactory.py
|
JDVDev/TaskRelay
|
20213d31c90c0420e62f1e75c138ca1cb89211ee
|
[
"Apache-2.0"
] | null | null | null |
factories/PebbleConnectionFactory.py
|
JDVDev/TaskRelay
|
20213d31c90c0420e62f1e75c138ca1cb89211ee
|
[
"Apache-2.0"
] | null | null | null |
factories/PebbleConnectionFactory.py
|
JDVDev/TaskRelay
|
20213d31c90c0420e62f1e75c138ca1cb89211ee
|
[
"Apache-2.0"
] | null | null | null |
from libpebble2.communication.transports.serial import SerialTransport
from libpebble2.communication import PebbleConnection
class PebbleConnectionFactory():
@staticmethod
def produceSerial(name):
return PebbleConnection(SerialTransport("/dev/tty." + name + "-SerialPortSe"))
| 41.857143
| 86
| 0.791809
| 26
| 293
| 8.961538
| 0.730769
| 0.120172
| 0.23176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007752
| 0.119454
| 293
| 7
| 86
| 41.857143
| 0.891473
| 0
| 0
| 0
| 0
| 0
| 0.075085
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9f03631cd0c8812d3995b35506c5d1ad803b2fe9
| 49
|
py
|
Python
|
src/chemical_roles/export/__init__.py
|
bgyori/chemical-roles
|
31a917e911075e3be7eea509e143d3ff48e942cc
|
[
"MIT"
] | 5
|
2021-02-05T01:27:53.000Z
|
2021-07-12T15:47:08.000Z
|
src/chemical_roles/export/__init__.py
|
bgyori/chemical-roles
|
31a917e911075e3be7eea509e143d3ff48e942cc
|
[
"MIT"
] | 8
|
2019-10-10T13:02:18.000Z
|
2020-05-11T18:41:56.000Z
|
src/chemical_roles/export/__init__.py
|
bgyori/chemical-roles
|
31a917e911075e3be7eea509e143d3ff48e942cc
|
[
"MIT"
] | 5
|
2020-06-07T13:11:34.000Z
|
2021-07-12T14:24:01.000Z
|
# -*- coding: utf-8 -*-
"""Export utilities."""
| 12.25
| 23
| 0.510204
| 5
| 49
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02439
| 0.163265
| 49
| 3
| 24
| 16.333333
| 0.585366
| 0.816327
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9f1aaae7e9c44b4e86e4485ef6b9af68555ad619
| 184
|
py
|
Python
|
demos/19.01.30/10am/problem_3.py
|
joeparis/CS161-Demos-Winter-19
|
613a93de9169fa4ee62538ff0ac93a9930b75fef
|
[
"MIT"
] | null | null | null |
demos/19.01.30/10am/problem_3.py
|
joeparis/CS161-Demos-Winter-19
|
613a93de9169fa4ee62538ff0ac93a9930b75fef
|
[
"MIT"
] | null | null | null |
demos/19.01.30/10am/problem_3.py
|
joeparis/CS161-Demos-Winter-19
|
613a93de9169fa4ee62538ff0ac93a9930b75fef
|
[
"MIT"
] | null | null | null |
user_input = input("Please enter a string ")
# length = len(user_input)
# print(user_input[length::-1])
# l = "".join(list(reversed(user_input)))
# print(l)
print(user_input[::-1])
| 18.4
| 44
| 0.668478
| 28
| 184
| 4.214286
| 0.5
| 0.381356
| 0.237288
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012422
| 0.125
| 184
| 9
| 45
| 20.444444
| 0.720497
| 0.559783
| 0
| 0
| 0
| 0
| 0.289474
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
9f1ed6c82dc6d14142fa3136ab7c90abe39d6582
| 4,256
|
py
|
Python
|
src/app/routers/user.py
|
Ra-Ni/Conupedia
|
165d0b43098edcdf1058e244c1751c09e53f741c
|
[
"MIT"
] | null | null | null |
src/app/routers/user.py
|
Ra-Ni/Conupedia
|
165d0b43098edcdf1058e244c1751c09e53f741c
|
[
"MIT"
] | null | null | null |
src/app/routers/user.py
|
Ra-Ni/Conupedia
|
165d0b43098edcdf1058e244c1751c09e53f741c
|
[
"MIT"
] | null | null | null |
from typing import Optional
import httpx
import shortuuid
from fastapi import Response
from starlette import status
from starlette.responses import JSONResponse
from ..dependencies import core
from ..dependencies.models.user import User
from ..internals.globals import SSU
async def get(id: str):
user = User(id=id)
user.fill_var()
query = """
with %s
select *
where { %s }
""" % (SSU, user.to_rdf())
async with httpx.AsyncClient() as client:
response = await core.send(client, query, 'dict')
if response:
user.update(response)
return JSONResponse(status_code=status.HTTP_200_OK, content=user.dict())
return Response(status_code=status.HTTP_404_NOT_FOUND)
async def gets(id: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
password: Optional[str] = None,
status_: Optional[str] = None):
user = User(id=id,
first_name=first_name,
last_name=last_name,
email=email,
password=password,
status=status_)
user.fill_var(exclude=['dislikes', 'likes'])
query = """
with %s
select *
where { %s }
""" % (SSU, user.to_rdf())
async with httpx.AsyncClient() as client:
response = await core.send(client, query, format='dict')
if response:
user.update(response)
return JSONResponse(status_code=status.HTTP_200_OK, content=user.dict())
return Response(status_code=status.HTTP_404_NOT_FOUND)
async def post(email: str, password: str, first_name: str, last_name: str):
uid = shortuuid.uuid()
user = User(email=email,
password=password,
first_name=first_name,
last_name=last_name,
status='inactive',
id=uid,
uri=uid)
query = """
insert in graph %s { %s }
""" % (SSU, user.to_rdf())
async with httpx.AsyncClient() as client:
response = await core.send(client, query)
if response == status.HTTP_200_OK:
return Response(status_code=status.HTTP_200_OK, background=uid)
return Response(status_code=status.HTTP_400_BAD_REQUEST)
async def patch(id: str,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
password: Optional[str] = None,
status_: Optional[str] = None):
insert = User(uri=id,
first_name=first_name,
last_name=last_name,
email=email,
password=password,
status=status_)
delete = insert.to_query(exclude=['uri', 'type'])
insert = insert.to_rdf(exclude=['type'])
delete = delete.to_rdf(exclude=['type'])
query = """
modify %s
delete { %s }
insert { %s }
where { %s }
""" % (SSU, delete, insert, delete)
print(query)
async with httpx.AsyncClient() as client:
response = await core.send(client, query)
if response == status.HTTP_200_OK:
return Response(status_code=status.HTTP_200_OK)
return Response(status_code=status.HTTP_400_BAD_REQUEST)
async def exists(uri: Optional[str] = None,
id: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
email: Optional[str] = None,
password: Optional[str] = None,
status_: Optional[str] = None):
user = User(uri=uri,
id=id,
first_name=first_name,
last_name=last_name,
email=email,
password=password,
status=status_)
user = user.to_rdf()
query = """ask from %s { %s }""" % (SSU, user)
async with httpx.AsyncClient() as client:
response = await core.send(client, query, format='bool')
if response:
return Response(status_code=status.HTTP_200_OK)
return Response(status_code=status.HTTP_404_NOT_FOUND)
| 30.184397
| 84
| 0.577538
| 492
| 4,256
| 4.837398
| 0.164634
| 0.083193
| 0.113445
| 0.084034
| 0.704622
| 0.704622
| 0.704622
| 0.704622
| 0.690336
| 0.685714
| 0
| 0.012333
| 0.314145
| 4,256
| 140
| 85
| 30.4
| 0.803015
| 0
| 0
| 0.625
| 0
| 0
| 0.06297
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.071429
| 0.080357
| 0
| 0.169643
| 0.008929
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
9f27bf02f4f6f6db10eead707b878e9ab5ae68be
| 333
|
py
|
Python
|
datetime2.py
|
ximury/python
|
8624464e214c74e640d01a83b21c66df8eb7ad8c
|
[
"Apache-2.0"
] | null | null | null |
datetime2.py
|
ximury/python
|
8624464e214c74e640d01a83b21c66df8eb7ad8c
|
[
"Apache-2.0"
] | null | null | null |
datetime2.py
|
ximury/python
|
8624464e214c74e640d01a83b21c66df8eb7ad8c
|
[
"Apache-2.0"
] | null | null | null |
from datetime import datetime
time = datetime.now()
print(time, type(time))
print("----------------------")
time = str(time)
print(time, type(time))
print("----------------------")
time = datetime.now()
# time = "1618815060"
print(time, type(time))
time = time.strftime('%Y-%m-%d %H:%M:%S')
print(time, type(time))
| 20.8125
| 42
| 0.543544
| 42
| 333
| 4.309524
| 0.357143
| 0.298343
| 0.287293
| 0.375691
| 0.287293
| 0.287293
| 0
| 0
| 0
| 0
| 0
| 0.035211
| 0.147147
| 333
| 15
| 43
| 22.2
| 0.602113
| 0.057057
| 0
| 0.727273
| 0
| 0
| 0.205387
| 0.148148
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 0.090909
| 0.545455
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
9f3087562e326eb4b0b0cc4627694d7b9845ddcb
| 70
|
py
|
Python
|
stores/__init__.py
|
galaddirie/django-cassiopeia
|
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
|
[
"MIT"
] | 13
|
2020-07-08T17:23:18.000Z
|
2022-02-13T09:19:42.000Z
|
stores/__init__.py
|
galaddirie/django-cassiopeia
|
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
|
[
"MIT"
] | 16
|
2020-07-19T22:14:20.000Z
|
2022-03-24T02:57:45.000Z
|
stores/__init__.py
|
galaddirie/django-cassiopeia
|
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
|
[
"MIT"
] | 6
|
2020-07-21T01:37:54.000Z
|
2022-01-01T19:28:54.000Z
|
from .django_cache import DjangoCache
from .omnistone import Omnistone
| 35
| 37
| 0.871429
| 9
| 70
| 6.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 70
| 2
| 38
| 35
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9f66bf25f13588e12d600e9f700150fcd272b5f0
| 88
|
py
|
Python
|
eNMRpy/Measurement/__init__.py
|
passteinforth/eNMRpy
|
d32c16295009b3ea56f1fea3e536483c5aa243f9
|
[
"BSD-3-Clause"
] | null | null | null |
eNMRpy/Measurement/__init__.py
|
passteinforth/eNMRpy
|
d32c16295009b3ea56f1fea3e536483c5aa243f9
|
[
"BSD-3-Clause"
] | null | null | null |
eNMRpy/Measurement/__init__.py
|
passteinforth/eNMRpy
|
d32c16295009b3ea56f1fea3e536483c5aa243f9
|
[
"BSD-3-Clause"
] | null | null | null |
from .Pavel import Pavel
#from .Juergen1 import Juergen1
#print('%s imported'%__name__)
| 22
| 31
| 0.772727
| 12
| 88
| 5.333333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.025641
| 0.113636
| 88
| 3
| 32
| 29.333333
| 0.794872
| 0.670455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9f685261b4f4107d45da7780eb8573f8cc5b37e4
| 54
|
py
|
Python
|
jigu/transform/tx.py
|
bongtrop/jigu
|
448bce8ce693f3f7c530bea0f2f268e22100937a
|
[
"MIT"
] | 14
|
2020-03-03T06:46:39.000Z
|
2021-05-01T15:29:35.000Z
|
jigu/transform/tx.py
|
bongtrop/jigu
|
448bce8ce693f3f7c530bea0f2f268e22100937a
|
[
"MIT"
] | 9
|
2020-03-09T06:36:30.000Z
|
2021-02-15T14:40:48.000Z
|
jigu/transform/tx.py
|
bongtrop/jigu
|
448bce8ce693f3f7c530bea0f2f268e22100937a
|
[
"MIT"
] | 5
|
2020-05-30T22:38:34.000Z
|
2021-02-11T00:56:20.000Z
|
# TODO: Refactor merge-logging into TxInfoTransformer
| 27
| 53
| 0.833333
| 6
| 54
| 7.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 54
| 1
| 54
| 54
| 0.9375
| 0.944444
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 1
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9f68a8d6b481867b34fa800daa31734a38bea9ac
| 25
|
py
|
Python
|
dlex_impl/image_classification/__init__.py
|
dvtrung/dl-torch
|
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
|
[
"MIT"
] | null | null | null |
dlex_impl/image_classification/__init__.py
|
dvtrung/dl-torch
|
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
|
[
"MIT"
] | null | null | null |
dlex_impl/image_classification/__init__.py
|
dvtrung/dl-torch
|
b49e57d10d32bb223e2d7643f2579ccc32c63a9a
|
[
"MIT"
] | null | null | null |
from .src.models import *
| 25
| 25
| 0.76
| 4
| 25
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 25
| 1
| 25
| 25
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9f6de4f781639cfd18a46fd2591bd03dbcbc6064
| 244
|
py
|
Python
|
dbt/adapters/databricks/column.py
|
troyel/dbt-databricks
|
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
|
[
"Apache-2.0"
] | 38
|
2021-12-06T19:04:57.000Z
|
2022-03-28T08:08:14.000Z
|
dbt/adapters/databricks/column.py
|
troyel/dbt-databricks
|
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
|
[
"Apache-2.0"
] | 36
|
2021-12-07T01:10:50.000Z
|
2022-03-31T00:37:25.000Z
|
dbt/adapters/databricks/column.py
|
troyel/dbt-databricks
|
6cfa98ca7fdf414945b9ad5318c4c2d4ddecb72b
|
[
"Apache-2.0"
] | 11
|
2021-12-06T18:11:33.000Z
|
2022-03-22T10:36:15.000Z
|
from dataclasses import dataclass
from dbt.adapters.spark.column import SparkColumn
@dataclass
class DatabricksColumn(SparkColumn):
def __repr__(self) -> str:
return "<DatabricksColumn {} ({})>".format(self.name, self.data_type)
| 24.4
| 77
| 0.741803
| 27
| 244
| 6.518519
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143443
| 244
| 9
| 78
| 27.111111
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.106557
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
9f88024724e132d6e230582a3eb5f4b5557d2188
| 144
|
py
|
Python
|
linking/admin.py
|
thodel/heraldik
|
5be41c9a63f971723f8601757d554a4759eba48e
|
[
"MIT"
] | null | null | null |
linking/admin.py
|
thodel/heraldik
|
5be41c9a63f971723f8601757d554a4759eba48e
|
[
"MIT"
] | 1
|
2020-06-16T10:12:48.000Z
|
2020-06-17T11:58:14.000Z
|
linking/admin.py
|
thodel/heraldik
|
5be41c9a63f971723f8601757d554a4759eba48e
|
[
"MIT"
] | 1
|
2020-06-16T09:50:58.000Z
|
2020-06-16T09:50:58.000Z
|
from django.contrib import admin
from .models import NormEntry, MissingEntry
admin.site.register(NormEntry)
admin.site.register(MissingEntry)
| 20.571429
| 43
| 0.833333
| 18
| 144
| 6.666667
| 0.555556
| 0.15
| 0.283333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090278
| 144
| 6
| 44
| 24
| 0.916031
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
9f9b48d238653cbf09af61f06eb06f93e9aa168a
| 589
|
py
|
Python
|
cookbook/c05/p12_file_existence.py
|
itpubs/python3-cookbook
|
140f5e4cc0416b9674edca7f4c901b1f58fc1415
|
[
"Apache-2.0"
] | 3
|
2018-09-19T06:44:13.000Z
|
2019-03-24T10:07:07.000Z
|
cookbook/c05/p12_file_existence.py
|
itpubs/python3-cookbook
|
140f5e4cc0416b9674edca7f4c901b1f58fc1415
|
[
"Apache-2.0"
] | 2
|
2020-09-19T17:10:23.000Z
|
2020-10-17T16:43:52.000Z
|
cookbook/c05/p12_file_existence.py
|
itpubs/python3-cookbook
|
140f5e4cc0416b9674edca7f4c901b1f58fc1415
|
[
"Apache-2.0"
] | 1
|
2020-12-22T06:33:18.000Z
|
2020-12-22T06:33:18.000Z
|
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Topic: 测试文件或目录是否存在
Desc :
"""
import os
import time
def file_existence():
print(os.path.exists('/etc/passwd'))
print(os.path.exists('/tmp/spam'))
print(os.path.isfile('/etc/passwd'))
print(os.path.isdir('/etc/passwd'))
print(os.path.islink('/usr/local/bin/python3'))
print(os.path.realpath('/usr/local/bin/python3'))
print(os.path.getsize('/etc/passwd'))
print(os.path.getmtime('/etc/passwd'))
print(time.ctime(os.path.getmtime('/etc/passwd')))
if __name__ == '__main__':
file_existence()
| 21.035714
| 54
| 0.643463
| 82
| 589
| 4.5
| 0.426829
| 0.146341
| 0.238482
| 0.173442
| 0.482385
| 0.157182
| 0.157182
| 0
| 0
| 0
| 0
| 0.005906
| 0.137521
| 589
| 27
| 55
| 21.814815
| 0.720472
| 0.120543
| 0
| 0
| 0
| 0
| 0.25
| 0.086614
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071429
| true
| 0.428571
| 0.142857
| 0
| 0.214286
| 0.642857
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
|
0
| 5
|
4c97ad8ba1a77eed21ae5643d4c35409d78078e3
| 60
|
py
|
Python
|
pl_bolts/models/gans/__init__.py
|
hecoding/pytorch-lightning-bolts
|
4d254fde6112b21436003028d553a726bf7ea6ef
|
[
"Apache-2.0"
] | 1
|
2021-04-27T14:45:16.000Z
|
2021-04-27T14:45:16.000Z
|
pl_bolts/models/gans/__init__.py
|
hecoding/pytorch-lightning-bolts
|
4d254fde6112b21436003028d553a726bf7ea6ef
|
[
"Apache-2.0"
] | null | null | null |
pl_bolts/models/gans/__init__.py
|
hecoding/pytorch-lightning-bolts
|
4d254fde6112b21436003028d553a726bf7ea6ef
|
[
"Apache-2.0"
] | 1
|
2021-03-24T15:13:02.000Z
|
2021-03-24T15:13:02.000Z
|
from pl_bolts.models.gans.basic.basic_gan_module import GAN
| 30
| 59
| 0.866667
| 11
| 60
| 4.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 60
| 1
| 60
| 60
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4cbd54d4e866828fe0e21e93254d8f66e103db86
| 80
|
py
|
Python
|
learning_racer/teleoperate/__init__.py
|
tikisi/airc-rl-agent
|
280ae6e1f30fff991ccf78e1075c5c25edab6866
|
[
"MIT"
] | 69
|
2020-03-27T03:02:20.000Z
|
2022-03-03T10:08:09.000Z
|
learning_racer/teleoperate/__init__.py
|
rl-jetbot/airc-rl-agent
|
b8266f5b09a81fe2d1fdeeb72e48f4bb24273049
|
[
"MIT"
] | 46
|
2020-02-28T13:42:40.000Z
|
2022-01-26T23:47:12.000Z
|
learning_racer/teleoperate/__init__.py
|
rl-jetbot/airc-rl-agent
|
b8266f5b09a81fe2d1fdeeb72e48f4bb24273049
|
[
"MIT"
] | 22
|
2020-03-16T17:32:05.000Z
|
2022-02-15T23:50:10.000Z
|
from .ipc_teleop import Teleoperator
from .message_queue import NotebookBackend
| 26.666667
| 42
| 0.875
| 10
| 80
| 6.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 80
| 2
| 43
| 40
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
9800029f7c3f66e30ef85873b845a2fcf759869c
| 972
|
py
|
Python
|
test/test_ctxt.py
|
devopsent/patr
|
b206dbe37c0404b423c2864ba64639a465e7868e
|
[
"MIT"
] | null | null | null |
test/test_ctxt.py
|
devopsent/patr
|
b206dbe37c0404b423c2864ba64639a465e7868e
|
[
"MIT"
] | 1
|
2019-10-19T12:48:22.000Z
|
2019-10-19T12:48:22.000Z
|
test/test_ctxt.py
|
devopsent/patr
|
b206dbe37c0404b423c2864ba64639a465e7868e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# pylint: disable=missing-docstring
from patr import ctxt
import pytest
def test_gen_host_entry():
data = dict(
name="lala",
variables=dict(
kuku="kaka",
susu="sasa",
)
)
# order of dict generated iteration (non orderdict) is unreliable
# thus we split it into set()s
expected = set("lala kuku=kaka susu=sasa".split())
actual = set(ctxt.gen_host_entry(data).split())
assert expected == actual
data = dict(
name="lala",
variables=dict(
kuku="kaka",
susu="sasa",
dudu=["fee"]
)
)
# order of dict generated iteration (non orderdict) is unreliable
# thus we split it into set()s
expected = set('lala kuku=kaka susu=sasa dudu="[\'fee\']"'.split())
actual = set(ctxt.gen_host_entry(data).split())
assert expected == actual
@pytest.mark.xfail
def test_build_context():
assert False
| 23.707317
| 71
| 0.595679
| 122
| 972
| 4.672131
| 0.42623
| 0.05614
| 0.084211
| 0.112281
| 0.757895
| 0.757895
| 0.733333
| 0.733333
| 0.733333
| 0.733333
| 0
| 0
| 0.278807
| 972
| 40
| 72
| 24.3
| 0.813124
| 0.246914
| 0
| 0.518519
| 0
| 0
| 0.118457
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 1
| 0.074074
| false
| 0
| 0.074074
| 0
| 0.148148
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
e235f31acb8ae353e5c75df0a1b68b12de85bdb9
| 92
|
py
|
Python
|
pyzxing/__init__.py
|
Komugisama/pyzxing
|
d416a82824c55e9083b30d41b0dc2a9f652ad9ea
|
[
"MIT"
] | 107
|
2020-05-28T15:40:42.000Z
|
2022-03-30T02:27:01.000Z
|
Prod_CV_NLP_API/flask/pyzxing/__init__.py
|
micintron/computer_vission_OCR
|
1fdd521b334f6e5958958ccf816341531b783a21
|
[
"CNRI-Python"
] | 30
|
2020-07-25T15:34:56.000Z
|
2022-03-24T03:06:43.000Z
|
Prod_CV_NLP_API/flask/pyzxing/__init__.py
|
micintron/computer_vission_OCR
|
1fdd521b334f6e5958958ccf816341531b783a21
|
[
"CNRI-Python"
] | 19
|
2020-07-02T21:10:19.000Z
|
2022-03-09T22:37:51.000Z
|
# coding=utf-8
"""The root of pyzxing namespace."""
from .reader import BarCodeReader #noqa
| 30.666667
| 40
| 0.73913
| 13
| 92
| 5.230769
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0125
| 0.130435
| 92
| 3
| 40
| 30.666667
| 0.8375
| 0.521739
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e23685ee4a938cb06e992e078910cbf2539398a3
| 41
|
py
|
Python
|
modules/submission.py
|
CS70/experiments
|
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
|
[
"BSD-2-Clause"
] | 1
|
2016-08-23T19:39:57.000Z
|
2016-08-23T19:39:57.000Z
|
modules/submission.py
|
CS70/experiments
|
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
|
[
"BSD-2-Clause"
] | null | null | null |
modules/submission.py
|
CS70/experiments
|
c9bc7d8a0a68080c8e4591c624feb3bfce46e226
|
[
"BSD-2-Clause"
] | null | null | null |
class SubmissionModule(object):
pass
| 13.666667
| 31
| 0.756098
| 4
| 41
| 7.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170732
| 41
| 2
| 32
| 20.5
| 0.911765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
e2591a9c5667fcee0b50b358960f50cf7f2ccbed
| 112
|
py
|
Python
|
pyrevolve/genotype/learning_body/config.py
|
braj29/robo_swimmers
|
b3c3fa91976884095eb6b5e67844167598ec573d
|
[
"Apache-1.1"
] | null | null | null |
pyrevolve/genotype/learning_body/config.py
|
braj29/robo_swimmers
|
b3c3fa91976884095eb6b5e67844167598ec573d
|
[
"Apache-1.1"
] | null | null | null |
pyrevolve/genotype/learning_body/config.py
|
braj29/robo_swimmers
|
b3c3fa91976884095eb6b5e67844167598ec573d
|
[
"Apache-1.1"
] | null | null | null |
from dataclasses import dataclass
@dataclass
class Config:
mutation_prob: float
crossover_prob: float
| 14
| 33
| 0.776786
| 13
| 112
| 6.538462
| 0.769231
| 0.211765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1875
| 112
| 7
| 34
| 16
| 0.934066
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
e2a69d6db231f2abaebeaf32c8c4d4494f27778d
| 3,329
|
py
|
Python
|
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
|
tdresser/catapult-csm
|
8f69b07e80198c1af0d5bd368d8ad8ced968884a
|
[
"BSD-3-Clause"
] | 4
|
2017-12-29T03:17:40.000Z
|
2021-07-04T03:28:11.000Z
|
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
|
tdresser/catapult-csm
|
8f69b07e80198c1af0d5bd368d8ad8ced968884a
|
[
"BSD-3-Clause"
] | 1
|
2021-02-23T22:37:30.000Z
|
2021-02-23T22:37:30.000Z
|
dashboard/dashboard/pinpoint/models/quest/read_value_test.py
|
tdresser/catapult-csm
|
8f69b07e80198c1af0d5bd368d8ad8ced968884a
|
[
"BSD-3-Clause"
] | 6
|
2017-12-05T07:15:08.000Z
|
2021-07-04T03:28:13.000Z
|
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import unittest
import mock
from dashboard.pinpoint.models.quest import read_value
@mock.patch('dashboard.services.isolate_service.Retrieve')
class ReadValueTest(unittest.TestCase):
def testReadValue(self, retrieve):
retrieve.side_effect = (
{'files': {'chartjson-output.json': {'h': 'chartjson hash'}}},
json.dumps({'charts': {'metric': {'test': {
'type': 'list_of_scalar_values',
'values': [0, 1, 2],
}}}}),
)
execution = read_value.ReadValue('metric', 'test').Start('output hash')
execution.Poll()
self.assertTrue(execution.completed)
self.assertFalse(execution.failed)
self.assertEqual(execution.result_values, (0, 1, 2))
self.assertEqual(execution.result_arguments, {})
expected_calls = [mock.call('output hash'), mock.call('chartjson hash')]
self.assertEqual(retrieve.mock_calls, expected_calls)
def testReadValueWithNoTest(self, retrieve):
retrieve.side_effect = (
{'files': {'chartjson-output.json': {'h': 'chartjson hash'}}},
json.dumps({'charts': {'metric': {'summary': {
'type': 'list_of_scalar_values',
'values': [0, 1, 2],
}}}}),
)
execution = read_value.ReadValue('metric', None).Start('output hash')
execution.Poll()
self.assertTrue(execution.completed)
self.assertFalse(execution.failed)
self.assertEqual(execution.result_values, (0, 1, 2))
self.assertEqual(execution.result_arguments, {})
expected_calls = [mock.call('output hash'), mock.call('chartjson hash')]
self.assertEqual(retrieve.mock_calls, expected_calls)
def testHistogram(self, retrieve):
retrieve.side_effect = (
{'files': {'chartjson-output.json': {'h': 'chartjson hash'}}},
json.dumps({'charts': {'metric': {'test': {
'type': 'histogram',
'buckets': [
{'low': 0, 'count': 2},
{'low': 0, 'high': 2, 'count': 3},
],
}}}}),
)
execution = read_value.ReadValue('metric', 'test').Start('output hash')
execution.Poll()
self.assertEqual(execution.result_values, (0, 0, 1, 1, 1))
def testHistogramWithLargeSample(self, retrieve):
retrieve.side_effect = (
{'files': {'chartjson-output.json': {'h': 'chartjson hash'}}},
json.dumps({'charts': {'metric': {'test': {
'type': 'histogram',
'buckets': [
{'low': 0, 'count': 20000},
{'low': 0, 'high': 2, 'count': 30000},
],
}}}}),
)
execution = read_value.ReadValue('metric', 'test').Start('output hash')
execution.Poll()
self.assertEqual(execution.result_values, tuple([0] * 4000 + [1] * 6000))
def testScalar(self, retrieve):
retrieve.side_effect = (
{'files': {'chartjson-output.json': {'h': 'chartjson hash'}}},
json.dumps({'charts': {'metric': {'test': {
'type': 'scalar',
'value': 2.5,
}}}}),
)
execution = read_value.ReadValue('metric', 'test').Start('output hash')
execution.Poll()
self.assertEqual(execution.result_values, (2.5,))
| 32.320388
| 77
| 0.599279
| 355
| 3,329
| 5.532394
| 0.276056
| 0.068737
| 0.08554
| 0.106925
| 0.775458
| 0.761202
| 0.760692
| 0.760692
| 0.760692
| 0.760692
| 0
| 0.020567
| 0.225894
| 3,329
| 102
| 78
| 32.637255
| 0.74156
| 0.046561
| 0
| 0.649351
| 0
| 0
| 0.201577
| 0.059937
| 0
| 0
| 0
| 0
| 0.168831
| 1
| 0.064935
| false
| 0
| 0.051948
| 0
| 0.12987
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
2c7f21cfb7367dac7b5dd73bdc08aa5b0d9426f9
| 102
|
py
|
Python
|
myflaskapp/selling/__init__.py
|
RubyHome/Parking-Dev
|
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
|
[
"BSD-3-Clause"
] | null | null | null |
myflaskapp/selling/__init__.py
|
RubyHome/Parking-Dev
|
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
|
[
"BSD-3-Clause"
] | null | null | null |
myflaskapp/selling/__init__.py
|
RubyHome/Parking-Dev
|
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""The sales features related to parking spots"""
from . import views # noqa
| 25.5
| 49
| 0.647059
| 14
| 102
| 4.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.186275
| 102
| 3
| 50
| 34
| 0.783133
| 0.696078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2c944c74e0e3bc492036f61816aa58854af0c891
| 219
|
py
|
Python
|
eworld/apps/mytest/views.py
|
wwfyde/Asa
|
d61230479d72e53b49e4b2a5c1589514a4b34b71
|
[
"MIT"
] | null | null | null |
eworld/apps/mytest/views.py
|
wwfyde/Asa
|
d61230479d72e53b49e4b2a5c1589514a4b34b71
|
[
"MIT"
] | null | null | null |
eworld/apps/mytest/views.py
|
wwfyde/Asa
|
d61230479d72e53b49e4b2a5c1589514a4b34b71
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('hello, 世界!')
def my_test(request):
return HttpResponse('my_test!')
| 18.25
| 37
| 0.748858
| 29
| 219
| 5.586207
| 0.655172
| 0.123457
| 0.308642
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.155251
| 219
| 11
| 38
| 19.909091
| 0.875676
| 0.105023
| 0
| 0
| 0
| 0
| 0.092784
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 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
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
2ca27a57f6a2ef5f5d6134f2ea7bd3a0c622653d
| 99
|
py
|
Python
|
bloom/audio/__init__.py
|
thomasrogers03/bloom
|
5d49c18a241216aca354aa79971940691e6f33b4
|
[
"Apache-2.0"
] | 9
|
2020-11-22T03:04:52.000Z
|
2022-01-17T15:36:25.000Z
|
bloom/seq/__init__.py
|
thomasrogers03/bloom
|
5d49c18a241216aca354aa79971940691e6f33b4
|
[
"Apache-2.0"
] | null | null | null |
bloom/seq/__init__.py
|
thomasrogers03/bloom
|
5d49c18a241216aca354aa79971940691e6f33b4
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2020 Thomas Rogers
# SPDX-License-Identifier: Apache-2.0
from .manager import Manager
| 19.8
| 37
| 0.787879
| 14
| 99
| 5.571429
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 0.131313
| 99
| 4
| 38
| 24.75
| 0.837209
| 0.646465
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2cb216483c7cc5cdf448cba2017524ee4e2e0d25
| 499
|
py
|
Python
|
bauh/view/core/timeshift.py
|
alesmuc/bauh
|
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
|
[
"Zlib"
] | null | null | null |
bauh/view/core/timeshift.py
|
alesmuc/bauh
|
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
|
[
"Zlib"
] | null | null | null |
bauh/view/core/timeshift.py
|
alesmuc/bauh
|
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
|
[
"Zlib"
] | null | null | null |
from bauh.commons.system import run_cmd, SimpleProcess
def is_available() -> bool:
return bool(run_cmd('which timeshift', print_error=False))
def delete_all_snapshots(root_password: str) -> SimpleProcess:
return SimpleProcess(['timeshift', '--delete-all', '--scripted'], root_password=root_password)
def create_snapshot(root_password: str, mode: str) -> SimpleProcess:
return SimpleProcess(['timeshift', '--create', '--scripted', '--{}'.format(mode)], root_password=root_password)
| 35.642857
| 115
| 0.737475
| 59
| 499
| 6.016949
| 0.491525
| 0.202817
| 0.084507
| 0.197183
| 0.247887
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108216
| 499
| 13
| 116
| 38.384615
| 0.797753
| 0
| 0
| 0
| 0
| 0
| 0.154309
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0.571429
| 0.142857
| 0.428571
| 1
| 0.142857
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
|
0
| 5
|
2cc8a319785bcf5c5e30be8b85f1e68c1cbe6353
| 159
|
py
|
Python
|
matchbox/util/nooplistener.py
|
ayllon/MatchBox
|
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
|
[
"MIT"
] | null | null | null |
matchbox/util/nooplistener.py
|
ayllon/MatchBox
|
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
|
[
"MIT"
] | null | null | null |
matchbox/util/nooplistener.py
|
ayllon/MatchBox
|
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
|
[
"MIT"
] | null | null | null |
class NoopListener(object):
def __init__(self, iterable):
self.__iterable = iterable
def __iter__(self):
return iter(self.__iterable)
| 22.714286
| 36
| 0.672956
| 17
| 159
| 5.588235
| 0.529412
| 0.378947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.232704
| 159
| 6
| 37
| 26.5
| 0.778689
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0.2
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
e2c2ef5f0ed5007739bc437e3d290c9dbf8eeede
| 256
|
py
|
Python
|
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
|
chentaoz/frappe
|
ee3c4943bf6177ad3b410cdb0d802af486751a65
|
[
"MIT"
] | 5
|
2017-09-12T15:56:31.000Z
|
2022-03-09T13:50:21.000Z
|
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
|
chentaoz/frappe
|
ee3c4943bf6177ad3b410cdb0d802af486751a65
|
[
"MIT"
] | 212
|
2017-08-16T13:03:18.000Z
|
2020-10-06T12:26:21.000Z
|
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
|
chentaoz/frappe
|
ee3c4943bf6177ad3b410cdb0d802af486751a65
|
[
"MIT"
] | 14
|
2020-11-04T11:22:44.000Z
|
2022-02-01T20:59:37.000Z
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
frappe.delete_doc_if_exists("DocType", "User Permission for Page and Report")
| 32
| 85
| 0.769531
| 35
| 256
| 5.4
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018433
| 0.152344
| 256
| 8
| 85
| 32
| 0.852535
| 0.371094
| 0
| 0
| 0
| 0
| 0.264151
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e2cc469a9d5f9eb52e92e899cd71c384665fc22f
| 187
|
py
|
Python
|
rx3/core/observable/merge.py
|
samiur/RxPY
|
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
|
[
"MIT"
] | null | null | null |
rx3/core/observable/merge.py
|
samiur/RxPY
|
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
|
[
"MIT"
] | null | null | null |
rx3/core/observable/merge.py
|
samiur/RxPY
|
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
|
[
"MIT"
] | null | null | null |
import rx3
from rx3 import operators as ops
from rx3.core import Observable
def _merge(*sources: Observable) -> Observable:
return rx3.from_iterable(sources).pipe(ops.merge_all())
| 20.777778
| 59
| 0.770053
| 27
| 187
| 5.222222
| 0.555556
| 0.099291
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024845
| 0.139037
| 187
| 8
| 60
| 23.375
| 0.850932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.6
| 0.2
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
3933b14868fb7835981174229acf0723b316d2f0
| 3,448
|
py
|
Python
|
marx.py
|
shrsv/marx
|
bf0f332c8505e4c17035f0aaddf501a9c3f160f5
|
[
"MIT"
] | null | null | null |
marx.py
|
shrsv/marx
|
bf0f332c8505e4c17035f0aaddf501a9c3f160f5
|
[
"MIT"
] | null | null | null |
marx.py
|
shrsv/marx
|
bf0f332c8505e4c17035f0aaddf501a9c3f160f5
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import ply.lex as lex
# Commonmark specification by John MacFarlane
# http://spec.commonmark.org/0.21/
# The spec uses BMP Unicode codepoints:
# U+NNNN where 0000 <= NNNN <= FFFF
# https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
# The building blocks are:
# character, line, line ending, blank line, whitespace character,
# whitespace, unicode whitespace, space, non-whitespace character,
# ascii punctuation character, punctuation character
# Tabs in lines are kept as is. But in contexts where indentation is
# significant each tab is replaced by 4 characters.
# TODO: Take a closer look at examples
# U+0000 is an insecure character. Replace it with U+FFFD.
# Why? can't seem to find a reason!
# TODO: find out why U+0000 is insecure
# blocks:
# a document is made up of multiple blocks
# each block has a type: paragraph, block quote, list, header, rule, code block,
# etc
# some types of blocks (block quote and list item) can *contain* other blocks
# (header and paragraph)
# other blocks can contain *inline* content such as text, links, ems, imgs,
# code, etc
# blocks have greater precedence compared to inline structures.
# the above rule implicates a two-step parsing procedure
# **step1: ** block structure of doc is found out (linear)
# **step2: ** inline content is parsed (parallel)
# leaf blocks: blocks that can't contain other blocks (unlike container blocks)
# horiz rules, ATX headers (the-hash-# format), Setext headers
# indented code block is composed of one or more *indented chunks* separated by
# blank lines. An indented chunk is a sequence of non-blank lines each indented
# four or more spaces.
# *code fence* a sequence of three consecutive backticks/tildes (``` or ~~~)
# *fenced code block* begins with a code fence, indented at max three space
# UHH: why are they using this magic number 3??
# *info string* optional text following the code fence
# *html block* group of lines treated as HTML. There are 7 types of blocks.
# TODO: What is this "may/may not interrupt a paragraph concept? understand it.
# *link reference definition* consists of a link label, a colon, optional
# whitespace, link destination, optional whitespace, optional link title.
# *paragraphs* sequence of non-blank lines that cannot be interpreted as other
# kinds of blocks forms a paragraph.
# **interrupting paragraph** means this. to interrupt, there must be some
# element that causes the interruption. So, what the spec is saying is that
# introducing a new element or new sequence of character after the beginning of
# a paragraph may either end the paragraph or keep it running further. if the
# new element causes the running paragraph to be closed, then it is said to
# "interrupt the paragraph".
# if a newly introduced element doesn't close the running paragraph, then it is
# said to "not interrupt the paragraph"
# there are two kinds of container blocks: block quotes and list items (lists
# are meta-containers for list items)
# syntax for container blocks is defined recursively
# *block quote marker: * 0-3 spaces + '>' + space then blah blah
# *list marker* can be either a bullet list marker (-, +, *) or ordered list
# marker (0-9)
# *lists* a principle of uniformity is applied here.
# *inlines* parsed sequentially left to right
# escaping should be handled.
# code spans
# autolinks
# TODO: Read and understand parsing strategy. Begin from there.
| 38.311111
| 80
| 0.75145
| 530
| 3,448
| 4.883019
| 0.473585
| 0.015456
| 0.00541
| 0.01391
| 0.028594
| 0
| 0
| 0
| 0
| 0
| 0
| 0.008418
| 0.173144
| 3,448
| 89
| 81
| 38.741573
| 0.899334
| 0.949246
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
39368ab4391d5218fe27c32f6d8834334fe277a9
| 9,451
|
py
|
Python
|
modules/feature_weights.py
|
keyvantaj/Quantitative
|
77c7c414c47ed3fe22873b87ed15e92dc62226da
|
[
"MIT"
] | 9
|
2020-10-11T21:09:41.000Z
|
2022-02-17T01:52:04.000Z
|
modules/feature_weights.py
|
ajmal017/Quantitative
|
7af681677031987c64f402d8cb06b358cedd184a
|
[
"MIT"
] | null | null | null |
modules/feature_weights.py
|
ajmal017/Quantitative
|
7af681677031987c64f402d8cb06b358cedd184a
|
[
"MIT"
] | 3
|
2020-07-18T02:19:08.000Z
|
2022-01-30T15:37:02.000Z
|
import matplotlib.pyplot as plt
import datetime as datetime
import numpy as np
import pandas as pd
import talib
import seaborn as sns
from time import time
from sklearn import preprocessing
from pandas.plotting import register_matplotlib_converters
from .factorize import FactorManagement
import scipy.stats as stats
import cvxpy as cvx
import zipfile
import os
from sklearn import linear_model, decomposition, ensemble, preprocessing, isotonic, metrics
from sklearn.impute import SimpleImputer
import xgboost
register_matplotlib_converters()
class Learner:
def __init__(self):
pass
@staticmethod
def shift_mask_data(X, Y, upper_percentile, lower_percentile, n_fwd_days):
# Shift X to match factors at t to returns at t+n_fwd_days (we want to predict future returns after all)
shifted_X = np.roll(X, n_fwd_days + 1, axis=0)
# Slice off rolled elements
X = shifted_X[n_fwd_days + 1:]
Y = Y[n_fwd_days + 1:]
n_time, n_stocks, n_factors = X.shape
# Look for biggest up and down movers
upper = np.nanpercentile(Y, upper_percentile, axis=1)[:, np.newaxis]
lower = np.nanpercentile(Y, lower_percentile, axis=1)[:, np.newaxis]
upper_mask = (Y >= upper)
lower_mask = (Y <= lower)
mask = upper_mask | lower_mask # This also drops nans
mask = mask.flatten()
# Only try to predict whether a stock moved up/down relative to other stocks
Y_binary = np.zeros(n_time * n_stocks)
Y_binary[upper_mask.flatten()] = 1
Y_binary[lower_mask.flatten()] = -1
# Flatten X
X = X.reshape((n_time * n_stocks, n_factors))
# Drop stocks that did not move much (i.e. are in the 30th to 70th percentile)
X = X[mask]
Y_binary = Y_binary[mask]
return X, Y_binary
def feature_importance_adaboost(self, n_fwd_days, close, all_factors, n_estimators, train_size,
upper_percentile, lower_percentile):
pipe = all_factors
pipe.index = pipe.index.set_levels([pd.to_datetime(pipe.index.levels[0]), pipe.index.levels[1]])
close = close[pipe.index.levels[1]]
close.index = pd.to_datetime(close.index)
chunk_start = pipe.index.levels[0][0]
chunk_end = pipe.index.levels[0][-1]
returns = FactorManagement().log_Returns(close, 1).loc[slice(chunk_start, chunk_end), :]
returns_stacked = returns.stack().to_frame('Returns')
results = pd.concat([pipe, returns_stacked], axis=1)
results.index.set_names(['date', 'asset'], inplace=True)
results_wo_returns = results.copy()
returns = results_wo_returns.pop('Returns')
Y = returns.unstack().values
X = results_wo_returns.to_xarray().to_array()
X = np.array(X)
X = X.swapaxes(2, 0).swapaxes(0, 1) # (factors, time, stocks) -> (time, stocks, factors)
# Train-test split
train_size_perc = train_size
n_time, n_stocks, n_factors = X.shape
train_size = np.int16(np.round(train_size_perc * n_time))
X_train, Y_train = X[:train_size], Y[:train_size]
X_test, Y_test = X[(train_size + n_fwd_days):], Y[(train_size + n_fwd_days):]
X_train_shift, Y_train_shift = self.shift_mask_data(X_train, Y_train, n_fwd_days=n_fwd_days,
lower_percentile=lower_percentile,
upper_percentile=upper_percentile)
X_test_shift, Y_test_shift = self.shift_mask_data(X_test, Y_test, n_fwd_days=n_fwd_days,
lower_percentile=lower_percentile,
upper_percentile=upper_percentile)
start_timer = time()
# Train classifier
imputer = SimpleImputer()
scaler = preprocessing.MinMaxScaler()
clf = ensemble.AdaBoostClassifier(
n_estimators=n_estimators) # n_estimators controls how many weak classifiers are fi
X_train_trans = imputer.fit_transform(X_train_shift)
X_train_trans = scaler.fit_transform(X_train_trans)
clf.fit(X_train_trans, Y_train_shift)
end_timer = time()
print('Time to train full ML pipline: {} secs'.format(end_timer - start_timer))
Y_pred = clf.predict(X_train_trans)
print('Accuracy on train set = {:.2f}%'.format(metrics.accuracy_score(Y_train_shift, Y_pred) * 100))
# Transform test data
X_test_trans = imputer.transform(X_test_shift)
X_test_trans = scaler.transform(X_test_trans)
# Predict!
Y_pred = clf.predict(X_test_trans)
Y_pred_prob = clf.predict_proba(X_test_trans)
print('Predictions:', Y_pred)
print('Probabilities of class == 1:', Y_pred_prob[:, 1] * 100)
print('Accuracy on test set = {:.2f}%'.format(metrics.accuracy_score(Y_test_shift, Y_pred) * 100))
print('Log-loss = {:.5f}'.format(metrics.log_loss(Y_test_shift, Y_pred_prob)))
feature_importances = pd.Series(clf.feature_importances_, index=results_wo_returns.columns)
feature_importances.sort_values(ascending=False)
ax = feature_importances.plot(kind='bar')
ax.set(ylabel='Importance (Gini Coefficient)', title='Feature importances')
feature_importances = pd.DataFrame(data=feature_importances.values,
columns=['weights'],
index=feature_importances.index)
feature_importances.index.name = 'factors'
return feature_importances
def feature_importance_xgb(self, n_fwd_days, close, all_factors, n_estimators, train_size,
upper_percentile, lower_percentile):
pipe = all_factors
pipe.index = pipe.index.set_levels([pd.to_datetime(pipe.index.levels[0]), pipe.index.levels[1]])
close = close[pipe.index.levels[1]]
close.index = pd.to_datetime(close.index)
chunk_start = pipe.index.levels[0][0]
chunk_end = pipe.index.levels[0][-1]
returns = FactorManagement().log_Returns(close, 1).loc[slice(chunk_start, chunk_end), :]
returns_stacked = returns.stack().to_frame('Returns')
results = pd.concat([pipe, returns_stacked], axis=1)
results.index.set_names(['date', 'asset'], inplace=True)
results_wo_returns = results.copy()
returns = results_wo_returns.pop('Returns')
Y = returns.unstack().values
X = results_wo_returns.to_xarray().to_array()
X = np.array(X)
X = X.swapaxes(2, 0).swapaxes(0, 1)
# Train-test split
train_size_perc = train_size
n_time, n_stocks, n_factors = X.shape
train_size = np.int16(np.round(train_size_perc * n_time))
X_train, Y_train = X[:train_size], Y[:train_size]
X_test, Y_test = X[(train_size + n_fwd_days):], Y[(train_size + n_fwd_days):]
X_train_shift, Y_train_shift = self.shift_mask_data(X_train, Y_train, n_fwd_days=n_fwd_days,
lower_percentile=lower_percentile,
upper_percentile=upper_percentile)
X_test_shift, Y_test_shift = self.shift_mask_data(X_test, Y_test, n_fwd_days=n_fwd_days,
lower_percentile=lower_percentile,
upper_percentile=upper_percentile)
start_timer = time()
# Train classifier
# imputer = SimpleImputer()
# scaler = preprocessing.MinMaxScaler()
clf = xgboost.XGBClassifier(n_estimators=n_estimators)
# X_train_trans = imputer.fit_transform(X_train_shift)
# X_train_trans = scaler.fit_transform(X_train_trans)
clf.fit(X_train_shift, Y_train_shift)
end_timer = time()
print('Time to train full ML pipline: {} secs'.format(end_timer - start_timer))
Y_pred_train = clf.predict(X_train_shift)
print('Accuracy on train set = {:.2f}%'.format(metrics.accuracy_score(Y_train_shift, Y_pred_train) * 100))
# Transform test data
# X_test_trans = imputer.transform(X_test_shift)
# X_test_trans = scaler.transform(X_test_trans)
# Predict!
Y_pred = clf.predict(X_test_shift)
Y_pred_prob = clf.predict_proba(X_test_shift)
print('Predictions:', Y_pred)
print('Probabilities of class == 1:', Y_pred_prob[:, 1] * 100)
print('Accuracy on test set = {:.2f}%'.format(metrics.accuracy_score(Y_test_shift, Y_pred) * 100))
print('Log-loss = {:.5f}'.format(metrics.log_loss(Y_test_shift, Y_pred_prob)))
feature_importances = pd.Series(clf.feature_importances_, index=results_wo_returns.columns)
feature_importances.sort_values(ascending=False)
ax = feature_importances.plot(kind='bar')
ax.set(ylabel='Importance (Gini Coefficient)', title='Feature importances')
feature_importances = pd.DataFrame(data=feature_importances.values,
columns=['weights'],
index=feature_importances.index)
feature_importances.index.name = 'factors'
return feature_importances
| 42.191964
| 114
| 0.632526
| 1,214
| 9,451
| 4.632619
| 0.173806
| 0.023471
| 0.027027
| 0.01707
| 0.753023
| 0.738087
| 0.733642
| 0.733642
| 0.718706
| 0.718706
| 0
| 0.010127
| 0.268649
| 9,451
| 223
| 115
| 42.381166
| 0.80353
| 0.088985
| 0
| 0.597315
| 0
| 0
| 0.056837
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026846
| false
| 0.006711
| 0.234899
| 0
| 0.288591
| 0.080537
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1a2f0cb42c5e281612c2dd86f9dc9461dd6f0c31
| 46
|
py
|
Python
|
galaxy/__init__.py
|
jmchilton/lwr
|
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
|
[
"Apache-2.0"
] | 1
|
2016-08-17T06:36:03.000Z
|
2016-08-17T06:36:03.000Z
|
galaxy/__init__.py
|
jmchilton/lwr
|
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
|
[
"Apache-2.0"
] | null | null | null |
galaxy/__init__.py
|
jmchilton/lwr
|
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
|
[
"Apache-2.0"
] | null | null | null |
"""
Compat. layer between LWR and Galaxy.
"""
| 11.5
| 37
| 0.652174
| 6
| 46
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.173913
| 46
| 3
| 38
| 15.333333
| 0.789474
| 0.804348
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
1a67fad9931909e49275c4b3f5a5ee8cc9517384
| 75
|
py
|
Python
|
driver27/urls/team.py
|
SRJ9/driver27
|
3fd32005a89112fe9f94281b33a497d4ab1ebb55
|
[
"MIT"
] | 1
|
2016-10-12T22:49:09.000Z
|
2016-10-12T22:49:09.000Z
|
driver27/urls/team.py
|
SRJ9/driver27
|
3fd32005a89112fe9f94281b33a497d4ab1ebb55
|
[
"MIT"
] | 1
|
2016-10-12T22:47:08.000Z
|
2016-10-12T22:47:08.000Z
|
driver27/urls/team.py
|
SRJ9/driver27
|
3fd32005a89112fe9f94281b33a497d4ab1ebb55
|
[
"MIT"
] | null | null | null |
from .default import dr27_stats_urls
urlpatterns = dr27_stats_urls('team')
| 25
| 37
| 0.826667
| 11
| 75
| 5.272727
| 0.727273
| 0.310345
| 0.448276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.093333
| 75
| 3
| 37
| 25
| 0.794118
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1a99b203e16bffe37d41eec19674afc04eae9420
| 129
|
py
|
Python
|
djatracker/data/admin.py
|
na0495/Djatracker
|
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
|
[
"MIT"
] | null | null | null |
djatracker/data/admin.py
|
na0495/Djatracker
|
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
|
[
"MIT"
] | null | null | null |
djatracker/data/admin.py
|
na0495/Djatracker
|
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import MappingData
# Register your models here.
admin.site.register(MappingData)
| 18.428571
| 32
| 0.813953
| 17
| 129
| 6.176471
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124031
| 129
| 6
| 33
| 21.5
| 0.929204
| 0.20155
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
1a9f200093ff908223023512ea9b5b6f00c68650
| 312
|
py
|
Python
|
tools_queue.py
|
sohamkor/TeachMeWebApp
|
820eff092c6891cf556ee22e47b14f7c4047fd60
|
[
"MIT"
] | null | null | null |
tools_queue.py
|
sohamkor/TeachMeWebApp
|
820eff092c6891cf556ee22e47b14f7c4047fd60
|
[
"MIT"
] | null | null | null |
tools_queue.py
|
sohamkor/TeachMeWebApp
|
820eff092c6891cf556ee22e47b14f7c4047fd60
|
[
"MIT"
] | null | null | null |
class Queue(object):
def __init__(self):
self.items = []
def isEmpty(self):
return len(self.items) == 0
def enqueue(self, itemToAdd):
self.items.insert(0, itemToAdd)
def dequeue(self):
return self.items.pop()
def size(self):
return len(self.items)
| 19.5
| 39
| 0.583333
| 39
| 312
| 4.564103
| 0.435897
| 0.252809
| 0.146067
| 0.191011
| 0.247191
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009009
| 0.288462
| 312
| 15
| 40
| 20.8
| 0.792793
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0
| 0
| 0.272727
| 0.818182
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
46f71f98ecaf6509dfb1c8c18122f3a925f3229c
| 115
|
py
|
Python
|
geophires_simulation/__init__.py
|
tuw-eeg/GEOPHIRES-simulation
|
14343cefd7c373f240e610a5a5a1143457a4f8d4
|
[
"Apache-2.0"
] | null | null | null |
geophires_simulation/__init__.py
|
tuw-eeg/GEOPHIRES-simulation
|
14343cefd7c373f240e610a5a5a1143457a4f8d4
|
[
"Apache-2.0"
] | null | null | null |
geophires_simulation/__init__.py
|
tuw-eeg/GEOPHIRES-simulation
|
14343cefd7c373f240e610a5a5a1143457a4f8d4
|
[
"Apache-2.0"
] | null | null | null |
# Expose the main function to the outside world under the alias "simulate"
from .main import main_func as simulate
| 38.333333
| 74
| 0.8
| 19
| 115
| 4.789474
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165217
| 115
| 2
| 75
| 57.5
| 0.947917
| 0.626087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
20263c0738f5a4bf50cf12ac5dca6b704fb581b7
| 1,027
|
py
|
Python
|
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
|
TruongThuyLiem/keras2tensorflow
|
726f2370160701081cb43fbd8b56154c10d7ad63
|
[
"MIT"
] | 3
|
2020-10-12T15:47:01.000Z
|
2022-01-14T19:51:26.000Z
|
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
|
TruongThuyLiem/keras2tensorflow
|
726f2370160701081cb43fbd8b56154c10d7ad63
|
[
"MIT"
] | null | null | null |
python3/lib/python3.6/site-packages/tensorflow/_api/v1/lite/constants/__init__.py
|
TruongThuyLiem/keras2tensorflow
|
726f2370160701081cb43fbd8b56154c10d7ad63
|
[
"MIT"
] | 2
|
2020-08-03T13:02:06.000Z
|
2020-11-04T03:15:44.000Z
|
# This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.lite.constants namespace.
"""
from __future__ import print_function as _print_function
from tensorflow.lite.python.lite_constants import FLOAT
from tensorflow.lite.python.lite_constants import GRAPHVIZ_DOT
from tensorflow.lite.python.lite_constants import INT32
from tensorflow.lite.python.lite_constants import INT64
from tensorflow.lite.python.lite_constants import INT8
from tensorflow.lite.python.lite_constants import QUANTIZED_UINT8
from tensorflow.lite.python.lite_constants import STRING
from tensorflow.lite.python.lite_constants import TFLITE
del _print_function
import sys as _sys
from tensorflow.python.util import deprecation_wrapper as _deprecation_wrapper
if not isinstance(_sys.modules[__name__], _deprecation_wrapper.DeprecationWrapper):
_sys.modules[__name__] = _deprecation_wrapper.DeprecationWrapper(
_sys.modules[__name__], "lite.constants")
| 41.08
| 83
| 0.843233
| 138
| 1,027
| 5.956522
| 0.355072
| 0.158151
| 0.175182
| 0.233577
| 0.557178
| 0.557178
| 0.557178
| 0.138686
| 0.138686
| 0
| 0
| 0.006417
| 0.089581
| 1,027
| 24
| 84
| 42.791667
| 0.872727
| 0.165531
| 0
| 0
| 1
| 0
| 0.01649
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.733333
| 0
| 0.733333
| 0.133333
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
64775e8621307435c0d9b57c6dab0a8e27211db1
| 141
|
py
|
Python
|
source/preprocessing/interval.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 97
|
2019-02-18T20:19:21.000Z
|
2022-03-30T05:01:44.000Z
|
source/preprocessing/interval.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 13
|
2019-10-29T05:53:11.000Z
|
2022-03-14T21:38:49.000Z
|
source/preprocessing/interval.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 49
|
2019-06-03T23:22:19.000Z
|
2022-03-30T05:01:40.000Z
|
class Interval(object):
def __init__(self, start_time, end_time):
self.start_time = start_time
self.end_time = end_time
| 23.5
| 45
| 0.680851
| 20
| 141
| 4.3
| 0.45
| 0.313953
| 0.302326
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234043
| 141
| 5
| 46
| 28.2
| 0.796296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6480456942a3d47797294bda49a77fcd8def40ed
| 28
|
py
|
Python
|
tests/tattoos_controllers/test_get_all.py
|
Poketnans/capstone-q3
|
38d550a54ff41387534241df85eb8aa8c9b6ba7e
|
[
"MIT"
] | null | null | null |
tests/tattoos_controllers/test_get_all.py
|
Poketnans/capstone-q3
|
38d550a54ff41387534241df85eb8aa8c9b6ba7e
|
[
"MIT"
] | 4
|
2022-03-03T12:47:02.000Z
|
2022-03-08T18:10:34.000Z
|
tests/tattoos_controllers/test_get_all.py
|
Poketnans/capstone-q3
|
38d550a54ff41387534241df85eb8aa8c9b6ba7e
|
[
"MIT"
] | 1
|
2022-03-17T14:21:30.000Z
|
2022-03-17T14:21:30.000Z
|
def test_get_all():
...
| 9.333333
| 19
| 0.535714
| 4
| 28
| 3.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 28
| 2
| 20
| 14
| 0.619048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.