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
16557fb191c1ea62849d52d444fde47864d855b9
43,651
py
Python
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
4
2019-05-04T00:10:53.000Z
2020-10-22T18:08:40.000Z
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
3
2019-07-12T13:44:17.000Z
2020-10-22T19:32:08.000Z
lantz/drivers/sacher/Sacher_EPOS.py
mtsolmn/lantz-drivers
f48caf9000ddd08f2abb837d832e341410af4788
[ "BSD-3-Clause" ]
9
2019-04-03T17:07:03.000Z
2021-02-15T21:53:55.000Z
# sacher_epos.py, python wrapper for sacher epos motor # David Christle <christle@uchicago.edu>, August 2014 # """ Possbily Maxon EPOS now """ """ This is the actual version that works But only in the lab32 virtual environment """ # from instrument import Instrument # import qt import ctypes import ctypes.wintypes i...
41.532826
147
0.625644
5,039
43,651
5.285573
0.133161
0.089885
0.056357
0.042577
0.618007
0.576143
0.554855
0.52463
0.50995
0.477397
0
0.025668
0.269937
43,651
1,050
148
41.572381
0.810092
0.26311
0
0.518681
0
0
0.033659
0.002565
0
0
0.000624
0.001905
0
1
0.048352
false
0
0.013187
0.004396
0.103297
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165616f6329f47d7fc22c8cc1eb0970f40d768d9
1,652
py
Python
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
tools/generate_lst.py
haotianliu001/HRNet-Lesion
9dae108879456e084b2200e39d7e58c1c08c2b16
[ "MIT" ]
null
null
null
import argparse import os image_dir = 'image' label_dir = 'label' splits = ['train', 'val', 'test'] image_dirs = [ 'image/{}', 'image/{}_crop' ] label_dirs = [ 'label/{}/annotations', 'label/{}/annotations_crop', ] def generate(root): assert len(image_dirs) == len(label_dirs) for split in sp...
30.036364
116
0.579903
209
1,652
4.37799
0.315789
0.065574
0.087432
0.091803
0.190164
0.190164
0.102732
0
0
0
0
0.000827
0.26816
1,652
54
117
30.592593
0.755997
0
0
0
0
0
0.12954
0.015133
0
0
0
0
0.025
1
0.025
false
0
0.05
0
0.075
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1658161ce6f6978b51d0a1fdd4a0ce93c2160124
897
py
Python
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
21
2021-03-04T04:56:20.000Z
2022-03-31T11:15:28.000Z
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
12
2021-02-16T16:16:23.000Z
2021-05-28T06:00:41.000Z
examples/example.py
f-dangel/unfoldNd
63e9abc4867d8678c2ac00da567dc106e9f6f2c7
[ "MIT" ]
1
2021-11-04T12:52:19.000Z
2021-11-04T12:52:19.000Z
"""How to use ``unfoldNd``. A comparison with ``torch.nn.Unfold``.""" # imports, make this example deterministic import torch import unfoldNd torch.manual_seed(0) # random batched RGB 32x32 image-shaped input tensor of batch size 64 inputs = torch.randn((64, 3, 32, 32)) # module hyperparameters kernel_size = 3 dil...
24.916667
71
0.753623
128
897
5.203125
0.53125
0.031532
0.058559
0.078078
0.156156
0.156156
0.156156
0.156156
0
0
0
0.023499
0.146042
897
35
72
25.628571
0.843342
0.317726
0
0.1
0
0
0.129784
0
0
0
0
0
0.05
1
0
false
0
0.1
0
0.1
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1658fa9a24f0d70843df0f950d0081f1ffadc11b
797
py
Python
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/helpers/escapejson.py
NicsTr/pretix
e6d2380d9ed1836cc64a688b2be20d00a8500eab
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from django.utils.encoding import force_str from django.utils.functional import keep_lazy from django.utils.safestring import SafeText, mark_safe _json_escapes = { ord('>'): '\\u003E', ord('<'): '\\u003C', ord('&'): '\\u0026', } _json_escapes_attr = { ord('>'): '\\u003E', ord('<'): '\\u003C', ...
25.709677
75
0.6399
100
797
4.9
0.41
0.089796
0.091837
0.065306
0.583673
0.583673
0.355102
0.355102
0.216327
0.216327
0
0.038922
0.161857
797
30
76
26.566667
0.694611
0.155583
0
0.363636
0
0
0.099698
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1659ed45e2efb246708ee177c0a31eb71473cb9b
1,813
py
Python
pyxley/charts/plotly/base.py
snowind/pyxley
cff9e50b8d80b9794c6907355e541f166959cd6c
[ "MIT" ]
2,536
2015-06-26T20:12:30.000Z
2022-03-01T07:26:44.000Z
pyxley/charts/plotly/base.py
zhiaozhou/pyxley
2dab00022d977d986169cd8a629b3a2f91be893f
[ "MIT" ]
51
2015-07-17T14:16:43.000Z
2021-07-09T21:34:36.000Z
pyxley/charts/plotly/base.py
zhiaozhou/pyxley
2dab00022d977d986169cd8a629b3a2f91be893f
[ "MIT" ]
335
2015-07-16T20:22:00.000Z
2022-02-25T07:18:15.000Z
from ..charts import Chart from flask import jsonify, request _BASE_CONFIG = { "showLink": False, "displaylogo": False, "modeBarButtonsToRemove": ["sendDataToCloud"] } class PlotlyAPI(Chart): """ Base class for Plotly.js API This class is used to create charts using the plotly.js api ...
27.059701
73
0.492554
185
1,813
4.702703
0.475676
0.027586
0.025287
0
0
0
0
0
0
0
0
0
0.407612
1,813
66
74
27.469697
0.810056
0.277992
0
0.105263
0
0
0.093643
0.0189
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165b5afa3e28ca226423cdaac8f6894170030430
576
py
Python
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
5
2015-12-12T20:16:45.000Z
2020-02-21T19:50:31.000Z
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
null
null
null
pyqt/getting_started/close_window.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
2
2020-06-01T06:27:06.000Z
2022-03-10T13:21:03.000Z
#!/usr/bin/python import sys from PyQt4 import QtGui from PyQt4 import QtCore class Example(QtGui.QWidget): def __init__(self): super(Example, self).__init__() self.initUI() def initUI(self): qbtn = QtGui.QPushButton('Quit', self) qbtn.clicked.connect(QtCore.QCoreApplication.instance().quit) ...
19.2
65
0.682292
74
576
5.081081
0.567568
0.047872
0.079787
0
0
0
0
0
0
0
0
0.02935
0.171875
576
29
66
19.862069
0.75891
0.027778
0
0
0
0
0.041219
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165bd59707bf7d41b2fcb3dbf5d490a2e8660a09
732
py
Python
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
null
null
null
test/means/test_zero_mean.py
bdecost/gpytorch
a5f1ad3e47daf3f8db04b605fb13ff3f9f871e3a
[ "MIT" ]
1
2018-11-15T10:03:40.000Z
2018-11-15T10:03:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import unittest from gpytorch.means import ZeroMean class TestZeroMean(unittest.TestCase): def setUp(self): self.mean = ZeroMean() def tes...
28.153846
78
0.629781
102
732
4.303922
0.372549
0.091116
0.145786
0.072893
0.369021
0.369021
0.182232
0.182232
0.182232
0.182232
0
0.036522
0.214481
732
25
79
29.28
0.726957
0
0
0.2
0
0
0
0
0
0
0
0
0.2
1
0.15
false
0
0.35
0
0.55
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
165bdb25d95d9e2ecf502312358485ebe1274976
1,948
py
Python
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
generator/contact.py
rizzak/python_training
38bbe5d7e38892e8dcc28caeae1481b98cce7356
[ "Apache-2.0" ]
null
null
null
import jsonpickle import random import string from model.contact import Contact import os.path import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 5 f = "data/contacts.json" for o,...
40.583333
153
0.664271
260
1,948
4.780769
0.326923
0.193081
0.04827
0.017699
0
0
0
0
0
0
0
0.026462
0.165811
1,948
48
154
40.583333
0.738462
0
0
0
0
0
0.111339
0
0
0
0
0
0
1
0.027027
false
0
0.189189
0
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165cb63df5c2c12565813006cb857ecc7266b584
9,952
py
Python
Lib/test/test_runpy.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/test/test_runpy.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/test/test_runpy.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
# Test the runpy module import unittest import os import os.path import sys import tempfile from test.test_support import verbose, run_unittest, forget from runpy import _run_code, _run_module_code, run_module # Note: This module can't safely test _run_module_as_main as it # runs its tests in the current process, whic...
39.181102
82
0.60621
1,283
9,952
4.414653
0.159002
0.081568
0.059322
0.025953
0.396893
0.272069
0.217514
0.204449
0.192444
0.181144
0
0.00896
0.293509
9,952
253
83
39.335968
0.796615
0.074759
0
0.191781
0
0
0.174325
0.019382
0
0
0
0
0
0
null
null
0.004566
0.141553
null
null
0.109589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
165d5b352de2106b373e88fa207e7c0361117e91
4,795
py
Python
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
RedisAI/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
6
2019-04-18T10:17:52.000Z
2021-07-02T19:57:08.000Z
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
hhsecond/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
1
2021-07-21T12:17:08.000Z
2021-07-21T12:17:08.000Z
experiments/_pytorch/_grpc_server/protofiles/imagedata_pb2.py
hhsecond/benchmarks
65b8509b81795da73f25f51941c61fbd9765914c
[ "MIT" ]
2
2020-03-15T00:37:57.000Z
2022-02-26T04:36:00.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: imagedata.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf i...
30.935484
365
0.740563
580
4,795
5.844828
0.248276
0.040118
0.061947
0.029499
0.438053
0.405015
0.395575
0.395575
0.367257
0.367257
0
0.032266
0.133889
4,795
154
366
31.136364
0.784012
0.057769
0
0.511811
1
0.007874
0.15122
0.084922
0
0
0
0
0
1
0
false
0
0.03937
0
0.03937
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
165e5478bb41b24d4a9ab5bce186c085b7367f24
4,937
py
Python
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
3
2019-09-05T05:28:49.000Z
2020-06-10T09:03:37.000Z
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
app/api/admin_sales/discounted.py
akashtalole/python-flask-restful-api
475d8fd7be1724183716a197aac4257f8fbbeac4
[ "MIT" ]
null
null
null
from sqlalchemy import func from flask_rest_jsonapi import ResourceList from marshmallow_jsonapi import fields from marshmallow_jsonapi.flask import Schema from app.api.helpers.utilities import dasherize from app.api.bootstrap import api from app.models import db from app.models.discount_code import DiscountCode from ...
41.838983
102
0.552157
500
4,937
5.252
0.198
0.037319
0.053313
0.034273
0.302742
0.286748
0.261615
0.144326
0.113861
0.069307
0
0.002172
0.347174
4,937
117
103
42.196581
0.812597
0.074134
0
0.141176
0
0
0.078484
0.010479
0
0
0
0
0
1
0.035294
false
0
0.129412
0.011765
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
165e549759c53b8757e058aa4a4e0a0e6b69b060
407
py
Python
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
4
2021-08-11T05:46:23.000Z
2021-09-11T05:16:57.000Z
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
1
2021-03-01T19:01:37.000Z
2021-03-01T19:01:37.000Z
spacy/lang/sr/__init__.py
g4brielvs/spaCy
cca8651fc8133172ebaa9d9fc438ed1fbf34fb33
[ "BSD-3-Clause", "MIT" ]
2
2021-01-26T17:29:02.000Z
2021-03-13T08:54:53.000Z
from .stop_words import STOP_WORDS from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .lex_attrs import LEX_ATTRS from ...language import Language class SerbianDefaults(Language.Defaults): tokenizer_exceptions = TOKENIZER_EXCEPTIONS lex_attr_getters = LEX_ATTRS stop_words = STOP_WORDS class Ser...
21.421053
54
0.781327
48
407
6.270833
0.375
0.119601
0
0
0
0
0
0
0
0
0
0
0.157248
407
18
55
22.611111
0.877551
0
0
0
0
0
0.022113
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.916667
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
165e63725354de429a448d866f665cccca991916
656
py
Python
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
1,158
2019-04-26T01:08:32.000Z
2022-03-30T06:46:24.000Z
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
148
2021-03-18T09:44:02.000Z
2022-03-31T06:01:39.000Z
mmdet/ops/dcn/__init__.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
197
2020-01-29T09:58:27.000Z
2022-03-25T12:08:56.000Z
from .functions.deform_conv import deform_conv, modulated_deform_conv from .functions.deform_pool import deform_roi_pooling from .modules.deform_conv import (DeformConv, ModulatedDeformConv, DeformConvPack, ModulatedDeformConvPack) from .modules.deform_pool import (DeformRoIPooling, De...
46.857143
76
0.739329
51
656
9.156863
0.352941
0.12848
0.08137
0.107066
0.124197
0
0
0
0
0
0
0
0.184451
656
13
77
50.461538
0.872897
0
0
0
0
0
0.275915
0.11128
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
165f2a4da2ed50464bfa13f0495fc689063e0199
1,189
py
Python
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
2
2016-02-01T21:03:53.000Z
2018-10-20T09:15:12.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
1
2020-01-05T12:50:35.000Z
2020-01-05T12:50:35.000Z
api/skill/serializer.py
zaubermaerchen/imas_cg_api
45ebdde8c47ff4fabbf58b75721721f142afb46b
[ "MIT" ]
null
null
null
# coding: utf-8 from rest_framework import serializers from data.models import Skill, SkillValue class ListSerializer(serializers.ModelSerializer): skill_value_list = serializers.SerializerMethodField(read_only=True) class Meta: model = Skill fields = [ 'skill_id', 'ta...
26.422222
72
0.64508
126
1,189
5.84127
0.428571
0.067935
0.057065
0
0
0
0
0
0
0
0
0.004566
0.263246
1,189
44
73
27.022727
0.835616
0.010934
0
0
0
0
0.094549
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0.060606
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1660d7a15a18998c6c8ae4f9e573b184061a0341
5,061
py
Python
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
3
2018-12-02T03:59:51.000Z
2019-11-20T18:37:41.000Z
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
null
null
null
Codes/Converting_RGB_to_GreyScale.py
sichkar-valentyn/Image_processing_in_Python
43d7c979bcd742cc202a28c2dea6ea5bc87562a2
[ "MIT" ]
2
2018-10-18T07:01:26.000Z
2022-03-22T08:22:33.000Z
# File: Converting_RGB_to_GreyScale.py # Description: Opening RGB image as array, converting to GreyScale and saving result into new file # Environment: PyCharm and Anaconda environment # # MIT License # Copyright (c) 2018 Valentyn N Sichkar # github.com/sichkar-valentyn # # Reference to: # Valentyn N Sichkar. Image pr...
33.966443
99
0.752223
823
5,061
4.490887
0.246659
0.064394
0.021645
0.032468
0.45671
0.404491
0.395833
0.366071
0.356872
0.34632
0
0.028813
0.135942
5,061
148
100
34.195946
0.816373
0.473227
0
0.267606
0
0
0.138196
0
0
0
0
0
0
1
0
false
0
0.084507
0
0.084507
0.15493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1661f7c0c438355d7d875aa2c983973094881c84
3,193
py
Python
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
template_renderer.py
hamza-gheggad/gcp-iam-collector
02b46453b9ec23af07a0d81f7250f1de61e0ee23
[ "Apache-2.0" ]
null
null
null
import colorsys import json from jinja2 import Environment, PackageLoader import graph def create_html(formatted_nodes, formatted_edges, role_color_map, output_name): env = Environment(loader=PackageLoader('visualisation', '.')) template = env.get_template('visualisation.template') default_filters = list...
31.303922
91
0.593173
389
3,193
4.642674
0.262211
0.044297
0.063677
0.062016
0.117386
0.06866
0
0
0
0
0
0.007809
0.278108
3,193
102
92
31.303922
0.775705
0
0
0.024691
0
0
0.072949
0.006888
0
0
0
0
0
1
0.08642
false
0
0.049383
0.012346
0.197531
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166293ba707b563d24827825716e3e79a6848c40
13,007
py
Python
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
powerapi/cli/tools.py
danglotb/powerapi
67b2508588bfe1e20d90f9fe6bccda34d3455262
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
49.268939
128
0.667948
1,546
13,007
5.412031
0.189521
0.036811
0.036572
0.018406
0.506872
0.422852
0.366918
0.307159
0.285766
0.276443
0
0.002531
0.240486
13,007
263
129
49.456274
0.844417
0.140693
0
0.216374
0
0
0.196724
0
0
0
0
0
0
1
0.105263
false
0
0.081871
0.023392
0.280702
0.040936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1662a331dbe1e237d08e9e21a3e8d596bcbce6c4
2,477
py
Python
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/mixture/models/insitu_behaviours/insitu_behaviour.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. from mvc.models.properties import StringProperty from pyxrd.generic.io.custom_io import storables, Storable from pyxrd.generic.models.base import DataModel from pyxrd....
34.402778
103
0.583771
264
2,477
5.371212
0.507576
0.025388
0.022567
0.028209
0
0
0
0
0
0
0
0.003721
0.240614
2,477
72
104
34.402778
0.750133
0.32176
0
0.105263
0
0
0.068543
0
0
0
0
0
0.052632
1
0.131579
false
0.052632
0.105263
0.078947
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
16635cf724808862aeb33d75c907fed77d96d1fc
857
py
Python
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
8
2017-10-18T05:19:17.000Z
2020-03-24T21:23:52.000Z
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
null
null
null
1 plainProgrammingBug/start 1 plainProgrammingBug.py
vishalbelsare/SLAPP3
da187b771831aaaabaee16a26ad341db2e968104
[ "CC0-1.0" ]
4
2017-10-25T09:07:49.000Z
2019-08-18T09:17:58.000Z
# start 1 plainProgrammingBug.py import random def SimpleBug(): # the environment worldXSize = 80 worldYSize = 80 # the bug xPos = 40 yPos = 40 # the action for i in range(100): xPos += randomMove() yPos += randomMove() xPos = (xPos + worldX...
19.930233
69
0.568261
99
857
4.919192
0.515152
0.080082
0.086242
0.092402
0
0
0
0
0
0
0
0.036458
0.327888
857
42
70
20.404762
0.809028
0.123687
0
0
0
0
0.047059
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0.066667
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166407e573ed13b6f495ddb118b6bb572fdf1148
423
py
Python
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
ba5a-min-coins/money_change.py
kjco/bioinformatics-algorithms
3c466157b89c1cbd54749563e39d86a307d7a3f3
[ "MIT" ]
null
null
null
money = 8074 #money = 18705 #coin_list = [24,23,21,5,3,1] coin_list = [24,13,12,7,5,3,1] #coin_list = map(int, open('dataset_71_8.txt').read().split(',')) d = {0:0} for m in range(1,money+1): min_coin = 1000000 for coin in coin_list: if m >= coin: if d[m-coin]+1 < min_coin:...
18.391304
66
0.51773
75
423
2.786667
0.44
0.15311
0.095694
0.066986
0.105263
0
0
0
0
0
0
0.151724
0.314421
423
22
67
19.227273
0.568966
0.264775
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1665579643c424a545b6a8b3af94a1a9e0f4f184
357
py
Python
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
1
2020-06-17T21:51:33.000Z
2020-06-17T21:51:33.000Z
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
null
null
null
examples/remove_comments.py
igordejanovic/textx-bibtex
b1374a39b96da9c1bc979c367b9ed3feb04f4f01
[ "MIT" ]
null
null
null
""" Remove comments from bib file. """ from textx import metamodel_for_language from txbibtex import bibentry_str BIB_FILE = 'references.bib' bibfile = metamodel_for_language('bibtex').model_from_file(BIB_FILE) # Drop line comments. print('\n'.join([bibentry_str(e) for e in bibfile.entries if e.__cla...
27.461538
68
0.739496
49
357
5.020408
0.591837
0.085366
0.162602
0
0
0
0
0
0
0
0
0
0.148459
357
12
69
29.75
0.809211
0.142857
0
0
0
0
0.120805
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1665f41d1c03f32167e2cea236d3cf7a022b6b61
3,202
py
Python
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/surface/compute/resource_policies/create/group_placement.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # 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 requir...
37.232558
109
0.777327
387
3,202
6.29199
0.405685
0.045996
0.021355
0.032854
0.240246
0.225873
0.195483
0.195483
0.195483
0.100205
0
0.00508
0.139288
3,202
85
110
37.670588
0.878447
0.254841
0
0.086957
0
0
0.015466
0
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.369565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16661518293e1bbad26be3766a9addb9bc564758
629
py
Python
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
88
2020-08-27T17:58:58.000Z
2021-12-01T19:29:56.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
8
2020-08-27T02:54:11.000Z
2022-02-01T13:35:41.000Z
paperoni/io.py
notoraptor/paperoni
acdf2d3d790b98d6a171177ffd9d6342f86bc7ea
[ "MIT" ]
6
2020-08-25T16:43:28.000Z
2021-12-08T16:41:02.000Z
import json from .papers import Papers from .researchers import Researchers def ResearchersFile(filename): """Parse a file containing researchers.""" try: with open(filename, "r") as file: data = json.load(file) except FileNotFoundError: data = {} return Researchers(data, ...
25.16
67
0.655008
68
629
6.058824
0.352941
0.029126
0.048544
0.097087
0.364078
0.364078
0.364078
0.364078
0.364078
0.364078
0
0
0.243243
629
24
68
26.208333
0.865546
0.108108
0
0.588235
0
0
0.003636
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16666943ca1f78d9acd45c2909883bd0b65b734d
934
py
Python
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
src/lib/sd2/test_addresses.py
zachkont/sd2
92d8c55a8c7ac51c00ba514be01955aa7162e4ef
[ "Apache-2.0" ]
null
null
null
############################################################################# # Copyright (c) 2017 SiteWare Corp. All right reserved ############################################################################# import logging import pytest from . import addresses def test_pytest(): assert True def test_object_e...
30.129032
77
0.626338
112
934
4.901786
0.294643
0.260474
0.300546
0.160291
0.590164
0.530055
0.40255
0.40255
0.40255
0.31694
0
0.00492
0.12955
934
30
78
31.133333
0.670357
0.055675
0
0.210526
0
0
0.107438
0
0
0
0
0
0.473684
1
0.157895
false
0
0.157895
0
0.315789
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
166739b28ed7ffa22c5f71499709f1fd302bd933
1,914
py
Python
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
17
2020-01-11T15:15:21.000Z
2021-12-08T10:03:36.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
6
2020-03-01T17:14:58.000Z
2021-05-21T16:05:03.000Z
config_model.py
Asha-ai/BERT_abstractive_proj
f0e8f659d6b8821cfe0d15f4075e8cb890efdfe9
[ "Apache-2.0" ]
8
2020-05-11T21:24:51.000Z
2021-07-23T09:18:46.000Z
import texar.tf as tx beam_width = 5 hidden_dim = 768 bert = { 'pretrained_model_name': 'bert-base-uncased' } # See https://texar.readthedocs.io/en/latest/code/modules.html#texar.tf.modules.BERTEncoder.default_hparams bert_encoder = {} # From https://github.com/asyml/texar/blob/413e07f859acbbee979f274b52942edd5...
31.377049
128
0.653083
239
1,914
5.046025
0.514644
0.099502
0.049751
0.062189
0.119403
0.119403
0.119403
0.086235
0.086235
0
0
0.040995
0.222571
1,914
60
129
31.9
0.769489
0.462382
0
0.047619
0
0
0.31133
0.069951
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16677a6fe2ff1b1e4b01bda4446f100594d88c8e
390
py
Python
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
wishes/migrations/0005_auto_20201029_0904.py
e-elson/bd
e35c59686e5ec81925c22353e269601f286634db
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-29 09:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wishes', '0004_auto_20201029_0857'), ] operations = [ migrations.AlterField( model_name='gallery', name='image', ...
20.526316
55
0.594872
41
390
5.560976
0.853659
0
0
0
0
0
0
0
0
0
0
0.111111
0.284615
390
18
56
21.666667
0.706093
0.115385
0
0
1
0
0.139942
0.067055
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
166802c5b61892041a13896dbed6ef514fd83df2
7,115
py
Python
undeployed/legacy/Landsat/DNtoReflectance.py
NASA-DEVELOP/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
65
2015-09-10T12:59:56.000Z
2022-02-27T22:09:03.000Z
undeployed/legacy/Landsat/DNtoReflectance.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
40
2015-04-08T19:23:30.000Z
2015-08-04T15:53:11.000Z
undeployed/legacy/Landsat/DNtoReflectance.py
snowzm/dnppy
8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b
[ "NASA-1.3" ]
45
2015-08-14T19:09:38.000Z
2022-02-15T18:53:16.000Z
#------------------------------------------------------------------------------- # Name: Landsat Digital Numbers to Radiance/Reflectance # Purpose: To convert landsat 4,5, or 7 pixel values from digital numbers # to Radiance, Reflectance, or Temperature # Author: Quinten Geddes Quinte...
42.100592
113
0.619115
945
7,115
4.616931
0.319577
0.013752
0.02567
0.011002
0.178318
0.146917
0.127664
0.108412
0.088471
0.057758
0
0.060388
0.238932
7,115
168
114
42.35119
0.745337
0.207309
0
0.067416
0
0
0.175879
0.058246
0
0
0
0
0
0
null
null
0
0.022472
null
null
0.033708
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1668b92419e5394d4eb735fba074c84b5eb16b19
1,396
py
Python
.modules/.theHarvester/discovery/twittersearch.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.theHarvester/discovery/twittersearch.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.theHarvester/discovery/twittersearch.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
262
2017-09-16T22:15:50.000Z
2022-03-31T00:38:42.000Z
import string import requests import sys import myparser import re class search_twitter: def __init__(self, word, limit): self.word = word.replace(' ', '%20') self.results = "" self.totalresults = "" self.server = "www.google.com" self.hostname = "www.google.com" s...
32.465116
169
0.592407
181
1,396
4.519337
0.480663
0.067237
0.07335
0.03912
0.05379
0
0
0
0
0
0
0.058014
0.27149
1,396
42
170
33.238095
0.746313
0
0
0.166667
0
0.083333
0.234957
0.062321
0
0
0
0
0
0
null
null
0
0.138889
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
166903b8515452d27e1a1b1b4a84d3d174d4f220
708
py
Python
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
scrap_instagram.py
genaforvena/nn_scrapper
897766a52202aa056afd657995ed39b2b91e1fe2
[ "Apache-2.0" ]
null
null
null
import urllib.request import json access_token = "265791501.a4af066.f45a9f44719a4b2cb2d137118524e32b" api_url = "https://api.instagram.com/v1" nn_lat = 56.296504 nn_lng = 43.936059 def request(endpoint, req_params = ""): req = api_url + endpoint + "?access_token=" + access_token + "&" + req_params print(req) ...
29.5
94
0.706215
91
708
5.307692
0.494505
0.068323
0.074534
0
0
0
0
0
0
0
0
0.087171
0.141243
708
23
95
30.782609
0.707237
0
0
0
0
0
0.216407
0.070721
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16693286bda8fc5cb36e02f9aa7765ff20fcfe4e
7,066
py
Python
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
tests/unit/utils/test_validators.py
kajusK/HiddenPlaces
aa976f611a419bc33f8a65f0314956ec09fe2bfd
[ "MIT" ]
null
null
null
"""Unit tests for app.validators. """ from wtforms import ValidationError import flask from pytest import raises from app.utils.validators import password_rules, image_file, allowed_file class DummyField(object): """Dummy field object to emulate wtforms field.""" def __init__(self, data=None, errors=(), raw_d...
35.686869
78
0.644495
849
7,066
5.202591
0.177856
0.069278
0.040752
0.062259
0.709079
0.678515
0.662441
0.633009
0.616255
0.582975
0
0.01664
0.209029
7,066
197
79
35.86802
0.773663
0.055618
0
0.532847
0
0
0.125057
0
0
0
0
0
0.021898
1
0.138686
false
0.116788
0.029197
0.021898
0.211679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
166add4d1cc09be73d6135b394a15f57ecfca1b9
615
py
Python
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
1
2021-07-12T08:58:07.000Z
2021-07-12T08:58:07.000Z
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
ts_eval/utils/nans.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
import warnings import numpy as np def nans_in_same_positions(*arrays): """ Compares all provided arrays to see if they have NaNs in the same positions. """ if len(arrays) == 0: return True for arr in arrays[1:]: if not (np.isnan(arrays[0]) == np.isnan(arr)).all(): ret...
24.6
80
0.642276
84
615
4.654762
0.571429
0.046036
0.046036
0
0
0
0
0
0
0
0
0.00655
0.255285
615
24
81
25.625
0.847162
0.243902
0
0.153846
0
0
0.013825
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
166b671e9115e476c69bab6e6077599dd6b6cdea
5,434
py
Python
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
tests/authorization/test_searches.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Unit tests of authorization searches.""" import pytest from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only from dlkit.abstract_osid.osid import errors from dlkit.primordium.id.primitives import Id from dlkit.primordium.type.primitives import Type from dlkit.runtime ...
36.469799
176
0.749724
643
5,434
6.001555
0.157076
0.051827
0.043535
0.08396
0.714693
0.637989
0.584089
0.584089
0.56284
0.502721
0
0
0.144645
5,434
148
177
36.716216
0.83025
0.146117
0
0.586957
0
0
0.200615
0.109866
0
0
0
0
0
1
0.195652
false
0.130435
0.076087
0
0.315217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
166ccaa355ece2f923c461999fa3eb16171b7163
350
py
Python
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2022-03-22T20:47:04.000Z
2022-03-22T20:47:04.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
1
2021-02-12T21:11:16.000Z
2021-12-07T21:32:14.000Z
mechroutines/models/_flux.py
keceli/mechdriver
978994ba5c77b6df00078b639c4482dacf269440
[ "Apache-2.0" ]
8
2019-12-18T20:09:46.000Z
2020-11-14T16:37:28.000Z
""" NEW: Handle flux files """ import autofile def read_flux(ts_save_path, vrc_locs=(0,)): """ Read the geometry from the filesys """ vrc_fs = autofile.fs.vrctst(ts_save_path) if vrc_fs[-1].file.flux.exists(vrc_locs): flux_str = vrc_fs[-1].file.flux.read(vrc_locs) else: flux_st...
18.421053
54
0.64
55
350
3.818182
0.509091
0.1
0.095238
0.095238
0.133333
0
0
0
0
0
0
0.011111
0.228571
350
18
55
19.444444
0.766667
0.177143
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166ddfdb964d4dc41f4f840af0cda8cfbfe5a687
4,990
py
Python
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
7
2020-08-03T13:43:53.000Z
2022-02-18T20:38:51.000Z
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
null
null
null
RandomForest/RandomForest.py
nachiket273/ML_Algo_Implemented
74ae47fdf620545fdf8c934c5997784faadaebb7
[ "MIT" ]
2
2020-09-06T21:54:16.000Z
2022-01-22T19:59:33.000Z
import math import numpy as np import pandas as pd from sklearn.base import BaseEstimator import sys import os sys.path.append(os.path.abspath('../DecisionTree')) from DecisionTree import DecisionTree class RandomForest(BaseEstimator): """ Simple implementation of Random Forest. This class has implementat...
40.901639
93
0.546293
560
4,990
4.725
0.269643
0.049887
0.034014
0.049131
0.123205
0
0
0
0
0
0
0.004519
0.379158
4,990
122
94
40.901639
0.84958
0.327856
0
0.094595
0
0
0.018559
0
0
0
0
0
0
1
0.054054
false
0
0.094595
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166e1671aebcb4e327d8e4f8b8b62dc58ec16062
556
py
Python
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
663
2018-12-30T00:17:59.000Z
2022-03-14T05:03:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
41
2019-06-06T08:31:19.000Z
2022-02-13T16:53:41.000Z
tests/basics/generator_pend_throw.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
60
2019-06-01T04:25:00.000Z
2022-02-25T01:47:31.000Z
def gen(): i = 0 while 1: yield i i += 1 g = gen() try: g.pend_throw except AttributeError: print("SKIP") raise SystemExit print(next(g)) print(next(g)) g.pend_throw(ValueError()) v = None try: v = next(g) except Exception as e: print("raised", repr(e)) print("ret was:"...
15.444444
73
0.624101
89
556
3.865169
0.460674
0.05814
0.087209
0.116279
0
0
0
0
0
0
0
0.007092
0.239209
556
35
74
15.885714
0.806147
0.190647
0
0.346154
0
0
0.111857
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.038462
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166e4003ce5bc54874ebae493377303b4c270f29
4,511
py
Python
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
1
2022-03-31T19:15:04.000Z
2022-03-31T19:15:04.000Z
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
src/UnitTypes/ProjectileModule.py
USArmyResearchLab/ARL_Battlespace
2f17a478f62c20a4db387d5d3e4bbeaa3197cd49
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 15 09:49:47 2020 @author: james.z.hare """ from src.UnitModule import UnitClass, advance from copy import deepcopy import math class ProjectileClass(UnitClass): """ The Projectile Class This is a subclass to the UnitClass Virtual Functions ----...
32.221429
158
0.62137
509
4,511
5.444008
0.310413
0.034645
0.014435
0.021653
0.050162
0.027427
0
0
0
0
0
0.008962
0.282642
4,511
140
159
32.221429
0.847342
0.353802
0
0.037736
0
0
0.005454
0
0
0
0
0
0
1
0.150943
false
0
0.056604
0
0.396226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
166ed868a00e2876de6024b3dcf661e7d6afc455
216
py
Python
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP_MiniQuiz/run_car_Level2.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
from car import * def compare(car1,car2): print(car1) print(car2) car1 = Car("Nissan","Tiida",450000) car2 = Car("Toyota","Vios",400000) car3 = Car("BMW","X3",3400000) compare(car3,car1) compare(car1,car2)
18
35
0.671296
32
216
4.53125
0.5625
0.151724
0.206897
0
0
0
0
0
0
0
0
0.165775
0.134259
216
12
36
18
0.609626
0
0
0
0
0
0.119816
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.222222
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
0
0
1
166f10041a007d09adb3797f8fd4bf54942b5eeb
1,513
py
Python
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
2
2015-05-12T16:12:56.000Z
2020-08-26T20:52:47.000Z
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
null
null
null
prelude/monads.py
michel-slm/python-prelude
b3ca89ff2bf150f772764f59d2796d2fcce1013d
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from prelude.typeclasses import Monad from prelude.decorators import monad_eq, singleton @monad_eq class Either(Monad): __metaclass__ = ABCMeta @classmethod def mreturn(cls, val): return Right(val) @abstractmethod def __iter__(self): pass c...
18.9125
50
0.613351
179
1,513
4.608939
0.201117
0.110303
0.08
0.067879
0.591515
0.591515
0.513939
0.513939
0.513939
0.38303
0
0
0.276272
1,513
79
51
19.151899
0.753425
0
0
0.689655
0
0
0.022472
0
0
0
0
0
0
1
0.344828
false
0.034483
0.051724
0.224138
0.758621
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
16715a2b77e2526acf8bf40591ec7bc531389bde
848
py
Python
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
Deep Sort/src/imgconverter.py
JJavier98/TFG-Dron-de-Vigilancia
7fd68a981854ac480ad2f0c936a0dd58d2a9f38b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import roslib roslib.load_manifest('msgs_to_cv2') import sys import rospy import cv2 from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError class image_converter: def __init__(self): self.bridge...
20.190476
77
0.741745
120
848
4.966667
0.516667
0.07047
0.043624
0
0
0
0
0
0
0
0
0.011004
0.142689
848
41
78
20.682927
0.808803
0.023585
0
0
0
0
0.080444
0
0
0
0
0
0
0
null
null
0
0.307692
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
16718d7813439bbbc33bc80e98b6e4741d2b5b6c
261
py
Python
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
3
2021-06-23T20:53:43.000Z
2022-01-26T14:19:43.000Z
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
33
2021-08-09T15:44:51.000Z
2022-03-03T18:28:02.000Z
foodx_devops_tools/azure/__init__.py
Food-X-Technologies/foodx_devops_tools
57d1bf1304d9c9a386eaffa427f9eb36c410c350
[ "MIT" ]
1
2021-06-23T20:53:52.000Z
2021-06-23T20:53:52.000Z
# Copyright (c) 2021 Food-X Technologies # # This file is part of foodx_devops_tools. # # You should have received a copy of the MIT License along with # foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>. """Azure related utilities."""
29
73
0.731801
40
261
4.675
0.875
0.117647
0.171123
0
0
0
0
0
0
0
0
0.018265
0.16092
261
8
74
32.625
0.835616
0.927203
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
16725a52de27142aa18864c727dddea44204b666
5,940
py
Python
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
beartype/vale/__init__.py
posita/beartype
e56399686e1f2ffd5128a4030b19314504e32450
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' **Beartype validators.** This submodule publishes a PEP-compliant hierarchy of subscriptable (indexable) classes enabling callers ...
45.343511
99
0.711616
714
5,940
5.837535
0.457983
0.017274
0.011996
0.016795
0.071017
0.056622
0.056622
0.037428
0
0
0
0.003598
0.157744
5,940
130
100
45.692308
0.829502
0.868687
0
0.210526
0
0
0.050725
0
0
0
0
0.007692
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16730d6f4856a5911d4dfcf4a29a2f5449a0ddb0
3,536
py
Python
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
null
null
null
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
3
2015-01-31T14:53:06.000Z
2015-02-01T19:04:30.000Z
tests/test_authentication.py
movermeyer/cellardoor
25192b07224ff7bd33fd29ebac07340bef53a2ed
[ "MIT" ]
2
2015-01-31T14:54:28.000Z
2018-03-05T17:33:42.000Z
import unittest from mock import Mock import base64 from cellardoor import errors from cellardoor.authentication import * from cellardoor.authentication.basic import BasicAuthIdentifier class FooIdentifier(Identifier): pass class BarAuthenticator(Authenticator): pass class TestAuthentication(unittest.TestCase...
30.747826
95
0.756505
374
3,536
6.949198
0.200535
0.03232
0.057715
0.084648
0.374375
0.370142
0.287033
0.21085
0.164679
0.06541
0
0.007129
0.127262
3,536
115
96
30.747826
0.835062
0
0
0.218391
0
0
0.06955
0
0
0
0
0
0.16092
1
0.137931
false
0.045977
0.068966
0
0.252874
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16731efe14cf79a4c56966e84b709e60bb9faf4f
42
py
Python
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
69
2019-04-09T18:05:33.000Z
2022-03-11T05:58:59.000Z
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
6
2019-04-01T12:04:10.000Z
2022-01-19T11:49:13.000Z
src/styleaug/__init__.py
somritabanerjee/speedplusbaseline
5913c611d8c182ad8070abcf5f1baffc554dfd90
[ "MIT" ]
13
2019-05-22T19:08:36.000Z
2021-08-13T01:21:47.000Z
from .styleAugmentor import StyleAugmentor
42
42
0.904762
4
42
9.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.071429
42
1
42
42
0.974359
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
167422ad1c22d904c1fb3127c28d48e06243100c
2,698
py
Python
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
configs/classification/imagenet/mixups/convnext/convnext_tiny_smooth_mix_8xb256_accu2_ema_fp16.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../../_base_/datasets/imagenet/swin_sz224_4xbs256.py', '../../../_base_/default_runtime.py', ] # model settings model = dict( type='MixUpClassification', pretrained=None, alpha=0.2, mix_mode="cutmix", mix_args=dict( attentivemix=dict(grid_size=32, top_k=None, beta=8),...
34.151899
111
0.640474
394
2,698
4.187817
0.464467
0.048485
0.021818
0.018182
0.084848
0.030303
0.030303
0
0
0
0
0.069986
0.210897
2,698
78
112
34.589744
0.705026
0.192735
0
0.078125
0
0
0.124652
0.055144
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16748f009db0117be1d076ddc5a413db7e45e64c
2,274
py
Python
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
3
2019-08-29T14:15:06.000Z
2021-03-04T12:08:48.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
37
2019-03-05T12:28:32.000Z
2022-03-22T10:11:23.000Z
mcstasscript/interface/reader.py
PaNOSC-ViNYL/McStasScript
bd94ebc6cac290c3c9662871df40d76edbe4a44e
[ "BSD-3-Clause" ]
6
2019-10-21T20:19:10.000Z
2022-03-09T10:12:16.000Z
import os from mcstasscript.instr_reader.control import InstrumentReader from mcstasscript.interface.instr import McStas_instr class McStas_file: """ Reader of McStas files, can add to an existing McStasScript instrument instance or create a corresponding McStasScript python file. Methods ---...
28.425
79
0.579595
233
2,274
5.549356
0.343348
0.059551
0.023202
0.023202
0.044857
0
0
0
0
0
0
0
0.343887
2,274
79
80
28.78481
0.866622
0.39358
0
0.076923
0
0
0.07732
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1676599bdfdd4b081bb8bb20aa32589f69c604ef
3,701
py
Python
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
null
null
null
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
1
2018-04-24T10:43:07.000Z
2018-04-24T10:43:07.000Z
src/regrtest.py
ucsd-progsys/csolve-bak
89cfeb5403e617f45ece4bae9f88f8e6cd7ca934
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2009 The Regents of the University of California. All rights reserved. # # Permission is hereby granted, without written agreement and without # license or royalty fees, to use, copy, modify, and distribute this # software and its documentation for any purpose, provided that the # abov...
38.154639
107
0.676574
493
3,701
5.010142
0.432049
0.02915
0.030364
0.050607
0.083401
0.020243
0.020243
0
0
0
0
0.003842
0.156174
3,701
96
108
38.552083
0.787064
0.321805
0
0.071429
0
0
0.144167
0.044583
0
0
0
0
0
0
null
null
0
0.035714
null
null
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
16766ccc57f251df7ba9394a55b7eabdd7d12e46
2,925
py
Python
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
country_capital_guesser.py
NathanMH/ComputerClub
197585c1a77f71ee363547740d6e09f945e7526f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ####################### """#################### Index: 1. Imports and Readme 2. Functions 3. Main 4. Testing ####################""" ####################### ################################################################### # 1. IMPORTS AND README #############################...
33.62069
160
0.494017
286
2,925
4.881119
0.388112
0.090258
0.054441
0.080229
0.189828
0.179083
0.179083
0.123209
0.123209
0.123209
0
0.01008
0.185983
2,925
86
161
34.011628
0.576228
0.236239
0
0.135135
0
0
0.202082
0.056338
0
0
0
0
0
1
0.135135
false
0.027027
0.054054
0.054054
0.297297
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1676c1cee546273be3e4746fcf8ddcdf0ca583bb
2,288
py
Python
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
18
2020-01-22T14:58:18.000Z
2022-02-21T12:07:51.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
2
2020-02-24T13:14:05.000Z
2020-09-21T13:34:53.000Z
data_analysis/audiocommons_ffont/scripts/rekordbox_xml_to_analysis_rhythm_rekordbox_file.py
aframires/freesound-loop-annotator
a24e0c23bfc671e41e8627150e7b9fcae5c8cb13
[ "Apache-2.0" ]
1
2020-01-22T14:55:36.000Z
2020-01-22T14:55:36.000Z
# Need this to import from parent directory when running outside pycharm import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) from ac_utils.general import save_to_json, load_from_json import click import xml.etree.ElementTree from urllib import unquote def find_c...
39.448276
119
0.660402
287
2,288
5.006969
0.355401
0.025052
0.027836
0.037578
0.231733
0.150313
0.150313
0.150313
0.118302
0.118302
0
0.003977
0.230769
2,288
57
120
40.140351
0.8125
0.117133
0
0.136364
0
0
0.091182
0.01503
0
0
0
0
0
1
0.045455
false
0
0.136364
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1676d72870f651008f4e3aca9c90ccf681a85a4a
5,947
py
Python
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/part.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import re import inventree.base import inventree.stock import inventree.company import inventree.build logger = logging.getLogger('inventree') class PartCategory(inventree.base.InventreeObject): """ Class representing the PartCategory database model """ URL = 'part/...
27.920188
82
0.626534
660
5,947
5.590909
0.231818
0.034146
0.041734
0.036585
0.338753
0.245528
0.110569
0.027642
0.027642
0.027642
0
0.00207
0.268875
5,947
212
83
28.051887
0.846596
0.240794
0
0.067308
0
0
0.057425
0.013415
0
0
0
0
0
1
0.211538
false
0
0.057692
0.038462
0.673077
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
167719b0cc59eef9b7fff6f4ce109cd0d2fe8bc1
12,932
py
Python
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
tests/test_web_urldispatcher.py
avstarkov/aiohttp
b0a03cffccf677bf316227522a9b841c15dcb869
[ "Apache-2.0" ]
null
null
null
import functools import os import shutil import tempfile from unittest import mock from unittest.mock import MagicMock import pytest from aiohttp import abc, web from aiohttp.web_urldispatcher import SystemRoute @pytest.fixture(scope='function') def tmp_dir_path(request): """ Give a path for a temporary dir...
27.514894
79
0.634009
1,786
12,932
4.422732
0.134379
0.033675
0.029118
0.042537
0.570579
0.536017
0.498797
0.450563
0.438537
0.408406
0
0.009592
0.24219
12,932
469
80
27.573561
0.796429
0.055444
0
0.485714
0
0.007143
0.094214
0.038998
0
0
0
0
0.132143
1
0.021429
false
0
0.032143
0
0.117857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1678ba6ffacdb3dc2a1730ee864aab5b2813d801
13,683
py
Python
R-GMM-VGAE/model_citeseer.py
nairouz/R-GAE
acc7bfe36153a4c7d6f68e21a557bb4d99dab639
[ "MIT" ]
26
2021-07-18T01:31:48.000Z
2022-03-31T03:23:11.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
3
2021-10-01T07:24:42.000Z
2021-11-03T14:25:55.000Z
R-GMM-VGAE/model_citeseer.py
Fawzidev/R-GAE
80988ddf951f1723091a04b617ce4fc6d20ab9ce
[ "MIT" ]
7
2021-07-18T01:47:01.000Z
2022-01-24T21:09:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Authors : Nairouz Mrabah (mrabah.nairouz@courrier.uqam.ca) & Mohamed Fawzi Touati (touati.mohamed_fawzi@courrier.uqam.ca) # @Paper : Rethinking Graph Autoencoder Models for Attributed Graph Clustering # @License : MIT License import torch import numpy as np import tor...
46.699659
259
0.625448
1,892
13,683
4.29334
0.17019
0.015758
0.020805
0.019943
0.320694
0.269112
0.242275
0.198449
0.194756
0.151668
0
0.021224
0.25623
13,683
293
260
46.699659
0.776948
0.037857
0
0.094262
0
0.008197
0.032395
0
0
0
0
0
0
1
0.077869
false
0
0.057377
0
0.209016
0.008197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16796b947c516147ed6529d69a08e17bbd4afe73
3,005
py
Python
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/stock_account/models/account_chart_template.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, _ import logging _logger = logging.getLogger(__name__) class AccountChartTemplate(models.Model): _inherit = "account.chart.template" @api.model def generate_journals(self, ac...
47.698413
180
0.577704
308
3,005
5.431818
0.308442
0.053796
0.058577
0.053796
0.340705
0.253437
0.185296
0.185296
0.095637
0.050209
0
0.002791
0.284526
3,005
62
181
48.467742
0.775349
0.079867
0
0.25
0
0
0.20537
0.071843
0
0
0
0
0
1
0.041667
false
0
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167a0dd80799c1a419238ba6164d01472b85e5d4
6,094
py
Python
lib/roi_data/loader.py
BarneyQiao/pcl.pytorch
4e0280e5e1470f705e620eda26f881d627c5016c
[ "MIT" ]
233
2019-05-10T07:17:42.000Z
2022-03-30T09:24:16.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
78
2019-05-10T21:10:47.000Z
2022-03-29T13:57:32.000Z
lib/roi_data/loader.py
Michael-Steven/Crack_Image_WSOD
4e8591a7c0768cee9eb7240bb9debd54824f5b33
[ "MIT" ]
57
2019-05-10T07:17:37.000Z
2022-03-24T04:43:24.000Z
import math import numpy as np import numpy.random as npr import torch import torch.utils.data as data import torch.utils.data.sampler as torch_sampler from torch.utils.data.dataloader import default_collate from torch._six import int_classes as _int_classes from core.config import cfg from roi_data.minibatch import ...
38.56962
97
0.639317
848
6,094
4.375
0.248821
0.048518
0.018868
0.018868
0.14097
0.086253
0.075472
0.04097
0.026954
0
0
0.010293
0.266656
6,094
157
98
38.815287
0.81987
0.282245
0
0.113402
0
0
0.056272
0.005862
0
0
0
0.006369
0
1
0.113402
false
0
0.113402
0.020619
0.340206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167a8c5cf5187907cc0dbc578ad93057948ece69
28,272
py
Python
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
andywu113/fuhe_predict
7fd816ae83467aa659d420545cd3e25a5e933d5f
[ "MIT" ]
3
2019-06-05T12:11:20.000Z
2022-01-17T13:53:06.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
3
2021-06-08T20:58:27.000Z
2022-03-12T00:16:49.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_least_angle.py
kevinten10/Clothing-Classification
9aac6e339651137179f4e4da36fe7743cf4bdca4
[ "MIT" ]
1
2019-02-11T22:36:12.000Z
2019-02-11T22:36:12.000Z
import warnings from distutils.version import LooseVersion import numpy as np import pytest from scipy import linalg from sklearn.model_selection import train_test_split from sklearn.utils.testing import assert_allclose from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import ass...
38.360923
79
0.616051
3,889
28,272
4.288506
0.150424
0.04353
0.02968
0.031898
0.429488
0.374745
0.319223
0.277791
0.257945
0.242895
0
0.060671
0.262521
28,272
736
80
38.413043
0.739233
0.222482
0
0.311301
0
0
0.023927
0.000983
0
0
0
0.001359
0.142857
1
0.072495
false
0
0.042644
0.002132
0.117271
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167b4e3bb5a00625d3f0b289e41e2bc170fabc61
3,128
py
Python
parser.py
FeroxTL/pynginxconfig-new
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
8
2016-03-25T04:22:39.000Z
2022-02-12T21:46:47.000Z
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
null
null
null
parser.py
Winnerer/pynginxconfig
71cb78c635930b0a764d3274646d436e8d2f1c4d
[ "MIT" ]
3
2019-01-26T15:54:54.000Z
2022-02-12T21:46:47.000Z
#coding: utf8 import copy import re from blocks import Block, EmptyBlock, KeyValueOption, Comment, Location def parse(s, parent_block): config = copy.copy(s) pos, brackets_level, param_start = 0, 0, 0 while pos < len(config): if config[pos] == '#' and brackets_level == 0: re_sharp_co...
24.825397
113
0.545716
359
3,128
4.562674
0.32312
0.055556
0.026862
0.029304
0.164225
0.12149
0.12149
0.105617
0.045177
0.045177
0
0.023397
0.316816
3,128
125
114
25.024
0.743098
0.003836
0
0.173913
0
0.01087
0.344783
0.099197
0
0
0
0
0
1
0.01087
false
0
0.032609
0
0.043478
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167b69684843eed85973a69dafe6205fbdff9406
845
py
Python
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
cocos2d/tools/jenkins-scripts/configs/cocos-2dx-develop-win32.py
triompha/EarthWarrior3D
d68a347902fa1ca1282df198860f5fb95f326797
[ "MIT" ]
null
null
null
import os import subprocess import sys print 'Build Config:' print ' Host:win7 x86' print ' Branch:develop' print ' Target:win32' print ' "%VS110COMNTOOLS%..\IDE\devenv.com" "build\cocos2d-win32.vc2012.sln" /Build "Debug|Win32"' if(os.path.exists('build/cocos2d-win32.vc2012.sln') == False): node_...
33.8
127
0.668639
122
845
4.57377
0.491803
0.064516
0.091398
0.123656
0.286738
0.240143
0.240143
0.240143
0.240143
0.240143
0
0.05618
0.157396
845
24
128
35.208333
0.727528
0
0
0
0
0.086957
0.516443
0.243605
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.304348
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
167cfaccf65c4a217ee921178f5ab5094fc6d8a6
241
py
Python
iris_sdk/models/data/ord/rate_center_search_order.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/data/ord/rate_center_search_order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/data/ord/rate_center_search_order.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.base_resource import BaseData from iris_sdk.models.maps.ord.rate_center_search_order import \ RateCenterSearchOrderMap class RateCenterSearchOrder(RateCenterSearchOrderMap, BaseData): pass
30.125
64
0.834025
29
241
6.724138
0.758621
0.082051
0.112821
0.174359
0
0
0
0
0
0
0
0
0.099585
241
8
65
30.125
0.898618
0.082988
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
7
167df72d7c85276ff20ea4552c3c38a522dba306
7,024
py
Python
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
optimizer.py
thanusha22/CEC-1
02ad9247b006a348cc871a5714cf5abfa4a516af
[ "MIT" ]
null
null
null
from pathlib import Path import optimizers.PSO as pso import optimizers.MVO as mvo import optimizers.GWO as gwo import optimizers.MFO as mfo import optimizers.CS as cs import optimizers.BAT as bat import optimizers.WOA as woa import optimizers.FFA as ffa import optimizers.SSA as ssa import optimizers.GA as ga import o...
38.173913
111
0.58955
790
7,024
5.168354
0.226582
0.040411
0.085721
0.099437
0.348273
0.3277
0.3277
0.312515
0.284595
0.273084
0
0.004765
0.312785
7,024
183
112
38.382514
0.841102
0.142939
0
0.151515
0
0
0.063758
0.003721
0
0
0
0
0
1
0.015152
false
0
0.174242
0
0.204545
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167e133f17b315eee99f736bb553b46a271cd9cc
1,614
py
Python
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
tests/fields/test_primitive_types.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
import dataclasses import pytest from dataclasses_avroschema import fields from . import consts @pytest.mark.parametrize("primitive_type", fields.PYTHON_INMUTABLE_TYPES) def test_primitive_types(primitive_type): name = "a_field" field = fields.Field(name, primitive_type, dataclasses.MISSING) avro_type ...
34.340426
87
0.76456
213
1,614
5.464789
0.187793
0.178694
0.072165
0.103093
0.688144
0.636598
0.636598
0.556701
0.469931
0.426117
0
0
0.126394
1,614
46
88
35.086957
0.825532
0
0
0.193548
0
0
0.125155
0.032218
0
0
0
0
0.129032
1
0.129032
false
0
0.129032
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
167f92f56a42d5741ea4dde46075bf065ebbe3cd
11,512
py
Python
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
532
2015-03-13T18:51:10.000Z
2022-03-27T08:08:29.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
2,701
2015-01-03T21:33:34.000Z
2022-03-30T07:13:41.000Z
Bindings/Python/examples/Moco/examplePredictAndTrack.py
mcx/opensim-core
c109f8cec3a81c732f335cd39752da6ae573b604
[ "Apache-2.0" ]
271
2015-02-16T23:25:29.000Z
2022-03-30T20:12:17.000Z
# -------------------------------------------------------------------------- # # OpenSim Moco: examplePredictAndTrack.py # # -------------------------------------------------------------------------- # # Copyright (c) 2018 Stanford University and the Authors # # ...
34.160237
79
0.633687
1,220
11,512
5.92623
0.24918
0.018672
0.014938
0.024896
0.465007
0.435131
0.430152
0.424066
0.418534
0.36722
0
0.036702
0.230803
11,512
336
80
34.261905
0.779785
0.278145
0
0.350282
0
0
0.119668
0.085819
0
0
0
0.002976
0
1
0.028249
false
0
0.016949
0
0.073446
0.022599
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1680693e61459262ca19480a0c2453b04b05a5a0
992
py
Python
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
StorageSystem.py
aaronFritz2302/ZoomAuto
41af90dc35104bfea970b6b61694e105a625535c
[ "MIT" ]
null
null
null
import sqlite3 from pandas import DataFrame conn = sqlite3.connect('./data.db',check_same_thread=False) class DataBase(): cursor = conn.cursor() def __init__(self): self.createTable() def createTable(self): ''' Creates A Table If it Doesnt Exist ...
32
138
0.582661
108
992
5.277778
0.509259
0.024561
0.038596
0
0
0
0
0
0
0
0
0.002865
0.296371
992
31
139
32
0.813754
0.113911
0
0
0
0.066667
0.247436
0
0
0
0
0
0
1
0.266667
false
0.133333
0.133333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
1680b6fe6e7e3043a7d70ac1ab9bfc138b53e7ea
5,255
py
Python
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
pymapd/_parsers.py
mflaxman10/pymapd
00b72ae399a0ff829507ee0b3a2b7404f3a06c26
[ "Apache-2.0" ]
null
null
null
""" Utility methods for parsing data returned from MapD """ import datetime from collections import namedtuple from sqlalchemy import text import mapd.ttypes as T from ._utils import seconds_to_time Description = namedtuple("Description", ["name", "type_code", "display_size", ...
27.952128
79
0.597146
632
5,255
4.78481
0.286392
0.020833
0.013228
0.037037
0.242063
0.230489
0.177579
0.170635
0.170635
0.140873
0
0.004536
0.286775
5,255
187
80
28.101604
0.802295
0.16784
0
0.132075
0
0
0.064753
0
0
0
0
0.005348
0
1
0.084906
false
0
0.122642
0.028302
0.301887
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16833799777639519b435db61702159dbc70cb57
20,687
py
Python
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
1
2021-07-30T16:03:48.000Z
2021-07-30T16:03:48.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:21.000Z
2022-01-21T10:49:20.000Z
featuretools/entityset/entity.py
rohit901/featuretools
20bee224782acf94909c2bf33239fd5332a8c1de
[ "BSD-3-Clause" ]
2
2021-02-09T21:37:48.000Z
2021-12-22T16:13:27.000Z
import logging import warnings import dask.dataframe as dd import numpy as np import pandas as pd from featuretools import variable_types as vtypes from featuretools.utils.entity_utils import ( col_is_datetime, convert_all_variable_data, convert_variable_data, get_linked_vars, infer_variable_types...
42.391393
124
0.592353
2,505
20,687
4.708583
0.144511
0.054939
0.028995
0.008902
0.313607
0.258499
0.215854
0.184824
0.158033
0.148283
0
0.002448
0.328709
20,687
487
125
42.478439
0.846907
0.240731
0
0.187075
0
0
0.081546
0.001466
0
0
0
0.004107
0.013605
1
0.078231
false
0
0.037415
0.010204
0.193878
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16848dd03e02c952cce813e4092be02064f38ca9
1,470
py
Python
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
16
2018-06-20T00:01:40.000Z
2022-01-24T08:16:17.000Z
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
12
2018-07-18T21:09:37.000Z
2020-03-28T23:38:13.000Z
githubdl/url_helpers.py
wilvk/githubdl
1dc8c1c0d93a8e4b8155aecf4f5e73e2931ed920
[ "MIT" ]
null
null
null
import re from urllib.parse import urlparse import logging def check_url_is_http(repo_url): predicate = re.compile('^https?://.*$') match = predicate.search(repo_url) return False if match is None else True def check_url_is_ssh(repo_url): predicate = re.compile(r'^git\@.*\.git$') match = predicate...
31.276596
76
0.706803
223
1,470
4.327354
0.246637
0.108808
0.067358
0.074611
0.635233
0.577202
0.472539
0.404145
0.404145
0.404145
0
0.001643
0.172109
1,470
46
77
31.956522
0.79129
0
0
0.263158
0
0
0.081633
0
0
0
0
0
0
1
0.210526
false
0
0.078947
0
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
0
0
0
0
0
0
1
168519bcca14cbc5945efcceae792622fe09d3d9
25,777
py
Python
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
null
null
null
RECOVERED_FILES/root/ez-segway/simulator/ez_lib/cen_scheduler.py
AlsikeE/Ez
2f84ac1896a5b6d8f467c14d3618274bdcfd2cad
[ "Apache-2.0" ]
1
2021-05-08T02:23:00.000Z
2021-05-08T02:23:00.000Z
import itertools from ez_lib import ez_flow_tool from collections import defaultdict from ez_scheduler import EzScheduler from ez_lib.ez_ob import CenUpdateInfo, UpdateNext from misc import constants, logger from domain.message import * from collections import deque from misc import global_vars import time import even...
54.039832
136
0.58141
3,169
25,777
4.343326
0.07384
0.057469
0.073888
0.022377
0.706771
0.654752
0.603894
0.541703
0.498838
0.46687
0
0.003894
0.342398
25,777
476
137
54.153361
0.808094
0.105559
0
0.455497
0
0
0.033022
0
0
0
0
0.002101
0.007853
1
0.075916
false
0.002618
0.028796
0.007853
0.159686
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16863f0872927e8b824cd132c78fbf22829a951a
892
py
Python
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
src/trackbar.py
clovadev/opencv-python
f9c685f8dc658f630a9742f4dd55663bde03fe7d
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv def nothing(x): pass # Create a black image, a window img = np.zeros((300, 512, 3), np.uint8) cv.namedWindow('image') # create trackbars for color change cv.createTrackbar('R', 'image', 0, 255, nothing) cv.createTrackbar('G', 'image', 0, 255, nothing) cv.createTrackbar('B', ...
22.3
49
0.618834
130
892
4.246154
0.469231
0.115942
0.048913
0.086957
0.115942
0.115942
0
0
0
0
0
0.04058
0.226457
892
39
50
22.871795
0.75942
0.197309
0
0
0
0
0.087447
0
0
0
0
0
0
1
0.041667
false
0.041667
0.083333
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1687efc3eb23ad09ae90d5260997fa4ec210ea9f
1,246
py
Python
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
aoc_2015/src/day20.py
ambertests/adventofcode
140ed1d71ed647d30d1e6572964cab1e89dfd105
[ "MIT" ]
null
null
null
from functools import reduce # https://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python def factors(n): step = 2 if n%2 else 1 return set(reduce(list.__add__, ([i, n//i] for i in range(1, int(n**0.5)+1, step) if not ...
27.688889
125
0.50321
158
1,246
3.911392
0.424051
0.080906
0.038835
0
0
0
0
0
0
0
0
0.08366
0.386035
1,246
44
126
28.318182
0.724183
0.11236
0
0
0
0
0.012704
0
0
0
0
0
0
1
0.055556
false
0
0.027778
0
0.138889
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1688724e3867c7e8e39adb6579cee704e885e634
1,604
py
Python
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
1
2019-11-06T14:08:40.000Z
2019-11-06T14:08:40.000Z
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
setup.py
jean/labels
dcb6f40fb4e222068e302202dd5d7d98b4771e4b
[ "MIT" ]
null
null
null
import pathlib import setuptools def read(*args: str) -> str: file_path = pathlib.Path(__file__).parent.joinpath(*args) return file_path.read_text("utf-8") setuptools.setup( name="labels", version="0.3.0.dev0", author="Raphael Pierzina", author_email="raphael@hackebrot.de", maintainer="R...
34.12766
81
0.640898
176
1,604
5.715909
0.579545
0.027833
0.099404
0.068588
0.09841
0.069583
0
0
0
0
0
0.011691
0.200125
1,604
46
82
34.869565
0.771629
0
0
0
0
0
0.471945
0
0
0
0
0
0
1
0.02381
false
0
0.047619
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168883ce786ac5e2bf642b55446a3bcf835eeaa8
275
py
Python
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
1
2015-11-05T11:49:32.000Z
2015-11-05T11:49:32.000Z
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
colab/__init__.py
caseywstark/colab
e05293e45a657eda19d733bf05624a1613a7a9b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __about__ = """ This project demonstrates a social networking site. It provides profiles, friends, photos, blogs, tribes, wikis, tweets, bookmarks, swaps, locations and user-to-user messaging. In 0.5 this was called "complete_project". """
27.5
74
0.705455
36
275
5.25
0.916667
0
0
0
0
0
0
0
0
0
0
0.013216
0.174545
275
9
75
30.555556
0.819383
0.076364
0
0
0
0
0.91358
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
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1689397a49d0387c8d71492ecee794b05a45ba83
862
py
Python
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
src/ralph/ui/forms/util.py
quamilek/ralph
bf7231ea096924332b874718b33cd1f43f9c783b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from ralph.business.models import Venture, VentureRole def all_ventures(): yield '', '---------' for v in Venture.objects.filter(show_in...
28.733333
78
0.558005
97
862
4.57732
0.494845
0.09009
0.144144
0
0
0
0
0
0
0
0
0.013093
0.291183
862
29
79
29.724138
0.713584
0.054524
0
0.086957
0
0
0.149015
0.033251
0
0
0
0
0
1
0.086957
false
0
0.217391
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1689e31b5f0f44d60b97128a67d87b2730238b68
28
py
Python
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
287
2019-04-08T13:18:29.000Z
2021-03-14T19:10:21.000Z
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
191
2019-04-08T14:39:18.000Z
2021-03-14T22:14:56.000Z
tests/syntax/missing_in_with_for.py
matan-h/friendly
3ab0fc6541c837271e8865e247750007acdd18fb
[ "MIT" ]
9
2019-04-08T12:54:08.000Z
2020-11-20T02:26:27.000Z
for x range(4): print(x)
9.333333
15
0.571429
6
28
2.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0.047619
0.25
28
2
16
14
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
5
168b7cd601c412154d052fac8164eeb139aec911
4,769
py
Python
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
11
2020-09-05T14:16:23.000Z
2022-03-03T22:33:14.000Z
services/users/manage.py
eventprotocol/event-protocol-webapp
38ccdc63bc744576ebb3631b7e17cfd4a09216b6
[ "MIT" ]
null
null
null
""" manage.py for flask application """ import unittest import coverage import os from flask.cli import FlaskGroup from project import create_app, db from project.api.models import User # Code coverage COV = coverage.Coverage( branch=True, include='project/*', omit=[ 'project/tests/*', 'p...
29.621118
79
0.642063
558
4,769
5.40681
0.367384
0.03182
0.025522
0.043752
0.1412
0.127942
0.078223
0.044415
0.044415
0.044415
0
0.061488
0.236108
4,769
160
80
29.80625
0.766676
0.04047
0
0.116667
0
0
0.34228
0.082076
0
0
0.055901
0
0
1
0.033333
false
0
0.05
0
0.116667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168bb7123d253d48e67b56f36bbcad938db24dd7
1,750
py
Python
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
3
2021-02-14T17:10:59.000Z
2021-02-14T18:09:17.000Z
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
keras_transformer/keras_transformer/training/custom_callbacks/CustomCheckpointer.py
erelcan/keras-transformer
ae88985dd4f1b5f91737e80c7e9c3157b60b4c4f
[ "Apache-2.0" ]
null
null
null
import os from keras.callbacks import ModelCheckpoint from keras_transformer.training.custom_callbacks.CustomCallbackABC import CustomCallbackABC from keras_transformer.utils.io_utils import save_to_pickle class CustomCheckpointer(ModelCheckpoint, CustomCallbackABC): def __init__(self, workspace_path, artifacts,...
35
117
0.671429
202
1,750
5.460396
0.29703
0.070716
0.065277
0.047144
0
0
0
0
0
0
0
0.005189
0.229143
1,750
49
118
35.714286
0.812454
0
0
0.055556
0
0
0.058286
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0.055556
0.361111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168c810ecd449bb3eb263646cbc454470f8c28e4
527
py
Python
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
train_test_val.py
arashk7/Yolo5_Dataset_Generator
aeba58b51201b8521478c777b40c4d31f0c60be9
[ "Apache-2.0" ]
null
null
null
import os import shutil input_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5' output_dir = 'E:\Dataset\zhitang\Dataset_Zhitang_Yolo5\ZhitangYolo5' in_img_dir = os.path.join(input_dir, 'Images') in_label_dir = os.path.join(input_dir, 'Labels') out_img_dir = os.path.join(output_dir, 'images') out_label_dir = os.path.jo...
22.913043
68
0.736243
87
527
4.218391
0.37931
0.081744
0.13624
0.141689
0.52861
0.435967
0.201635
0
0
0
0
0.006438
0.11575
527
22
69
23.954545
0.781116
0
0
0
0
0
0.250478
0.17782
0
0
0
0
0
0
null
null
0
0.133333
null
null
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
1
0
0
0
0
0
0
0
0
1
168cde4a792e9985c473078c1d3e1678761198e7
4,873
py
Python
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/media_player/pjlink.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
""" Support for controlling projector via the PJLink protocol. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.pjlink/ """ import logging import voluptuous as vol from homeassistant.components.media_player import ( PLATFORM_SCHEMA, SUPP...
31.038217
78
0.65668
580
4,873
5.277586
0.227586
0.03953
0.033322
0.037243
0.159752
0.063378
0.04247
0.029402
0
0
0
0.002704
0.241125
4,873
156
79
31.237179
0.825041
0.14488
0
0.134615
0
0
0.015935
0
0
0
0
0
0
1
0.144231
false
0.067308
0.067308
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
168da4e09bd5b50aa5b8cd08e50f215c17b399b2
608
py
Python
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
leetcode/regex_matching.py
Kaushalya/algo_journal
bcea8afda0dc86b36452378e3bcff9b0f57d6856
[ "Apache-2.0" ]
null
null
null
# Level: Hard def isMatch(s: str, p: str) -> bool: if not p: return not s n_s = len(s) n_p = len(p) j = 0 i = -1 while i < n_s-1: i = i+ 1 if j >= n_p: return False if p[j] == '*': while s[i]==s[i-1]: i += 1 j...
17.882353
39
0.361842
93
608
2.225806
0.344086
0.048309
0.028986
0.038647
0
0
0
0
0
0
0
0.031847
0.483553
608
34
40
17.882353
0.627389
0.032895
0
0.153846
0
0
0.032423
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.192308
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168db9c8444379377b3a611c0a5f87f083f3ec4d
3,217
py
Python
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
324
2015-01-02T20:48:33.000Z
2021-12-11T14:44:34.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
103
2015-01-02T03:01:34.000Z
2020-04-02T19:03:53.000Z
tests/factories.py
luzik/waliki
b7db696075ceebb5676be61f44e2d806cc472255
[ "BSD-3-Clause" ]
84
2015-01-07T08:53:05.000Z
2021-01-04T00:26:38.000Z
import factory from django.contrib.auth.models import User, Group, Permission from waliki.models import ACLRule, Page, Redirect class UserFactory(factory.django.DjangoModelFactory): username = factory.Sequence(lambda n: u'user{0}'.format(n)) password = factory.PostGenerationMethodCall('set_password', 'pass') ...
28.723214
98
0.608642
380
3,217
5.115789
0.218421
0.061728
0.08642
0.090535
0.640432
0.600823
0.526749
0.526749
0.526749
0.51286
0
0.003099
0.297793
3,217
111
99
28.981982
0.857459
0.11346
0
0.577465
0
0
0.036633
0
0
0
0
0
0
1
0.084507
false
0.014085
0.042254
0
0.492958
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168dc722af15d363851566ae2eeabcf9ccc50653
68,372
py
Python
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
131
2020-12-03T08:01:26.000Z
2022-03-07T03:41:37.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
127
2020-12-07T21:43:02.000Z
2022-02-17T22:31:14.000Z
nxt_editor/commands.py
dalteocraft/nxt_editor
18992da7cfa89769568434ec08d787510e09f1c4
[ "MIT" ]
17
2020-12-08T08:06:44.000Z
2021-11-18T05:40:11.000Z
# Built-in import copy import logging import time # External from Qt.QtWidgets import QUndoCommand # Internal from nxt_editor import colors from nxt_editor import user_dir from nxt import nxt_path from nxt.nxt_layer import LAYERS, SAVE_KEY from nxt.nxt_node import (INTERNAL_ATTRS, META_ATTRS, get_node_as_dict, ...
40.60095
80
0.597379
8,219
68,372
4.663341
0.054995
0.048424
0.032561
0.014559
0.621478
0.538588
0.458386
0.402004
0.334481
0.293937
0
0.001263
0.316928
68,372
1,683
81
40.625074
0.819412
0.071418
0
0.471858
0
0
0.018492
0
0
0
0
0.000594
0
1
0.089437
false
0.003084
0.009252
0
0.13724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168de834f7c08dea94c1b268f9213453f995fc3e
6,642
py
Python
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2021-07-15T13:25:23.000Z
2021-07-15T13:25:23.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
1
2022-01-27T13:30:56.000Z
2022-01-27T13:30:56.000Z
mietrechtspraxis/mietrechtspraxis/doctype/arbitration_authority/arbitration_authority.py
libracore/mietrechtspraxis
7b2320a70b98b086be136a86b1ab4fadfce215ff
[ "MIT" ]
2
2021-08-14T22:23:08.000Z
2021-09-08T09:31:51.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore AG and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from datetime import datetime from PyPDF2 import PdfFileWriter from frappe.utils.file_manager im...
43.986755
187
0.483439
556
6,642
5.643885
0.294964
0.028999
0.022307
0.027087
0.248885
0.227533
0.210325
0.192479
0.151689
0.123008
0
0.018499
0.422162
6,642
150
188
44.28
0.799114
0.075881
0
0.281818
0
0
0.531901
0.067738
0
0
0
0
0
1
0.054545
false
0.009091
0.054545
0.018182
0.218182
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
168eb7379683dd807fa4203db108dc8a9b170baa
323
py
Python
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
2
2022-01-10T12:25:45.000Z
2022-01-15T08:01:32.000Z
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
null
null
null
easysockets/client_socket.py
Matthias1590/EasySockets
70d33a04e862b682b87bdf2103bcc1d7da06994e
[ "MIT" ]
null
null
null
from .connection import Connection import socket class ClientSocket: def __init__(self) -> None: self.__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def connect(self, host: str, port: int) -> Connection: self.__socket.connect((host, port)) return Connection(self.__socke...
24.846154
73
0.696594
39
323
5.461538
0.512821
0.140845
0.169014
0
0
0
0
0
0
0
0
0
0.198142
323
12
74
26.916667
0.822394
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
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
168f0267685e958dd990feeae60a1086e6b78107
31,038
py
Python
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2022-03-16T01:40:10.000Z
2022-03-16T01:40:10.000Z
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
null
null
null
pxr/usd/usdGeom/testenv/testUsdGeomSchemata.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2018-10-03T19:08:33.000Z
2018-10-03T19:08:33.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
42.69326
100
0.63055
3,425
31,038
5.706277
0.16292
0.070917
0.027937
0.028142
0.456048
0.358831
0.312679
0.27763
0.258033
0.209681
0
0.018041
0.257104
31,038
726
101
42.752066
0.82956
0.204266
0
0.384449
0
0
0.04174
0.002734
0
0
0
0
0.414687
1
0.034557
false
0
0.019438
0
0.056156
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
1
0
0
0
0
0
0
0
0
0
1
168fdf67ec71ebdf125bbe9b6f5c14dad854391f
1,310
py
Python
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
null
null
null
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
5
2020-04-26T19:44:41.000Z
2020-05-01T16:26:06.000Z
round_robin_generator/matchup_times.py
avadavat/round_robin_generator
242d522386f6af26db029232fcffb51004ff4c59
[ "MIT" ]
null
null
null
import pandas as pd from datetime import timedelta def generate_times(matchup_df: pd.DataFrame, tournament_start_time, game_duration, game_stagger): time_df = pd.DataFrame(index=matchup_df.index, columns=matchup_df.columns) if game_stagger == 0: for round_num in range(time_df.shape[0]): ro...
48.518519
116
0.636641
178
1,310
4.432584
0.359551
0.060837
0.072243
0.053232
0.371356
0.320659
0.139417
0.139417
0.139417
0.139417
0
0.006244
0.266412
1,310
26
117
50.384615
0.814776
0
0
0.3
1
0
0.023529
0
0
0
0
0
0
1
0.05
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16904816a9bda6205128c0d91b67e3ab2be3d489
3,943
py
Python
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
19
2018-10-02T03:58:46.000Z
2021-04-09T13:09:23.000Z
commands/locate_item.py
seisatsu/Dennis
8f1892f21beba6b21b4f7b9ba3062296bb1dc4b9
[ "MIT" ]
100
2018-09-22T22:54:35.000Z
2021-04-16T17:46:34.000Z
src/commands/locate_item.py
seisatsu/DennisMUD-ESP32
b63d4b914c5e8d0f9714042997c64919b20be842
[ "MIT" ]
1
2022-01-03T02:21:56.000Z
2022-01-03T02:21:56.000Z
####################### # Dennis MUD # # locate_item.py # # Copyright 2018-2020 # # Michael D. Reiley # ####################### # ********** # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal i...
41.072917
116
0.633274
530
3,943
4.692453
0.350943
0.028146
0.018094
0.028951
0.221954
0.221954
0.184158
0.152392
0.131484
0.131484
0
0.008562
0.259447
3,943
95
117
41.505263
0.843151
0.421506
0
0.318182
0
0
0.236902
0
0
0
0
0
0
1
0.022727
false
0
0
0
0.204545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16904f40b9743948ab5dc6a0d2f55015295bc2fd
2,787
py
Python
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/scsb/models/monthly-comparisons.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor from sklearn.tree import DecisionTreeRegressor from xgboost import XGBRegressor from catboost import CatBoostRegressor from sklearn.model_selection import ...
38.708333
161
0.734482
421
2,787
4.584323
0.344418
0.027979
0.043523
0.022798
0.131088
0.045596
0.035751
0
0
0
0
0.021022
0.12953
2,787
71
162
39.253521
0.774526
0.077503
0
0
0
0
0.14809
0.049493
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1690da2be65319bb6696ac8f2ce11540524171c2
14,922
py
Python
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # XGBoost training # MAGIC This is an auto-generated notebook. To reproduce these results, attach this notebook to the **10-3-ML-Cluster** cluster and rerun it. # MAGIC - Compare trials in the [MLflow experiment](#mlflow/experiments/406583024052808/s?orderByKey=metrics.%...
36.753695
461
0.743399
2,099
14,922
5.13959
0.273464
0.013904
0.015573
0.022896
0.229514
0.170745
0.136911
0.131072
0.109752
0.062106
0
0.024601
0.13919
14,922
405
462
36.844444
0.815259
0.513537
0
0.2
1
0.007143
0.172551
0.053452
0
0
0
0
0
1
0
false
0.007143
0.242857
0
0.242857
0.007143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1694a3aec6658351c14a81b2e91e92955b6cb8a7
341
py
Python
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
lucky_guess/__init__.py
mfinzi/lucky-guess-chemist
01898b733dc7d026f70d0cb6337309cb600502fb
[ "MIT" ]
null
null
null
import importlib import pkgutil __all__ = [] for loader, module_name, is_pkg in pkgutil.walk_packages(__path__): module = importlib.import_module('.'+module_name,package=__name__) try: globals().update({k: getattr(module, k) for k in module.__all__}) __all__ += module.__all__ except Att...
34.1
73
0.71261
42
341
5.095238
0.547619
0.140187
0
0
0
0
0
0
0
0
0
0
0.181818
341
10
74
34.1
0.767025
0
0
0
0
0
0.002924
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1695439f6b89942d55b135dae20f140a0772199c
3,727
py
Python
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
shuffling_algorithm.py
BaptisteLafoux/aztec_tiling
413acd8751b8178942e91fbee32987f02bc5c695
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 30 22:04:48 2020 @author: baptistelafoux """ import domino import numpy as np import numpy.lib.arraysetops as aso def spawn_block(x, y): if np.random.rand() > 0.5: d1 = domino.domino(np.array([x, y]), np.array([x + 1, y]), ...
26.81295
117
0.499866
554
3,727
3.214801
0.18231
0.028074
0.040427
0.023582
0.480067
0.411005
0.332959
0.27288
0.205503
0.19315
0
0.032747
0.344513
3,727
138
118
27.007246
0.696275
0.027904
0
0.380952
0
0
0
0
0
0
0
0
0
1
0.095238
false
0.035714
0.035714
0
0.22619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1696d983057a2d937827a5a96f9b5500cb3c490c
478
py
Python
scripts/matrix_operations.py
h3ct0r/gas_mapping_example
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
1
2022-02-28T21:55:23.000Z
2022-02-28T21:55:23.000Z
scripts/matrix_operations.py
ArghyaChatterjee/gas_mapping_kerneldm
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
null
null
null
scripts/matrix_operations.py
ArghyaChatterjee/gas_mapping_kerneldm
57bd8333b4832281fbb89019df440374e2b50b9b
[ "Unlicense" ]
2
2021-12-14T05:15:18.000Z
2022-02-28T21:55:10.000Z
import numpy as np def get_position_of_minimum(matrix): return np.unravel_index(np.nanargmin(matrix), matrix.shape) def get_position_of_maximum(matrix): return np.unravel_index(np.nanargmax(matrix), matrix.shape) def get_distance_matrix(cell_grid_x, cell_grid_y, x, y): return np.sqrt((x - cell_grid_x)...
26.555556
67
0.725941
83
478
3.831325
0.301205
0.201258
0.113208
0.100629
0.622642
0.477987
0.301887
0.301887
0.301887
0.138365
0
0.009852
0.150628
478
17
68
28.117647
0.773399
0
0
0
0
0
0
0
0
0
0
0
0
1
0.444444
false
0
0.111111
0.444444
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
16988b5f9f77ebb40b1eb37bef67f48bd826786d
121
py
Python
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
ShanghaiPower/build_up.py
biljiang/pyprojects
10095c6b8f2f32831e8a36e122d1799f135dc5df
[ "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize setup(ext_modules = cythonize(["license_chk.py"]))
20.166667
50
0.793388
17
121
5.529412
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.107438
121
5
51
24.2
0.87037
0
0
0
0
0
0.116667
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
169a6a92aa8a5f8b13f2ca7a2bc5a3d4390e96a9
6,363
py
Python
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/extensions/nvp_qos.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Nicira, Inc. # All Rights Reserved # # 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/lic...
31.191176
78
0.610718
715
6,363
5.236364
0.317483
0.023504
0.034722
0.043269
0.279915
0.223024
0.176015
0.129541
0.081197
0.081197
0
0.009395
0.280685
6,363
203
79
31.344828
0.808608
0.120069
0
0.222222
0
0
0.220646
0.004488
0
0
0
0
0
1
0.088889
false
0.02963
0.044444
0.037037
0.355556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169b6898f6bda824a9456c155bd29a6f84fdb9e8
251
py
Python
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
1
2021-12-14T19:21:44.000Z
2021-12-14T19:21:44.000Z
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
null
null
null
easyneuron/math/__init__.py
TrendingTechnology/easyneuron
b99822c7206a144a0ab61b3b6b5cddeaca1a3c6a
[ "Apache-2.0" ]
null
null
null
"""easyneuron.math contains all of the maths tools that you'd ever need for your AI projects, when used alongside Numpy. To suggest more to be added, please add an issue on the GitHub repo. """ from easyneuron.math.distance import euclidean_distance
41.833333
120
0.788845
42
251
4.690476
0.880952
0.142132
0
0
0
0
0
0
0
0
0
0
0.155378
251
6
121
41.833333
0.929245
0.74502
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
169c6caecdf841a261ae5cbf1ce633a03edb8b3a
2,532
py
Python
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/concurrently/test_TaskPackageDropbox_put.py
shane-breeze/AlphaTwirl
59dbd5348af31d02e133d43fd5bfaad6b99a155e
[ "BSD-3-Clause" ]
null
null
null
# Tai Sakuma <tai.sakuma@gmail.com> import pytest try: import unittest.mock as mock except ImportError: import mock from alphatwirl.concurrently import TaskPackageDropbox ##__________________________________________________________________|| @pytest.fixture() def workingarea(): return mock.MagicMock() @...
30.878049
98
0.742496
292
2,532
5.630137
0.181507
0.065693
0.072993
0.048662
0.689173
0.687348
0.644769
0.622263
0.539538
0.539538
0
0.02869
0.146524
2,532
81
99
31.259259
0.732068
0.10387
0
0.425926
0
0
0.014178
0
0
0
0
0
0.351852
1
0.12963
false
0
0.092593
0.037037
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169dfe6f123a1bb92dcedefda60fdcdf0dde5b42
3,497
py
Python
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/tests/unit/dhcp/test_odl_dhcp_driver.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 OpenStack Foundation # All Rights Reserved. # # 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 ...
40.662791
78
0.637975
420
3,497
5.030952
0.321429
0.055372
0.032182
0.055372
0.347847
0.308093
0.308093
0.274965
0.274965
0.274965
0
0.012638
0.275951
3,497
85
79
41.141176
0.82188
0.174435
0
0.388889
0
0
0.084262
0.009749
0
0
0
0
0.092593
1
0.092593
false
0
0.12963
0
0.240741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
169ed0cf36c52beabffce88a57318686603b6c41
443
py
Python
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
2
2019-11-15T05:07:24.000Z
2019-11-15T10:27:48.000Z
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20191113_1352.py
Dragonite/djangohat
68890703b1fc647785cf120ada281d6f3fcc4121
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-11-13 13:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='users', name='site_key', fi...
23.315789
119
0.625282
47
443
5.808511
0.765957
0.014652
0
0
0
0
0
0
0
0
0
0.130699
0.257336
443
18
120
24.611111
0.699088
0.10158
0
0
1
0
0.156566
0.080808
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16a0f5c79d486ed958f66a4f801398499c8d9ff1
3,389
py
Python
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
premium/backend/src/baserow_premium/api/admin/dashboard/views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
from datetime import timedelta from django.contrib.auth import get_user_model from drf_spectacular.utils import extend_schema from rest_framework.response import Response from rest_framework.permissions import IsAdminUser from rest_framework.views import APIView from baserow.api.decorators import accept_timezone fr...
38.078652
88
0.649159
425
3,389
4.936471
0.275294
0.062917
0.031459
0.028599
0.50858
0.461868
0.461868
0.383222
0.383222
0.348904
0
0.022941
0.279729
3,389
88
89
38.511364
0.836542
0.120685
0
0.059701
0
0
0.233882
0.060014
0
0
0
0
0
1
0.014925
false
0
0.149254
0
0.208955
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a20512bd62fea83ee40c49a4b7cc5fa386ce48
969
py
Python
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
src/clientOld.py
dan3612812/socketChatRoom
b0d548477687de2d9fd521826db9ea75e528de5c
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import sys import socket import time import threading import select HOST = '192.168.11.98' PORT = int(sys.argv[1]) queue = [] s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) queue.append(s) print("add client to queue") def socketRecv(): while True: ...
19.38
53
0.627451
130
969
4.653846
0.476923
0.026446
0.064463
0.054545
0.155372
0.155372
0.155372
0.155372
0.155372
0.155372
0
0.034483
0.221878
969
49
54
19.77551
0.767905
0.139319
0
0.294118
0
0
0.082324
0
0
0
0
0
0
1
0.058824
false
0
0.147059
0
0.205882
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
16a205ccc4af00539940fcbe977b97f31972c365
6,296
py
Python
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/anomali_threatstream/komand_anomali_threatstream/actions/import_observable/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Import observable(s) into Anomali ThreatStream with approval" class Input: FILE = "file" OBSERVABLE_SETTINGS = "observable_settings" class Output: RESULTS = "results" class ImportObservableI...
28.488688
215
0.513977
571
6,296
5.583187
0.294221
0.043915
0.061167
0.034504
0.198871
0.198871
0.198871
0.198871
0.16813
0.16813
0
0.008483
0.344663
6,296
220
216
28.618182
0.764178
0.005877
0
0.328502
1
0.019324
0.922007
0.040115
0
0
0
0
0
1
0.009662
false
0
0.086957
0
0.149758
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
16a25b6b94677a9d90afcb9439df38171a1429af
25,083
py
Python
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/quota/test_quota.py
citrix-openstack-build/trove
52506396dd7bd095d1623d40cf2e67f2b478dc1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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 l...
42.513559
79
0.574812
2,509
25,083
5.513352
0.080909
0.084436
0.026025
0.035712
0.803152
0.731728
0.70021
0.67845
0.664209
0.650184
0
0.016121
0.339712
25,083
589
80
42.585739
0.819104
0.023323
0
0.627706
0
0
0.019089
0.000901
0
0
0
0
0.222944
1
0.0671
false
0
0.030303
0
0.103896
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
16a2ce4183cf617439f69c8fd39f2dded2cf7d88
180
py
Python
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
analisador_sintatico/blueprints/api/parsers.py
viniciusandd/uri-analisador-sintatico
b347f4293e4c60bd3b2c838c8cef0d75db2c0bec
[ "MIT" ]
null
null
null
from flask_restful import reqparse def retornar_parser(): parser = reqparse.RequestParser() parser.add_argument('sentenca', type=str, required=True) return parser
25.714286
64
0.738889
21
180
6.190476
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.172222
180
6
65
30
0.872483
0
0
0
0
0
0.044444
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
16a3072f25578896e1189f9fac5976e0586e6b47
6,369
py
Python
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
9
2020-10-08T19:51:17.000Z
2022-02-16T12:58:01.000Z
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
null
null
null
demo_large_image.py
gunlyungyou/AerialDetection
a5606acd8e9a5f7b10cd76bd4b0c3b8c7630fb26
[ "Apache-2.0" ]
8
2020-09-25T14:47:55.000Z
2022-02-16T12:31:13.000Z
from mmdet.apis import init_detector, inference_detector, show_result, draw_poly_detections import mmcv from mmcv import Config from mmdet.datasets import get_dataset import cv2 import os import numpy as np from tqdm import tqdm import DOTA_devkit.polyiou as polyiou import math import pdb CLASS_NAMES_KR = ('소형 선박', '대...
43.326531
122
0.551892
830
6,369
4.028916
0.26988
0.011962
0.0314
0.028409
0.261065
0.183612
0.120215
0.052033
0.052033
0
0
0.044151
0.310096
6,369
146
123
43.623288
0.716887
0.151358
0
0.036697
0
0
0.071163
0.027685
0
0
0
0.006849
0
1
0.036697
false
0.009174
0.119266
0
0.183486
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0