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
c93f42ebd795abda098ecdcef4ecf9b438057683
209
py
Python
src/__main__.py
a-overin/my-chess-bot
b2b79ea7cccb8a0fccd2b25ce467660da7f70f99
[ "Apache-2.0" ]
null
null
null
src/__main__.py
a-overin/my-chess-bot
b2b79ea7cccb8a0fccd2b25ce467660da7f70f99
[ "Apache-2.0" ]
null
null
null
src/__main__.py
a-overin/my-chess-bot
b2b79ea7cccb8a0fccd2b25ce467660da7f70f99
[ "Apache-2.0" ]
null
null
null
import logging from .main import main if __name__ == '__main__': logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') main()
26.125
86
0.598086
24
209
4.875
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.248804
209
7
87
29.857143
0.745223
0
0
0
0
0
0.287081
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c97bc46f16f94e20b5e659d547aa8616ace24232
513
py
Python
characterPictureGrid.py
NoxiousRed/PythonPractice
4c81518347fa7237b0fc46ef7ed46fd96f0ff624
[ "Unlicense" ]
null
null
null
characterPictureGrid.py
NoxiousRed/PythonPractice
4c81518347fa7237b0fc46ef7ed46fd96f0ff624
[ "Unlicense" ]
null
null
null
characterPictureGrid.py
NoxiousRed/PythonPractice
4c81518347fa7237b0fc46ef7ed46fd96f0ff624
[ "Unlicense" ]
null
null
null
grid = [['.', '.', '.', '.', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['O', 'O', 'O', 'O', 'O', '.'], ['.', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', 'O', 'O', 'O', '.'], ['O', 'O', 'O', 'O', '.', '.'], ['.', 'O', 'O', '.', '.', '.'], ['.', '.', '.', '.', '.', '.']] def gridOutput(grid): for s in range(len(grid[0])): print() for i in range(len(grid)): print(grid[i][s],end='') gridOutput(grid)
32.0625
39
0.230019
52
513
2.269231
0.25
0.440678
0.635593
0.813559
0.228814
0.228814
0.228814
0.228814
0.228814
0.228814
0
0.002809
0.306043
513
16
40
32.0625
0.328652
0
0
0.4
0
0
0.105058
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
0.133333
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a30e0b4a55d01fcd580ed91b60eb0241747d5a1d
136
py
Python
src/wormhole/server/__main__.py
LeastAuthority/magic-wormhole
2fadadc4dba78f167cfc1295bbea7ee778d22dd5
[ "MIT" ]
3
2017-07-20T11:26:02.000Z
2021-09-01T22:36:26.000Z
src/wormhole/server/__main__.py
Ayomiga/magic-wormhole
a836f5e3b8a0e1d88e3a0bba4305993a1fb63cf5
[ "MIT" ]
null
null
null
src/wormhole/server/__main__.py
Ayomiga/magic-wormhole
a836f5e3b8a0e1d88e3a0bba4305993a1fb63cf5
[ "MIT" ]
1
2021-07-13T17:35:02.000Z
2021-07-13T17:35:02.000Z
if __name__ != "__main__": raise ImportError('this module should not be imported') from wormhole.server import cli cli.server()
15.111111
59
0.727941
18
136
5.055556
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.176471
136
8
60
17
0.8125
0
0
0
0
0
0.308824
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
a3435efaba5a28b56ae0ce95f95e172912a91df6
18
py
Python
test.py
bbb11808/-
82affda874fd2ccfc8ee894622493999e67d52e5
[ "MIT" ]
null
null
null
test.py
bbb11808/-
82affda874fd2ccfc8ee894622493999e67d52e5
[ "MIT" ]
null
null
null
test.py
bbb11808/-
82affda874fd2ccfc8ee894622493999e67d52e5
[ "MIT" ]
null
null
null
a="hello" print(a)
9
9
0.666667
4
18
3
0.75
0
0
0
0
0
0
0
0
0
0
0
0.055556
18
2
10
9
0.705882
0
0
0
0
0
0.263158
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
a367bf0ccc884381c32df7527df8c933f76a6eb8
5,281
py
Python
DailyProgrammer/DP20151216B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20151216B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20151216B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [2015-12-16] Challenge #245 [Intermediate] Ggggggg gggg Ggggg-ggggg! https://www.reddit.com/r/dailyprogrammer/comments/3x3hqa/20151216_challenge_245_intermediate_ggggggg_gggg/ We have discovered a new species of aliens! They look like [this](https://www.redditstatic.com/about/assets/reddit-alien.png) and are trying to communicate with us using the /r/ggggg subreddit! As you might have been able to tell, though, it is awfully hard to understand what they're saying since their super-advanced alphabet only makes use of two letters: "g" and "G". Fortunately, their numbers, spacing and punctuation are the same. We are going to write a program to translate to and from our alphabet to theirs, so we can be enlightened by their intelligence. Feel free to code either the encoding program, the decoding program, or both. ^Also, ^please ^do ^not ^actually ^harass ^the ^residents ^of ^/r/ggggg. # Part 1: Decoding First, we need to be able to understand what the Ggggg aliens are saying. Fortunately, they are cooperative in this matter, and they helpfully include a "key" to translate between their g-based letters and our Latin letters. Your decoder program needs to read this key from the first line of the input, then use it to translate the rest of the input. ## Sample decoder input 1 H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! ## Sample decoder output 1 Hello, world! **Explanation:** Reading the input, the key is: * H = GgG * d = gGg * e = ggG * l = GGg * o = gGG * r = Ggg * w = ggg When we read the message from left to right, we can divide it into letters like so (alternating letters bolded): > **GgG**ggG**GGg**GGg**gGG**, **ggg**gGG**Ggg**GGg**gGg**! Take those letter groups and turn them into letters using the key, and you get "Hello, world!" ## Sample decoder input 2 a GgG d GggGg e GggGG g GGGgg h GGGgG i GGGGg l GGGGG m ggg o GGg p Gggg r gG y ggG GGGgGGGgGGggGGgGggG /gG/GggGgGgGGGGGgGGGGGggGGggggGGGgGGGgggGGgGggggggGggGGgG! Note that the letters are *not* guaranteed to be of equal length. ## Sample decoder output 2 hooray /r/dailyprogrammer! # Part 2: Encoding Next, we will go in the other direction. Come up with a key based on the letters "g" and "G" that maps all the letters in a given message to Ggggg equivalents, use it to translate the message, then output both the key and the translated message. You can double-check your work using the decoding script from part 1. ## Sample input Hello, world! ## Sample output H GgG d gGg e ggG l GGg o gGG r Ggg w ggg GgGggGGGgGGggGG, ggggGGGggGGggGg! Your key (and thus message) may end up being completely different than the one provided here. That's fine, as long as it can be translated back. # Part 2.1 (Bonus points): Compression Just as it annoys us to see someone typing "llliiiiikkkeeee ttttthhhiiiisssss", the Ggggg aliens don't actually enjoy unnecessary verbosity. Modify your encoding script to create a key that results in the *shortest possible Ggggg message*. You should be able to decode the output using the same decoder used in part 1 (the second sample input/output in part 1 is actually compressed). Here's a [hint](https://en.wikipedia.org/wiki/Variable-length_code). ## Sample input: Here's the thing. You said a "jackdaw is a crow." Is it in the same family? Yes. No one's arguing that. As someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. If you want to be "specific" like you said, then you shouldn't either. They're not the same thing. If you're saying "crow family" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. So your reasoning for calling a jackdaw a crow is because random people "call the black ones crows?" Let's get grackles and blackbirds in there, then, too. Also, calling someone a human or an ape? It's not one or the other, that's not how taxonomy works. They're both. A jackdaw is a jackdaw and a member of the crow family. But that's not what you said. You said a jackdaw is a crow, which is not true unless you're okay with calling all members of the crow family crows, which means you'd call blue jays, ravens, and other birds crows, too. Which you said you don't. It's okay to just admit you're wrong, you know? ## Sample output: Found here (a bit too big to paste in the challenge itself): http://www.hastebin.com/raw/inihibehux.txt Remember you can test your decoder on this message, too! -------- C GgggGgg H GgggGgG T GgggGGg a gGg c GGggG d GggG e GgG g ggGgG h GGgGg i gGGg j GgggGGG l gGGG m ggGGg n GGgGG o ggg p ggGGG r GGGg s GGGG t GGgggG u ggGgg v Ggggg w GGggggg y GGggggG GgggGGgGGgGggGGgGGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG GGggggggGgGGGG ggGGGGGGggggggGGGgggGGGGGgGGggG gGgGGgGGGggG GggGgGGgGGGGGGggGggGggGGGGGGGGGgGGggG gggGggggGgGGGGg gGgGGgggG /GGGg/GggGgGggGGggGGGGGggggGggGGGGGGggggggGgGGGGggGgggGGgggGGgGgGGGGg_gGGgGggGGgGgGgGGGG. GgggGgGgGgGggggGgG gGg GGggGgggggggGGG GGggGGGgGggGggGGGgGGGGgGGGgGGggGgGGgG gGGgGggGGgGgGg? GgggGgggggggGGgGgG GgggGGGggggGGgGGgGG ggGggGGGG gggGggggGgGGGGg GGgggGGGgGgGgGGGGgGgG! """ def main(): pass if __name__ == "__main__": main()
56.784946
120
0.766521
872
5,281
4.625
0.373853
0.01339
0.017853
0.020828
0.08728
0.054054
0.054054
0.043144
0.043144
0.035705
0
0.008002
0.171748
5,281
92
121
57.402174
0.914037
0.986366
0
0
0
0
0.125
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
a3874e2d30644970ecdbc080d6c0716ad6c9bd2e
1,822
py
Python
test/test_camera_capture.py
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
test/test_camera_capture.py
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
test/test_camera_capture.py
kontramind/zivid-python
b18582c0cdef261d42fb737c7eee71e350048569
[ "BSD-3-Clause" ]
null
null
null
import pytest def test_list_one_settings(file_camera): import zivid settings_collection = [zivid.Settings()] assert isinstance(settings_collection, list) with file_camera.capture(settings_collection) as hdr_frame: assert hdr_frame assert isinstance(hdr_frame, zivid.frame.Frame) def test_list_five_settings(file_camera): import zivid settings_collection = [zivid.Settings() for _ in range(5)] assert isinstance(settings_collection, list) with file_camera.capture(settings_collection) as hdr_frame: assert hdr_frame assert isinstance(hdr_frame, zivid.frame.Frame) def test_tuple_one_settings(file_camera): import zivid settings_collection = (zivid.Settings(),) assert isinstance(settings_collection, tuple) with file_camera.capture(settings_collection) as hdr_frame: assert hdr_frame assert isinstance(hdr_frame, zivid.frame.Frame) def test_tuple_five_settings(file_camera): import zivid settings_collection = tuple([zivid.Settings() for _ in range(5)]) assert isinstance(settings_collection, tuple) with file_camera.capture(settings_collection) as hdr_frame: assert hdr_frame assert isinstance(hdr_frame, zivid.frame.Frame) def test_illegal_settings(file_camera): import zivid with pytest.raises(TypeError): file_camera.capture(zivid.Settings()) with pytest.raises(AttributeError): file_camera.capture([1, 2, 3, 4, 5]) with pytest.raises(AttributeError): file_camera.capture([zivid.Settings(), zivid.Settings(), 3]) with pytest.raises(TypeError): file_camera.capture(file_camera.capture()) def test_empty_settings_list(file_camera): import _zivid with pytest.raises(RuntimeError): file_camera.capture([])
28.030769
69
0.732162
226
1,822
5.637168
0.150442
0.125589
0.133438
0.098901
0.899529
0.872841
0.872841
0.687598
0.644427
0.607535
0
0.005369
0.182217
1,822
64
70
28.46875
0.849664
0
0
0.581395
0
0
0
0
0
0
0
0
0.27907
1
0.139535
false
0
0.162791
0
0.302326
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a38984cc559500c57547a93b0a88c4ac7c6dd1a9
18
py
Python
terminfo/d/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
terminfo/d/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
terminfo/d/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
__all__ = ['dumb']
18
18
0.611111
2
18
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
18
1
18
18
0.4375
0
0
0
0
0
0.210526
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6e67f3563bc246ee87b689d7cc05f4e62cccd4a8
1,654
py
Python
unit_06/table6.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
null
null
null
unit_06/table6.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
null
null
null
unit_06/table6.py
janusnic/21v-pyqt
8ee3828e1c6e6259367d6cedbd63b9057cf52c24
[ "MIT" ]
2
2019-11-14T15:04:22.000Z
2021-10-31T07:34:46.000Z
import sqlite3 import sys try: db = sqlite3.connect("myshop.db") cursor = db.cursor() cursor.executescript(""" DROP TABLE IF EXISTS Customer, create table Customer(CustomerID integer, FirstName text, LastName text, Street text, Town text, PostCode text, TelephoneNumber text, primary key (CustomerID)); INSERT INTO Customer VALUES(1, "Adam","McNicol","1 Python Street","Cambridge","CB3 2YU","01223 467893"); INSERT INTO Customer VALUES(2, "Nicol","McAdam","2 Cython Street","Cambridge","CB3 2YU","04567 467893"); INSERT INTO Customer VALUES(3, "Nic","Adam","2 Pillow Street","London","BB3 2YU","04567 467888"); INSERT INTO Customer VALUES(4, "Ann","McDonald","55 Flowers Street","Glasgj","DB3 2YU","04567 466666"); INSERT INTO Customer VALUES(5, "Tom","Adams","2 Django Street","Dublin","CE3 2YU","04567 467777"); INSERT INTO Customer VALUES(6, "Trevor","Adams","25 Django Street","Dublin","CE3 5YU","04567 468777"); INSERT INTO Customer VALUES(7, "Tim","Doo","5 Django Street","Dublin","CE3 5YU","04567 468700"); INSERT INTO Customer VALUES(8, "Marry","Ann","7 Django Street","Dublin","CE3 5YU","04567 468700"); """) cursor.commit() except sqlite3.Error, e: if db: db.rollback() print "Error %s:" % e.args[0] sys.exit(1) finally: if db: cursor.execute('SELECT * FROM Customer order by Town') while True: tmp=cursor.fetchone() if tmp: print tmp else: break cursor.close() db.close()
36.755556
168
0.602177
205
1,654
4.858537
0.478049
0.080321
0.144578
0.192771
0.159639
0.099398
0.070281
0
0
0
0
0.102419
0.250302
1,654
44
169
37.590909
0.700806
0
0
0.058824
0
0.264706
0.69268
0.105263
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.058824
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
1
1
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
6e6fdc8fbae376b0d284a5cb491e88776d4101d7
486
py
Python
nrcan_etl/src/energuide/validator.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
7
2017-12-15T03:58:29.000Z
2018-04-23T22:48:53.000Z
nrcan_etl/src/energuide/validator.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
137
2018-01-24T16:44:57.000Z
2018-06-25T14:02:10.000Z
nrcan_etl/src/energuide/validator.py
Rockynrcan/nrcan_api
13d8fb306d8185f6bcd082c559ad3fe8b4340cc7
[ "MIT" ]
4
2018-02-15T12:40:52.000Z
2018-07-03T14:22:51.000Z
import typing import cerberus from energuide import element class DwellingValidator(cerberus.Validator): def _validate_type_xml(self, value: typing.Any) -> bool: # pylint: disable=no-self-use return isinstance(value, element.Element) def _normalize_coerce_parse_xml(self, value: typing.Any) -> element.Element: # pylint: disable=no-self-use assert isinstance(value, str), "Can't coerce non-strings to XML" return element.Element.from_string(value)
34.714286
111
0.740741
64
486
5.5
0.53125
0.119318
0.068182
0.102273
0.244318
0
0
0
0
0
0
0
0.162551
486
13
112
37.384615
0.864865
0.113169
0
0
0
0
0.07243
0
0
0
0
0
0.111111
1
0.222222
false
0
0.333333
0.111111
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
6ea971ef7c7fcc920d4ee15376c538af97c5264c
348
py
Python
pytpp/attributes/server_agent_ssh_device_placement_work.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/attributes/server_agent_ssh_device_placement_work.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/attributes/server_agent_ssh_device_placement_work.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.attributes._helper import IterableMeta from pytpp.attributes.server_agent_base_device_placement_work import ServerAgentBaseDevicePlacementWorkAttributes class ServerAgentSSHDevicePlacementWorkAttributes(ServerAgentBaseDevicePlacementWorkAttributes, metaclass=IterableMeta): __config_class__ = "Server Agent SSH Device Placement Work"
49.714286
120
0.902299
30
348
10.1
0.6
0.059406
0.125413
0
0
0
0
0
0
0
0
0
0.063218
348
6
121
58
0.929448
0
0
0
0
0
0.109195
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6eb25f449f27b03e2ba17b8a8c9532964274d1ea
217
py
Python
system_supports/urls.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
system_supports/urls.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
system_supports/urls.py
salemzii/ChopFast
95ea88387ecfdb56bd643970b69425b1a1c6f388
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('submit-feedback/', views.create_feedback, name='create-feedback'), path('feedback-list/', views.feedback_list, name='feedback_list'), ]
24.111111
76
0.723502
27
217
5.703704
0.444444
0.233766
0
0
0
0
0
0
0
0
0
0
0.129032
217
8
77
27.125
0.814815
0
0
0
0
0
0.267281
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
6ebc2b253e9c79b7d8cf3b80695e6e4d8b9b0aca
286
py
Python
test.py
arieroos/za_identity_number
d9f80a1d4e74b2cf6a293af183cb7d232c31f1fc
[ "MIT" ]
1
2020-09-25T20:07:35.000Z
2020-09-25T20:07:35.000Z
test.py
arieroos/za_identity_number
d9f80a1d4e74b2cf6a293af183cb7d232c31f1fc
[ "MIT" ]
null
null
null
test.py
arieroos/za_identity_number
d9f80a1d4e74b2cf6a293af183cb7d232c31f1fc
[ "MIT" ]
null
null
null
from za_id_number.za_id_number import SouthAfricanIdentityValidate validate_id = SouthAfricanIdentityValidate("9001245289086") if __name__ == "__main__": print(validate_id.identity()) print(validate_id.gender()) print(validate_id.age()) print(validate_id.birthdate())
28.6
66
0.776224
32
286
6.40625
0.5
0.243902
0.292683
0
0
0
0
0
0
0
0
0.051383
0.115385
286
9
67
31.777778
0.758893
0
0
0
0
0
0.073427
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
6ec9e6b42fbe8ff4d671474c3d6258e27c2649da
58
py
Python
pvanalytics/fitting/__init__.py
kanderso-nrel/pvanalytics
27ea3fdddaf0e885cce8b56438256b7e51e9bdea
[ "MIT", "BSD-3-Clause" ]
49
2020-02-19T19:18:27.000Z
2022-03-26T00:12:48.000Z
pvanalytics/fitting/__init__.py
kanderso-nrel/pvanalytics
27ea3fdddaf0e885cce8b56438256b7e51e9bdea
[ "MIT", "BSD-3-Clause" ]
96
2020-02-20T15:02:11.000Z
2022-03-22T22:51:15.000Z
pvanalytics/fitting/__init__.py
kanderso-nrel/pvanalytics
27ea3fdddaf0e885cce8b56438256b7e51e9bdea
[ "MIT", "BSD-3-Clause" ]
20
2020-02-18T21:40:13.000Z
2022-02-22T15:50:23.000Z
from pvanalytics.fitting import temperature # noqa: F401
29
57
0.810345
7
58
6.714286
1
0
0
0
0
0
0
0
0
0
0
0.06
0.137931
58
1
58
58
0.88
0.172414
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6eed0a5735f39593c38f33f71a5dc4362744de6e
65
py
Python
tests/__init__.py
gmagno/powerline_pulseaudio_volume_segment
53f69eee0475bb44f64cb01427e7f7007d09692b
[ "MIT" ]
1
2021-09-15T15:13:38.000Z
2021-09-15T15:13:38.000Z
tests/__init__.py
gmagno/powerline_pulseaudio_volume_segment
53f69eee0475bb44f64cb01427e7f7007d09692b
[ "MIT" ]
null
null
null
tests/__init__.py
gmagno/powerline_pulseaudio_volume_segment
53f69eee0475bb44f64cb01427e7f7007d09692b
[ "MIT" ]
null
null
null
"""Unit test package for powerline_pulseaudio_volume_segment."""
32.5
64
0.815385
8
65
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.076923
65
1
65
65
0.833333
0.892308
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
42bb6e2df6724dca6d7f58bcdf9550ab7870babe
92
py
Python
apps/budget/apps.py
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
apps/budget/apps.py
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
apps/budget/apps.py
GuillaumeM92/La-Bouygue
a402efbc9746acb51cd7fc66ccdac4a45b854a22
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BudgetConfig(AppConfig): name = 'apps.budget'
15.333333
33
0.75
11
92
6.272727
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.896104
0
0
0
0
0
0.119565
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
42c856cc24b8b029b51abd4b7a1198cc08704e69
22
py
Python
bmcs_beam/version.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
1
2021-05-07T11:10:27.000Z
2021-05-07T11:10:27.000Z
bmcs_beam/version.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
bmcs_beam/version.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
__version__='0.0.12a'
11
21
0.727273
4
22
3
0.75
0
0
0
0
0
0
0
0
0
0
0.190476
0.045455
22
1
22
22
0.380952
0
0
0
0
0
0.318182
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
42cdc57f14b641226e99389ab1dab048107feebe
68
py
Python
bab-3/Fungsi.py
pustakalupi/ls-belajar-python3.x
9d51916db2a57bb798b4eee81f5bea5a32a4cb90
[ "MIT" ]
null
null
null
bab-3/Fungsi.py
pustakalupi/ls-belajar-python3.x
9d51916db2a57bb798b4eee81f5bea5a32a4cb90
[ "MIT" ]
null
null
null
bab-3/Fungsi.py
pustakalupi/ls-belajar-python3.x
9d51916db2a57bb798b4eee81f5bea5a32a4cb90
[ "MIT" ]
null
null
null
''' done ''' def Jumlah(a, b): return a + b print(Jumlah(2, 8))
9.714286
19
0.529412
12
68
3
0.75
0.111111
0
0
0
0
0
0
0
0
0
0.038462
0.235294
68
7
19
9.714286
0.653846
0.058824
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
42ed91e0a11253da716f52adf1bf2e9a412f8169
63
py
Python
start.py
SaladRaider/dominion-ai
b1b7bc8c4af36534262d9b1194d59013452d40dd
[ "MIT" ]
null
null
null
start.py
SaladRaider/dominion-ai
b1b7bc8c4af36534262d9b1194d59013452d40dd
[ "MIT" ]
null
null
null
start.py
SaladRaider/dominion-ai
b1b7bc8c4af36534262d9b1194d59013452d40dd
[ "MIT" ]
null
null
null
if __name__ == "__main__": print("END OF DOMINION AI :)");
21
35
0.603175
8
63
3.75
1
0
0
0
0
0
0
0
0
0
0
0
0.206349
63
2
36
31.5
0.6
0
0
0
0
0
0.460317
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
6e0bd349be9638af02233a09bf270796fdcc99af
134
py
Python
redis/python_redis_publisher.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
redis/python_redis_publisher.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
redis/python_redis_publisher.py
MiracleWong/PythonBasic
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding:utf-8 -*- # 订阅 from RedisHelper import RedisHelper obj = RedisHelper() obj.publish('nihao')#发布
14.888889
35
0.686567
18
134
5.111111
0.833333
0.304348
0
0
0
0
0
0
0
0
0
0.008547
0.126866
134
8
36
16.75
0.777778
0.358209
0
0
0
0
0.060976
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
6e14744124f3d57a361d4e89ba995105fc147ab5
737
py
Python
disturbance/migrations/0152_auto_20200910_1632.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
1
2020-06-30T04:47:42.000Z
2020-06-30T04:47:42.000Z
disturbance/migrations/0152_auto_20200910_1632.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/migrations/0152_auto_20200910_1632.py
thakurpriya1990/disturbance
47f9ce5ae5f1b02d97ace11f1041e96daf7e4556
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-09-10 08:32 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('disturbance', '0151_auto_20200910_1405'), ] operations = [ migrations.RemoveField( model_name='apiarysitelocation', name='apiary_site', ), migrations.RemoveField( model_name='apiarysitelocation', name='approval', ), migrations.RemoveField( model_name='apiarysitelocation', name='proposal_apiary', ), migrations.DeleteModel( name='ApiarySiteLocation', ), ]
23.774194
51
0.588874
63
737
6.68254
0.603175
0.209026
0.185273
0.213777
0.370546
0.370546
0
0
0
0
0
0.064453
0.305292
737
30
52
24.566667
0.757813
0.092266
0
0.434783
1
0
0.21021
0.034535
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6e4194873f5519ead3ffd42abe63c6bca7dcaaeb
191
py
Python
friends_weekend/flights/serializers.py
jondelmil/friends-weekend
c0a9c34df7eccb740a2965a201d8798f3a93ecef
[ "MIT" ]
null
null
null
friends_weekend/flights/serializers.py
jondelmil/friends-weekend
c0a9c34df7eccb740a2965a201d8798f3a93ecef
[ "MIT" ]
null
null
null
friends_weekend/flights/serializers.py
jondelmil/friends-weekend
c0a9c34df7eccb740a2965a201d8798f3a93ecef
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Flight class FlightSerializer(serializers.ModelSerializer): class Meta: model = Flight fields = ('number', )
19.1
52
0.712042
19
191
7.105263
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.219895
191
9
53
21.222222
0.90604
0
0
0
0
0
0.031414
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
285a44bd0fd9123df72d36eb23f1d966f0fb06f0
222
py
Python
db/conditions/hash_condition.py
hiscaler/data-access-object-for-python
1234b315c4aedaad6577f7928ee6edc5c99801e5
[ "BSD-2-Clause" ]
null
null
null
db/conditions/hash_condition.py
hiscaler/data-access-object-for-python
1234b315c4aedaad6577f7928ee6edc5c99801e5
[ "BSD-2-Clause" ]
null
null
null
db/conditions/hash_condition.py
hiscaler/data-access-object-for-python
1234b315c4aedaad6577f7928ee6edc5c99801e5
[ "BSD-2-Clause" ]
null
null
null
# encoding=utf-8 from .condition import Condition class HashCondition(Condition): def __init__(self, hash): self.hash = hash def from_definition(self, operator, operands): return self(operands)
18.5
50
0.693694
26
222
5.730769
0.615385
0.107383
0
0
0
0
0
0
0
0
0
0.005747
0.216216
222
11
51
20.181818
0.850575
0.063063
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
285ed746cd19343f421185a2f2f8dc2408efd02c
5,923
py
Python
dimorphite_dl_pka/dimorphite_dl_site_substructures_smarts.py
AstraZeneca/peptide-tools
f6c68916bbd92b4ff5d83919a3e25520d6c916bd
[ "Apache-2.0" ]
1
2021-12-20T15:11:31.000Z
2021-12-20T15:11:31.000Z
dimorphite_dl_pka/dimorphite_dl_site_substructures_smarts.py
AstraZeneca/peptide-tools
f6c68916bbd92b4ff5d83919a3e25520d6c916bd
[ "Apache-2.0" ]
null
null
null
dimorphite_dl_pka/dimorphite_dl_site_substructures_smarts.py
AstraZeneca/peptide-tools
f6c68916bbd92b4ff5d83919a3e25520d6c916bd
[ "Apache-2.0" ]
null
null
null
### ### NOTICE: this file did not exit in the original Dimorphite_DL release. ### The is newly created based on "sites_substructures.smarts" file ### - made a readable Python module from it. Andrey Frolov, 2020-09-15 ### - added last column with acid-base classification. Andrey Frolov, 2020-09-11 ### - added TATA substructure. Andrey Frolov, 2020-09-15 ### Should be consistent with the current "sites_substructures.smarts" file ### data_txt=''' TATA CC(=O)N1CN(CN(C1)C(C)=O)C(C)=O NaN NaN NaN base *Azide [N+0:1]=[N+:2]=[N+0:3]-[H] 2 4.65 0.07071067811865513 acid Nitro [C,c,N,n,O,o:1]-[NX3:2](=[O:3])-[O:4]-[H] 3 -1000.0 0 acid AmidineGuanidine1 [N:1]-[C:2](-[N:3])=[NX2:4]-[H:5] 3 12.025333333333334 1.5941046150769165 base AmidineGuanidine2 [C:1](-[N:2])=[NX2+0:3] 2 10.035538461538462 2.1312826469414716 base Sulfate [SX4:1](=[O:2])(=[O:3])([O:4]-[C,c,N,n:5])-[OX2:6]-[H] 5 -2.36 1.3048043093561141 acid Sulfonate [SX4:1](=[O:2])(=[O:3])(-[C,c,N,n:4])-[OX2:5]-[H] 4 -1.8184615384615386 1.4086213481855594 acid Sulfinic_acid [SX3:1](=[O:2])-[O:3]-[H] 2 1.7933333333333332 0.4372070447739835 acid Phenyl_carboxyl [c,n,o:1]-[C:2](=[O:3])-[O:4]-[H] 3 3.463441968255319 1.2518054407928614 acid Carboxyl [C:1](=[O:2])-[O:3]-[H] 2 3.456652971502591 1.2871420886834017 acid Thioic_acid [C,c,N,n:1](=[O,S:2])-[SX2,OX2:3]-[H] 2 0.678267 1.497048763660801 acid Phenyl_Thiol [c,n:1]-[SX2:2]-[H] 1 4.978235294117647 2.6137000480499806 acid Thiol [C,N:1]-[SX2:2]-[H] 1 9.12448275862069 1.3317968158171463 acid # [*]OP(=O)(O[H])O[H]. Note that this matches terminal phosphate of ATP, ADP, AMP. Phosphate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[O+0:4])-[OX2:5]-[H] 2 2.4182608695652172 1.1091177991945305 5 6.5055 0.9512787792174668 diacid # Note that Internal_phosphate_polyphos_chain and # Initial_phosphate_like_in_ATP_ADP were added on 6/2/2020 to better detail with # molecules that have polyphosphate chains (e.g., ATP, ADP, NADH, etc.). Unlike # the other protonation states, these two were not determined by analyzing a set # of many compounds with experimentally determined pKa values. # For Internal_phosphate_polyphos_chain, we use a mean pKa value of 0.9, per # DOI: 10.7554/eLife.38821. For the precision value we use 1.0, which is roughly # the precision of the two ionizable hydroxyls from Phosphate (see above). Note # that when using recursive SMARTS strings, RDKit considers only the first atom # to be a match. Subsequent atoms define the environment. Internal_phosphate_polyphos_chain [$([PX4:1](=O)([OX2][PX4](=O)([OX2])(O[H]))([OX2][PX4](=O)(O[H])([OX2])))][O:2]-[H] 1 0.9 1.0 acid # For Initial_phosphate_like_in_ATP_ADP, we use the same values found for the # lower-pKa hydroxyl of Phosphate (above). Initial_phosphate_like_in_ATP_ADP [$([PX4:1]([OX2][C,c,N,n])(=O)([OX2][PX4](=O)([OX2])(O[H])))]O-[H] 1 2.4182608695652172 1.1091177991945305 acid # [*]P(=O)(O[H])O[H]. Cannot match terminal phosphate of ATP because O not among [C,c,N,n] Phosphonate [PX4:1](=[O:2])(-[OX2:3]-[H])(-[C,c,N,n:4])-[OX2:5]-[H] 2 1.8835714285714287 0.5925999820080644 5 7.247254901960784 0.8511476450801531 diacid Phenol [c,n,o:1]-[O:2]-[H] 1 7.065359866910526 3.277356122295936 acid Peroxide1 [O:1]([$(C=O),$(C[Cl]),$(CF),$(C[Br]),$(CC#N):2])-[O:3]-[H] 2 8.738888888888889 0.7562592839596507 acid Peroxide2 [C:1]-[O:2]-[O:3]-[H] 2 11.978235294117647 0.8697645895163075 acid O=C-C=C-OH [O:1]=[C;R:2]-[C;R:3]=[C;R:4]-[O:5]-[H] 4 3.554 0.803339458581667 acid Vinyl_alcohol [C:1]=[C:2]-[O:3]-[H] 2 8.871850714285713 1.660200255394124 acid Alcohol [C:1]-[O:2]-[H] 1 14.780384615384616 2.546464970533435 acid N-hydroxyamide [C:1](=[O:2])-[N:3]-[O:4]-[H] 3 9.301904761904762 1.2181897185891002 acid *Ringed_imide1 [O,S:1]=[C;R:2]([$([#8]),$([#7]),$([#16]),$([#6][Cl]),$([#6]F),$([#6][Br]):3])-[N;R:4]([C;R:5]=[O,S:6])-[H] 3 6.4525 0.5555627777308341 acid *Ringed_imide2 [O,S:1]=[C;R:2]-[N;R:3]([C;R:4]=[O,S:5])-[H] 2 8.681666666666667 1.8657779975741713 acid *Imide [F,Cl,Br,S,s,P,p:1][#6:2][CX3:3](=[O,S:4])-[NX3+0:5]([CX3:6]=[O,S:7])-[H] 4 2.466666666666667 1.4843629385474877 acid *Imide2 [O,S:1]=[CX3:2]-[NX3+0:3]([CX3:4]=[O,S:5])-[H] 2 10.23 1.1198214143335534 acid *Amide_electronegative [C:1](=[O:2])-[N:3](-[Br,Cl,I,F,S,O,N,P:4])-[H] 2 3.4896 2.688124315081677 acid *Amide [C:1](=[O:2])-[N:3]-[H] 2 12.00611111111111 4.512491341218857 acid *Sulfonamide [SX4:1](=[O:2])(=[O:3])-[NX3+0:4]-[H] 3 7.9160326086956525 1.9842121316708763 acid Anilines_primary [c:1]-[NX3+0:2]([H:3])[H:4] 1 3.899298673194805 2.068768503987161 base Anilines_secondary [c:1]-[NX3+0:2]([H:3])[!H:4] 1 4.335408163265306 2.1768842022330843 base Anilines_tertiary [c:1]-[NX3+0:2]([!H:3])[!H:4] 1 4.16690685045614 2.005865735782679 base Aromatic_nitrogen_unprotonated [n+0&H0:1] 0 4.3535441240733945 2.0714072661859584 base Amines_primary_secondary_tertiary [C:1]-[NX3+0:2] 1 8.159107682388349 2.5183597445318147 base # e.g., [*]P(=O)(O[H])[*]. Note that cannot match the internal phosphates of ATP, because # oxygen is not among [C,c,N,n,F,Cl,Br,I] Phosphinic_acid [PX4:1](=[O:2])(-[C,c,N,n,F,Cl,Br,I:3])(-[C,c,N,n,F,Cl,Br,I:4])-[OX2:5]-[H] 4 2.9745 0.6867886750744557 diacid # e.g., [*]OP(=O)(O[H])O[*]. Cannot match ATP because P not among [C,c,N,n,F,Cl,Br,I] Phosphate_diester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[O+0:5]-[C,c,N,n,F,Cl,Br,I:4])-[OX2:6]-[H] 6 2.7280434782608696 2.5437448856908316 acid # e.g., [*]P(=O)(O[H])O[*]. Cannot match ATP because O not among [C,c,N,n,F,Cl,Br,I]. Phosphonate_ester [PX4:1](=[O:2])(-[OX2:3]-[C,c,N,n,F,Cl,Br,I:4])(-[C,c,N,n,F,Cl,Br,I:5])-[OX2:6]-[H] 5 2.0868 0.4503028610465036 acid Primary_hydroxyl_amine [C,c:1]-[O:2]-[NH2:3] 2 4.035714285714286 0.8463816543155368 acid *Indole_pyrrole [c;R:1]1[c;R:2][c;R:3][c;R:4][n;R:5]1[H] 4 14.52875 4.06702491591416 acid *Aromatic_nitrogen_protonated [n:1]-[H] 0 7.17 2.94602395490212 acid '''
69.682353
156
0.67145
1,168
5,923
3.360445
0.251712
0.010701
0.012994
0.016306
0.184713
0.159236
0.104459
0.086879
0.055287
0.046624
0
0.290994
0.100118
5,923
84
157
70.511905
0.445403
0.068209
0
0
0
0.725806
0.995447
0.346931
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
953f8a62901cd856d1d06afb481865f00dfed5f6
1,397
py
Python
cohesity_management_sdk/models/combine_method_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/combine_method_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/combine_method_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class CombineMethodEnum(object): """Implementation of the 'CombineMethod' enum. Specifies how to combine the children of this node. The combining strategy for child devices. Some of these strategies imply constraint on the number of child devices. e.g. RAID5 will have 5 children. 'LINEAR' indicates children are juxtaposed to form this device. 'STRIPE' indicates children are striped. 'MIRROR' indicates children are mirrored. 'RAID5' 'RAID6' 'ZERO' 'THIN' 'THINPOOL' 'SNAPSHOT' 'CACHE' 'CACHEPOOL' Attributes: LINEAR: TODO: type description here. STRIPE: TODO: type description here. MIRROR: TODO: type description here. RAID5: TODO: type description here. RAID6: TODO: type description here. ZERO: TODO: type description here. THIN: TODO: type description here. THINPOOL: TODO: type description here. SNAPSHOT: TODO: type description here. CACHE: TODO: type description here. CACHEPOOL: TODO: type description here. """ LINEAR = 'LINEAR' STRIPE = 'STRIPE' MIRROR = 'MIRROR' RAID5 = 'RAID5' RAID6 = 'RAID6' ZERO = 'ZERO' THIN = 'THIN' THINPOOL = 'THINPOOL' SNAPSHOT = 'SNAPSHOT' CACHE = 'CACHE' CACHEPOOL = 'CACHEPOOL'
22.901639
76
0.635648
154
1,397
5.766234
0.402597
0.099099
0.23536
0.28491
0
0
0
0
0
0
0
0.014866
0.277738
1,397
60
77
23.283333
0.865213
0.701503
0
0
0
0
0.223729
0
0
0
0
0.183333
0
1
0
false
0
0
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
4
9557df9c8f97f994c232628337dbf33acde116b1
106
py
Python
HackerRank/Algorithm/warmup/SimpleArraySum.py
dusadpiyush96/Competetive
370e2058f330eefdf2caa404ee2a43daa62669ee
[ "MIT" ]
null
null
null
HackerRank/Algorithm/warmup/SimpleArraySum.py
dusadpiyush96/Competetive
370e2058f330eefdf2caa404ee2a43daa62669ee
[ "MIT" ]
null
null
null
HackerRank/Algorithm/warmup/SimpleArraySum.py
dusadpiyush96/Competetive
370e2058f330eefdf2caa404ee2a43daa62669ee
[ "MIT" ]
null
null
null
n = int(raw_input()) arr = (raw_input()).split() #print arr sum=0 for x in arr: sum+=int(x) print sum
13.25
27
0.622642
21
106
3.047619
0.571429
0.25
0
0
0
0
0
0
0
0
0
0.011628
0.188679
106
8
28
13.25
0.732558
0.084906
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.166667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
9559aaa5d60af46e102a4a930d13af206440044e
168
py
Python
root_module/parameters_module/set_tar_params.py
giktech/AssistedLearning
3e9d4af23c42cf40338cf56ab7f45373e77a86cb
[ "Apache-2.0" ]
null
null
null
root_module/parameters_module/set_tar_params.py
giktech/AssistedLearning
3e9d4af23c42cf40338cf56ab7f45373e77a86cb
[ "Apache-2.0" ]
null
null
null
root_module/parameters_module/set_tar_params.py
giktech/AssistedLearning
3e9d4af23c42cf40338cf56ab7f45373e77a86cb
[ "Apache-2.0" ]
null
null
null
from root_module.parameters_module import GlobalParams class TargetNetworkParams(GlobalParams): def __init__(self, mode): GlobalParams.__init__(self, mode)
33.6
54
0.791667
18
168
6.833333
0.666667
0.130081
0.195122
0
0
0
0
0
0
0
0
0
0.136905
168
5
55
33.6
0.848276
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
955d474ac0f9ff7768f272a1b719756174570896
65
py
Python
Pkg_demo.py
Antara0795/Demo-Project
59a352ec03b8c5a6b32e9a5208b8ea34e9d82383
[ "MIT" ]
null
null
null
Pkg_demo.py
Antara0795/Demo-Project
59a352ec03b8c5a6b32e9a5208b8ea34e9d82383
[ "MIT" ]
null
null
null
Pkg_demo.py
Antara0795/Demo-Project
59a352ec03b8c5a6b32e9a5208b8ea34e9d82383
[ "MIT" ]
null
null
null
from src.sample.simple import add_one o = add_one(10) print(o)
10.833333
37
0.738462
13
65
3.538462
0.769231
0.26087
0
0
0
0
0
0
0
0
0
0.036364
0.153846
65
5
38
13
0.8
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
957e4389b83ade56024add778a608fc30b446310
343
py
Python
python/test.py
chovy1/serialbox
b71c9749855d2d9bbb60da7ff779013640fede30
[ "BSD-2-Clause" ]
6
2016-01-26T14:07:23.000Z
2019-09-18T13:03:09.000Z
python/test.py
chovy1/serialbox
b71c9749855d2d9bbb60da7ff779013640fede30
[ "BSD-2-Clause" ]
5
2015-12-30T10:52:20.000Z
2017-03-27T14:29:17.000Z
python/test.py
chovy1/serialbox
b71c9749855d2d9bbb60da7ff779013640fede30
[ "BSD-2-Clause" ]
8
2015-12-17T08:52:26.000Z
2019-10-23T23:47:12.000Z
#!/usr/bin/env python #This file is released under terms of BSD license` #See LICENSE.txt for more information import unittest class Test(unittest.TestCase): def test_load_serializer(self): from serialbox import Serializer def test_load_visualizer(self): from serialbox import Visualizer if __name__ == '__main__': unittest.main()
21.4375
50
0.778426
48
343
5.3125
0.6875
0.054902
0.086275
0.180392
0
0
0
0
0
0
0
0
0.142857
343
16
51
21.4375
0.867347
0.306122
0
0
0
0
0.033898
0
0
0
0
0
0
1
0.25
false
0
0.375
0
0.75
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
0
1
0
0
4
958a4e23d47865607366ed1b6c90166c4af90cf6
11,365
py
Python
lib/services/vautoscaling/test/test_v2_api.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
12
2018-11-20T04:30:49.000Z
2021-11-09T12:34:26.000Z
lib/services/vautoscaling/test/test_v2_api.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
1
2019-01-24T15:56:15.000Z
2019-05-31T07:56:55.000Z
lib/services/vautoscaling/test/test_v2_api.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
6
2018-06-29T03:45:50.000Z
2022-03-18T01:51:45.000Z
# coding: utf-8 """ vautoscaling Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import ncloud_vautoscaling from ncloud_vautoscaling.api.v2_api import V2Api # noqa: E501 from ncloud_vautoscaling.rest import ApiException class TestV2Api(unittest.TestCase): """V2Api unit test stubs""" def setUp(self): configuration = ncloud_vautoscaling.Configuration() configuration.access_key = "YOUR ACCESS KEY" configuration.secret_key = "YOUR SECRET KEY" self.api = ncloud_vautoscaling.api.v2_api.V2Api(ncloud_vautoscaling.ApiClient(configuration)) # noqa: E501 def tearDown(self): pass def test_create_auto_scaling_group(self): """Test case for create_auto_scaling_group create_auto_scaling_group_request = ncloud_vautoscaling.CreateAutoScalingGroupRequest() try: api_response = self.api.create_auto_scaling_group(create_auto_scaling_group_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->create_auto_scaling_group: %s\n" % e) """ pass def test_create_launch_configuration(self): """Test case for create_launch_configuration create_launch_configuration_request = ncloud_vautoscaling.CreateLaunchConfigurationRequest() try: api_response = self.api.create_launch_configuration(create_launch_configuration_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->create_launch_configuration: %s\n" % e) """ pass def test_delete_auto_scaling_group(self): """Test case for delete_auto_scaling_group delete_auto_scaling_group_request = ncloud_vautoscaling.DeleteAutoScalingGroupRequest() try: api_response = self.api.delete_auto_scaling_group(delete_auto_scaling_group_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->delete_auto_scaling_group: %s\n" % e) """ pass def test_delete_launch_configuration(self): """Test case for delete_launch_configuration delete_launch_configuration_request = ncloud_vautoscaling.DeleteLaunchConfigurationRequest() try: api_response = self.api.delete_launch_configuration(delete_launch_configuration_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->delete_launch_configuration: %s\n" % e) """ pass def test_delete_scaling_policy(self): """Test case for delete_scaling_policy delete_scaling_policy_request = ncloud_vautoscaling.DeleteScalingPolicyRequest() try: api_response = self.api.delete_scaling_policy(delete_scaling_policy_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->delete_scaling_policy: %s\n" % e) """ pass def test_delete_scheduled_action(self): """Test case for delete_scheduled_action delete_scheduled_action_request = ncloud_vautoscaling.DeleteScheduledActionRequest() try: api_response = self.api.delete_scheduled_action(delete_scheduled_action_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->delete_scheduled_action: %s\n" % e) """ pass def test_execute_policy(self): """Test case for execute_policy execute_policy_request = ncloud_vautoscaling.ExecutePolicyRequest() try: api_response = self.api.execute_policy(execute_policy_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->execute_policy: %s\n" % e) """ pass def test_get_adjustment_type_list(self): """Test case for get_adjustment_type_list get_adjustment_type_list_request = ncloud_vautoscaling.GetAdjustmentTypeListRequest() try: api_response = self.api.get_adjustment_type_list(get_adjustment_type_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_adjustment_type_list: %s\n" % e) """ pass def test_get_auto_scaling_activity_log_list(self): """Test case for get_auto_scaling_activity_log_list get_auto_scaling_activity_log_list_request = ncloud_vautoscaling.GetAutoScalingActivityLogListRequest() try: api_response = self.api.get_auto_scaling_activity_log_list(get_auto_scaling_activity_log_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_auto_scaling_activity_log_list: %s\n" % e) """ pass def test_get_auto_scaling_group_detail(self): """Test case for get_auto_scaling_group_detail get_auto_scaling_group_detail_request = ncloud_vautoscaling.GetAutoScalingGroupDetailRequest() try: api_response = self.api.get_auto_scaling_group_detail(get_auto_scaling_group_detail_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_auto_scaling_group_detail: %s\n" % e) """ pass def test_get_auto_scaling_group_list(self): """Test case for get_auto_scaling_group_list get_auto_scaling_group_list_request = ncloud_vautoscaling.GetAutoScalingGroupListRequest() try: api_response = self.api.get_auto_scaling_group_list(get_auto_scaling_group_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_auto_scaling_group_list: %s\n" % e) """ pass def test_get_auto_scaling_policy_list(self): """Test case for get_auto_scaling_policy_list get_auto_scaling_policy_list_request = ncloud_vautoscaling.GetAutoScalingPolicyListRequest() try: api_response = self.api.get_auto_scaling_policy_list(get_auto_scaling_policy_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_auto_scaling_policy_list: %s\n" % e) """ pass def test_get_launch_configuration_detail(self): """Test case for get_launch_configuration_detail get_launch_configuration_detail_request = ncloud_vautoscaling.GetLaunchConfigurationDetailRequest() try: api_response = self.api.get_launch_configuration_detail(get_launch_configuration_detail_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_launch_configuration_detail: %s\n" % e) """ pass def test_get_launch_configuration_list(self): """Test case for get_launch_configuration_list get_launch_configuration_list_request = ncloud_vautoscaling.GetLaunchConfigurationListRequest() try: api_response = self.api.get_launch_configuration_list(get_launch_configuration_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_launch_configuration_list: %s\n" % e) """ pass def test_get_scaling_process_type_list(self): """Test case for get_scaling_process_type_list get_scaling_process_type_list_request = ncloud_vautoscaling.GetScalingProcessTypeListRequest() try: api_response = self.api.get_scaling_process_type_list(get_scaling_process_type_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_scaling_process_type_list: %s\n" % e) """ pass def test_get_scheduled_action_list(self): """Test case for get_scheduled_action_list get_scheduled_action_list_request = ncloud_vautoscaling.GetScheduledActionListRequest() try: api_response = self.api.get_scheduled_action_list(get_scheduled_action_list_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->get_scheduled_action_list: %s\n" % e) """ pass def test_put_scaling_policy(self): """Test case for put_scaling_policy put_scaling_policy_request = ncloud_vautoscaling.PutScalingPolicyRequest() try: api_response = self.api.put_scaling_policy(put_scaling_policy_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->put_scaling_policy: %s\n" % e) """ pass def test_put_scheduled_update_group_action(self): """Test case for put_scheduled_update_group_action put_scheduled_update_group_action_request = ncloud_vautoscaling.PutScheduledUpdateGroupActionRequest() try: api_response = self.api.put_scheduled_update_group_action(put_scheduled_update_group_action_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->put_scheduled_update_group_action: %s\n" % e) """ pass def test_resume_processes(self): """Test case for resume_processes resume_processes_request = ncloud_vautoscaling.ResumeProcessesRequest() try: api_response = self.api.resume_processes(resume_processes_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->resume_processes: %s\n" % e) """ pass def test_set_desired_capacity(self): """Test case for set_desired_capacity set_desired_capacity_request = ncloud_vautoscaling.SetDesiredCapacityRequest() try: api_response = self.api.set_desired_capacity(set_desired_capacity_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->set_desired_capacity: %s\n" % e) """ pass def test_suspend_processes(self): """Test case for suspend_processes suspend_processes_request = ncloud_vautoscaling.SuspendProcessesRequest() try: api_response = self.api.suspend_processes(suspend_processes_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->suspend_processes: %s\n" % e) """ pass def test_update_auto_scaling_group(self): """Test case for update_auto_scaling_group update_auto_scaling_group_request = ncloud_vautoscaling.UpdateAutoScalingGroupRequest() try: api_response = self.api.update_auto_scaling_group(update_auto_scaling_group_request) print(api_response) except ApiException as e: print("Exception when calling V2Api->update_auto_scaling_group: %s\n" % e) """ pass if __name__ == '__main__': unittest.main()
41.028881
115
0.694325
1,292
11,365
5.704334
0.082817
0.065672
0.065129
0.044776
0.789959
0.704613
0.639484
0.530258
0.496744
0.372999
0
0.004038
0.237396
11,365
276
116
41.177536
0.846314
0.798856
0
0.389831
1
0
0.017866
0
0
0
0
0
0
1
0.40678
false
0.389831
0.084746
0
0.508475
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
95919a4f63dfbf588d5619f85c20e0884440e2c0
311
py
Python
apps/links/serializers.py
mkdir700/Marilyn
49d735f61914b0e57410ec2d73d583c422bccaa5
[ "MIT" ]
null
null
null
apps/links/serializers.py
mkdir700/Marilyn
49d735f61914b0e57410ec2d73d583c422bccaa5
[ "MIT" ]
4
2021-04-08T20:57:24.000Z
2021-09-22T19:12:13.000Z
apps/links/serializers.py
mkdir700/Marilyn
49d735f61914b0e57410ec2d73d583c422bccaa5
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import LinksModel from common.utils import DeleteMultipleSerializer class LinksSerializer(serializers.ModelSerializer): class Meta: model = LinksModel fields = '__all__' class DeleteLinksSerializer(DeleteMultipleSerializer): pass
20.733333
54
0.78135
28
311
8.5
0.678571
0
0
0
0
0
0
0
0
0
0
0
0.173633
311
14
55
22.214286
0.92607
0
0
0
0
0
0.022508
0
0
0
0
0
0
1
0
false
0.111111
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
9592dee22aea2e538d001162408e10b0e07e51cf
55
py
Python
{{cookiecutter.github_project_name}}/python/module/{{cookiecutter.python_package_name}}/__init__.py
k-dominik/cpp_cookiecutter
03e89ca4408eeb527f7c295fcd7359b4835dc61e
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.github_project_name}}/python/module/{{cookiecutter.python_package_name}}/__init__.py
k-dominik/cpp_cookiecutter
03e89ca4408eeb527f7c295fcd7359b4835dc61e
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.github_project_name}}/python/module/{{cookiecutter.python_package_name}}/__init__.py
k-dominik/cpp_cookiecutter
03e89ca4408eeb527f7c295fcd7359b4835dc61e
[ "BSD-3-Clause" ]
null
null
null
from . _{{cookiecutter.python_package_name}} import *
18.333333
53
0.763636
6
55
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.109091
55
2
54
27.5
0.795918
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
1
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
95c6455ce759a9b8676f3de84a575c1bde96669f
37
py
Python
mkimage/mkimage/__init__.py
matkozak/KozakAndKaksonen2022
5441acf218619f2b03d90633613cccc373c6fe8a
[ "CC0-1.0" ]
null
null
null
mkimage/mkimage/__init__.py
matkozak/KozakAndKaksonen2022
5441acf218619f2b03d90633613cccc373c6fe8a
[ "CC0-1.0" ]
null
null
null
mkimage/mkimage/__init__.py
matkozak/KozakAndKaksonen2022
5441acf218619f2b03d90633613cccc373c6fe8a
[ "CC0-1.0" ]
null
null
null
# __init__.py """ Docstring TBD """
6.166667
13
0.594595
4
37
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.189189
37
5
14
7.4
0.6
0.702703
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2503e51522ac01ffe531e855e150430af866fa06
152
py
Python
app_loader/apps.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
null
null
null
app_loader/apps.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
5
2016-01-07T14:57:39.000Z
2016-09-14T22:17:41.000Z
app_loader/apps.py
jayvdb/python-app-loader
e81c4ad62d4f25ea15ff94fdac88ff3aa776dc2c
[ "BSD-3-Clause" ]
1
2020-01-15T12:28:37.000Z
2020-01-15T12:28:37.000Z
from django.apps import AppConfig class Config(AppConfig): name = 'app_loader' verbose_name = "python-app-loader" apps = ['app_loader']
15.2
38
0.684211
19
152
5.315789
0.631579
0.267327
0
0
0
0
0
0
0
0
0
0
0.203947
152
9
39
16.888889
0.834711
0
0
0
0
0
0.245033
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
251ca60e004b03bfcf46ae23c8a002f8ad7a76cf
351
py
Python
src/inlet/inlet.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
src/inlet/inlet.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
src/inlet/inlet.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from src.configuration.config_provider import ConfigProvider class Inlet(ABC): @abstractmethod def import_configuration(self, config_provider: ConfigProvider): pass @abstractmethod def apply_configuration(self): pass @abstractmethod def retrieve_data(self): pass
20.647059
68
0.723647
36
351
6.916667
0.472222
0.204819
0.168675
0
0
0
0
0
0
0
0
0
0.219373
351
16
69
21.9375
0.908759
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.583333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
253b37632244e4ad230435a2106aed1f387959c6
92
py
Python
deep_surfel/deep_surfel/lib/__init__.py
erfanhamD/deep_surfels
d6197fb87fc923298d8bc385de7cbce5130d1ad4
[ "BSD-3-Clause" ]
48
2021-04-26T15:10:23.000Z
2022-03-30T02:50:20.000Z
deep_surfel/deep_surfel/lib/__init__.py
erfanhamD/deep_surfels
d6197fb87fc923298d8bc385de7cbce5130d1ad4
[ "BSD-3-Clause" ]
1
2021-07-21T06:45:24.000Z
2021-07-21T06:45:24.000Z
deep_surfel/deep_surfel/lib/__init__.py
erfanhamD/deep_surfels
d6197fb87fc923298d8bc385de7cbce5130d1ad4
[ "BSD-3-Clause" ]
6
2021-06-09T17:31:37.000Z
2022-03-21T04:56:38.000Z
from .ops import stack, split from .dsio import export_mesh, save, load, save_sdf, load_sdf
30.666667
61
0.782609
16
92
4.3125
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.141304
92
2
62
46
0.873418
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
2542968501ab89ca120372bcbcf515b82c0d37a0
519
py
Python
fit1d/models/polynom_model.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
null
null
null
fit1d/models/polynom_model.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
null
null
null
fit1d/models/polynom_model.py
michael-amat/fit1d
0cd42874e3eba4353c564809c317510b626dee25
[ "BSD-2-Clause" ]
9
2019-02-24T12:51:28.000Z
2019-03-22T09:25:45.000Z
from typing import List from fit1d.common.model import Model class PolynomModel(Model): def __init__(self, model_parameters: List[float]=[]): if not model_parameters: raise ValueError('model_parameters cannot be empty') self._model_parameters["coefficients"] = model_parameters def create_model_from_list(self, model_list: List[float]): self.__init__(model_list) return self def dump_model_to_list(self): return self._model_parameters["coefficients"]
30.529412
65
0.714836
64
519
5.421875
0.40625
0.259366
0.164265
0.178674
0
0
0
0
0
0
0
0.00241
0.200385
519
16
66
32.4375
0.833735
0
0
0
0
0
0.1079
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.083333
0.666667
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
0
1
0
0
4
256866fbb52f1fe1f2f788350918ab044b120311
99
py
Python
6_kyu/Bugs_with_late_binding_closure.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
6_kyu/Bugs_with_late_binding_closure.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
6_kyu/Bugs_with_late_binding_closure.py
UlrichBerntien/Codewars-Katas
bbd025e67aa352d313564d3862db19fffa39f552
[ "MIT" ]
null
null
null
def create_multiplications(n): f = lambda i: lambda x: i*x return [f(i) for i in range(n)]
24.75
35
0.636364
19
99
3.263158
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.232323
99
3
36
33
0.815789
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
c250938bf2ea7af1bd46f37ec38510ce2cd1aff5
97
py
Python
core/observatory/apps.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2022-01-04T07:04:46.000Z
2022-01-04T07:04:46.000Z
core/observatory/apps.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2020-02-17T19:06:03.000Z
2020-02-17T19:06:03.000Z
core/observatory/apps.py
IvanRch/bsuphys
105715cde8fc8e9a42019ed4b650fe00b94fa132
[ "Apache-2.0" ]
1
2021-07-08T13:21:04.000Z
2021-07-08T13:21:04.000Z
from django.apps import AppConfig class ObservatoryConfig(AppConfig): name = 'observatory'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c257e4b8fa7851c7dbb2dc1069ac2733af543480
23,872
py
Python
pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:08:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, Integer32, Bits, Unsigned32, ObjectIdentity, Gauge32, MibIdentifier, iso, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Counter64, enterprises, ModuleIdentity, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Integer32", "Bits", "Unsigned32", "ObjectIdentity", "Gauge32", "MibIdentifier", "iso", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Counter64", "enterprises", "ModuleIdentity", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") class RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)) a3Com = MibIdentifier((1, 3, 6, 1, 4, 1, 43)) switchingSystemsMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29)) a3ComSwitchingSystemsMib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4)) a3ComRoutePolicy = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 29, 4, 23)) a3ComRoutePolicyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1), ) if mibBuilder.loadTexts: a3ComRoutePolicyTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyTable.setDescription('This table is used to provide routing policy facilities. The implementation allows a list of policies to be set up and matched before a given route is learned or advertised by the router, which is the device being managed.') a3ComRoutePolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyEntry.setDescription('An entry used to define a routing policy. A row in this table is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). The only mandatory object in this table is the a3ComRoutePolicyProtocolType. An entry in this table is deleted by setting a3ComRoutePolicyRowStatus to destroy(6), indexed by the id of the entry about to be removed. An example of the indexing of this table is a3ComRoutePolicyType.3') a3ComRoutePolicyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIndex.setDescription('Unique identifier of a row in the policy table. The actual number of rows that can be created on any particular device depends on the memory and processing resources available at the time.') a3ComRoutePolicyProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("undefined", 1), ("ip-rip", 2), ("ip-ospf", 3), ("ip-bgp4", 4), ("ipx-rip", 5), ("ipx-sap", 6), ("at-rtmp", 7), ("at-kip", 8), ("at-aurp", 9))).clone('undefined')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyProtocolType.setDescription('This mandatory object defines the protocol in which a policy will be used. Once such protocol family is defined, the agent will use this information to parse the source, route, as well as all other objects that apply. Once a policy entry is successfully made active(1), this object may not be modified. If the protocol chosen is not supported by the agent or is set to undefined(1), an error is returned.') a3ComRoutePolicyType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("import", 1), ("export", 2))).clone('import')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyType.setDescription('This object specifies what type of policy this is. The type import regards to ingress -- where a route advertised externally is learned by the device managed. And the type export regards to egress -- where a route is advertised by the device managed. Note that the type of policy also mandates which fields are to be parsed upon entry activation. This object can be no longer modified once the entry is activated.') a3ComRoutePolicyOriginProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyOriginProtocol.setDescription('This object is only used when a3ComRoutePolicyType is set to export(2). It makes up a mask of protocols, within the protocol suite, that matches the policy entry. If set to zero, the mask will be interpreted as a match, independent of how the route was learned. A value of 1 stands for matches on routes directly attached. A value of 2 stands for matches on routes that were statically defined in the routing table. All other values in the mask carry different meaning, depending on the current value of a3ComRoutePolicyProtocolType. The following tables summarizes such values: ------------------------------------- Any Protocol Family ------------------------------------- 00 | all (route learned by any way) 01 | directly attached route 02 | statically defined route ------------------------------------- ------------------------------------- IP | IPX | APPLETALK ------------------------------------- 04 | rip | rip | rtmp 08 | ospf | sap | kip 16 | bgp4 | unused | aurp 32 | unused | unused | unused ------------------------------------- Table 1: Route policy origin protocol mask The value of this object can be modified at any time. Examples: 1) When exporting from any protocol suite, any route learned in that suite will be advertised if a3ComRoutePolicyOriginProtocol is set to zero and the other preconditions apply. 2) When exporting from any protocol suite, only routes that were learned from static definition or that are directly attached would be advertised if a3ComRoutePolicyOriginProtocol is set to 3 (mask of 1 + 2) and the other preconditions apply. 3) When exporting from ip_rip(2), only routes that were learned from rip or bgp4 advertisements would be given out if a3ComRoutePolicyOriginProtocol is set to 20 (mask of 4 + 16) and the other preconditions apply. 4) If at example 3 we had a3ComRoutePolicyProtocolType set to at_rtmp(7) instead of ip_rip(2), the same value (i.e. 20) would indicate that advertisements under appleTalk rtmp would only include routes learned from rtmp(4) or aurp(16).') a3ComRoutePolicySourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicySourceAddress.setDescription('This DisplayString is the network address of the gateway to the route address. Note that when the policy is of the type import(1), this object will correspond to a neighboring router address, and for export(2) policies, this object will most likely correspond to the address of the managed device. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Also note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicySourceAddress is set to empty, which is the default value, the matching process will be independent from the address of the router that is advertising. The value of this object can be modified at any time.') a3ComRoutePolicyRouteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteAddress.setDescription('This DisplayString is the network address of the route to which this policy applies. Such address will be known when a route advertisement is received by the device being managed. The following formats can be used for this object: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format IPX AABBCCDD:AABBCCDDEEFF - network : node AppleTalk n[...].n[...] - dotted notation Note that each format described above must be followed according to the protocol family set in the a3ComRoutePolicyProtocolType object. When using the ip family, the agent will be smart enough to understand either one of the two formats listed. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format if such is an ip address. Note then that the object a3ComRoutePolicyProtocolType must have been set before this object gets set in order to allow the agent to properly parse its contents. If a3ComRoutePolicyRouteAddress is set to empty, which is the default value, the matching process will be independent from the route. The value of this object can be modified at any time.') a3ComRoutePolicyRouteMask = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRouteMask.setDescription('This DisplayString is the network mask of the route to which this policy applies. The following formats can be used: IP cccc - ipAddress MIB IP nnn.nnn.nnn.nnn - decimal dotted format The agent will be smart enough to understand either one of the two formats listed, based on the size of the argument given. When performing an snmp get, the agent will unconditionally return this value using the decimal dotted format. a3ComRoutePolicyRouteMask will be ignored if the protocol family is not ip or if a3ComRoutePolicyRouteAddress is empty. On the other hand, an error will be returned if an invalid mask is existent upon entry activation. The value of this object can be modified at any time.') a3ComRoutePolicyAction = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("accept", 1), ("reject", 2))).clone('accept')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAction.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAction.setDescription('This object specifies whether the protocol rejects a route that matches the policy or accepts it. a3ComRoutePolicyAction can be modified at any time.') a3ComRoutePolicyAdjustMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("noop", 1), ("add", 2), ("subtract", 3), ("multiply", 4), ("divide", 5), ("module", 6))).clone('noop')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyAdjustMetric.setDescription('This object defines what type of operation that can be additionally performed at a route metric. Note that this object will be always ignored if a3ComRoutePolicyAction is of the type reject(2). Furthermore, a3ComRoutePolicyAdjustMetric will also be ignored in occasions where a3ComRoutePolicyAction is of the type accept(1) and the object a3ComRoutePolicyMetric is set to zero. a3ComRoutePolicyAdjustMetric can be modified at any time.') a3ComRoutePolicyMetric = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyMetric.setDescription('This object is the value by which an additional adjustment can be performed on a matched route metric. The actual operation performed is defined by a3ComRoutePolicyAdjustMetric. If a3ComRoutePolicyMetric is zero, no metric adjustments are made. If a3ComRoutePolicyAdjustMetric is set to noop(1) and a3ComRoutePolicyMetric is a non-zero value, such value will be unconditionally used as the route metric. Note that the a3ComRoutePolicyMetric is only used when a3ComRoutePolicyAction is set to accept(1). If this object is set with a value outside its scope, which varies depending on a3ComRoutePolicyProtocolType, the lowest or highest value will be used instead and no error will be returned. This object can be modified at any time.') a3ComRoutePolicyWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)).clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyWeight.setDescription('This object assigns an administrative weight to the policy entry. A policy with a higher value takes precedence over a policy with a lower value. Usage of a3ComRoutePolicyWeight applies when an order of precedence is desired within multiple policies that match a common route. This object can be modified at any time.') a3ComRoutePolicyExportType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ip-ospf-type1", 1), ("ip-ospf-type2", 2), ("default", 3))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyExportType.setDescription("This object describes which type of route advertisement the router will use when a given protocol can export routes in multiple ways. In situations when there is only one way routes can be exported, a3ComRoutePolicyExportType will be ignored. If a3ComRoutePolicyExportType is set to a value not supported by the router or just doesn't match the protocol family being used, the device being managed will automatically use the default advertisement type and no error will be returned.") a3ComRoutePolicyRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 1, 1, 13), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyRowStatus.setDescription('The status column for a routing policy. This object can be set to: active(1), createAndGo(4), createAndWait(5), destroy(6) The following values may be read: inactive(2) active(1) A new policy entry in this table is created by setting this object to createAndGo(4) or createAndWait(5), indexed by the next available index (a3ComRoutePolicyNextFreeIndex). An error will be returned when an existing policy entry is set to createAndGo(4) or createAndWait(5), and that is a mechanism to detect racing conditions. Setting this object to active(1) causes the agent to attempt to commit to row based on the contents of the object in the row. If all necessary information is present in the row and the values are acceptable to the agent, the agent will change the status to active(1). If any of the necessary objects are not available or result in error, the agent will reject the request. Once a policy entry is made active(1), most fields can still be modified. Setting this object to destroy(6) will remove the entry.') a3ComRoutePolicyNextFreeIndex = MibScalar((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyNextFreeIndex.setDescription('The value of the next available policy entry. This object is automatically increased once a new policy is successfully made active(1). A new policy entry in a3ComRoutePolicyTable is created by setting a3ComRoutePolicyRowStatus to createAndGo(4) or createAndWait(5), indexed by the value of this object.') a3ComRoutePolicyIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3), ) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfTable.setDescription("This table is used to provide a list of ip interfaces under a given policy. Thus, the list generated under this table only applies to policies under the ip suite. Furthermore, the current mib specification resorts only two conditions: 1) a3ComRoutePolicyProtocolType set to ip_rip(2) 2) a3ComRoutePolicyProtocolType set to ip_ospf(3), a3ComRoutePolicyType is set to export(2) and the route about to be advertised is from ospf's direct policy. In any condition other than these two, this table will simply be ignored and no errors are returned, even if there are entries defined. In situations where either one of the conditions listed above is true and there are no entries in this table for the policy it is indexed by, any interface will satisfy. In other words, an empty list stands for an unconditional match on the interface, given all other preconditions apply. If one or more entries in this table are present and the policy is of one of the two types listed above, a route will be advertised/learned (or not, depending on a3ComRoutePolicyAction) only through the interfaces listed.") a3ComRoutePolicyIpIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1), ).setIndexNames((0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfIndex"), (0, "A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", "a3ComRoutePolicyIpIfAddressIndex")) if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfEntry.setDescription('An entry used to define an ip interface under a policy. A row in this table is created by setting a3ComRoutePolicyIpIfRowStatus with createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). Entries in this table can be added or removed at any time. If an invalid address or policy index is given, an error is returned. An example of the indexing of this table is a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205 which would stand for a3ComRoutePolicyEntry of index 3 with the ip address 158.101.112.205') a3ComRoutePolicyIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfIndex.setDescription('The identifier of a policy entry under a3ComRoutePolicyTable that this entry belongs to. Note that it is possible to have multiple entries in this table (a3ComRoutePolicyIpIfTable) with the same a3ComRoutePolicyIpIfIndex, and that is why this table is indexed by both a3ComRoutePolicyIpIfIndex and a3ComRoutePolicyIpIfAddressIndex.') a3ComRoutePolicyIpIfAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfAddressIndex.setDescription('The address of an existing ip interface at the device being managed.') a3ComRoutePolicyIpIfRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 29, 4, 23, 3, 1, 3), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setStatus('mandatory') if mibBuilder.loadTexts: a3ComRoutePolicyIpIfRowStatus.setDescription('The status column for an ip interface of a routing policy. This object can be set to: createAndGo(4), destroy(6) The following values may be read: active(1) A new ip interface entry in this table is created by setting this object to createAndGo(4), indexed by the id of an existing a3ComRoutePolicyEntry and the address of an existing ip interface at the device being managed. An error will be returned if any of the fields listed above contain invalid value. Once created successfully, this entry will automatically be made active(1). An entry in this table is deleted in similar way, except that the value set is destroy(6) instead of createAndGo(4). If a new entry, for instance, was to be created in this table for the policy 2 with ip interface address of 158.101.112.205, this object would be set to createAndGo(4) with the oid a3ComRoutePolicyIpIfRowStatus.3.158.101.112.205') mibBuilder.exportSymbols("A3COM-SWITCHING-SYSTEMS-ROUTEPOLICY-MIB", a3ComRoutePolicyAdjustMetric=a3ComRoutePolicyAdjustMetric, a3ComSwitchingSystemsMib=a3ComSwitchingSystemsMib, a3ComRoutePolicyIpIfRowStatus=a3ComRoutePolicyIpIfRowStatus, a3ComRoutePolicyWeight=a3ComRoutePolicyWeight, a3ComRoutePolicyIpIfTable=a3ComRoutePolicyIpIfTable, a3ComRoutePolicySourceAddress=a3ComRoutePolicySourceAddress, a3ComRoutePolicyAction=a3ComRoutePolicyAction, a3ComRoutePolicyType=a3ComRoutePolicyType, a3ComRoutePolicyNextFreeIndex=a3ComRoutePolicyNextFreeIndex, a3ComRoutePolicyMetric=a3ComRoutePolicyMetric, a3Com=a3Com, a3ComRoutePolicyIndex=a3ComRoutePolicyIndex, a3ComRoutePolicyExportType=a3ComRoutePolicyExportType, a3ComRoutePolicyRowStatus=a3ComRoutePolicyRowStatus, a3ComRoutePolicyIpIfIndex=a3ComRoutePolicyIpIfIndex, a3ComRoutePolicyEntry=a3ComRoutePolicyEntry, a3ComRoutePolicy=a3ComRoutePolicy, a3ComRoutePolicyProtocolType=a3ComRoutePolicyProtocolType, a3ComRoutePolicyRouteAddress=a3ComRoutePolicyRouteAddress, a3ComRoutePolicyIpIfAddressIndex=a3ComRoutePolicyIpIfAddressIndex, a3ComRoutePolicyRouteMask=a3ComRoutePolicyRouteMask, RowStatus=RowStatus, switchingSystemsMibs=switchingSystemsMibs, a3ComRoutePolicyOriginProtocol=a3ComRoutePolicyOriginProtocol, a3ComRoutePolicyTable=a3ComRoutePolicyTable, a3ComRoutePolicyIpIfEntry=a3ComRoutePolicyIpIfEntry)
277.581395
2,094
0.79277
3,206
23,872
5.901435
0.155022
0.026638
0.046617
0.005285
0.439271
0.322886
0.279387
0.266385
0.246142
0.228964
0
0.042704
0.11813
23,872
85
2,095
280.847059
0.856023
0.015583
0
0
0
0.25974
0.61547
0.08135
0
0
0
0
0
1
0
false
0
0.116883
0
0.155844
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c291a07c2f55f9a4c11db7e9e15bcd150e6c7b6f
92
py
Python
cacheops/signals.py
ErwinJunge/django-cacheops
36e85815a6ff9543a0d7afac515818b778eee86a
[ "BSD-3-Clause" ]
3
2015-11-19T15:57:12.000Z
2019-12-16T09:18:57.000Z
cacheops/signals.py
ErwinJunge/django-cacheops
36e85815a6ff9543a0d7afac515818b778eee86a
[ "BSD-3-Clause" ]
1
2016-08-03T15:36:18.000Z
2016-08-03T15:36:18.000Z
cacheops/signals.py
ErwinJunge/django-cacheops
36e85815a6ff9543a0d7afac515818b778eee86a
[ "BSD-3-Clause" ]
1
2015-11-19T15:57:13.000Z
2015-11-19T15:57:13.000Z
import django.dispatch cache_read = django.dispatch.Signal(providing_args=["func", "hit"])
23
67
0.771739
12
92
5.75
0.833333
0.405797
0
0
0
0
0
0
0
0
0
0
0.076087
92
3
68
30.666667
0.811765
0
0
0
0
0
0.076087
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c29ba036840d85ceb142fbdb63c18fc630709a36
205
py
Python
food_items/serializers.py
Toffooo/prac
bef060e395b0d53e936e142cdf2fa910bd5516dd
[ "MIT" ]
null
null
null
food_items/serializers.py
Toffooo/prac
bef060e395b0d53e936e142cdf2fa910bd5516dd
[ "MIT" ]
1
2021-06-24T14:34:46.000Z
2021-06-24T14:43:58.000Z
food_items/serializers.py
Toffooo/prac
bef060e395b0d53e936e142cdf2fa910bd5516dd
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import FoodItem class FoodModelSerializer(serializers.ModelSerializer): class Meta: model = FoodItem fields = ("name", "calorie")
20.5
55
0.721951
20
205
7.35
0.75
0
0
0
0
0
0
0
0
0
0
0
0.204878
205
9
56
22.777778
0.90184
0
0
0
0
0
0.053659
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c2ab8c968a13b9906ca98384319c426df90828be
198
py
Python
sgi/academico/apps.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
null
null
null
sgi/academico/apps.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
8
2019-12-07T13:13:34.000Z
2021-09-02T03:07:25.000Z
sgi/academico/apps.py
jorgevilaca82/SGI
c3f13d9e3e8f04377d9e23636dc8e35ed5ace35a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AcademicoConfig(AppConfig): name = "sgi.academico" def ready(self): from . import signals from . import di # dependency injection
19.8
48
0.676768
22
198
6.090909
0.772727
0.149254
0
0
0
0
0
0
0
0
0
0
0.252525
198
9
49
22
0.905405
0.10101
0
0
0
0
0.073864
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c2bb80ce274d9b3e753c6d4662f70395d920d1c9
4,208
py
Python
backend/pages/factories.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
2
2021-01-28T08:23:15.000Z
2021-03-09T06:06:58.000Z
backend/pages/factories.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
9
2020-01-02T15:31:04.000Z
2021-12-09T01:59:26.000Z
backend/pages/factories.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
1
2021-03-09T06:11:16.000Z
2021-03-09T06:11:16.000Z
import factory import factory.fuzzy from faker import Faker from users.factories import StudentFactory from . import models fake = Faker(locale='ru_RU') # TODO: need to add other locale? class AboutUsPageFactory(factory.DjangoModelFactory): class Meta: model = models.AboutUsPage django_get_or_create = ('title', ) title = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) short_description = factory.lazy_attribute(lambda o: fake.sentence( nb_words=6, variable_nb_words=True, ext_word_list=None)) short_about_us = factory.lazy_attribute(lambda o: fake.sentence( nb_words=10, variable_nb_words=True, ext_word_list=None)) class ContactsPageFactory(factory.DjangoModelFactory): class Meta: model = models.ContactsPage django_get_or_create = ('title', ) title = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) vk = factory.lazy_attribute(lambda o: fake.url()) fb = factory.lazy_attribute(lambda o: fake.url()) ok = factory.lazy_attribute(lambda o: fake.url()) youtube = factory.lazy_attribute(lambda o: fake.url()) telegram = factory.lazy_attribute(lambda o: fake.url()) address = factory.lazy_attribute(lambda o: fake.address()) details = factory.lazy_attribute(lambda o: fake.sentence( nb_words=8, variable_nb_words=True, ext_word_list=None)) phone_number = factory.lazy_attribute(lambda o: fake.phone_number()) class CourseCategoryFactory(factory.DjangoModelFactory): class Meta: model = models.CourseCategory name = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) slug = factory.lazy_attribute(lambda o: fake.user_name()) class CourseFactory(factory.DjangoModelFactory): class Meta: model = models.Course name = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) slug = factory.lazy_attribute(lambda o: fake.user_name()) category = factory.SubFactory(CourseCategoryFactory) description = factory.lazy_attribute(lambda o: fake.sentence( nb_words=15, variable_nb_words=True, ext_word_list=None)) necessary_knowledge = factory.lazy_attribute(lambda o: fake.sentence( nb_words=15, variable_nb_words=True, ext_word_list=None)) study_process = factory.lazy_attribute(lambda o: fake.sentence( nb_words=15, variable_nb_words=True, ext_word_list=None)) graduation_project = factory.lazy_attribute(lambda o: fake.sentence( nb_words=15, variable_nb_words=True, ext_word_list=None)) after_training = factory.lazy_attribute(lambda o: fake.sentence( nb_words=15, variable_nb_words=True, ext_word_list=None)) class ReviewFactory(factory.DjangoModelFactory): class Meta: model = models.Review student = factory.SubFactory(StudentFactory) course = factory.SubFactory(CourseFactory) text = factory.lazy_attribute(lambda o: fake.sentence( nb_words=12, variable_nb_words=True, ext_word_list=None)) class MassMediaPublicationFactory(factory.DjangoModelFactory): class Meta: model = models.MassMediaPublication name = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) slug = factory.lazy_attribute(lambda o: fake.user_name()) publication_url = factory.lazy_attribute(lambda o: fake.url()) mass_media_name = factory.lazy_attribute(lambda o: fake.sentence( nb_words=3, variable_nb_words=True, ext_word_list=None)) date_of_publish = factory.lazy_attribute(lambda o: fake.date()) class SiteConfigurationFactory(factory.DjangoModelFactory): class Meta: model = models.SiteConfiguration django_get_or_create = ('title', ) title = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None)) short_description = factory.lazy_attribute(lambda o: fake.sentence( nb_words=2, variable_nb_words=True, ext_word_list=None))
40.461538
73
0.739306
555
4,208
5.34955
0.171171
0.080162
0.195352
0.253958
0.767262
0.767262
0.629842
0.561132
0.538228
0.450657
0
0.00682
0.163736
4,208
103
74
40.854369
0.836885
0.007367
0
0.417722
0
0
0.00479
0
0
0
0
0.009709
0
1
0
false
0
0.063291
0
0.64557
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
6c047a40740efa59c4e6ee8abd4b30edfb386000
206
py
Python
src/erpbrasil/febraban/cnab/lotes/cobranca.py
erpbrasil/erpbrasil.febraban
a4f6b254d41e18c8883be6243dd27c143ea4e74d
[ "BSD-3-Clause" ]
1
2020-08-27T18:43:01.000Z
2020-08-27T18:43:01.000Z
src/erpbrasil/febraban/cnab/lotes/cobranca.py
erpbrasil/erpbrasil.febraban
a4f6b254d41e18c8883be6243dd27c143ea4e74d
[ "BSD-3-Clause" ]
1
2020-01-13T22:41:53.000Z
2020-01-13T22:41:53.000Z
src/erpbrasil/febraban/cnab/lotes/cobranca.py
erpbrasil/erpbrasil.febraban
a4f6b254d41e18c8883be6243dd27c143ea4e74d
[ "BSD-3-Clause" ]
4
2019-09-06T12:25:25.000Z
2021-05-17T11:41:45.000Z
from erpbrasil.febraban.cnab.tipos import Lote class LoteCobranca(Lote): HeaderCls = LoteCobranca.banco.registros.HeaderLoteCobranca TrailerCls = LoteCobranca.banco.registros.TrailerLoteCobranca
25.75
65
0.820388
20
206
8.45
0.75
0.201183
0.307692
0
0
0
0
0
0
0
0
0
0.11165
206
7
66
29.428571
0.923497
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6c48f80cf4ace191ef6d461e506453b18c1b4456
180
py
Python
tests/utils.py
Neoteroi/BlackSheep-SQLAlchemy
83575392f3bc8e1bcfad0ddfb2a0a0dee54f183e
[ "MIT" ]
4
2021-05-20T01:49:04.000Z
2022-02-21T08:13:39.000Z
tests/utils.py
Neoteroi/BlackSheep-SQLAlchemy
83575392f3bc8e1bcfad0ddfb2a0a0dee54f183e
[ "MIT" ]
1
2021-05-22T11:55:53.000Z
2021-05-22T11:55:53.000Z
tests/utils.py
Neoteroi/BlackSheep-SQLAlchemy
83575392f3bc8e1bcfad0ddfb2a0a0dee54f183e
[ "MIT" ]
null
null
null
import os def get_sleep_time(): # when starting a server process, # a longer sleep time is necessary on Windows if os.name == "nt": return 1.5 return 0.5
18
49
0.627778
29
180
3.827586
0.793103
0.162162
0
0
0
0
0
0
0
0
0
0.031496
0.294444
180
9
50
20
0.84252
0.416667
0
0
0
0
0.019608
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
6c4b4319db4d194aa29ed594504902e13c0d9dee
142
py
Python
example/my_open_house/apps.py
cuducos/django-public-admin
13ce38cf90a4bcbfdedf2b2847852f4712f265fc
[ "MIT" ]
36
2020-03-29T22:23:14.000Z
2021-09-28T18:44:49.000Z
example/my_open_house/apps.py
cuducos/django-public-admin
13ce38cf90a4bcbfdedf2b2847852f4712f265fc
[ "MIT" ]
19
2020-03-30T07:09:21.000Z
2021-09-28T18:15:11.000Z
example/my_open_house/apps.py
cuducos/django-public-admin
13ce38cf90a4bcbfdedf2b2847852f4712f265fc
[ "MIT" ]
14
2020-03-30T07:04:37.000Z
2021-11-23T00:49:22.000Z
from django.apps import AppConfig class MyOpenHouseConfig(AppConfig): name = "example.my_open_house" verbose_name = "My Open House"
20.285714
35
0.753521
18
142
5.777778
0.722222
0.115385
0.211538
0
0
0
0
0
0
0
0
0
0.169014
142
6
36
23.666667
0.881356
0
0
0
0
0
0.239437
0.147887
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
6c6fce66a6b2b6af85dc9f21cedf49e08b93de29
313
py
Python
runinfer.py
anonymous-summa/MLT-ABSum
c0c566aea60745a25834b14aa42520509c55a5ea
[ "Apache-2.0" ]
null
null
null
runinfer.py
anonymous-summa/MLT-ABSum
c0c566aea60745a25834b14aa42520509c55a5ea
[ "Apache-2.0" ]
null
null
null
runinfer.py
anonymous-summa/MLT-ABSum
c0c566aea60745a25834b14aa42520509c55a5ea
[ "Apache-2.0" ]
null
null
null
import os op = "train" os.system( f""" python -u inference.py --left 30000 --right 40000 --cuda cpu --op {op} & python -u inference.py --left 40000 --right 50000 --cuda cpu --op {op} & python -u inference.py --left 50000 --right 60000 --cuda cpu --op {op} & wait """)
20.866667
80
0.549521
44
313
3.909091
0.431818
0.122093
0.27907
0.313953
0.511628
0.383721
0.383721
0.383721
0.383721
0
0
0.134529
0.28754
313
14
81
22.357143
0.636771
0
0
0
0
0.333333
0.858065
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6659ae386cd8fe7fb43c1e1e40cc226134868c3a
196
py
Python
server/vcr-server/vcr_server/views.py
brianorwhatever/aries-vcr
96bb31a2f96406dfa2832dbd7790c46b60981e13
[ "Apache-2.0" ]
38
2019-01-07T02:49:55.000Z
2020-01-27T17:26:09.000Z
server/vcr-server/vcr_server/views.py
brianorwhatever/aries-vcr
96bb31a2f96406dfa2832dbd7790c46b60981e13
[ "Apache-2.0" ]
364
2019-01-07T20:22:15.000Z
2020-03-10T21:59:23.000Z
server/vcr-server/vcr_server/views.py
brianorwhatever/aries-vcr
96bb31a2f96406dfa2832dbd7790c46b60981e13
[ "Apache-2.0" ]
34
2019-01-04T19:16:04.000Z
2020-02-20T19:24:25.000Z
from django.http import HttpResponse from api.v2.models.Issuer import Issuer def health(request): """ Health check for OpenShift """ return HttpResponse(Issuer.objects.count())
17.818182
47
0.714286
24
196
5.833333
0.75
0
0
0
0
0
0
0
0
0
0
0.006289
0.188776
196
10
48
19.6
0.874214
0.132653
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
4
668eb43d64038e70b2a9dd56841daf3795ebb583
164
py
Python
plenum/server/stats_consumer.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
plenum/server/stats_consumer.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
plenum/server/stats_consumer.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
from typing import Dict, Any class StatsConsumer: def __init__(self): pass def sendStats(self, event: str, stats: Dict[str, Any]): pass
14.909091
59
0.628049
21
164
4.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.280488
164
10
60
16.4
0.838983
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0.166667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
66e50b0125f4fa9ab87b88a7c52c44e1396d788e
417
py
Python
systemconfig/forms/smsconfig_form.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
systemconfig/forms/smsconfig_form.py
PyFlux/PyFlux
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
10
2020-03-24T17:09:56.000Z
2021-12-13T20:00:15.000Z
systemconfig/forms/smsconfig_form.py
PyFlux/PyFlux-Django-Html
8abae10261e276bf4942aed8d54ef3b5498754ca
[ "Apache-2.0" ]
null
null
null
from django import forms class SmsConfigForm(forms.Form): firm_id = forms.CharField(label='Firm', required="", max_length=254) sms_count = forms.CharField(label='Total Sms', required="required", max_length=254) api_key = forms.CharField(label='API Key', required="required", max_length=254) status = forms.ChoiceField(label='Status', required="required", choices=((1, 'Publish'), (2, 'Unpublish')))
46.333333
111
0.717026
54
417
5.425926
0.5
0.143345
0.194539
0.204778
0.191126
0
0
0
0
0
0
0.029891
0.117506
417
8
112
52.125
0.766304
0
0
0
0
0
0.158273
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
dd0a565b6f0305df995a05fbd2150fe5062b44bc
103
py
Python
capsul/study_config/__init__.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
5
2018-10-31T10:16:53.000Z
2022-03-11T08:11:32.000Z
capsul/study_config/__init__.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
78
2018-10-30T17:04:38.000Z
2022-03-17T17:39:41.000Z
capsul/study_config/__init__.py
denisri/capsul
ea1b41f08ab1acc95e50d90916c1e282807874ca
[ "CECILL-B" ]
11
2019-01-21T10:05:08.000Z
2022-02-22T17:02:22.000Z
# -*- coding: utf-8 -*- ''' Configuration of Capsul and external software operated through capsul. '''
20.6
70
0.68932
12
103
5.916667
0.916667
0
0
0
0
0
0
0
0
0
0
0.011494
0.15534
103
4
71
25.75
0.804598
0.902913
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
dd378321d3f14275a43f4f61169158101e90444c
215
py
Python
build.py
brettlangdon/sysaudit
93f368c8832089ec38783e4a9fbcc2b1e6189670
[ "MIT" ]
5
2021-02-12T19:52:51.000Z
2021-05-19T14:42:32.000Z
build.py
brettlangdon/sysaudit
93f368c8832089ec38783e4a9fbcc2b1e6189670
[ "MIT" ]
1
2021-02-14T14:51:33.000Z
2021-03-20T12:05:56.000Z
build.py
brettlangdon/sysaudit
93f368c8832089ec38783e4a9fbcc2b1e6189670
[ "MIT" ]
1
2021-03-20T03:58:59.000Z
2021-03-20T03:58:59.000Z
def build(setup_kwargs): try: from Cython.Build import cythonize setup_kwargs["ext_modules"] = cythonize("sysaudit/_csysaudit.pyx") except ImportError: pass return setup_kwargs
21.5
74
0.674419
24
215
5.833333
0.75
0.235714
0
0
0
0
0
0
0
0
0
0
0.246512
215
9
75
23.888889
0.864198
0
0
0
0
0
0.15814
0.106977
0
0
0
0
0
1
0.142857
false
0.142857
0.285714
0
0.571429
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
0
0
0
4
dd7d731fbf5cb4438d7429e51d9a3513b48490b7
56
py
Python
run.py
skeptycal/flask-template
a1881a5bdf01d8400df2aa9621aec097ca847c75
[ "MIT" ]
1
2015-02-19T15:18:15.000Z
2015-02-19T15:18:15.000Z
run.py
Impactstory/flask-template
a1881a5bdf01d8400df2aa9621aec097ca847c75
[ "MIT" ]
1
2021-03-20T04:39:56.000Z
2021-03-20T04:39:56.000Z
run.py
skeptycal/flask-template
a1881a5bdf01d8400df2aa9621aec097ca847c75
[ "MIT" ]
1
2018-12-23T17:16:53.000Z
2018-12-23T17:16:53.000Z
from impactstoryanalytics import app app.run(debug=True)
28
36
0.857143
8
56
6
0.875
0
0
0
0
0
0
0
0
0
0
0
0.071429
56
2
37
28
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
06b5aabb92f9f393069a51ebcfcfac69e91d4517
132
py
Python
farms2face/userlogs/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/userlogs/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/userlogs/apps.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
2
2018-06-19T12:12:08.000Z
2018-06-25T18:45:36.000Z
from __future__ import unicode_literals from django.apps import AppConfig class UserlogsConfig(AppConfig): name = 'userlogs'
16.5
39
0.795455
15
132
6.666667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.151515
132
7
40
18.857143
0.892857
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
06c3327c0a126ae7c584b31dbedd552745d99a24
23
py
Python
python/apps/tools/src/tools/utils/__init__.py
matihost/monorepo
6822e48b3389f7977b9ba14827028275f1492c14
[ "MIT" ]
2
2020-11-13T06:58:49.000Z
2022-03-10T12:41:33.000Z
python/apps/tools/src/tools/utils/__init__.py
matihost/monorepo
6822e48b3389f7977b9ba14827028275f1492c14
[ "MIT" ]
null
null
null
python/apps/tools/src/tools/utils/__init__.py
matihost/monorepo
6822e48b3389f7977b9ba14827028275f1492c14
[ "MIT" ]
2
2019-02-15T11:55:42.000Z
2020-11-13T06:59:20.000Z
"""Utility methods."""
11.5
22
0.608696
2
23
7
1
0
0
0
0
0
0
0
0
0
0
0
0.086957
23
1
23
23
0.666667
0.695652
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
06d4251b22b74c6b3778123d475ecc9e11853e04
180
py
Python
hello.py
AidaBegaidarova/scsa
056579251cb9cc1ea29d0ddbbfa1ba12b93cf055
[ "Unlicense" ]
null
null
null
hello.py
AidaBegaidarova/scsa
056579251cb9cc1ea29d0ddbbfa1ba12b93cf055
[ "Unlicense" ]
null
null
null
hello.py
AidaBegaidarova/scsa
056579251cb9cc1ea29d0ddbbfa1ba12b93cf055
[ "Unlicense" ]
1
2021-11-04T06:39:30.000Z
2021-11-04T06:39:30.000Z
def app(environ, start_response): start_response("200 OK", [("Content-Type", "text/plain")]) return [(item + '\n').encode() for item in environ['QUERY_STRING'].split('&')]
45
82
0.644444
24
180
4.708333
0.833333
0.230089
0
0
0
0
0
0
0
0
0
0.019108
0.127778
180
3
83
60
0.700637
0
0
0
0
0
0.238889
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
0
0
0
4
06fdf17b8336a688e9f9ec84a8dd625f7384872c
30
py
Python
Exercicios1a10/ex001.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
Exercicios1a10/ex001.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
Exercicios1a10/ex001.py
ItamarHavenstein/Python
fe536302aea00a4a898e0f54f5b9fa6aba3301cb
[ "MIT" ]
null
null
null
msg = 'Olá mundo!' print(msg)
10
18
0.633333
5
30
3.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
2
19
15
0.76
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
6609e658144e3794b303deaae6bf18fef1172df7
130
py
Python
src/Setup/tester.py
shadowcypher/VINLookup
3f7a6a2b689d3896a8897f464302be17a69d9893
[ "MIT" ]
2
2018-10-24T04:56:18.000Z
2018-11-09T05:07:01.000Z
src/Setup/tester.py
hbg/VINLookup
3f7a6a2b689d3896a8897f464302be17a69d9893
[ "MIT" ]
null
null
null
src/Setup/tester.py
hbg/VINLookup
3f7a6a2b689d3896a8897f464302be17a69d9893
[ "MIT" ]
null
null
null
import random class tester: testLicenses = [] testStates = [] def randomLicenseandState(): combo = [testLicenses, testStates]
21.666667
36
0.738462
11
130
8.727273
0.818182
0.458333
0
0
0
0
0
0
0
0
0
0
0.153846
130
6
36
21.666667
0.872727
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.833333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
662102057681fe97611b15f6ee9d4d8b406c5dc6
1,020
py
Python
koku/reporting/migrations/0119_auto_20200707_1934.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
2
2022-01-12T03:42:39.000Z
2022-01-12T03:42:40.000Z
koku/reporting/migrations/0119_auto_20200707_1934.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
null
null
null
koku/reporting/migrations/0119_auto_20200707_1934.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
1
2021-07-21T09:33:59.000Z
2021-07-21T09:33:59.000Z
# Generated by Django 2.2.12 on 2020-07-07 19:34 from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("reporting", "0118_auto_20200630_1819")] operations = [ migrations.AddField( model_name="ocpawstagssummary", name="cluster_alias", field=models.CharField(max_length=256, null=True) ), migrations.AddField( model_name="ocpawstagssummary", name="cluster_id", field=models.CharField(max_length=50, null=True) ), migrations.AddField( model_name="ocpazuretagssummary", name="cluster_alias", field=models.CharField(max_length=256, null=True) ), migrations.AddField( model_name="ocpazuretagssummary", name="cluster_id", field=models.CharField(max_length=50, null=True) ), migrations.AddField( model_name="ocpusagereportperiod", name="cluster_alias", field=models.CharField(max_length=256, null=True) ), ]
37.777778
118
0.67451
113
1,020
5.929204
0.362832
0.134328
0.171642
0.201493
0.714925
0.714925
0.714925
0.623881
0.623881
0.567164
0
0.055693
0.207843
1,020
26
119
39.230769
0.773515
0.045098
0
0.47619
1
0
0.188272
0.023663
0
0
0
0
0
1
0
false
0
0.095238
0
0.238095
0
0
0
0
null
0
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
664909991044123efffc6a3a0a774bf3811f233b
84
py
Python
youtube_uploader/__init__.py
codingvibe/youtube-uploader
2103da977321e03887bb0749bb39dbe577a81564
[ "MIT" ]
null
null
null
youtube_uploader/__init__.py
codingvibe/youtube-uploader
2103da977321e03887bb0749bb39dbe577a81564
[ "MIT" ]
null
null
null
youtube_uploader/__init__.py
codingvibe/youtube-uploader
2103da977321e03887bb0749bb39dbe577a81564
[ "MIT" ]
null
null
null
from youtube_uploader.youtube_uploader import upload_video __all__ = "upload_video"
28
58
0.869048
11
84
5.909091
0.636364
0.461538
0
0
0
0
0
0
0
0
0
0
0.083333
84
3
59
28
0.844156
0
0
0
0
0
0.141176
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
665192728b11d3ee25f46b6f1164f4bdad38d576
81
py
Python
hello.py
aca5ym/cs3240-labdemo
104d55f8482979a53911ef76ab4c68435819a5fd
[ "MIT" ]
null
null
null
hello.py
aca5ym/cs3240-labdemo
104d55f8482979a53911ef76ab4c68435819a5fd
[ "MIT" ]
null
null
null
hello.py
aca5ym/cs3240-labdemo
104d55f8482979a53911ef76ab4c68435819a5fd
[ "MIT" ]
null
null
null
__author__ = 'Andrew Anderson aca5ym' print("hello everybody have a great day!")
27
42
0.765432
11
81
5.272727
1
0
0
0
0
0
0
0
0
0
0
0.014286
0.135802
81
2
43
40.5
0.814286
0
0
0
0
0
0.679012
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
b0ad5131c0e52958927dc14c1e47c623cac4fcf6
382
py
Python
webex_bot/formatting.py
sandorzm/webex_bot
7a12c80cf210441feff5f2dbf12f38a78df4f83c
[ "MIT" ]
10
2021-03-30T09:34:14.000Z
2022-03-15T19:36:25.000Z
webex_bot/formatting.py
sandorzm/webex_bot
7a12c80cf210441feff5f2dbf12f38a78df4f83c
[ "MIT" ]
15
2021-03-19T20:35:19.000Z
2022-03-15T00:04:32.000Z
webex_bot/formatting.py
sandorzm/webex_bot
7a12c80cf210441feff5f2dbf12f38a78df4f83c
[ "MIT" ]
11
2021-05-17T12:52:10.000Z
2022-03-14T00:03:51.000Z
def quote_info(text): return f"<blockquote class=info>{text}</blockquote>" def quote_warning(text): return f"<blockquote class=warning>{text}</blockquote>" def quote_danger(text): return f"<blockquote class=danger>{text}</blockquote>" def code(text): return f"<code>{text}</code>" def html_link(link_text, url): return f"<a href='{url}'>{link_text}</a>"
20.105263
59
0.680628
55
382
4.618182
0.290909
0.137795
0.173228
0.248032
0.307087
0
0
0
0
0
0
0
0.138743
382
18
60
21.222222
0.772036
0
0
0
0
0
0.473822
0.32199
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
b0af20ee0ddb790cfc02d1fd367bf1941ab68115
69
py
Python
yf_api/__init__.py
bherbruck/yf-api-python
3bbf6b28a28883b34611f18085e6277491347d87
[ "MIT" ]
null
null
null
yf_api/__init__.py
bherbruck/yf-api-python
3bbf6b28a28883b34611f18085e6277491347d87
[ "MIT" ]
null
null
null
yf_api/__init__.py
bherbruck/yf-api-python
3bbf6b28a28883b34611f18085e6277491347d87
[ "MIT" ]
null
null
null
from .main import get_quotes from .models import Interval, TimeRange
23
39
0.826087
10
69
5.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.130435
69
2
40
34.5
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b0b50a7d5acaba063e59b6855a227b883d2aac46
255
py
Python
pngToNumpy.py
zhongweidee/PNG-to-Python
4b249ec5889ecf15a2d92ecfc9123f02e6381826
[ "Apache-2.0" ]
null
null
null
pngToNumpy.py
zhongweidee/PNG-to-Python
4b249ec5889ecf15a2d92ecfc9123f02e6381826
[ "Apache-2.0" ]
null
null
null
pngToNumpy.py
zhongweidee/PNG-to-Python
4b249ec5889ecf15a2d92ecfc9123f02e6381826
[ "Apache-2.0" ]
null
null
null
from PIL import Image import numpy as np #im_frame = Image.open(r'test-images\0\test1.png') im_frame = Image.open(r'test-images\1\test3.png') #im_frame = Image.open(r'training-images\0\im9963.png') np_frame = np.array(im_frame.getdata()) print(np_frame)
28.333333
55
0.752941
48
255
3.875
0.479167
0.150538
0.193548
0.258065
0.413978
0.413978
0.290323
0
0
0
0
0.038627
0.086275
255
8
56
31.875
0.759657
0.403922
0
0
0
0
0.153333
0.153333
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
b0f80c6feeccf2cdcc4c75693b4980a91089d3f4
196
py
Python
primitives_ubc/pca/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
null
null
null
primitives_ubc/pca/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
4
2020-07-19T00:45:29.000Z
2020-12-10T18:25:41.000Z
primitives_ubc/pca/__init__.py
tonyjo/ubc_primitives
bc94a403f176fe28db2a9ac9d1a48cb9db021f90
[ "Apache-2.0" ]
1
2021-04-30T18:13:49.000Z
2021-04-30T18:13:49.000Z
from .pca import PrincipalComponentAnalysisPrimitive __all__ = ['PrincipalComponentAnalysisPrimitive'] from pkgutil import extend_path __path__ = extend_path(__path__, __name__) # type: ignore
28
58
0.831633
18
196
8.055556
0.611111
0.137931
0.193103
0
0
0
0
0
0
0
0
0
0.107143
196
6
59
32.666667
0.828571
0.061224
0
0
0
0
0.192308
0.192308
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
b0f94ba2ac4f93d1cfbb4715b9ed182f9438968b
137
py
Python
ACM-Solution/CCONSTANT.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
2
2016-04-26T15:40:40.000Z
2018-07-18T10:16:42.000Z
ACM-Solution/CCONSTANT.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2016-04-26T15:44:15.000Z
2016-04-29T14:44:40.000Z
ACM-Solution/CCONSTANT.py
wasi0013/Python-CodeBase
4a7a36395162f68f84ded9085fa34cc7c9b19233
[ "MIT" ]
1
2018-10-02T16:12:19.000Z
2018-10-02T16:12:19.000Z
try: while 1: x=input() try: if(x[1]=='x'):print(int(x,16)) elif(x[0]=='0'):print(int(x,8)) else: print(x) except:0
13.7
34
0.49635
27
137
2.518519
0.518519
0.058824
0.264706
0
0
0
0
0
0
0
0
0.075472
0.226277
137
9
35
15.222222
0.566038
0
0
0.25
0
0
0.015625
0
0
0
0
0
0
0
null
null
0
0
null
null
0.375
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
b00933062ea03c0734df7b95c795aa1506c72eab
47
py
Python
zetanize/__init__.py
fakegit/zetanize
b72d37ea08038cc6347d2d4395c93e51c9323e08
[ "MIT" ]
78
2018-10-27T08:52:13.000Z
2021-11-22T06:58:42.000Z
zetanize/__init__.py
imbi7py/zetanize
b72d37ea08038cc6347d2d4395c93e51c9323e08
[ "MIT" ]
null
null
null
zetanize/__init__.py
imbi7py/zetanize
b72d37ea08038cc6347d2d4395c93e51c9323e08
[ "MIT" ]
17
2018-10-29T07:28:22.000Z
2021-08-05T20:40:16.000Z
from zetanize import zetanize name = "zetanize"
23.5
29
0.808511
6
47
6.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.12766
47
2
30
23.5
0.926829
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
b0282b74da3ae2b7258dc5a1888e173c68fba018
242
py
Python
graviti/dataframe/sql/__init__.py
Lee-000/graviti-python-sdk
46b19a4a74949a957da3e72261b1403bbeeac01a
[ "MIT" ]
12
2022-01-26T06:51:02.000Z
2022-03-22T21:28:35.000Z
graviti/dataframe/sql/__init__.py
Lee-000/graviti-python-sdk
46b19a4a74949a957da3e72261b1403bbeeac01a
[ "MIT" ]
51
2022-02-22T07:19:34.000Z
2022-03-31T11:39:51.000Z
graviti/dataframe/sql/__init__.py
Lee-000/graviti-python-sdk
46b19a4a74949a957da3e72261b1403bbeeac01a
[ "MIT" ]
5
2022-01-26T06:51:49.000Z
2022-03-08T03:41:11.000Z
#!/usr/bin/env python3 # # Copyright 2022 Graviti. Licensed under MIT License. # """search module.""" from graviti.dataframe.sql.array import DataFrame from graviti.dataframe.sql.scalar import RowSeries __all__ = ["RowSeries", "DataFrame"]
22
53
0.756198
30
242
5.966667
0.7
0.122905
0.223464
0.256983
0
0
0
0
0
0
0
0.023364
0.115702
242
10
54
24.2
0.813084
0.363636
0
0
0
0
0.124138
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b02a3e3f5a68ded86750db338c3f806879cf61d0
185
py
Python
bci_framework/framework/editor/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
2
2020-05-28T14:01:47.000Z
2022-01-14T15:40:34.000Z
bci_framework/framework/editor/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
null
null
null
bci_framework/framework/editor/__init__.py
UN-GCPDS/bci-framework
2bf8e2912a51d909604d680c96cac159b26e566f
[ "BSD-2-Clause" ]
null
null
null
""" ====== Editor ====== BCI-Framework includes a custom QTextEdit with syntax highlighting and autocomplete. """ from .editor import BCIEditor # from .completer import Autocompleter
15.416667
70
0.735135
20
185
6.8
0.85
0
0
0
0
0
0
0
0
0
0
0
0.140541
185
11
71
16.818182
0.855346
0.778378
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
b02a736cd128962a57c41aaec4d2c45e26ae3db5
234
py
Python
python/methods/sum_columns.py
treilly94/spark-library
68093b4cc3ce124960a5fb87adcf6933be82c453
[ "MIT" ]
1
2018-08-22T13:15:21.000Z
2018-08-22T13:15:21.000Z
python/methods/sum_columns.py
treilly94/spark-library
68093b4cc3ce124960a5fb87adcf6933be82c453
[ "MIT" ]
5
2018-08-03T11:37:43.000Z
2018-08-14T08:26:00.000Z
python/methods/sum_columns.py
treilly94/spark-library
68093b4cc3ce124960a5fb87adcf6933be82c453
[ "MIT" ]
2
2018-08-23T09:39:01.000Z
2018-09-06T13:59:42.000Z
from pyspark.sql import DataFrame def sum_columns(df, col1, col2, new_col): # Get the Scala API api = df._sc._jvm.com.example.api.SumColumnsAPI return DataFrame(api.sumColumns(df._jdf, col1, col2, new_col), df.sql_ctx)
26
78
0.726496
38
234
4.289474
0.684211
0.09816
0.134969
0.171779
0
0
0
0
0
0
0
0.020408
0.162393
234
8
79
29.25
0.811224
0.07265
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
b063c919f18f83b570a0120847a533108e3ba4b9
31
py
Python
homeassistant/components/aftership/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/aftership/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/aftership/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The aftership component."""
15.5
30
0.677419
3
31
7
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
31
1
31
31
0.75
0.774194
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c65e0c8a1dd55f503a62552a62ba4093bf43e4a5
226
py
Python
optims/__init__.py
SachinKumar105/Implicit-Competitive-Regularization
e33be3f86b5e7c434482feeb027a7d8aaf922052
[ "Apache-2.0" ]
107
2019-10-15T15:55:20.000Z
2021-12-27T02:02:50.000Z
optims/__init__.py
SachinKumar105/Implicit-Competitive-Regularization
e33be3f86b5e7c434482feeb027a7d8aaf922052
[ "Apache-2.0" ]
11
2019-10-16T09:41:23.000Z
2020-12-16T08:44:38.000Z
optims/__init__.py
SachinKumar105/Implicit-Competitive-Regularization
e33be3f86b5e7c434482feeb027a7d8aaf922052
[ "Apache-2.0" ]
26
2019-10-15T03:38:41.000Z
2021-03-25T11:52:08.000Z
from .cgd import BCGD, BCGD2 from .icr import ICR from .adam import Adam, RAdam from .acgd import ACGD from .ocgd import OCGD # from .testOptim import testBCGD from .lcgd import LCGD from .scgd import SCGD from .scg import SCG
25.111111
33
0.778761
38
226
4.631579
0.394737
0
0
0
0
0
0
0
0
0
0
0.005319
0.168142
226
9
34
25.111111
0.930851
0.137168
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
c66bc3612034523b2420828cd040392f08686ca9
218
py
Python
_package/xms/extractor/__init__.py
Aquaveo/xmsextractor
7b8ebc5e444bbdd3d8c44a2d5f849fa0430ad97e
[ "BSD-2-Clause" ]
null
null
null
_package/xms/extractor/__init__.py
Aquaveo/xmsextractor
7b8ebc5e444bbdd3d8c44a2d5f849fa0430ad97e
[ "BSD-2-Clause" ]
4
2018-09-19T20:10:43.000Z
2019-11-01T22:09:37.000Z
_package/xms/extractor/__init__.py
Aquaveo/xmsextractor
7b8ebc5e444bbdd3d8c44a2d5f849fa0430ad97e
[ "BSD-2-Clause" ]
null
null
null
"""Initialize the module.""" from .ugrid_2d_data_extractor import UGrid2dDataExtractor # NOQA: F401 from .ugrid_2d_polyline_data_extractor import UGrid2dPolylineDataExtractor # NOQA: F401 __version__ = '5.0.1'
36.333333
89
0.788991
26
218
6.192308
0.692308
0.111801
0.136646
0
0
0
0
0
0
0
0
0.068421
0.12844
218
5
90
43.6
0.778947
0.206422
0
0
0
0
0.031056
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c67b7c04aa91906545ca87e15443083bc74e450b
1,120
py
Python
solutions/crosalot/01.py
crosalot/openteam
6b761d8472d9ba5fb8be769376365c9ddd6bbc78
[ "MIT" ]
null
null
null
solutions/crosalot/01.py
crosalot/openteam
6b761d8472d9ba5fb8be769376365c9ddd6bbc78
[ "MIT" ]
null
null
null
solutions/crosalot/01.py
crosalot/openteam
6b761d8472d9ba5fb8be769376365c9ddd6bbc78
[ "MIT" ]
null
null
null
import unittest def fizz_buzz(value): output = "" if value % 3 == 0: output += "Fizz" if value % 5 == 0: output += "Buzz" return output or value class Test(unittest.TestCase): def test1(self): def i(index): return index - 1 output = [fizz_buzz(value) for value in range(1, 101)] self.assertEqual(output[i(1)], 1) self.assertEqual(output[i(2)], 2) self.assertEqual(output[i(3)], "Fizz") self.assertEqual(output[i(4)], 4) self.assertEqual(output[i(5)], "Buzz") self.assertEqual(output[i(6)], "Fizz") self.assertEqual(output[i(7)], 7) self.assertEqual(output[i(8)], 8) self.assertEqual(output[i(9)], "Fizz") self.assertEqual(output[i(10)], "Buzz") self.assertEqual(output[i(11)], 11) self.assertEqual(output[i(12)], "Fizz") self.assertEqual(output[i(13)], 13) self.assertEqual(output[i(14)], 14) self.assertEqual(output[i(15)], "FizzBuzz") self.assertEqual(output[i(16)], 16) if __name__ == "__main__": unittest.main()
28
62
0.572321
147
1,120
4.292517
0.285714
0.380349
0.532488
0.557845
0.247227
0
0
0
0
0
0
0.055288
0.257143
1,120
39
63
28.717949
0.703125
0
0
0
0
0
0.042857
0
0
0
0
0
0.516129
1
0.096774
false
0
0.032258
0.032258
0.225806
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
c686391e607b4c0e6603b3816c8219fd246c2a90
97
py
Python
app/app/calc.py
udi9596/recipe-app-api
c4f43d76d4b1b318a5c559553d177cdc82dbc8c0
[ "MIT" ]
null
null
null
app/app/calc.py
udi9596/recipe-app-api
c4f43d76d4b1b318a5c559553d177cdc82dbc8c0
[ "MIT" ]
null
null
null
app/app/calc.py
udi9596/recipe-app-api
c4f43d76d4b1b318a5c559553d177cdc82dbc8c0
[ "MIT" ]
null
null
null
def add(x, y): """ Add two number """ return x+y def subtract(x,y): return abs(x-y)
13.857143
26
0.536082
18
97
2.888889
0.5
0.153846
0
0
0
0
0
0
0
0
0
0
0.278351
97
6
27
16.166667
0.742857
0.14433
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
c6b16b2d55612cad15607d7323d0bd66038bf60f
692
py
Python
tools/pythonhelper/build/exe.linux_x86_64-3.6/projecthandler/additiondisplay.py
InsightGit/JetfuelGameEngine
3ea0bf2fb5e09aadf304b7b5a16882d72336c408
[ "Apache-2.0" ]
4
2018-02-05T03:40:10.000Z
2021-06-18T16:22:13.000Z
tools/pythonhelper/build/exe.linux_x86_64-3.6/projecthandler/additiondisplay.py
InsightGit/JetfuelGameEngine
3ea0bf2fb5e09aadf304b7b5a16882d72336c408
[ "Apache-2.0" ]
null
null
null
tools/pythonhelper/build/exe.linux_x86_64-3.6/projecthandler/additiondisplay.py
InsightGit/JetfuelGameEngine
3ea0bf2fb5e09aadf304b7b5a16882d72336c408
[ "Apache-2.0" ]
null
null
null
from os import path from json import load class AdditionDisplay: _projectlocation = None; _additionsfile = None; _existingadditions = None; _currentAdditionsLabel = None; #_current def __init__(self, projectlocation): self._projectlocation = projectlocation; if(path.exists(self._projectlocation+"/.additions.json")): self._existingadditions = load(open(self._projectlocation+ "/.additions.json")); else: None; self._additionsfile = open(self._projectlocation+"/.additions.json", 'a')); #
26.615385
77
0.556358
51
692
7.254902
0.45098
0.256757
0.227027
0.259459
0.194595
0
0
0
0
0
0
0
0.352601
692
25
78
27.68
0.825893
0
0
0
0
0
0.074581
0
0
0
0
0
0
0
null
null
0
0.125
null
null
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
1
0
0
0
0
0
0
0
0
4
c6c35dc1701336231827c4ccc2eb7be6238c2d18
727
py
Python
src/mongo_lib.py
GoyalYatin/Python-Robot-Libraries
f1c96b0252370702c048abc095d7722bbfbb85a1
[ "MIT" ]
1
2019-02-23T22:08:32.000Z
2019-02-23T22:08:32.000Z
src/mongo_lib.py
GoyalYatin/Python-Robot-Libraries
f1c96b0252370702c048abc095d7722bbfbb85a1
[ "MIT" ]
null
null
null
src/mongo_lib.py
GoyalYatin/Python-Robot-Libraries
f1c96b0252370702c048abc095d7722bbfbb85a1
[ "MIT" ]
null
null
null
from pymongo import MongoClient import config as cons def fetch_record_by_column(collection_name, column_name, column_value): """ Get record from DB for given column_name and value """ db = init_db() collection = db[collection_name] document = list(collection.find({column_name: column_value})) return document def insert_to_db(collection_name): """ TODO: To add later """ def del_from_db(): """ TODO: To add later """ def init_db(): """ Establishing the connection with MongoDB """ connection = MongoClient(cons.ip_port_initial_db) connection.sampledb.authenticate(cons.mongoUserName, cons.mongoPasswd) db = connection.sampledb return db
20.771429
74
0.689133
91
727
5.285714
0.472527
0.087318
0.066528
0.087318
0.070686
0
0
0
0
0
0
0
0.217332
727
34
75
21.382353
0.845343
0.177442
0
0
0
0
0
0
0
0
0
0.058824
0
1
0.285714
false
0.071429
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
1
0
0
4
c6ca5491170fe1f35a0f2f7fcc423824c03f72c4
206
py
Python
causal_rl/gnn.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
2
2021-04-02T12:06:13.000Z
2022-02-09T06:57:26.000Z
causal_rl/gnn.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
11
2020-12-28T14:51:31.000Z
2021-03-29T19:53:24.000Z
causal_rl/gnn.py
vluzko/causal_rl
92ee221bdf1932fa83955441baabb5e28b78ab9d
[ "MIT" ]
null
null
null
import torch from torch import nn, functional as F class GNN(nn.Module): def forward(self, state: torch.Tensor, edges: torch.Tensor) -> torch.Tensor: import pdb pdb.set_trace()
12.875
80
0.65534
29
206
4.62069
0.655172
0.246269
0
0
0
0
0
0
0
0
0
0
0.247573
206
15
81
13.733333
0.864516
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c6d01193160159ae39dc49189f3a342db4870ce1
63
py
Python
pylearn2/sandbox/nlp/datasets/__init__.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
2,045
2015-01-01T14:07:52.000Z
2022-03-08T08:56:41.000Z
pylearn2/sandbox/nlp/datasets/__init__.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
305
2015-01-02T13:18:24.000Z
2021-08-20T18:03:28.000Z
pylearn2/sandbox/nlp/datasets/__init__.py
BouchardLab/pylearn2
4cab785b870d22cd9e85a5f536d4cac234b6bf60
[ "BSD-3-Clause" ]
976
2015-01-01T17:08:51.000Z
2022-03-25T19:53:17.000Z
""" Sandbox datasets for natural language processing (NLP) """
15.75
54
0.730159
7
63
6.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
63
3
55
21
0.851852
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c6dcc3b23b2ca4a52ff7fb43d914a30fb01c0d54
200
py
Python
karez/connector/extras/__init__.py
cap-dcwiz/Karez
6b9347baf63af92b4eba3fd1dc2d45f08e361d3a
[ "MIT" ]
null
null
null
karez/connector/extras/__init__.py
cap-dcwiz/Karez
6b9347baf63af92b4eba3fd1dc2d45f08e361d3a
[ "MIT" ]
null
null
null
karez/connector/extras/__init__.py
cap-dcwiz/Karez
6b9347baf63af92b4eba3fd1dc2d45f08e361d3a
[ "MIT" ]
null
null
null
from . import opcua, eaton_telemetry, virtgen_telemetry PLUGINS = dict( opcua=opcua.Connector, eaton_telemetry=eaton_telemetry.Connector, virtgen_telemetry=virtgen_telemetry.Connector, )
25
55
0.795
22
200
6.954545
0.409091
0.27451
0.326797
0
0
0
0
0
0
0
0
0
0.13
200
7
56
28.571429
0.87931
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c6f0199cbf6b85d1269fb19fcd2c6220f6f3fc64
93
py
Python
config/__init__.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
config/__init__.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
config/__init__.py
zyxwvu321/Classifer_SSL_Longtail
e6c09414c49e695b0f4221a3c6245ae3929a1788
[ "MIT" ]
null
null
null
# encoding: utf-8 """ default config for SkinClassifier """ from .defaults import _C as cfg
13.285714
33
0.72043
13
93
5.076923
1
0
0
0
0
0
0
0
0
0
0
0.012987
0.172043
93
6
34
15.5
0.844156
0.537634
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c6fcf46f5afc8e8cf9f4db01530abd42d6362857
1,558
py
Python
tests/test_shadow_root.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
null
null
null
tests/test_shadow_root.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
null
null
null
tests/test_shadow_root.py
alialdakheel/splinter
b4c48dc0af9ef98d7d9268f42f4d31a51e65fd68
[ "BSD-3-Clause" ]
null
null
null
from .fake_webapp import EXAMPLE_APP import pytest from splinter.driver.webdriver import ShadowRootElement supported_browsers = ['chrome', 'chrome_fullscreen'] @pytest.mark.parametrize('browser_name', supported_browsers) def test_shadow_root(browser_name, get_new_browser): """The shadow_root property will return a ShadowRootElement.""" browser = get_new_browser(browser_name) browser.visit(EXAMPLE_APP) element = browser.find_by_id("has_shadow_root") shadow_root = element.shadow_root assert isinstance(shadow_root, ShadowRootElement) @pytest.mark.parametrize('browser_name', supported_browsers) def test_shadow_root_element_find_by_css(browser_name, get_new_browser): """ShadowRootElement implements ElementAPI.find_by_css.""" browser = get_new_browser(browser_name) browser.visit(EXAMPLE_APP) element = browser.find_by_id("has_shadow_root") shadow_root = element.shadow_root inner_element = shadow_root.find_by_css("#text_in_shadow_root") assert "Inside a shadow root" == inner_element.value @pytest.mark.parametrize('browser_name', supported_browsers) def test_shadow_root_element_find_by_name(browser_name, get_new_browser): """ShadowRootElement implements ElementAPI.find_by_value.""" browser = get_new_browser(browser_name) browser.visit(EXAMPLE_APP) element = browser.find_by_id("has_shadow_root") shadow_root = element.shadow_root inner_element = shadow_root.find_by_name("text_in_shadow_root_name") assert "Inside a shadow root" == inner_element.value
33.869565
73
0.789474
208
1,558
5.5
0.221154
0.174825
0.068182
0.076923
0.754371
0.733392
0.733392
0.733392
0.663462
0.663462
0
0
0.121951
1,558
45
74
34.622222
0.836257
0.105905
0
0.62963
0
0
0.136529
0.017429
0
0
0
0
0.111111
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
05bef326ff3fcad4c16a161510f9b775f8c1587a
93
py
Python
Python/8kyu/0002squaringAnArgument/sa.py
AndrewMichaelPierce/Codewars
6e2fa0870753428f5d957331bad07c64f8869281
[ "MIT" ]
null
null
null
Python/8kyu/0002squaringAnArgument/sa.py
AndrewMichaelPierce/Codewars
6e2fa0870753428f5d957331bad07c64f8869281
[ "MIT" ]
null
null
null
Python/8kyu/0002squaringAnArgument/sa.py
AndrewMichaelPierce/Codewars
6e2fa0870753428f5d957331bad07c64f8869281
[ "MIT" ]
null
null
null
def main(): def square(n): return n * n if __name__ == '__main__': main()
10.333333
26
0.505376
12
93
3.25
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.344086
93
8
27
11.625
0.639344
0
0
0
0
0
0.086957
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
05d0e8342183388c33118f7454777ea10ee1f079
563
py
Python
day1/test_fuel_req.py
capsulecorplab/adventofcode2019
a1a27f37dde23662bdca6950680d159a42035c36
[ "MIT" ]
null
null
null
day1/test_fuel_req.py
capsulecorplab/adventofcode2019
a1a27f37dde23662bdca6950680d159a42035c36
[ "MIT" ]
null
null
null
day1/test_fuel_req.py
capsulecorplab/adventofcode2019
a1a27f37dde23662bdca6950680d159a42035c36
[ "MIT" ]
null
null
null
################################################################################ # Filename: # test_fuel.py # # Prerequisites: # * Python3 # # Requirements: # * pytest # # CLI usage: # $ cd day1/ # $ pytest -v test_fuel.py ################################################################################ import pytest from fuel_req import m_fuel def test_fuel_req1(): assert m_fuel(12) == 2 def test_fuel_req2(): assert m_fuel(14) == 2 def test_fuel_req3(): assert m_fuel(1969) == 654 def test_fuel_req4(): assert m_fuel(100756) == 33583
16.558824
80
0.470693
61
563
4.081967
0.491803
0.192771
0.176707
0.096386
0
0
0
0
0
0
0
0.062893
0.152753
563
33
81
17.060606
0.45912
0.207815
0
0
0
0
0
0
0
0
0
0
0.4
1
0.4
true
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
1
0
0
4
05fea2a59d108a00b7d2f33deaac9c8b3084f919
26
py
Python
tests/__init__.py
JPM-git/netdisco
f48ab179086d7ec5b1e39b4752b9d9f759010ab9
[ "Apache-2.0" ]
234
2016-04-18T23:47:08.000Z
2021-04-15T09:18:11.000Z
tests/__init__.py
JPM-git/netdisco
f48ab179086d7ec5b1e39b4752b9d9f759010ab9
[ "Apache-2.0" ]
175
2016-04-13T11:25:29.000Z
2019-05-27T03:20:00.000Z
tests/__init__.py
JPM-git/netdisco
f48ab179086d7ec5b1e39b4752b9d9f759010ab9
[ "Apache-2.0" ]
185
2016-04-13T11:32:11.000Z
2021-03-31T14:26:39.000Z
"""Tests for NetDisco."""
13
25
0.615385
3
26
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
26
1
26
26
0.695652
0.730769
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
af14f32a9c395e1e79a3d19ad352126f585ede48
284
py
Python
code/layers/__init__.py
rgflowopen/rg-flow
f1ebb56e3e51bb26ecc2f10fe61eb34cae18398b
[ "MIT" ]
1
2020-10-05T21:33:45.000Z
2020-10-05T21:33:45.000Z
code/layers/__init__.py
SpencerRaw/RG-Flow
bcb321c43ed539c80faf70b301f7db890aaa006f
[ "MIT" ]
1
2021-11-20T13:20:30.000Z
2021-11-20T13:20:30.000Z
code/layers/__init__.py
rgflowopen/rg-flow
f1ebb56e3e51bb26ecc2f10fe61eb34cae18398b
[ "MIT" ]
null
null
null
from .arflow import ARFlow, ARFlowReshape from .flow import Flow from .hierarchy import HierarchyBijector from .masked_resnet import MaskedResNet from .mera import MERA from .resnet import ResNet, ResNetReshape from .rnvp import RNVP from .scale import Scale from .swish import Swish
28.4
41
0.827465
39
284
6
0.384615
0.102564
0
0
0
0
0
0
0
0
0
0
0.133803
284
9
42
31.555556
0.95122
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
af1979f88ad2be8048f3f30d4b4f66528a49dbe6
309
py
Python
iotbx/command_line/unique_with_biomt.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
iotbx/command_line/unique_with_biomt.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
iotbx/command_line/unique_with_biomt.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME iotbx.unique_with_biomt # LIBTBX_SET_DISPATCHER_NAME phenix.unique_with_biomt from iotbx.programs import unique_with_biomt from iotbx.cli_parser import run_program result = run_program(unique_with_biomt.Program)
30.9
64
0.877023
45
309
5.511111
0.488889
0.16129
0.241935
0.185484
0.193548
0
0
0
0
0
0
0
0.084142
309
9
65
34.333333
0.876325
0.330097
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
af214d4612adab73ac0b068f33fdd8adcb19cd6b
148
py
Python
formatter.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
3
2020-03-24T08:06:37.000Z
2020-03-29T08:53:55.000Z
formatter.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
7
2020-03-23T12:36:01.000Z
2020-04-11T08:14:06.000Z
formatter.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
null
null
null
def safe_strftime(d, format_str='%Y-%m-%d %H:%M:%S') -> str: try: return d.strftime(format_str) except Exception: return ''
24.666667
60
0.574324
22
148
3.727273
0.636364
0.219512
0
0
0
0
0
0
0
0
0
0
0.25
148
5
61
29.6
0.738739
0
0
0
0
0
0.114865
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
af3578fe3958d5cc91396ec37d14bde0a641a553
524
py
Python
xsconnect/peripheralboards/StickIt_MPU_9150_V1.py
xesscorp/xsconnect
b08b2e24e7a017d9f87ad4651f82915179f1fd52
[ "MIT" ]
null
null
null
xsconnect/peripheralboards/StickIt_MPU_9150_V1.py
xesscorp/xsconnect
b08b2e24e7a017d9f87ad4651f82915179f1fd52
[ "MIT" ]
1
2017-01-26T12:09:44.000Z
2021-03-07T14:13:14.000Z
xsconnect/peripheralboards/StickIt_MPU_9150_V1.py
xesscorp/xsconnect
b08b2e24e7a017d9f87ad4651f82915179f1fd52
[ "MIT" ]
1
2021-08-16T07:31:24.000Z
2021-08-16T07:31:24.000Z
brd = { 'name': ('StickIt! MPU-9150 V1'), 'port': { 'pmod': { 'default' : { 'scl': 'd1', 'clkin': 'd2', 'sda': 'd3', 'int': 'd5', 'fsync': 'd7' } }, 'wing': { 'default' : { 'scl': 'd0', 'clkin': 'd3', 'sda': 'd2', 'int': 'd5', 'fsync': 'd7' } } } }
21.833333
38
0.204198
31
524
3.451613
0.677419
0.186916
0.186916
0.224299
0
0
0
0
0
0
0
0.073529
0.610687
524
23
39
22.782609
0.45098
0
0
0.26087
0
0
0.215569
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
af3ec5c44937576007eedbd9017e748c784c67f8
91
py
Python
yakumans/apps.py
riichi/kcc3
7762cd273b1f1d78caafd2a85ed169c4a9403293
[ "MIT" ]
2
2019-09-22T00:11:54.000Z
2019-09-22T10:55:31.000Z
yakumans/apps.py
m4tx/kcc3
2cc9674d13483ee59fe7cb83e8b9c9e8b213ba47
[ "MIT" ]
5
2021-04-08T20:11:53.000Z
2022-01-19T12:02:31.000Z
yakumans/apps.py
riichi/kcc3
7762cd273b1f1d78caafd2a85ed169c4a9403293
[ "MIT" ]
null
null
null
from django.apps import AppConfig class YakumansConfig(AppConfig): name = 'yakumans'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
af7bc0bf76a659c3da82c0e8a293c948be0fdf61
72
py
Python
Codewars/8kyu/makeuppercase/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/makeuppercase/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/makeuppercase/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 test.assert_equals(make_upper_case('hello'), 'HELLO')
18
53
0.708333
12
72
4
0.916667
0
0
0
0
0
0
0
0
0
0
0.046154
0.097222
72
3
54
24
0.692308
0.194444
0
0
0
0
0.178571
0
0
0
0
0
1
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
afaac089ed00ee7b6d723a74b330ceff85ed082e
211
py
Python
code_samples/GPUs/check_tensorflow_installation.py
modi975/tensorflow-workshop
55679d7e8819da6a974768ce2fdba358b71726b2
[ "Apache-2.0" ]
1
2022-03-07T03:38:53.000Z
2022-03-07T03:38:53.000Z
code_samples/GPUs/check_tensorflow_installation.py
modi975/tensorflow-workshop
55679d7e8819da6a974768ce2fdba358b71726b2
[ "Apache-2.0" ]
null
null
null
code_samples/GPUs/check_tensorflow_installation.py
modi975/tensorflow-workshop
55679d7e8819da6a974768ce2fdba358b71726b2
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf if tf.test.is_built_with_cuda(): print("The installed version of TensorFlow includes GPU support.") else: print("The installed version of TensorFlow does not include GPU support.")
26.375
76
0.777251
32
211
5.03125
0.6875
0.099379
0.21118
0.298137
0.447205
0.447205
0
0
0
0
0
0
0.146919
211
7
77
30.142857
0.894444
0
0
0
0
0
0.580952
0
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.4
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
0
0
0
0
0
4
bb78dbd18178445115c3509d3c6aeb40ed906933
14,137
py
Python
lzhh_server/agent/background.py
qianqians/abelkhan_demo_mj
d1f15fd2d3fdb1d08b1c9b73b36a20590716dd91
[ "MIT" ]
12
2017-12-15T06:50:16.000Z
2020-02-02T12:22:09.000Z
lzhh_server/agent/background.py
qianqians/abelkhan_demo_mj
d1f15fd2d3fdb1d08b1c9b73b36a20590716dd91
[ "MIT" ]
null
null
null
lzhh_server/agent/background.py
qianqians/abelkhan_demo_mj
d1f15fd2d3fdb1d08b1c9b73b36a20590716dd91
[ "MIT" ]
4
2018-01-16T01:26:22.000Z
2019-04-30T13:42:38.000Z
# -*- coding: UTF-8 -*- # search # create at 2016/3/1 # autor: qianqians from flask import * from websearchapp import * import traceback import pymongo import globalv import time collection_agent = None collection_objects = None llid = [] llid.append(1) def create_sessionid(ip): #获取unix时间戳 id = str(int(time.time())) #用户IP id += '-' + ip #序列号 id += '-' + str(llid[0]) llid[0] += 1 return id, llid[0] def create_session(ip): id,sid = create_sessionid(ip) globalv.session[id] = {} globalv.session[id]["ip"] = ip globalv.session[id]["llid"] = sid globalv.session[id]["id"] = id globalv.session[id]["is_login"] = False #js = "var sid = \"" + id + "\";" return id @app.route('/background') def background(): try: sid = request.args.get('sid') if sid is None: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) else: if globalv.session.has_key(sid): session = globalv.session[sid] if session["is_login"]: return render_template("background.html") else: url = globalv.urlname + "background/login?sid=" + sid return redirect(url) else: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) except: traceback.print_exc() @app.route('/background/login') def background_login(): try: sid = request.args.get('sid') if sid is not None: if globalv.session.has_key(sid): session = globalv.session[sid] return render_template("background_login.html") else: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) else: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) except: traceback.print_exc() @app.route('/background/user_login', methods=['POST']) def user_login(): try: p = request.get_json() sid = p["sid"] mima = p["mima"] if mima == "sanyuan888": session = globalv.session[sid] session["is_login"] = True url = globalv.urlname + "background?sid=" + sid from io import BytesIO return Response(BytesIO(json.dumps({"url":url})), mimetype='text/json') except: traceback.print_exc() @app.route('/background/add_agent', methods=['POST']) def add_agent(): try: p = request.get_json() name = p["name"] mobile = p["mobile"] wechat = p["wechat"] identity = p["identity"] game_id = p["game_id"] key = p["key"] ower_key = p["ower_key"] agent_lv = p["agent_lv"] mima = p["mima"] from io import BytesIO if collection_agent.find({"mobile":mobile}).count() > 0: return Response(BytesIO(json.dumps({"ret":"此手机号已经注册为代理"})), mimetype='text/json') if collection_agent.find({"key":key}).count() > 0: return Response(BytesIO(json.dumps({"ret":"此代理号已经注册为代理"})), mimetype='text/json') if collection_agent.find({"game_id":game_id}).count() > 0: return Response(BytesIO(json.dumps({"ret":"此游戏ID已经注册为代理"})), mimetype='text/json') if collection_agent.find({"wechat":wechat}).count() > 0: return Response(BytesIO(json.dumps({"ret":"此微信号已经注册为代理"})), mimetype='text/json') ret = collection_agent.insert({"name":name, "mobile":mobile, "wechat":wechat, "identity":identity, "game_id":game_id, "key":key, "ower_key":ower_key, "mima":mima, "agent_lv":agent_lv, "cash_out":0}) return Response(BytesIO(json.dumps({"ret":"添加代理成功"})), mimetype='text/json') except: traceback.print_exc() @app.route('/background/query_agent_key', methods=['POST']) def query_agent_key(): try: p = request.get_json() key = p["key"] c1 = collection_agent.find({"key":key}, {"_id":0}) if c1.count() > 1: print "error repeated mobile agent" return from io import BytesIO if c1.count() <= 0: return Response(BytesIO(json.dumps({"error":"不存在手机号为" + str(key) + "的代理"})), mimetype='text/json') r = c1[0] print r agent_use_list = list(collection_objects.find({"agent_reg_key":int(r["key"]), "object_type":"player"}, {"_id":0})) for use in agent_use_list: c_total_fee = collection_objects.find({"player_reg_key":int(use["reg_key"]), "object_type":"pay_record"}, {"_id":0}) sum_total_fee = 0 for c in c_total_fee: sum_total_fee = sum_total_fee + c["total_fee"] use["sum_total_fee"] = float(sum_total_fee) / 100 r["player_count"] = len(agent_use_list) r["agent_use"] = agent_use_list total_fee = 0; fee_c1 = collection_objects.find({"agent_reg_key":int(r["key"]), "object_type":"pay_record"}) for c in fee_c1: total_fee = total_fee + c["total_fee"] r["player_total_fee"] = float(total_fee) / 100 c2 = collection_agent.find({"ower_key":r["key"]}, {"_id":0, "mima":0}) r["child_agent_count"] = c2.count() child_use_count = 0 child_total_fee = 0 for c in c2: child_use_count = child_use_count + collection_objects.find({"agent_reg_key":int(c["key"]), "object_type":"player"}).count() fee_c2 = collection_objects.find({"agent_reg_key":int(c["key"]), "object_type":"pay_record"}) for c3 in fee_c2: child_total_fee = child_total_fee + c3["total_fee"] r["child_player_count"] = child_use_count r["child_total_fee"] = float(child_total_fee) / 100 if r["ower_key"] == '': r["sum_total_fee"] = ((float(total_fee) * 60 / 100) + (float(child_total_fee) * 10 / 100)) / 100 else: r["sum_total_fee"] = ((float(total_fee) * 50 / 100) + (float(child_total_fee) * 10 / 100)) / 100 return Response(BytesIO(json.dumps(r)), mimetype='text/json') except: traceback.print_exc() @app.route('/background/query_agent', methods=['POST']) def query_agent(): try: p = request.get_json() key = p["key"] c1 = collection_agent.find({"mobile":key}, {"_id":0}) if c1.count() > 1: print "error repeated mobile agent" return from io import BytesIO if c1.count() <= 0: return Response(BytesIO(json.dumps({"error":"不存在手机号为" + str(key) + "的代理"})), mimetype='text/json') r = c1[0] print r agent_use_list = list(collection_objects.find({"agent_reg_key":int(r["key"]), "object_type":"player"}, {"_id":0})) for use in agent_use_list: c_total_fee = collection_objects.find({"player_reg_key":int(use["reg_key"]), "object_type":"pay_record"}, {"_id":0}) sum_total_fee = 0 for c in c_total_fee: sum_total_fee = sum_total_fee + c["total_fee"] use["sum_total_fee"] = float(sum_total_fee) / 100 r["player_count"] = len(agent_use_list) r["agent_use"] = agent_use_list total_fee = 0; fee_c1 = collection_objects.find({"agent_reg_key":int(r["key"]), "object_type":"pay_record"}) for c in fee_c1: total_fee = total_fee + c["total_fee"] r["player_total_fee"] = float(total_fee) / 100 c2 = collection_agent.find({"ower_key":r["key"]}, {"_id":0, "mima":0}) r["child_agent_count"] = c2.count() child_use_count = 0 child_total_fee = 0 for c in c2: child_use_count = child_use_count + collection_objects.find({"agent_reg_key":int(c["key"]), "object_type":"player"}).count() fee_c2 = collection_objects.find({"agent_reg_key":int(c["key"]), "object_type":"pay_record"}) for c3 in fee_c2: child_total_fee = child_total_fee + c3["total_fee"] r["child_player_count"] = child_use_count r["child_total_fee"] = float(child_total_fee) / 100 if r["ower_key"] == '': r["sum_total_fee"] = ((float(total_fee) * 60 / 100) + (float(child_total_fee) * 10 / 100)) / 100 else: r["sum_total_fee"] = ((float(total_fee) * 50 / 100) + (float(child_total_fee) * 10 / 100)) / 100 return Response(BytesIO(json.dumps(r)), mimetype='text/json') except: traceback.print_exc() @app.route('/background/del_agent', methods=['POST']) def del_agent(): try: p = request.get_json() key = p["key"] from io import BytesIO if collection_agent.find({"mobile":key}).count() <= 0: return Response(BytesIO(json.dumps({"ret":"此手机号" + str(key) + "并不是代理"})), mimetype='text/json') collection_agent.remove({"mobile":key}) return Response(BytesIO(json.dumps({"ret":"删除手机号为" + str(key) + "的代理成功"})), mimetype='text/json') except: traceback.print_exc() @app.route('/background/query_player', methods=['POST']) def query_player(): try: p = request.get_json() player_id = p["player_id"] from io import BytesIO c = collection_objects.find({"reg_key":int(player_id), "object_type":"player"}, {"_id":0}) if c.count() > 1: print "error repeated player id" return if c.count() <= 0: return Response(BytesIO(json.dumps({"error":"不存在ID为" + str(player_id) + "的玩家"})), mimetype='text/json') r = c[0] c_total_fee = collection_objects.find({"player_reg_key":int(player_id), "object_type":"pay_record"}, {"_id":0}) r["total_fee"] = list(c_total_fee) return Response(BytesIO(json.dumps(r)), mimetype='text/json') except: traceback.print_exc() @app.route('/background/change_agent', methods=['POST']) def change_agent(): try: p = request.get_json() old_agent = p["old_agent"] new_agent = p["new_agent"] print old_agent, new_agent collection_objects.update({"agent_reg_key":int(old_agent), "object_type":"player"}, {"$set":{"agent_reg_key":int(new_agent)}}) from io import BytesIO return Response(BytesIO(json.dumps({"ret":"修改成功"})), mimetype='text/json') except: traceback.print_exc() @app.route('/background/change_player_agent', methods=['POST']) def change_player_agent(): try: p = request.get_json() player_id = p["player_id"] new_agent = p["new_agent"] print player_id, new_agent collection_objects.update({"reg_key":int(player_id), "object_type":"player"}, {"$set":{"agent_reg_key":int(new_agent)}}) from io import BytesIO return Response(BytesIO(json.dumps({"ret":"修改成功"})), mimetype='text/json') except: traceback.print_exc() @app.route('/background/detail') def detail(): try: sid = request.args.get('sid') if sid is None: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) else: if globalv.session.has_key(sid): session = globalv.session[sid] if session["is_login"]: return render_template("detail_info.html") else: url = globalv.urlname + "background/login?sid=" + sid return redirect(url) else: sid = create_session(request.remote_addr) url = globalv.urlname + "background?sid=" + sid return redirect(url) except: traceback.print_exc() @app.route('/background/detail_info', methods=['POST']) def detail_info(): try: agent_list = list(collection_agent.find({}, {"_id":0})) for agent in agent_list: agent["player_count"] = collection_objects.find({"agent_reg_key":int(agent["key"]), "object_type":"player"}, {"_id":0}).count() agent["child_agent_count"] = collection_agent.find({"ower_key":agent["key"]}, {"_id":0}).count() total_fee = 0; fee_c1 = collection_objects.find({"agent_reg_key":int(agent["key"]), "object_type":"pay_record"}) for c in fee_c1: total_fee = total_fee + c["total_fee"] agent["player_total_fee"] = float(total_fee) / 100 c2 = collection_agent.find({"ower_key":agent["key"]}, {"_id":0}) child_total_fee = 0 for c in c2: fee_c2 = collection_objects.find({"agent_reg_key":int(c["key"]), "object_type":"pay_record"}) for c3 in fee_c2: child_total_fee = child_total_fee + c3["total_fee"] agent["child_total_fee"] = float(child_total_fee) / 100 if agent["ower_key"] == '': agent["sum_total_fee"] = ((float(total_fee) * 60 / 100) + (float(child_total_fee) * 10 / 100)) / 100 else: agent["sum_total_fee"] = ((float(total_fee) * 50 / 100) + (float(child_total_fee) * 10 / 100)) / 100 from io import BytesIO return Response(BytesIO(json.dumps(agent_list)), mimetype='text/json') except: traceback.print_exc() def background_init(): try: conn = pymongo.Connection('127.0.0.1',27017) db_agent = conn.agent db_game = conn.test global collection_agent global collection_objects collection_agent = db_agent.agent collection_objects = db_game.objects collection_agent.create_index('mobile', unique=True) collection_agent.create_index('key', unique=True) print collection_agent except: traceback.print_exc()
34.230024
206
0.580746
1,787
14,137
4.359261
0.086738
0.074968
0.035045
0.054557
0.764185
0.73697
0.713607
0.686393
0.65751
0.600385
0
0.019591
0.26703
14,137
412
207
34.313107
0.732195
0.007922
0
0.632588
0
0
0.166595
0.019906
0
0
0
0
0
0
null
null
0
0.047923
null
null
0.067093
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
bb7e554b7a2aeee13dfbf600af3e0c1923afaeb9
164
py
Python
tests/snippets/builtin_format.py
EdwardSam4/RustPython
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
[ "MIT" ]
null
null
null
tests/snippets/builtin_format.py
EdwardSam4/RustPython
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
[ "MIT" ]
null
null
null
tests/snippets/builtin_format.py
EdwardSam4/RustPython
7ec6a7ffd1afbfe71322cbace161483b6877d4a5
[ "MIT" ]
1
2020-12-04T23:52:08.000Z
2020-12-04T23:52:08.000Z
assert format(5, "b") == "101" try: format(2, 3) except TypeError: pass else: assert False, "TypeError not raised when format is called with a number"
18.222222
76
0.664634
25
164
4.36
0.84
0
0
0
0
0
0
0
0
0
0
0.047244
0.22561
164
8
77
20.5
0.811024
0
0
0
0
0
0.365854
0
0
0
0
0
0.285714
1
0
true
0.142857
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
bba4e35da6cb87366ef5a0186ade4f45af4b1e70
142
py
Python
pyartcd/prepare_release.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
45
2017-05-09T15:49:06.000Z
2021-11-07T19:48:35.000Z
pyartcd/prepare_release.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
1,313
2017-01-19T13:40:43.000Z
2022-03-30T14:25:44.000Z
pyartcd/prepare_release.py
brenton/aos-cd-jobs
34e427bb7091c52791bc93a34f062e57dc005082
[ "Apache-2.0" ]
165
2017-01-17T22:19:04.000Z
2022-03-02T12:15:13.000Z
#!/usr/bin/env python import sys from pyartcd.pipelines.prepare_release import main if __name__ == "__main__": exit(main(sys.argv[1:]))
17.75
50
0.725352
21
142
4.47619
0.809524
0
0
0
0
0
0
0
0
0
0
0.00813
0.133803
142
7
51
20.285714
0.756098
0.140845
0
0
0
0
0.066116
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
bbb6f7441dc6c67c1b688ff046c1a24d6cb4ac40
328
py
Python
stemfest_api/services/models.py
kburk1997/stemfest-api
7edb47aad08e12bfb1e1231e59c2d4bd9b5a8465
[ "MIT" ]
null
null
null
stemfest_api/services/models.py
kburk1997/stemfest-api
7edb47aad08e12bfb1e1231e59c2d4bd9b5a8465
[ "MIT" ]
null
null
null
stemfest_api/services/models.py
kburk1997/stemfest-api
7edb47aad08e12bfb1e1231e59c2d4bd9b5a8465
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models # Create your models here. class Activity(models.Model): name=models.CharField(max_length=30) presenter=models.CharField(max_length=100) grades=models.CharField(max_length=10) description=models.TextField() def __str__(self): return self.name
25.230769
44
0.789634
45
328
5.488889
0.644444
0.182186
0.218623
0.291498
0
0
0
0
0
0
0
0.024221
0.118902
328
13
45
25.230769
0.83045
0.073171
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
a53fb36e03865c0dc12c6bdfcf688dcdc0d9e495
147
py
Python
setup.py
valentinschabschneider/kaminuhren-owncloud-to-excel
a5c2c6af9bc5757d080ecdeccb3dbe72f982e966
[ "MIT" ]
null
null
null
setup.py
valentinschabschneider/kaminuhren-owncloud-to-excel
a5c2c6af9bc5757d080ecdeccb3dbe72f982e966
[ "MIT" ]
null
null
null
setup.py
valentinschabschneider/kaminuhren-owncloud-to-excel
a5c2c6af9bc5757d080ecdeccb3dbe72f982e966
[ "MIT" ]
null
null
null
from distutils.core import setup import py2exe setup( console=["main.py"], options={"py2exe": {"bundle_files": 1, "compressed": True}}, )
18.375
64
0.666667
18
147
5.388889
0.833333
0
0
0
0
0
0
0
0
0
0
0.024194
0.156463
147
7
65
21
0.758065
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
a546b4d6207e6b0566f9a61bf1ae9cb3690ad032
639
py
Python
app/sitemap.py
adamzerella/blog.adamzerella
3ae0543731579b2838d467fcda5a7421d84e7d23
[ "MIT" ]
null
null
null
app/sitemap.py
adamzerella/blog.adamzerella
3ae0543731579b2838d467fcda5a7421d84e7d23
[ "MIT" ]
13
2018-04-11T09:46:22.000Z
2018-04-25T05:31:39.000Z
app/sitemap.py
adamzerella/blog.adamzerella
3ae0543731579b2838d467fcda5a7421d84e7d23
[ "MIT" ]
null
null
null
from django.contrib.sitemaps import Sitemap from .models import Blog class BlogSitemap(Sitemap): changefreq = "weekly" priority = 0.5 def items(self): return Blog.objects.filter(status=1) def lastmod(self, obj): return obj.modified_date def location(self, item): return "/blog/" + item.slug + "/" class BaseSitemap(Sitemap): changefreq = "weekly" priority = 0.5 def items(self): return [ "", #Root ('index.html') "/about", "/blog", "/archive" ] def location(self, item): return item + "/"
20.612903
44
0.547731
67
639
5.208955
0.537313
0.097421
0.131805
0.17765
0.43553
0.292264
0.292264
0.292264
0.292264
0.292264
0
0.011655
0.328639
639
30
45
21.3
0.801865
0.029734
0
0.347826
0
0
0.063005
0
0
0
0
0
0
1
0.217391
false
0
0.086957
0.217391
0.782609
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
a554c793e554cdbdc30418377c757eb8b780e402
95
py
Python
Problem Set 6/pset6/hello/hello.py
RAPTOR-XR/CS50-All-Problem-Sets
04559ee77192a57c7003780c00b28eec24563a5c
[ "MIT" ]
null
null
null
Problem Set 6/pset6/hello/hello.py
RAPTOR-XR/CS50-All-Problem-Sets
04559ee77192a57c7003780c00b28eec24563a5c
[ "MIT" ]
null
null
null
Problem Set 6/pset6/hello/hello.py
RAPTOR-XR/CS50-All-Problem-Sets
04559ee77192a57c7003780c00b28eec24563a5c
[ "MIT" ]
null
null
null
from cs50 import get_string hello = get_string("What is your name? ") print("hello, " + hello)
23.75
41
0.715789
15
95
4.4
0.733333
0.272727
0
0
0
0
0
0
0
0
0
0.025
0.157895
95
4
42
23.75
0.8
0
0
0
0
0
0.270833
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
a56b9f3a739790d25661a5301cc18f73fba0fb27
164
py
Python
udemy/duce/__init__.py
imvijayps/UdemyBot
d9366c47010ee918c3e47b65a334a45b0ce60f21
[ "MIT" ]
119
2021-07-29T15:16:01.000Z
2022-03-16T01:39:17.000Z
udemy/duce/__init__.py
imvijayps/UdemyBot
d9366c47010ee918c3e47b65a334a45b0ce60f21
[ "MIT" ]
5
2021-09-07T08:48:44.000Z
2022-02-01T04:05:19.000Z
udemy/duce/__init__.py
imvijayps/UdemyBot
d9366c47010ee918c3e47b65a334a45b0ce60f21
[ "MIT" ]
59
2021-07-29T15:55:16.000Z
2022-03-15T20:23:06.000Z
# UdemyBot - A Simple Udemy Free Courses Scrapper # Copyright (C) 2021-Present Gautam Kumar <https://github.com/gautamajay52> from udemy.duce.duce import Scrapper
32.8
75
0.780488
23
164
5.565217
0.869565
0
0
0
0
0
0
0
0
0
0
0.041958
0.128049
164
5
76
32.8
0.853147
0.737805
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4