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
844ee290c97366006e042d8ac5ba0899c883ac56
1,903
py
Python
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-03-17T02:15:10.000Z
2021-06-29T13:34:40.000Z
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-05-23T05:47:30.000Z
2022-01-13T02:15:35.000Z
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
null
null
null
from typing import Callable import kge from kge.core import events from kge.core.eventlib import EventMixin from kge.core.events import Event class BaseComponent(EventMixin): """ A component represents an element that can be added to an entity to add a functionality """ def __fire_...
33.982143
104
0.603783
218
1,903
5.105505
0.316514
0.080863
0.02965
0.019766
0.104223
0
0
0
0
0
0
0.001535
0.315292
1,903
55
105
34.6
0.852648
0.132948
0
0.129032
0
0
0.104005
0.013566
0
0
0
0
0
1
0.129032
false
0
0.16129
0.032258
0.387097
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
0
0
0
0
1
0
844f9857dd2ca03aee9ac58b1348e52e4bc8e0ee
766
py
Python
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def advantageCount(self, A: List[int], B: List[int]) -> List[int]: n=len(A) A.sort() B_sorted_idxs = sorted(list(range(0,n)), key = lambda x: B[x]) permuted_A = [-1]*n j = 0 #for A -index remainingA = [] for idx in B_sorted_idxs: w...
27.357143
70
0.399478
98
766
3.030612
0.367347
0.040404
0.074074
0
0
0
0
0
0
0
0
0.022556
0.479112
766
27
71
28.37037
0.721805
0.015666
0
0.24
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.12
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
0
0
0
0
1
0
84508cc0743106693c25a4c91852516182d10958
11,162
py
Python
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
1
2020-07-29T09:18:00.000Z
2020-07-29T09:18:00.000Z
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
null
null
null
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
3
2020-07-27T03:12:19.000Z
2021-11-02T20:03:00.000Z
from pathlib import Path import numpy as np import pickle as pk from itertools import chain, product from collections import OrderedDict from structure import Struct MONKEYS = ['M', 'N'] REGIONS = ['OFC', 'ACC'] TASKVARS = ['value', 'type'] SUBSPACES = [True, False] EVT_WINS = OrderedDict((('cues ON', (-500, 1500)), ...
43.601563
114
0.614854
1,460
11,162
4.620548
0.222603
0.018678
0.009784
0.011118
0.231396
0.169878
0.126594
0.101097
0.091906
0.076786
0
0.015343
0.26429
11,162
255
115
43.772549
0.806137
0.308726
0
0.181818
0
0
0.077734
0.025956
0
0
0
0
0
1
0.034965
false
0
0.041958
0
0.118881
0.013986
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
0
0
0
0
1
0
8450d07e5cec286e40f858637377c3e87f1ab9e5
634
py
Python
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
import setuptools with open('README.rst', 'r') as f: readme = f.read() with open('version', 'r') as f: version = f.read() if __name__ == '__main__': setuptools.setup( name='ohmlr', version=version, description='One-hot multinomial logisitc regression', long_description=re...
27.565217
65
0.615142
70
634
5.414286
0.685714
0.042216
0.021108
0
0
0
0
0
0
0
0
0
0.230284
634
22
66
28.818182
0.776639
0
0
0
0
0
0.347003
0.036278
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
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
0
0
0
0
1
0
8450ee0e08874b8a26468c905f5abfbc7260c448
1,301
py
Python
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-21T22:00:24.000Z
2022-01-21T22:00:24.000Z
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
40
2022-01-18T21:20:54.000Z
2022-03-31T20:56:44.000Z
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-28T02:46:38.000Z
2022-01-28T02:46:38.000Z
from commands2 import CommandBase, ParallelCommandGroup from subsystems.climbers.leftclimbersubsystem import LeftClimber from subsystems.climbers.rightclimbersubsystem import RightClimber class HoldLeftClimberPosition(CommandBase): def __init__(self, climber: LeftClimber) -> None: CommandBase.__init__(sel...
35.162162
77
0.730976
109
1,301
8.284404
0.256881
0.121816
0.036545
0.066445
0.336656
0.272425
0.272425
0.272425
0.272425
0.272425
0
0.000941
0.182936
1,301
36
78
36.138889
0.848542
0
0
0.392857
0
0
0
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0
0.392857
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
0
0
0
0
1
0
84513ebf1e835ed2f032b1060dd720580d3e05a2
668
py
Python
practicer_flask/app.py
DominikPott/practicer-flask
c8e523095bdd5912dadb7357d16a4e76229a04da
[ "MIT" ]
null
null
null
practicer_flask/app.py
DominikPott/practicer-flask
c8e523095bdd5912dadb7357d16a4e76229a04da
[ "MIT" ]
null
null
null
practicer_flask/app.py
DominikPott/practicer-flask
c8e523095bdd5912dadb7357d16a4e76229a04da
[ "MIT" ]
null
null
null
import os from flask import Flask import practicer_flask.auth import practicer_flask.exercises import practicer_flask.dashboard import practicer_flask.topic import practicer_flask.model_viewer def create_app(test_config=None): app = Flask(__name__) app.config.from_mapping(SECRET_KEY=os.environ.get("SECRET_...
23.857143
77
0.784431
92
668
5.347826
0.369565
0.256098
0.203252
0.235772
0.288618
0.219512
0
0
0
0
0
0
0.118263
668
27
78
24.740741
0.835314
0
0
0
0
0
0.038922
0
0
0
0
0
0
1
0.055556
false
0
0.388889
0
0.5
0.222222
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
84533ec2f7f2ad9597755a4499563c795ed9f246
737
py
Python
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
1
2020-10-01T10:11:21.000Z
2020-10-01T10:11:21.000Z
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
from models.models import Topic, TopicInTopic import json def visual(vis, params): model = vis.model group_by = params[1] # year,month,week,day topics = Topic.objects.filter( model=model, layer=model.layers_count).order_by("spectrum_index") topics = [topic.title for topic in topics] ...
32.043478
76
0.639077
103
737
4.456311
0.446602
0.045752
0
0
0
0
0
0
0
0
0
0.001733
0.217096
737
22
77
33.5
0.793761
0.02578
0
0
0
0
0.051676
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
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
0
0
0
0
1
0
84580bc22605d3bb58c5f232f6e1f847342e88fa
3,596
py
Python
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from .base import Base, db class SubmissionsManifest(Base): __tablename__ = "manifest" manifest_id = db.Column(db.Integer, primary_key=True) samples = db.relationship('SubmissionsSample', back_populates="manifest", ...
44.95
88
0.614294
436
3,596
4.827982
0.270642
0.026603
0.033254
0.051306
0.451781
0.376247
0.278385
0.222328
0.222328
0.222328
0
0.001587
0.298943
3,596
79
89
45.518987
0.833399
0.0901
0
0.213115
0
0
0.071735
0.006438
0
0
0
0
0
1
0.065574
false
0
0.016393
0.04918
0.393443
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
0
0
0
0
1
0
8458ddef5330c4ed60d249ea5883464e063cf5ba
6,411
py
Python
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
36.220339
86
0.608641
738
6,411
5.138211
0.245257
0.046414
0.037711
0.035865
0.501319
0.456487
0.42827
0.351266
0.341772
0.318829
0
0.010335
0.26049
6,411
176
87
36.426136
0.789496
0.128685
0
0.388889
0
0
0.162033
0.027067
0
0
0
0
0.230159
1
0.047619
false
0
0.031746
0
0.111111
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
0
0
0
0
1
0
8459ea4275ad26f2fdfb1430948999a41ff39caf
408
py
Python
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
null
null
null
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
1
2020-08-19T13:42:52.000Z
2020-08-19T14:32:31.000Z
dailypy/__init__.py
HuangJiaLian/dailypy
b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3
[ "CC0-1.0" ]
null
null
null
import numpy as np import os # Data manipulate class dm: def __init__(self): pass def saveNp(self, a, name, path='.'): np.save(os.path.join(path,name), a) def saveTxt(self, a, name, path='.'): np.savetxt(os.path.join(path,name)+'.txt', a) def saveArrows(self, a1, a2, n...
20.4
53
0.568627
61
408
3.737705
0.47541
0.04386
0.078947
0.114035
0.289474
0
0
0
0
0
0
0.0299
0.262255
408
19
54
21.473684
0.727575
0.036765
0
0
0
0
0.025641
0
0
0
0
0
0
1
0.333333
false
0.083333
0.166667
0
0.583333
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
845a911380b7475214d4489c0d02b5872a85aa00
310
py
Python
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def numSubarrayProductLessThanK(self, nums: List[int], k: int) -> int: if k <= 1: return 0 ans = 0 prod = 1 j = 0 for i, num in enumerate(nums): prod *= num while prod >= k: prod /= nums[j] j += 1 ans += i - j + 1 return ans
17.222222
72
0.490323
44
310
3.454545
0.5
0.092105
0
0
0
0
0
0
0
0
0
0.037037
0.390323
310
17
73
18.235294
0.767196
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.285714
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
0
0
0
0
1
0
845c29a7df8a071ea4d00366b934a8a0a5899a8f
2,832
py
Python
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
3
2021-04-14T02:59:09.000Z
2021-06-08T00:17:27.000Z
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
81
2020-12-08T00:11:52.000Z
2021-08-09T18:13:32.000Z
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
5
2021-01-12T04:50:26.000Z
2021-06-04T02:00:03.000Z
# Generated by Django 3.0.10 on 2021-02-15 15:09 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20210209_0849'), ('session', '0001_initial'), ] operations = [ migr...
37.76
153
0.598517
259
2,832
6.374517
0.316602
0.049061
0.123561
0.138098
0.466384
0.430042
0.20533
0.20533
0.20533
0.20533
0
0.018146
0.280014
2,832
74
154
38.27027
0.791564
0.016243
0
0.441176
1
0
0.192888
0.079382
0
0
0
0
0
1
0
false
0
0.044118
0
0.088235
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
0
0
0
0
0
0
1
845d03992ff2924ffdc957b51de3c6b486a7c0ea
880
py
Python
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
3
2020-05-15T05:40:43.000Z
2021-11-09T06:19:41.000Z
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
26
2020-05-20T13:03:02.000Z
2021-09-23T19:36:39.000Z
src/las_util/serializers.py
dcslagel/las-util-django
cea8437813969b3b22182de6b9553b9e6694c548
[ "BSD-3-Clause" ]
1
2021-11-09T01:40:05.000Z
2021-11-09T01:40:05.000Z
""" File-Name: [app]/serializers.py File-Desc: Rest API serializers for las_util App-Name: las_util Project-Name: Las-Util-Django Copyright: Copyright (c) 2019, DC Slagel License-Identifier: BSD-3-Clause """ from rest_framework import serializers from las_util.models import SectionInfo class DocSerializer(serializers....
29.333333
55
0.7125
101
880
6.118812
0.485149
0.045307
0.165049
0.174757
0.377023
0.313916
0.313916
0.313916
0.313916
0.313916
0
0.007003
0.188636
880
29
56
30.344828
0.858543
0.581818
0
0.4
0
0
0.043478
0
0
0
0
0.034483
0
1
0
false
0
0.2
0
0.6
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
1
0
0
0
0
0
0
0
1
0
0
3
845d9d3e1de64db798d6f4d7e46d76bf4c2959c6
3,965
py
Python
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
8
2020-02-19T21:17:04.000Z
2022-01-04T03:52:56.000Z
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
1
2021-09-20T02:13:41.000Z
2021-09-21T07:01:14.000Z
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
4
2021-03-11T17:11:40.000Z
2021-11-10T01:20:33.000Z
#!/usr/bin/env python # Display a runtext with double-buffering. from samplebase import SampleBase from rgbmatrix import graphics import time import requests import transitfeed import datetime import arrow import schedule today = datetime.date.today() starttime = time.time() schedule = transitfeed.Schedule() url = "ht...
37.056075
121
0.640858
499
3,965
5.046092
0.296593
0.0278
0.078634
0.082208
0.262907
0.205719
0.155679
0
0
0
0
0.055304
0.220177
3,965
106
122
37.40566
0.759056
0.034805
0
0.023256
0
0
0.046335
0.005759
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.186047
0.046512
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
0
0
0
0
1
0
8460d12d7847a84d2047777b7d49fa013dbd6421
92
py
Python
back/apps/base_user/apps.py
pylvin/nuxt-drf-template
e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7
[ "MIT" ]
2
2021-11-16T03:47:06.000Z
2021-12-21T20:19:30.000Z
back/apps/base_user/apps.py
pylvin/nuxt-drf-template
e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7
[ "MIT" ]
null
null
null
back/apps/base_user/apps.py
pylvin/nuxt-drf-template
e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7
[ "MIT" ]
2
2021-12-21T20:19:39.000Z
2022-01-03T11:27:04.000Z
from django.apps import AppConfig class BaseUserConfig(AppConfig): name = 'base_user'
15.333333
33
0.76087
11
92
6.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
34
18.4
0.896104
0
0
0
0
0
0.097826
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8462591fa4b3c8c3275d239bf45765f52bee1b94
1,188
py
Python
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
from random import sample from tile import Tile from utils import neighbours class BoardGenerator: def __init__(self, size, numMines): self.numMines = numMines self.size = size self.board = [] self.generate_board() def generate_board(self): # Generate a board for Mines...
38.322581
115
0.616162
178
1,188
4.011236
0.297753
0.123249
0.084034
0.058824
0.044818
0
0
0
0
0
0
0.008255
0.286195
1,188
30
116
39.6
0.833726
0.234848
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8463673ccc7d5d8251d46b1bed4eb08caa70dd68
1,054
py
Python
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class BattleRequest: __slots__ = ('id', 'initiator_id', 'matchmaker_type', 'created_at', 'updated_at') def __init__(self, id, initiator_id, matchmaker_type, created_at, updated_at): self.id = id self.initiator_id = initiator_id self.matchmake...
31.939394
85
0.66129
126
1,054
5.095238
0.214286
0.218069
0.124611
0.116822
0.507788
0.383178
0.383178
0.140187
0.140187
0
0
0
0.233397
1,054
32
86
32.9375
0.794554
0
0
0.26087
0
0
0.133903
0
0
0
0
0
0
1
0.130435
false
0
0.086957
0.043478
0.434783
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8463c9fd49aa8b29fdde20c5d6a8fdfd2fb75f46
300
py
Python
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
src/gencoef/test.py
bwasti/sleef
4d260ae7f5d0e76a3c5424149deb838373e1894b
[ "BSL-1.0" ]
null
null
null
import numpy as np import math p = np.poly1d([ +0.1429511242e-53, +0.1561712123e-44, -0.2259472298e-35, -0.2669710222e-26, +0.9784247973e-18, +0.1655572013e-8, +0.3991098106e+0, ]) def sigmoid(x): return 1 / (1 + math.exp(-x)) for i in range(1000): k = float(i) / 100 print(sigmoid(k), p(k))
15.789474
31
0.656667
53
300
3.716981
0.679245
0
0
0
0
0
0
0
0
0
0
0.386719
0.146667
300
18
32
16.666667
0.382813
0
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.125
0.0625
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
846536aeea05536d64f4f59f9d2196f85d857b4d
19,035
py
Python
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
import psycopg2 import psycopg2.extras import discord from models.BotMention import BotMention from models.UpdatedMessage import UpdatedMessage from forever.Steam import Steam_API, Dota_Match, Dota_Match_Player from forever.Utilities import run_in_executor, log from forever.Warframe import CetusMessage, FissureM...
38.222892
180
0.640294
2,411
19,035
4.85027
0.099959
0.056439
0.03412
0.040705
0.445442
0.326065
0.242774
0.211048
0.184454
0.176586
0
0.002015
0.1917
19,035
498
181
38.222892
0.758027
0.016706
0
0.212371
0
0.004124
0.240514
0.032288
0
0
0
0
0
1
0.030928
false
0.010309
0.024742
0.008247
0.074227
0.002062
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
0
0
0
0
1
0
8465f309612202475ac3cb61d22a9dcf1509182e
822
py
Python
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
1
2019-02-24T17:41:45.000Z
2019-02-24T17:41:45.000Z
import keras from keras.layers import Dense, Activation, Conv2D, MaxPool2D, Reshape model = Sequential() model.add(Reshape((3, 32, 32), input_shape=(3*32*32,) )) model.add(Conv2D(filters=32, kernel_size=(3,3), padding='same', activation="relu", data_format='channels_first')) model.add(MaxPool2D()) model.add(Conv2D(filt...
48.352941
113
0.723844
118
822
4.923729
0.483051
0.110155
0.051635
0.072289
0.292599
0.292599
0.292599
0.292599
0.292599
0.292599
0
0.053691
0.093674
822
17
114
48.352941
0.726175
0
0
0.117647
0
0
0.130012
0.029162
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.058824
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
0
0
0
0
1
0
8465fe705e2203a309cb2f80aab7f362306bc341
1,111
py
Python
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
# Dicionarios pessoas = {'nome': 'Igor', 'sexo': 'M', 'idade': 20} print(f'O {pessoas["nome"]} tem {pessoas["idade"]} anos.') print(pessoas.keys()) #chaves do dicionario print(pessoas.values())#valores das chaves print(pessoas.items())#mostra os itens do dicionario print() for k in pessoas.keys(): print(k) for v in...
26.452381
58
0.629163
170
1,111
4.111765
0.388235
0.02289
0.057225
0.040057
0.144492
0.125894
0.125894
0.091559
0.091559
0.091559
0
0.011905
0.168317
1,111
41
59
27.097561
0.744589
0.155716
0
0.297297
0
0
0.191604
0
0
0
0
0
0
1
0
false
0
0
0
0
0.432432
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
0
0
0
1
0
1
84664082e1511f1729add08f835b69444a8edf67
9,697
py
Python
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
2
2021-01-30T19:04:12.000Z
2021-06-18T09:41:15.000Z
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
null
null
null
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
1
2021-04-19T09:57:14.000Z
2021-04-19T09:57:14.000Z
""" polyanalyst6api.api ~~~~~~~~~~~~~~~~~~~ This module contains functionality for access to PolyAnalyst API. """ import configparser import contextlib import pathlib import warnings from typing import Any, Dict, List, Tuple, Union, Optional from urllib.parse import urljoin, urlparse import requests import urllib3 f...
35.00722
113
0.608642
1,091
9,697
5.311641
0.27956
0.018982
0.011044
0.013978
0.101812
0.094219
0.094219
0.065229
0.049698
0.049698
0
0.007432
0.278437
9,697
276
114
35.134058
0.82078
0.237084
0
0.051429
0
0
0.169477
0.011804
0
0
0
0
0
1
0.085714
false
0.028571
0.068571
0
0.251429
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
0
0
0
0
1
0
ffbcc28e993823f93d8f7e3809b6abd49a5cc187
1,998
py
Python
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.http import HttpResponse from django.utils.translation import ugettext as _ from froide.publicbody.models import (PublicBody, FoiLaw, PublicBodyTopic, Jurisdiction) class PublicBodyAdmin(admin.ModelAdmin): prepopulated_fields = { "slug": ("name",), ...
34.448276
87
0.699199
205
1,998
6.604878
0.395122
0.044313
0.079764
0.097489
0.121123
0.121123
0
0
0
0
0
0.002436
0.178178
1,998
57
88
35.052632
0.822168
0
0
0.093023
0
0
0.167167
0
0
0
0
0
0
1
0.046512
false
0
0.116279
0.023256
0.581395
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
0
0
1
0
0
1
ffbf148e7df59ebdd237d38695723231b7824b44
462
py
Python
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
n = int(input()) # @return [0]:約数の個数 [1]:約数リスト def divisor(num): ret=[] L=[] for i in range(1,num+1): if (num%i==0): L.append(i) ret.append(len(L)) ret.append(L) return ret L=[] ans=0 for i in range(1,n+1): if(i%2==0): continue else: for j in range...
14.4375
30
0.452381
79
462
2.64557
0.367089
0.100478
0.114833
0.105263
0.200957
0.124402
0.124402
0
0
0
0
0.056478
0.348485
462
31
31
14.903226
0.637874
0.058442
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.083333
0.083333
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
0
0
0
0
1
0
ffbfef0bf96a36ae6a5da2b1bf0bdc5756f1e309
3,931
py
Python
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
poc.py
evinr/basis-scraper
cb20574aadc469c6d1527ddb5a3cc69df531cbfd
[ "MIT" ]
null
null
null
import serial def setup(): ser = serial.Serial('/dev/ttyUSB0', timeout=2) ser.setRTS(True) ser.setRTS(False) if ser.isOpen(): ser.close() ser.open() ser.isOpen() print "USB connection established" def read(): rawString = ser.readline() print rawString return (str(rawString)) def write(string...
27.110345
135
0.675401
852
3,931
3.116197
0.266432
0.090395
0.049718
0.051224
0.363842
0.319397
0.283616
0.222976
0.222976
0.162712
0
0.285616
0.260748
3,931
145
136
27.110345
0.628011
0.511066
0
0.041667
0
0.020833
0.503504
0
0
0
0
0.006897
0
0
null
null
0
0.020833
null
null
0.145833
0
0
0
null
0
0
0
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
1
0
0
0
0
0
0
0
0
2
ffc0fbef26aaac232d9390250ce89e31f64b7ad8
31
py
Python
multinet/db/models/__init__.py
multinet-app/multinet-girder
f34c87849d92c7fe2f8589760f97bebbe04bd4af
[ "Apache-2.0" ]
3
2019-10-22T15:21:10.000Z
2020-02-13T17:40:07.000Z
multinet/db/models/__init__.py
multinet-app/multinet
f34c87849d92c7fe2f8589760f97bebbe04bd4af
[ "Apache-2.0" ]
183
2019-08-01T14:27:00.000Z
2020-03-04T17:47:49.000Z
multinet/db/models/__init__.py
multinet-app/multinet-girder
f34c87849d92c7fe2f8589760f97bebbe04bd4af
[ "Apache-2.0" ]
2
2020-08-20T11:57:17.000Z
2020-11-10T22:54:19.000Z
"""ORM models for multinet."""
15.5
30
0.645161
4
31
5
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.740741
0.774194
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
ffc1536722c6684539bdbe4eaba7de45c07a8edb
6,296
py
Python
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
null
null
null
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
4
2021-07-27T21:44:51.000Z
2022-03-04T01:38:48.000Z
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
null
null
null
import bs4 import os import re from typing import Iterable from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait # for implicit and explict waits from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.common.by import By from dataPipelines.gc_crawler...
38.625767
127
0.550191
712
6,296
4.636236
0.307584
0.023629
0.021812
0.029688
0.217207
0.142381
0.059376
0.033929
0.019388
0
0
0.011765
0.324968
6,296
162
128
38.864198
0.764941
0.047967
0
0.16129
0
0.008065
0.081698
0.022983
0
0
0
0
0
1
0.032258
false
0
0.104839
0
0.177419
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
0
0
0
0
1
0
ffc168320dcc3879d9935e0c48e2582d2d304fa1
3,938
py
Python
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
7
2018-11-12T20:52:53.000Z
2021-12-17T23:04:41.000Z
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
2
2019-12-24T08:53:51.000Z
2019-12-26T19:26:51.000Z
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
8
2018-12-28T12:31:51.000Z
2020-01-25T09:07:52.000Z
import re from django.db.models.signals import m2m_changed, post_save, pre_delete from django.dispatch import receiver from django.urls import reverse from .models import Entry, Notification, User @receiver(post_save, sender=Entry) def entry_notification(sender, instance, created, **kwargs): """ Signal used...
39.777778
127
0.561199
431
3,938
5.055684
0.278422
0.055071
0.06425
0.035796
0.144103
0.084442
0.042221
0
0
0
0
0.001953
0.349924
3,938
98
128
40.183673
0.849219
0.156171
0
0.153846
0
0.012821
0.086612
0.043611
0
0
0
0
0
1
0.025641
false
0
0.064103
0
0.089744
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
0
0
0
0
1
0
ffc1d0bbd0644054a0b22502249482b17c06c941
2,532
py
Python
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
null
null
null
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
6
2021-03-05T16:39:42.000Z
2021-06-11T01:04:57.000Z
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
null
null
null
from unittest.mock import mock_open from unittest.mock import patch import flow.utils.commons as commons def test_extract_story_id_with_empty_list(): story_list = commons.extract_story_id_from_commit_messages([]) assert len(story_list) == 0 commit_example = [ "223342f Adding ability to specify artifactory u...
36.171429
100
0.781991
361
2,532
5.155125
0.213296
0.062869
0.075228
0.051048
0.750672
0.711445
0.698012
0.698012
0.588393
0.430951
0
0.097846
0.120063
2,532
69
101
36.695652
0.737433
0
0
0.288462
0
0
0.376777
0.080569
0
0
0
0
0.134615
1
0.115385
false
0
0.057692
0
0.173077
0.057692
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffc234c8fa1382a81cd3f2b1ea5e202da915c840
28,482
py
Python
swagger_client/models/client_configuration.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-04-15T05:58:21.000Z
2021-11-15T18:26:37.000Z
swagger_client/models/client_configuration.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
1
2021-06-18T09:46:25.000Z
2021-06-18T20:12:41.000Z
swagger_client/models/client_configuration.py
chbndrhnns/finapi-client
259beda8b05e912c49d2dc4c3ed71205134e5d8a
[ "MIT" ]
2
2019-07-08T13:41:09.000Z
2020-12-07T12:10:04.000Z
# coding: utf-8 """ finAPI RESTful Services finAPI RESTful Services # noqa: E501 OpenAPI spec version: v1.42.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ClientConfiguration(object): """NOTE: This class is...
71.027431
1,696
0.743066
4,091
28,482
4.988511
0.099487
0.025088
0.05586
0.048412
0.88235
0.836682
0.798216
0.755096
0.732213
0.66273
0
0.010876
0.202654
28,482
400
1,697
71.205
0.887759
0.636332
0
0.077844
1
0
0.148253
0.103057
0
0
0
0
0
1
0.167665
false
0
0.017964
0
0.305389
0.011976
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
ffc35164c1764ae381a92d8e3682d0250a4793ea
912
py
Python
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
null
null
null
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
3
2021-06-08T22:05:30.000Z
2022-01-13T03:04:03.000Z
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
null
null
null
from functools import wraps from flask_jwt_extended import verify_jwt_in_request, get_jwt_claims, exceptions from jwt import exceptions as jwt_exception from utils.custom_response import bad_request def admin_required(fn): @wraps(fn) def wrapper(*args, **kwargs): try: verify_jwt_in_request...
35.076923
80
0.638158
114
912
4.894737
0.359649
0.107527
0.143369
0.086022
0.327957
0.327957
0.327957
0.286738
0.286738
0.229391
0
0.022901
0.281798
912
25
81
36.48
0.829008
0.08114
0
0.095238
0
0
0.02515
0
0
0
0
0
0
1
0.095238
false
0
0.190476
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc40ad7630c4587dcf4487c052a523769c15b4a
1,254
py
Python
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
#!/usr/bin/env python """S/MIME demo. Copyright (c) 2000 Ng Pheng Siong. All rights reserved.""" from M2Crypto import BIO, Rand, SMIME, X509 import sys def decrypt_verify(p7file, recip_key, signer_cert, ca_cert): s = SMIME.SMIME() # Load decryption private key. s.load_key(recip_key) # Extract PKCS...
24.588235
77
0.6563
188
1,254
4.212766
0.484043
0.022727
0.05303
0.037879
0.159091
0.159091
0.159091
0.090909
0
0
0
0.040082
0.224083
1,254
50
78
25.08
0.773895
0.290271
0
0
0
0
0.081047
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffc4351a518b97d5c4916014accd51d41d76de87
14,867
py
Python
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
1
2019-09-24T21:06:45.000Z
2019-09-24T21:06:45.000Z
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
null
null
null
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
1
2019-09-24T21:14:35.000Z
2019-09-24T21:14:35.000Z
#!/usr/bin/env python """A model for the sky brightness """ from functools import partial from math import pi, cos, acos, sin, sqrt, log10 from datetime import datetime, tzinfo, timedelta from time import strptime from calendar import timegm from copy import deepcopy from sys import argv from collections import namedtu...
37.1675
163
0.609807
2,210
14,867
3.935747
0.147059
0.025293
0.01943
0.023454
0.294091
0.242814
0.169924
0.090251
0.0745
0.069901
0
0.04326
0.249008
14,867
399
164
37.260652
0.735781
0.075738
0
0.103448
0
0.027586
0.107882
0.031177
0
0
0
0
0
1
0.051724
false
0
0.086207
0.006897
0.203448
0.037931
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
0
0
0
0
1
0
ffc57756064cdbfdff55d925646e8ab713a50ba6
1,675
py
Python
timeseries/test.py
zoobree/MachineLearning
67fd35e67469d9f03afd5c090f2ca23f514bebfd
[ "Apache-2.0" ]
null
null
null
timeseries/test.py
zoobree/MachineLearning
67fd35e67469d9f03afd5c090f2ca23f514bebfd
[ "Apache-2.0" ]
1
2018-04-07T05:24:40.000Z
2018-04-07T05:24:40.000Z
timeseries/test.py
joybree/MachineLearning
69a381efa35436a6d211005c320576db966eea11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import arima import os import pandas as pd class Arima_Test(unittest.TestCase): def set_data_dir(self): print("set_data_dir") self.dir = "E:/code/python/MachineLearning/data/test_data/" self.error = 0.001 self.num_percent = 0.9 def t...
25.769231
99
0.587463
220
1,675
4.145455
0.345455
0.052632
0.060307
0.065789
0.04386
0
0
0
0
0
0
0.015491
0.306269
1,675
64
100
26.171875
0.769363
0.025672
0
0.130435
0
0
0.066542
0.045398
0
0
0
0
0.021739
1
0.173913
false
0.130435
0.086957
0
0.282609
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ffc7043d4112113fd11d3bba2367bfc4002daece
8,004
py
Python
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ This file is part of OpenSesame. OpenSesame is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenSesame is distr...
35.415929
115
0.594328
983
8,004
4.753815
0.298067
0.034453
0.037663
0.066767
0.214209
0.0948
0.057351
0
0
0
0
0.011313
0.304223
8,004
225
116
35.573333
0.827797
0.318591
0
0.057143
0
0
0.073813
0
0
0
0
0
0
1
0.07619
false
0
0.028571
0
0.190476
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
0
0
0
0
1
0
ffc7fe1be16dc65b683b9d6a05ef9740a31e195b
42,563
py
Python
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2016-09-20T09:50:06.000Z
2018-08-10T01:41:38.000Z
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
null
null
null
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
2
2016-03-16T22:25:49.000Z
2016-11-26T14:54:21.000Z
#!/usr/bin/env python __author__ = 'Roger Unwin' import socket import time from time import gmtime, strftime import datetime import string import sys import random import asyncore import thread import getopt import select import os ### default values defined below (b/c class is not yet defined) #default_port = 4001 ...
44.94509
405
0.453398
4,983
42,563
3.753562
0.120409
0.103507
0.084688
0.055603
0.505667
0.449797
0.376925
0.357678
0.342868
0.31266
0
0.06122
0.403238
42,563
946
406
44.9926
0.675157
0.064798
0
0.336022
0
0.00672
0.146193
0.000991
0
0
0
0
0
0
null
null
0.001344
0.017473
null
null
0.020161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffc857a75ba7aa5ef44304f6675fe0e78e0727a5
976
py
Python
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd data = pd.read_csv('results.csv') labels = [1,2,3,4] width = 0.75 x = np.arange(len(labels)) # the label locations fig = plt.figure(figsize=(9,6)) # Number people waiting ax1 = fig.add_subplot(121) y1 = data['av_waiting'].values.flatten() w...
21.217391
76
0.731557
167
976
4.173653
0.491018
0.043042
0.037303
0.065997
0.149211
0
0
0
0
0
0
0.043224
0.122951
976
45
77
21.688889
0.771028
0.042008
0
0
0
0
0.28556
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
0
0
0
0
1
0
ffc9b886976a36f8168389759472ba04ff485037
10,360
py
Python
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor Amritha Subburayan code for STOUT DDA FULL STACK CASE STUDIES """ import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline from sklearn import preprocessing import sklearn.metrics as sm data = pd.r...
32.888889
167
0.754826
1,575
10,360
4.713016
0.205079
0.041223
0.054964
0.073286
0.482689
0.403476
0.325475
0.243567
0.178769
0.15937
0
0.0359
0.110039
10,360
314
168
32.993631
0.769197
0.178185
0
0.013699
0
0
0.279484
0.098937
0
0
0
0
0
0
null
null
0
0.075342
null
null
0.109589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffcbaba69ba29dbe70293f1d332c038a6aaf91b9
1,373
py
Python
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
6
2019-08-04T04:11:36.000Z
2020-02-20T17:10:26.000Z
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
23
2019-09-17T11:35:06.000Z
2020-04-07T16:18:15.000Z
datastore/__init__.py
Swixx/py-datastore
dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c
[ "MIT" ]
6
2019-08-04T02:02:25.000Z
2020-03-01T15:43:41.000Z
""" Datastore is a generic layer of abstraction for data store and database access. It is a **simple** API with the aim to enable application development in a datastore-agnostic way, allowing datastores to be swapped seamlessly without changing application code. Thus, one can leverage different datastores with differen...
29.212766
79
0.79024
167
1,373
6.401198
0.491018
0.067353
0.02058
0.026193
0.08232
0
0
0
0
0
0
0.002513
0.130371
1,373
46
80
29.847826
0.892797
0.380189
0
0
0
0
0.252101
0.031212
0
0
0
0
0
1
0
false
0
0.521739
0
0.521739
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
0
1
0
0
2
ffce3c914809fe508a87b5cc18e2cdab125e42d4
402
py
Python
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
public_goods_str_nonoise/tests.py
bocchan/costly
ba52f82e36e28012a63a78805963bdf384679955
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import random from otree.common import Currency as c, currency_range from . import views from ._builtin import Bot from .models import Constants class PlayerBot(Bot): """Bot that plays one round""" def play_round(self): self.submit(views.MyPa...
18.272727
54
0.691542
54
402
5
0.611111
0.074074
0.111111
0
0
0
0
0
0
0
0
0.003175
0.216418
402
21
55
19.142857
0.853968
0.116915
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0.5
0
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
0
0
1
1
0
1
0
0
3
ffcf7b955b11391d80d86773ca0338d0d81e1b2c
709
py
Python
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, intervals: List[List[int]]) -> List[List[int]]: if len(intervals) == 1: return intervals intervals.sort() result = [intervals[0]] for i in range(1, len(intervals)): # 总共三种情况需要考虑,比较两个区间,另两个区间中的元素值依次为a,b,c,d。 temp = res...
32.227273
65
0.472496
85
709
3.941176
0.435294
0.044776
0.071642
0.053731
0.149254
0.149254
0.149254
0
0
0
0
0.025287
0.38646
709
21
66
33.761905
0.744828
0.119887
0
0
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffd1926ccd96f4b70e990d54bad23c4b64c849e9
2,531
py
Python
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
11
2017-11-01T17:48:10.000Z
2020-08-25T04:29:17.000Z
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
5
2017-11-10T12:46:44.000Z
2019-09-18T07:18:19.000Z
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
7
2018-01-26T20:08:37.000Z
2021-05-26T14:32:06.000Z
#!/usr/bin/env python # -*- coding:utf8 -*- # Copyright 2017, Schuberg Philis BV # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership...
34.202703
79
0.66772
353
2,531
4.739377
0.501416
0.035864
0.015541
0.019127
0.068141
0.050209
0.050209
0.050209
0.050209
0
0
0.005348
0.261162
2,531
73
80
34.671233
0.889305
0.711181
0
0
0
0
0.098901
0
0
0
0
0
0
1
0.125
false
0
0
0
0.3125
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
0
0
0
0
1
0
ffd4de322115b22ae4e36e0be2d07a40743376b4
1,340
py
Python
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
users/models.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
from os import name from django.db import models from django.contrib.auth.models import User from PIL import Image #Model classes are tables objects in a database. #each variable is a column and its datatype. #__str__ method defines the name of a object (row) in a database table #profile model is meant to be used as ...
37.222222
92
0.709701
199
1,340
4.688442
0.517588
0.021436
0.02358
0.051447
0.042872
0
0
0
0
0
0
0.015755
0.194776
1,340
35
93
38.285714
0.848934
0.302985
0
0.133333
0
0
0.079699
0.033083
0
0
0
0
0
1
0.133333
false
0
0.266667
0.133333
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
0
0
0
1
1
0
0
2
ffd544a103259a41233ed3e0af2e2d453a43568d
1,446
py
Python
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO GPIO.setwarnings(False) led_color_gpio = { 'yellow': 0, 'orange': 2, 'red': 3, 'green': 4, 'blue': 5, 'white': 6 } buttons_gpio = { 'red': 28, 'blue': 29, } gpio_to_bcm = { 0: 17, 1: 18, 2: 27, 3: 22, 4: 23, 5:...
18.075
54
0.538728
216
1,446
3.458333
0.375
0.064257
0.080321
0.085676
0.228916
0.133869
0.133869
0.133869
0.133869
0.133869
0
0.074719
0.324343
1,446
79
55
18.303797
0.689867
0.013831
0
0.161765
0
0
0.075789
0
0
0
0
0
0
1
0.014706
false
0
0.014706
0
0.044118
0.029412
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
0
0
0
0
1
0
ffd73066eb937a59b32d4daec9ba6f8807fa09da
5,551
py
Python
utils/StartMOOS.py
ianfixes/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-07-09T17:51:20.000Z
2016-04-14T23:06:04.000Z
utils/StartMOOS.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
null
null
null
utils/StartMOOS.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-03-31T04:18:21.000Z
2016-10-22T04:55:16.000Z
#!/usr/bin/env python ########################################################################### # # Written in 2009 by Ian Katz <ijk5@mit.edu> # Terms: WTFPL (http://sam.zoy.org/wtfpl/) # See COPYING and WARRANTY files included in this distribution # #####################################...
26.816425
85
0.572149
639
5,551
4.838811
0.383412
0.028461
0.017788
0.023286
0.148124
0.124191
0.106727
0.086675
0.064683
0.064683
0
0.011285
0.297604
5,551
206
86
26.946602
0.781739
0.200324
0
0.233333
0
0
0.160169
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.158333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffd92d23d660d2a840a6dec51a3209da982b029c
1,172
py
Python
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from word_vectorizer.constants import Constants from word_vectorizer.model_downloading.gensim_model_downloader import \ GensimModelDownloader class TestGensimModelDownloader(TestCase): NAME_MODEL = "name_model" URL = "gensim" PATH_WHERE_G...
41.857143
77
0.728669
138
1,172
5.76087
0.347826
0.067925
0.125786
0.090566
0.313208
0.218868
0
0
0
0
0
0
0.195392
1,172
27
78
43.407407
0.843054
0
0
0
0
0
0.054608
0.018771
0
0
0
0
0.136364
1
0.045455
false
0
0.181818
0
0.454545
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
0
0
0
0
1
0
ffd92f6660bddf66dfe789ef939a022a436eddba
26,840
py
Python
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright 2018, The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.613663
99
0.656222
3,436
26,840
4.862922
0.129511
0.015321
0.014782
0.01167
0.389072
0.30726
0.254713
0.225388
0.183793
0.163325
0
0.01286
0.217735
26,840
848
100
31.650943
0.782959
0.085171
0
0.275556
0
0.002963
0.274696
0.045666
0
0
0
0
0
1
0.044444
false
0.001481
0.008889
0.002963
0.12
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
0
0
0
0
1
0
ffda91245aed33f9125784b3f0d5a73c6224af00
6,975
py
Python
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
1
2021-03-11T15:39:28.000Z
2021-03-11T15:39:28.000Z
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
18
2021-08-02T17:11:25.000Z
2022-01-11T16:20:04.000Z
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: Ampel-ZTF/ampel/ztf/dev/DevSkyPortalClient.py # Author: Jakob van Santen <jakob.van.santen@desy.de> # Date: 16.09.2020 # Last Modified Date: 16.09.2020 # Last Modified By: Jakob van Santen <jakob.van.santen@desy.de> im...
36.139896
151
0.531326
759
6,975
4.807642
0.370224
0.013428
0.015347
0.010414
0.050973
0.050973
0.018635
0.018635
0
0
0
0.025988
0.321434
6,975
192
152
36.328125
0.744982
0.116989
0
0.039735
0
0
0.150813
0.01495
0
0
0
0
0
1
0.059603
false
0.006623
0.086093
0.013245
0.198676
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
0
0
0
0
1
0
ffddb9df1f192b673556f7659d2310d13ba94e89
3,806
py
Python
tools/test_detection_features_converter.py
jialinwu17/caption_vqa
9bbbb580d031a20ba4f18ef14fcd3599b62a482a
[ "MIT" ]
139
2018-03-21T09:39:39.000Z
2021-07-07T14:19:26.000Z
tools/test_detection_features_converter.py
VincentYing/Attention-on-Attention-for-VQA
cbc767541667e9bb32760ac7cd2e822eff232ff5
[ "MIT" ]
4
2018-05-25T05:15:20.000Z
2018-10-11T00:52:14.000Z
tools/test_detection_features_converter.py
VincentYing/Attention-on-Attention-for-VQA
cbc767541667e9bb32760ac7cd2e822eff232ff5
[ "MIT" ]
23
2018-03-22T10:12:35.000Z
2021-02-20T06:18:00.000Z
""" Reads in a tsv file with pre-trained bottom up attention features and stores it in HDF5 format. Also store {image_id: feature_idx} as a pickle file. Hierarchy of HDF5 file: { 'image_features': num_images x num_boxes x 2048 array of features 'image_bb': num_images x num_boxes x 4 array of bounding boxes } """ ...
34.6
83
0.618497
498
3,806
4.399598
0.273092
0.028754
0.020082
0.024646
0.176175
0.117754
0.062072
0.031036
0
0
0
0.022857
0.26432
3,806
109
84
34.917431
0.759643
0.081713
0
0.05
0
0
0.109263
0.024663
0
0
0
0
0.0125
1
0
false
0
0.1125
0
0.1125
0.05
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
0
0
0
0
1
0
ffde4731dad77ca75123679807fabb3875a76017
176
py
Python
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
1
2021-04-07T20:14:43.000Z
2021-04-07T20:14:43.000Z
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
null
null
null
src/registration/urls.py
jtrussell/swindle
914f9ddc7b155cf895fc233b9f3f0c1804bf23e3
[ "MIT" ]
null
null
null
from . import views from django.urls import path urlpatterns = [ path('', views.profile, name='profile'), path('sign-up', views.sign_up, name='show_sign_up_form') ]
17.6
60
0.681818
25
176
4.64
0.52
0.155172
0
0
0
0
0
0
0
0
0
0
0.164773
176
9
61
19.555556
0.789116
0
0
0
0
0
0.177143
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
ffde4e382f893654ea15768c8c27165eee09e3a4
3,720
py
Python
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
from tkinter.font import BOLD from PIL import ImageTk from tkinter import* from PIL import Image from tkinter import messagebox from Tools.log_db import* class Sign: def __init__(self, root): self.root = root ## Init frame and button Frame_sign = Frame(self.root, bg="#120b26") Fr...
53.913043
265
0.596774
466
3,720
4.654506
0.291845
0.067773
0.076072
0.039189
0.344398
0.311664
0.289534
0.198709
0.119871
0.119871
0
0.054241
0.261559
3,720
69
266
53.913043
0.735348
0.045968
0
0.061224
0
0
0.165772
0.027958
0
0
0
0
0
1
0.040816
false
0.285714
0.122449
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ffdf3cdd0117fb616bc6eff58d4c3d502c8bf807
6,301
py
Python
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
78
2021-11-08T16:11:23.000Z
2022-03-27T17:51:04.000Z
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
19
2021-11-08T17:15:40.000Z
2022-03-30T17:46:55.000Z
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
7
2021-11-09T17:42:32.000Z
2022-03-09T00:37:57.000Z
from functools import partial from typing import Optional, List, Tuple import numpy from numpy.typing import ArrayLike from skimage.restoration import denoise_bilateral as skimage_denoise_bilateral from aydin.it.classic_denoisers import _defaults from aydin.util.crop.rep_crop import representative_crop from aydin.uti...
32.989529
83
0.690525
792
6,301
5.342172
0.300505
0.041598
0.033089
0.017963
0.164264
0.136611
0.133775
0.133775
0.133775
0.133775
0
0.01594
0.243295
6,301
190
84
33.163158
0.871435
0.552293
0
0.16129
0
0
0.014193
0
0
0
0
0
0
1
0.032258
false
0
0.145161
0
0.209677
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
0
0
0
0
1
0
ffe13b312ebb3748c1aadfdca895d3557dc9d9a9
1,889
py
Python
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
import logging import time from .exceptions import HostEntryNotValid from .check import CheckFactory from .alert import AlertFactory from .host import Host from .logging import logger class PyMon: def __init__(self, host_list, check_list, alert_list, daemonize=False): self.hosts = {} self.checks =...
28.19403
75
0.564849
227
1,889
4.599119
0.259912
0.068966
0.031609
0.02682
0.028736
0
0
0
0
0
0
0.004006
0.339333
1,889
66
76
28.621212
0.832532
0
0
0.036364
0
0
0.035998
0
0
0
0
0
0
1
0.109091
false
0
0.127273
0
0.254545
0.072727
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
0
0
0
0
1
0
ffe516953bedc8e02aa7624b4a14d347ba8dad15
52,397
py
Python
ambulance/tests/test_calls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
ambulance/tests/test_calls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
ambulance/tests/test_calls.py
aschrist/WebServerAndClient
3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640
[ "BSD-3-Clause" ]
null
null
null
import logging import time from django.test import Client from django.conf import settings from django.urls import reverse from django.db import IntegrityError from django.utils import timezone from rest_framework.parsers import JSONParser from rest_framework import serializers from io import BytesIO import json fr...
37.533668
121
0.55444
5,277
52,397
5.306424
0.052113
0.041783
0.023213
0.024641
0.868438
0.847082
0.82587
0.8028
0.770766
0.745161
0
0.024668
0.328435
52,397
1,395
122
37.560573
0.771115
0.076684
0
0.744661
0
0
0.113789
0.002675
0
0
0
0.000717
0.085422
1
0.011142
false
0.007428
0.013928
0
0.025998
0
0
0
0
null
0
0
0
1
1
1
1
1
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
7
ffe63e2dda8d22501b711fdd07b98a6cfff2ea5a
2,484
py
Python
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
import os from bot.TextInput import TextInput from bot.prompt import color_msg def PythonCommands(file, name, category, description, slash): here = os.getcwd() # Writing a new import line cogs = file['config']['commands'] = [] cogs.append(name) with open(here + "/main.py", "r") as f : ...
45.163636
118
0.517311
252
2,484
5.063492
0.285714
0.056426
0.094044
0.094044
0.699843
0.67163
0.67163
0.67163
0.67163
0.67163
0
0.022556
0.357488
2,484
55
119
45.163636
0.776942
0.010064
0
0.596154
0
0
0.178453
0.012895
0
0
0
0
0
1
0.019231
false
0
0.076923
0
0.096154
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffe68f15e3bf96bdad0cec4870fd34ce0d8fbf6c
223
py
Python
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
src/methods/Addition.py
svanschooten/Flow
c7c158f986f7b108a255cbaa67ec7fff3518b637
[ "MIT" ]
null
null
null
from methods.AbstactMethod import AbstractMethod class Addition(AbstractMethod): name = 'Addition' def apply(self, args: dict) -> dict: return { 'res': args.get('x') + args.get('y') }
20.272727
48
0.591928
24
223
5.5
0.75
0.106061
0
0
0
0
0
0
0
0
0
0
0.273543
223
10
49
22.3
0.814815
0
0
0
0
0
0.058296
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
ffe7a09ec4555bf2573c09777fdb5c2946647fc9
3,914
py
Python
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
# imports from decouple import config import pandas as pd import praw import psycopg2 import schedule from sqlalchemy import create_engine import time def job(): current_day = time.strftime("%m/%d/%Y") print(f"Performing job on {current_day}") startTime = time.time() # connecting to reddit API re...
32.890756
93
0.667092
441
3,914
5.782313
0.287982
0.056471
0.026667
0.016471
0
0
0
0
0
0
0
0.004864
0.212059
3,914
118
94
33.169492
0.821984
0.178334
0
0.025974
0
0
0.233031
0.017204
0
0
0
0
0
1
0.012987
false
0.038961
0.090909
0
0.103896
0.025974
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
0
0
0
0
1
0
ffe7fe43c53e89a050ea85e42fd101e3306b2423
9,139
py
Python
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
1
2016-03-08T14:39:52.000Z
2016-03-08T14:39:52.000Z
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
null
null
null
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
null
null
null
#!/bin/python #Frame processing and distance estimation for #goal #------------------------------------------------------------------------------- # IMPORTS #------------------------------------------------------------------------------- import cv2 import math import numpy i...
37.454918
135
0.402889
938
9,139
3.826226
0.289979
0.008359
0.021454
0.02229
0.03455
0.015046
0
0
0
0
0
0.041327
0.274538
9,139
243
136
37.609054
0.5
0.360105
0
0.13913
0
0
0.089235
0
0
0
0
0
0
0
null
null
0
0.034783
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffeabfb85c362b4fd5f28c9b1e056f66d191fed5
100
py
Python
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
9.py
sarika228/React-Projects
24c342f71f839c257150f4b5e096c127b51d525c
[ "MIT" ]
null
null
null
i=1 while i<=4: j=16 while j>=i: print(i,end="") j=j-1 print() i=i+1
12.5
23
0.39
20
100
1.95
0.4
0.102564
0
0
0
0
0
0
0
0
0
0.101695
0.41
100
8
24
12.5
0.559322
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ffeb87db7651191ea5cf19f49a0c7c9aa356f87d
8,539
py
Python
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
import logging import weakref from threading import Event from threading import Thread try: from Queue import Queue except ImportError: from queue import Queue try: import gevent from gevent import Greenlet as GThread from gevent.event import Event as GEvent from gevent.queue import Queue as GQ...
32.222642
79
0.610025
1,003
8,539
4.946162
0.212363
0.026809
0.02177
0.012901
0.174158
0.143116
0.096352
0.077404
0.049587
0.049587
0
0.000843
0.305305
8,539
264
80
32.344697
0.835469
0.040169
0
0.196078
0
0
0.088056
0
0
0
0
0
0
1
0.147059
false
0.004902
0.063725
0.029412
0.382353
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
0
0
0
0
1
0
ffed6941b3c99947e3e5d93c80fbd2e963b7ad51
9,056
py
Python
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
2
2018-08-30T14:38:53.000Z
2019-12-12T09:33:42.000Z
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
1
2018-12-10T05:15:48.000Z
2018-12-10T05:15:48.000Z
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
2
2019-06-28T06:05:17.000Z
2019-10-28T08:34:50.000Z
#!/usr/bin/python3 from Common.Straw import Straw import pymongo from pymongo import MongoClient from bson.objectid import ObjectId import os class Db(Straw): # 任务 _taskFields = { 'videoIds': 'string', #待操作的 视频 'setId': 'objectid', #待操作的视频集 id 'fromDevice': 'string', 'toDevice':...
35.100775
169
0.597946
989
9,056
5.264914
0.226491
0.051085
0.076628
0.069906
0.497599
0.467448
0.436336
0.386979
0.294603
0.245823
0
0.005349
0.256846
9,056
257
170
35.237354
0.768351
0.194898
0
0.293706
0
0
0.112334
0
0
0
0
0
0
1
0.146853
false
0.006993
0.034965
0
0.426573
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
0
0
0
0
1
0
ffed95a551ec4c75f989589df7d781a9f4387728
1,251
py
Python
baya/tests/test_templatetags.py
kreneskyp/baya
5cf04b6873927124b4a3f24c113c08699dd61315
[ "MIT" ]
4
2016-05-24T13:57:37.000Z
2020-02-27T05:22:56.000Z
baya/tests/test_templatetags.py
kreneskyp/baya
5cf04b6873927124b4a3f24c113c08699dd61315
[ "MIT" ]
29
2016-02-05T01:31:51.000Z
2022-02-23T18:50:58.000Z
baya/tests/test_templatetags.py
hrichards/baya
f319cef5e95cd6a166265d51ae0ea236b6f65be3
[ "MIT" ]
6
2016-05-20T22:22:45.000Z
2019-09-03T17:57:59.000Z
from django.template import Context from django.template import Template from .test_base import LDAPGroupAuthTestBase from django.contrib.auth.models import AnonymousUser class CanUserPerformActionTagTest(LDAPGroupAuthTestBase): BASIC_TEMPLATE = Template( "{% load baya_tags %}" "{% can_user_pe...
29.785714
69
0.608313
122
1,251
6.02459
0.327869
0.070748
0.073469
0.097959
0.492517
0.492517
0.492517
0.492517
0.42449
0.22585
0
0
0.275779
1,251
41
70
30.512195
0.811258
0
0
0.4
0
0
0.174261
0.018385
0
0
0
0
0.085714
1
0.085714
false
0
0.114286
0
0.257143
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
0
0
0
0
1
0
fff185192df2e58db961f6b323cfb8259a7a9f46
2,611
py
Python
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn from torch.nn import functional as F # In EGG, the game designer must implement the core functionality of t...
44.254237
133
0.711222
401
2,611
4.508728
0.38404
0.029867
0.018252
0.024889
0.075221
0.075221
0.038717
0.038717
0.038717
0
0
0.005828
0.211413
2,611
59
134
44.254237
0.872268
0.518958
0
0.121212
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.030303
0.454545
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
0
0
0
0
1
0
fff18656fd42956b8ef43e1d1fc5a06b2aa15f66
2,757
py
Python
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
import os import shutil import random def copy_random_k_files(src_dir, k, dst_dir): file_list = os.listdir(src_dir) if k == -1: k=len(file_list) for i in range(k): random_file=random.choice(file_list) print(random_file) src1 = os.path.join(src_dir, random_file) dst...
39.385714
105
0.673921
442
2,757
3.812217
0.158371
0.08546
0.136499
0.046291
0.465282
0.429674
0.226706
0.153116
0.153116
0.110386
0
0.011899
0.207472
2,757
69
106
39.956522
0.759268
0.010519
0
0.066667
0
0
0.066079
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.066667
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
0
0
0
0
1
0
fff197ae68beb5dbb26583494df00c1fc7732948
1,285
py
Python
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
7
2019-07-19T21:30:26.000Z
2021-06-17T03:57:22.000Z
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
null
null
null
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
1
2021-06-17T03:57:23.000Z
2021-06-17T03:57:23.000Z
# generated bbox ground truth from pixel-wise segmentation # it currently only generate one bbox from __future__ import print_function import numpy as np import h5py import os import pdb mask_path = '../data/acce' f = h5py.File(os.path.join(mask_path, "resized_label_ac_2d.h5"), 'r') bbox_path = '../data/acce/bbox' if...
34.72973
83
0.585214
202
1,285
3.569307
0.455446
0.044383
0.033287
0.041609
0.027739
0
0
0
0
0
0
0.022941
0.253697
1,285
36
84
35.694444
0.728884
0.224125
0
0
1
0
0.112576
0.022312
0
0
0
0
0
1
0
false
0
0.178571
0
0.178571
0.142857
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
0
0
0
0
0
0
1
fff2144edf1dc7c96f337289635ef5af44b23625
8,510
py
Python
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
# some codes refer to Holoclean evaluation function # https://github.com/HoloClean/holoclean import pandas as pd import numpy as np import logging import random import argparse parser = argparse.ArgumentParser(description='Predict on many examples') parser.add_argument("--dataset", type=str, help="dataset path") pars...
42.338308
169
0.602115
1,071
8,510
4.575163
0.210084
0.031837
0.020408
0.022041
0.434286
0.370204
0.316327
0.272653
0.249592
0.241837
0
0.003485
0.291892
8,510
200
170
42.55
0.809658
0.154642
0
0.27907
0
0
0.109807
0.003632
0
0
0
0.005
0
1
0.069767
false
0
0.03876
0
0.124031
0.031008
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
0
0
0
0
1
0
fff27be5ec642c73c3bac5ec2ecda165d7fe17c5
145
py
Python
Hackerrank_python/15.numpy/10.Min and Max.py
manish1822510059/Hackerrank
7c6e4553f033f067e04dc6c756ef90cb43f3c4a8
[ "MIT" ]
39
2020-09-27T05:32:05.000Z
2022-01-08T18:04:05.000Z
Hackerrank_python/15.numpy/10.Min and Max.py
manish1822510059/Hackerrank
7c6e4553f033f067e04dc6c756ef90cb43f3c4a8
[ "MIT" ]
5
2020-10-02T13:33:00.000Z
2021-03-01T14:06:08.000Z
Hackerrank_python/15.numpy/10.Min and Max.py
manish1822510059/Hackerrank
7c6e4553f033f067e04dc6c756ef90cb43f3c4a8
[ "MIT" ]
6
2020-10-03T04:04:55.000Z
2021-10-18T04:07:53.000Z
import numpy as arr n,m=map(int,input().split()) ar=([list(map(int,input().split()))for _ in range(n)]) arr1=arr.min(ar,axis=1) print(max(arr1))
24.166667
54
0.668966
29
145
3.310345
0.724138
0.125
0.229167
0.333333
0
0
0
0
0
0
0
0.022388
0.075862
145
5
55
29
0.69403
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fff3557fd7e005babefb16e3b6b117ef8a3354ec
918
py
Python
file_automation.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
file_automation.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
file_automation.py
FlightDev/YSPA
5226712ebf305e7a3c686c43c996517a617f748b
[ "MIT" ]
null
null
null
import os import glob from astropy.io import fits #/home/student/Desktop/Images/iTelescope/20180716-California-T24-GOOD # Yo Neal. When you use this program, you have to change a few things between iTelescope and LFOP # FIRST, remember to change the file path or you'll be a dummy. Also for LFOP -13 and -12 while ...
32.785714
99
0.667756
146
918
4.19863
0.568493
0.053834
0.088091
0.117455
0.101142
0.101142
0
0
0
0
0
0.039402
0.198257
918
27
100
34
0.793478
0.422658
0
0
0
0
0.131429
0.064762
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fff3dd07c2f6cdec73bcd25788a20c7594c2652d
959
py
Python
streamlit/main.py
prakhar134/clean-or-messy
0b9080363c48ca9cff0449875dfcbd169ef64321
[ "MIT" ]
13
2020-10-08T13:52:21.000Z
2022-03-11T07:02:35.000Z
streamlit/main.py
architsharmaa/clean-or-messy
b40028cb4c4c8bbefb91a4b016096953b445c146
[ "MIT" ]
null
null
null
streamlit/main.py
architsharmaa/clean-or-messy
b40028cb4c4c8bbefb91a4b016096953b445c146
[ "MIT" ]
9
2020-10-08T12:02:50.000Z
2022-01-25T23:38:46.000Z
from fastai.vision.all import * from PIL import Image import streamlit as st import numpy as np from io import BytesIO from .config import imgWidth, imgHeight st.title("CleanvsMessy") st.markdown(''' ## Upload the image''',True) st.set_option('deprecation.showfileUploaderEncoding', False) file = st.file_uploader(" ") ...
30.935484
65
0.683003
130
959
4.907692
0.469231
0.032915
0.056426
0
0
0
0
0
0
0
0
0.003788
0.17414
959
31
66
30.935484
0.801768
0
0
0.148148
0
0
0.197917
0.0375
0
0
0
0
0
1
0.037037
false
0
0.222222
0
0.296296
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
0
0
0
0
1
0
fff46233cd9fc6a4821a3755e7bb2b8fd09e058e
1,030
py
Python
read_trials.py
Volkarl/P10-ExoskeletonTransferLearning
311daf3791c65838ff9c496eeb6526b096b41d4c
[ "MIT" ]
null
null
null
read_trials.py
Volkarl/P10-ExoskeletonTransferLearning
311daf3791c65838ff9c496eeb6526b096b41d4c
[ "MIT" ]
2
2020-11-13T18:39:27.000Z
2021-08-25T15:59:36.000Z
read_trials.py
Volkarl/P10-ExoskeletonTransferLearning
311daf3791c65838ff9c496eeb6526b096b41d4c
[ "MIT" ]
null
null
null
import pickle import matplotlib.pyplot as plt import pandas as pd trials = pickle.load(open("trials.p", "rb")) print("Set breakpoint here") #for item in trials.trials: # args = item["vals"] # res = item["result"]["loss"] #itemtuples = [(item["misc"]["vals"]["dilation_group"], item["misc"]["vals"]["use_ref_po...
24.52381
146
0.635922
154
1,030
4.220779
0.467532
0.043077
0.041538
0.067692
0.064615
0
0
0
0
0
0
0.006659
0.125243
1,030
41
147
25.121951
0.714761
0.506796
0
0.153846
0
0
0.262195
0.056911
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.461538
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
0
0
0
1
0
1
fff5f55a4eee57bae636a577f32adbde97ba453e
3,151
py
Python
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
import logging import logging.config import os import subprocess from datetime import datetime, timedelta from botocore.credentials import CredentialProvider, RefreshableCredentials from dateutil.tz import tzlocal from common.E3 import e3 class AtlassianAwsSecurity(CredentialProvider): """ This class is onl...
39.886076
114
0.614408
372
3,151
4.948925
0.349462
0.039109
0.035307
0.039109
0.154264
0.074959
0.074959
0.039109
0.039109
0
0
0.00724
0.298635
3,151
78
115
40.397436
0.825792
0.072993
0
0.031746
0
0.015873
0.126381
0.02797
0
0
0
0
0
1
0.079365
false
0
0.126984
0.015873
0.365079
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
0
0
0
0
1
0
fff5fae09ca4ba6758cfde4e7471355a0e7af098
3,506
py
Python
RecRoomAnimatedProfilePicture.py
zigzatuzoo/Rec-Room-Animated-Profile-Picture
b8eeabf478613f47d3bdb9195ad2f5051e7aaaad
[ "Apache-2.0" ]
4
2021-08-17T01:13:03.000Z
2022-03-19T04:03:01.000Z
RecRoomAnimatedProfilePicture.py
zigzatuzoo/Rec-Room-Animated-Profile-Picture
b8eeabf478613f47d3bdb9195ad2f5051e7aaaad
[ "Apache-2.0" ]
null
null
null
RecRoomAnimatedProfilePicture.py
zigzatuzoo/Rec-Room-Animated-Profile-Picture
b8eeabf478613f47d3bdb9195ad2f5051e7aaaad
[ "Apache-2.0" ]
null
null
null
''' Stuff you need to update for this to work ''' 'Enter your username here' user = '' 'Enter your password here' passwd = '' image1 = '2d83af05944d49c69fa9565fb238a91b.jpg' image2 = '49b2788b672e4088a25eb0a9eff35c17.jpg' image3 = '355c2c7e87f0489bb5f0308cdec108f6.jpg' " ^ You need to change EACH of these to whateve...
35.77551
287
0.634341
487
3,506
4.552361
0.431212
0.018945
0.016238
0.030672
0.321155
0.321155
0.291385
0.26793
0.26793
0.22553
0
0.039508
0.23474
3,506
97
288
36.14433
0.786806
0.011694
0
0.338028
0
0.028169
0.470738
0.051618
0
0
0
0
0
1
0.042254
false
0.056338
0.042254
0
0.084507
0.112676
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fff7d77cd5951c966e8c3d645997399fd6e953c2
14,121
py
Python
rcommander/src/rcommander/graph_view.py
rummanwaqar/rcommander-core
7106d5868db76c47dea6ad11118a54351a8bd390
[ "BSD-3-Clause" ]
4
2015-04-08T09:57:43.000Z
2021-08-12T01:44:37.000Z
rcommander/src/rcommander/graph_view.py
jhu-lcsr-forks/rcommander-core
1a0350e9b93687eff6a4407f72b5250be5f56919
[ "BSD-3-Clause" ]
1
2015-03-12T09:10:27.000Z
2015-03-12T09:10:27.000Z
rcommander/src/rcommander/graph_view.py
jhu-lcsr-forks/rcommander-core
1a0350e9b93687eff6a4407f72b5250be5f56919
[ "BSD-3-Clause" ]
3
2015-03-12T10:59:17.000Z
2021-06-21T02:13:57.000Z
#import roslib; roslib.load_manifest('rcommander_core') import graph.style as gs import graph import graph.layout as gl import tool_utils as tu import graph_model as gm import numpy as np import time import copy def copy_style(astyle, bstyle): bstyle.background = astyle.background bstyle.fill = as...
39.116343
146
0.578217
1,831
14,121
4.260513
0.142545
0.03679
0.024612
0.015383
0.34111
0.257147
0.17126
0.124087
0.096398
0.068709
0
0.030275
0.307627
14,121
360
147
39.225
0.767618
0.123646
0
0.101266
0
0
0.034222
0
0
0
0
0
0
0
null
null
0
0.07173
null
null
0.004219
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fff91c879216ac70a7559f58214c7d1b3892a9ea
3,264
py
Python
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
4
2019-08-25T15:47:24.000Z
2022-03-24T19:35:09.000Z
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.urls import reverse from rest_framework.response import Response from rest_framework import status from ...collection import BaseAPICollector, BaseAPISpecification from ... import models from . import serializers class RestFrameworkSpecification(BaseAPISpecification): content...
38.857143
99
0.662377
319
3,264
6.611285
0.332288
0.043148
0.037933
0.029872
0.102418
0.102418
0.079659
0.046468
0.046468
0
0
0.00158
0.224571
3,264
83
100
39.325301
0.831687
0.163297
0
0.035088
0
0
0.131215
0.042617
0
0
0
0
0
1
0.087719
false
0
0.105263
0
0.421053
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
0
0
0
0
1
0
fffc90bcd5aabe8c07f5b2517e1c835715addf0e
770
py
Python
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
null
null
null
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
null
null
null
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
1
2020-10-05T06:46:13.000Z
2020-10-05T06:46:13.000Z
#!/usr/bin/env python3 """ This module defines functions for depth-first-search in a graph with a given adjacency list """ def dfs_visit(node_list, adj_list, root_node, parent): """ Takes the graph node list, its adj list, and a node s, and visits all the nodes reachable from s recursively. """ fo...
29.615385
91
0.654545
117
770
4.128205
0.393162
0.115942
0.091097
0.124224
0.287785
0.200828
0.153209
0.153209
0.153209
0
0
0.001761
0.262338
770
25
92
30.8
0.848592
0.367532
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.181818
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
0
0
0
0
1
0
ffff1e4cd8bc9bad42ca402b2c639f4b45a16abe
791
py
Python
pirates/quest/QuestHolderBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/quest/QuestHolderBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/quest/QuestHolderBase.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.quest.QuestHolderBase class QuestHolderBase: __module__ = __name__ def __init__(self): self._rewardCollectors...
30.423077
104
0.694058
89
791
5.932584
0.629213
0.151515
0.060606
0.094697
0.128788
0
0
0
0
0
0
0.072231
0.212389
791
26
105
30.423077
0.775281
0.259166
0
0.133333
0
0
0.037801
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.466667
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
0
0
0
0
1
0803020bd1e3c35bd9b149aea49e7ac12f9623a3
933
py
Python
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
33
2021-07-09T05:40:00.000Z
2022-02-07T12:49:34.000Z
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
1
2021-07-09T05:37:02.000Z
2021-07-09T05:37:02.000Z
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
2
2021-07-10T10:25:08.000Z
2021-07-11T03:16:38.000Z
from setuptools import setup, find_packages VERSION = "0.1.1" setup( name="hhsh", version=VERSION, description="能不能好好说话? cli", long_description="能不能好好说话? cli", keywords="python hhsh cli terminal", author="itorr,yihong0618", author_email="zouzou0208@gmail.com", url="https://github.com/y...
29.15625
53
0.621651
96
933
5.9375
0.677083
0.1
0.131579
0.136842
0
0
0
0
0
0
0
0.030683
0.231511
933
31
54
30.096774
0.764296
0
0
0
0
0
0.476956
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
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
0
0
0
0
1
0
08058658e2bf102d2ac28a2a02f1701e1eb02d65
937
py
Python
container/base/src/cache.py
hmrc/devops-tooling-build
03d62df3a45d5dcce306cd6cad6c95a24a4b34ab
[ "Apache-2.0" ]
1
2021-11-10T16:09:43.000Z
2021-11-10T16:09:43.000Z
container/base/src/cache.py
hmrc/devops-tooling-build
03d62df3a45d5dcce306cd6cad6c95a24a4b34ab
[ "Apache-2.0" ]
6
2021-07-02T14:15:25.000Z
2022-02-03T12:57:36.000Z
container/base/src/cache.py
hmrc/devops-tooling-build
03d62df3a45d5dcce306cd6cad6c95a24a4b34ab
[ "Apache-2.0" ]
null
null
null
import datetime import hashlib import os import pathlib from typing import Optional import yaml def key(name): return hashlib.sha1(name.encode()).hexdigest() def path(name): return pathlib.Path(os.environ['CACHE_AWS_MNT']) / key(name) def aws_get(name) -> Optional[dict]: try: with path(name)...
25.324324
78
0.649947
122
937
4.92623
0.54918
0.053245
0.039933
0.053245
0
0
0
0
0
0
0
0.002782
0.232657
937
36
79
26.027778
0.831711
0.060832
0
0
0
0
0.041002
0
0
0
0
0
0
1
0.16
false
0.04
0.24
0.08
0.52
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
0
0
1
0
0
1
08075a784b23b26531f0e2fcf4a1653e8cbbe078
1,118
py
Python
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
from collections import Counter import pytest from datasets import load_dataset from lassl.blender import DatasetBlender def test_blending(): try: from langid import classify except ImportError as _: raise ImportError( "To test dataset blending, you need to install langid. " ...
30.216216
82
0.620751
143
1,118
4.776224
0.468531
0.064422
0.065886
0.04978
0
0
0
0
0
0
0
0.017162
0.218247
1,118
36
83
31.055556
0.764302
0
0
0
0
0
0.219141
0.023256
0
0
0
0
0.111111
1
0.037037
false
0.037037
0.259259
0
0.296296
0.037037
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
0
0
0
0
1
0
080796109f90dd5533115b48ae3a4657f5fb4224
4,542
py
Python
wisps/data_analysis/path_parser.py
caganze/WISPS
81b91f8b49c7345ab68b7c4eb480716985e8905c
[ "MIT" ]
null
null
null
wisps/data_analysis/path_parser.py
caganze/WISPS
81b91f8b49c7345ab68b7c4eb480716985e8905c
[ "MIT" ]
7
2021-02-02T21:51:56.000Z
2022-01-13T00:57:45.000Z
wisps/data_analysis/path_parser.py
caganze/wisps
6572201f94a6af6d1c0a306f2f447215d4330bd7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ After the introduction of version 6.2, all wisp data and hst-3d are now on MAST 3D-HST has not added any new data nor changed their directory structure, but that's not the case for WISP Aim: parse new directories to make them compatible with v5.0 """ import os import glob from ..utils...
34.409091
170
0.647952
666
4,542
4.274775
0.208709
0.073762
0.061819
0.04215
0.505796
0.488233
0.432385
0.432385
0.432385
0.432385
0
0.034817
0.158961
4,542
132
171
34.409091
0.710471
0.247688
0
0.350649
0
0
0.188075
0.082171
0
0
0
0
0
1
0.064935
false
0
0.038961
0
0.181818
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
0
0
0
0
1
0
08092e15e7923e75bbc9274300846c3ee3fbd2d9
158
py
Python
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
tests/utils/TestTransaction.py
Shaid3r/reservations
43e17ae88eed74593879f9f8c5a9bed7252888f7
[ "MIT" ]
null
null
null
import storage import pytest class TestTransaction: @pytest.fixture(autouse=True) def transact(self): yield storage.conn.rollback()
15.8
33
0.683544
17
158
6.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.234177
158
9
34
17.555556
0.892562
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
080b1f9b578c418d65d4a8c4119d27d86ab70fa5
2,451
py
Python
aldryn_redirects/migrations/0003_auto_20171206_1150.py
compoundpartners/aldryn-redirects
ed1b1e90a7774a4bead771e158e30d5846e64e60
[ "BSD-3-Clause" ]
1
2020-05-14T06:41:50.000Z
2020-05-14T06:41:50.000Z
aldryn_redirects/migrations/0003_auto_20171206_1150.py
compoundpartners/aldryn-redirects
ed1b1e90a7774a4bead771e158e30d5846e64e60
[ "BSD-3-Clause" ]
11
2016-01-11T11:42:58.000Z
2018-11-05T16:13:27.000Z
aldryn_redirects/migrations/0003_auto_20171206_1150.py
compoundpartners/aldryn-redirects
ed1b1e90a7774a4bead771e158e30d5846e64e60
[ "BSD-3-Clause" ]
6
2016-11-22T04:53:37.000Z
2018-11-15T13:56:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2017-12-06 13:50 from __future__ import unicode_literals import aldryn_redirects.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'),...
50.020408
268
0.651571
247
2,451
6.238866
0.417004
0.07852
0.031149
0.028553
0.203764
0.173913
0.173913
0.173913
0.102531
0.102531
0
0.019402
0.22195
2,451
48
269
51.0625
0.788673
0.027744
0
0.341463
1
0
0.292017
0.051261
0
0
0
0
0
1
0
false
0
0.097561
0
0.170732
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
0
0
0
0
0
0
1
0811b7481588bc53cfde102ac50bffe1f9e0e41c
161
py
Python
velocity/constants.py
aisthesis/mfstockmkt
d442ec4cb3b379f6984397926b4466420236c032
[ "MIT" ]
null
null
null
velocity/constants.py
aisthesis/mfstockmkt
d442ec4cb3b379f6984397926b4466420236c032
[ "MIT" ]
1
2015-12-27T17:37:54.000Z
2015-12-31T05:06:06.000Z
velocity/constants.py
aisthesis/mfstockmkt
d442ec4cb3b379f6984397926b4466420236c032
[ "MIT" ]
1
2020-05-02T08:25:35.000Z
2020-05-02T08:25:35.000Z
""" .. Copyright (c) 2015 Marshall Farrier license http://opensource.org/licenses/MIT Constants ========= """ UPVEL_COL = 'Up Vel' DOWNVEL_COL = 'Down Vel'
14.636364
45
0.652174
20
161
5.15
0.9
0
0
0
0
0
0
0
0
0
0
0.029412
0.15528
161
10
46
16.1
0.727941
0.652174
0
0
0
0
0.291667
0
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
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
1
0811dfdcb7e741d544fe728950a10ae174c04263
3,284
py
Python
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan import numpy as np import math from std_msgs.msg import String def callback(data): laser_arr_f = np.array(data.ranges[0:10]) laser_arr_l= np.array(data.ranges[85:95]) laser_arr_r = np.array(d...
29.061947
76
0.546894
452
3,284
3.829646
0.205752
0.057192
0.063547
0.055459
0.631427
0.59792
0.573657
0.550549
0.537262
0.537262
0
0.050409
0.329476
3,284
113
77
29.061947
0.735695
0.350183
0
0.508475
0
0
0.02358
0
0
0
0
0
0
1
0.033898
false
0.033898
0.101695
0
0.152542
0.016949
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
0
0
0
0
1
0
08138545899e44b68cb9f2c6902d9d5be0b380f7
2,622
py
Python
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
""" Registry for tracking providers dynamically in OpenNSA. Keeping track of providers in a dynamical way in an NSI implementation is a huge pain in the ass. This is a combination of things, such as seperate identities and endpoints, callbacks, and the combination of local providers. The class ProviderRegistry tries ...
34.051948
108
0.672006
332
2,622
5.14759
0.337349
0.093622
0.077238
0.036864
0.228204
0.21416
0.113517
0.113517
0.065535
0.065535
0
0
0.250191
2,622
76
109
34.5
0.869278
0.2746
0
0
0
0
0.102178
0
0
0
0
0
0
1
0.151515
false
0
0.060606
0
0.363636
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
0
0
0
0
1
0
081559dc3ab661ae3a1df9c2d52bc8d2ba1f2ae4
997
py
Python
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
2
2015-12-21T02:18:54.000Z
2016-09-08T13:56:36.000Z
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
1
2015-12-21T19:26:21.000Z
2015-12-21T19:26:21.000Z
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
null
null
null
from test_utils import TempDirectoryContext from shedclient import task_tracker def test_task_tracker(): with TempDirectoryContext() as context: config = dict( task_tracking_directory=context.temp_directory ) tracker = task_tracker.build_task_tracker(config) assert len...
33.233333
76
0.657974
120
997
5.175
0.308333
0.070853
0.10306
0.128824
0.299517
0.299517
0.299517
0.196457
0.196457
0.196457
0
0.028461
0.224674
997
29
77
34.37931
0.774903
0
0
0.190476
0
0
0.066199
0
0
0
0
0
0.333333
1
0.047619
false
0
0.095238
0
0.142857
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
0
0
0
0
1
0
081691097da1b52252fbbf22f08b3e7856a39982
5,825
py
Python
gonder_rc.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
1
2021-05-28T17:27:50.000Z
2021-05-28T17:27:50.000Z
gonder_rc.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
null
null
null
gonder_rc.py
TarikCinar/python-sesli-asistan
1a29a8d3081b67ff352cf03f7b01ac01b7118deb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.13.0) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x04\x1a\ \x00\ \x01\x08\x3e\x78\x9c\xed\x9c\x4d\x6e\xd3\x50\x14\x85\x1d\x65\x10\ \x66\x61\xc4\x...
47.357724
103
0.72721
1,329
5,825
3.158766
0.222724
0.13292
0.154359
0.148642
0.135779
0.135779
0.120534
0.120534
0.120534
0.120534
0
0.27106
0.036052
5,825
122
104
47.745902
0.476581
0.026094
0
0.075472
0
0.688679
0.000176
0
0
1
0
0
0
1
0.018868
false
0
0.009434
0
0.028302
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
081745d5d369bb388f32e0870139795f7243852c
213
py
Python
tuples-and-sets/3_unique_names.py
Minkov/python-advanced-2020-01
f2ee26f1325d943529673457a1cbba5657ae5905
[ "MIT" ]
5
2020-01-16T18:17:08.000Z
2020-04-12T06:42:47.000Z
tuples-and-sets/3_unique_names.py
Minkov/python-advanced-2020-01
f2ee26f1325d943529673457a1cbba5657ae5905
[ "MIT" ]
null
null
null
tuples-and-sets/3_unique_names.py
Minkov/python-advanced-2020-01
f2ee26f1325d943529673457a1cbba5657ae5905
[ "MIT" ]
null
null
null
n = int(input()) # names = {input() for _ in range(n)} names = [] for _ in range(n): names.append(input()) unique_names = list(set(names)) [print(name) for name in sorted(unique_names, key=names.index)]
15.214286
42
0.643192
33
213
4.030303
0.484848
0.075188
0.150376
0.165414
0.240602
0
0
0
0
0
0
0
0.178404
213
13
43
16.384615
0.76
0.164319
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
081c3a4e5b548789411fc11be988031444e552dd
233
py
Python
dialogue/tensorflow/task/common/common.py
ishine/nlp-dialogue
d47c1438cb5c45c2c2aebfb82fea92bef4c3d65c
[ "Apache-2.0" ]
478
2020-10-28T01:30:30.000Z
2022-03-30T06:34:07.000Z
paper-code/tensorflow_src/models/task/common/common.py
HengYongChao/nlp-paper
fcf985e3c9bfd6944d07c4c36afbaee3384d040d
[ "Apache-2.0" ]
1
2021-08-29T11:55:09.000Z
2021-11-04T09:25:19.000Z
paper-code/tensorflow_src/models/task/common/common.py
HengYongChao/nlp-paper
fcf985e3c9bfd6944d07c4c36afbaee3384d040d
[ "Apache-2.0" ]
89
2021-01-05T06:11:55.000Z
2022-03-24T12:51:57.000Z
from optparse import OptionParser class CmdParser(OptionParser): def error(self, msg): print('Error!提示信息如下:') self.print_help() self.exit(0) def exit(self, status=0, msg=None): exit(status)
19.416667
39
0.622318
29
233
4.965517
0.586207
0
0
0
0
0
0
0
0
0
0
0.011561
0.257511
233
11
40
21.181818
0.820809
0
0
0
0
0
0.055794
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
081da69448bb7e8d65c5e3d690d670101f274a22
587
py
Python
posts/migrations/0003_auto_20200522_0446.py
NotBlizzard/lark
b348f8d2b532ce20581030397cbba7f6565d1c56
[ "MIT" ]
2
2020-12-10T06:13:36.000Z
2021-01-15T09:32:41.000Z
posts/migrations/0003_auto_20200522_0446.py
NotBlizzard/lark
b348f8d2b532ce20581030397cbba7f6565d1c56
[ "MIT" ]
7
2021-03-10T21:21:55.000Z
2021-09-22T19:20:03.000Z
posts/migrations/0003_auto_20200522_0446.py
NotBlizzard/lark
b348f8d2b532ce20581030397cbba7f6565d1c56
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-22 04:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20200520_0536'), ] operations = [ migrations.AddField( model_name='post', name='subtitle', ...
23.48
63
0.574106
60
587
5.466667
0.716667
0.054878
0.079268
0.103659
0
0
0
0
0
0
0
0.091358
0.310051
587
24
64
24.458333
0.718519
0.076661
0
0.222222
1
0
0.1
0.042593
0
0
0
0
0
1
0
false
0
0.055556
0
0.222222
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
0
0
0
0
0
0
1
081ea6e893da219c4f8a085a91c4473a4ef03166
191
py
Python
tasking/utils/models.py
cmanallen/tasking
0a613357148afdb4b55078c58429ec45bb60a436
[ "MIT" ]
null
null
null
tasking/utils/models.py
cmanallen/tasking
0a613357148afdb4b55078c58429ec45bb60a436
[ "MIT" ]
null
null
null
tasking/utils/models.py
cmanallen/tasking
0a613357148afdb4b55078c58429ec45bb60a436
[ "MIT" ]
null
null
null
from django.db import models class TimeStamp(models.Model): created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True) class Meta: abstract = True
21.222222
50
0.78534
26
191
5.653846
0.653846
0.258503
0.312925
0.353742
0
0
0
0
0
0
0
0
0.125654
191
9
51
21.222222
0.88024
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
6
08212ae6445b938c3145af03c666f1c2c0d5163b
439
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
2
2020-06-04T19:17:13.000Z
2020-06-05T08:05:16.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
1
2020-08-06T15:01:47.000Z
2020-08-06T15:01:47.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
2
2020-06-15T19:26:33.000Z
2020-11-20T20:24:03.000Z
import logging import pytest from loguru import logger @pytest.fixture(name='caplog', autouse=True) def loguru_caplog(caplog): class PropogateHandler(logging.Handler): def emit(self, record): logging.getLogger(record.name).handle(record) logger.remove() handler_id = logger.add(Prop...
21.95
84
0.708428
51
439
6.039216
0.568627
0.077922
0.123377
0.136364
0
0
0
0
0
0
0
0
0.177677
439
19
85
23.105263
0.853186
0
0
0
0
0
0.034169
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.461538
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
0
0
0
0
1
0
08217e660e94837e28763173bb72fbc25fe9ee5e
216
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-enable_lightkit-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a plotter without any lights and then enable the # default light kit. # import pyvista pl = pyvista.Plotter(lighting=None) pl.enable_lightkit() actor = pl.add_mesh(pyvista.Cube(), show_edges=True) pl.show()
24
57
0.763889
34
216
4.764706
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.125
216
8
58
27
0.857143
0.342593
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
0
0
1
0822f1091f07394bee07ab3fa63b7142aa217e7c
1,353
py
Python
sphinx/environment/managers/__init__.py
rweickelt/sphinx
1a4c41a7691e8f78d42e2db221192962c53b27df
[ "BSD-2-Clause" ]
null
null
null
sphinx/environment/managers/__init__.py
rweickelt/sphinx
1a4c41a7691e8f78d42e2db221192962c53b27df
[ "BSD-2-Clause" ]
null
null
null
sphinx/environment/managers/__init__.py
rweickelt/sphinx
1a4c41a7691e8f78d42e2db221192962c53b27df
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.environment.managers ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Manager components for sphinx.environment. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ if False: # For type annotation from typing import An...
26.529412
68
0.604582
146
1,353
5.554795
0.40411
0.051788
0.040691
0.099877
0.147965
0.147965
0.147965
0.10111
0
0
0
0.009165
0.274205
1,353
50
69
27.06
0.816701
0.397635
0
0.304348
0
0
0
0
0
0
0
0
0
1
0.26087
false
0
0.130435
0
0.521739
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
0
0
0
0
1
0822f39156313d04e61ff6ddaaed66e14edc3a38
3,692
py
Python
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
null
null
null
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
null
null
null
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
1
2021-05-27T07:44:51.000Z
2021-05-27T07:44:51.000Z
import getopt import sys import os import re import string import xml.etree.ElementTree as ET input_filename = "" expansion_filename = "" output_type = "combine" exclude = set(string.punctuation) options, remainder = getopt.getopt(sys.argv[1:], 'i:e:t:', ['inputfile=', 'expansionfile=', 'type=']) for opt, arg in op...
34.830189
119
0.600488
421
3,692
5.092637
0.228029
0.084888
0.079291
0.039179
0.245802
0.197761
0.179104
0.114739
0.114739
0.114739
0
0.006995
0.225623
3,692
105
120
35.161905
0.742917
0
0
0.073171
0
0.012195
0.150447
0.005693
0
0
0
0
0
1
0.012195
false
0
0.073171
0
0.109756
0.109756
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
0
0
0
0
1
0
08235f7faf3865296eebd91470431d320d7b228e
370
py
Python
createGlobalMap.py
abhi20sc/autoClim
b131a19e935e8ba7778a2c73107a183df37e92da
[ "MIT" ]
2
2021-07-28T05:58:20.000Z
2021-08-16T18:27:27.000Z
createGlobalMap.py
abhi20sc/autoClim
b131a19e935e8ba7778a2c73107a183df37e92da
[ "MIT" ]
null
null
null
createGlobalMap.py
abhi20sc/autoClim
b131a19e935e8ba7778a2c73107a183df37e92da
[ "MIT" ]
3
2021-08-05T15:21:05.000Z
2021-10-04T03:42:16.000Z
import cartopy.crs as ccrs import cartopy.feature as cf from matplotlib import pyplot as plt from matplotlib import image as img def createMap(): fig = plt.figure() ax = plt.axes(projection=ccrs.PlateCarree()) ax.coastlines(linewidth=1) ax.add_feature(cf.BORDERS,linestyle='-',linewidth=1) fig.savefig('globalMap.p...
30.833333
64
0.767568
57
370
4.929825
0.631579
0.092527
0.142349
0
0
0
0
0
0
0
0
0.012158
0.110811
370
12
65
30.833333
0.841945
0
0
0
0
0
0.051213
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
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
0
0
0
0
1
0823b5eeb8c1036e06aae43d61945a3ec0226291
2,124
py
Python
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
8
2022-02-25T13:15:07.000Z
2022-03-20T18:29:49.000Z
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
1
2022-02-25T13:21:33.000Z
2022-02-25T13:21:33.000Z
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
1
2022-03-31T23:43:12.000Z
2022-03-31T23:43:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import subprocess import unittest import filecmp import gdal import otbApplication as otb from abc import ABC from decloud.core.system import get_env_var, pathify, basename class DecloudTest(ABC, unittest.TestCase): DECLOUD_DATA_DIR = get_env_var("DECLOUD_...
38.618182
107
0.672787
246
2,124
5.621951
0.353659
0.069414
0.061461
0.041938
0.122921
0.122921
0.122921
0.122921
0.122921
0.122921
0
0.004192
0.213748
2,124
54
108
39.333333
0.823952
0.020245
0
0.051282
0
0.051282
0.154401
0.022607
0
0
0
0
0.102564
1
0.102564
false
0
0.205128
0.025641
0.384615
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
0
0
0
0
1
0
08248ac0b1e2686f247d443d0208fc7018480282
1,327
py
Python
test/test_merge.py
tawiesn/sclblonnx
0cf73112db5df13009cd2ddb5d49744689096209
[ "MIT" ]
null
null
null
test/test_merge.py
tawiesn/sclblonnx
0cf73112db5df13009cd2ddb5d49744689096209
[ "MIT" ]
null
null
null
test/test_merge.py
tawiesn/sclblonnx
0cf73112db5df13009cd2ddb5d49744689096209
[ "MIT" ]
null
null
null
from sclblonnx import add_output, add_input, add_node, node, empty_graph, add_constant, display, merge, run import numpy as np def test_merge(): # Subgraph 1 sg1 = empty_graph("Graph 1") n1 = node('Add', inputs=['x1', 'x2'], outputs=['sum']) sg1 = add_node(sg1, n1) sg1 = add_input(sg1, 'x1', "FLO...
34.025641
107
0.605124
206
1,327
3.820388
0.291262
0.044473
0.076239
0.035578
0.233799
0.142313
0.142313
0.142313
0.142313
0.142313
0
0.06203
0.198191
1,327
38
108
34.921053
0.677632
0.087415
0
0
0
0
0.173732
0
0
0
0
0.026316
0.090909
1
0.045455
false
0
0.090909
0
0.136364
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
0
0
0
0
0
0
0
0
1
08248cc60a1189c226093e9c782fd70e1acdd43e
2,609
py
Python
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
import glob import cv2 import numpy as np class CameraCalibrator: ''' Class for correcting the distortion of the pictures taken from the camera. ''' def __init__(self, calibration_pictures_path_pattern='../camera_cal/calibration*.jpg'): ''' :param calibration_pictures_path_pattern: F...
38.367647
143
0.63166
339
2,609
4.778761
0.412979
0.058642
0.070988
0.092593
0.062963
0
0
0
0
0
0
0.021402
0.283634
2,609
67
144
38.940299
0.845372
0.40207
0
0
0
0
0.020906
0.020906
0
0
0
0
0
1
0.096774
false
0
0.096774
0
0.258065
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
0
0
0
0
1
0
0827c8ec658edf16eba00017e1a771b5d2f84def
591
py
Python
nicos_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Instrument shutter' prefix = "IOC" devices = dict( beam_monitor_1=device( 'nicos_ess.devices.epics.motor.EpicsMotor', description="Beam monitor continuous position feedback", motorpv=f'{prefix}:m8', abslimits=(-10, 10), unit='mm', speed=5., ), ...
24.625
64
0.566836
63
591
5.206349
0.68254
0.134146
0.073171
0
0
0
0
0
0
0
0
0.03163
0.304569
591
23
65
25.695652
0.766423
0
0
0
0
0
0.341794
0.118443
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
1
0