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
ac48f3baf16ec15af093ac80aebb2a583e3b5241
239
py
Python
src/datamodels/code_redemption.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
1
2022-03-19T09:23:15.000Z
2022-03-19T09:23:15.000Z
src/datamodels/code_redemption.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
1
2022-01-02T22:04:58.000Z
2022-01-02T22:04:58.000Z
src/datamodels/code_redemption.py
nano-shino/genshinhelper
04cb46b442c31ba1d8826e05e66b1a403474cf4a
[ "MIT" ]
null
null
null
from sqlalchemy import Column, String, Boolean from datamodels import Base class RedeemableCode(Base): __tablename__ = "codes" code = Column(String, primary_key=True) working = Column(Boolean, nullable=False, default=True)
21.727273
59
0.748954
28
239
6.214286
0.714286
0.137931
0
0
0
0
0
0
0
0
0
0
0.167364
239
10
60
23.9
0.874372
0
0
0
0
0
0.020921
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
ac49dc6a4357d0af26c4bcb734107dcf2f6880af
1,564
py
Python
TfDataAugmentation/BaseAug.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
TfDataAugmentation/BaseAug.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
TfDataAugmentation/BaseAug.py
tt195361/TfDataAugmentation
0deb987ae5a37816d88eec302bc42db7479ea8df
[ "MIT" ]
null
null
null
# # BaseAug.py # import tensorflow as tf import abc from . import gen_utils class BaseAug: def __init__(self, p=0.5): self.p = gen_utils.check_float_range(p, 0.0, 1.0, "p") self.params = {} # Must not override # @final # available Python 3.8 def __call__(self, force_apply=False, **da...
26.066667
69
0.597187
210
1,564
4.185714
0.32381
0.051195
0.040956
0.03413
0
0
0
0
0
0
0
0.007036
0.273018
1,564
59
70
26.508475
0.766051
0.036445
0
0.04878
0
0
0.072667
0
0
0
0
0
0
1
0.243902
false
0.02439
0.073171
0.121951
0.512195
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ac624b7a6ad42b08a2cc01ca42b6eb74c5e17cb3
180
py
Python
image-tools/image_editor/editor.py
flegac/deep-experiments
e1b12e724f2c8340cbe9c51396cf3f42e3b4e934
[ "MIT" ]
null
null
null
image-tools/image_editor/editor.py
flegac/deep-experiments
e1b12e724f2c8340cbe9c51396cf3f42e3b4e934
[ "MIT" ]
null
null
null
image-tools/image_editor/editor.py
flegac/deep-experiments
e1b12e724f2c8340cbe9c51396cf3f42e3b4e934
[ "MIT" ]
null
null
null
import glob from image_editor.image_manager import ImageManager images = glob.glob('../../feat-detection/detection/images/*_?.png') for _ in images: ImageManager(_).start()
20
67
0.738889
22
180
5.818182
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.116667
180
8
68
22.5
0.805031
0
0
0
0
0
0.25
0.25
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
3ba5b9676e690849794152890726304a356dab95
160
py
Python
scripts/create_empty_wav.py
umireon/chattalker
4a91688a83c6dadf893a374ad31ab1f68a6309da
[ "MIT" ]
null
null
null
scripts/create_empty_wav.py
umireon/chattalker
4a91688a83c6dadf893a374ad31ab1f68a6309da
[ "MIT" ]
null
null
null
scripts/create_empty_wav.py
umireon/chattalker
4a91688a83c6dadf893a374ad31ab1f68a6309da
[ "MIT" ]
null
null
null
import wave with wave.open('empty.wav', 'wb') as fp: fp.setnchannels(1) fp.setsampwidth(2) fp.setframerate(44100) fp.writeframesraw(b'\0' * 44100 * 2)
20
40
0.68125
25
160
4.36
0.72
0
0
0
0
0
0
0
0
0
0
0.102941
0.15
160
7
41
22.857143
0.698529
0
0
0
0
0
0.08125
0
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
3bab1937cd70baf550ad851e2124b0a485a8e02a
1,284
py
Python
music/class_/audioa/key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
# """ # Key # Model for key. # """ # from __future__ import annotations # from dataclasses import dataclass # from enum import Enum # from typing import Callable, GenericAlias # __all__ = ["Key"] ## -- Key ## ## Think about it as a pitch eq class. ## ## -- ## this stuff can go fuck itself # class _Ops_(...
18.084507
105
0.603583
156
1,284
4.564103
0.50641
0.050562
0.025281
0.030899
0.067416
0.067416
0.067416
0
0
0
0
0.00523
0.255452
1,284
70
106
18.342857
0.73954
0.898754
0
null
0
null
0
0
null
0
0
0.014286
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
3
3bad8a07380e9fc1638f3e42def16ea4814fcf2b
625
py
Python
romantic-revolutionaries/modules/map/RoomControl.py
LaFeeVert/code-jam-6
f65b284c58ae653f9212923c6d3296cf252b6453
[ "MIT" ]
76
2020-01-17T12:09:48.000Z
2022-03-26T19:17:26.000Z
romantic-revolutionaries/modules/map/RoomControl.py
Hypertyz/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
17
2020-01-21T23:13:34.000Z
2020-02-07T00:07:04.000Z
romantic-revolutionaries/modules/map/RoomControl.py
Hypertyz/code-jam-6
a7eb3b1256ae113c93f0337892c667768e8bc199
[ "MIT" ]
91
2020-01-17T12:01:06.000Z
2022-03-22T20:38:59.000Z
class Room: def __init__(self): pass def intro_text(self): raise NotImplementedError() def adjacent_moves(self): pass def available_actions(self): pass class StartingRoom(Room): def __init__(self, ): super().__init__() def intro_text(self): r...
20.833333
82
0.6144
75
625
4.893333
0.6
0.057221
0.098093
0.13079
0.119891
0
0
0
0
0
0
0
0.3008
625
29
83
21.551724
0.839817
0
0
0.380952
0
0
0.344
0
0
0
0
0
0
1
0.333333
false
0.142857
0
0.095238
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
3bd5613d41a0b5d359d56b8e86b783356381e30c
167
py
Python
pathfinder/heroku_settings.py
peterson-dev/pathfinder-django
1a1fb0db0057a00c0aa3dcfacf16a50c9167a54f
[ "MIT" ]
null
null
null
pathfinder/heroku_settings.py
peterson-dev/pathfinder-django
1a1fb0db0057a00c0aa3dcfacf16a50c9167a54f
[ "MIT" ]
11
2020-02-12T00:06:48.000Z
2022-03-11T23:50:18.000Z
pathfinder/heroku_settings.py
peterson-dev/pathfinder-django
1a1fb0db0057a00c0aa3dcfacf16a50c9167a54f
[ "MIT" ]
null
null
null
from pathfinder.settings import * import os import django_heroku DEBUG = False # clintion fix: # DEBUG = os.getenv('DEBUG', False) django_heroku.settings(locals())
15.181818
35
0.754491
22
167
5.636364
0.590909
0.193548
0
0
0
0
0
0
0
0
0
0
0.137725
167
11
36
15.181818
0.861111
0.281437
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
3bec550ececb657640cab0130aeb455af1d89954
1,013
py
Python
env/Lib/site-packages/OpenGL/GLES2/NV/copy_buffer.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES2/NV/copy_buffer.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES2/NV/copy_buffer.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension NV.copy_buffer This module customises the behaviour of the OpenGL.raw.GLES2.NV.copy_buffer to provide a more Python-friendly API Overview (from the spec) This extension provides a mechanism to do an accelerated copy from one buffer object to another. This may be useful to load buffer objects...
33.766667
71
0.798618
146
1,013
5.465753
0.527397
0.075188
0.075188
0.06015
0.122807
0.122807
0.090226
0.090226
0
0
0
0.004598
0.141165
1,013
30
72
33.766667
0.912644
0.650543
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.777778
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
3bef5996d8ddfb2e1816302f353694633e6ae6a4
3,867
py
Python
meta/utils/parse_comment/comments.py
1-1-1-1-1-1-1-1/Old-Slavonic-bot
de798e8c2e03ccadde9062c25a8e6fae28bdb8d5
[ "MIT" ]
null
null
null
meta/utils/parse_comment/comments.py
1-1-1-1-1-1-1-1/Old-Slavonic-bot
de798e8c2e03ccadde9062c25a8e6fae28bdb8d5
[ "MIT" ]
null
null
null
meta/utils/parse_comment/comments.py
1-1-1-1-1-1-1-1/Old-Slavonic-bot
de798e8c2e03ccadde9062c25a8e6fae28bdb8d5
[ "MIT" ]
null
null
null
# **NOTE** # ============================================================================= # # This file can be parsed by some func. in order to get comments, as a text. A # Python ext. is set **only** in order to give a hint to the text editor: # > **it is a Python file** (there comments can be edited somehow easier)...
39.060606
87
0.620636
519
3,867
4.61657
0.481696
0.013356
0.011269
0.010017
0
0
0
0
0
0
0
0.007909
0.18257
3,867
98
88
39.459184
0.750079
0.940781
0
0
0
0
0
0
0
0
0
0.010204
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
3
ce0628c2a696ac9c1bc0087e5f736fa61bfd44cc
369
py
Python
raiseexception/views.py
ZumatechLtd/django-raise-exception-view
64c71cb0a8ad255994a1fc6ee0d5c5c66756660f
[ "Unlicense" ]
null
null
null
raiseexception/views.py
ZumatechLtd/django-raise-exception-view
64c71cb0a8ad255994a1fc6ee0d5c5c66756660f
[ "Unlicense" ]
null
null
null
raiseexception/views.py
ZumatechLtd/django-raise-exception-view
64c71cb0a8ad255994a1fc6ee0d5c5c66756660f
[ "Unlicense" ]
1
2020-01-31T15:06:53.000Z
2020-01-31T15:06:53.000Z
# -*- coding: utf-8 -*- # (c) 2012 Bright Interactive Limited. All rights reserved. # http://www.bright-interactive.com | info@bright-interactive.com from raiseexception import DeliberateException def raise_exception(request): """ Always throws an exception - useful for checking that exception logging is ...
26.357143
78
0.726287
42
369
6.357143
0.785714
0.191011
0.149813
0
0
0
0
0
0
0
0
0.016393
0.173442
369
13
79
28.384615
0.859016
0.615176
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
3
ce2140701898589e376d295da8c01f8610cb18fc
637
py
Python
api_server/switch_api/models/DataModel.py
cliftbar/switch_suncode2019
cad8fcca50a4848ba946f39aeaa624a230af679d
[ "MIT" ]
null
null
null
api_server/switch_api/models/DataModel.py
cliftbar/switch_suncode2019
cad8fcca50a4848ba946f39aeaa624a230af679d
[ "MIT" ]
null
null
null
api_server/switch_api/models/DataModel.py
cliftbar/switch_suncode2019
cad8fcca50a4848ba946f39aeaa624a230af679d
[ "MIT" ]
1
2019-08-31T01:10:10.000Z
2019-08-31T01:10:10.000Z
from pathlib import Path import pandas as pd from switch_api.services.PredictiveModel import PredictiveModel class DataModel: defaultTrainingData = "./" defaultTestingData = "./" defaultNewDataDir = "./" def __init__(self): pass def get_data(self, from_csv: bool = True, csv_fname: Path ...
23.592593
86
0.645212
72
637
5.5
0.527778
0.141414
0.065657
0.080808
0
0
0
0
0
0
0
0
0.265306
637
26
87
24.5
0.846154
0
0
0.210526
0
0
0.009419
0
0
0
0
0
0
1
0.210526
false
0.210526
0.157895
0
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
ce3e94f50f5a7b83dc426553e9fe7b904320c056
44
py
Python
Squest/version.py
Sispheor/squest
f852fe7986521a9d8cd9fb5eb0b56aa15f22548c
[ "Apache-2.0" ]
112
2021-04-21T08:52:55.000Z
2022-03-01T15:09:19.000Z
Squest/version.py
Sispheor/squest
f852fe7986521a9d8cd9fb5eb0b56aa15f22548c
[ "Apache-2.0" ]
216
2021-04-21T09:06:47.000Z
2022-03-30T14:21:28.000Z
Squest/version.py
Sispheor/squest
f852fe7986521a9d8cd9fb5eb0b56aa15f22548c
[ "Apache-2.0" ]
21
2021-04-20T13:53:54.000Z
2022-03-30T21:43:04.000Z
__version__ = "1.3.1" VERSION = __version__
14.666667
21
0.727273
6
44
4
0.5
0
0
0
0
0
0
0
0
0
0
0.078947
0.136364
44
2
22
22
0.552632
0
0
0
0
0
0.113636
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cbec427458ae5ba264cdfe981f691535112da7ab
3,051
py
Python
src/accounts/forms.py
atharvajakkanwar/webapp-ecommerce-python
54e5cdae1a7f7398a30f64bceb0b550584e84e6b
[ "MIT" ]
null
null
null
src/accounts/forms.py
atharvajakkanwar/webapp-ecommerce-python
54e5cdae1a7f7398a30f64bceb0b550584e84e6b
[ "MIT" ]
11
2020-06-05T17:45:00.000Z
2022-03-12T00:34:17.000Z
src/accounts/forms.py
atharvajakkanwar/webapp-ecommerce-python
54e5cdae1a7f7398a30f64bceb0b550584e84e6b
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import User class LoginForm(forms.Form): email = forms.EmailField( widget=forms.TextInput(attrs={ 'class': 'form-control', 'placeholder': 'email' }) ) password = f...
27.990826
97
0.624058
299
3,051
6.317726
0.204013
0.052409
0.051879
0.077819
0.769719
0.757014
0.737427
0.678666
0.611964
0.459502
0
0.012297
0.253687
3,051
108
98
28.25
0.817303
0
0
0.6
0
0
0.158964
0
0
0
0
0
0
1
0.0625
false
0.3625
0.0375
0.0125
0.3875
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
cbf95abadc429ecb28f53fd9dd52aef3858448c5
16,151
py
Python
game/spirit/search/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
3
2019-08-18T19:08:48.000Z
2019-12-04T18:14:29.000Z
game/spirit/search/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
10
2020-02-12T00:38:24.000Z
2022-02-10T07:47:09.000Z
game/spirit/search/tests.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
2
2019-12-03T15:43:17.000Z
2020-04-30T11:50:19.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.test import TestCase, override_settings from django.urls import reverse from django.template import Template, Context from django.core.management import call_command from django.template.loader import render_to_string from dja...
35.41886
93
0.6199
1,814
16,151
5.316428
0.097574
0.097988
0.076524
0.063874
0.774575
0.739009
0.702198
0.69971
0.663936
0.630236
0
0.006754
0.266609
16,151
455
94
35.496703
0.807429
0.051823
0
0.678679
0
0
0.046866
0.004377
0
0
0
0
0.192192
1
0.087087
false
0
0.048048
0
0.147147
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
cbf9d9e95b5652485814fe0ce7ecd1009d3919e2
2,229
py
Python
sarpy/io/general/nitf_elements/tres/unclass/AIPBCA.py
spacefan/sarpy
2791af86b568c8a8560275aee426a4718d5a4606
[ "MIT" ]
119
2018-07-12T22:08:17.000Z
2022-03-24T12:11:39.000Z
sarpy/io/general/nitf_elements/tres/unclass/AIPBCA.py
spacefan/sarpy
2791af86b568c8a8560275aee426a4718d5a4606
[ "MIT" ]
72
2018-03-29T15:57:37.000Z
2022-03-10T01:46:21.000Z
sarpy/io/general/nitf_elements/tres/unclass/AIPBCA.py
spacefan/sarpy
2791af86b568c8a8560275aee426a4718d5a4606
[ "MIT" ]
54
2018-03-27T19:57:20.000Z
2022-03-09T20:53:11.000Z
from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class AIPBCAType(TREElement): def __init__(self, value): super(AIPBCAType, self).__init__() self.add_field('PATCH_WIDTH', 's', 5, value) self.add_field('U_HAT_X', 's',...
41.277778
56
0.588156
364
2,229
3.255495
0.178571
0.224473
0.38481
0.530802
0.7173
0.691139
0.499578
0.457384
0
0
0
0.034884
0.228354
2,229
53
57
42.056604
0.65407
0
0
0
0
0
0.167415
0
0
0
0
0
0
1
0.021277
false
0
0.021277
0
0.12766
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
02024aae546dc004f4c538a67e5141618f1ed701
370
py
Python
test_calculations.py
kashewnuts/test-github-action
5c94cd7391a300605975bd8872e108afa4bc439e
[ "MIT" ]
null
null
null
test_calculations.py
kashewnuts/test-github-action
5c94cd7391a300605975bd8872e108afa4bc439e
[ "MIT" ]
null
null
null
test_calculations.py
kashewnuts/test-github-action
5c94cd7391a300605975bd8872e108afa4bc439e
[ "MIT" ]
null
null
null
import unittest import calculations class CalculationsTest(unittest.TestCase): """ 割り算する関数をテストする。 """ def test_divide_normal(self): self.assertEqual(calculations.divide(2, 2), 1) def test_divide_contain_zero(self): # 結果が 1 であるため修正 self.assertEqual(calculations.divide(0, 1), 0)...
20.555556
54
0.678378
42
370
5.666667
0.547619
0.058824
0.109244
0.277311
0
0
0
0
0
0
0
0.023891
0.208108
370
17
55
21.764706
0.788396
0.091892
0
0
0
0
0.024316
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
02093ec9aeed29c3157544359786749058897b2a
309
py
Python
punter/exceptions.py
jgoodlet/punter
605ee52a1e5019b360dd643f4bf6861aefa93812
[ "MIT" ]
3
2015-08-15T06:38:23.000Z
2020-03-15T14:30:09.000Z
punter/exceptions.py
jgoodlet/punter
605ee52a1e5019b360dd643f4bf6861aefa93812
[ "MIT" ]
null
null
null
punter/exceptions.py
jgoodlet/punter
605ee52a1e5019b360dd643f4bf6861aefa93812
[ "MIT" ]
3
2016-07-19T23:33:48.000Z
2019-03-20T09:46:47.000Z
"""Custom exceptions for the punter package.""" class PunterException(Exception): def __init__(self, *args, **kwargs): super(PunterException, self).__init__(*args, **kwargs) class InvalidAPIKeyException(PunterException): pass class InvalidQueryStringException(PunterException): pass
20.6
62
0.737864
28
309
7.857143
0.642857
0.090909
0
0
0
0
0
0
0
0
0
0
0.152104
309
14
63
22.071429
0.839695
0.132686
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.285714
0
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
0210f77c3ccfdae0b761ea9668fc7180b5abd74f
104
py
Python
cloudentries/aliyun/query/__init__.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
null
null
null
cloudentries/aliyun/query/__init__.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
null
null
null
cloudentries/aliyun/query/__init__.py
CloudChef/CloudEntries
a890e2eb96cc537db131e7ca8a0e6e1edc0b6ebd
[ "Apache-2.0" ]
1
2021-03-26T05:45:00.000Z
2021-03-26T05:45:00.000Z
# Copyright (c) 2021 Qianyun, Inc. All rights reserved. cloudentry_id = "yacmp:cloudentry:type:aliyun"
26
55
0.759615
14
104
5.571429
0.928571
0
0
0
0
0
0
0
0
0
0
0.043956
0.125
104
3
56
34.666667
0.813187
0.509615
0
0
0
0
0.571429
0.571429
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0220a2bcc77ca1b7f0b2b0a8bbd26bcd883123ff
436
py
Python
wetterdienst/dwd/radar/metadata/__init__.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
wetterdienst/dwd/radar/metadata/__init__.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
null
null
null
wetterdienst/dwd/radar/metadata/__init__.py
panodata/python_dwd
a9ee1bdf21b8fc12f6b6b33628ca804e656f310d
[ "MIT" ]
1
2022-03-21T14:28:45.000Z
2022-03-21T14:28:45.000Z
from wetterdienst.dwd.radar.metadata.parameter import ( DWDRadarParameter, DWDRadarDataFormat, DWDRadarDate, DWDRadarDataSubset, RADAR_PARAMETERS_RADOLAN, RADAR_PARAMETERS_COMPOSITES, RADAR_PARAMETERS_SITES, RADAR_PARAMETERS_SWEEPS, RADAR_PARAMETERS_RADVOR, ) from wetterdienst.dwd.ra...
31.142857
73
0.81422
42
436
8.214286
0.5
0.217391
0.165217
0.208696
0.278261
0
0
0
0
0
0
0
0.133028
436
13
74
33.538462
0.912698
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.230769
0
0.230769
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
0220d4580be002f0f29a2771195a3dd8a974ae91
2,192
py
Python
tests/test_xml.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
3
2018-07-02T23:36:52.000Z
2019-01-21T17:16:35.000Z
tests/test_xml.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
null
null
null
tests/test_xml.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
null
null
null
from lxml import etree from util.xml import insert_after, insert_after_only, replace_singular, copy_element_to_section import pytest class TestXml(object): ''' Tests for the XML utils. ''' def test_insert_after(self): tree = etree.XML( '''<savegame><game><world/></game></savegame>''' ) n =...
31.314286
98
0.561131
261
2,192
4.590038
0.16092
0.093489
0.141903
0.116861
0.778798
0.761269
0.694491
0.694491
0.626043
0.626043
0
0.000598
0.237682
2,192
69
99
31.768116
0.716338
0.010949
0
0.72093
0
0
0.287963
0.239352
0
0
0
0
0.093023
1
0.093023
false
0
0.069767
0
0.186047
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
023aa31390b9c44099404d8d6924a27c295cb67e
746
py
Python
dephell_discover/_data.py
MrMrRobat/dephell_discover
318ff743df6b45ad7f027c81a4cdee45d50bb5d7
[ "MIT" ]
4
2019-05-28T17:38:02.000Z
2020-11-20T21:09:24.000Z
dephell_discover/_data.py
MrMrRobat/dephell_discover
318ff743df6b45ad7f027c81a4cdee45d50bb5d7
[ "MIT" ]
10
2019-03-21T08:46:27.000Z
2020-12-09T10:09:34.000Z
dephell_discover/_data.py
MrMrRobat/dephell_discover
318ff743df6b45ad7f027c81a4cdee45d50bb5d7
[ "MIT" ]
6
2019-05-28T16:26:38.000Z
2021-09-28T02:39:47.000Z
from pathlib import Path from typing import Iterator import attr from ._package import Package @attr.s(hash=False, slots=True) class Data: path = attr.ib(type=Path) ext = attr.ib(type=str) package = attr.ib(type=Package) @property def module(self) -> str: return self.package.module ...
21.941176
66
0.60992
98
746
4.489796
0.326531
0.063636
0.068182
0.077273
0
0
0
0
0
0
0
0
0.258713
746
33
67
22.606061
0.79566
0
0
0.083333
0
0
0.006702
0
0
0
0
0
0
1
0.208333
false
0
0.166667
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
02725dcfbbab3fac3e48e9c2408112f1637c70d1
518
py
Python
wingedsheep/carcassonne/objects/city.py
Alan32Liu/carcassonne
3f32614fa0f69b7d9e08aff067b05e4253320490
[ "MIT" ]
null
null
null
wingedsheep/carcassonne/objects/city.py
Alan32Liu/carcassonne
3f32614fa0f69b7d9e08aff067b05e4253320490
[ "MIT" ]
null
null
null
wingedsheep/carcassonne/objects/city.py
Alan32Liu/carcassonne
3f32614fa0f69b7d9e08aff067b05e4253320490
[ "MIT" ]
null
null
null
from wingedsheep.carcassonne.objects.coordinate_with_side import CoordinateWithSide class City: def __init__(self, city_positions: [CoordinateWithSide], finished: bool): self.city_positions = city_positions self.finished = finished def __eq__(self, other: 'City'): return isinstance(ot...
32.375
83
0.685328
56
518
5.928571
0.446429
0.195783
0.153614
0
0
0
0
0
0
0
0
0
0.225869
518
15
84
34.533333
0.82793
0
0
0
0
0
0.007722
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.181818
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
027b84aa061430b2a0f9a5e7f023ebc54608ec70
131
py
Python
backend/garpix_utils/apps.py
AlexandrMikhailovich/garpix_utils
f4ad2fdd49186b8625185d38c4ea663a8cc0100b
[ "MIT" ]
4
2021-07-21T09:15:48.000Z
2021-09-27T07:20:40.000Z
backend/garpix_utils/apps.py
AlexandrMikhailovich/garpix_utils
f4ad2fdd49186b8625185d38c4ea663a8cc0100b
[ "MIT" ]
null
null
null
backend/garpix_utils/apps.py
AlexandrMikhailovich/garpix_utils
f4ad2fdd49186b8625185d38c4ea663a8cc0100b
[ "MIT" ]
2
2021-09-08T09:08:57.000Z
2021-09-08T09:37:46.000Z
from django.apps import AppConfig class GarpixUtilsConfig(AppConfig): name = 'garpix_utils' verbose_name = 'GarpixUtils'
18.714286
35
0.755725
14
131
6.928571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.167939
131
6
36
21.833333
0.889908
0
0
0
0
0
0.175573
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
027f9ecf5c0e502f5beae003d40eb124ccfbba57
440
py
Python
359_logger_rate_limiter.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
1
2020-07-15T14:16:23.000Z
2020-07-15T14:16:23.000Z
359_logger_rate_limiter.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
359_logger_rate_limiter.py
claytonjwong/leetcode-py
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
[ "MIT" ]
null
null
null
# # 359. Logger Rate Limiter # # Q: https://leetcode.com/problems/logger-rate-limiter/ # A: https://leetcode.com/problems/logger-rate-limiter/discuss/473779/Javascript-Python3-C%2B%2B-hash-table # class Logger: def __init__(self): self.m = {} def shouldPrintMessage(self, t: int, s: str) -> bool: ...
25.882353
107
0.595455
64
440
4.03125
0.578125
0.116279
0.197674
0.186047
0.317829
0.317829
0.317829
0
0
0
0
0.043077
0.261364
440
16
108
27.5
0.750769
0.418182
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.555556
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
5a21aa7a7cde6e8e64139ea4724093c3088da57b
630
py
Python
tests/test_parser.py
divykj/Make-to-Batch
d8bc778376bfaa8c7fdea1ddf977074d9c313207
[ "MIT" ]
8
2020-04-24T13:12:56.000Z
2021-12-15T08:27:12.000Z
tests/test_parser.py
divykj/Make-to-Batch
d8bc778376bfaa8c7fdea1ddf977074d9c313207
[ "MIT" ]
9
2020-10-02T17:41:57.000Z
2021-12-22T01:10:46.000Z
tests/test_parser.py
divykj/Make-to-Batch
d8bc778376bfaa8c7fdea1ddf977074d9c313207
[ "MIT" ]
4
2020-10-02T17:42:43.000Z
2021-12-18T07:00:37.000Z
import pytest from make_to_batch.parser import Parser class TestParser: def test_init(self): parser = Parser('rm -r --verbose dir1 dir2') assert hasattr(parser, 'program') assert hasattr(parser, 'options') assert hasattr(parser, 'parameters') assert 'rm' == parser.program ...
31.5
52
0.644444
77
630
5.220779
0.376623
0.139303
0.236318
0.208955
0.119403
0
0
0
0
0
0
0.008584
0.260317
630
19
53
33.157895
0.854077
0
0
0
0
0
0.139683
0
0
0
0
0
0.6875
1
0.0625
false
0
0.125
0
0.25
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
1
0
0
0
0
0
0
0
0
0
3
5a322f999039114add72eea74f8d34bc29ecf8d3
17
py
Python
HouseClown/houseclown/test_events.py
dmedinag/pg-hack
974e6489e8440dfb3e38dc108d967103776daebc
[ "Apache-2.0" ]
null
null
null
HouseClown/houseclown/test_events.py
dmedinag/pg-hack
974e6489e8440dfb3e38dc108d967103776daebc
[ "Apache-2.0" ]
null
null
null
HouseClown/houseclown/test_events.py
dmedinag/pg-hack
974e6489e8440dfb3e38dc108d967103776daebc
[ "Apache-2.0" ]
null
null
null
test_events = []
8.5
16
0.647059
2
17
5
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5a3d731f99fb19cd069ac26f22870232ae8f1812
173
py
Python
whbus/urls.py
cdkr/wuhanbus-weixin
1fce79d2f205739910535a8cc8ca765ed6be7d76
[ "Unlicense" ]
4
2015-01-26T05:58:39.000Z
2016-10-13T08:44:02.000Z
whbus/urls.py
cdkr/wuhanbus-weixin
1fce79d2f205739910535a8cc8ca765ed6be7d76
[ "Unlicense" ]
null
null
null
whbus/urls.py
cdkr/wuhanbus-weixin
1fce79d2f205739910535a8cc8ca765ed6be7d76
[ "Unlicense" ]
1
2019-03-29T16:47:05.000Z
2019-03-29T16:47:05.000Z
#encoding:utf-8 from django.conf.urls import patterns, url from views import * urlpatterns = patterns('whbus.views', url(r'^$', Weixin.as_view()), )
21.625
52
0.624277
22
173
4.863636
0.772727
0
0
0
0
0
0
0
0
0
0
0.007519
0.231214
173
7
53
24.714286
0.796992
0.080925
0
0
0
0
0.082278
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
5a3f45af186fc0ba08dd57f4cac2bd5c409d7ee5
1,486
py
Python
tools/lazy_reader.py
RunxinXu/DeMa-BWE
55b8f1ea8f7849d0dc3ae71d64841e78e2a395c0
[ "BSD-3-Clause" ]
65
2019-03-31T04:47:33.000Z
2022-01-26T02:39:55.000Z
tools/lazy_reader.py
RunxinXu/DeMa-BWE
55b8f1ea8f7849d0dc3ae71d64841e78e2a395c0
[ "BSD-3-Clause" ]
3
2019-04-16T19:05:56.000Z
2019-12-04T07:04:23.000Z
tools/lazy_reader.py
RunxinXu/DeMa-BWE
55b8f1ea8f7849d0dc3ae71d64841e78e2a395c0
[ "BSD-3-Clause" ]
6
2019-05-16T07:03:48.000Z
2019-12-30T04:23:54.000Z
import gzip import numpy as np def lazy_file_reader(path): with gzip.open(path, 'rb') as fin: for line in fin: yield [int(i) for i in line.decode().strip().split()] class lazy_file_iterator(): def __init__(self, path): self.fin = gzip.open(path, "rb") self.buf_size = 100 ...
26.070175
91
0.583445
203
1,486
4.004926
0.334975
0.088561
0.054121
0.03444
0.204182
0.179582
0.120541
0.120541
0.120541
0.120541
0
0.006731
0.300135
1,486
57
92
26.070175
0.775
0.01817
0
0.238095
0
0
0.002743
0
0
0
0
0
0
1
0.261905
false
0
0.047619
0.142857
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
5a5eaf18bd9a4c37305c2f6b90c84185fbdf2dbb
498
py
Python
Configuration/EcalTB/python/localReco2004_rawData_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/EcalTB/python/localReco2004_rawData_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/EcalTB/python/localReco2004_rawData_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Hodoscope Reconstruction from RecoTBCalo.EcalTBHodoscopeReconstructor.ecal2004TBHodoscopeReconstructor_cfi import * # TDC Reconstruction from RecoTBCalo.EcalTBTDCReconstructor.ecal2004TBTDCReconstructor_cfi import * # uncalibrated rechit producer from RecoTBCalo.EcalTBRecProd...
45.272727
127
0.89759
38
498
11.657895
0.631579
0.094808
0.126411
0
0
0
0
0
0
0
0
0.059957
0.062249
498
10
128
49.8
0.888651
0.144578
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
5a7e99adfd0507c2c869ec4ebe9b46c1633c5e6c
4,359
py
Python
testing/stub_util.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
18
2019-05-04T00:30:21.000Z
2022-03-18T16:59:26.000Z
testing/stub_util.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
18
2019-04-24T21:19:07.000Z
2022-02-14T17:38:03.000Z
testing/stub_util.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
26
2019-04-24T20:39:23.000Z
2022-03-14T13:06:01.000Z
from email.utils import formatdate import json from testing.http_util import ChunkedResponse, JsonResponse from ldclient.interfaces import EventProcessor, FeatureRequester, FeatureStore, UpdateProcessor def make_items_map(items = []): ret = {} for item in items: ret[item['key']] = item return ret...
25.946429
97
0.637532
531
4,359
5.003766
0.224105
0.033873
0.060218
0.009033
0.205495
0.152804
0.135491
0.118178
0.109146
0.088069
0
0.004614
0.254187
4,359
167
98
26.101796
0.812673
0
0
0.261905
0
0
0.039
0
0
0
0
0
0
1
0.309524
false
0.063492
0.031746
0.063492
0.539683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
ce6bc8d4e93262df980db7bdbe82bfca2efcf19b
246
py
Python
user1/api.py
lijiaqipy/swiper
593cbfa19f73950cf059d83c1f5bdc429866e346
[ "MIT" ]
null
null
null
user1/api.py
lijiaqipy/swiper
593cbfa19f73950cf059d83c1f5bdc429866e346
[ "MIT" ]
10
2019-12-04T23:34:49.000Z
2022-02-10T08:18:43.000Z
user1/api.py
lijiaqipy/swiper
593cbfa19f73950cf059d83c1f5bdc429866e346
[ "MIT" ]
null
null
null
from django.http import JsonResponse from common import utils def verify_phone(request): phone_num = request.POST.get('phone_num') if utils.is_phone_num(phone_num.strip()): pass return JsonResponse({'code':1001,'data':None})
27.333333
50
0.723577
35
246
4.914286
0.657143
0.186047
0
0
0
0
0
0
0
0
0
0.019324
0.158537
246
9
50
27.333333
0.811594
0
0
0
0
0
0.068826
0
0
0
0
0
0
1
0.142857
false
0.142857
0.285714
0
0.571429
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
0
1
0
0
1
0
0
3
ce6c0443cdced481fac4c1c80907b35af0f6cfa1
13,763
py
Python
load_vcfs/uclex_to_vcf.py
pontikos/exac_browser
650d863cb3373c5005d5d4fc04c7306ef854bd69
[ "MIT" ]
2
2016-07-15T17:41:30.000Z
2017-01-20T00:18:27.000Z
load_vcfs/uclex_to_vcf.py
pontikos/exac_browser
650d863cb3373c5005d5d4fc04c7306ef854bd69
[ "MIT" ]
4
2015-12-01T23:17:15.000Z
2016-01-20T01:30:56.000Z
load_vcfs/uclex_to_vcf.py
pontikos/uclex_browser
650d863cb3373c5005d5d4fc04c7306ef854bd69
[ "MIT" ]
null
null
null
#! /sw/arch/bin/python # # ************************************************************* # # $Source: $ # $Revision: $ # $State: $ # $Date: $ ...
58.565957
1,072
0.686042
2,299
13,763
3.933884
0.181818
0.016586
0.020566
0.022114
0.718045
0.713843
0.687196
0.66851
0.641309
0.628483
0
0.094223
0.103175
13,763
234
1,073
58.816239
0.6385
0.64143
0
0.083333
0
0.027778
0.363465
0.2172
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.083333
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce858202f9c5be8214f61653ab1c9322676e25f0
176
py
Python
setup.py
Chlorophytus/pyopencl-nbody
2752bea0b6f845fe33b2eb3cb297514f2b460142
[ "MIT" ]
null
null
null
setup.py
Chlorophytus/pyopencl-nbody
2752bea0b6f845fe33b2eb3cb297514f2b460142
[ "MIT" ]
null
null
null
setup.py
Chlorophytus/pyopencl-nbody
2752bea0b6f845fe33b2eb3cb297514f2b460142
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="pyoclnbody", description="PyOpenCL N-body simulation", version="0.2.0r5", packages=find_packages(), )
19.555556
45
0.704545
21
176
5.809524
0.809524
0.196721
0
0
0
0
0
0
0
0
0
0.027397
0.170455
176
8
46
22
0.808219
0
0
0
0
0
0.244318
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
ce85de125727809e1539216d295d0c05b7cfedec
3,553
py
Python
modules/dbnd/src/dbnd/_core/tracking/schemas/tracking_info_objects.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/schemas/tracking_info_objects.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/_core/tracking/schemas/tracking_info_objects.py
ipattarapong/dbnd
7bd65621c46c73e078eb628f994127ad4c7dbd1a
[ "Apache-2.0" ]
null
null
null
import logging import typing import attr from dbnd._core.constants import TaskRunState, _DbndDataClass if typing.TYPE_CHECKING: from typing import Optional, List from datetime import datetime, date from uuid import UUID from dbnd._core.parameter.parameter_definition import ParameterDefinition logg...
26.514925
77
0.636364
481
3,553
4.528067
0.205821
0.170799
0.257117
0.191001
0.481175
0.244261
0.178145
0.057851
0.037649
0.037649
0
0
0.23445
3,553
133
78
26.714286
0.800735
0.206023
0
0.170455
0
0
0.014866
0.007977
0
0
0
0
0
1
0.022727
false
0
0.090909
0.022727
0.909091
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ce86adfdd1a543e585b0a4f27293a22f67799cd3
6,930
py
Python
day11.py
ecnerwala/aoc-2019
9a8a273804395da1d269bea94f260e320946f26c
[ "CC0-1.0" ]
5
2021-01-26T03:25:01.000Z
2021-04-12T21:56:13.000Z
day11.py
ecnerwala/aoc-2019
9a8a273804395da1d269bea94f260e320946f26c
[ "CC0-1.0" ]
null
null
null
day11.py
ecnerwala/aoc-2019
9a8a273804395da1d269bea94f260e320946f26c
[ "CC0-1.0" ]
1
2021-03-02T19:33:51.000Z
2021-03-02T19:33:51.000Z
from functools import * from collections import * from itertools import * from math import * from sys import exit from dataclasses import dataclass import re from builtins import pow from heapq import heappush, heappop, heappushpop, heapify, heapreplace import pyperclip def cprint(a): print(a) pyperclip.copy(...
35.721649
2,041
0.509812
1,248
6,930
2.762019
0.168269
0.018277
0.029011
0.016246
0.342327
0.321439
0.282565
0.26893
0.253844
0.24224
0
0.307349
0.320635
6,930
193
2,042
35.906736
0.424809
0.002309
0
0.261147
0
0.006369
0.29822
0.295326
0
0
0
0
0.050955
1
0.057325
false
0.006369
0.063694
0
0.197452
0.031847
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce93a8668e1d4287cc72e1b1544a5020577f6852
345
py
Python
conftest.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
5
2022-01-12T13:24:34.000Z
2022-02-22T09:37:17.000Z
conftest.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
2
2021-11-21T10:23:37.000Z
2021-11-21T10:32:15.000Z
conftest.py
bitranox/lib_parameter
f02389665b6aa54868fa140b3c0c2d091c927def
[ "MIT" ]
1
2022-03-31T13:44:08.000Z
2022-03-31T13:44:08.000Z
import pytest from typing import List collect_ignore: List[str] = [] def pytest_load_initial_conftests(early_config: pytest.Config, parser: pytest.Parser, args: List[str]) -> None: # PizzaCutter Template can add here additional pytest args additional_pytest_args: List[str] = [] args[:] = list(set(args + ...
31.363636
111
0.744928
46
345
5.391304
0.521739
0.084677
0.241935
0.193548
0
0
0
0
0
0
0
0
0.150725
345
10
112
34.5
0.846416
0.162319
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ce9e45ee5d545765c3bd5c6b66dcc4cb3a34ee9b
256
py
Python
Python/antecessorSucessor.py
schiblich/Practice
bb3572328196bf47b07ec03bc3e78b87ecaf783c
[ "MIT" ]
null
null
null
Python/antecessorSucessor.py
schiblich/Practice
bb3572328196bf47b07ec03bc3e78b87ecaf783c
[ "MIT" ]
null
null
null
Python/antecessorSucessor.py
schiblich/Practice
bb3572328196bf47b07ec03bc3e78b87ecaf783c
[ "MIT" ]
1
2022-01-31T21:27:23.000Z
2022-01-31T21:27:23.000Z
print("Digite um numero...") numero = int(input()); numero numeroSucessor = print(numero + 1); numeroAntecessor = print(numero - 1); print("o seu valor eh {}, seu sucessor eh {} e o seu antecessor eh {}".format(numero, numeroSucessor, numeroAntecessor));
42.666667
121
0.707031
33
256
5.484848
0.515152
0.220994
0.132597
0
0
0
0
0
0
0
0
0.00905
0.136719
256
5
122
51.2
0.809955
0
0
0
0
0
0.316406
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
cea3a5ded62674ec67602958f32c940ae8c86847
411
py
Python
server_example.py
flosch/pyrpc
25cdbce6ffebcb2f758bf8de7f91ef65e13db208
[ "MIT" ]
1
2021-01-23T11:11:40.000Z
2021-01-23T11:11:40.000Z
server_example.py
flosch/pyrpc
25cdbce6ffebcb2f758bf8de7f91ef65e13db208
[ "MIT" ]
null
null
null
server_example.py
flosch/pyrpc
25cdbce6ffebcb2f758bf8de7f91ef65e13db208
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pyrpc import RPCServer, RPCServerHandler class CalcServerHandler(RPCServerHandler): def handle_pythagoras(self, a, b): return a**2 + b**2 def handle_ping(self): return True def main(): cs = RPCServer(port=4711, handler=CalcServerHandler) try: ...
19.571429
56
0.63017
46
411
5.413043
0.695652
0.072289
0
0
0
0
0
0
0
0
0
0.022876
0.255474
411
21
57
19.571429
0.79085
0.051095
0
0
0
0
0.020566
0
0
0
0
0
0
1
0.214286
false
0.071429
0.071429
0.142857
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
0
0
0
3
ceb279066ba4d5cdbb2f105f60411a8271f6cd88
1,424
py
Python
python/20190121/Code/c1.py
Realize0917/career
b5d02ac53cfc3ce3a2ca38d11480c51560283e67
[ "MIT" ]
3
2019-01-17T05:50:51.000Z
2019-03-15T10:10:07.000Z
python/20190121/Code/c1.py
Realize0917/career
b5d02ac53cfc3ce3a2ca38d11480c51560283e67
[ "MIT" ]
10
2019-01-17T06:07:03.000Z
2019-02-19T05:55:25.000Z
python/20190121/Code/c1.py
Realize0917/career
b5d02ac53cfc3ce3a2ca38d11480c51560283e67
[ "MIT" ]
4
2018-12-22T07:32:55.000Z
2019-03-06T09:13:48.000Z
""" 一、程序错误: 1. 程序编写的时候有问题-bug 2. 用户输入脏数据-通过检查校验来对用户输入进行处理 3. 程序运行过程中无法预测的,比如:网络问题, 磁盘问题等-异常 4. 业务问题 程序中所有的错误都需要进行处理 二、程序调式: 跟踪程序的执行,查看相应变量的值 三、程序测试: 测试人员:程序上生产(production)之前,会通过多个测试环境(test, uat, stg) 开发人员:单元测试(开发环境) """ # 获取python自带异常错误类 # import re # list_a = dir(__builtins__) # list_b = [i for i in list_a if re.matc...
22.603175
87
0.662219
214
1,424
4.359813
0.490654
0.021436
0.051447
0.098607
0.282958
0.235799
0.235799
0.235799
0.235799
0.235799
0
0.056114
0.161517
1,424
62
88
22.967742
0.725293
0.355337
0
0
0
0
0.031008
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
0c840a50911c191d2047126298071dda4a9278e1
241
py
Python
test/test_ac_manager.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
3
2018-11-09T09:06:01.000Z
2018-11-11T15:38:45.000Z
test/test_ac_manager.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
1
2018-11-11T15:39:04.000Z
2018-11-15T02:31:32.000Z
test/test_ac_manager.py
gawainguo/Flask-AC
6b7c7ebe7721b1208d7596999ce29852a7e1879c
[ "MIT" ]
null
null
null
from flask_ac import ACManager from . import test_permission, test_app def test_init_app(): ac = ACManager(permissions=test_permission) ac.init_app(test_app) assert test_app.ac_manager.ptree.name == test_permission.get('name')
26.777778
72
0.771784
36
241
4.861111
0.444444
0.24
0
0
0
0
0
0
0
0
0
0
0.136929
241
8
73
30.125
0.841346
0
0
0
0
0
0.016598
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
0c9bbb83eae22ca8ca142dcf658e13a5a9f1864b
119
py
Python
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/multi_agent_coach/architectures/tensorflow_components/heads/__init__.py
fhirschmann/amazon-sagemaker-examples
bb4a4ed78cd4f3673bd6894f0b92ab08aa7f8f29
[ "Apache-2.0" ]
3
2021-07-25T15:10:35.000Z
2021-10-30T02:35:33.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/multi_agent_coach/architectures/tensorflow_components/heads/__init__.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
1
2021-03-25T18:31:29.000Z
2021-03-25T18:31:29.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/multi_agent_coach/architectures/tensorflow_components/heads/__init__.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
3
2021-07-25T15:16:06.000Z
2022-03-28T14:13:22.000Z
from .sac_head import SACPolicyHead from .sac_q_head import SACQHead __all__ = [ 'SACQHead', 'SACPolicyHead' ]
17
35
0.731092
14
119
5.714286
0.571429
0.175
0
0
0
0
0
0
0
0
0
0
0.184874
119
7
36
17
0.824742
0
0
0
0
0
0.175
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
0cf5220e57cc4cc0416baee54237897258bc7669
1,767
py
Python
app/models/user.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
app/models/user.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
app/models/user.py
saury2013/Memento
dbb2031a5aff3064f40bcb5afe631de8724a547e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from flask_login import UserMixin from werkzeug.security import generate_password_hash,check_password_hash from app.models import db class User(db.Model,UserMixin): '''user table''' __tablename__ = "user" __table_args__ = { "mysql_engine": "Inn...
31
89
0.682513
218
1,767
5.389908
0.325688
0.04766
0.059574
0.054468
0.320851
0.202553
0.202553
0.083404
0.083404
0
0
0.009894
0.199208
1,767
56
90
31.553571
0.820495
0.018676
0
0.071429
1
0
0.037101
0.014493
0
0
0
0
0
1
0.142857
false
0.190476
0.095238
0.071429
0.595238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
4904b4e1f9825bccf645a86ebeca028bf21d1905
276
py
Python
src/utils/io.py
mpavlak1/dust
7901566b8cc28f206391144cb41911f07733e0f3
[ "MIT" ]
null
null
null
src/utils/io.py
mpavlak1/dust
7901566b8cc28f206391144cb41911f07733e0f3
[ "MIT" ]
null
null
null
src/utils/io.py
mpavlak1/dust
7901566b8cc28f206391144cb41911f07733e0f3
[ "MIT" ]
null
null
null
# /dust/src/utils/io.py # Built-ins import os # Package import __init__ def spit(filepath, msg, mode='a'): with open(filepath, mode=mode) as w: w.write(msg) def slurp(filepath): with open(filepath) as w: return list(w.readlines())
16.235294
41
0.605072
40
276
4.075
0.65
0.09816
0.196319
0
0
0
0
0
0
0
0
0
0.264493
276
16
42
17.25
0.802956
0.141304
0
0
0
0
0.00463
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
0b275f78858573cde8a7cd7f7d0403b182bf3142
219
py
Python
src/ggrc/cache/__init__.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-01-03T02:49:23.000Z
2018-01-03T02:49:23.000Z
src/ggrc/cache/__init__.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/cache/__init__.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from .localcache import LocalCache from .memcache import MemCache from .cachemanager import CacheManager
27.375
78
0.789954
30
219
5.766667
0.733333
0
0
0
0
0
0
0
0
0
0
0.03125
0.123288
219
7
79
31.285714
0.869792
0.488584
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
0b2bd5a0e4967f719c361f7e4ae284107af6dde9
59
py
Python
deepracing_rclpy/deepracing_ros/__init__.py
linklab-uva/deepracing_ros
eec29c91526ca1030d5aeb7423149760b6d12d90
[ "Apache-2.0" ]
null
null
null
deepracing_rclpy/deepracing_ros/__init__.py
linklab-uva/deepracing_ros
eec29c91526ca1030d5aeb7423149760b6d12d90
[ "Apache-2.0" ]
null
null
null
deepracing_rclpy/deepracing_ros/__init__.py
linklab-uva/deepracing_ros
eec29c91526ca1030d5aeb7423149760b6d12d90
[ "Apache-2.0" ]
1
2021-01-09T18:23:10.000Z
2021-01-09T18:23:10.000Z
world_coordinate_name = "track" car_coordinate_name = "car"
29.5
31
0.813559
8
59
5.5
0.625
0.636364
0
0
0
0
0
0
0
0
0
0
0.084746
59
2
32
29.5
0.814815
0
0
0
0
0
0.133333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b4a63720742e0e94b345fec456b999a48f4d339
43
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM-master/kingadmin/templatetags/__init__.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM-master/kingadmin/templatetags/__init__.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2017-08-07T01:32:15.000Z
2017-08-07T01:32:15.000Z
taotao-cloud-python/taotao-cloud-oldboy/day84-PerfectCRM/PerfectCRM-master/kingadmin/templatetags/__init__.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
#_*_coding:utf-8_*_ __author__ = 'Alex Li'
14.333333
22
0.697674
6
43
3.666667
1
0
0
0
0
0
0
0
0
0
0
0.026316
0.116279
43
2
23
21.5
0.552632
0.418605
0
0
0
0
0.291667
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b5a0b788551981820b41e47d6fcf79f47a66218
2,373
py
Python
research/injection/inject.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
research/injection/inject.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
research/injection/inject.py
nikhilrj/CARDS
509815f23c11881e6444308fa1014aed6a1af358
[ "MIT" ]
null
null
null
import inspect from test import * import sys #from test2 import * g=322 def a(): b = 3 c = 'af' if __name__ == '__main__': a() b = test() print b.__dict__ for i in globals().keys(): #print i, globals()[i] print i, globals()[i], sys.getsizeof(globals()[i]) for i in locals().keys(): print i, locals()...
74.15625
1,904
0.695744
282
2,373
5.762411
0.35461
0.073231
0.147692
0.016
0.020923
0
0
0
0
0
0
0.002366
0.109566
2,373
32
1,904
74.15625
0.766682
0.861778
0
0
0
0
0.031056
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
0b60987156bea8182bfcb0b30cb7cd97c64d148c
19
py
Python
malwarebazaar/__init__.py
Rafiot/bazaar
ee61622de49a7ba3fa7c4c8ad07346b36e5e36e0
[ "MIT" ]
15
2021-06-16T21:25:27.000Z
2022-02-21T10:48:32.000Z
malwarebazaar/__init__.py
Rafiot/bazaar
ee61622de49a7ba3fa7c4c8ad07346b36e5e36e0
[ "MIT" ]
3
2021-09-28T07:33:21.000Z
2022-02-21T19:03:23.000Z
malwarebazaar/__init__.py
Rafiot/bazaar
ee61622de49a7ba3fa7c4c8ad07346b36e5e36e0
[ "MIT" ]
3
2021-06-17T20:12:54.000Z
2022-02-21T09:31:55.000Z
version = "v0.1.2"
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.1875
0.157895
19
1
19
19
0.5
0
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b76ac6214ecb55634c434b89dedce14ea4e5b48
329
py
Python
tests/external_plugins/external_plugin.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
tests/external_plugins/external_plugin.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
tests/external_plugins/external_plugin.py
Crupuk/Flexget
0ede246fd4b90e3cd75120ba13746187e11968d2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from flexget.entry import Entry from flexget.plugin import register_plugin class ExternalPlugin(object): def on_task_input(self, task, config): return [Entry('test entry', 'fake url')] register_plugin(ExternalPlugin, 'external_plugin', ap...
29.909091
66
0.784195
43
329
5.72093
0.651163
0.089431
0
0
0
0
0
0
0
0
0
0.003497
0.130699
329
10
67
32.9
0.856643
0
0
0
0
0
0.100304
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
0b95cf2d86531dcce499a261f0be67819fee3cbe
805
py
Python
test/automaton_generation/test_utils.py
rominf/pyffs
6c805fbfd7771727138b169b32484b53c0b0fad1
[ "MIT" ]
21
2018-07-17T13:21:11.000Z
2022-03-07T03:00:37.000Z
test/automaton_generation/test_utils.py
rominf/pyffs
6c805fbfd7771727138b169b32484b53c0b0fad1
[ "MIT" ]
10
2016-09-23T20:30:18.000Z
2021-03-07T12:56:56.000Z
test/automaton_generation/test_utils.py
antoinewdg/pyffs
6ac2b6cac67422cbfd34ad0896d6faf35be9ccb9
[ "MIT" ]
3
2018-08-21T12:08:36.000Z
2020-11-12T19:32:54.000Z
from pyffs.automaton_generation.utils import generate_all_bit_vectors_under_n def test_generate_all_bit_vectors_under_0(): generated = generate_all_bit_vectors_under_n(0) expected = [()] assert expected == generated def test_generate_all_bit_vectors_under_1(): generated = generate_all_bit_vectors_un...
22.361111
77
0.55528
108
805
3.777778
0.185185
0.04902
0.240196
0.360294
0.747549
0.686275
0.620098
0.27451
0.27451
0.27451
0
0.074866
0.303106
805
35
78
23
0.652406
0
0
0.103448
1
0
0
0
0
0
0
0
0.103448
1
0.103448
false
0
0.034483
0
0.137931
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0baff96bc1fe35bdda6d1f3dbf381fe92434e43e
150
py
Python
tests/system/lab/scripts/write_out.py
doug-dianomic/fledge
cab620d1f31e6dca8e31ca8e483adaad7ce94834
[ "Apache-2.0" ]
69
2019-12-03T17:54:33.000Z
2022-03-13T07:05:23.000Z
tests/system/lab/scripts/write_out.py
doug-dianomic/fledge
cab620d1f31e6dca8e31ca8e483adaad7ce94834
[ "Apache-2.0" ]
576
2017-05-22T05:41:07.000Z
2020-02-13T07:48:58.000Z
tests/system/lab/scripts/write_out.py
doug-dianomic/fledge
cab620d1f31e6dca8e31ca8e483adaad7ce94834
[ "Apache-2.0" ]
52
2017-05-09T22:45:47.000Z
2022-03-10T18:49:02.000Z
# -*- coding: utf-8 -*- def write_out(message): with open('/tmp/out', 'w') as f: f.write("We have triggered.") f.write(message)
18.75
37
0.54
22
150
3.636364
0.727273
0.15
0
0
0
0
0
0
0
0
0
0.008929
0.253333
150
7
38
21.428571
0.705357
0.14
0
0
0
0
0.212598
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0bb593e92a867d76b39f27160e4d0d4642086adc
624
py
Python
src/Services/APIManagement.py
PauGuiu/python-app-exercise
f82f1a103a79ec9f5ea4263147cb50ed450286d4
[ "MIT" ]
2
2021-06-24T19:15:50.000Z
2021-12-21T17:13:14.000Z
src/Services/APIManagement.py
PauGuiu/python-app-exercise
f82f1a103a79ec9f5ea4263147cb50ed450286d4
[ "MIT" ]
null
null
null
src/Services/APIManagement.py
PauGuiu/python-app-exercise
f82f1a103a79ec9f5ea4263147cb50ed450286d4
[ "MIT" ]
null
null
null
import requests #Class designed to comunicate the app #with a API and Get JSON information. class APIManagement: ### Variables ### # url API ### Constructors ### def __init__(self): pass def __init__(self, url): self.url = url ### Setters and Getters### def S...
19.5
49
0.557692
73
624
4.657534
0.506849
0.123529
0.088235
0.082353
0.1
0
0
0
0
0
0
0
0.326923
624
31
50
20.129032
0.809524
0.333333
0
0.153846
0
0
0.014245
0
0
0
0
0
0
1
0.384615
false
0.076923
0.076923
0
0.615385
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
0bbabf964ec59fb7327fb63db2541471b3789d09
261
py
Python
waspy/listeners/transport_listener_abc.py
colinchilds/waspy
d1fa0f5c015d1e001d4f373fccbbc9a1a241bec1
[ "Apache-2.0" ]
44
2016-12-30T04:13:12.000Z
2020-12-27T17:40:25.000Z
waspy/listeners/transport_listener_abc.py
colinchilds/waspy
d1fa0f5c015d1e001d4f373fccbbc9a1a241bec1
[ "Apache-2.0" ]
12
2017-01-19T20:38:38.000Z
2020-12-31T20:07:17.000Z
waspy/listeners/transport_listener_abc.py
colinchilds/waspy
d1fa0f5c015d1e001d4f373fccbbc9a1a241bec1
[ "Apache-2.0" ]
11
2017-01-13T22:07:55.000Z
2021-07-30T12:39:32.000Z
from abc import ABC, abstractmethod from typing import Dict class TransportListenerABC(ABC): @abstractmethod async def start(self) -> None: pass @abstractmethod async def handle_work(self, data: Dict, **kwargs) -> None: pass
18.642857
62
0.67433
30
261
5.833333
0.6
0.194286
0.251429
0
0
0
0
0
0
0
0
0
0.245211
261
13
63
20.076923
0.888325
0
0
0.444444
0
0
0
0
0
0
0
0
0
1
0
true
0.222222
0.222222
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
0bbd5ecc10ecafc076d54fa9fbcf60daf30d78ea
512
py
Python
Chapter03/checksample.py
PacktPublishing/Practical-Network-Automation
fa0e7e81869162fe578cf85166fdccca2acdd418
[ "MIT" ]
20
2017-12-06T10:53:01.000Z
2022-02-28T05:13:09.000Z
Chapter03/checksample.py
larisk8ter/Practical-Network-Automation
fa0e7e81869162fe578cf85166fdccca2acdd418
[ "MIT" ]
null
null
null
Chapter03/checksample.py
larisk8ter/Practical-Network-Automation
fa0e7e81869162fe578cf85166fdccca2acdd418
[ "MIT" ]
16
2018-02-19T16:16:00.000Z
2022-02-24T17:06:19.000Z
import re sampletext=""" interface fa0/1 switchport mode trunk no shut interface fa0/0 no shut interface fa1/0 switchport mode trunk no shut interface fa2/0 shut interface fa2/1 switchport mode trunk no shut interface te3/1 switchport mode trunk shut """ sampletext=sampletext.split("interface") #check for interfa...
15.515152
52
0.722656
79
512
4.683544
0.417722
0.121622
0.205405
0.162162
0.281081
0.281081
0.189189
0
0
0
0
0.031026
0.181641
512
32
53
16
0.852029
0.083984
0
0.416667
0
0
0.602564
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0.041667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e7ef883eaad8b5d7d2edc22ed97210f547d3be55
194
py
Python
sample_prj/myapp/views.py
mtb-beta/django-datepicker-sample
0ec8e6c3bcda29732f99681a416fe1e40ea01aea
[ "MIT" ]
null
null
null
sample_prj/myapp/views.py
mtb-beta/django-datepicker-sample
0ec8e6c3bcda29732f99681a416fe1e40ea01aea
[ "MIT" ]
null
null
null
sample_prj/myapp/views.py
mtb-beta/django-datepicker-sample
0ec8e6c3bcda29732f99681a416fe1e40ea01aea
[ "MIT" ]
null
null
null
from django.shortcuts import render from myapp.forms import MyModelForm def datepicker_view(requests): form = MyModelForm() return render(requests, 'mymodel_form.html', {'form': form})
27.714286
64
0.757732
24
194
6.041667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.139175
194
6
65
32.333333
0.868263
0
0
0
0
0
0.108247
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e7f92361ba721028ddca5674520516f0824b7ff6
11,431
py
Python
src/compare.py
ruiyangsong/nlp
630952401ba6ca6e493aa4c2448479377c7127ed
[ "MIT" ]
null
null
null
src/compare.py
ruiyangsong/nlp
630952401ba6ca6e493aa4c2448479377c7127ed
[ "MIT" ]
null
null
null
src/compare.py
ruiyangsong/nlp
630952401ba6ca6e493aa4c2448479377c7127ed
[ "MIT" ]
null
null
null
#!/usr/bin/env/ python import numpy as np import matplotlib.pyplot as plt from sklearn import metrics from utils import test_score def compare_metrics(): p_reals = [] p_preds = [] classifiers = {'LR': '../model/LR/mode_sum_maxiter_1000_lr_0.1/test_rst.npz', 'SVM': '../model/svm/mode_sum_...
84.051471
186
0.443006
1,403
11,431
3.550249
0.109052
0.134913
0.154186
0.205581
0.198555
0.184903
0.184903
0.17888
0.17888
0.178679
0
0.114793
0.271455
11,431
136
187
84.051471
0.483309
0.008223
0
0.314961
0
0.330709
0.433286
0.190169
0
0
0
0
0
1
0.015748
false
0
0.031496
0
0.055118
0.007874
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e7fac4ee1db111a9c97fa1123e6f8cc1b104d363
77
py
Python
config/settings/local.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
config/settings/local.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
config/settings/local.py
Xtuden-com/django-property
6656d469a5d06c103a34c2e68b9f1754413fb3ba
[ "MIT" ]
null
null
null
from .base import * # Allowed Hosts ALLOWED_HOSTS = ['0.0.0.0','127.0.0.1']
15.4
39
0.636364
15
77
3.2
0.533333
0.166667
0.125
0
0
0
0
0
0
0
0
0.151515
0.142857
77
4
40
19.25
0.575758
0.168831
0
0
0
0
0.258065
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f002e15bc9cd877ca78d6805450c983e8e23fad8
1,564
py
Python
doc/uses/EPSCs-and-IPSCs/smooth histogram method/16.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
15
2017-03-09T03:08:32.000Z
2021-11-16T11:31:55.000Z
doc/uses/EPSCs-and-IPSCs/smooth histogram method/16.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
2
2016-12-06T16:27:54.000Z
2017-11-04T23:48:49.000Z
doc/uses/EPSCs-and-IPSCs/smooth histogram method/16.py
swharden/SWHLab
a86c3c65323cec809a4bd4f81919644927094bf5
[ "MIT" ]
9
2016-10-19T13:32:10.000Z
2020-04-01T21:53:40.000Z
""" MOST OF THIS CODE IS NOT USED ITS COPY/PASTED AND LEFT HERE FOR CONVENIENCE """ import os import sys # in case our module isn't installed (running from this folder) if not os.path.abspath('../../../') in sys.path: sys.path.append('../../../') # helps spyder get docs import swhlab import swhlab.common as cm i...
34
77
0.757673
242
1,564
4.863636
0.475207
0.209856
0.242141
0.054376
0
0
0
0
0
0
0
0.199405
0.140665
1,564
46
78
34
0.676339
0.639386
0
0
0
0
0.19403
0.052239
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0.066667
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
f01bb272b048422c9c00982a8fb714056b457e89
3,178
py
Python
Laika-Bot/main.py
ReZeroE/Laika-Bot
f87b5c3d4856eee893816fa638174f7d8847ea15
[ "MIT" ]
null
null
null
Laika-Bot/main.py
ReZeroE/Laika-Bot
f87b5c3d4856eee893816fa638174f7d8847ea15
[ "MIT" ]
null
null
null
Laika-Bot/main.py
ReZeroE/Laika-Bot
f87b5c3d4856eee893816fa638174f7d8847ea15
[ "MIT" ]
null
null
null
import os import sys import discord import re from datetime import time # discord access info ----------------------------------------------------------------- client = discord.Client() bot_id = 'removed' channel_id = 000000 channel_name = "channel name" # ---------------------------------------------------...
33.104167
89
0.538704
371
3,178
4.48248
0.266846
0.050511
0.043295
0.046903
0.763079
0.748046
0.714372
0.672279
0.637402
0.637402
0
0.00866
0.309629
3,178
96
90
33.104167
0.749316
0.077722
0
0.635135
0
0
0.11692
0
0
0
0
0
0
1
0
false
0
0.067568
0
0.067568
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f026d67d854e74fdaff181f88c29b39bd88feea1
343
py
Python
haasomeapi/dataobjects/custombots/ScalperBot.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
9
2018-07-08T22:40:53.000Z
2022-03-21T20:32:43.000Z
haasomeapi/dataobjects/custombots/ScalperBot.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
5
2018-08-25T11:48:05.000Z
2019-12-12T19:57:20.000Z
haasomeapi/dataobjects/custombots/ScalperBot.py
iamcos/haasomeapi
eac1640cc13e1e7649b8a8d6ed88184722c907c8
[ "MIT" ]
6
2018-08-31T23:49:36.000Z
2022-01-08T04:51:21.000Z
from typing import List from haasomeapi.dataobjects.custombots.BaseCustomBot import BaseCustomBot class ScalperBot(BaseCustomBot): """ Data Object containing a Scalper Bot :ivar minimumTargetChange: float: :ivar maxAllowedReverseChange: float: """ minimumTargetChange: float maxAllow...
22.866667
73
0.752187
30
343
8.6
0.666667
0.186047
0
0
0
0
0
0
0
0
0
0
0.189504
343
14
74
24.5
0.928058
0.317784
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
f02a2777a611a09d861d1879b834c4fc11c88aea
133
py
Python
Temp/tmp.py
h-j-13/python-whois-0.6.7.zh-cn
0e08fb00c064548e7b3bb56469f65719a3073115
[ "MIT" ]
6
2017-12-08T11:46:44.000Z
2018-08-30T03:43:11.000Z
Temp/tmp.py
h-j-13/python-whois-0.6.7.zh-cn
0e08fb00c064548e7b3bb56469f65719a3073115
[ "MIT" ]
null
null
null
Temp/tmp.py
h-j-13/python-whois-0.6.7.zh-cn
0e08fb00c064548e7b3bb56469f65719a3073115
[ "MIT" ]
null
null
null
import whois class A(object): pass w = whois.whois('webscraping.com') w.expiration_date # dates converted to datetime object
14.777778
55
0.736842
19
133
5.105263
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.172932
133
9
55
14.777778
0.881818
0.255639
0
0
0
0
0.153061
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
f02aad73978db35a45b59543d09d84af3aef7da7
388
py
Python
50 Generatorss/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
3
2021-05-08T13:11:41.000Z
2021-05-14T02:43:20.000Z
50 Generatorss/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
50 Generatorss/main.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
""" Iterable - __iter__() or __getitem__() Iterator - __next__() Iteration - """ def gen(n): for i in range(n): yield i #g = gen(89765456432165464988789465456421321564578979874654654613216547897894654) # dont print number upto n number print location # print(g) g = gen(4) print(g.__ne...
20.421053
136
0.670103
45
388
5.155556
0.511111
0.12931
0.172414
0.193966
0.172414
0.172414
0.172414
0.172414
0.172414
0
0
0.230769
0.195876
388
18
137
21.555556
0.512821
0.592784
0
0.5
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.125
0.5
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
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
1
0
3
f02b011277bd1d9aeb8f7e7a8aa84b415a671ae8
161
py
Python
alertbox.py
hafiz-azmi/alertbox
e96dc9a77f4309b1942175e7099f71be8ba23c89
[ "MIT" ]
null
null
null
alertbox.py
hafiz-azmi/alertbox
e96dc9a77f4309b1942175e7099f71be8ba23c89
[ "MIT" ]
null
null
null
alertbox.py
hafiz-azmi/alertbox
e96dc9a77f4309b1942175e7099f71be8ba23c89
[ "MIT" ]
null
null
null
from box import alert from timer import timer from log import log_in, log_out log_in() timer(9, 0, 0) log_out() alert('Work Timer', 'Your time has exhausted!')
17.888889
47
0.73913
30
161
3.833333
0.5
0.086957
0
0
0
0
0
0
0
0
0
0.022059
0.15528
161
8
48
20.125
0.823529
0
0
0
0
0
0.21118
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
f035612273f5546d5da68d7ea81e85003e14c24f
3,074
py
Python
evidently/tabs/regression_validation_tab.py
ktaranov/evidently
754b9fd3e52d4e50e8b92e8878b9a51233f51972
[ "Apache-2.0" ]
1
2021-08-04T18:55:04.000Z
2021-08-04T18:55:04.000Z
evidently/tabs/regression_validation_tab.py
ktaranov/evidently
754b9fd3e52d4e50e8b92e8878b9a51233f51972
[ "Apache-2.0" ]
null
null
null
evidently/tabs/regression_validation_tab.py
ktaranov/evidently
754b9fd3e52d4e50e8b92e8878b9a51233f51972
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from typing import List from evidently.tabs.base_tab import Tab from evidently.widgets.reg_ref_quality_metrics_widget import RegRefQualityMetricsWidget from evidently.widgets.reg_prod_quality_metrics_widget import RegProdQualityMetricsWidget from evidently.widgets.reg_ref_pred_vs...
61.48
104
0.813598
305
3,074
7.914754
0.242623
0.10232
0.14913
0.161972
0.292461
0.176056
0.050539
0
0
0
0
0.000375
0.133377
3,074
50
105
61.48
0.905781
0.011061
0
0
0
0
0.169135
0
0
0
0
0
0
1
0.02381
false
0
0.47619
0
0.547619
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
f04664efc2bd888f4f722995402b19cfcae54dfc
155
py
Python
IntroIIII/adv/player.py
jiobu1/CSPT13_IntroPython_GP
ca39bb73f4ad19af8548e23ef9ceea57ff94974b
[ "MIT" ]
1
2021-02-19T04:42:48.000Z
2021-02-19T04:42:48.000Z
IntroIIII/adv/player.py
jiobu1/CSPT13_IntroPython_GP
ca39bb73f4ad19af8548e23ef9ceea57ff94974b
[ "MIT" ]
1
2020-09-04T03:33:22.000Z
2020-09-04T03:33:22.000Z
IntroIIII/adv/player.py
jiobu1/CSPT13_IntroPython_GP
ca39bb73f4ad19af8548e23ef9ceea57ff94974b
[ "MIT" ]
48
2020-09-02T01:30:33.000Z
2020-09-11T03:29:10.000Z
# lets make a Player class class Player: def __init__(self, name, starting_room): self.name = name self.current_room = starting_room
19.375
44
0.670968
21
155
4.619048
0.571429
0.164948
0
0
0
0
0
0
0
0
0
0
0.258065
155
7
45
22.142857
0.843478
0.154839
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
f047d3390c90b4d39b10642fa6d099c6b8f3617e
456
py
Python
plaza_routing/plaza_routing/business/walking_route_finder.py
PlazaNav/PlazaNav
ab81e074c3728e889ad741591c2dd01197b9704b
[ "MIT" ]
10
2018-03-16T02:39:46.000Z
2022-01-01T09:15:22.000Z
plaza_routing/plaza_routing/business/walking_route_finder.py
PlazaNav/PlazaNav
ab81e074c3728e889ad741591c2dd01197b9704b
[ "MIT" ]
7
2017-12-13T08:31:38.000Z
2022-02-09T08:41:04.000Z
plaza_routing/plaza_routing/business/walking_route_finder.py
PlazaNav/PlazaNav
ab81e074c3728e889ad741591c2dd01197b9704b
[ "MIT" ]
3
2017-12-13T08:24:37.000Z
2020-01-04T18:12:18.000Z
from plaza_routing.integration.routing_engine_service import RoutingEngine from plaza_routing.integration.routing_strategy.graphhopper_strategy import GraphHopperRoutingStrategy def get_walking_route(start: tuple, destination: tuple) -> dict: """ returns the walking route for a start and destination based on a ro...
50.666667
102
0.826754
52
456
7.057692
0.519231
0.106267
0.087193
0.147139
0.185286
0
0
0
0
0
0
0
0.111842
456
8
103
57
0.906173
0.177632
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
0
0
1
0
1
0
0
3
f0513b32b0389a773f7f7a6fed54472569325e26
1,567
py
Python
tests/test_0398-dimensions-in-leaflist.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
133
2020-05-08T21:34:11.000Z
2022-03-07T18:12:58.000Z
tests/test_0398-dimensions-in-leaflist.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
269
2020-05-13T02:42:24.000Z
2022-03-24T20:24:16.000Z
tests/test_0398-dimensions-in-leaflist.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
45
2020-05-15T17:48:04.000Z
2022-03-18T19:23:07.000Z
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE from __future__ import absolute_import import numpy import pytest import skhep_testdata import uproot def test(): with uproot.open(skhep_testdata.data_path("uproot-issue-398.root")) as file: assert [x.tolist() for x in ...
30.72549
86
0.567964
133
1,567
6.631579
0.736842
0.029478
0.006803
0
0
0
0
0
0
0
0
0.604268
0.342055
1,567
50
87
31.34
0.251212
0.051691
0
0.136364
0
0
0.024259
0.014151
0
0
0
0
0.022727
1
0.022727
true
0
0.113636
0
0.136364
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
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
f05ebb24a6a01616b2b090e579c5fef758a8c78c
143
py
Python
baseModel/gethash.py
mangonihao/MovieRecommendWeb
b612fcda68bf5f8b1f2734c138e3204119a78596
[ "Apache-2.0" ]
2
2021-11-04T01:51:11.000Z
2021-11-23T13:21:01.000Z
baseModel/gethash.py
mangonihao/MovieRecommendWeb
b612fcda68bf5f8b1f2734c138e3204119a78596
[ "Apache-2.0" ]
null
null
null
baseModel/gethash.py
mangonihao/MovieRecommendWeb
b612fcda68bf5f8b1f2734c138e3204119a78596
[ "Apache-2.0" ]
null
null
null
from hashlib import sha1 def get_hash(str): '''取一个字符串的hash值''' sh = sha1() sh.update(str.encode('utf8')) return sh.hexdigest()
20.428571
33
0.636364
19
143
4.736842
0.789474
0
0
0
0
0
0
0
0
0
0
0.026316
0.202797
143
7
34
20.428571
0.763158
0.083916
0
0
0
0
0.031746
0
0
0
0
0
0
1
0.2
false
0
0.2
0
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
0
0
0
0
0
1
0
0
3
f065a7af5679e0350ac144b3b2cfe486c61585a1
472
py
Python
answers/vjha21/Day7/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/vjha21/Day7/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/vjha21/Day7/question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
##Create a target array in the given order def generate_target_array(nums, index): length_of_num = len(nums) target_array = [] for i in range(0, length_of_num): if index[i] >= length_of_num: target_array.append(nums[i]) else: target_array.insert(index[i], nums[i]) ...
27.764706
50
0.614407
72
472
3.722222
0.444444
0.287313
0.123134
0.171642
0.208955
0
0
0
0
0
0
0.031429
0.258475
472
17
51
27.764706
0.734286
0.084746
0
0
1
0
0.018561
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.153846
0.076923
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f0758bea6c76ddc5b998da301f1695e653a314da
649
py
Python
moodle/core/calendar/access_information.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/core/calendar/access_information.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
moodle/core/calendar/access_information.py
Hardikris/moodlepy
8f5cb0cb4c2297e10f48396de681f6bb250f7751
[ "MIT" ]
null
null
null
from typing import List from moodle import MoodleWarning from moodle.attr import dataclass, field @dataclass class AccessInformation: """Permissions/access information Constructor arguments: params: canmanageentries (int): Whether the user can manage entries. params: canmanageownentries (int): Whethe...
30.904762
83
0.756549
71
649
6.915493
0.478873
0.0611
0.07943
0.10387
0.158859
0.158859
0
0
0
0
0
0
0.177196
649
20
84
32.45
0.919476
0.513097
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
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
0
1
0
1
0
1
0
0
3
b2c3a45dbc69e989c95d35f106f689229a9f442b
5,844
py
Python
arm_now/config.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
3
2018-08-02T21:12:17.000Z
2019-09-16T12:37:07.000Z
arm_now/config.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
null
null
null
arm_now/config.py
zachriggle/arm_now
62a6ea32407f97c6129d810af7da6a12162ba73f
[ "MIT" ]
2
2020-01-09T18:10:46.000Z
2022-01-18T19:06:52.000Z
class Config: DIR = "arm_now/" kernel = "kernel" dtb = "dtb" rootfs = "rootfs.ext2" arch = "arch" KERNEL = DIR + "kernel" DTB = DIR + "dtb" ROOTFS = DIR + "rootfs.ext2" ARCH = DIR + "arch" DOWNLOAD_CACHE_DIR = "/tmp/arm_now" qemu_options = { "aarch64": ["aarch64", "-M virt -cpu...
94.258065
257
0.65794
823
5,844
4.654921
0.226002
0.087706
0.084834
0.079353
0.637954
0.622031
0.613678
0.574002
0.565388
0.542417
0
0.049317
0.160335
5,844
61
258
95.803279
0.731404
0.19781
0
0
0
0.604651
0.786388
0.056335
0
0
0
0.016393
0
1
0
false
0
0
0
0.255814
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
1
1
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
3
b2df457afe0aac3e9fc9b34babf66603c02089b7
258
py
Python
ProfessionalPy/ex_decorators/ex_decorators.py
yepedraza/platziverse
a356d31245c009a57c17e5cfec0c6bd1f8a399f7
[ "MIT" ]
null
null
null
ProfessionalPy/ex_decorators/ex_decorators.py
yepedraza/platziverse
a356d31245c009a57c17e5cfec0c6bd1f8a399f7
[ "MIT" ]
null
null
null
ProfessionalPy/ex_decorators/ex_decorators.py
yepedraza/platziverse
a356d31245c009a57c17e5cfec0c6bd1f8a399f7
[ "MIT" ]
null
null
null
def Capital_letter(func): #This function receive another function def Wrapper(text): return func(text).upper() return Wrapper @Capital_letter def message(name): return f'{name}, you have received a message' print(message('Yery'))
21.5
65
0.693798
34
258
5.205882
0.617647
0.146893
0
0
0
0
0
0
0
0
0
0
0.20155
258
12
66
21.5
0.859223
0.147287
0
0
0
0
0.177273
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b2f24518d906a5731c53e6dc350283e34c32c4d9
195
py
Python
leetCode/algorithms/easy/can_make_arithmetic_progression_from_sequence.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/can_make_arithmetic_progression_from_sequence.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/can_make_arithmetic_progression_from_sequence.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from typing import List class Solution: def canMakeArithmeticProgression(self, arr: List[int]) -> bool: arr.sort() return len(set(a - b for a, b in zip(arr, arr[1:]))) == 1
24.375
67
0.620513
29
195
4.172414
0.758621
0.033058
0
0
0
0
0
0
0
0
0
0.013514
0.241026
195
7
68
27.857143
0.804054
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
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
0
0
0
0
1
0
0
3
651a54f0b6da3afac0519c55f3b604283e39ac58
3,330
py
Python
pymonad/Either.py
fnl/pymonad
1a7610e3201b3f6e7d5f58189d39a275e4828df5
[ "BSD-3-Clause" ]
38
2015-08-03T19:48:17.000Z
2021-01-29T07:57:18.000Z
pymonad/Either.py
fnl/pymonad
1a7610e3201b3f6e7d5f58189d39a275e4828df5
[ "BSD-3-Clause" ]
2
2018-06-26T17:34:31.000Z
2018-11-07T17:37:03.000Z
pymonad/Either.py
fnl/pymonad
1a7610e3201b3f6e7d5f58189d39a275e4828df5
[ "BSD-3-Clause" ]
7
2015-12-04T13:12:55.000Z
2021-01-29T07:57:19.000Z
# -------------------------------------------------------- # (c) Copyright 2014 by Jason DeLaat. # Licensed under BSD 3-clause licence. # -------------------------------------------------------- from pymonad.Monad import * class Either(Monad): """ Represents a calculation that may either fail or succeed. An altern...
29.469027
100
0.684384
444
3,330
4.981982
0.29955
0.037975
0.019892
0.018987
0.443942
0.398734
0.31736
0.289331
0.289331
0.289331
0
0.001816
0.173273
3,330
112
101
29.732143
0.801671
0.523724
0
0.382979
0
0
0.029452
0
0
0
0
0
0
1
0.361702
false
0
0.021277
0.106383
0.680851
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
653370ff12e863794c36d12a519f56754cb77dbd
267
py
Python
runserver.py
linatal/emnlp2017-relation-extraction
9a025e275817423064d54942dc019899f05d9d47
[ "Apache-2.0" ]
299
2017-09-07T15:05:54.000Z
2022-01-06T13:28:48.000Z
runserver.py
chzeze/emnlp2017-relation-extraction
e94b6cb705fe36714e5c3447c86d17314274ac7c
[ "Apache-2.0" ]
28
2017-10-10T07:42:39.000Z
2022-02-09T23:27:19.000Z
runserver.py
chzeze/emnlp2017-relation-extraction
e94b6cb705fe36714e5c3447c86d17314274ac7c
[ "Apache-2.0" ]
78
2017-08-25T13:54:47.000Z
2021-05-04T10:54:32.000Z
import sys from flask import Flask from flask_cors import CORS app = Flask(__name__) CORS(app) # sys.path.append("relation-extraction/") from relation_extraction.relextserver.server import relext app.register_blueprint(relext, url_prefix="/relation-extraction")
19.071429
65
0.805243
36
267
5.75
0.5
0.26087
0
0
0
0
0
0
0
0
0
0
0.101124
267
13
66
20.538462
0.8625
0.146067
0
0
0
0
0.088496
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0.142857
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
0
0
0
1
0
1
0
0
3
e8face2e9d633dd9e1afa80963e0aa263559a204
93
py
Python
puft/core/assembler/config_extension_enum.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
null
null
null
puft/core/assembler/config_extension_enum.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
1
2022-03-21T13:34:39.000Z
2022-03-29T10:23:48.000Z
puft/core/assembler/config_extension_enum.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
null
null
null
from enum import Enum class ConfigExtensionEnum(Enum): YAML = "yaml" JSON = "json"
13.285714
32
0.666667
11
93
5.636364
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.236559
93
6
33
15.5
0.873239
0
0
0
0
0
0.086022
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
33041a7921e0e8be3270a730aa2b22419143cc7f
13,957
py
Python
tests/test_ec2.py
graze/tropopause
c4bbed42ec38cdd65b8a99f1b1e65af77eba7989
[ "MIT" ]
6
2017-09-13T11:15:44.000Z
2020-08-23T20:07:52.000Z
tests/test_ec2.py
graze/tropopause
c4bbed42ec38cdd65b8a99f1b1e65af77eba7989
[ "MIT" ]
1
2017-09-15T10:45:39.000Z
2017-09-15T10:45:39.000Z
tests/test_ec2.py
graze/tropopause
c4bbed42ec38cdd65b8a99f1b1e65af77eba7989
[ "MIT" ]
null
null
null
import unittest from tropopause import Tags from tropopause.ec2 import InternetGatewayVPC from tropopause.ec2 import PublicSubnet, PrivateSubnet, SecureSubnet from tropopause.ec2 import SecurityGroupFromYaml from troposphere import Ref, Template from troposphere.ec2 import EIP, InternetGateway, NatGateway, Route, Route...
33.958637
79
0.608727
1,226
13,957
6.685155
0.091354
0.076745
0.065886
0.077843
0.789043
0.744754
0.72267
0.691801
0.657028
0.645803
0
0.00489
0.296697
13,957
410
80
34.041463
0.830073
0.002078
0
0.582888
0
0
0.078233
0.00819
0
0
0
0
0.131016
1
0.082888
false
0.002674
0.026738
0
0.131016
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
331236bf025179ad8fb05774d59ee14dd9d772b4
181
py
Python
tests/test_dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
1
2020-06-27T09:59:09.000Z
2020-06-27T09:59:09.000Z
tests/test_dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
tests/test_dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
from unwetter import dwd from .assets import xmls, alert_1 def test_parse_xml_alert_simple(): expected = alert_1.event assert dwd.parse_xml(xmls['alert_1']) == expected
18.1
53
0.745856
28
181
4.535714
0.571429
0.141732
0.15748
0
0
0
0
0
0
0
0
0.019868
0.165746
181
9
54
20.111111
0.821192
0
0
0
0
0
0.038674
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
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
0
0
0
1
0
0
0
0
3
33192e025399a1ea9d8c64fcb432cace18e7a070
619
py
Python
Codewars_Python/where_my_anagrams_at.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
Codewars_Python/where_my_anagrams_at.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
Codewars_Python/where_my_anagrams_at.py
nlantau/Codewars_2020_2021
055fbf8785ddd52b9f8e8c2b59294ead01852467
[ "MIT" ]
null
null
null
""" 'abba' & 'baab' == true 'abba' & 'bbaa' == true 'abba' & 'abbba' == false 'abba' & 'abca' == false Write function: anagrams('abba', ['aabb', 'abcd', 'bbaa', 'dada']) => ['aabb', 'bbaa'] anagrams('racer', ['crazer', 'carer', 'racar', 'caers', 'racer']) => ['carer', 'racer'] anagrams('laser', ['lazing', 'lazy'...
22.925926
87
0.576737
75
619
4.68
0.453333
0.045584
0.091168
0.11396
0.381766
0.381766
0.222222
0
0
0
0
0
0.148627
619
26
88
23.807692
0.666034
0.53958
0
0
0
0
0.184116
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
1
0
3
331c4cd089f8d094bdc316748ff041d5a8a28acb
670
py
Python
tests/test_grouping.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
2
2020-07-31T13:49:17.000Z
2020-09-16T14:47:23.000Z
tests/test_grouping.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
null
null
null
tests/test_grouping.py
fsadannn/expressive_regex
3bf113e8288a0f7d756f24cf882be8709630d4d3
[ "MIT" ]
null
null
null
from expressive_regex import ExpressiveRegex def test_setOfLiterals(): res=ExpressiveRegex()\ .setOfLiterals\ .char('-')\ .range(1,4)\ .anyOfChars('dfs')\ .end()\ .toRegexString() assert res=='[\\-1-4dfs]' def test_group(): res=ExpressiveRegex()\ .group\ .setOfLiterals\ ...
18.108108
44
0.541791
63
670
5.698413
0.333333
0.058496
0.183844
0.192201
0.615599
0.615599
0.615599
0.615599
0.389972
0.389972
0
0.023392
0.234328
670
36
45
18.611111
0.676413
0
0
0.71875
0
0
0.076119
0
0
0
0
0
0.09375
1
0.09375
false
0
0.03125
0
0.125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
33274feef430c98a13d9501d9457e9141c4ac1bc
92
py
Python
tutorial.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
2
2020-02-07T16:26:08.000Z
2020-06-09T22:18:39.000Z
tutorial.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
null
null
null
tutorial.py
tdaylan/MCOV
2bb806ea084532a7aecc0465769baecb4148101d
[ "MIT" ]
null
null
null
import mergen objtmerg = mergen.mergen() objtmerg.folder_initiate() objtmerg.intensities
11.5
26
0.804348
10
92
7.3
0.6
0.383562
0
0
0
0
0
0
0
0
0
0
0.108696
92
7
27
13.142857
0.890244
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3351d34b44cd4740bb623c4e2c2bdb810268648e
84
py
Python
config.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
config.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
config.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
import os SECRET_KEY = os.urandom(0x22) HOST = "127.0.0.1" PORT = 12345
16.8
29
0.595238
14
84
3.5
0.857143
0
0
0
0
0
0
0
0
0
0
0.229508
0.27381
84
4
30
21
0.57377
0
0
0
0
0
0.107143
0
0
0
0.047619
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3364459c6ef278c262e791055427e3877b20c0c2
643
py
Python
vavs_project/addata/collation.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
1
2016-03-17T10:00:28.000Z
2016-03-17T10:00:28.000Z
vavs_project/addata/collation.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
null
null
null
vavs_project/addata/collation.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
null
null
null
# addata.collation # ADDATA from .models import ( AdRecord, FBAd, FBSponsored ) def collate_ads(user, start_date, end_date): return None def collate_fbads(user, start_date, end_date): return None def collate_fbsps(user, start_date, end_date): return None def collate_addata(user, sta...
22.172414
53
0.654743
86
643
4.616279
0.232558
0.15869
0.221662
0.282116
0.654912
0.604534
0.604534
0.418136
0.302267
0
0
0
0.255054
643
28
54
22.964286
0.82881
0.03577
0
0.142857
0
0
0.02107
0
0
0
0
0
0
1
0.190476
false
0
0.047619
0.142857
0.428571
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
0
0
0
3
681c8093b0a590b918f734debcd243347b8d7ba9
16,703
py
Python
sdconst.py
dishmaev/SublimeDelve
ecbd200b1048207877fe7822eff7800983cccdd5
[ "MIT" ]
20
2018-04-16T17:47:32.000Z
2022-02-26T21:06:41.000Z
sdconst.py
dishmaev/SublimeDelve
ecbd200b1048207877fe7822eff7800983cccdd5
[ "MIT" ]
7
2018-04-16T14:46:37.000Z
2020-03-09T14:39:01.000Z
sdconst.py
dishmaev/SublimeDelve
ecbd200b1048207877fe7822eff7800983cccdd5
[ "MIT" ]
2
2018-04-16T17:57:37.000Z
2021-06-04T15:23:41.000Z
import sublime import os class DlvConst(object): def __init__(self, window): self.__window = window self.__settings_file_name = "GoDebug.sublime-settings" self.__bkpt_settings_file_name = "GoDebug.breakpoint-settings" self.__watch_settings_file_name = "GoDebug.watch-settings" ...
34.368313
116
0.654793
2,079
16,703
4.782588
0.087061
0.080459
0.071809
0.06497
0.594991
0.548627
0.476013
0.414764
0.34386
0.327567
0
0.004126
0.259953
16,703
485
117
34.439175
0.800259
0.10992
0
0.201754
0
0
0.052109
0.004927
0
0
0
0
0
1
0.266082
false
0
0.005848
0.236842
0.532164
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6840338fd04a3a739daabf2caca567e43bfc72bc
325
py
Python
Desafios/MODULO 2/Desafio 60.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 2/Desafio 60.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
Desafios/MODULO 2/Desafio 60.py
deneyjunior/python-mundos-cev
4bc82bf0630f65cf66e5442ae57b72fd4b0207fc
[ "MIT" ]
null
null
null
print('='*10, 'Desafio 60', '='*10) n = int((input('Digite um número para calcular o fatorial: '))) c = n f = 1 while c > 0: print('{}'.format(c), end=' ') if c > 1: print(' x ',end=' ') else: print(' = ', end=' ') f *= c c -= 1 print('{}\n'.format(f)) print('='*10, 'Desafio 60', '='...
21.666667
63
0.455385
48
325
3.083333
0.5
0.094595
0.189189
0.216216
0.243243
0
0
0
0
0
0
0.067511
0.270769
325
14
64
23.214286
0.556962
0
0
0.142857
0
0
0.252308
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
685126d3b0f46754428b1cbc60fddbbfe155b24c
1,166
py
Python
dimreducers_crusher/reducers/ForcePivot.py
V-Marco/dimreducers-crusher
3632ed9f51d26e1732199c11750eefd54cfda45d
[ "Apache-2.0" ]
1
2022-03-09T12:35:32.000Z
2022-03-09T12:35:32.000Z
dimreducers_crusher/reducers/ForcePivot.py
V-Marco/dimreducers-crusher
3632ed9f51d26e1732199c11750eefd54cfda45d
[ "Apache-2.0" ]
12
2021-04-01T14:04:57.000Z
2021-05-24T20:27:00.000Z
dimreducers_crusher/reducers/ForcePivot.py
V-Marco/dimreducers-crusher
3632ed9f51d26e1732199c11750eefd54cfda45d
[ "Apache-2.0" ]
5
2021-04-06T11:31:59.000Z
2021-05-05T08:23:30.000Z
from .AbstractReducer import AbstractReducer import numpy as np import forcelayout as fl import warnings class ForcePivot(AbstractReducer): def __init__(self, d: int = 2, random_state: int = 0, **kwargs): super().__init__(d, random_state) warnings.warn("Setting random seed does not affect ForcePiv...
30.684211
85
0.674099
142
1,166
5.394366
0.401408
0.058747
0.027415
0.05483
0.289817
0.263708
0.263708
0.263708
0.164491
0.164491
0
0.004435
0.226415
1,166
37
86
31.513514
0.844789
0
0
0.285714
0
0
0.107204
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.107143
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
685e2b26e0c4f29786d47e50c937a76704983c36
510
py
Python
pyleri/exceptions.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
106
2016-02-24T12:17:48.000Z
2021-11-04T18:07:32.000Z
pyleri/exceptions.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
15
2016-10-24T10:32:31.000Z
2021-11-26T14:21:46.000Z
pyleri/exceptions.py
robbm1/pyleri
4af16774ceb05454e5e4bdf885b6ae6404e8b884
[ "MIT" ]
12
2017-02-27T12:58:50.000Z
2020-02-14T14:58:30.000Z
'''Exceptions. :copyright: 2021, Jeroen van der Heijden <jeroen@cesbit.com> ''' class CompileError(Exception): pass class KeywordError(CompileError): pass class ReKeywordsChangedError(CompileError): pass class NameAssignedError(CompileError): pass class MissingRefError(CompileError): pass...
12.439024
60
0.741176
46
510
8.217391
0.456522
0.190476
0.333333
0
0
0
0
0
0
0
0
0.009547
0.178431
510
40
61
12.75
0.892601
0.143137
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
3
686180c969a55ad3435aa7f0c071f47aa86f0f41
176
py
Python
examples/objc_rockstar.py
AriadneZHU/rockstar
75b78f917ddea82a668568a9701af873e120cefa
[ "MIT" ]
null
null
null
examples/objc_rockstar.py
AriadneZHU/rockstar
75b78f917ddea82a668568a9701af873e120cefa
[ "MIT" ]
null
null
null
examples/objc_rockstar.py
AriadneZHU/rockstar
75b78f917ddea82a668568a9701af873e120cefa
[ "MIT" ]
1
2018-09-11T23:55:54.000Z
2018-09-11T23:55:54.000Z
from rockstar import RockStar objc_code = "NSLog(@"Hello world")" rock_it_bro = RockStar(days=400, file_name='helloWorld.m', code= objc_code) rock_it_bro.make_me_a_rockstar()
29.333333
75
0.784091
29
176
4.413793
0.689655
0.125
0.140625
0
0
0
0
0
0
0
0
0.01875
0.090909
176
5
76
35.2
0.78125
0
0
0
0
0
0.113636
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
686ac1e4cfa02eb01f26958f4b885269ba39293d
120
py
Python
examples/client.py
tef/glyph-rpc
cd8f605fef8c7d03255d825a9dbfbcde0e587e06
[ "MIT" ]
3
2015-11-05T06:59:06.000Z
2019-07-27T03:26:35.000Z
examples/client.py
tef/glyph-rpc
cd8f605fef8c7d03255d825a9dbfbcde0e587e06
[ "MIT" ]
null
null
null
examples/client.py
tef/glyph-rpc
cd8f605fef8c7d03255d825a9dbfbcde0e587e06
[ "MIT" ]
null
null
null
import glyph import sys s = glyph.get(sys.argv[1]) print s q= s.Queue(u'butt') print q q.push(u'butts') print q.pop()
12
26
0.675
26
120
3.115385
0.576923
0.148148
0
0
0
0
0
0
0
0
0
0.009804
0.15
120
9
27
13.333333
0.784314
0
0
0
0
0
0.075
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.375
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
6879a3f70316ebbfc194b5975ced40f887e148e0
162
py
Python
Chapter 15/ch15_9.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 15/ch15_9.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 15/ch15_9.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
import numpy as np arr1 = np.full (2, True) print("Full 1D Array") print(arr1) print(arr1.ndim) #[True True] # arr1.ndim prints dimensions of array i.e. 1
20.25
45
0.679012
29
162
3.793103
0.62069
0.163636
0
0
0
0
0
0
0
0
0
0.053435
0.191358
162
8
45
20.25
0.78626
0.339506
0
0
0
0
0.131313
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.6
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
688a4013a59dfeec7e02cb87a06a91954f64c0b0
956
py
Python
nexedge/compressor.py
evocount/nexedge
77811353af3bd23a445855d3ea116e6e644f000a
[ "MIT" ]
1
2021-02-10T00:10:22.000Z
2021-02-10T00:10:22.000Z
nexedge/compressor.py
evocount/nexedge
77811353af3bd23a445855d3ea116e6e644f000a
[ "MIT" ]
1
2021-02-10T00:18:07.000Z
2021-02-10T00:18:07.000Z
nexedge/compressor.py
evocount/nexedge
77811353af3bd23a445855d3ea116e6e644f000a
[ "MIT" ]
1
2020-03-10T02:12:17.000Z
2020-03-10T02:12:17.000Z
import logging import zlib # setup logging logger = logging.getLogger(__name__) class Compressor: """ Abstract construct for a data compressor. Like with Packer compress and decompress have to be implemented. """ def __init__(self): """ nothing to do here """ log...
23.317073
78
0.646444
116
956
5.258621
0.482759
0.059016
0.04918
0.062295
0.309836
0.2
0.108197
0.108197
0.108197
0
0
0.004249
0.261506
956
40
79
23.9
0.859773
0.183054
0
0.111111
0
0
0.139696
0
0
0
0
0
0.111111
1
0.277778
false
0.055556
0.111111
0
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
689c58ff0020ed044e37970b88de8ab2c45a0d86
442
py
Python
packages/django-backend/frontend/handlers/base.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
1
2021-08-02T18:32:08.000Z
2021-08-02T18:32:08.000Z
packages/django-backend/frontend/handlers/base.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
5
2021-03-09T17:02:32.000Z
2022-02-26T17:28:38.000Z
packages/django-backend/frontend/handlers/base.py
ZechyW/cs-toolkit
802a28b3a4ce33754b8a986f6d2eb616aad017d4
[ "MIT" ]
1
2021-08-02T18:32:09.000Z
2021-08-02T18:32:09.000Z
class Handler: """ Base handler for client connections. """ def disconnect(self, code): """ The Consumer's connection was closed. :param code: :return: """ pass def handle(self, content): """ Called when the handler should process som...
20.090909
72
0.515837
44
442
5.181818
0.727273
0.087719
0
0
0
0
0
0
0
0
0
0
0.391403
442
21
73
21.047619
0.847584
0.477376
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0.4
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
68a41618a2d6dc1648823589080b67e1cf31a142
222
py
Python
syntax_highlighting/nv/pygments/setup.py
mr-infty/catala
8ab73627935583495603933f68d43ac6c3f10e0e
[ "Apache-2.0" ]
1
2021-05-09T22:36:00.000Z
2021-05-09T22:36:00.000Z
syntax_highlighting/nv/pygments/setup.py
mr-infty/catala
8ab73627935583495603933f68d43ac6c3f10e0e
[ "Apache-2.0" ]
null
null
null
syntax_highlighting/nv/pygments/setup.py
mr-infty/catala
8ab73627935583495603933f68d43ac6c3f10e0e
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages setup( name='catala_nv_lexer', packages=find_packages(), entry_points=""" [pygments.lexers] catala_nv_lexer = catala_nv_lexer.lexer:CatalaNvLexer """, )
20.181818
57
0.707207
26
222
5.692308
0.576923
0.162162
0.263514
0
0
0
0
0
0
0
0
0
0.18018
222
10
58
22.2
0.813187
0
0
0
0
0
0.45045
0.157658
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
68a5bc408896fdf72797c29bf5c7e35188634267
290
py
Python
pkg/executor/azcli/command/_azcli_cmd_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/executor/azcli/command/_azcli_cmd_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/executor/azcli/command/_azcli_cmd_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
from pkg.command.azcli_cmd import AzCliCommand from pkg.executor._executor import Executor class AzCliCommandExecutor(Executor): def __init__(self, cmd: AzCliCommand): self.az_cli_command = cmd def execute(self): return self.az_cli_command.execute_command()
24.166667
52
0.744828
36
290
5.694444
0.472222
0.068293
0.087805
0.156098
0
0
0
0
0
0
0
0
0.182759
290
12
53
24.166667
0.864979
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
d7a21549401d4dd9da5247ceeb47ac40df3b61ef
276
py
Python
sandbox/test/htdocs/test.example.org/hello.py
NeedfulThings/mod_h2
9dcc2149a1b05284bd82085715fa2b22e3a23fd3
[ "Apache-2.0" ]
null
null
null
sandbox/test/htdocs/test.example.org/hello.py
NeedfulThings/mod_h2
9dcc2149a1b05284bd82085715fa2b22e3a23fd3
[ "Apache-2.0" ]
null
null
null
sandbox/test/htdocs/test.example.org/hello.py
NeedfulThings/mod_h2
9dcc2149a1b05284bd82085715fa2b22e3a23fd3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os print "Content-Type: text/html" print print """\ <html> <body> <h2>Hello World!</h2>""" print "PROTOCOL=" + os.getenv('SERVER_PROTOCOL', '') + "<br/>" print "SSL_PROTOCOL=" + os.getenv('SSL_PROTOCOL', '') + "<br/>" print """</body> </html>"""
19.714286
63
0.612319
37
276
4.486486
0.540541
0.120482
0.192771
0
0
0
0
0
0
0
0
0.008197
0.115942
276
14
64
19.714286
0.672131
0.072464
0
0
0
0
0.523438
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.545455
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
3
d7bd7d32ce33bb47efb1cb6234285072bca21e37
308
py
Python
backend/app/app/schemas/events.py
dmitritruf/distiller-django-react
ec4c3837194306e725d8a2437ace10a899a254d2
[ "BSD-3-Clause" ]
2
2021-11-04T16:27:33.000Z
2021-11-04T20:09:19.000Z
backend/app/app/schemas/events.py
OpenChemistry/distiller
67da87672654555f9821590f42b108d70a55c1a6
[ "BSD-3-Clause" ]
70
2021-11-04T16:34:52.000Z
2022-03-30T02:52:17.000Z
backend/app/app/schemas/events.py
dmitritruf/distiller-django-react
ec4c3837194306e725d8a2437ace10a899a254d2
[ "BSD-3-Clause" ]
null
null
null
from pydantic import BaseModel from app.schemas.job import Job from app.schemas.scan import Scan # Has to go in separate module rather the job.py because of circular import. class SubmitJobEvent(BaseModel): job: Job scan: Scan class RemoveScanFilesEvent(BaseModel): scan: Scan host: str
19.25
76
0.753247
44
308
5.272727
0.568182
0.060345
0.12069
0
0
0
0
0
0
0
0
0
0.191558
308
15
77
20.533333
0.931727
0.24026
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
d7ee601acb8beee12f9a04501083f63e74266b2c
467
py
Python
S1/TP5/ex4.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex4.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex4.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
nombres = [1, -1, 2, -2, 3, -3, 0] def tri1(): tries = sorted(nombres) print(tries) print(nombres) def tri2(): tries = nombres.sort() print(tries) print(nombres) # sorted(liste) renvoie une copie de la liste triée # liste.sort() trie la liste en place et ne renvoie rien def triReverse():...
16.678571
56
0.638116
66
467
4.515152
0.515152
0.100671
0.151007
0.221477
0
0
0
0
0
0
0
0.02507
0.231263
467
27
57
17.296296
0.805014
0.32334
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0
0
0.214286
0.428571
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
3
d7f0441e61c3947d232e4da847257159b5bb37b1
367
py
Python
tests/min of sum int.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
34
2020-11-25T15:01:19.000Z
2022-03-23T17:10:33.000Z
tests/min of sum int.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
null
null
null
tests/min of sum int.py
mudesire/geneticalgorithm2
165d87b182a0b56e035f7a37a17a16950de20ddd
[ "MIT" ]
7
2020-11-30T16:50:16.000Z
2022-02-22T16:03:45.000Z
# -*- coding: utf-8 -*- """ Created on Thu Nov 19 16:18:37 2020 @author: qtckp """ import sys sys.path.append('..') import numpy as np from geneticalgorithm2 import geneticalgorithm2 as ga def f(X): return np.sum(X) varbound = np.array([[0,10]]*3) model = ga(function=f, dimension=3, variable_type='in...
15.956522
86
0.6703
56
367
4.357143
0.75
0
0
0
0
0
0
0
0
0
0
0.065789
0.171662
367
22
87
16.681818
0.736842
0.201635
0
0
0
0
0.017544
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
d7f6123e682b39ec89be274d9d3f98bc4b615066
879
py
Python
python/sbp/client/loggers/null_logger.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
65
2015-03-25T10:28:10.000Z
2022-02-24T12:36:49.000Z
python/sbp/client/loggers/null_logger.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
654
2015-03-24T17:43:55.000Z
2022-03-31T21:42:49.000Z
python/sbp/client/loggers/null_logger.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
110
2015-03-24T17:38:35.000Z
2022-03-21T02:05:19.000Z
# Copyright (C) 2015-2021 Swift Navigation Inc. # Contact: https://support.swiftnav.com # # This source is subject to the license found in the file 'LICENSE' which must # be be distributed together with this source. All other rights reserved. # # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIN...
22.538462
78
0.662116
118
879
4.830508
0.669492
0.061404
0.038596
0.045614
0.05614
0
0
0
0
0
0
0.012195
0.253697
879
38
79
23.131579
0.856707
0.577929
0
0.4
0
0
0
0
0
0
0
0
0
1
0.466667
false
0.4
0
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
cc121d0343458f9635fb6495cb79968a24f6e9a1
1,971
py
Python
tests/test-root/dummy.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
45
2019-04-03T01:18:35.000Z
2022-02-14T23:28:34.000Z
tests/test-root/dummy.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
65
2019-03-29T22:51:29.000Z
2022-03-30T09:05:16.000Z
tests/test-root/dummy.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
17
2019-03-29T22:30:19.000Z
2022-03-23T12:00:48.000Z
# -*- coding: utf-8 -*- """ Module for testing the autodocsumm Just a dummy module with some class definitions """ #: to test if the data is included test_data = None def test_func(): """Test if function is contained in autosummary""" pass class Class_CallTest(object): """A class defining a __call__ ...
21.193548
75
0.635211
241
1,971
5.033195
0.381743
0.019786
0.026381
0.018137
0
0
0
0
0
0
0
0.001394
0.271943
1,971
92
76
21.423913
0.843902
0.460173
0
0.185185
0
0
0.087336
0
0
0
0
0.021739
0
1
0.296296
false
0.185185
0
0.037037
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
0
0
0
3