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
dd0ad7ba7e54e19924df94991d6b1489d3eea35f
569
py
Python
test/programytest/storage/stores/sql/store/test_braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:13:45.000Z
2018-09-01T20:00:55.000Z
test/programytest/storage/stores/sql/store/test_braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
1
2018-09-12T18:30:17.000Z
2018-09-12T18:30:17.000Z
test/programytest/storage/stores/sql/store/test_braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:08:36.000Z
2018-09-23T06:11:04.000Z
import unittest import unittest from programy.storage.stores.sql.engine import SQLStorageEngine from programy.storage.stores.sql.config import SQLStorageConfiguration import programytest.storage.engines as Engines class SQLBraintreeStoreTests(unittest.TestCase): @unittest.skipIf(Engines.sql is False, Engines....
27.095238
70
0.766257
57
569
7.596491
0.526316
0.064665
0.08776
0.115473
0.12933
0
0
0
0
0
0
0
0.163445
569
20
71
28.45
0.909664
0
0
0.153846
0
0
0
0
0
0
0
0
0.076923
1
0.076923
false
0
0.384615
0
0.538462
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
dd0c6e073983df0cc8b450149a982d9a5d9d67e7
496
py
Python
Methods/Machine/Magnet/comp_volume.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
2
2020-06-29T13:48:37.000Z
2021-06-15T07:34:05.000Z
Methods/Machine/Magnet/comp_volume.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
Methods/Machine/Magnet/comp_volume.py
Superomeg4/pyleecan
2b695b5f39e77475a07aa0ea89489fb0a9659337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """@package Methods.Machine.MagnetType10.comp_volume Compute the Magnet volume method @date Created on Wed Dec 17 14:56:19 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ def comp_volume(self): """Compute the Magnet volume (by analytical computation) Parameters ...
19.076923
60
0.633065
63
496
4.920635
0.746032
0.116129
0.103226
0.141935
0
0
0
0
0
0
0
0.062992
0.231855
496
25
61
19.84
0.750656
0.745968
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
dd0f667db4b18c2490c8648bb9cb2e8044ea85a3
1,192
py
Python
server/app/database.py
MozammilKhan/tdsb-project
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
12
2021-07-16T08:06:39.000Z
2022-03-26T11:49:33.000Z
server/app/database.py
MozammilKhan/tdsb-project
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
7
2021-03-10T09:19:04.000Z
2022-02-27T00:20:22.000Z
server/app/database.py
a-fazal/homework-management-app
2d982155b343a5f8fbb93a830000bf5aaaff161f
[ "MIT" ]
null
null
null
import pymongo from pymongo import MongoClient from bson.objectid import ObjectId from gridfs import GridFS class DB(object): URI = "mongodb+srv://TDSB301:csc301csc301@tdsb-x6zvw.mongodb.net/test?retryWrites=true&w=majority" @staticmethod def init(): client = MongoClient(DB.URI) DB.DAT...
23.372549
102
0.677013
142
1,192
5.626761
0.352113
0.150188
0.125156
0.057572
0.112641
0.112641
0.112641
0
0
0
0
0.010753
0.219799
1,192
50
103
23.84
0.848387
0.025168
0
0.242424
0
0.030303
0.080965
0.077519
0
0
0
0
0
1
0.242424
false
0
0.121212
0.090909
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
1
0
0
0
0
1
0
0
2
dd28c319498de0888dee9bf8a59c3d8d91f7fe6e
692
py
Python
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
example.py
KostyaKow/PyWebKitGtk-wrapper
97d757cc86dd7be0a0c1ac5444ada54203944289
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python import sys, time sys.path.append('..') import pwkg def setupElectron(index_path, on_event): w = pwkg.Window(100, 100, "PWKG Window", debug=True) w.load(index_path) w.on_gui_event += on_event return w def sleep(x): time.sleep(x) def on_js_event(msg): print(msg) print(msg['t...
19.222222
58
0.669075
108
692
4.157407
0.518519
0.080178
0.040089
0
0
0
0
0
0
0
0
0.017422
0.17052
692
35
59
19.771429
0.764808
0.241329
0
0
0
0
0.100386
0
0
0
0
0.028571
0
1
0.227273
false
0
0.090909
0
0.363636
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
dd3047d85c23bb8e0d8733d14c20aaef67a4f456
1,279
py
Python
Heap/TestCircularDoublyLinkedList.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
Heap/TestCircularDoublyLinkedList.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
Heap/TestCircularDoublyLinkedList.py
kopok2/DataStructures
d3877b542872c0be0f97306061c6ce0c3d98f1f3
[ "MIT" ]
null
null
null
# encoding-utf-8 import unittest from CircularDoublyLinkedList import CircularDoublyLinkedList class TestCircularDoublyLinkedList(unittest.TestCase): def test_simple_list(self): cdll = CircularDoublyLinkedList(17) cdll.insert_new_node(24) cdll.insert_new_node(23) cdll.insert_new_no...
31.195122
81
0.664582
168
1,279
4.755952
0.214286
0.180225
0.260325
0.170213
0.392991
0.335419
0.310388
0.270338
0.270338
0.270338
0
0.077236
0.230649
1,279
40
82
31.975
0.734756
0.010946
0
0.30303
0
0
0.006334
0
0
0
0
0
0.090909
1
0.090909
false
0
0.060606
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dd39e5888f04a9c62971bb235ed2474f6e75cb70
732
py
Python
tests/test_statefulset_partitioner.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
1
2019-12-17T10:06:03.000Z
2019-12-17T10:06:03.000Z
tests/test_statefulset_partitioner.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
1
2019-07-04T15:22:58.000Z
2019-07-05T07:23:31.000Z
tests/test_statefulset_partitioner.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
2
2019-06-05T15:40:49.000Z
2019-12-10T09:24:23.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Qotto, 2019 import uuid import pytest from tonga.services.coordinator.partitioner.statefulset_partitioner import StatefulsetPartitioner from tonga.errors import OutsideInstanceNumber def test_statefulset_partitioner_with_str_uuid_key(): statefulset_partition...
30.5
97
0.756831
92
732
5.815217
0.478261
0.28785
0.02243
0.029907
0.074766
0.074766
0.074766
0.074766
0.074766
0.074766
0
0.050633
0.136612
732
23
98
31.826087
0.795886
0.081967
0
0
0
0
0
0
0
0
0
0
0.083333
1
0.166667
false
0
0.333333
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
2
dd3e96f9ce857403dd4a2db72cd220f5e8f4f24e
320
py
Python
eris/decorators/__init__.py
xesxen/eris
8deb6092e79d48436dc2278bde66bd51041d12b2
[ "BSD-3-Clause" ]
1
2021-08-10T23:33:00.000Z
2021-08-10T23:33:00.000Z
eris/decorators/__init__.py
xesxen/eris
8deb6092e79d48436dc2278bde66bd51041d12b2
[ "BSD-3-Clause" ]
3
2018-07-11T21:30:04.000Z
2021-08-08T15:49:47.000Z
eris/decorators/__init__.py
xesxen/eris
8deb6092e79d48436dc2278bde66bd51041d12b2
[ "BSD-3-Clause" ]
1
2021-08-07T19:26:58.000Z
2021-08-07T19:26:58.000Z
""" Decorator module. Contains various decorators for hook callbacks. """ class BaseDecorator: """ Base class for decorators in Eris. """ # The interface for hooks means that events will always be the first argument, anything else # will be passed as payloads for the events. _EVENT_OFFSET: int = 1
22.857143
96
0.7125
43
320
5.255814
0.767442
0
0
0
0
0
0
0
0
0
0
0.004
0.21875
320
13
97
24.615385
0.9
0.740625
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
dd40df1a6e342c1e7f5db31aaac46b2e97bc387e
367
py
Python
geoloc-server/test.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
1
2021-12-06T01:32:56.000Z
2021-12-06T01:32:56.000Z
geoloc-server/test.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
null
null
null
geoloc-server/test.py
muzammilar/passport
7918561916fbcb5e82cd73d577873fb17a819d19
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ test.py ~~~~~~~~~~~ Internal file for dummy function checking. :author: Muzammil Abdul Rehman :copyright: Northeastern University © 2018. :license: Custom BSD, see LICENSE for more details. :email: passport@ccs.neu.edu """ import time import configs.system pr...
19.315789
55
0.667575
46
367
5.326087
0.869565
0.106122
0
0
0
0
0
0
0
0
0
0.027211
0.19891
367
19
56
19.315789
0.802721
0.057221
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0.25
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
1
0
0
0
0
2
dd4ce91c6fb624124f88fe2d91bd2759cfbdb144
177
py
Python
Python3/HTTPRequests/first_request.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/HTTPRequests/first_request.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/HTTPRequests/first_request.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
import requests url = "http://www.google.com" response = requests.get(url) print(f"your request to {url} came back w/ status code {response.status_code}") print(response.text)
25.285714
79
0.745763
28
177
4.678571
0.714286
0.152672
0
0
0
0
0
0
0
0
0
0
0.112994
177
7
80
25.285714
0.834395
0
0
0
0
0
0.505618
0.123596
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
dd6897127085362a14cecd61d5287a64d2682f0f
437
py
Python
app/admin.py
iam-feysal/awwwwwwwards
7bf2cadb4298059276a1bb1da9c58100bc5c3ba4
[ "Unlicense" ]
null
null
null
app/admin.py
iam-feysal/awwwwwwwards
7bf2cadb4298059276a1bb1da9c58100bc5c3ba4
[ "Unlicense" ]
4
2021-03-18T21:15:53.000Z
2021-09-08T00:33:30.000Z
app/admin.py
iam-feysal/awwwwwwwards
7bf2cadb4298059276a1bb1da9c58100bc5c3ba4
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import Project,Profile,Review,Comment # Register your models here. class ReviewAdmin(admin.ModelAdmin): model = Review list_display = ('wine', 'rating', 'user_name', 'comment', 'pub_date') list_filter = ['pub_date', 'user_name'] search_fields = ['comment'] ...
27.3125
73
0.741419
56
437
5.660714
0.517857
0.113565
0.214511
0
0
0
0
0
0
0
0
0
0.125858
437
15
74
29.133333
0.829843
0.059497
0
0
0
0
0.142157
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.636364
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
dd6ace9f94b5eb0f3bd6714683edc581abb0fb4b
913
py
Python
mrc/localization/color/nn/models.py
Lukasz1928/mobile-robots-control
81820b35dab10b14f58d66079b0a8f82ef819bee
[ "MIT" ]
2
2018-06-28T08:07:06.000Z
2018-07-14T10:00:31.000Z
mrc/localization/color/nn/models.py
Lukasz1928/mobile-robots-control
81820b35dab10b14f58d66079b0a8f82ef819bee
[ "MIT" ]
6
2018-10-15T11:00:13.000Z
2018-12-19T18:06:49.000Z
mrc/localization/color/nn/models.py
Lukasz1928/mobile-robots-control
81820b35dab10b14f58d66079b0a8f82ef819bee
[ "MIT" ]
null
null
null
from abc import ABC import chainer import chainer.functions as F import chainer.links as L class AbstractModel(ABC): def predict(self, blob): pass class DefaultModel: def __init__(self, n_units=100, n_out=6, colors=('red', 'blue', 'green', 'cyan', 'magenta', 'yellow')): self.n_units = n_uni...
27.666667
107
0.649507
127
913
4.472441
0.433071
0.044014
0.052817
0.06338
0
0
0
0
0
0
0
0.014225
0.230011
913
32
108
28.53125
0.793741
0
0
0.083333
0
0
0.031763
0
0
0
0
0
0
1
0.208333
false
0.041667
0.166667
0.041667
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
0
0
0
1
0
0
2
dd6b76066fbbff547119d06d1fa085e9564dbb9a
301
py
Python
Aula02/exercise1.py
GabiDeutner/Python_exercises
3cfe8d02f3d3ee826160876cc94455f99281b273
[ "MIT" ]
4
2021-08-05T09:12:22.000Z
2021-12-09T01:27:44.000Z
Aula02/exercise1.py
GabiDeutner/Python_exercises
3cfe8d02f3d3ee826160876cc94455f99281b273
[ "MIT" ]
null
null
null
Aula02/exercise1.py
GabiDeutner/Python_exercises
3cfe8d02f3d3ee826160876cc94455f99281b273
[ "MIT" ]
null
null
null
''' 1. Escreva um programa para ler 2 valores (considere que não serão informados valores iguais) e escrever o maior deles. ''' print('Digite o numero 1:') numero1 = float(input()) print('Digite o numero 2:') numero2 = float(input()) if(numero1>numero2): print(numero1) else: print(numero2)
21.5
94
0.704319
44
301
4.818182
0.636364
0.103774
0.113208
0.169811
0
0
0
0
0
0
0
0.039841
0.166113
301
14
95
21.5
0.804781
0.398671
0
0
0
0
0.209302
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
2
dd882502761b647d5084ae253ad61b515206856e
311
py
Python
Model/StaffModel.py
izazdhiya/E-Library-Desktop
2f6817e8e55045b10be97866888a7c5870433546
[ "MIT" ]
2
2021-11-08T05:21:57.000Z
2021-12-26T10:53:29.000Z
Model/StaffModel.py
izazdhiya/E-Library-Desktop
2f6817e8e55045b10be97866888a7c5870433546
[ "MIT" ]
1
2022-01-13T18:48:01.000Z
2022-01-13T19:35:37.000Z
Model/StaffModel.py
izazdhiya/E-Library-Desktop
2f6817e8e55045b10be97866888a7c5870433546
[ "MIT" ]
4
2021-06-02T17:29:26.000Z
2022-01-18T04:30:00.000Z
from .BaseModel import * class StaffModel(BaseModel): def __init__(self): super().__init__() def validStaff(self,usr,passwd): query = f"SELECT * FROM staff WHERE email='{usr}' AND pass='{passwd}'" try: return self.database.fetchall(query)[0][0] except Exception as e: return False
23.923077
73
0.672026
41
311
4.902439
0.731707
0
0
0
0
0
0
0
0
0
0
0.007968
0.192926
311
13
74
23.923077
0.792829
0
0
0
0
0
0.197324
0
0
0
0
0
0
1
0.2
false
0.2
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
dd918643a6386d2b9161f68fbb57636ef624b479
431
py
Python
trello/cards/views.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
trello/cards/views.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
trello/cards/views.py
copydataai/clon-trello
f088a6da770d9cc32decad6ae45637207d91a80b
[ "MIT" ]
null
null
null
# DRF from rest_framework.viewsets import ModelViewSet from rest_framework import permissions from rest_framework.permissions import IsAuthenticated # Serializer from trello.cards.serializers import CardSerializer # Model from trello.cards.models import Card class CardViewSet(ModelViewSet): serializer_class =...
22.684211
54
0.821346
47
431
7.425532
0.553191
0.068768
0.146132
0
0
0
0
0
0
0
0
0
0.12761
431
18
55
23.944444
0.928191
0.046404
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.555556
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
dd9936a4f458a64f475403e7cf2102a4b671ff01
1,384
py
Python
soluciones/operaciones/operaciones.py
carlosviveros/Soluciones
115f4fa929c7854ca497e4c994352adc64565456
[ "MIT" ]
4
2021-12-14T23:51:25.000Z
2022-03-24T11:14:00.000Z
soluciones/operaciones/operaciones.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
soluciones/operaciones/operaciones.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
5
2021-11-10T06:49:50.000Z
2022-03-24T01:42:28.000Z
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython """ # del repositorio del grupo AyudaEnPython: # https://github.com/AyudaEnPython/Soluciones/blob/main/soluciones/calculadora/operadores.py def suma(a: float, b: float) -> float: """Suma dos números. :param a: Primer número. :a type: float ...
23.066667
92
0.624277
185
1,384
4.67027
0.291892
0.092593
0.032407
0.055556
0.570602
0.491898
0.462963
0.462963
0.462963
0.462963
0
0
0.260116
1,384
60
93
23.066667
0.84375
0.632948
0
0
0
0
0.083102
0
0
0
0
0
0
1
0.363636
false
0
0
0
0.818182
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
1
0
0
2
dd9f5bef9d56f89cdd0394dabf304b5e86c3d16b
182
py
Python
tests/test_klass.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
1
2022-03-08T02:32:20.000Z
2022-03-08T02:32:20.000Z
tests/test_klass.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
2
2022-03-16T06:40:48.000Z
2022-03-17T00:08:05.000Z
tests/test_klass.py
surroundaustralia/ndesgateway-testclient
fe6aa6ed7bc2e3664edde16ce4f82fdf8b3b47f2
[ "BSD-3-Clause" ]
1
2022-03-09T23:10:39.000Z
2022-03-09T23:10:39.000Z
from rdflib.namespace import RDF, OWL from client.model import Klass def test_basic_rdf(): r1 = Klass() rdf = r1.to_graph() assert (None, RDF.type, OWL.Class) in rdf
16.545455
45
0.681319
29
182
4.172414
0.689655
0.082645
0
0
0
0
0
0
0
0
0
0.013986
0.214286
182
10
46
18.2
0.832168
0
0
0
0
0
0
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
06b9caa16d5ed833b048fe4f36e64d95d52d9629
444
py
Python
app/utils/mail.py
YogeshUpdhyay/Stocklytic.io
6cfbd23e5672391e83e1ee2c3c69073947638717
[ "MIT" ]
1
2021-07-31T16:04:43.000Z
2021-07-31T16:04:43.000Z
app/utils/mail.py
YogeshUpdhyay/Stocklytic.io
6cfbd23e5672391e83e1ee2c3c69073947638717
[ "MIT" ]
null
null
null
app/utils/mail.py
YogeshUpdhyay/Stocklytic.io
6cfbd23e5672391e83e1ee2c3c69073947638717
[ "MIT" ]
null
null
null
from .. import mail from flask_mail import Message from flask import url_for def send_reset_email(user): token = user.generate_reset_token() msg = Message('Password Reset Request', sender="noreply@stokclytic.com", recipients=[user.email]) msg.body = f'''To reset your...
37
68
0.668919
58
444
4.965517
0.551724
0.0625
0
0
0
0
0
0
0
0
0
0
0.220721
444
12
69
37
0.83237
0
0
0
1
0
0.357303
0.119101
0
0
0
0
0
1
0.090909
false
0.272727
0.272727
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
06dd84f57a6a052b1042d4143484fda67148f636
479
py
Python
kerosene/datasets/cifar100.py
dribnet/kerosene
f641710071c603ce46abb0f66a7a176fc832f612
[ "MIT" ]
35
2015-08-12T09:30:47.000Z
2020-02-16T05:22:07.000Z
kerosene/datasets/cifar100.py
dribnet/kerosene
f641710071c603ce46abb0f66a7a176fc832f612
[ "MIT" ]
14
2016-02-09T19:43:10.000Z
2018-12-12T04:55:14.000Z
kerosene/datasets/cifar100.py
dribnet/kerosene
f641710071c603ce46abb0f66a7a176fc832f612
[ "MIT" ]
18
2016-02-16T07:30:35.000Z
2020-04-25T14:30:04.000Z
# -*- coding: utf-8 -*- import fuel.datasets from .dataset import Dataset class CIFAR100(Dataset): basename = "cifar100" default_sources=['features', 'coarse_labels'] class_for_filename_patch = fuel.datasets.CIFAR100 def build_data(self, sets, sources): return map(lambda s: fuel.datasets.CIFAR...
31.933333
91
0.724426
64
479
5.25
0.515625
0.107143
0.119048
0
0
0
0
0
0
0
0
0.03912
0.146138
479
14
92
34.214286
0.782396
0.043841
0
0
0
0
0.063596
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
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
06f875984a40698d6e0a9dee7874a377bce16af9
336
py
Python
conftest.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
45
2019-04-03T01:18:35.000Z
2022-02-14T23:28:34.000Z
conftest.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
65
2019-03-29T22:51:29.000Z
2022-03-30T09:05:16.000Z
conftest.py
Chilipp/autodocsumm
255292a1d04ec4ed0e0c17c1100adeb71f4dfa9f
[ "Apache-2.0" ]
17
2019-03-29T22:30:19.000Z
2022-03-23T12:00:48.000Z
import os.path as osp import sys import pytest from sphinx.testing.path import path pytest_plugins = 'sphinx.testing.fixtures' sphinx_supp = osp.abspath(osp.join(osp.dirname(__file__), "tests")) @pytest.fixture(scope='session') def rootdir(): return path(sphinx_supp) sys.path.insert(0, osp.join(sphinx_supp...
16.8
67
0.747024
50
336
4.86
0.56
0.123457
0
0
0
0
0
0
0
0
0
0.003378
0.119048
336
19
68
17.684211
0.817568
0
0
0
0
0
0.130952
0.068452
0
0
0
0
0
1
0.1
false
0
0.4
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
06fff0cc841bc55f26d1376b8560f7a8a4ac31ac
707
py
Python
bin/print_busco_config.py
ewels/nf-core-neutronstar
c64a04a2422b3a113b8b45774b8045cf874af3fe
[ "MIT" ]
4
2018-10-02T09:44:02.000Z
2019-09-13T11:19:33.000Z
bin/print_busco_config.py
ewels/nf-core-neutronstar
c64a04a2422b3a113b8b45774b8045cf874af3fe
[ "MIT" ]
14
2018-10-05T14:43:03.000Z
2020-09-15T08:45:59.000Z
bin/print_busco_config.py
ewels/nf-core-neutronstar
c64a04a2422b3a113b8b45774b8045cf874af3fe
[ "MIT" ]
4
2018-11-06T08:30:07.000Z
2020-02-11T13:00:38.000Z
#!/usr/bin/env python from __future__ import print_function import os print( """[busco] out_path = {0} tmp_path = {0}/tmp [tblastn] # path to tblastn path = /usr/bin/ [makeblastdb] # path to makeblastdb path = /usr/bin/ [augustus] # path to augustus path = /opt/augustus/bin/ [etraining] # path to augustus etraining...
17.243902
65
0.704385
107
707
4.570093
0.439252
0.08589
0.122699
0.07362
0
0
0
0
0
0
0
0.005025
0.155587
707
40
66
17.675
0.81407
0.028289
0
0
0
0
0.035294
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
66004410d85302ccb7ac4bbb445b584873010461
521
py
Python
logs/models.py
Ishayahu/MJCC-tasks
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
[ "MIT" ]
1
2017-09-25T09:36:46.000Z
2017-09-25T09:36:46.000Z
logs/models.py
Ishayahu/MJCC-tasks
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
[ "MIT" ]
40
2015-05-29T11:25:15.000Z
2015-08-13T10:28:17.000Z
logs/models.py
Ishayahu/MJCC-tasks
68ea00dab543e6e4e0f6cf6b6683f3719bb6f3c0
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # coding=<utf8> from django.db import models # Модели для логирования действий пользователей с активами class Logging(models.Model): user = models.CharField(max_length=140) request = models.TextField(blank = True, null = True) goal = models.TextField(blank = True, null = True) d...
37.214286
95
0.698656
67
521
5.358209
0.641791
0.058496
0.111421
0.133705
0.178273
0.178273
0
0
0
0
0
0.011442
0.161228
521
14
95
37.214286
0.810069
0.174664
0
0
0
0
0.002342
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
66119751376ac2526268fb6ab05d5fa7e99680ed
2,592
py
Python
game/migrations/0001_initial.py
m4tx/hackthespace
7b0852eaaa78e230a51a2da084e916df6eec20da
[ "MIT" ]
8
2019-03-27T13:08:44.000Z
2021-11-23T06:44:50.000Z
game/migrations/0001_initial.py
m4tx/hackthespace
7b0852eaaa78e230a51a2da084e916df6eec20da
[ "MIT" ]
8
2021-04-08T18:51:27.000Z
2022-03-11T23:43:45.000Z
game/migrations/0001_initial.py
m4tx/hackthespace
7b0852eaaa78e230a51a2da084e916df6eec20da
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-27 13:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Player', fields=[ ...
46.285714
378
0.556713
236
2,592
6
0.334746
0.022599
0.029661
0.04661
0.650424
0.650424
0.650424
0.650424
0.650424
0.650424
0
0.016623
0.25733
2,592
55
379
47.127273
0.718961
0.017361
0
0.645833
1
0
0.217289
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
66163af54b1896927aec80322b30839ed6597b2d
2,085
py
Python
hyperadmin/clients/common.py
zbyte64/django-hyperadmin
9ac2ae284b76efb3c50a1c2899f383a27154cb54
[ "BSD-3-Clause" ]
25
2015-01-26T11:37:22.000Z
2021-04-05T17:21:05.000Z
hyperadmin/clients/common.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
1
2015-04-13T04:19:49.000Z
2015-04-13T04:19:49.000Z
hyperadmin/clients/common.py
webcube/django-hyperadmin
c6fcbd227098ea02a2c1a2865664fbbef92107dc
[ "BSD-3-Clause" ]
2
2017-05-24T13:33:17.000Z
2019-11-14T06:24:48.000Z
try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url from django.views.generic import TemplateView from django.core.urlresolvers import reverse from hyperadmin.apirequests import InternalAPIRequest import logging class Client(object): de...
29.366197
104
0.661391
245
2,085
5.4
0.257143
0.083144
0.05291
0.049887
0.031746
0
0
0
0
0
0
0
0.246043
2,085
70
105
29.785714
0.841603
0.001918
0
0.075472
0
0
0.025493
0
0
0
0
0.014286
0
1
0.188679
false
0.037736
0.132075
0.075472
0.622642
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
1
0
0
2
662a7051088f293f307631423ce95112b7a3da9e
240,291
py
Python
pysnmp/E5-111-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/E5-111-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/E5-111-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module E5-111-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/E5-111-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:44:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
125.478329
9,178
0.734052
30,443
240,291
5.793976
0.044674
0.013561
0.017416
0.022451
0.513856
0.498702
0.455824
0.427466
0.38185
0.343627
0
0.108026
0.096412
240,291
1,914
9,179
125.543887
0.704349
0.001307
0
0
0
0
0.082632
0.00075
0
0
0
0
0
1
0
false
0.005244
0.005244
0
0.005244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
662e0a589e76b0c3fa5e51a3ff75aa6f2e4f6974
410
py
Python
pyvisdk/enums/entity_reference_entity_type.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/entity_reference_entity_type.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/enums/entity_reference_entity_type.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
######################################## # Automatically generated, do not edit. ######################################## from pyvisdk.thirdparty import Enum EntityReferenceEntityType = Enum( 'cluster', 'datacenter', 'datastore', 'host', 'nasMount', 'resourcePool', 'scsiAdapter', 'sc...
16.4
40
0.482927
25
410
7.92
0.96
0
0
0
0
0
0
0
0
0
0
0
0.209756
410
24
41
17.083333
0.611111
0.090244
0
0
1
0
0.368966
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
6644a31f1486a5ca97315bf73cb16866750e7237
1,176
py
Python
systemcheck/systems/ABAP/models/action_abap_validate_redundant_password_hashes_model.py
team-fasel/SystemCheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
2
2017-07-07T13:57:52.000Z
2020-12-11T12:40:55.000Z
systemcheck/systems/ABAP/models/action_abap_validate_redundant_password_hashes_model.py
team-fasel/systemcheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
1
2017-02-23T19:30:12.000Z
2017-02-28T19:15:44.000Z
systemcheck/systems/ABAP/models/action_abap_validate_redundant_password_hashes_model.py
team-fasel/systemcheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
null
null
null
from systemcheck.systems.ABAP.models import AbapSpoolParams_BAPIPRIPAR_Mixin, ActionAbapIsNotClientSpecificMixin from systemcheck import models from systemcheck.models.meta import generic_repr from systemcheck.checks.models import Check pluginName='ActionAbapValidateRedundantPasswordHashes' @generic_repr class Action...
43.555556
125
0.736395
109
1,176
7.633028
0.458716
0.072115
0.180288
0.153846
0.0625
0
0
0
0
0
0
0.002119
0.197279
1,176
27
126
43.555556
0.879237
0
0
0
0
0
0.11215
0.034834
0
0
0
0
0
1
0
false
0.095238
0.190476
0
0.47619
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
b093e555ac08739a3ef06307a5c02acb09db7b54
901
py
Python
scripts/test_create_dataloaders.py
qlero/charcoal_recognition
ad27e0d925c2284e31aa685d02b6e3d9c422d851
[ "MIT" ]
null
null
null
scripts/test_create_dataloaders.py
qlero/charcoal_recognition
ad27e0d925c2284e31aa685d02b6e3d9c422d851
[ "MIT" ]
null
null
null
scripts/test_create_dataloaders.py
qlero/charcoal_recognition
ad27e0d925c2284e31aa685d02b6e3d9c422d851
[ "MIT" ]
null
null
null
""" Tests the instantiation of PyTorch dataloaders over the cleaned images from the Laboratório Visão Robótica e Imagem charcoal dataset """ # Imports library import os, sys # used to declare ../charcoal as a folder that can be imported currentdir = os.path.dirname(os.path.realpath(__file__)) parentdir = os.path.di...
30.033333
76
0.750277
110
901
5.963636
0.536364
0.027439
0.039634
0
0
0
0
0
0
0
0
0
0.155383
901
30
77
30.033333
0.862024
0.294118
0
0
0
0
0.230032
0.033546
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
2
b0a1a093abb912653b78f223cbf3d2c6e9b72254
165
py
Python
problemsets/Codeforces/Python/B705.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/B705.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/B705.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ r=0 for x in map(int,[*open(0)][1].split()): r=(r+x-1)%2 print([2,1][r])
16.5
40
0.563636
29
165
3.206897
0.655172
0.27957
0
0
0
0
0
0
0
0
0
0.050725
0.163636
165
10
41
16.5
0.623188
0.454545
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b0b5d52b0f0af2d1727a86055e3a309cf454f098
2,626
py
Python
datawinners/project/tests/form_model_generator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/project/tests/form_model_generator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/project/tests/form_model_generator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from mock import Mock from mangrove.form_model.field import TextField, SelectField, DateField, GeoCodeField, UniqueIdField from mangrove.form_model.form_model import FormModel class FormModelGenerator(object): def __init__(self, database_manager): self.database_m...
59.681818
145
0.686596
358
2,626
4.801676
0.318436
0.078534
0.077371
0.078534
0.430483
0.394415
0.394415
0.394415
0.394415
0.369401
0
0.013401
0.175933
2,626
43
146
61.069767
0.780961
0.015613
0
0.117647
0
0.029412
0.202169
0
0
0
0
0
0
1
0.205882
false
0
0.088235
0.147059
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
b0c1e50e02426e7d22d9ee93dd39bb7b4dc32f25
905
py
Python
docker_compose_deploy/loonflow_shutongflow/setup_shutongflow.py
youjiajia/loonflow
0542e543ffea49b2eda864397b9875b6bf107dd5
[ "MIT" ]
2
2021-09-15T09:53:31.000Z
2021-11-16T10:56:27.000Z
docker_compose_deploy/loonflow_shutongflow/setup_shutongflow.py
vivicai/loonflow
8a60e8c61f8548850a03c073355c37349b9be628
[ "MIT" ]
1
2020-10-26T06:35:54.000Z
2020-10-26T06:35:54.000Z
docker_compose_deploy/loonflow_shutongflow/setup_shutongflow.py
vivicai/loonflow
8a60e8c61f8548850a03c073355c37349b9be628
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: children1987 """ from utils import get_config_info, replace_in_file def main(): cfg_file = '/opt/shutongFlow/apps/apps/settings.py' # 修改数据库配置 replace_in_file(cfg_file, "'USER': 'shutongflow'", "'USER': 'root'") config_info = get_config_info() pas...
28.28125
78
0.59558
110
905
4.645455
0.445455
0.097847
0.127202
0.062622
0.078278
0
0
0
0
0
0
0.04096
0.21768
905
31
79
29.193548
0.679379
0.053039
0
0.1
0
0
0.424242
0.199495
0
0
0
0
0
0
null
null
0.1
0.05
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
1
0
0
0
0
0
2
b0da7580982d2809bcbd6b16b0487254472bf3ba
642
py
Python
mlpractice/datasets/__init__.py
SYAN83/machine-learning-practice
10a9562e1c3e3b5611af9997b971bb2efce4e5de
[ "MIT" ]
null
null
null
mlpractice/datasets/__init__.py
SYAN83/machine-learning-practice
10a9562e1c3e3b5611af9997b971bb2efce4e5de
[ "MIT" ]
null
null
null
mlpractice/datasets/__init__.py
SYAN83/machine-learning-practice
10a9562e1c3e3b5611af9997b971bb2efce4e5de
[ "MIT" ]
null
null
null
import pandas import os PATH_TO_DATASETS = './mlpractice/datasets/' class DataSet(object): def __init__(self, dir_name, extensions=['.csv'], path_to_datasets=PATH_TO_DATASETS): data_dir = os.path.join(path_to_datasets, dir_name) for file_name in os.listdir(data_dir): name, ext = os...
25.68
92
0.669782
90
642
4.477778
0.422222
0.086849
0.138958
0.099256
0
0
0
0
0
0
0
0
0.214953
642
25
93
25.68
0.799603
0
0
0
0
0
0.073209
0.034268
0
0
0
0
0
1
0.2
false
0
0.133333
0.133333
0.533333
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
b0dc21b0a6806607dad01586c0c4eb60a83c2b70
4,775
py
Python
tests/st/ops/gpu/test_relu_op.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/ops/gpu/test_relu_op.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/ops/gpu/test_relu_op.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.833333
78
0.57822
612
4,775
4.379085
0.20098
0.014925
0.029851
0.018657
0.670896
0.659328
0.63209
0.63209
0.609701
0.609701
0
0.045045
0.256126
4,775
149
79
32.04698
0.709459
0.133613
0
0.731481
0
0
0.00655
0
0
0
0
0
0.083333
1
0.083333
false
0
0.064815
0.009259
0.185185
0.009259
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b0dc787f7d65cab7b887c3bd592bc36abde09589
592
py
Python
tests/project/app.py
Zadigo/Zah
0038b312579db4eaafb0d97f2d9cabd0d4a06beb
[ "MIT" ]
null
null
null
tests/project/app.py
Zadigo/Zah
0038b312579db4eaafb0d97f2d9cabd0d4a06beb
[ "MIT" ]
null
null
null
tests/project/app.py
Zadigo/Zah
0038b312579db4eaafb0d97f2d9cabd0d4a06beb
[ "MIT" ]
null
null
null
from zah.router.app import Router # from zah.store import Store from zah.urls import render, render_page from zah.core.servers import BaseServer, DevelopmentServer from zah.shortcuts import get_default_server app = BaseServer() # app = get_default_server() # app.use_component(Router) # app.use_component(Store) # def ...
28.190476
58
0.72973
83
592
5.072289
0.409639
0.083135
0.07601
0.090261
0.204276
0.204276
0.204276
0.204276
0
0
0
0.013462
0.121622
592
20
59
29.6
0.796154
0.619932
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
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
b0e3ee3e2dda05df5b707095a767efb79b624708
293
py
Python
mundo 3/083.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
1
2021-08-04T13:21:22.000Z
2021-08-04T13:21:22.000Z
mundo 3/083.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
mundo 3/083.py
thiagofreitascarneiro/Curso-de-Python---Curso-em-Video
0342e482780b5a1c6f78cddd51d9bfad785c79fa
[ "MIT" ]
null
null
null
valor = str(input('Digite uma expressão: ')) quant_Abrir = valor.count('(') quant_Fechar = valor.count(')') print(quant_Fechar) print(quant_Abrir) if quant_Fechar % 2 == 0 and quant_Abrir % 2 == 0: print('Essa expressão está correta!') else: print('essa expressão esta Equivocada!')
24.416667
50
0.696246
41
293
4.829268
0.512195
0.151515
0.181818
0
0
0
0
0
0
0
0
0.016129
0.153584
293
11
51
26.636364
0.782258
0
0
0
0
0
0.285223
0
0
0
0
0
0
1
0
false
0
0
0
0
0.444444
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
b0ebc866d38490e1a3f89c6bb16679e6cfdf5669
234
py
Python
envrun/utils.py
JanLikar/envrun
782b0c7b5eea5d8debb82e7ceeb8ef9bc23320c5
[ "MIT" ]
1
2021-01-23T22:14:55.000Z
2021-01-23T22:14:55.000Z
envrun/utils.py
JanLikar/envrun
782b0c7b5eea5d8debb82e7ceeb8ef9bc23320c5
[ "MIT" ]
null
null
null
envrun/utils.py
JanLikar/envrun
782b0c7b5eea5d8debb82e7ceeb8ef9bc23320c5
[ "MIT" ]
1
2021-01-26T14:14:58.000Z
2021-01-26T14:14:58.000Z
import sys def eprint(*args, **kwargs): """Print to stderr.""" print(*args, file=sys.stderr, **kwargs) def bail(error: str): """Print message to stderr and exit with an error code.""" eprint(error) sys.exit(1)
18
62
0.619658
34
234
4.264706
0.588235
0.110345
0
0
0
0
0
0
0
0
0
0.005435
0.213675
234
12
63
19.5
0.782609
0.294872
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
2
b0ed7f9379886c99d18d5138bc89c1f29dc6ed51
7,216
py
Python
src/zapv2/users.py
tnir/zap-api-python
1f2b7725ad27f93e5b036e0c63e0a6fef0a2223a
[ "Apache-2.0" ]
146
2016-05-26T09:24:14.000Z
2022-03-29T07:11:50.000Z
src/zapv2/users.py
tnir/zap-api-python
1f2b7725ad27f93e5b036e0c63e0a6fef0a2223a
[ "Apache-2.0" ]
32
2016-04-22T08:57:54.000Z
2022-02-09T13:43:32.000Z
src/zapv2/users.py
tnir/zap-api-python
1f2b7725ad27f93e5b036e0c63e0a6fef0a2223a
[ "Apache-2.0" ]
94
2016-04-20T16:13:15.000Z
2022-03-10T01:59:01.000Z
# Zed Attack Proxy (ZAP) and its related class files. # # ZAP is an HTTP/HTTPS proxy for assessing web application security. # # Copyright 2017 the ZAP development team # # 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...
52.671533
202
0.682788
889
7,216
5.488189
0.2036
0.045911
0.036893
0.04919
0.530027
0.473663
0.449067
0.403771
0.355401
0.355401
0
0.001393
0.204407
7,216
136
203
53.058824
0.848458
0.31735
0
0.038462
0
0
0.184332
0.111696
0
0
0
0
0
1
0.307692
false
0
0.019231
0
0.634615
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
1
0
0
2
b0f3e1ce1ddf06aed6f73bed3b120264c8413f3f
9,334
py
Python
pysnmp/CENTILLION-MCAST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CENTILLION-MCAST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CENTILLION-MCAST-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CENTILLION-MCAST-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CENTILLION-MCAST-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:30:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
121.220779
1,400
0.754018
1,089
9,334
6.46281
0.136823
0.021029
0.017903
0.017619
0.377238
0.313725
0.24254
0.24254
0.184854
0.184854
0
0.082467
0.093208
9,334
76
1,401
122.815789
0.749055
0.035783
0
0
0
0
0.145034
0.009788
0
0
0
0
0
1
0
false
0
0.102941
0
0.132353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b0fcd7a1680066934f42d8219daf87f6ce53e5b8
338
py
Python
botcommands/utils.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
botcommands/utils.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
botcommands/utils.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
from crud import s from models import Team, User def get_team_user(team_name, username): team = s.query(Team).filter_by(name=team_name).first() user = s.query(User).filter_by(username=username).first() return team, user def get_team(team_name): team = s.query(Team).filter_by(name=team_name).first()...
21.125
61
0.715976
55
338
4.218182
0.290909
0.137931
0.094828
0.12069
0.491379
0.336207
0.336207
0.336207
0.336207
0.336207
0
0
0.159763
338
15
62
22.533333
0.816901
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7c002f6b6f201b41c8670983092e585198ff8f2d
992
py
Python
insights/components/openstack.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/components/openstack.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/components/openstack.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
""" IsOpenStackCompute ================== The ``IsOpenStackCompute`` component uses ``PsAuxcww`` parser to determine OpenStack Compute node. It checks if 'nova-compute' process exist, if not raises ``SkipComponent`` so that the dependent component will not fire. Can be added as a dependency of a parser so that the par...
35.428571
81
0.72379
123
992
5.804878
0.447154
0.061625
0.084034
0.095238
0.380952
0.380952
0.380952
0.380952
0.380952
0.380952
0
0
0.169355
992
27
82
36.740741
0.866505
0.637097
0
0
0
0
0.116564
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
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
9fd33c5ab877b7ee93be7fe993b612ad3b8aecea
732
py
Python
cli.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
1
2018-04-04T17:47:30.000Z
2018-04-04T17:47:30.000Z
cli.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
8
2018-03-29T12:07:53.000Z
2021-12-13T19:47:22.000Z
cli.py
GIScience/hot-tm-critical-numbers
07132fe4aee565aa8fdc76b92e215b02c08ddfee
[ "MIT" ]
1
2018-06-20T11:50:17.000Z
2018-06-20T11:50:17.000Z
import click import json from critical_numbers import app from critical_numbers.logic import api_requests, converter @click.group() def cli(): pass @cli.command('serve') def serve(): '''serves webapp to 127.0.0.1:5000''' app.run() @cli.command('getall') def getall(): '''gets all...
24.4
104
0.673497
103
732
4.563107
0.495146
0.074468
0.193617
0.085106
0
0
0
0
0
0
0
0.017241
0.20765
732
29
105
25.241379
0.793103
0.121585
0
0
0
0
0.20398
0.079602
0
0
0
0
0
1
0.157895
false
0.052632
0.210526
0
0.368421
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
9fe34b9f36417a4cac5bb81f6396fecd03972f4d
642
py
Python
Python/scope.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
4
2017-04-30T18:28:19.000Z
2018-12-08T15:46:37.000Z
Python/scope.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
1
2021-09-22T20:11:36.000Z
2021-09-22T20:11:36.000Z
Python/scope.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
null
null
null
#!/usr/bin/python class Difference: def __init__(self, a): self.__elements = a def computeDifference(self): a = self.__elements max = a[0] min = a[0] for i in range(0, len(a)): if max<a[i]: max=a[i] else: pass ...
22.137931
44
0.507788
84
642
3.75
0.392857
0.025397
0.057143
0.107937
0
0
0
0
0
0
0
0.007335
0.362928
642
28
45
22.928571
0.762836
0.077882
0
0.173913
0
0
0.032203
0
0
0
0
0
0
0
null
null
0.086957
0
null
null
0.086957
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
1
0
0
0
0
0
2
9fe4e0ca9803b7caecea45aac3ea2e9545d08293
212
py
Python
utils/generate_tsne_data.py
cBioCenter/chell-viz-contact
07edd56bea1693da76cf62d2ab7088193c86e9e2
[ "MIT" ]
3
2019-02-24T05:09:43.000Z
2019-11-11T14:26:11.000Z
utils/generate_tsne_data.py
cBioCenter/chell-viz-contact
07edd56bea1693da76cf62d2ab7088193c86e9e2
[ "MIT" ]
93
2018-03-27T19:04:26.000Z
2019-02-15T16:43:53.000Z
utils/generate_tsne_data.py
cBioCenter/chell-viz-contact
07edd56bea1693da76cf62d2ab7088193c86e9e2
[ "MIT" ]
1
2018-07-02T12:54:52.000Z
2018-07-02T12:54:52.000Z
from MulticoreTSNE import MulticoreTSNE as TSNE import numpy as np data = np.loadtxt('pca.csv', delimiter=',') tsne = TSNE(n_jobs=4) Y = tsne.fit_transform(data) np.savetxt('tsne_matrix.csv', Y, delimiter=",")
23.555556
47
0.731132
33
212
4.606061
0.606061
0.078947
0
0
0
0
0
0
0
0
0
0.005348
0.117925
212
8
48
26.5
0.807487
0
0
0
0
0
0.113208
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
9fe647b2f87761eed6d26e4c641b87b3db329bf8
631
py
Python
sample/admin.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
100
2018-11-20T19:30:49.000Z
2022-03-10T07:46:27.000Z
sample/admin.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
30
2018-11-27T19:53:53.000Z
2022-02-04T14:56:52.000Z
sample/admin.py
urm8/django-translations
e8f66710af9433044937b75c061e1988add398a5
[ "BSD-3-Clause" ]
25
2019-05-30T13:41:47.000Z
2022-03-25T04:28:17.000Z
from django.contrib import admin from translations.admin import TranslatableAdmin, TranslationInline from .models import Timezone, Continent, Country, City class TimezoneAdmin(TranslatableAdmin): inlines = [TranslationInline] class ContinentAdmin(TranslatableAdmin): inlines = [TranslationInline] class Co...
23.37037
67
0.806656
58
631
8.775862
0.362069
0.188605
0.3222
0.27112
0
0
0
0
0
0
0
0
0.11252
631
26
68
24.269231
0.908929
0
0
0.266667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.733333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9fe88e47f91055381c396c318fd13ed8cad70541
1,140
py
Python
src/kong/json_field.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
3
2020-02-14T09:23:56.000Z
2020-08-24T16:19:00.000Z
src/kong/json_field.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
159
2019-09-16T19:17:16.000Z
2022-03-29T19:12:37.000Z
src/kong/json_field.py
paulgessinger/kong
b1e2ec0c18f432fa2419b2b0dc95ee1e391cf7a5
[ "MIT" ]
null
null
null
""" Polyfill for a JSON field in SQLite. Newer versions of sqlite (>= 3.9.0) have a native JSON extension, which we use. If the sqlite version is lower, we roll a less-optimal replacement. """ from typing import Dict, cast import peewee as pw from peewee import sqlite3 import json if sqlite3.sqlite_version_info < (3,...
29.230769
79
0.603509
153
1,140
4.464052
0.477124
0.014641
0.029283
0
0
0
0
0
0
0
0
0.011509
0.314035
1,140
38
80
30
0.861893
0.466667
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.416667
0
0.833333
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
9ff29ae561dfcd1301414f3399a78ec2dc4fdf9e
1,947
py
Python
djangopreviewcard/cardviewinfo.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
1
2019-09-19T03:36:44.000Z
2019-09-19T03:36:44.000Z
djangopreviewcard/cardviewinfo.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
null
null
null
djangopreviewcard/cardviewinfo.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
null
null
null
from .mediasourcetype import MediaSourceType class CardViewInfo: def __init__(self, ms_type=MediaSourceType.NONE, url="", image_url="", title="", description=""): self.__ms_type = ms_type self.__url = url self.__image_url = image_url self.__title = title self.__description ...
26.671233
119
0.529533
213
1,947
4.408451
0.117371
0.076677
0.089457
0.063898
0.084132
0.007455
0
0
0
0
0
0
0.252696
1,947
72
120
27.041667
0.645361
0
0
0.107143
0
0
0.156732
0.121274
0
0
0
0
0
1
0.25
false
0
0.017857
0.125
0.410714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
b0077be04f244a12afe595ae9fb6cd2183a4c9d3
5,224
py
Python
_lever_utils/foo/helpers/mail/mail_helper.py
0lever/utils
8bac1ad6799dd4c026afff2e8e870e0663561c15
[ "Apache-2.0" ]
1
2020-05-07T10:34:41.000Z
2020-05-07T10:34:41.000Z
_lever_utils/foo/helpers/mail/mail_helper.py
0lever/utils
8bac1ad6799dd4c026afff2e8e870e0663561c15
[ "Apache-2.0" ]
1
2019-06-11T03:14:48.000Z
2019-06-11T03:14:48.000Z
_lever_utils/foo/helpers/mail/mail_helper.py
0lever/utils
8bac1ad6799dd4c026afff2e8e870e0663561c15
[ "Apache-2.0" ]
4
2019-05-14T11:52:46.000Z
2020-05-07T10:35:19.000Z
# -*- coding:utf-8 -*- from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import smtplib import os import poplib from email.parser import Parser from email.header import decode_header from email.utils import parseaddr from datetime import datetime class Mail(object): def __init_...
34.596026
116
0.524502
596
5,224
4.447987
0.255034
0.056582
0.05281
0.02037
0.141079
0.108638
0.090532
0.040739
0.040739
0.040739
0
0.010963
0.353943
5,224
150
117
34.826667
0.774519
0.017611
0
0.179688
0
0
0.052303
0.004684
0
0
0
0
0
0
null
null
0.054688
0.070313
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
1
0
0
0
0
0
2
b063934ed21aacccdd40107fb3d9f283ad72db62
263
py
Python
Python/Programming Fundamentals/Lists Basics/15. Search.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Lists Basics/15. Search.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Fundamentals/Lists Basics/15. Search.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
n = int(input()) word = input() list_of_strings = [input() for _ in range(n)] filtered_list = [] for i in range(n): if word in list_of_strings[i]: filtered_list.append(list_of_strings[i]) print(list_of_strings) print(filtered_list)
17.533333
49
0.653992
41
263
3.902439
0.365854
0.15
0.325
0.175
0
0
0
0
0
0
0
0
0.220532
263
14
50
18.785714
0.780488
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.222222
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c664811b9062746d3854671e30f33fdf61bc99b2
923
py
Python
lib/modes/mode_twitch.py
okonomichiyaki/parrot.py
f8a0cee117be3ca80dd16ecb475dee02a2602ce4
[ "MIT" ]
80
2019-07-17T21:52:31.000Z
2022-03-15T20:09:45.000Z
lib/modes/mode_twitch.py
okonomichiyaki/parrot.py
f8a0cee117be3ca80dd16ecb475dee02a2602ce4
[ "MIT" ]
4
2019-08-23T15:13:46.000Z
2021-06-18T13:41:11.000Z
lib/modes/mode_twitch.py
okonomichiyaki/parrot.py
f8a0cee117be3ca80dd16ecb475dee02a2602ce4
[ "MIT" ]
16
2020-09-20T10:21:29.000Z
2022-03-17T00:43:08.000Z
from lib.detection_strategies import single_tap_detection, loud_detection, medium_detection, percentage_detection import threading import numpy as np import pyautogui from pyautogui import press, hotkey, click, scroll, typewrite, moveRel, moveTo, position from time import sleep from subprocess import call from lib.syst...
26.371429
113
0.754063
118
923
5.711864
0.533898
0.08457
0.032641
0
0
0
0
0
0
0
0
0.023077
0.15493
923
35
114
26.371429
0.841026
0
0
0.074074
0
0
0.042208
0
0
0
0
0
0
1
0.148148
false
0
0.37037
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
c679dd3be9e2fdafd3ac96be67eaa65011388549
1,549
py
Python
Programmi/script/print_comandi_c0data.py
lgiacomazzo/SG0-ITA
5f6dc036b6c631fcb9ddef230950ed0dcf353b3f
[ "MIT" ]
1
2022-02-06T22:54:34.000Z
2022-02-06T22:54:34.000Z
Programmi/script/print_comandi_c0data.py
lgiacomazzo/SG0-ITA
5f6dc036b6c631fcb9ddef230950ed0dcf353b3f
[ "MIT" ]
1
2022-03-10T11:21:42.000Z
2022-03-10T11:21:42.000Z
Programmi/script/print_comandi_c0data.py
lgiacomazzo/SG0-ITA
5f6dc036b6c631fcb9ddef230950ed0dcf353b3f
[ "MIT" ]
null
null
null
path_dir = "SG0-2.1.1/immagini_c0data" print("") print("") print(f"cd {path_dir}") lista_png = ["BG12A.png","BG24A1.png","BG24A3.png","BG24A4.png","BG24A5.png","BG24E1.png","BG24E4.png","BG24N1.png","BG24N3.png","BG24N4.png","BG83A3.png","IBG094.png","IBG099.png","SG0_IBG004A.png","SG0_IBG005A.png","SG0_IBG005C.png","S...
64.541667
651
0.684312
234
1,549
4.358974
0.405983
0.141176
0.041176
0.031373
0.12549
0.12549
0.12549
0.12549
0.12549
0.12549
0
0.109104
0.10652
1,549
24
652
64.541667
0.62789
0.018722
0
0.571429
0
0.047619
0.640789
0.050658
0
0
0
0
0
1
0
false
0
0
0
0
0.619048
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
c6811ae33403a9fab0edb296d2b73b20a061652d
257
py
Python
Python/Strings/designer_door.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
Python/Strings/designer_door.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
Python/Strings/designer_door.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
# Enter your code here. Read input from STDIN. Print output to STDOUT x,y = map(int,input().split()) items = list(range(1,x+1,2)) items = items+items[::-1][1:] for i in items: text= "WELCOME" if i == x else '.|.'*i print (text.center(y,'-'))
32.125
70
0.599222
45
257
3.422222
0.666667
0.12987
0
0
0
0
0
0
0
0
0
0.024272
0.198444
257
7
71
36.714286
0.723301
0.2607
0
0
0
0
0.060773
0
0
0
0
0.142857
0
1
0
false
0
0
0
0
0.166667
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
1
0
0
0
0
0
0
0
0
0
0
2
c6967879f878389bbca58cbdc073084234c940b3
827
py
Python
corehq/apps/smsbillables/management/commands/bootstrap_unicel_gateway.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/smsbillables/management/commands/bootstrap_unicel_gateway.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/smsbillables/management/commands/bootstrap_unicel_gateway.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
import logging from django.core.management.base import LabelCommand from corehq.apps.accounting.models import Currency from corehq.apps.sms.models import INCOMING, OUTGOING from corehq.apps.smsbillables.models import SmsGatewayFee from corehq.apps.unicel.api import UnicelBackend logger = logging.getLogger('accounting...
35.956522
76
0.696493
95
827
6
0.494737
0.070175
0.098246
0.122807
0.277193
0.277193
0.277193
0.126316
0
0
0
0.009091
0.201935
827
22
77
37.590909
0.854545
0
0
0.117647
0
0
0.088271
0
0
0
0
0
0
1
0.058824
false
0
0.352941
0
0.647059
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
c69e730a3f01ebf2bb2ab8714b778e67607ebcfb
1,024
py
Python
quotes/api/views.py
vyahello/quotes
6b724ccff4091e0190f975599d80b42181e38a7c
[ "MIT" ]
3
2020-03-31T22:16:04.000Z
2021-03-26T20:04:17.000Z
quotes/api/views.py
vyahello/quotes
6b724ccff4091e0190f975599d80b42181e38a7c
[ "MIT" ]
8
2020-03-30T15:04:55.000Z
2021-07-25T09:05:37.000Z
quotes/api/views.py
vyahello/quotes
6b724ccff4091e0190f975599d80b42181e38a7c
[ "MIT" ]
null
null
null
"""Module represents API for routes.""" from typing import List, Type from rest_framework.generics import ( ListCreateAPIView, RetrieveUpdateDestroyAPIView, ) from app.models import Quote from .serializers import QuoteSerializer from .permissions import IsOwnerOrReadOnly class Quotes(ListCreateAPIView): "...
24.97561
69
0.72168
109
1,024
6.743119
0.449541
0.038095
0.065306
0.068027
0.302041
0.302041
0.220408
0.220408
0.220408
0.220408
0
0
0.181641
1,024
40
70
25.6
0.877088
0.356445
0
0.266667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.8
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
c6a78f42047e452909d6daf88b448c0cca0974f8
12,602
py
Python
api/gen/chromite/api/android_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
api/gen/chromite/api/android_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
api/gen/chromite/api/android_pb2.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: chromite/api/android.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import ...
40.783172
1,524
0.77329
1,525
12,602
6.083279
0.148852
0.033632
0.030721
0.036865
0.522798
0.434084
0.400129
0.385254
0.357012
0.357012
0
0.042175
0.108157
12,602
308
1,525
40.915584
0.783255
0.035391
0
0.542125
1
0.003663
0.261052
0.215609
0
0
0
0
0
1
0
false
0
0.029304
0
0.029304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
2
c6b439bd8d912cfcf79045b6d9d60d6a54802392
1,894
py
Python
dpmm/data.py
jmeyers314/DP_SNe
d5a91e96425fe99c8f4450a9f11256f3abbd43eb
[ "BSD-2-Clause" ]
20
2017-11-20T09:44:14.000Z
2022-02-11T17:38:24.000Z
dpmm/data.py
jmeyers314/DP_SNe
d5a91e96425fe99c8f4450a9f11256f3abbd43eb
[ "BSD-2-Clause" ]
1
2016-07-08T01:12:51.000Z
2016-07-08T01:12:51.000Z
dpmm/data.py
jmeyers314/DP_SNe
d5a91e96425fe99c8f4450a9f11256f3abbd43eb
[ "BSD-2-Clause" ]
9
2017-06-30T20:46:57.000Z
2021-08-17T06:47:58.000Z
import numpy as np from utils import pick_discrete class PseudoMarginalData(object): def __init__(self, data, interim_prior): # Data should have dims [NOBJ, NSAMPLE, NDIM] or [NOBJ, NSAMPLE] if NDIM is 1 # interim_prior should have dims [NOBJ, NSAMPLE] self.data = data self.interim...
33.821429
98
0.590813
247
1,894
4.408907
0.336032
0.121212
0.088154
0.052342
0.115702
0
0
0
0
0
0
0.006716
0.292503
1,894
55
99
34.436364
0.80597
0.168955
0
0.157895
0
0
0.071887
0
0
0
0
0
0
1
0.210526
false
0.052632
0.078947
0.078947
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
c6b550842696ff4dd9980b8e5f14443b1b3fd57c
3,168
py
Python
bitgo/cmd.py
geeks121/pybitgo
7d85f77de672e0b1d58deb4f4145e254dfcc75fc
[ "BSD-3-Clause" ]
3
2016-01-02T07:28:26.000Z
2018-12-06T07:46:38.000Z
bitgo/cmd.py
geeks121/pybitgo
7d85f77de672e0b1d58deb4f4145e254dfcc75fc
[ "BSD-3-Clause" ]
1
2016-01-01T13:21:06.000Z
2016-02-15T20:20:17.000Z
bitgo/cmd.py
geeks121/pybitgo
7d85f77de672e0b1d58deb4f4145e254dfcc75fc
[ "BSD-3-Clause" ]
7
2015-11-17T00:07:49.000Z
2020-07-08T13:01:07.000Z
__author__ = 'sserrano' import json import os from .bitgo import BitGo def load_config(filename): if os.path.exists(filename): try: return json.load(open(filename, 'rb')) except ValueError: return {} else: return {} def update_config(filename, cnf): config =...
31.366337
94
0.602273
394
3,168
4.662437
0.225888
0.11976
0.065324
0.040827
0.229178
0.149701
0.126837
0.126837
0.126837
0.126837
0
0.008322
0.279356
3,168
101
95
31.366337
0.796321
0
0
0.232558
0
0
0.200694
0
0
0
0
0
0
0
null
null
0.069767
0.081395
null
null
0.162791
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
1
0
0
0
0
0
2
c6bffc8ae3a6e1f96570563edce505252fe7341d
2,873
py
Python
S4/S4 Library/simulation/ui/pack_specific_tuning.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/ui/pack_specific_tuning.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/ui/pack_specific_tuning.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from sims4.localization import TunableLocalizedStringFactory from sims4.tuning.tunable import TunableEnumFlags, TunableMapping, TunableReference, TunableTuple, OptionalTunable from sims4.tuning.tunable_base import ExportModes from venues.venue_tuning import VenueFlags import services import sims4.resources logger = sim...
119.708333
1,702
0.709711
358
2,873
5.52514
0.326816
0.061173
0.0273
0.039434
0.111729
0.111729
0.111729
0.086451
0.086451
0
0
0.004029
0.222416
2,873
23
1,703
124.913043
0.881379
0
0
0
0
0.142857
0.37835
0
0
0
0
0
0
1
0.047619
false
0
0.285714
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c6dd0957c160f16d16194dc5e51198f7daf8c2e3
10,041
py
Python
pysnmp/BROCADE-VCS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/BROCADE-VCS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/BROCADE-VCS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module BROCADE-VCS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BROCADE-VCS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:24:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
104.59375
1,393
0.763868
1,056
10,041
7.261364
0.163826
0.01252
0.010955
0.014085
0.37024
0.295383
0.247392
0.247392
0.247392
0.223135
0
0.067379
0.086545
10,041
95
1,394
105.694737
0.768644
0.032268
0
0.109756
0
0
0.179131
0.024001
0
0
0
0
0
1
0
false
0.04878
0.109756
0
0.329268
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c6ddfbc78faff81e30851f722d38c9c27875bb80
1,607
py
Python
main.py
Hsuirad/Hemorrhagic-Volume-Assessment
aacaef8c39853cc3272dfa9916c824a0294390b2
[ "MIT" ]
null
null
null
main.py
Hsuirad/Hemorrhagic-Volume-Assessment
aacaef8c39853cc3272dfa9916c824a0294390b2
[ "MIT" ]
null
null
null
main.py
Hsuirad/Hemorrhagic-Volume-Assessment
aacaef8c39853cc3272dfa9916c824a0294390b2
[ "MIT" ]
null
null
null
import cv2 as c import numpy as np import tkinter as tk from sklearn.neighbors import KNeighborsClassifier from tkinter import filedialog from PIL import ImageTk, Image l = tk.Tk() l.geometry('300x300') def select(): global name name = filedialog.askopenfilename(initialdir = "/Users/Dariush/Deskt...
31.509804
190
0.53827
190
1,607
4.526316
0.6
0.013953
0.018605
0
0
0
0
0
0
0
0
0.02514
0.331674
1,607
51
191
31.509804
0.775605
0.225887
0
0
0
0
0.184544
0.063437
0
0
0
0.019608
0
1
0.086957
false
0
0.304348
0
0.391304
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
1
0
0
0
0
2
c6f1131a5e8a3519986631cfb4c49dbef4e1ed0a
7,671
py
Python
tensorbay/dataset/dataset.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/dataset/dataset.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/dataset/dataset.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """Notes, DatasetBase, Dataset and FusionDataset. :class:`Notes` contains the basic information of a :class:`DatasetBase`. :class:`DatasetBase` defines the basic concept of a dataset, which is the top-level structure to handle your data...
30.440476
100
0.623517
887
7,671
5.253664
0.206313
0.015021
0.025107
0.032618
0.42103
0.366094
0.293991
0.279399
0.259657
0.239056
0
0.00091
0.283405
7,671
251
101
30.561753
0.846826
0.499022
0
0.150685
0
0
0.033137
0.006813
0
0
0
0
0
1
0.246575
false
0
0.068493
0.027397
0.561644
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
1
0
0
2
059b28f0b9c7fb6a0d5be20bf19db41cded15546
239
py
Python
get_styles.py
big-skim-milk/Quetzal
806d379fe4815f642e75b0efebf5262d7ab8af8d
[ "MIT" ]
2
2020-03-05T16:22:57.000Z
2020-03-05T20:32:40.000Z
get_styles.py
big-skim-milk/Quetzal
806d379fe4815f642e75b0efebf5262d7ab8af8d
[ "MIT" ]
null
null
null
get_styles.py
big-skim-milk/Quetzal
806d379fe4815f642e75b0efebf5262d7ab8af8d
[ "MIT" ]
null
null
null
IFS = """ """ def STYLES(): with open('style.qss') as main_styles: with open('customizable_styles.qss') as custom_styles: all_styles = main_styles.read() + IFS + custom_styles.read() return all_styles
23.9
72
0.615063
30
239
4.666667
0.466667
0.142857
0.2
0
0
0
0
0
0
0
0
0
0.25523
239
9
73
26.555556
0.786517
0
0
0
0
0
0.138075
0.096234
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
05a5435aa25f699b465ce551d11b3dda2ee7b72e
286
py
Python
src/0059.spiral-matrix-ii/spiral-matrix-ii.py
lyphui/Just-Code
e0c3c3ecb67cb805080ff686e88522b2bffe7741
[ "MIT" ]
782
2019-11-19T08:20:49.000Z
2022-03-25T06:59:09.000Z
src/0059.spiral-matrix-ii/spiral-matrix-ii.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
1
2021-03-04T12:21:01.000Z
2021-03-05T01:23:54.000Z
src/0059.spiral-matrix-ii/spiral-matrix-ii.py
Heitao5200/Just-Code
5bb3ee485a103418e693b7ec8e26dc84f3691c79
[ "MIT" ]
155
2019-11-20T08:20:42.000Z
2022-03-19T07:28:09.000Z
class Solution: def generateMatrix(self, n: int) -> List[List[int]]: if not n: return [] A, lo = [[n*n]], n*n while lo > 1: lo, hi = lo - len(A), lo A = [[ i for i in range(lo, hi)]] + [list(j) for j in zip(*A[::-1])] return A
35.75
80
0.447552
47
286
2.723404
0.489362
0.046875
0.046875
0
0
0
0
0
0
0
0
0.01105
0.367133
286
8
81
35.75
0.696133
0
0
0
1
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
05b7a2e86f2a2a374eaa5267539f1c99d9a286fe
368
py
Python
cloudbio/deploy/plugins/galaxy.py
glebkuznetsov/cloudbiolinux
ec47b90ce72f6cd1bc4e5422231f19d41378b122
[ "MIT" ]
122
2015-01-04T13:23:27.000Z
2022-01-18T22:52:12.000Z
cloudbio/deploy/plugins/galaxy.py
glebkuznetsov/cloudbiolinux
ec47b90ce72f6cd1bc4e5422231f19d41378b122
[ "MIT" ]
170
2015-02-09T18:03:49.000Z
2021-11-14T02:32:09.000Z
cloudbio/deploy/plugins/galaxy.py
glebkuznetsov/cloudbiolinux
ec47b90ce72f6cd1bc4e5422231f19d41378b122
[ "MIT" ]
107
2015-01-06T06:10:04.000Z
2022-02-10T17:25:34.000Z
from cloudbio.galaxy.tools import _install_application def install_tool(options): version = options.get("galaxy_tool_version") name = options.get("galaxy_tool_name") install_dir = options.get("galaxy_tool_dir", None) _install_application(name, version, tool_install_dir=install_dir) configure_actions...
26.285714
69
0.769022
47
368
5.617021
0.361702
0.151515
0.181818
0.227273
0
0
0
0
0
0
0
0
0.133152
368
13
70
28.307692
0.827586
0
0
0
0
0
0.1875
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
05b9e96388e8aed8967c3f1bcbd7c44e77e899ae
2,276
py
Python
BlenderAddon/PhotonBlend/psdl/cmd.py
jasonoscar88/Photon-v2
90649196c436261d28cc2300511b78ac88236448
[ "MIT" ]
88
2017-01-21T18:20:16.000Z
2021-12-21T02:32:04.000Z
BlenderAddon/PhotonBlend/psdl/cmd.py
jasonoscar88/Photon-v2
90649196c436261d28cc2300511b78ac88236448
[ "MIT" ]
72
2017-07-28T10:00:35.000Z
2021-11-09T18:36:23.000Z
BlenderAddon/PhotonBlend/psdl/cmd.py
jasonoscar88/Photon-v2
90649196c436261d28cc2300511b78ac88236448
[ "MIT" ]
8
2017-03-19T12:19:10.000Z
2020-05-19T15:15:05.000Z
from . import cmd_base from abc import abstractmethod class WorldCommand(cmd_base.SdlCommand): def __init__(self): super(WorldCommand, self).__init__() self.__clauses = {} self.__data_name = "" @abstractmethod def get_type_category(self): pass @abstractmethod def get_type_name(self): pass @abst...
20.504505
77
0.708699
295
2,276
5.00339
0.155932
0.075881
0.081301
0.097561
0.607724
0.508808
0.508808
0.423442
0.423442
0.423442
0
0
0.163005
2,276
110
78
20.690909
0.774803
0.008348
0
0.540541
0
0
0.019069
0
0
0
0
0.009091
0
1
0.297297
false
0.094595
0.027027
0.067568
0.472973
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
0
0
0
2
05c61614c1b0774ac87512e8ab962aa8dc2f0e54
443
py
Python
AppDB/cassandra/start_cassandra.py
eabyshev/appscale
1cfb5a609130f415143ec76718e839b0f73ac668
[ "Apache-2.0" ]
2
2018-10-09T17:48:12.000Z
2019-01-15T10:18:19.000Z
AppDB/cassandra_env/start_cassandra.py
christianbaun/appscale
c24ddfd987c8eed8ed8864cc839cc0556a8af3c7
[ "Apache-2.0" ]
null
null
null
AppDB/cassandra_env/start_cassandra.py
christianbaun/appscale
c24ddfd987c8eed8ed8864cc839cc0556a8af3c7
[ "Apache-2.0" ]
1
2022-02-20T20:57:12.000Z
2022-02-20T20:57:12.000Z
""" A test script to start Cassandra. """ import logging import os import sys import cassandra_interface sys.path.append(os.path.join(os.path.dirname(__file__), "../../lib")) import monit_interface def run(): """ Starts up cassandra. """ logging.warning("Starting Cassandra.") monit_interface.start(cassandra...
21.095238
71
0.724605
57
443
5.280702
0.561404
0.093023
0
0
0
0
0
0
0
0
0
0
0.133183
443
20
72
22.15
0.783854
0.124154
0
0
0
0
0.109626
0
0
0
0
0
0
1
0.076923
true
0
0.384615
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
1
0
1
0
0
0
0
2
05c917389f6a14a9387f10c88948c4a41f567bd9
732
py
Python
502/modes.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
502/modes.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
502/modes.py
kaixiang1992/python-flask
2b4c597d83f5a6ed662d42d7ff692e563a9adbf8
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine, Column, Integer, String, DATETIME from sqlalchemy.ext.declarative import declarative_base from datetime import datetime # TODO: db_uri # dialect+driver://username:password@host:port/database?charset=utf8 DB_URI = 'mysql+pymysql://root:root123@127.0.0.1:3300/alembic_demo?charset=ut...
31.826087
80
0.755464
98
732
5.5
0.55102
0.072356
0.051948
0.081633
0.100186
0
0
0
0
0
0
0.029827
0.129781
732
22
81
33.272727
0.816327
0.143443
0
0
0
0.076923
0.117363
0.110932
0
0
0
0.045455
0
1
0
false
0
0.230769
0
0.769231
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
1
0
0
2
05d22b83fb999e8403b59808d727038bc61f849e
7,818
py
Python
apis_server/test/test_models_controller.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
apis_server/test/test_models_controller.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
apis_server/test/test_models_controller.py
ilyde-platform/ilyde-apis
cd5dadbfcf3b4735cdc26a5af0ab51b7b20ffa04
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright (c) 2020-2021 Hopenly srl. # # This file is part of Ilyde. # # 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 # #...
32.987342
77
0.560501
777
7,818
5.483912
0.173745
0.069702
0.028162
0.035203
0.734569
0.720253
0.671204
0.671204
0.641164
0.617695
0
0.013068
0.324635
7,818
236
78
33.127119
0.793939
0.151445
0
0.69375
0
0
0.23893
0.03458
0
0
0
0
0.0625
1
0.0625
false
0
0.03125
0
0.1
0
0
0
0
null
0
0
0
0
1
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
2
05e6e92988eac79f075612615372f0e7d5257dad
522
py
Python
tests/r/test_sparrows.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_sparrows.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_sparrows.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.sparrows import sparrows def test_sparrows(): """Test module sparrows.py by downloading sparrows.csv and testing shape of extracted data h...
21.75
44
0.756705
72
522
5.208333
0.569444
0.08
0.128
0
0
0
0
0
0
0
0
0.018648
0.178161
522
23
45
22.695652
0.855478
0.218391
0
0
0
0
0
0
0
0
0
0
0.066667
1
0.066667
false
0
0.466667
0
0.533333
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
1
0
1
0
0
2
05ed6722bc44cb77c91b5172d9c46093f53cbbdd
5,634
py
Python
legacy/regenesis/soap.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
16
2015-04-09T14:40:53.000Z
2021-07-13T15:03:35.000Z
legacy/regenesis/soap.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
1
2018-06-25T07:51:18.000Z
2018-06-25T07:51:18.000Z
legacy/regenesis/soap.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
3
2015-12-20T18:24:21.000Z
2018-06-24T16:57:25.000Z
from threading import local from suds.client import * from suds import * import config from mongo import cache_result, load_cached, EMPTY from util import serialize_soap def get_test_service(): d = local() if d.__dict__.get('test') is None: d.__dict__['test'] = Client(config.get('test_service')) ...
42.360902
120
0.57863
607
5,634
5.110379
0.159802
0.072534
0.020632
0.042876
0.512573
0.443585
0.396518
0.258221
0.232108
0.232108
0
0.011774
0.291445
5,634
132
121
42.681818
0.765281
0.06443
0
0.224299
0
0
0.077552
0
0
0
0
0
0
0
null
null
0.056075
0.056075
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
1
0
0
0
0
0
2
05f30c96b05342fed065f1d9290558f3476a4065
188
py
Python
setup.py
afcarl/tensorcv
6545a48722dafb5c1cead3ed4f810ebcbef2c597
[ "MIT" ]
1
2019-04-22T16:37:36.000Z
2019-04-22T16:37:36.000Z
setup.py
afcarl/tensorcv
6545a48722dafb5c1cead3ed4f810ebcbef2c597
[ "MIT" ]
null
null
null
setup.py
afcarl/tensorcv
6545a48722dafb5c1cead3ed4f810ebcbef2c597
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='tensorcv', version=0.1, packages=['tensorcv'], entry_points=""" [console_scripts] tcv=tensorcv:cli """ )
15.666667
32
0.590426
20
188
5.45
0.85
0
0
0
0
0
0
0
0
0
0
0.014493
0.265957
188
11
33
17.090909
0.775362
0
0
0
0
0
0.382979
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
05f48e6f515b48de73122f9df97960c9b4422d8e
281
py
Python
hdbo/exceptions.py
eric-vader/HD-BO-Additive-Models
0d7e1d46194af2e3d402631caec6e7be9a50376a
[ "MIT" ]
5
2021-03-25T02:58:01.000Z
2022-02-19T12:58:52.000Z
hdbo/exceptions.py
eric-vader/HD-BO-Additive-Models
0d7e1d46194af2e3d402631caec6e7be9a50376a
[ "MIT" ]
null
null
null
hdbo/exceptions.py
eric-vader/HD-BO-Additive-Models
0d7e1d46194af2e3d402631caec6e7be9a50376a
[ "MIT" ]
1
2020-12-27T07:58:46.000Z
2020-12-27T07:58:46.000Z
# For BO early Termination class EarlyTerminationException(Exception): def __init__(self, message, metrics): # Call the base class constructor with the parameters it needs super(EarlyTerminationException, self).__init__(message) self.metrics = metrics
35.125
70
0.736655
30
281
6.633333
0.7
0
0
0
0
0
0
0
0
0
0
0
0.199288
281
8
71
35.125
0.884444
0.302491
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
af0a426dc856506037247fa744523bd49f491a30
11,409
py
Python
pysnmp/MIB-INTEL-IP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/MIB-INTEL-IP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/MIB-INTEL-IP.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module MIB-INTEL-IP (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MIB-INTEL-IP # Produced by pysmi-0.3.4 at Mon Apr 29 20:01:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
112.960396
1,274
0.735297
1,375
11,409
6.101091
0.121455
0.01049
0.014662
0.019549
0.468471
0.439862
0.352605
0.352605
0.255096
0.246752
0
0.077168
0.090192
11,409
100
1,275
114.09
0.731021
0.027873
0
0
0
0
0.164591
0.00397
0
0
0
0
0
1
0
false
0
0.076087
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af113086007ad7e2a76fde5e219613e1ba65611a
925,210
py
Python
pysnmp-with-texts/TIMETRA-SERV-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/TIMETRA-SERV-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/TIMETRA-SERV-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TIMETRA-SERV-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-SERV-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:17:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
185.190152
12,088
0.792393
108,532
925,210
6.754929
0.034156
0.048057
0.0841
0.008375
0.576661
0.479047
0.421827
0.405541
0.363791
0.351938
0
0.044524
0.095505
925,210
4,995
12,089
185.227227
0.831532
0.000352
0
0.035113
0
0.180434
0.447117
0.077574
0
0
0.000045
0
0
1
0
false
0.003247
0.017049
0
0.057642
0.000406
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af45b393dd76965dad44b7c55dc744df5d8a2a28
2,099
py
Python
backend/app/datastores.py
ikumen/notas
a05799a8b5ac5db4bb2c09144315636e87959269
[ "MIT" ]
null
null
null
backend/app/datastores.py
ikumen/notas
a05799a8b5ac5db4bb2c09144315636e87959269
[ "MIT" ]
6
2021-06-03T00:13:00.000Z
2021-06-19T18:02:51.000Z
backend/app/datastores.py
ikumen/notas
a05799a8b5ac5db4bb2c09144315636e87959269
[ "MIT" ]
1
2021-06-04T14:18:58.000Z
2021-06-04T14:18:58.000Z
from bson import json_util, objectid from pymongo import MongoClient, database from typing import List from backend.app import settings class MongoCollection: """Generic class wrapper around Mongo DB operations around a collection. """ def __init__(self, collection_name: str, db: database.Database = None)...
36.824561
89
0.641258
267
2,099
4.94382
0.310861
0.084848
0.034091
0.045455
0.207576
0.124242
0.075758
0.075758
0.075758
0.075758
0
0.001934
0.261077
2,099
56
90
37.482143
0.84913
0.314435
0
0
0
0
0.011914
0
0
0
0
0
0
1
0.241379
false
0
0.137931
0
0.62069
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
1
0
0
2
af47516f7d8192012b55fc1a2c41c154f1712537
12,541
py
Python
test.py
matchagreen/fkom-inventory-management-system
a96e8027261d74a7985fb41e2322b695dcd02599
[ "MIT" ]
null
null
null
test.py
matchagreen/fkom-inventory-management-system
a96e8027261d74a7985fb41e2322b695dcd02599
[ "MIT" ]
null
null
null
test.py
matchagreen/fkom-inventory-management-system
a96e8027261d74a7985fb41e2322b695dcd02599
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd staff_planning = [ [[0, 0, 8], [1, 0, 8], [2, 0, 8], [3, 0, 8], [4, 0, 8], [5, 0, 8], [6, 0, 8], [7, 0, 8], [8, 0, 8], [9, 0, 8], [10, 0, 8], [11, 0, 8], [12, 0, 8], [13, 0, 8], [14, 0, 8], [ 15, 0, 8], [16, 0, 8], [17, 0, 8], [18, 0, 8], [19, 0, 8], [20, 0, 8], [21,...
40.585761
357
0.498605
2,451
12,541
2.467156
0.073031
0.099884
0.049115
0.05358
0.514801
0.461551
0.418059
0.407144
0.386803
0.386803
0
0.235149
0.257715
12,541
308
358
40.717532
0.414438
0.003827
0
0.178082
0
0
0.005887
0
0
0
0
0
0
1
0.082192
false
0
0.013699
0.006849
0.184932
0.027397
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
af713971f2408db5f18febbeee9c487041327f4b
16,687
py
Python
Fig6-splocs/plotenergy.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
7
2020-07-01T09:30:18.000Z
2022-01-18T04:19:50.000Z
Fig6-splocs/plotenergy.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
null
null
null
Fig6-splocs/plotenergy.py
YuePengUSTC/AADR
ed19730fc56f5d019089dbfd7544eeb35ba9c9a2
[ "BSD-3-Clause" ]
1
2021-01-19T03:09:38.000Z
2021-01-19T03:09:38.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import os from IPython.core.pylabtools import figsize font1 = {'family': 'Times New Roman', 'weight': 'normal', 'size': 20} font2 = {'family': 'Times New Roman', 'weight': 'normal', 'size': 16} labels = ['', '', '', ''] colors = [] colo...
36.041037
140
0.438425
2,081
16,687
3.393561
0.111004
0.041631
0.019258
0.031861
0.770178
0.730388
0.701218
0.65987
0.630133
0.586519
0
0.075956
0.418529
16,687
462
141
36.119048
0.65186
0.133457
0
0.650943
0
0
0.078168
0.030419
0
0
0
0
0
1
0.012579
false
0
0.012579
0
0.034591
0.018868
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
af9d0f0b225bb6e468315aca353d6f1f5561d1b9
626
py
Python
hbos_server/validationbase.py
robscetury/hbos
6d6cc52a2e490e67dbf0d31adcd6c1499aaa1a44
[ "MIT" ]
null
null
null
hbos_server/validationbase.py
robscetury/hbos
6d6cc52a2e490e67dbf0d31adcd6c1499aaa1a44
[ "MIT" ]
null
null
null
hbos_server/validationbase.py
robscetury/hbos
6d6cc52a2e490e67dbf0d31adcd6c1499aaa1a44
[ "MIT" ]
null
null
null
from abc import abstractmethod class Validation(object): def __init__(self, is_valid:bool, message:str): self._is_valid = is_valid self._message = message @property def is_valid(self) -> bool: return self._is_valid @is_valid.setter def is_valid(self,value:bool): s...
20.193548
51
0.65655
75
626
5.24
0.306667
0.142494
0.111959
0.066158
0.091603
0
0
0
0
0
0
0
0.253994
626
30
52
20.866667
0.841542
0
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0.095238
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
afa8d7c806b0a3ccac7cf2c00c655bf07d280c88
13,889
py
Python
tests/diffcalc/scenarios.py
DiamondLightSource/diffcalc-core
6914783dc81306ebd739554adf69cda9491d95bc
[ "Apache-2.0" ]
1
2021-06-14T14:16:38.000Z
2021-06-14T14:16:38.000Z
tests/diffcalc/scenarios.py
DiamondLightSource/diffcalc-core
6914783dc81306ebd739554adf69cda9491d95bc
[ "Apache-2.0" ]
28
2021-04-13T10:32:56.000Z
2022-03-01T01:04:40.000Z
tests/diffcalc/scenarios.py
DiamondLightSource/diffcalc-core
6914783dc81306ebd739554adf69cda9491d95bc
[ "Apache-2.0" ]
null
null
null
### # Copyright 2008-2011 Diamond Light Source Ltd. # This file is part of Diffcalc. # # Diffcalc 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 late...
29.868817
87
0.522572
1,849
13,889
3.893997
0.254191
0.011111
0.007083
0.004444
0.231389
0.188889
0.158889
0.138889
0.109444
0.089444
0
0.239627
0.297214
13,889
464
88
29.93319
0.498002
0.167831
0
0.292876
0
0
0.036835
0.002274
0
0
0
0
0
1
0.015831
false
0
0.010554
0.002639
0.042216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
afaf30d93c4d1777966cc45256394b4265e14e00
292
py
Python
src/poliastro/frames/enums.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
634
2015-05-11T08:50:42.000Z
2022-03-28T10:13:13.000Z
src/poliastro/frames/enums.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
1,386
2015-04-29T20:54:36.000Z
2022-03-30T13:06:34.000Z
src/poliastro/frames/enums.py
sundeshgupta/poliastro
0a269d43c8a082df3323d38ce73f5e1ae3262ccd
[ "MIT" ]
324
2015-04-29T20:52:43.000Z
2022-03-06T23:19:15.000Z
"""Coordinate frames definitions. """ from enum import Enum class Planes(Enum): EARTH_EQUATOR = "Earth mean Equator and Equinox of epoch (J2000.0)" EARTH_ECLIPTIC = "Earth mean Ecliptic and Equinox of epoch (J2000.0)" BODY_FIXED = "Rotating body mean Equator and node of date"
26.545455
73
0.726027
42
292
4.97619
0.547619
0.086124
0.133971
0.162679
0.220096
0.220096
0
0
0
0
0
0.042194
0.188356
292
10
74
29.2
0.839662
0.10274
0
0
0
0
0.559055
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
afc46753d633bdebf137ab246b88112dcde8da9a
54,847
py
Python
DistributeCralwerSpecialInstitution/Spiders/wuba/tmp.py
xiaoshicae/suanhua
b7724bff14bf205c00f405bf6fe7af6d8fecd61f
[ "Apache-2.0" ]
3
2018-12-14T08:16:22.000Z
2019-04-23T01:30:56.000Z
DistributeCralwerSpecialInstitution/Spiders/wuba/tmp.py
xiaoshicae/suanhua
b7724bff14bf205c00f405bf6fe7af6d8fecd61f
[ "Apache-2.0" ]
null
null
null
DistributeCralwerSpecialInstitution/Spiders/wuba/tmp.py
xiaoshicae/suanhua
b7724bff14bf205c00f405bf6fe7af6d8fecd61f
[ "Apache-2.0" ]
1
2018-09-04T09:48:06.000Z
2018-09-04T09:48:06.000Z
# --*-- encoding=utf-8 --*--# from lxml import etree content = """ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <...
52.839114
2,599
0.602622
6,743
54,847
4.780217
0.195462
0.017529
0.017032
0.023206
0.448888
0.403437
0.337356
0.312289
0.282257
0.242546
0
0.081546
0.196656
54,847
1,037
2,600
52.890068
0.649917
0.000474
0
0.241195
0
0.198506
0.996078
0.393429
0.002134
0
0
0
0
1
0
false
0.003202
0.001067
0
0.001067
0.002134
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb74c427475458038bd3e555ee0c14b2c21fc329
86
py
Python
Codewars/7kyu/form-the-largest/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/7kyu/form-the-largest/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/7kyu/form-the-largest/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 max_number = lambda n: int(''.join(sorted(str(n), reverse = True)))
21.5
67
0.627907
15
86
3.533333
0.933333
0
0
0
0
0
0
0
0
0
0
0.041096
0.151163
86
3
68
28.666667
0.684932
0.162791
0
0
0
0
0
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
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
2
bb775181f6d0912a543a4a97891eb1aad7fe67db
1,511
py
Python
datetoken/objects.py
sonirico/datetoken
7b8cfb184c967096cbd83ddbf97e2e0e2120b10d
[ "MIT" ]
5
2018-10-19T08:05:53.000Z
2020-01-24T18:48:52.000Z
datetoken/objects.py
sonirico/datetoken.py
9c35450e4338e9c7f69c2096818289d303167d46
[ "MIT" ]
6
2020-04-29T07:08:59.000Z
2022-03-26T11:20:05.000Z
datetoken/objects.py
sonirico/datetoken
7b8cfb184c967096cbd83ddbf97e2e0e2120b10d
[ "MIT" ]
3
2018-11-29T11:21:41.000Z
2020-03-05T03:32:48.000Z
from functools import reduce from .ast import get_utc_now from .ast import NowExpression, ModifierExpression, SnapExpression class Token(object): def __init__(self, nodes=None, at=None): self._at = at if not nodes: self._nodes = [NowExpression()] elif not isinstance(nodes[0], ...
27.472727
88
0.597617
176
1,511
4.948864
0.380682
0.092997
0.030999
0.044776
0.140069
0.078071
0.078071
0
0
0
0
0.001916
0.309067
1,511
54
89
27.981481
0.832375
0.187955
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.233333
false
0
0.1
0.066667
0.533333
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
1
0
0
2
bb8cc95ca9e8d1782b31f871cb9ff2d260707361
2,022
py
Python
AppImageBuilder/app_dir/runtimes/classic/helpers/test_dynamic_loader.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
AppImageBuilder/app_dir/runtimes/classic/helpers/test_dynamic_loader.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
AppImageBuilder/app_dir/runtimes/classic/helpers/test_dynamic_loader.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
# Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publi...
48.142857
107
0.677052
289
2,022
4.66782
0.356401
0.093403
0.144552
0.173462
0.352854
0.335063
0.259451
0.219422
0.164566
0.112676
0
0.035605
0.194362
2,022
42
108
48.142857
0.792511
0.298714
0
0
0
0
0.497866
0.472262
0
0
0
0
0.076923
1
0.115385
false
0
0.076923
0
0.230769
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb946f22dd4571d32f174f98fcbea40650a77e06
350
py
Python
lighting/integration_tests/tests/main.py
ovaar/reactive-testing
a3a59134aee1784a6baf62f6dd8f5e5617dc2afa
[ "MIT" ]
null
null
null
lighting/integration_tests/tests/main.py
ovaar/reactive-testing
a3a59134aee1784a6baf62f6dd8f5e5617dc2afa
[ "MIT" ]
null
null
null
lighting/integration_tests/tests/main.py
ovaar/reactive-testing
a3a59134aee1784a6baf62f6dd8f5e5617dc2afa
[ "MIT" ]
null
null
null
import pytest from pytest_bdd import scenarios, scenario @scenario( feature_name='features/lighting.feature', scenario_name='The lights are controlled', example_converters=dict( light_id=str, light_begin_state=str, light_function=str, light_final_state=str )) def test_t...
21.875
46
0.705714
44
350
5.295455
0.659091
0.103004
0
0
0
0
0
0
0
0
0
0
0.217143
350
15
47
23.333333
0.850365
0
0
0
0
0
0.142857
0.071429
0
0
0
0
0
1
0.076923
true
0.076923
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
2
bb9c568f14f42d1eb2b39e719e5e3747896fb223
396
py
Python
core/transport/mapping.py
JohnBat26/dp-agent
ad9d407bc70e452f0a2c2d1a1e7f2edc6a9514f4
[ "Apache-2.0" ]
null
null
null
core/transport/mapping.py
JohnBat26/dp-agent
ad9d407bc70e452f0a2c2d1a1e7f2edc6a9514f4
[ "Apache-2.0" ]
null
null
null
core/transport/mapping.py
JohnBat26/dp-agent
ad9d407bc70e452f0a2c2d1a1e7f2edc6a9514f4
[ "Apache-2.0" ]
null
null
null
from core.transport.gateways.rabbitmq import RabbitMQAgentGateway, RabbitMQServiceGateway, RabbitMQChannelGateway from core.connectors import ServiceGatewayHTTPConnector GATEWAYS_MAP = { 'AMQP': { 'agent': RabbitMQAgentGateway, 'service': RabbitMQServiceGateway, 'channel': RabbitMQChannelGa...
26.4
113
0.752525
27
396
10.962963
0.592593
0.054054
0
0
0
0
0
0
0
0
0
0
0.169192
396
14
114
28.285714
0.899696
0
0
0
0
0
0.068182
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bba13dcaad96553840aa8da2c8b172c04b7b192b
4,605
py
Python
multiview_gpu/tests/test_mds.py
dani-garcia/multiview_gpu
b592b6bdf5d9bbd4ab08f4e5bf48c0435b1c8d7f
[ "BSD-2-Clause" ]
5
2019-03-29T13:50:51.000Z
2021-05-21T09:35:21.000Z
multiview_gpu/tests/test_mds.py
dani-garcia/multiview_gpu
b592b6bdf5d9bbd4ab08f4e5bf48c0435b1c8d7f
[ "BSD-2-Clause" ]
null
null
null
multiview_gpu/tests/test_mds.py
dani-garcia/multiview_gpu
b592b6bdf5d9bbd4ab08f4e5bf48c0435b1c8d7f
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import tensorflow as tf from numpy.testing import assert_array_almost_equal as array_eq from sklearn.utils.testing import assert_raises import pytest import multiview_gpu.mvmds as mvmds from multiview_gpu.util import load_data_tf def test_preprocess_mds(sess): data = np.arange(25, dtype=float)...
36.547619
93
0.567861
610
4,605
4.195082
0.265574
0.031262
0.066432
0.042204
0.41227
0.350918
0.329816
0.329816
0.291129
0.291129
0
0.299673
0.268838
4,605
125
94
36.84
0.46035
0.041694
0
0.35
0
0
0.011116
0
0
0
0
0
0.05
1
0.03
false
0
0.08
0
0.11
0.03
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
bbb0e0b6447844b4f8a2519f69e27821dc3a26db
545
py
Python
crashbin_app/migrations/0009_unique_names.py
The-Compiler/crashbin
dea7b4760b646d1ce51ca9dab5e997bc92902f76
[ "MIT" ]
null
null
null
crashbin_app/migrations/0009_unique_names.py
The-Compiler/crashbin
dea7b4760b646d1ce51ca9dab5e997bc92902f76
[ "MIT" ]
104
2019-03-19T10:13:12.000Z
2022-02-10T07:15:18.000Z
crashbin_app/migrations/0009_unique_names.py
The-Compiler/crashbin
dea7b4760b646d1ce51ca9dab5e997bc92902f76
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-20 09:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("crashbin_app", "0008_create_mailbox")] operations = [ migrations.AlterField( model_name="bin", name="name", field=mod...
24.772727
64
0.594495
59
545
5.372881
0.627119
0.126183
0.157729
0.182965
0.315457
0.315457
0.315457
0.315457
0.315457
0.315457
0
0.064267
0.286239
545
21
65
25.952381
0.750643
0.082569
0
0.533333
1
0
0.094378
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bbcc40a23927b8a5e706a9b266b0c2159d5b0d20
1,399
py
Python
VPN_Configuration.py
rphaley/DePaul_Class_VPN
f4663d16685618c3a07f10bba5ac2116d0e77894
[ "MIT" ]
null
null
null
VPN_Configuration.py
rphaley/DePaul_Class_VPN
f4663d16685618c3a07f10bba5ac2116d0e77894
[ "MIT" ]
null
null
null
VPN_Configuration.py
rphaley/DePaul_Class_VPN
f4663d16685618c3a07f10bba5ac2116d0e77894
[ "MIT" ]
null
null
null
def makeVPN(classNum, inNet, sslNet,users): f = open('VPNconfig.txt','a') f.write(''' object network SSL_CNS{}_NET subnet 10.{}.0.0 255.255.0.0 ! nat (inside,outside) source static SSL_CNS{}_NET SSL_CNS{}_NET destination static ADMIN_SSL_NET ADMIN_SSL_NET no-proxy-arp route-lookup '''.format(classNum,inNet,c...
41.147059
149
0.724089
217
1,399
4.493088
0.354839
0.129231
0.133333
0.203077
0.306667
0.122051
0.122051
0.122051
0.122051
0.084103
0
0.037429
0.121515
1,399
33
150
42.393939
0.755899
0
0
0
0
0.066667
0.693352
0.117941
0
0
0
0
0
1
0.033333
false
0
0
0
0.033333
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bbcf875e441cb56bd46872ab5cf7e15d3b6922ca
355
py
Python
services/recommender/api/utils.py
TimothyNguyen/CS497-B
0b94bb71ff216cef437cdcbbe897c2ae66623a14
[ "MIT" ]
2
2021-03-22T03:41:05.000Z
2021-04-30T15:58:32.000Z
services/recommender/api/utils.py
TimothyNguyen/CS497-B
0b94bb71ff216cef437cdcbbe897c2ae66623a14
[ "MIT" ]
13
2021-03-09T00:56:52.000Z
2021-05-07T01:33:43.000Z
services/recommender/api/utils.py
TimothyNguyen/CS497-B
0b94bb71ff216cef437cdcbbe897c2ae66623a14
[ "MIT" ]
null
null
null
import os def get_host(service: str): ''' Retrieves the host. (Helps with debugging locally) - Arguments: - service: a Docker service - Returns: a string of either localhost or a Docker service ''' inside_docker = os.environ.get('IS_DOCKER_CONTAINER', False) return servic...
25.357143
64
0.667606
45
355
5.155556
0.666667
0.060345
0.12069
0
0
0
0
0
0
0
0
0
0.250704
355
14
65
25.357143
0.87218
0.453521
0
0
0
0
0.17284
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
1
0
0
2
bbd0c66d6846c6c91fe803067d1656de08224ae9
283
py
Python
fishbowl/body-frame-calc/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
fishbowl/body-frame-calc/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
fishbowl/body-frame-calc/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
#!/usr/bin/env python from build import ninja_common build = ninja_common.Build("fishbowl/body-frame-calc") files = [ 'main.cpp', ] build.build_cmd('auv-body-frame-calc', files, pkg_confs=['eigen3'], auv_deps=[], lflags=[], cflags=[])
16.647059
54
0.590106
35
283
4.628571
0.685714
0.135802
0.197531
0.222222
0
0
0
0
0
0
0
0.004651
0.240283
283
16
55
17.6875
0.748837
0.070671
0
0
0
0
0.217557
0.091603
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bbd549d9d017433829409dc091770086085b5859
2,003
py
Python
bokbokbok/eval_metrics/regression/regression_eval_metrics.py
orchardbirds/bokbokbok
3a8c52b7e2f6f80b803ff2e7073f3cfbf8f76b6c
[ "MIT" ]
8
2021-03-16T21:39:30.000Z
2022-02-14T15:58:01.000Z
bokbokbok/eval_metrics/regression/regression_eval_metrics.py
orchardbirds/bokbokbok
3a8c52b7e2f6f80b803ff2e7073f3cfbf8f76b6c
[ "MIT" ]
35
2021-03-15T15:24:09.000Z
2021-07-15T07:18:55.000Z
bokbokbok/eval_metrics/regression/regression_eval_metrics.py
orchardbirds/bokbokbok
3a8c52b7e2f6f80b803ff2e7073f3cfbf8f76b6c
[ "MIT" ]
3
2021-03-18T13:49:59.000Z
2021-07-28T13:50:29.000Z
import numpy as np def LogCoshMetric(XGBoost=False): """ Calculates the [Log Cosh Error](https://openreview.net/pdf?id=rkglvsC9Ym) as an alternative to Mean Absolute Error. Args: XGBoost (Bool): Set to True if using XGBoost. We assume LightGBM as default use. Note that ...
32.836066
100
0.617074
256
2,003
4.804688
0.34375
0.035772
0.042276
0.052033
0.681301
0.681301
0.681301
0.656911
0.6
0.6
0
0.002811
0.289566
2,003
61
101
32.836066
0.86156
0.531203
0
0.315789
0
0
0.031537
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.578947
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
1
0
0
2
bbe9b9a589c3842215e46e2c772b5c7f2d65dfac
1,234
py
Python
abcmetaclasses.py
KT12/Python
bf28555f8f20bcb4ad76ff2f023e886d3556217c
[ "MIT" ]
1
2017-05-16T20:33:52.000Z
2017-05-16T20:33:52.000Z
abcmetaclasses.py
KT12/python
bf28555f8f20bcb4ad76ff2f023e886d3556217c
[ "MIT" ]
null
null
null
abcmetaclasses.py
KT12/python
bf28555f8f20bcb4ad76ff2f023e886d3556217c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 15 18:15:28 2016 @author: Ken """ from abc import ABCMeta, abstractmethod class Pet(object): __metaclass__ = ABCMeta def __init__(self,name): self.name = name @abstractmethod def can_swim(self): pass @abstractmet...
22.035714
43
0.525932
148
1,234
4.27027
0.283784
0.099684
0.079114
0.110759
0.56962
0.56962
0.344937
0.344937
0.243671
0
0
0.016311
0.354133
1,234
56
44
22.035714
0.776662
0.058347
0
0.512821
0
0
0.047273
0
0
0
0
0
0
1
0.282051
false
0.051282
0.025641
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
a524d7f06ac29f028ddb5ae78fee8d6584789335
8,351
py
Python
core/utils/middlewares/logger_middleware.py
AKurmazov/hoteluni_bot
f6c25ecc92cc71326cd1c7417f79092874d457a9
[ "MIT" ]
2
2020-09-09T11:24:42.000Z
2021-05-23T18:46:54.000Z
core/utils/middlewares/logger_middleware.py
AKurmazov/hoteluni_bot
f6c25ecc92cc71326cd1c7417f79092874d457a9
[ "MIT" ]
6
2019-08-24T07:35:32.000Z
2020-03-23T17:53:51.000Z
core/utils/middlewares/logger_middleware.py
AKurmazov/hoteluni_bot
f6c25ecc92cc71326cd1c7417f79092874d457a9
[ "MIT" ]
3
2019-09-02T09:34:37.000Z
2021-11-26T18:27:45.000Z
import logging import time from aiogram import Dispatcher, types from aiogram.dispatcher.middlewares import BaseMiddleware HANDLED_STR = ["Unhandled", "Handled"] class LoggingMiddleware(BaseMiddleware): def __init__(self, logger=None): if not isinstance(logger, logging.Logger): logger = logg...
44.420213
149
0.59909
1,010
8,351
4.708911
0.085149
0.043734
0.044155
0.042893
0.793103
0.7582
0.696594
0.686291
0.578217
0.525231
0
0.001169
0.28296
8,351
187
150
44.657754
0.793086
0.440426
0
0.368932
0
0.019417
0.113036
0.066262
0
0
0
0
0
1
0.029126
false
0.165049
0.038835
0
0.097087
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
a529d999783da039f4ab31cdd8b95793b1241e51
2,277
py
Python
python/generator_conf.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
64
2020-05-22T23:32:00.000Z
2022-03-18T10:42:45.000Z
python/generator_conf.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
705
2020-02-17T20:50:38.000Z
2022-03-31T16:28:09.000Z
python/generator_conf.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
93
2020-03-18T17:34:07.000Z
2022-03-29T02:11:09.000Z
import re from abc import ABCMeta from collections import namedtuple NON_IDENTIFIER_CHAR_RE = re.compile(r"[^a-zA-Z0-9]") def identifier_for_string(s): return NON_IDENTIFIER_CHAR_RE.sub("_", s) class TypeInstantiation(metaclass=ABCMeta): element_c_type: str element_py_type: str by_pointer: bool ...
25.021978
104
0.728151
261
2,277
6.072797
0.298851
0.124921
0.041009
0.052997
0.312934
0.264984
0.188013
0.087066
0
0
0
0.020245
0.17567
2,277
90
105
25.3
0.824188
0
0
0.261538
0
0
0.129996
0.02152
0
0
0
0
0
1
0.169231
false
0
0.107692
0.169231
0.569231
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
a5342e67130f0da355a176967999b198bd050339
553
py
Python
wildlifecompliance/migrations/0125_auto_20190228_1127.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0125_auto_20190228_1127.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0125_auto_20190228_1127.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-02-28 03:27 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0124_auto_20190228_1035'), ] operations = [ migrations.Remove...
23.041667
58
0.62387
54
553
6.12963
0.722222
0.126888
0.1571
0.181269
0.320242
0.320242
0.320242
0
0
0
0
0.081886
0.271248
553
23
59
24.043478
0.739454
0.122966
0
0.375
1
0
0.23029
0.147303
0
0
0
0
0
1
0
false
0
0.125
0
0.3125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a55ecc548aca015268d7782cfe4401ac4262dda4
1,095
py
Python
nn/framework.py
thunlp/Chinese_NRE
2cd47e6dc1b95e8ca3e93b5b8567666c37c5d654
[ "MIT" ]
272
2019-05-28T07:40:51.000Z
2022-03-30T16:52:38.000Z
nn/framework.py
thunlp/Chinese_NRE
2cd47e6dc1b95e8ca3e93b5b8567666c37c5d654
[ "MIT" ]
23
2019-05-28T08:48:33.000Z
2021-12-07T05:00:56.000Z
nn/framework.py
thunlp/Chinese_NRE
2cd47e6dc1b95e8ca3e93b5b8567666c37c5d654
[ "MIT" ]
46
2019-06-28T02:45:51.000Z
2021-12-13T07:46:27.000Z
import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import numpy as np from .encoder import BiLstmEncoder from .classifier import AttClassifier from torch.autograd import Variable from torch.nn import functional, init class MGLattice_model(nn.Module): def...
36.5
182
0.726027
145
1,095
5.165517
0.372414
0.058745
0.074766
0.045394
0.269693
0.269693
0.269693
0.269693
0.269693
0.269693
0
0.004608
0.207306
1,095
29
183
37.758621
0.858295
0.086758
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.5
0
0.722222
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
a55f0b0c2397488383e01e536427792fe7dbff1c
573
py
Python
tools/gen/plugin_base.py
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
1
2020-12-29T20:38:08.000Z
2020-12-29T20:38:08.000Z
tools/gen/plugin_base.py
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
16
2018-01-28T04:20:19.000Z
2021-01-23T09:38:52.000Z
tools/gen/plugin_base.py
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Plugin interface definition ''' import abc class PluginBase(metaclass=abc.ABCMeta): @abc.abstractmethod def plugin_id(self) -> str: ''' Return plugin identifier ''' @abc.abstractmethod def process(self, generated_files: dict, arguments: dic...
22.038462
66
0.568935
54
573
5.981481
0.666667
0.105263
0.123839
0
0
0
0
0
0
0
0
0.002597
0.328098
573
25
67
22.92
0.836364
0.408377
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
a5735aeac72220fe5528dff45796545ccbbfdbf9
10,146
py
Python
pycqed/measurement/qcodes_QtPlot_colors_override.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
pycqed/measurement/qcodes_QtPlot_colors_override.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
pycqed/measurement/qcodes_QtPlot_colors_override.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
""" [2020-02-03] Modified version of the original qcodes.plots.colors Mofied by Victor Negirneac for Measurement Control It modules makes available all the colors maps from the qcodes, context menu of the color bar from pyqtgraph, the circular colormap created by me (Victo), and the reversed version of all of them. F...
30.932927
109
0.483836
1,483
10,146
3.264329
0.281187
0.029746
0.018591
0.011568
0.162157
0.111547
0.084693
0.059905
0.028093
0.028093
0
0.278138
0.28632
10,146
327
110
31.027523
0.390416
0.146462
0
0.175824
0
0
0.228927
0
0
0
0
0
0
1
0.010989
false
0
0.003663
0.003663
0.029304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a584c358bd34122ea10e9af049ca261fb42f4f01
602
py
Python
mmdet/core/anchor/builder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/core/anchor/builder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
mmdet/core/anchor/builder.py
mrzhuzhe/mmdetection
c04ca2c2a65500bc248a5d2ab6ace5b15f00064d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import warnings from mmcv.utils import Registry, build_from_cfg PRIOR_GENERATORS = Registry('Generator for anchors and points') ANCHOR_GENERATORS = PRIOR_GENERATORS def build_prior_generator(cfg, default_args=None): return build_from_cfg(cfg, PRIOR_GEN...
30.1
75
0.752492
76
602
5.657895
0.447368
0.127907
0.132558
0.160465
0.225581
0.153488
0
0
0
0
0
0
0.169435
602
19
76
31.684211
0.86
0.074751
0
0
0
0
0.227612
0.095149
0
0
0
0
0
1
0.181818
false
0
0.181818
0.090909
0.545455
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
a599f7c1af3af0d82c8c959f7711210fe0aa82db
234
py
Python
Utils/dicts/sensor_dicts.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
1
2021-09-10T14:57:27.000Z
2021-09-10T14:57:27.000Z
Utils/dicts/sensor_dicts.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
null
null
null
Utils/dicts/sensor_dicts.py
isse-augsburg/PermeabilityNets
b4d1346f9934f2fda2f5d671983c822f4f8365f1
[ "MIT" ]
null
null
null
sensor_indices = { "1140": ((0, 1), (0, 1)), "285": ((1, 2), (1, 2)), "80": ((1, 4), (1, 4)), "20": ((1, 8), (1, 8)) } sensor_shape = { "1140": (38, 30), "285": (19, 15), "80": (10, 8), "20": (5, 4) }
16.714286
29
0.32906
36
234
2.083333
0.5
0.053333
0
0
0
0
0
0
0
0
0
0.31677
0.311966
234
13
30
18
0.149068
0
0
0
0
0
0.094017
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a5a1e51d8eac03ff9a03e3b79e5c761186d4a8bc
473
py
Python
wiske/event.py
jthistle/wiskesynth
b2132c7edf79c9f52b0a67779ae77a8d427ae712
[ "MIT" ]
null
null
null
wiske/event.py
jthistle/wiskesynth
b2132c7edf79c9f52b0a67779ae77a8d427ae712
[ "MIT" ]
null
null
null
wiske/event.py
jthistle/wiskesynth
b2132c7edf79c9f52b0a67779ae77a8d427ae712
[ "MIT" ]
null
null
null
from enum import Enum class EventType(Enum): NOTE_ON = 1 NOTE_OFF = 2 class Event: def __init__(self, etype): self.type = etype class EventNoteOn(Event): def __init__(self, midi_note, velocity): super().__init__(EventType.NOTE_ON) self.note = midi_note self.veloci...
17.518519
44
0.651163
60
473
4.666667
0.35
0.114286
0.128571
0.171429
0.171429
0.171429
0
0
0
0
0
0.005666
0.2537
473
26
45
18.192308
0.787535
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0
0.625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2