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
d81c75ad50782ad797314e28e993937bc54e4087
386
py
Python
chapter10/examples/writing_example_calls_using_stringio/string_io.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter10/examples/writing_example_calls_using_stringio/string_io.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
chapter10/examples/writing_example_calls_using_stringio/string_io.py
YordanIH/Intro_to_CS_w_Python
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
[ "MIT" ]
null
null
null
#write and read from stringIO >>> from io import StringIO >>> input_string = '1.3 3.4\n2 4.2\n-1 1\n' >>> infile = StringIO(input_string) >>> infile.readline() '1.3 3.4\n' #write to StringIO >>> outfile = StringIO() >>> outfile.write('1.3 3.4 4.7\n') 12 >>> outfile.write('2 4.2 6.2\n') 10 >>> outfile.write('-1 1 0.0\...
20.315789
43
0.608808
84
386
2.77381
0.309524
0.034335
0.051502
0.06867
0.137339
0.051502
0
0
0
0
0
0.146341
0.150259
386
18
44
21.444444
0.564024
0.11658
0
0
0
0.071429
0.292899
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d82256587c6fd9a962f3bba6a53f5e6be6879b6a
24,286
py
Python
src/devs/trevp-tlslite-cac0c81/tests/tlstest.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
1
2020-02-17T08:18:29.000Z
2020-02-17T08:18:29.000Z
src/devs/trevp-tlslite-cac0c81/tests/tlstest.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/devs/trevp-tlslite-cac0c81/tests/tlstest.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Authors: # Trevor Perrin # Kees Bos - Added tests for XML-RPC # Dimitris Moraitis - Anon ciphersuites # # See the LICENSE file for legal information regarding use of this file. import sys import os import os.path import socket import thread import time import getopt import httplib impor...
34.061711
104
0.623363
2,445
24,286
6.171779
0.167689
0.035189
0.055467
0.042942
0.685818
0.662558
0.608748
0.563022
0.520212
0.506362
0
0.039803
0.27172
24,286
712
105
34.109551
0.813366
0.03047
0
0.65247
0
0
0.12906
0.009182
0
0
0
0
0.057922
0
null
null
0.027257
0.028961
null
null
0.146508
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
d82a94b4ee2b2887fb582f8a66a069af22d5a677
705
py
Python
helios/datatypes/core.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
525
2015-01-04T11:51:26.000Z
2022-03-31T17:15:20.000Z
helios/datatypes/core.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
238
2015-01-02T17:50:37.000Z
2022-02-09T16:39:49.000Z
helios/datatypes/core.py
thiagosfs/helios-server
1616f742c0d3ab8833aab4cfbcc45d9818c68716
[ "Apache-2.0" ]
238
2015-01-05T23:09:20.000Z
2022-03-21T16:47:33.000Z
""" core data types """ from helios.datatypes import LDObject class BigInteger(LDObject): """ A big integer is an integer serialized as a string. We may want to b64 encode here soon. """ WRAPPED_OBJ_CLASS = int def toDict(self, complete=False): if self.wrapped_obj: ret...
22.741935
71
0.608511
94
705
4.489362
0.510638
0.14218
0.165877
0.099526
0.374408
0.374408
0.374408
0.374408
0.374408
0.374408
0
0.004124
0.312057
705
30
72
23.5
0.865979
0.241135
0
0.588235
0
0
0.107018
0
0
0
0
0
0
1
0.176471
false
0
0.058824
0
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d82d9715b4db356bd1435472e3f27434367701f2
175
py
Python
17_lambda.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
17_lambda.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
17_lambda.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
# def func(a): # return a + 5 func = lambda a: a+5 square = lambda s: s*s sum = lambda x,y,z: x+y+z x = 10 print (func(x)) print (square(x)) print (sum(x,4,5))
15.909091
26
0.542857
37
175
2.567568
0.405405
0.042105
0.063158
0.084211
0
0
0
0
0
0
0
0.046875
0.268571
175
11
27
15.909091
0.695313
0.165714
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
d8302d49b7b3d05154b7a06f2a3c546c88d262a2
582
py
Python
src/products/urls.py
Gurshid/eCommerce
b052d0ad00edbf245482b59ea3d4eacff06f7acf
[ "MIT" ]
null
null
null
src/products/urls.py
Gurshid/eCommerce
b052d0ad00edbf245482b59ea3d4eacff06f7acf
[ "MIT" ]
4
2020-06-05T17:15:40.000Z
2021-06-10T18:31:11.000Z
src/products/urls.py
Gurshid/eCommerce
b052d0ad00edbf245482b59ea3d4eacff06f7acf
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from .views import ProductDetailView, ProductListView, VariationListView urlpatterns = [ url(r'^$', ProductListView.as_view(), name = 'products'), url(r'^(?P<pk>[\w-...
38.8
100
0.726804
76
582
5.434211
0.407895
0.096852
0.101695
0.087167
0.038741
0
0
0
0
0
0
0
0.092784
582
14
101
41.571429
0.782197
0.168385
0
0
0
0
0.175983
0.055901
0
0
0
0
0
1
0
false
0
0.5
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
0
0
0
1
0
0
0
0
1
dc2a580e873346685b5044730286d69c03a057fc
8,244
py
Python
FMradio/FMradio_PlutoSDR.py
Samayel/sdr-gnuradio-projects
3f5c032bbff0a4c43c54ff62db0041f6bf6fde38
[ "MIT" ]
null
null
null
FMradio/FMradio_PlutoSDR.py
Samayel/sdr-gnuradio-projects
3f5c032bbff0a4c43c54ff62db0041f6bf6fde38
[ "MIT" ]
null
null
null
FMradio/FMradio_PlutoSDR.py
Samayel/sdr-gnuradio-projects
3f5c032bbff0a4c43c54ff62db0041f6bf6fde38
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # SPDX-License-Identifier: GPL-3.0 # # GNU Radio Python Flow Graph # Title: FMradio (PlutoSDR) # GNU Radio version: v3.8.2.0-60-g25b63e7e from distutils.version import StrictVersion if __name__ == '__main__': import ctypes import sys if sys.platform.starts...
33.925926
148
0.627123
1,021
8,244
4.788443
0.228208
0.025772
0.014727
0.025772
0.34281
0.268358
0.196564
0.143997
0.09818
0.09818
0
0.036549
0.236657
8,244
242
149
34.066116
0.740346
0.031538
0
0.179775
0
0
0.037187
0
0
0
0
0
0
1
0.106742
false
0.05618
0.11236
0.039326
0.264045
0.005618
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
dc322026ffa0d284aa67228485cf70cd06b7dfc8
2,566
py
Python
gop/gop.py
felix-hellman/gop
c9c64152e1c49e9ce24fed1d9727f66493498582
[ "MIT" ]
10
2021-06-17T12:56:43.000Z
2022-02-15T17:03:55.000Z
gop/gop.py
felix-hellman/gop
c9c64152e1c49e9ce24fed1d9727f66493498582
[ "MIT" ]
2
2021-06-13T18:36:58.000Z
2021-06-17T16:10:17.000Z
gop/gop.py
felix-hellman/gop
c9c64152e1c49e9ce24fed1d9727f66493498582
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import click from easysettings import EasySettings from gop import ApiClient from gop import FileLayer from gop import GopController try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper settings = EasySettings("gop.conf") VERSION_...
22.910714
120
0.696025
344
2,566
5.075581
0.244186
0.068729
0.042955
0.041237
0.205613
0.139175
0.139175
0.139175
0.139175
0.139175
0
0.01007
0.109899
2,566
111
121
23.117117
0.754378
0.007015
0
0.069444
0
0.013889
0.13938
0.035336
0
0
0
0
0
1
0.222222
false
0.013889
0.111111
0.013889
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
1
0
0
0
0
0
0
0
1
dc3aacef7a1205ee6dc8bd10bc3bfd0209ebfae1
7,070
py
Python
sonia_flexbe_behaviors/src/sonia_flexbe_behaviors/prequalif_sm.py
sonia-auv/sonia-behaviors
28519551f954616e83b474e6cab6ba3762d238f2
[ "BSD-3-Clause" ]
null
null
null
sonia_flexbe_behaviors/src/sonia_flexbe_behaviors/prequalif_sm.py
sonia-auv/sonia-behaviors
28519551f954616e83b474e6cab6ba3762d238f2
[ "BSD-3-Clause" ]
1
2022-02-16T01:31:51.000Z
2022-02-21T22:30:46.000Z
sonia_flexbe_behaviors/src/sonia_flexbe_behaviors/prequalif_sm.py
sonia-auv/sonia-behaviors
28519551f954616e83b474e6cab6ba3762d238f2
[ "BSD-3-Clause" ]
1
2021-11-09T13:34:43.000Z
2021-11-09T13:34:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
42.335329
191
0.662518
830
7,070
5.496386
0.23494
0.032223
0.068391
0.07694
0.537264
0.454844
0.416703
0.318062
0.2911
0.22249
0
0.056484
0.178642
7,070
166
192
42.590361
0.72912
0.134653
0
0.129412
1
0
0.164268
0
0
0
0
0
0
1
0.023529
false
0
0.070588
0
0.117647
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
dc481e631a498889580f6ebf1abfaed21e131e8a
874
py
Python
Employee.py
akshaym91/python-training
797c2ac3078765b1de015ca8a16e02b3a8ba7380
[ "MIT" ]
null
null
null
Employee.py
akshaym91/python-training
797c2ac3078765b1de015ca8a16e02b3a8ba7380
[ "MIT" ]
null
null
null
Employee.py
akshaym91/python-training
797c2ac3078765b1de015ca8a16e02b3a8ba7380
[ "MIT" ]
null
null
null
class Employee(object): """docstring for Employee""" EMPLOYEE_COUNT = 0 def __init__(self, salary): super(Employee, self).__init__() Employee.EMPLOYEE_COUNT += 1 self.salary = salary def display_count(self): return Employee.EMPLOYEE_COUNT def get_salaray(self): ...
20.325581
41
0.648741
113
874
4.743363
0.283186
0.089552
0.117537
0
0
0
0
0
0
0
0
0.023739
0.228833
874
42
42
20.809524
0.771513
0
0
0
0
0
0.014634
0
0
0
0
0
0
0
null
null
0
0
null
null
0.233333
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
dc4a8811aa29ae57d41cc108e11897bf8cf22490
2,016
py
Python
pardal/buffers.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
2
2019-01-30T22:35:44.000Z
2019-01-30T22:41:06.000Z
pardal/buffers.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
null
null
null
pardal/buffers.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
null
null
null
from pardal import templates from pardal.keyboard import KeyboardConfiguration from pardal.speaking import say from pynput import keyboard class HomeTimeline: def __init__(self, api): super().__init__() self.api = api self.data = api.get_home_timeline() self.cursor = 0 self...
29.217391
70
0.574405
230
2,016
4.843478
0.321739
0.08079
0.076302
0.116697
0.247756
0.213645
0.213645
0.213645
0.213645
0.213645
0
0.003782
0.344246
2,016
68
71
29.647059
0.83888
0.027282
0
0.111111
0
0
0.028586
0
0
0
0
0.014706
0
1
0.148148
false
0.018519
0.074074
0.018519
0.259259
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dc51e7b3782ed2b3251c287ba88ef36a2cef4d68
352
py
Python
engfrosh_site/frosh/migrations/0002_rename_name_team_display_name.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
1
2021-05-21T01:01:16.000Z
2021-05-21T01:01:16.000Z
engfrosh_site/frosh/migrations/0002_rename_name_team_display_name.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
50
2021-05-20T21:00:55.000Z
2022-03-12T00:59:18.000Z
engfrosh_site/frosh/migrations/0002_rename_name_team_display_name.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-05 13:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('frosh', '0001_initial'), ] operations = [ migrations.RenameField( model_name='team', old_name='name', new_name='...
18.526316
47
0.571023
38
352
5.157895
0.763158
0
0
0
0
0
0
0
0
0
0
0.078512
0.3125
352
18
48
19.555556
0.731405
0.127841
0
0
1
0
0.121311
0
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
dc5620d4935bd62eb78667e7c44777dd9ee2d7f6
363
py
Python
src/smileml/__init__.py
thanhtu19392/SmileML
735aa92a5ca8934a3e8b944bcac6fcee390926c6
[ "MIT" ]
2
2018-01-31T21:17:47.000Z
2018-05-28T20:55:51.000Z
build/lib/smileml/__init__.py
thanhtu19392/SmileML
735aa92a5ca8934a3e8b944bcac6fcee390926c6
[ "MIT" ]
1
2018-01-31T19:11:45.000Z
2018-01-31T21:52:20.000Z
src/smileml/__init__.py
thanhtu19392/SmileML
735aa92a5ca8934a3e8b944bcac6fcee390926c6
[ "MIT" ]
1
2020-04-22T11:26:54.000Z
2020-04-22T11:26:54.000Z
from .impact import compute_features_impact, compute_partial_dependence from .metrics import lift_curve, plot_roc_curve from .ace import compute_ace, compute_pairwise_ace __version__ = "0.1.0" __all__ = [ 'compute_features_impact', 'compute_partial_dependence', 'lift_curve', 'plot_roc_curve', 'c...
21.352941
71
0.757576
46
363
5.369565
0.391304
0.105263
0.17004
0.226721
0.761134
0.364372
0
0
0
0
0
0.009772
0.15427
363
16
72
22.6875
0.794788
0
0
0
0
0
0.300275
0.134986
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dc57580fb42685fb3ab25582f3f7f8b40c3e4230
1,172
py
Python
tests/test_html_parser.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
2,880
2015-01-02T14:59:08.000Z
2022-03-30T08:49:11.000Z
tests/test_html_parser.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
129
2015-02-09T20:42:19.000Z
2022-03-30T21:28:56.000Z
tests/test_html_parser.py
isarth/sumy
ea7e01a8708d6ff6d5efa6845091f93a0927d895
[ "Apache-2.0" ]
545
2015-01-12T06:15:50.000Z
2022-03-30T21:11:58.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from sumy._compat import to_unicode from sumy.nlp.tokenizers import Tokenizer from sumy.parsers.html import HtmlParser from .utils import expand_resource_path def test_annotated_text(): path = expand_resou...
37.806452
123
0.739761
160
1,172
5.29375
0.4375
0.191263
0.100354
0.159386
0.31405
0.181818
0.101535
0
0
0
0
0.01791
0.142491
1,172
30
124
39.066667
0.824876
0.017918
0
0
0
0
0.187119
0.020888
0
0
0
0
0.473684
1
0.052632
false
0
0.263158
0
0.315789
0.052632
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
dc5ec978877b880b4709e11c98d09b3a4a6c675e
282
py
Python
Lists and Tuples/Lists/nest_matrix_lists.py
cyph3r-exe/python-practice-files
d95dd5eb14378c4f08fe4354d66356e3128de54e
[ "Apache-2.0" ]
null
null
null
Lists and Tuples/Lists/nest_matrix_lists.py
cyph3r-exe/python-practice-files
d95dd5eb14378c4f08fe4354d66356e3128de54e
[ "Apache-2.0" ]
null
null
null
Lists and Tuples/Lists/nest_matrix_lists.py
cyph3r-exe/python-practice-files
d95dd5eb14378c4f08fe4354d66356e3128de54e
[ "Apache-2.0" ]
null
null
null
""" Using nested loops to iterate over all the items in a matrix list """ #Defining a matrix list matrix = [ [1,2,3], [4,5,6], [7,8,9] ] #This loop will iterate over all the items inside the matrix list for row in matrix: for index in row: print(index)
15.666667
65
0.62766
49
282
3.612245
0.632653
0.169492
0.158192
0.19209
0.248588
0
0
0
0
0
0
0.043689
0.269504
282
17
66
16.588235
0.815534
0.539007
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dc62668db96bb167f9c9df3f3ef38ba52f6a178c
673
py
Python
napalm.py
bozensel/sending-ping-using-napalm
31233cadfeaf16f7be153aa87a8d3f011969e77a
[ "MIT" ]
null
null
null
napalm.py
bozensel/sending-ping-using-napalm
31233cadfeaf16f7be153aa87a8d3f011969e77a
[ "MIT" ]
null
null
null
napalm.py
bozensel/sending-ping-using-napalm
31233cadfeaf16f7be153aa87a8d3f011969e77a
[ "MIT" ]
null
null
null
from napalm import get_network_driver from ping3 import ping from ipaddress import ip_network, ip_address driver = get_network_driver('huawei_vrp') device = driver(hostname='IP', username='usernama', password='password') device.open() # Return general device information get_interfaces_ip = device.get_interfaces_ip(...
32.047619
72
0.637444
84
673
4.869048
0.464286
0.127139
0.146699
0
0
0
0
0
0
0
0
0.004049
0.265973
673
20
73
33.65
0.823887
0.069837
0
0
0
0
0.083601
0
0
0
0
0
0
1
0
false
0.071429
0.214286
0
0.214286
0.071429
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
dc6d5ba0ab513ac3c932a978f2a4f482c1d39192
4,156
py
Python
santa/santa.py
aleksandrabanasiak/spooky-cogs
ec0c36d20c0122fcf68bfb2115d8360a17c55f56
[ "MIT" ]
null
null
null
santa/santa.py
aleksandrabanasiak/spooky-cogs
ec0c36d20c0122fcf68bfb2115d8360a17c55f56
[ "MIT" ]
null
null
null
santa/santa.py
aleksandrabanasiak/spooky-cogs
ec0c36d20c0122fcf68bfb2115d8360a17c55f56
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import json import os.path import random Cog = getattr(commands, "Cog", object) class Santa(Cog): """My custom cog that does stuff!""" def __init__(self, bot): self.bot = bot @commands.group(pass_context=True) async def santa(self, ctx): ...
37.781818
189
0.55077
521
4,156
4.378119
0.285988
0.039895
0.057869
0.065761
0.424375
0.366068
0.363437
0.294169
0.269619
0.269619
0
0.002137
0.32435
4,156
109
190
38.12844
0.808048
0.007218
0
0.413043
0
0.021739
0.293686
0.030837
0
0
0
0
0
1
0.021739
false
0.054348
0.054348
0
0.086957
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
dc6ed83833352c02ea87088325cca92ca49c900b
2,841
py
Python
validator/tests/unit/test_round_trip_estimator.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
validator/tests/unit/test_round_trip_estimator.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
validator/tests/unit/test_round_trip_estimator.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
37.381579
80
0.656107
372
2,841
4.908602
0.346774
0.147864
0.177437
0.093647
0.384995
0.340088
0.245345
0.220153
0.220153
0.220153
0
0.030261
0.232313
2,841
75
81
37.88
0.806969
0.380148
0
0.619048
0
0
0
0
0
0
0
0
0.47619
1
0.119048
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
dc70f250cadedd333d0ebae2f9cb574d689ecdae
1,886
py
Python
astronat/constants/tests/test_values.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
1
2020-11-20T18:25:26.000Z
2020-11-20T18:25:26.000Z
astronat/constants/tests/test_values.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
3
2020-09-09T06:10:20.000Z
2020-09-16T05:56:10.000Z
astronat/constants/tests/test_values.py
nstarman/astronat
9e1f41c6de1ca6adbd2bf99414a4c9b61838abf6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # see LICENSE.rst """Test constant's :mod:`~utilipy.constants.values`.""" __author__ = "Nathaniel Starkman" __all__ = [ "test_ConstantsValues", "test_values", ] ############################################################################## # IMPORTS from .. import data, values fro...
20.5
78
0.457052
169
1,886
4.727811
0.301775
0.052566
0.0801
0.050063
0.520651
0.520651
0.520651
0.520651
0.520651
0.520651
0
0.000641
0.172853
1,886
91
79
20.725275
0.511538
0.265642
0
0.62069
0
0
0.095192
0
0
0
0
0.010989
0.275862
1
0.068966
false
0
0.068966
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dc762a1ed26d29d2c11927141307031a773d2409
491
py
Python
a.py
cyberaide/bookmanager
9da890bb4f063f7fa7887286e94d40964f907110
[ "Apache-2.0" ]
6
2019-04-17T00:05:44.000Z
2021-08-13T15:41:21.000Z
a.py
cyberaide/bookmanager
9da890bb4f063f7fa7887286e94d40964f907110
[ "Apache-2.0" ]
4
2019-04-17T01:57:42.000Z
2021-02-10T16:20:00.000Z
a.py
cyberaide/bookmanager
9da890bb4f063f7fa7887286e94d40964f907110
[ "Apache-2.0" ]
2
2019-09-18T17:49:57.000Z
2019-12-17T15:13:50.000Z
import ebooklib from ebooklib import epub from glob import glob from pprint import pprint directory = "/Users/grey/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books" books = glob(f"{directory}/*.epub") pprint (books) for filename in books: print ("SSS") print (filename) try: ...
22.318182
97
0.672098
61
491
5.360656
0.540984
0.079511
0.103976
0.122324
0.171254
0
0
0
0
0
0
0
0.211813
491
21
98
23.380952
0.844961
0.05499
0
0.125
0
0.0625
0.24026
0.179654
0
0
0
0
0
1
0
false
0.0625
0.25
0
0.25
0.375
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
dc77bf74f01c00d6e959c461ef6005242f663fac
845
py
Python
setup.py
goto40/streamp3
c7f6905e3da36f6280d84dca2e869b50deda6826
[ "Apache-2.0" ]
null
null
null
setup.py
goto40/streamp3
c7f6905e3da36f6280d84dca2e869b50deda6826
[ "Apache-2.0" ]
null
null
null
setup.py
goto40/streamp3
c7f6905e3da36f6280d84dca2e869b50deda6826
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import setuptools from distutils.core import setup from distutils.extension import Extension setup(name='streamp3', version='0.1.5', description="streaming mp3 decoder", long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', u...
36.73913
72
0.604734
90
845
5.588889
0.733333
0.05169
0
0
0
0
0
0
0
0
0
0.018987
0.252071
845
22
73
38.409091
0.776899
0.023669
0
0
0
0
0.339806
0
0
0
0
0
0
1
0
true
0
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
dc7ae8f6f62a3571669ebd98056c2f4d2c06c043
5,674
py
Python
Deployment/app.py
shh0277/Human_Digital_Twin
a109762f969493582fcbf10062eebcc7868650ca
[ "MIT" ]
null
null
null
Deployment/app.py
shh0277/Human_Digital_Twin
a109762f969493582fcbf10062eebcc7868650ca
[ "MIT" ]
null
null
null
Deployment/app.py
shh0277/Human_Digital_Twin
a109762f969493582fcbf10062eebcc7868650ca
[ "MIT" ]
null
null
null
import torch, pytz import torch.nn as nn from torch.utils.data import Dataset, DataLoader import numpy as np import pandas as pd import os, csv # For plotting import matplotlib.pyplot as plt from matplotlib.pyplot import figure import streamlit as st from PIL import Image import Reconstruction_DNN, Recon...
33.376471
148
0.602749
713
5,674
4.638149
0.239832
0.05443
0.036287
0.051709
0.672815
0.664046
0.664046
0.652555
0.612035
0.612035
0
0.023026
0.288157
5,674
169
149
33.573965
0.795742
0.006873
0
0.691729
0
0.015038
0.31044
0.099817
0
0
0
0
0
1
0
false
0.007519
0.082707
0
0.082707
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dc810ed4d77aa3df4209a736bd81cf7cdcbe0f27
8,926
py
Python
bameditor/common/bamconvert.py
fangshuangsang/BamEditor
5702c3bcfd1e93139096432c7bd537a50852cdca
[ "MIT" ]
null
null
null
bameditor/common/bamconvert.py
fangshuangsang/BamEditor
5702c3bcfd1e93139096432c7bd537a50852cdca
[ "MIT" ]
null
null
null
bameditor/common/bamconvert.py
fangshuangsang/BamEditor
5702c3bcfd1e93139096432c7bd537a50852cdca
[ "MIT" ]
null
null
null
from subprocess import call import pysam from bameditor.common.methods import getReadStrand import random import os def _call(cmd): print cmd flag = call(cmd, shell=True) if flag == 0: return True else: raise Exception("Cmd Error: %s" % cmd) def bamToFastq(bamFile, ou...
38.640693
188
0.567107
1,045
8,926
4.733014
0.194258
0.02588
0.013344
0.027295
0.366963
0.316417
0.282046
0.231096
0.231096
0.223008
0
0.008753
0.257674
8,926
230
189
38.808696
0.7377
0.065763
0
0.316667
0
0.022222
0.206986
0.072835
0
0
0
0
0
0
null
null
0
0.027778
null
null
0.094444
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
dc8298bdffc2a0a5e616c9daf2998f0711ee3d00
667
py
Python
petrel/dataset/__init__.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
petrel/dataset/__init__.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
petrel/dataset/__init__.py
DanielMorton/Petrel
07aee79087bf071f0906f806258c0a32d9cd44c6
[ "Apache-2.0" ]
null
null
null
import albumentations as A from albumentations.pytorch.transforms import ToTensorV2 from .petrel import PetrelDataset from .train_data import TrainDataset from .val_data import ValDataset BBOX = A.BboxParams( format='pascal_voc', min_area=0, min_visibility=0, label_fields=['labels']) def get_default...
27.791667
74
0.634183
84
667
4.892857
0.583333
0.051095
0.021898
0
0
0
0
0
0
0
0
0.024845
0.275862
667
23
75
29
0.826087
0.125937
0
0
0
0
0.028319
0
0
0
0
0
0
1
0.0625
false
0
0.3125
0
0.4375
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
dc8691a41bacf2982124ea3e7ffa8319290dcf96
844
py
Python
Comprehensions/Exercises/05. diagonals.py
geodimitrov/PythonAdvanced_SoftUni
6d8b9c320732c0e8de559aa374e0a2417098ed5b
[ "MIT" ]
null
null
null
Comprehensions/Exercises/05. diagonals.py
geodimitrov/PythonAdvanced_SoftUni
6d8b9c320732c0e8de559aa374e0a2417098ed5b
[ "MIT" ]
null
null
null
Comprehensions/Exercises/05. diagonals.py
geodimitrov/PythonAdvanced_SoftUni
6d8b9c320732c0e8de559aa374e0a2417098ed5b
[ "MIT" ]
1
2021-08-19T14:36:41.000Z
2021-08-19T14:36:41.000Z
def read_matrix_lines(): return [int(x) for x in input().split(", ")] def create_matrix(size): result = [read_matrix_lines() for _ in range(size)] return result def get_first_diagonal(matrix, size): return [matrix[i][i]for i in range(size)] def get_second_diagonal(matrix, size): result = [] f...
31.259259
95
0.714455
124
844
4.620968
0.25
0.104712
0.125654
0.089005
0.272251
0
0
0
0
0
0
0.001393
0.149289
844
27
95
31.259259
0.796657
0
0
0.142857
0
0
0.202367
0.144379
0
0
0
0
0
1
0.238095
false
0
0
0.095238
0.47619
0.095238
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
dc8754ce01d968704afc8688683b9942992d749a
291
py
Python
download/gnosis/util/convert/fetch_txt2html.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/gnosis/util/convert/fetch_txt2html.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
download/gnosis/util/convert/fetch_txt2html.py
DavidMertz/gnosis-web
df5ab0d470a02ed6c51c971f2b40f1dcdc7d7350
[ "CC0-1.0" ]
null
null
null
import sys from urllib import urlopen, urlencode if len(sys.argv) == 2: cgi = 'http://gnosis.cx/cgi/txt2html.cgi' opts = urlencode({'proxy': 'NONE', 'source': sys.argv[1]}) print urlopen(cgi, opts).read() else: print "Please specify URL for Txt2Html conversion"
26.454545
52
0.646048
40
291
4.7
0.7
0.074468
0
0
0
0
0
0
0
0
0
0.017316
0.206186
291
10
53
29.1
0.796537
0
0
0
0
0
0.310345
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.222222
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
dc8cde12ffb582c7fcce23bed5f18ef7ce7afcb4
1,645
py
Python
utils/compression.py
posm/osm-export-tool2
5a1f4096f1afbe7420363376e6e1e8d42e47e1d1
[ "BSD-3-Clause" ]
2
2018-08-31T18:30:28.000Z
2018-11-27T01:50:06.000Z
utils/compression.py
posm/osm-export-tool2
5a1f4096f1afbe7420363376e6e1e8d42e47e1d1
[ "BSD-3-Clause" ]
null
null
null
utils/compression.py
posm/osm-export-tool2
5a1f4096f1afbe7420363376e6e1e8d42e47e1d1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement import logging import os import subprocess from string import Template logger = logging.getLogger(__name__) class BZ2Compressor(object): """ Compress files. """ def __init__(self, input=None, output=None, debug=False): """ ...
28.362069
128
0.586018
184
1,645
5.146739
0.451087
0.038015
0.029567
0.033791
0
0
0
0
0
0
0
0.008673
0.299088
1,645
57
129
28.859649
0.812663
0.03465
0
0.0625
0
0
0.133961
0
0
0
0
0
0
0
null
null
0
0.15625
null
null
0.0625
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
dc98df4f729588f9e11c39dd0d78c4f02bc688bf
10,947
py
Python
WebApp/ImgSketch/core/ProcessImage.py
devanshsolani/sketchyourlife
ff9cec4eeb9fe3ebcb07432f9d12e6bcc10c4322
[ "BSD-3-Clause" ]
1
2021-06-03T19:18:41.000Z
2021-06-03T19:18:41.000Z
WebApp/ImgSketch/core/ProcessImage.py
devanshsolani/sketchyourlife
ff9cec4eeb9fe3ebcb07432f9d12e6bcc10c4322
[ "BSD-3-Clause" ]
1
2021-05-12T10:19:12.000Z
2021-05-12T10:19:12.000Z
WebApp/ImgSketch/core/ProcessImage.py
devanshsolani/sketchyourlife
ff9cec4eeb9fe3ebcb07432f9d12e6bcc10c4322
[ "BSD-3-Clause" ]
4
2021-05-12T10:19:44.000Z
2021-07-03T07:57:31.000Z
''' BSD 3-Clause License Copyright (c) 2020, Tauhid Khan, Devyesh Thomas All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
35.65798
544
0.584818
1,343
10,947
4.695458
0.265823
0.039645
0.019981
0.013955
0.146844
0.09039
0.072629
0.061212
0.021567
0.021567
0
0.020278
0.342286
10,947
306
545
35.77451
0.855556
0.510459
0
0.063291
0
0
0.024107
0
0
0
0
0.022876
0
1
0.177215
false
0.012658
0.063291
0
0.468354
0.012658
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
dc9bc5522496c4db79e5bbbe82059c1576948ac0
5,106
py
Python
app/defaults.py
SumitKKumawat/MyWebApp-Azure
044d0b0a7d5cd2256fb4c0405fc1ae8aa421d6b3
[ "MIT" ]
null
null
null
app/defaults.py
SumitKKumawat/MyWebApp-Azure
044d0b0a7d5cd2256fb4c0405fc1ae8aa421d6b3
[ "MIT" ]
null
null
null
app/defaults.py
SumitKKumawat/MyWebApp-Azure
044d0b0a7d5cd2256fb4c0405fc1ae8aa421d6b3
[ "MIT" ]
null
null
null
""" Summary ------- The summary is a brief intro. You can put raw HTML into this field. """ summary = '<p> A seasoned Software professional with over 7 years of rich experience in Artificial Intelligence, Machine Learning and Robotics Automation. Responsible for Continous Improvement and Business Digital Trasnformation...
44.017241
581
0.659029
612
5,106
5.486928
0.455882
0.028291
0.017868
0.021441
0.39726
0.381179
0.369863
0.369863
0.369863
0.334127
0
0.01597
0.22738
5,106
115
582
44.4
0.835234
0.016255
0
0.155844
0
0.12987
0.734448
0.006035
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dc9c9d6537a4a11e729d4bc4eeccae80b31cbc2f
2,698
py
Python
CursoEmVideo-Python3-Mundo2/desafio071.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
CursoEmVideo-Python3-Mundo2/desafio071.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
CursoEmVideo-Python3-Mundo2/desafio071.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
# Crie um programa que simule o funcionamento de um caixa eletrônico. No início, pergunte ao usuário qual será o # valor a ser sacado (número inteiro) e o programa vai informar quantas cédulas de cada valor serão entregues. # OBS: considere que o caixa possui cédulas de R$50, R$20, R$10 e R$1. print('*' * 30) print('{...
30.659091
112
0.48851
317
2,698
4.094637
0.277603
0.169492
0.09245
0.069337
0.479199
0.479199
0.440678
0.440678
0.440678
0.440678
0
0.041872
0.398073
2,698
87
113
31.011494
0.757389
0.133803
0
0.755102
0
0
0.112312
0
0
0
0
0
0
1
0
false
0
0
0
0
0.22449
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dca152f00be3f0f6e0fc35beecbfdc8f59ae520e
1,469
py
Python
BE/be_dropship/account/api/serializers.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
BE/be_dropship/account/api/serializers.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
BE/be_dropship/account/api/serializers.py
llduyll10/film_project
22d1a5bb2bfe1c368ab0c8b2653c9bd4fa6b797e
[ "MIT" ]
null
null
null
from rest_framework import serializers from account.models import Account class RegistrationSerializer(serializers.ModelSerializer): password2 = serializers.CharField(style={'input_type': 'password'}, write_only=True) class Meta: model = Account fields = ['email', 'username', 'password', 'pas...
34.162791
88
0.665078
140
1,469
6.85
0.392857
0.067779
0.088634
0.112617
0.244004
0.089677
0
0
0
0
0
0.007048
0.227366
1,469
43
89
34.162791
0.837885
0
0
0.117647
0
0
0.127211
0
0
0
0
0
0
1
0.029412
false
0.352941
0.058824
0
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
dca7eafedd2349529fe397998473e49414da8663
400
py
Python
account_verification_flask/utilities/view_helpers.py
TwilioDevEd/account-verification-flask
f2da4ccfe0ba16f71828058ca384de0c196143c3
[ "MIT" ]
8
2015-11-18T20:50:04.000Z
2019-05-14T17:18:57.000Z
account_verification_flask/utilities/view_helpers.py
TwilioDevEd/account-verification-flask
f2da4ccfe0ba16f71828058ca384de0c196143c3
[ "MIT" ]
96
2015-11-23T21:31:26.000Z
2021-08-02T05:52:44.000Z
account_verification_flask/utilities/view_helpers.py
TwilioDevEd/account-verification-flask
f2da4ccfe0ba16f71828058ca384de0c196143c3
[ "MIT" ]
9
2015-11-18T20:50:07.000Z
2020-10-24T15:28:49.000Z
from flask import url_for, redirect, render_template def view(view_name, form=None): if form is None: return render_template("{0}.html".format(view_name)) return render_template("{0}.html".format(view_name), form=form) def redirect_to(view_name, **options): if len(options) == 0: return ...
28.571429
67
0.7025
60
400
4.483333
0.383333
0.178439
0.089219
0.156134
0.498141
0.498141
0.289963
0.289963
0
0
0
0.008982
0.165
400
13
68
30.769231
0.793413
0
0
0
0
0
0.0401
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dca914d98b86097dc27778e74bbbd63f44391333
354
py
Python
cotr/cms/migrations/0007_renamed_fields.py
kingsdigitallab/cotr
4afbfdd36d4dd0ee9f56152d3c963453c81e440c
[ "MIT" ]
null
null
null
cotr/cms/migrations/0007_renamed_fields.py
kingsdigitallab/cotr
4afbfdd36d4dd0ee9f56152d3c963453c81e440c
[ "MIT" ]
27
2020-12-28T17:34:59.000Z
2022-03-12T00:25:43.000Z
cms/migrations/0007_renamed_fields.py
kingsdigitallab/ctrs-django
7170b4f15bd9d097d00f215d747a02a9b656768c
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-08-10 16:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cms', '0006_peoplepage'), ] operations = [ migrations.RenameField( model_name='peoplepage', old_name='name', new_n...
18.631579
45
0.576271
37
354
5.378378
0.783784
0
0
0
0
0
0
0
0
0
0
0.07377
0.310734
354
18
46
19.666667
0.741803
0.121469
0
0
1
0
0.132686
0
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
dcab3c5baf99bdb9bb2757874ca83c676e1a87e7
3,025
py
Python
code/pyseg/scripts/sub/star_bin.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyseg/scripts/sub/star_bin.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyseg/scripts/sub/star_bin.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
""" Binning a particles STAR file Input: - The particles STAR file - Binning parameters Output: - A new STAR file with binned particle subvolumes """ __author__ = 'Antonio Martinez-Sanchez' ###### Global variables ################# Package import import os import sys import time import...
33.611111
235
0.614545
411
3,025
4.257908
0.350365
0.045714
0.029714
0.025714
0.304571
0.220571
0.220571
0.194286
0.112
0.112
0
0.030177
0.123636
3,025
90
236
33.611111
0.629951
0.256529
0
0.195652
0
0
0.390392
0.07841
0
0
0
0
0
1
0
false
0.021739
0.108696
0
0.108696
0.478261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
dcb01df59a4758680fcc2308dbe637fca82a7897
3,430
py
Python
gimmemotifs/nmer_predict.py
kipkurui/gimmemotifs
51bd0c6700877f79179f08e5bab7de70fc2eab94
[ "MIT" ]
1
2019-07-14T08:28:25.000Z
2019-07-14T08:28:25.000Z
gimmemotifs/nmer_predict.py
kipkurui/gimmemotifs
51bd0c6700877f79179f08e5bab7de70fc2eab94
[ "MIT" ]
null
null
null
gimmemotifs/nmer_predict.py
kipkurui/gimmemotifs
51bd0c6700877f79179f08e5bab7de70fc2eab94
[ "MIT" ]
null
null
null
# Copyright (c) 2009-2010 Simon van Heeringen <s.vanheeringen@ncmls.ru.nl> # # This module is free software. You can redistribute it and/or modify it under # the terms of the MIT License, see the file COPYING included with this # distribution. """ Module for simple motif prediction. Currently not in use! """ from g...
27.886179
99
0.661516
519
3,430
4.277457
0.315992
0.040541
0.010811
0.023423
0.123423
0.068468
0
0
0
0
0
0.021086
0.184257
3,430
122
100
28.114754
0.772337
0.068513
0
0.111111
0
0
0.040013
0
0
0
0
0
0
0
null
null
0
0.177778
null
null
0.011111
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
dcb2784cc3815e5f33cd10ea5abdc861e9cb3ab8
3,912
py
Python
music/views.py
realsifocopypaste333/sifo-player-binary
fc4f9f9534a2ea64b09b3b4ba51832d3823c3b64
[ "MIT" ]
3
2020-02-08T16:55:03.000Z
2021-03-28T06:37:10.000Z
music/views.py
AshkanGanj/Music-django-app
64d9c6557bc9bba212c828f8ca06fbdede38780f
[ "MIT" ]
1
2021-11-27T03:35:11.000Z
2021-11-27T03:35:11.000Z
music/views.py
AshkanGanj/Music-django-app
64d9c6557bc9bba212c828f8ca06fbdede38780f
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Song, Album, Artist, Profile from django.contrib.auth.models import User from django.contrib import auth from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.core.files.storage import FileSyst...
32.6
100
0.651585
450
3,912
5.571111
0.191111
0.071799
0.113682
0.045872
0.30355
0.25728
0.115676
0.068209
0.049462
0.049462
0
0.000998
0.231339
3,912
119
101
32.87395
0.832724
0
0
0.302083
0
0
0.122955
0
0
0
0
0
0
1
0.114583
false
0.0625
0.104167
0
0.447917
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
dcb8730b0830ffe3c9f42e085620c4899d5a2b02
6,920
py
Python
tests/flytekit/unit/common_tests/types/test_containers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/common_tests/types/test_containers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
2
2021-06-26T04:32:43.000Z
2021-07-14T04:47:52.000Z
tests/flytekit/unit/common_tests/types/test_containers.py
slai/flytekit
9d73d096b748d263a638e6865d15db4880845305
[ "Apache-2.0" ]
null
null
null
import pytest from six.moves import range as _range from flytekit.common.exceptions import user as _user_exceptions from flytekit.common.types import containers, primitives from flytekit.models import literals from flytekit.models import types as literal_types def test_list(): list_type = containers.List(primiti...
39.770115
119
0.682225
945
6,920
4.773545
0.102646
0.076258
0.055863
0.039016
0.75859
0.721348
0.67014
0.643538
0.547329
0.502106
0
0.019539
0.171676
6,920
173
120
40
0.767446
0.017919
0
0.338235
0
0.022059
0.119682
0.022523
0
0
0
0
0.301471
1
0.044118
false
0
0.044118
0
0.088235
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
dcb8b297c751a6270f46f171d36bb6bc74a9084b
9,745
py
Python
lt2bib.py
godbyk/lt2bib
8a3e628133b4e34356f513d3f39b50f02992254a
[ "Unlicense" ]
2
2015-08-19T18:17:10.000Z
2019-04-25T12:13:42.000Z
lt2bib.py
godbyk/lt2bib
8a3e628133b4e34356f513d3f39b50f02992254a
[ "Unlicense" ]
null
null
null
lt2bib.py
godbyk/lt2bib
8a3e628133b4e34356f513d3f39b50f02992254a
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # vim:shiftwidth=4:tabstop=4:expandtab:filetype=python # Author: # Kevin Godby <godbyk@gmail.com> # # License: # Public domain. """ lt2bib.py is a script that parses the files exported by LibraryThing and generates a BiBTeX file with the same information. Usage: lt2bib.py <tab-delimited-file> ...
29.441088
78
0.573012
1,270
9,745
4.352756
0.329921
0.00398
0.003799
0.003618
0.091896
0.069826
0.051013
0.033285
0.033285
0.033285
0
0.030727
0.288661
9,745
330
79
29.530303
0.766734
0.333504
0
0.1
0
0
0.198717
0.020892
0.004762
0
0
0
0
0
null
null
0
0.004762
null
null
0.02381
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
f4926ee0cc74fab554b271c454540929a9aba1e9
1,314
py
Python
python/setup.py
rapidsai/kvikio
b863a0762b5f61f051061d92c0c4223c86b55087
[ "Apache-2.0" ]
18
2022-01-28T17:04:47.000Z
2022-03-31T15:07:00.000Z
python/setup.py
rapidsai/kvikio
b863a0762b5f61f051061d92c0c4223c86b55087
[ "Apache-2.0" ]
20
2022-01-31T12:12:12.000Z
2022-03-31T23:35:47.000Z
python/setup.py
rapidsai/kvikio
b863a0762b5f61f051061d92c0c4223c86b55087
[ "Apache-2.0" ]
7
2022-01-28T17:07:34.000Z
2022-03-17T22:11:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # See file LICENSE for terms. from setuptools import find_packages from skbuild import setup import versioneer setup( name="kvikio", version=versioneer.get_version(), description="KvikIO - GPUDirect Storage", url="https://github.com/...
34.578947
79
0.659056
148
1,314
5.790541
0.722973
0.042007
0.087515
0.060677
0
0
0
0
0
0
0
0.013672
0.2207
1,314
37
80
35.513514
0.823242
0.265601
0
0
0
0
0.392484
0.022965
0
0
0
0
0
1
0
true
0
0.107143
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f4943bbc058e0cd6fe7ca900691875d828ab3be8
4,067
py
Python
do_starbound.py
Radau/DigitalOcean-Starbound-Backup-and-Restore
2e4b8f41d3625495e2858eba7bb48e30cb3b5ab5
[ "MIT" ]
5
2016-03-09T05:01:43.000Z
2021-10-19T03:07:26.000Z
do_starbound.py
Radau/DigitalOcean-Starbound-Backup-and-Restore
2e4b8f41d3625495e2858eba7bb48e30cb3b5ab5
[ "MIT" ]
null
null
null
do_starbound.py
Radau/DigitalOcean-Starbound-Backup-and-Restore
2e4b8f41d3625495e2858eba7bb48e30cb3b5ab5
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys import digitalocean from datetime import datetime #################### # Helper Functions # #################### def get_api_key(): return raw_input("DigitalOcean API Key: ") def help_menu(): print """ At this time, no additional parameters for the following are ...
26.933775
116
0.592574
478
4,067
4.912134
0.3159
0.030664
0.014055
0.01661
0
0
0
0
0
0
0
0.002095
0.295795
4,067
150
117
27.113333
0.817737
0.078436
0
0.076923
0
0
0.281326
0
0
0
0
0
0
0
null
null
0
0.043956
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
0
0
0
0
0
1
f4978b887b0d514284415639c1a256724712454c
11,221
py
Python
simple_playgrounds/playgrounds/collection/test/test_scene_elements.py
Asjidkalam/simple-playgrounds
72ec42987a33175103191fa9722e0e002f889954
[ "MIT" ]
null
null
null
simple_playgrounds/playgrounds/collection/test/test_scene_elements.py
Asjidkalam/simple-playgrounds
72ec42987a33175103191fa9722e0e002f889954
[ "MIT" ]
1
2021-02-19T20:55:05.000Z
2021-02-19T20:55:05.000Z
simple_playgrounds/playgrounds/collection/test/test_scene_elements.py
Asjidkalam/simple-playgrounds
72ec42987a33175103191fa9722e0e002f889954
[ "MIT" ]
1
2021-02-19T20:46:00.000Z
2021-02-19T20:46:00.000Z
from ...empty import SingleRoom from ...scene_elements import * from ....utils import PositionAreaSampler, Trajectory from ....playground import PlaygroundRegister import math @PlaygroundRegister.register('test_basic') class Basics(SingleRoom): def __init__(self, size = (200, 200), **playground_params): ...
34.420245
127
0.643169
1,412
11,221
4.808074
0.110482
0.060834
0.104286
0.16512
0.658713
0.562822
0.489468
0.440418
0.397997
0.349831
0
0.090341
0.23055
11,221
325
128
34.526154
0.695969
0.001604
0
0.316279
0
0
0.03339
0
0
0
0
0
0
1
0.051163
false
0
0.023256
0
0.125581
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4979a94a1c99d146e05afbdb0cd07ff04486dd0
322
py
Python
src/Python3/41078/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/41078/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
src/Python3/41078/exsample.py
umyuu/Sample
66e8cd725b682db4c9bf93fb80786eea8cbad19d
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -* from pathlib import Path import cv2 import classfy01 from classfy02 import input_data2 def main(): parent_path = Path(__file__).parent path = str( (parent_path / 'cross.png').resolve() ) print(path) img = classfy01.imread(path) if __name__ == '__main__': main(...
16.1
45
0.642857
40
322
4.8
0.625
0.15625
0
0
0
0
0
0
0
0
0
0.036437
0.232919
322
19
46
16.947368
0.740891
0.062112
0
0
0
0
0.056667
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f49c82f1a95ab1d9fb8f94076b9057a078b5b387
1,208
py
Python
wordCount.py
I3ck/wordCount
c6bd960c60ba3dddf3aa7fcdb48556b753ffc3cc
[ "MIT" ]
null
null
null
wordCount.py
I3ck/wordCount
c6bd960c60ba3dddf3aa7fcdb48556b753ffc3cc
[ "MIT" ]
null
null
null
wordCount.py
I3ck/wordCount
c6bd960c60ba3dddf3aa7fcdb48556b753ffc3cc
[ "MIT" ]
null
null
null
import sys import getopt import operator inputfile = "" outputfile = "" wordcounts = dict() if __name__ == "__main__": argv = sys.argv[1:] try: opts, args = getopt.getopt(argv,"hi:o:",["inputfile=","outputfile="]) except getopt.GetoptError: print 'wordCount.py -i <inputfile> -o <outputfile>' sys.exit(1) f...
21.571429
71
0.626656
162
1,208
4.623457
0.425926
0.044059
0.042724
0.045394
0.11749
0.11749
0.11749
0.11749
0.11749
0
0
0.009554
0.220199
1,208
55
72
21.963636
0.785563
0
0
0.045455
0
0
0.15493
0
0
0
0
0
0
0
null
null
0
0.068182
null
null
0.068182
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
f4a044fa1748ef558c43cf41e980d9a6e246d107
3,254
py
Python
analysis.py
yuliang419/K2tools
1963ae9a037fb9440780fcfce86e4afc3d2432f9
[ "MIT" ]
null
null
null
analysis.py
yuliang419/K2tools
1963ae9a037fb9440780fcfce86e4afc3d2432f9
[ "MIT" ]
null
null
null
analysis.py
yuliang419/K2tools
1963ae9a037fb9440780fcfce86e4afc3d2432f9
[ "MIT" ]
null
null
null
""" Written by Liang Yu, Jan 2017 Included in this project and licensed under MIT. Takes as input a file containing time and detrended flux, and estimates of the transit ephemeris (JD-2454900) and period in days. Produces 1-page summary plots. Notes ------- Create folder called "output...
47.15942
130
0.545482
407
3,254
4.233415
0.366093
0.083575
0.097504
0.026117
0.290192
0.279745
0.243761
0.243761
0.243761
0.156703
0
0.024801
0.34327
3,254
68
131
47.852941
0.781469
0.13153
0
0.181818
0
0
0.039849
0
0
0
0
0
0
0
null
null
0
0.121212
null
null
0.030303
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
f4a17bba560e9ece67729ae3e91fc721f6e6e958
457
py
Python
crowdbotics_test/animal/serializers/dog.py
marslan390/DjangoModelInheritance
6f229f46fc5b639d83abc015936d787858608c9f
[ "MIT" ]
null
null
null
crowdbotics_test/animal/serializers/dog.py
marslan390/DjangoModelInheritance
6f229f46fc5b639d83abc015936d787858608c9f
[ "MIT" ]
null
null
null
crowdbotics_test/animal/serializers/dog.py
marslan390/DjangoModelInheritance
6f229f46fc5b639d83abc015936d787858608c9f
[ "MIT" ]
null
null
null
from .animal import AnimalSerializer from crowdbotics_test.animal.models import Dog class DogSerializer(AnimalSerializer): def create(self, validated_data): return Dog.objects.create(**validated_data) def update(self, instance, validated_data): instance.name = validated_data.get('name', inst...
30.466667
77
0.728665
51
457
6.411765
0.45098
0.198777
0.097859
0
0
0
0
0
0
0
0
0
0.179431
457
14
78
32.642857
0.872
0
0
0
0
0
0.026258
0
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.7
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
f4b57945f4a21d074d70b56dff39d029dbfd7d48
3,496
py
Python
termplot/data_source/__init__.py
soraxas/terminal-plot
a03ea5db61216ab046d771abcd9e95099ca9f49d
[ "MIT" ]
null
null
null
termplot/data_source/__init__.py
soraxas/terminal-plot
a03ea5db61216ab046d771abcd9e95099ca9f49d
[ "MIT" ]
null
null
null
termplot/data_source/__init__.py
soraxas/terminal-plot
a03ea5db61216ab046d771abcd9e95099ca9f49d
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from argparse import ArgumentParser from pathlib import Path from typing import List, Dict import numpy as np class DataSource(ABC): def __init__(self, input_file: Path, args: ArgumentParser): self.input = Path(input_file) self.args = args if not self.i...
33.615385
87
0.615847
413
3,496
5.01937
0.276029
0.122045
0.074288
0.024602
0.140376
0.119151
0.085384
0.04438
0.04438
0
0
0.001234
0.304348
3,496
103
88
33.941748
0.851151
0.168478
0
0.246575
0
0
0.021816
0
0
0
0
0
0
1
0.136986
false
0.054795
0.068493
0
0.315068
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
f4b8016c9abbae79e5ac3e5b232a89ce9d5f9ac9
286
py
Python
inventories/serializers.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
inventories/serializers.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
inventories/serializers.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Inventory class InventorySerializer(serializers.ModelSerializer): class Meta: model = Inventory fields = ( 'id', 'for_sale', 'price', 'digital_book' )
23.833333
55
0.58042
24
286
6.791667
0.791667
0
0
0
0
0
0
0
0
0
0
0
0.346154
286
12
56
23.833333
0.871658
0
0
0
0
0
0.094077
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.363636
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4be84a061027ee50cbc1f57759c614a787fccbf
902
py
Python
setup.py
jeffa/Spreadsheet-HTML-python
9bf28a0c9fcbdad28238ab0adbb3cdd327d572a9
[ "MIT" ]
null
null
null
setup.py
jeffa/Spreadsheet-HTML-python
9bf28a0c9fcbdad28238ab0adbb3cdd327d572a9
[ "MIT" ]
null
null
null
setup.py
jeffa/Spreadsheet-HTML-python
9bf28a0c9fcbdad28238ab0adbb3cdd327d572a9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import Spreadsheet.HTML setup( name='Spreadsheet-HTML', version=Spreadsheet.HTML.__version__, description='Just another HTML table generator (for Python)', author='Jeff Anderson', author_email='jeffa@cpan.org', url='https://github.com/jeffa/Spreadshee...
36.08
79
0.661863
94
902
6.255319
0.712766
0.102041
0.07483
0
0
0
0
0
0
0
0
0.005563
0.202882
902
24
80
37.583333
0.812239
0
0
0
0
0
0.526608
0
0
0
0
0
0
1
0
true
0
0.086957
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f4bf7bde09f89780fc084111d3a575e70c1cf84f
2,838
py
Python
ihttpy/exceptions/logger.py
irusland/httpserver
f0c78ff908a1d586209856427cba3a5eac2c221a
[ "MIT" ]
1
2021-06-27T08:46:44.000Z
2021-06-27T08:46:44.000Z
ihttpy/exceptions/logger.py
irusland/httpserver
f0c78ff908a1d586209856427cba3a5eac2c221a
[ "MIT" ]
10
2020-11-20T21:12:51.000Z
2021-02-08T20:44:03.000Z
ihttpy/exceptions/logger.py
irusland/httpserver
f0c78ff908a1d586209856427cba3a5eac2c221a
[ "MIT" ]
null
null
null
import logging import sys from enum import Enum class LogLevel(Enum): CONSOLE = 0 LOGGING = 1 def __str__(self): return self.name.lower() @staticmethod def from_string(s: str): s = s.upper() if s in LogLevel._member_map_: return LogLevel[s] raise Value...
29.873684
78
0.583862
321
2,838
5.034268
0.249221
0.061262
0.084158
0.056931
0.3125
0.3125
0.274752
0.274752
0.245668
0.245668
0
0.002537
0.305497
2,838
94
79
30.191489
0.817352
0.003171
0
0.202703
0
0
0.05589
0
0
0
0
0.010638
0
1
0.121622
false
0
0.040541
0.013514
0.337838
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f4c125dedcfea1535738a0f3875f4e4be5bd9b88
745
py
Python
util/oi.py
mstojcevich/pyFlash
69b471fa3b9a509c915031c6dafe94afeda54a4b
[ "MIT" ]
null
null
null
util/oi.py
mstojcevich/pyFlash
69b471fa3b9a509c915031c6dafe94afeda54a4b
[ "MIT" ]
null
null
null
util/oi.py
mstojcevich/pyFlash
69b471fa3b9a509c915031c6dafe94afeda54a4b
[ "MIT" ]
null
null
null
import wpilib from wpilib.buttons import JoystickButton import util.logitech_controller as ctrlmap import commands.drivercommands as dcmds class OI: """ Operator interface of the robot. Manages commands to run based on driver input. """ def __init__(self, robot): self.robot = robot ...
29.8
85
0.73557
93
745
5.688172
0.430108
0.132325
0.102079
0.064272
0.359168
0.192817
0.192817
0
0
0
0
0.008237
0.185235
745
24
86
31.041667
0.863262
0.10604
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f4c24ea0e9d25b7d5bab2db217612b0820a51a1a
1,537
py
Python
my_maya_gui_dev_guilde/_win_template.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
my_maya_gui_dev_guilde/_win_template.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
my_maya_gui_dev_guilde/_win_template.py
kingmax/py
4cbc20d21c249e22e8f6b68d3c761a66a981e38f
[ "MIT" ]
null
null
null
# coding:utf-8 # description ... # jason.li@neobards.cn | 2019.08.01 import os import sys import lib reload(lib) from Qt import QtGui, QtWidgets, QtCore # in maya2016 PySide, Chinese characters display in garbage characters try: QtCore.QTextCodec.setCodecForTr(QtCore.QTextCodec.codecForName("UTF-8")) except: ...
24.396825
76
0.459987
129
1,537
5.286822
0.51938
0.07478
0.02346
0
0
0
0
0
0
0
0
0.019802
0.211451
1,537
62
77
24.790323
0.542904
0.3162
0
0.181818
0
0
0.046759
0
0
0
0
0
0
1
0.121212
false
0.060606
0.151515
0
0.30303
0.030303
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
f4c4022bba45e6327cc6a6e1b5ccb9c5623c0c49
1,498
py
Python
main.py
yezz123/Apollo
f27a655a6a5ee9186867b380840411feca21290f
[ "MIT" ]
18
2021-07-28T22:01:48.000Z
2022-02-07T10:57:21.000Z
main.py
yezz123/Apollo
f27a655a6a5ee9186867b380840411feca21290f
[ "MIT" ]
null
null
null
main.py
yezz123/Apollo
f27a655a6a5ee9186867b380840411feca21290f
[ "MIT" ]
5
2021-07-29T01:47:28.000Z
2022-01-05T02:04:54.000Z
#!/usr/bin/python3 from fastapi import FastAPI, Request from starlette.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates # import locale files from models import models from data.database import engine # import router files from core.cart import ...
29.96
73
0.802403
207
1,498
5.676329
0.386473
0.076596
0.122553
0.11234
0.097021
0
0
0
0
0
0
0.004484
0.106809
1,498
49
74
30.571429
0.873692
0.192256
0
0
0
0
0.0925
0
0
0
0
0
0
1
0
false
0
0.310345
0
0.344828
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
f4c44c4b58850aa31765dd47a0e8f1817eeb9a6a
6,320
py
Python
code/tapiaemail.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
27
2019-07-18T04:44:29.000Z
2022-02-15T21:15:09.000Z
code/tapiaemail.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
5
2019-08-08T21:15:39.000Z
2022-02-22T01:38:55.000Z
code/tapiaemail.py
outreachy/creative-works-and-scripts
8cac43a649aefaa793b91ac34ef73e20194ca22a
[ "CC-BY-4.0" ]
13
2020-01-13T11:38:45.000Z
2022-01-25T17:48:29.000Z
#!/usr/bin/env python3 # # Copyright 2019 Sage Sharp <sharp@otter.technology> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
52.666667
473
0.749367
944
6,320
5
0.311441
0.038136
0.02161
0.025424
0.60678
0.572881
0.541525
0.52839
0.52839
0.52839
0
0.009971
0.174842
6,320
119
474
53.109244
0.89511
0.118354
0
0.333333
0
0.151515
0.754815
0.012961
0
0
0
0
0
1
0.030303
false
0.030303
0.045455
0
0.075758
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4c500aa9065efcbd0ee01ac87b1d89747b13a44
1,303
py
Python
museum_site/migrations/0029_zeta_config.py
DrDos0016/z2
b63e77129fefcb4f990ee1cb9952f4f708ee3a2b
[ "MIT" ]
3
2017-05-01T19:53:57.000Z
2018-08-27T20:14:43.000Z
museum_site/migrations/0029_zeta_config.py
asiekierka/z2
d926408423dc98d71d5e7fc2fda3202c03c309de
[ "MIT" ]
26
2020-02-11T22:10:43.000Z
2022-02-03T20:54:08.000Z
museum_site/migrations/0029_zeta_config.py
asiekierka/z2
d926408423dc98d71d5e7fc2fda3202c03c309de
[ "MIT" ]
1
2018-08-27T20:14:46.000Z
2018-08-27T20:14:46.000Z
# Generated by Django 3.0.3 on 2020-05-10 02:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('museum_site', '0028_auto_20191227_0408'), ] operations = [ migrations.CreateModel( name='Zeta_Config', fields=[ ...
43.433333
124
0.603991
140
1,303
5.464286
0.564286
0.098039
0.078431
0.094118
0.145098
0.104575
0.104575
0
0
0
0
0.070408
0.247889
1,303
29
125
44.931034
0.710204
0.034536
0
0
1
0
0.143312
0.046178
0
0
0
0
0
1
0
false
0
0.043478
0
0.173913
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
f4c508eb6a4ad66ce7f934cd12d5b9072ce0f5a2
1,120
py
Python
apps/mc/migrations/0002_timeseriesfeature.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
4
2017-10-17T10:52:27.000Z
2020-08-30T10:13:46.000Z
apps/mc/migrations/0002_timeseriesfeature.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
138
2017-10-13T09:09:02.000Z
2020-06-05T18:55:33.000Z
apps/mc/migrations/0002_timeseriesfeature.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
2
2018-01-21T19:44:51.000Z
2018-02-15T11:27:39.000Z
# Generated by Django 2.1.5 on 2019-03-20 14:53 import django.contrib.gis.db.models.fields import django.contrib.postgres.fields.hstore from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('mc', '0001_create_cache'), ] operations ...
36.129032
136
0.623214
126
1,120
5.452381
0.571429
0.075691
0.055313
0.052402
0.183406
0.087336
0
0
0
0
0
0.035672
0.249107
1,120
30
137
37.333333
0.781213
0.040179
0
0
1
0
0.169618
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.304348
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
f4d0a27d4219f0716a4a972e492047aed0dcd38a
2,365
py
Python
geolocations_service/service/brumadinho/migrations/0002_auto_20190129_2219.py
JBezerra/brumadinho_location
360969bce9a153fbd1deeec55763bca65f37b6cc
[ "MIT" ]
666
2019-01-28T00:32:43.000Z
2019-01-30T22:16:41.000Z
geolocations_service/service/brumadinho/migrations/0002_auto_20190129_2219.py
CoronaTrack/brumadinho_location
b9a94fd9295ba5759b93ba7def584c1f39b7dde0
[ "MIT" ]
68
2019-01-28T13:17:26.000Z
2019-01-30T22:04:30.000Z
geolocations_service/service/brumadinho/migrations/0002_auto_20190129_2219.py
sosbrumadinhodevs/brumadinho_location
b9a94fd9295ba5759b93ba7def584c1f39b7dde0
[ "MIT" ]
142
2019-01-27T21:19:45.000Z
2019-01-30T22:09:58.000Z
# Generated by Django 2.1.3 on 2019-01-29 22:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('brumadinho', '0001_initial'), ] operations = [ migrations.CreateModel( name='FoundPeople', ...
43.796296
205
0.616913
246
2,365
5.813008
0.406504
0.044755
0.067133
0.078322
0.354545
0.267832
0.083916
0.083916
0.083916
0.083916
0
0.015775
0.249471
2,365
53
206
44.622642
0.789859
0.019027
0
0.382979
1
0
0.232097
0.018982
0
0
0
0
0
1
0
false
0
0.042553
0
0.106383
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
f4db467ee23ee249a0ec90280f1338df77d5657e
952
py
Python
project/views.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
project/views.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
project/views.py
ponyatov/w
3211fd253018f07da382871cf2d08b80574b72e6
[ "MIT" ]
null
null
null
import config import datetime as dt from django.http import Http404, HttpResponse # from django.template import Template, Context from django.template.loader import get_template ct_json = 'text/json; charset=utf8' # all_html = get_template('all.html') # index_html = get_template('index.html') def index(request): ...
28
70
0.701681
131
952
4.969466
0.396947
0.069124
0.069124
0.061444
0.089094
0.089094
0
0
0
0
0
0.004951
0.151261
952
33
71
28.848485
0.800743
0.234244
0
0
0
0
0.146814
0
0
0
0
0
0
1
0.166667
false
0
0.277778
0.055556
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f4db9b74dab35a7b174d3f2e8cb981fedb4b0864
191
py
Python
python/re-group-groups.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
340
2018-06-17T19:45:56.000Z
2022-03-22T02:26:15.000Z
python/re-group-groups.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
3
2021-02-02T17:17:29.000Z
2021-05-18T10:06:04.000Z
python/re-group-groups.py
gajubadge11/HackerRank-1
7b136ccaa1ed47ae737467ace6b494c720ccb942
[ "MIT" ]
229
2019-04-20T08:28:49.000Z
2022-03-31T04:23:52.000Z
#!/usr/bin/env python3 import re if __name__ == "__main__": string = input() match = re.search(r'([a-zA-Z0-9])\1+', string) print(match.group(1) if match else -1)
17.363636
50
0.565445
29
191
3.448276
0.758621
0
0
0
0
0
0
0
0
0
0
0.041958
0.251309
191
11
51
17.363636
0.657343
0.109948
0
0
0
0
0.141176
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f4e7c240c7d9128ea955debfe09c1ee92237c86f
2,181
py
Python
get_circle_tweets.py
gchandru1/twitterprofile
425b1a07bfad61c11dc3bf4154ecb8e6deacf787
[ "MIT" ]
null
null
null
get_circle_tweets.py
gchandru1/twitterprofile
425b1a07bfad61c11dc3bf4154ecb8e6deacf787
[ "MIT" ]
null
null
null
get_circle_tweets.py
gchandru1/twitterprofile
425b1a07bfad61c11dc3bf4154ecb8e6deacf787
[ "MIT" ]
null
null
null
from twython import Twython, TwythonAuthError, TwythonRateLimitError import json import config import time def file_to_list(filename): f = open(filename, 'r') return [line.strip('\n') for line in f.readlines()] def get_oauth_tokens(): return file_to_list('oauth_token.txt') OAUTH_TOKEN, OAUTH_TOKEN_SECRE...
31.608696
71
0.63182
274
2,181
4.766423
0.328467
0.038285
0.045942
0.030628
0.147014
0.085758
0
0
0
0
0
0.005711
0.277396
2,181
69
72
31.608696
0.82297
0.011463
0
0.086207
0
0
0.111781
0.020408
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.103448
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
f4f3bbc80f0b003d775a8cfcef2f2c5ece856db8
5,024
py
Python
distance_travelled.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
distance_travelled.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
distance_travelled.py
maria-kuruvilla/temp_collective_new
c45b72cee7c17072507eb67790d1699f5684098a
[ "MIT" ]
null
null
null
""" Goal - Calculate distance travelled by each fish Date - Mar 11 2021 """ import os import pathlib from pprint import pprint import numpy as np from scipy import stats from scipy.spatial import distance import matplotlib.pyplot as plt from matplotlib.pyplot import figure import trajectorytools as tt import trajec...
40.516129
242
0.584992
711
5,024
4.016878
0.255978
0.012605
0.030812
0.027311
0.377101
0.323179
0.301821
0.261555
0.261555
0.261555
0
0.050492
0.250995
5,024
124
243
40.516129
0.708477
0.072054
0
0.091954
0
0
0.089305
0.040456
0
0
0
0
0
1
0.114943
false
0.068966
0.183908
0.011494
0.298851
0.034483
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
760847772070bfe7fac02e4c22489050ee2671b4
2,752
py
Python
example/helloworld/test.py
yjchang-april7/homi
d353294d1bb494bf25920c711cda7ec61fbb67bc
[ "Apache-2.0" ]
48
2020-06-30T03:39:18.000Z
2022-03-19T07:59:21.000Z
example/helloworld/test.py
yjchang-april7/homi
d353294d1bb494bf25920c711cda7ec61fbb67bc
[ "Apache-2.0" ]
33
2020-06-26T09:55:30.000Z
2021-02-27T15:14:00.000Z
example/helloworld/test.py
yjchang-april7/homi
d353294d1bb494bf25920c711cda7ec61fbb67bc
[ "Apache-2.0" ]
5
2021-03-06T21:12:36.000Z
2022-01-05T09:18:28.000Z
import unittest import grpc from homi.test_case import HomiTestCase from .app import app from .helloworld_pb2 import HelloRequest, _GREETER class GreeterTestCase(HomiTestCase): app = app def test_hello_say(self): server = self.get_test_server() name = "tom" request = HelloRequest(na...
32.761905
82
0.636265
309
2,752
5.443366
0.239482
0.08918
0.033294
0.040428
0.757432
0.757432
0.587396
0.421522
0.362069
0.326992
0
0.002899
0.24782
2,752
83
83
33.156627
0.809662
0
0
0.444444
0
0
0.063227
0
0
0
0
0
0.15873
1
0.063492
false
0
0.079365
0
0.174603
0.015873
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7612c18176faebac2a056006252d7f72ae3260dd
2,200
py
Python
src/server/management_utils/http_server_html_generator.py
alonzing/PrivacyPolicyModeling
6103b520338019b2121f06f9efca29de60501ade
[ "PostgreSQL" ]
2
2018-11-18T15:43:02.000Z
2018-12-04T16:38:33.000Z
src/server/management_utils/http_server_html_generator.py
alonzing/PrivacyPolictModeling
6103b520338019b2121f06f9efca29de60501ade
[ "PostgreSQL" ]
12
2021-03-09T04:18:22.000Z
2022-02-26T11:00:03.000Z
src/server/management_utils/http_server_html_generator.py
alonzing/PrivacyPolictModeling
6103b520338019b2121f06f9efca29de60501ade
[ "PostgreSQL" ]
null
null
null
class HttpServerHTMLGenerator: """ Generates the HTML for the debug_http_server. """ def __init__(self): pass @staticmethod def generate_main_table(url_records): ret_html = '<html><head><meta charset="utf-8"/></head><table border=\'1\'>{0}</table></html>' main_table = "<...
50
117
0.490909
257
2,200
3.988327
0.198444
0.087805
0.076098
0.076098
0.670244
0.670244
0.619512
0.574634
0.462439
0.401951
0
0.012916
0.331364
2,200
43
118
51.162791
0.683889
0.020455
0
0.459459
1
0.081081
0.334736
0.146798
0
0
0
0
0
1
0.108108
false
0.027027
0
0
0.216216
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
7614971fc9be04fcd676bef9117d26ecfb7375cd
448
py
Python
topic_modeling/models.py
eoglethorpe/DEEPL
fb6403ceb63197ecd314905f060a2e5f1e790f66
[ "MIT" ]
1
2020-07-02T15:39:37.000Z
2020-07-02T15:39:37.000Z
topic_modeling/models.py
eoglethorpe/DEEPL
fb6403ceb63197ecd314905f060a2e5f1e790f66
[ "MIT" ]
11
2017-10-28T10:50:09.000Z
2021-06-10T20:07:44.000Z
topic_modeling/models.py
eoglethorpe/DEEPL
fb6403ceb63197ecd314905f060a2e5f1e790f66
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import JSONField from classifier.models import BaseModel class TopicModelingModel(BaseModel): """ Model storing topic modeling data """ group_id = models.CharField(max_length=50, unique=True) data = JSONField(default={}) ready =...
24.888889
59
0.723214
53
448
5.962264
0.679245
0.063291
0
0
0
0
0
0
0
0
0
0.005464
0.183036
448
17
60
26.352941
0.857924
0.073661
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.3
0.1
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
761502a481e64f47ffb810b30e7d3d7a7fe8f37d
372
py
Python
snippets - machine learning sklearn/supervised-learning-estimators.py
bjfisica/MachineLearning
20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2
[ "MIT" ]
52
2019-02-15T16:37:13.000Z
2022-02-17T18:34:30.000Z
snippets - machine learning sklearn/supervised-learning-estimators.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
null
null
null
snippets - machine learning sklearn/supervised-learning-estimators.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
22
2017-11-25T23:42:16.000Z
2019-01-07T09:22:35.000Z
#LinearRegression from sklearn.linear_model import LinearRegression lr = LinearRegression(normalize=True) #Support Vector Machine (SVM) from sklearn.svm import SVC svc = SVC(kernel='linear') #Naive Bayes from sklearn.naive_bayes import GaussianNB gnb = GaussianNB() #K Nearest Neighbors from sklearn import neighbors ...
24.8
51
0.817204
47
372
6.404255
0.553191
0.146179
0
0
0
0
0
0
0
0
0
0.003021
0.110215
372
15
51
24.8
0.906344
0.198925
0
0
0
0
0.020339
0
0
0
0
0
0
1
0
false
0
0.5
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
0
0
0
1
0
0
0
0
1
76161f64ce46d84b591fd54436f2a1b75ff0b2b5
14,364
py
Python
train.py
baudm/adversarial-object-removal
2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed
[ "MIT" ]
70
2018-10-26T18:32:50.000Z
2022-02-16T22:11:54.000Z
train.py
baudm/adversarial-object-removal
2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed
[ "MIT" ]
4
2018-12-13T03:45:36.000Z
2021-07-02T06:59:28.000Z
train.py
baudm/adversarial-object-removal
2ad7caa0d0ffdb3fbe5fa59c66edd4e77e3557ed
[ "MIT" ]
13
2019-01-03T12:01:21.000Z
2021-09-12T15:32:44.000Z
import os import argparse from solver import Solver from utils.data_loader_stargan import get_loader from torch.backends import cudnn def str2bool(v): return v.lower() in ('true') def main(config): # For fast training cudnn.benchmark = True # Create directories if not exist if not os.path.exists...
56.109375
265
0.702102
1,958
14,364
4.906537
0.170072
0.139586
0.263662
0.088477
0.542209
0.475278
0.445613
0.300198
0.118039
0.038097
0
0.016562
0.142509
14,364
255
266
56.329412
0.763416
0.0346
0
0.009615
0
0
0.212073
0.036609
0
0
0
0
0
1
0.009615
false
0
0.024038
0.004808
0.038462
0.004808
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
7619d6ee89b59f5a9ec588d1bd7c024fd388e029
4,248
py
Python
src/python/watch-wasm.py
Dante83/A-Terra-Incognito
2d05fb6200b5eeb108d8bb66b6852ce45f7ed714
[ "MIT" ]
23
2018-05-08T15:57:32.000Z
2020-11-10T07:14:36.000Z
src/python/watch-wasm.py
Dante83/A-Terra-Incognito
2d05fb6200b5eeb108d8bb66b6852ce45f7ed714
[ "MIT" ]
4
2018-06-11T08:58:55.000Z
2019-10-20T08:30:07.000Z
src/python/watch-wasm.py
Dante83/A-Terra-Incognito
2d05fb6200b5eeb108d8bb66b6852ce45f7ed714
[ "MIT" ]
3
2019-06-26T22:41:50.000Z
2020-08-09T09:43:14.000Z
import os, time cpp_directories = ['../cpp/state-engine/', '../cpp/' '../cpp/interpolation-engine/'] cpp_files = [['SkyState.cpp',\ 'autoexposure/LightingAnalyzer.cpp',\ 'world_state/AstroTime.cpp',\ 'world_state/Location.cpp',\ 'astro_bodies/SkyManager.cpp',\ 'astro_bodies/AstronomicalBody.cpp',\ 'astro_bodies/...
47.2
193
0.671846
476
4,248
5.777311
0.331933
0.061091
0.061091
0.045818
0.278545
0.278545
0.259636
0.248364
0.233455
0.233455
0
0.002639
0.197034
4,248
89
194
47.730337
0.803577
0.084981
0
0.256757
0
0
0.339691
0.236598
0
0
0
0
0
0
null
null
0
0.013514
null
null
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
1
0
0
0
0
0
0
0
0
1
7619dbc04c0841dc32360647c4451c5d2c6572c4
1,704
py
Python
src/wobblui/imageviewer.py
benoit-pierre/wobblui
e16efc375070a5bba34f3cd5a6feb76bec0c8fb2
[ "MIT" ]
null
null
null
src/wobblui/imageviewer.py
benoit-pierre/wobblui
e16efc375070a5bba34f3cd5a6feb76bec0c8fb2
[ "MIT" ]
null
null
null
src/wobblui/imageviewer.py
benoit-pierre/wobblui
e16efc375070a5bba34f3cd5a6feb76bec0c8fb2
[ "MIT" ]
null
null
null
#cython: language_level=3 ''' wobblui - Copyright 2018 wobblui team, see AUTHORS.md This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for a...
32.150943
74
0.724178
256
1,704
4.789063
0.5
0.04894
0.022839
0.03752
0
0
0
0
0
0
0
0.00593
0.208333
1,704
52
75
32.769231
0.902891
0.547535
0
0
0
0
0.061761
0
0
0
0
0
0
1
0.04
false
0
0.32
0
0.36
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
7620783513a9394d8efcfb888916ba92fa9ae7bb
3,588
py
Python
digsby/src/tests/testgui/testmenus.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/tests/testgui/testmenus.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/tests/testgui/testmenus.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import wx if __name__ == '__main__': from tests.testapp import testapp from gui.uberwidgets.umenu import UMenuBar, UMenu from gui import skin app = a = testapp(skinname = 'jeffrey') wx.InitAllImageHandlers() wx.UpdateUIEvent.SetMode(wx.UPDATE_UI_PROCESS_SPECIFIED) f = wx.Frame(None, -1, '...
26.577778
109
0.598941
494
3,588
4.301619
0.3583
0.019765
0.025412
0.021647
0.027294
0
0
0
0
0
0
0.017041
0.231327
3,588
135
110
26.577778
0.753445
0.037904
0
0
0
0
0.133333
0.006667
0
0
0
0
0
0
null
null
0
0.084211
null
null
0.073684
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
7620fd96d10fc102e3723b3be623bdf02ed5271f
892
py
Python
documents_app/models.py
sabuhish/document-transfer
53625c709877d8364f781b776b1324ac5f047c69
[ "MIT" ]
null
null
null
documents_app/models.py
sabuhish/document-transfer
53625c709877d8364f781b776b1324ac5f047c69
[ "MIT" ]
3
2019-10-21T18:28:51.000Z
2021-06-10T21:12:13.000Z
documents_app/models.py
marlin-dev/document-transfer
53625c709877d8364f781b776b1324ac5f047c69
[ "MIT" ]
null
null
null
from django.db import models from companies_app.models import Company class Documents(models.Model): __choice =((1, "yarandi"), (2, "gonderen imzaldir"), (3, "qebul eden imzaldir"), (4, "qebul eden imtina etdi"), (5, "vaxti bitib")) __doct_type_choice = ((1, "muqvile"), (2, "hesab_faktura")...
42.47619
96
0.724215
115
892
5.330435
0.582609
0.04894
0.045677
0.081566
0.179445
0.179445
0.179445
0.179445
0.179445
0
0
0.014455
0.146861
892
21
97
42.47619
0.791064
0
0
0
0
0
0.153415
0
0
0
0
0
0
1
0
false
0
0.1
0
0.7
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
76264089d8c57aaf1f615e341d5b812db384edd9
3,891
py
Python
proteus/tests/ci/test_meshPartitionFromTetgenFiles.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
proteus/tests/ci/test_meshPartitionFromTetgenFiles.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
proteus/tests/ci/test_meshPartitionFromTetgenFiles.py
yuxianglin/proteus
ac5d5223410b1a1f270615f987e9cf327fb802af
[ "NASA-1.3" ]
null
null
null
#!/usr/bin/env python """ Test module for linear boundary value problems (serial) This module solves equations of the form .. _math:: \nabla \cdot \left( a(x) \nabla u \right) = f(x) """ import pytest from proteus.iproteus import * from proteus import Comm comm = Comm.get() import poisson_3d_tetgen_p import poiss...
32.425
77
0.648419
482
3,891
4.958506
0.224066
0.112971
0.100418
0.063598
0.662762
0.6159
0.586611
0.560669
0.535565
0.535565
0
0.039661
0.24184
3,891
120
78
32.425
0.770508
0.290928
0
0.439394
0
0
0.120111
0.062426
0.030303
0
0
0
0.030303
0
null
null
0.045455
0.090909
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
762c20d627ed0f98816643fef9b5757883ec4412
3,019
py
Python
backend/people_control/models.py
neo-empresarial/intranet
5b831865822ea5e1c984c8a0acf681c27a9354f3
[ "MIT" ]
null
null
null
backend/people_control/models.py
neo-empresarial/intranet
5b831865822ea5e1c984c8a0acf681c27a9354f3
[ "MIT" ]
18
2019-10-23T18:36:59.000Z
2021-06-10T22:03:50.000Z
backend/people_control/models.py
neo-empresarial/intranet
5b831865822ea5e1c984c8a0acf681c27a9354f3
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Person(models.Model): GENDER_CHOICES = [ ('Masculino', 'Masculino'), ('Feminino', 'Feminino'), ('Outro', 'Outro') ] name = models.CharField(max_length=50, default='') surname = models.CharField(max_...
30.19
95
0.666446
351
3,019
5.527066
0.222222
0.100515
0.11134
0.148454
0.485567
0.384021
0.256186
0.219072
0.152577
0.106186
0
0.014805
0.216959
3,019
99
96
30.494949
0.805838
0
0
0.236842
0
0
0.067572
0
0
0
0
0
0
1
0.092105
false
0
0.026316
0.092105
0.776316
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
762f081e79430c0ee49feebda9f0e1ac32f6ecf0
979
py
Python
clutch/method/typing/torrent/mutator.py
wyleung/clutch
2564735245a97a4fc0a1bb923c2a515dc2ae61a1
[ "MIT" ]
null
null
null
clutch/method/typing/torrent/mutator.py
wyleung/clutch
2564735245a97a4fc0a1bb923c2a515dc2ae61a1
[ "MIT" ]
null
null
null
clutch/method/typing/torrent/mutator.py
wyleung/clutch
2564735245a97a4fc0a1bb923c2a515dc2ae61a1
[ "MIT" ]
null
null
null
from typing import Sequence, Union, TypeVar from typing_extensions import Literal, TypedDict from clutch.network.rpc.typing import TrackerReplace class TorrentMutatorArguments(TypedDict, total=False): bandwidth_priority: int download_limit: int download_limited: bool files_wanted: Sequence[str] # em...
32.633333
64
0.750766
127
979
5.582677
0.425197
0.124118
0.112835
0.126939
0.255289
0.255289
0.255289
0.115656
0
0
0
0
0.192033
979
29
65
33.758621
0.896334
0.136874
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.115385
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5218977cd10b622f27cae6173a46448d5383f29d
4,145
py
Python
sdk/python/pulumi_digitalocean/get_images.py
mikealgj/pulumi-digitalocean
77c109ab364eb69b7668b007c29413f5d2c95209
[ "ECL-2.0", "Apache-2.0" ]
53
2019-04-25T14:43:12.000Z
2022-03-14T15:51:44.000Z
sdk/python/pulumi_digitalocean/get_images.py
mikealgj/pulumi-digitalocean
77c109ab364eb69b7668b007c29413f5d2c95209
[ "ECL-2.0", "Apache-2.0" ]
158
2019-04-15T21:47:18.000Z
2022-03-29T21:21:57.000Z
sdk/python/pulumi_digitalocean/get_images.py
mikealgj/pulumi-digitalocean
77c109ab364eb69b7668b007c29413f5d2c95209
[ "ECL-2.0", "Apache-2.0" ]
10
2019-04-15T20:16:11.000Z
2021-05-28T19:08:32.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
36.043478
125
0.657901
498
4,145
5.325301
0.323293
0.0181
0.018854
0.045249
0.063348
0.024887
0.024887
0
0
0
0
0.000318
0.241737
4,145
114
126
36.359649
0.843462
0.317008
0
0.117647
1
0
0.153042
0.054498
0
0
0
0
0
1
0.102941
false
0
0.102941
0.029412
0.323529
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
5218b58ca20ebc6fe567a5d8324d5f48a05d8a89
2,148
py
Python
python/remorse.py
urbanware-org/remorse
c55b4a4ddd38576324e6271d9ac613a7bd7ac77f
[ "MIT" ]
1
2017-11-27T00:37:38.000Z
2017-11-27T00:37:38.000Z
python/remorse.py
urbanware-org/remorse
c55b4a4ddd38576324e6271d9ac613a7bd7ac77f
[ "MIT" ]
null
null
null
python/remorse.py
urbanware-org/remorse
c55b4a4ddd38576324e6271d9ac613a7bd7ac77f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================ # ReMorse - Morse code encode/decode module for Python # Copyright (C) 2018 by Ralf Kilian # Distributed under the MIT License (https://opensource.org/licenses/MIT) # # GitHub: https://github.c...
29.424658
78
0.375233
234
2,148
3.948718
0.559829
0.068182
0.032468
0.047619
0
0
0
0
0
0
0
0.017567
0.284451
2,148
72
79
29.833333
0.495771
0.269553
0
0.114286
0
0
0.127249
0
0
0
0
0
0
1
0.085714
false
0
0
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52194d3bd46bd7e7d98bb39139fac896e6a6d1f3
1,469
py
Python
python/rearview/heuristic.py
jsklein/rear_view_rpz
2da20bd4991bfde16ece061225e5d9b538126ce4
[ "Apache-2.0" ]
1
2021-12-28T20:13:49.000Z
2021-12-28T20:13:49.000Z
python/rearview/heuristic.py
jsklein/rear_view_rpz
2da20bd4991bfde16ece061225e5d9b538126ce4
[ "Apache-2.0" ]
null
null
null
python/rearview/heuristic.py
jsklein/rear_view_rpz
2da20bd4991bfde16ece061225e5d9b538126ce4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright (c) 2021 by Fred Morris Tacoma WA # # 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 appli...
32.644444
83
0.726344
219
1,469
4.83105
0.584475
0.056711
0.024575
0.030246
0
0
0
0
0
0
0
0.00945
0.207624
1,469
44
84
33.386364
0.899485
0.785568
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
521d95c2a346a753f11d136d31d0ea4770e3b9b2
1,193
py
Python
Part 5 - Feature Selection/expoted_pipeline.py
NortheasternUniversityADS/Assignment-2
8bb5de721f105ab75fa6facfd01305422d447183
[ "CNRI-Python" ]
null
null
null
Part 5 - Feature Selection/expoted_pipeline.py
NortheasternUniversityADS/Assignment-2
8bb5de721f105ab75fa6facfd01305422d447183
[ "CNRI-Python" ]
null
null
null
Part 5 - Feature Selection/expoted_pipeline.py
NortheasternUniversityADS/Assignment-2
8bb5de721f105ab75fa6facfd01305422d447183
[ "CNRI-Python" ]
null
null
null
import numpy as np import pandas as pd from sklearn.ensemble import RandomForestRegressor from sklearn.feature_selection import SelectFwe, f_regression from sklearn.linear_model import ElasticNetCV from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline, make_union from tpot.buil...
45.884615
120
0.8114
166
1,193
5.614458
0.536145
0.059013
0.030043
0
0
0
0
0
0
0
0
0.037418
0.10394
1,193
25
121
47.72
0.834425
0.097234
0
0
0
0
0.041899
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
521fe56b8b4a7fc8eeb35523d71eed3b734c3252
4,965
py
Python
ToLaTeX.py
DezhengLee/Labster
561c522d6d3d0b4b70c667d2f9a1d16e1734affc
[ "Apache-2.0" ]
1
2021-09-27T14:26:20.000Z
2021-09-27T14:26:20.000Z
ToLaTeX.py
DezhengLee/Labster
561c522d6d3d0b4b70c667d2f9a1d16e1734affc
[ "Apache-2.0" ]
null
null
null
ToLaTeX.py
DezhengLee/Labster
561c522d6d3d0b4b70c667d2f9a1d16e1734affc
[ "Apache-2.0" ]
null
null
null
from sympy import * from sympy.abc import * from decimal import * def generateMeanTeX(var, length, mean, unit): """ :param var: (Char) :param length: (int) :param mean: (Decimal) :param unit: (String) :return: """ string = '\[' +r'\bar{' + var + r'} = \frac{1}{' + str(leng...
31.826923
199
0.504733
576
4,965
4.265625
0.171875
0.087912
0.080586
0.04884
0.563289
0.457061
0.429385
0.336996
0.310948
0.310948
0
0.007638
0.288016
4,965
155
200
32.032258
0.687412
0.173212
0
0.34375
1
0
0.192308
0.020185
0.078125
0
0
0
0
1
0.15625
false
0
0.046875
0
0.359375
0.015625
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
5233611f8eadfd02db8e66f377208be0a0126097
506
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/local_template.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/local_template.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/settings/local_template.py
mistalaba/cookiecutter-simple-django
979780b3dea3b0ab51e780cc7d98e9ba66004b09
[ "BSD-3-Clause" ]
1
2021-10-21T01:45:32.000Z
2021-10-21T01:45:32.000Z
""" Rename this to local.py """ from .base import * # noqa DEBUG = True SECRET_KEY = '!!!SET DJANGO_SECRET_KEY!!!' ADMINS = ( ('{{cookiecutter.author_name}}', '{{cookiecutter.email}}'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME...
18.740741
63
0.563241
47
506
5.914894
0.829787
0.064748
0
0
0
0
0
0
0
0
0
0.002611
0.243083
506
26
64
19.461538
0.723238
0.057312
0
0
0
0
0.471215
0.249467
0
0
0
0
0
1
0
false
0.055556
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
52355a54d5c6c7a441aa8b58fb180fecf6a3ffb1
1,422
py
Python
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
1
2016-12-07T20:28:12.000Z
2016-12-07T20:28:12.000Z
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
null
null
null
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
null
null
null
import re from collections import defaultdict import pdb class Computer(object): DIGIT = re.compile(r"\d+") def __init__(self): self.registers = defaultdict(lambda: 0) def run(self, instructions): self.cached = [] for instruction in instructions: split = re.split('\s+', instruction.strip()) command_n...
21.223881
85
0.670183
211
1,422
4.369668
0.317536
0.043384
0.065076
0.029284
0.062907
0.062907
0.062907
0.062907
0.062907
0.062907
0
0.019031
0.18706
1,422
66
86
21.545455
0.778547
0.063291
0
0.130435
0
0
0.021903
0
0
0
0
0
0
0
null
null
0
0.065217
null
null
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
1
0
0
0
0
0
0
0
0
1
523ebb1e4a705646dfba2ed982424a296093f0c1
2,157
py
Python
deteccao_face_hog2.py
ldynczuki/face-recognition-curso
0db04f3083b01417b55b0ef2e7cc2f750e4b8a60
[ "MIT" ]
null
null
null
deteccao_face_hog2.py
ldynczuki/face-recognition-curso
0db04f3083b01417b55b0ef2e7cc2f750e4b8a60
[ "MIT" ]
null
null
null
deteccao_face_hog2.py
ldynczuki/face-recognition-curso
0db04f3083b01417b55b0ef2e7cc2f750e4b8a60
[ "MIT" ]
null
null
null
import cv2 import dlib # Criação do vetor subdetector para auxiliar a qual subdetector foi utilizado para detectar face. # Esses são os 5 subdetectores (e nessa ordem) que existem no dlib e que é utilizado internamente. subdetector = ["Olhar a frente", "Vista a esquerda", "Vista a direita", "A frente girando a esquerd...
46.891304
120
0.742698
330
2,157
4.845455
0.439394
0.065666
0.045028
0.045028
0.033771
0
0
0
0
0
0
0.012311
0.171535
2,157
46
121
46.891304
0.882485
0.65044
0
0
0
0
0.261937
0.049113
0
0
0
0.021739
0
1
0
false
0
0.142857
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
524975bd2142074bcf6ba754fa614d7e85c4ccb4
389
py
Python
Exercicios/ex112/Teste.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
Exercicios/ex112/Teste.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
Exercicios/ex112/Teste.py
LuisDjay/Python-Curso-em-Video
4527187b37f84848404f2414b2291d866ab1e7b7
[ "MIT" ]
null
null
null
from utilidadescev import moeda from utilidadescev import dado p=dado.leiaDinheiro('Digite o preco: R$') moeda.resumo(p, 50, 50) """print(f'A metade de {Moeda.moeda(p)} é {Moeda.metade(p, True)}') print(f'O dobro de {Moeda.moeda(p)} é {Moeda.dobro(p,True)}') print(f'Aumentando 10%, temos {Moeda.aumentar(p, 10,True...
27.785714
67
0.694087
66
389
4.090909
0.424242
0.088889
0.111111
0.096296
0.140741
0.140741
0
0
0
0
0
0.034783
0.113111
389
13
68
29.923077
0.747826
0
0
0
0
0
0.134328
0
0
0
0
0
0
1
0
false
0
0.5
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
0
0
0
1
0
0
0
0
1
524aed84a4aea475c3a15244fa5c5aa8f3bba9e8
378
py
Python
projetdev/collecte/migrations/0004_auto_20180517_0003.py
ybendou/Thermal-Sensor-Network-controlled-by-a-Web-Application
82d1a7a436d9d1c74ee8aae37275f8009f51f9e4
[ "Apache-2.0" ]
null
null
null
projetdev/collecte/migrations/0004_auto_20180517_0003.py
ybendou/Thermal-Sensor-Network-controlled-by-a-Web-Application
82d1a7a436d9d1c74ee8aae37275f8009f51f9e4
[ "Apache-2.0" ]
null
null
null
projetdev/collecte/migrations/0004_auto_20180517_0003.py
ybendou/Thermal-Sensor-Network-controlled-by-a-Web-Application
82d1a7a436d9d1c74ee8aae37275f8009f51f9e4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.4 on 2018-05-16 22:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('collecte', '0003_auto_20180424_2006'), ] operations = [ migrations.AlterField( model_name='temperature', name='temp'...
19.894737
48
0.592593
39
378
5.641026
0.846154
0
0
0
0
0
0
0
0
0
0
0.116105
0.293651
378
18
49
21
0.707865
0.119048
0
0
1
0
0.138973
0.069486
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
52532b184ecd1c526eb8715fe1d797fcc59ef1cc
231
py
Python
Core/Block_C/RC350_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Core/Block_C/RC350_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Core/Block_C/RC350_Factory.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from Core.IFactory import IFactory from Regs.Block_C import RC350 class RC350Factory(IFactory): def create_block_object(self, line): self.rc350 = _rc350 = RC350() _rc350.reg_list = line return _rc350
21
40
0.69697
30
231
5.133333
0.6
0.194805
0.194805
0
0
0
0
0
0
0
0
0.118644
0.233766
231
10
41
23.1
0.751412
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5255bd63577facf3224330f484d5c843937a244a
484
py
Python
other/dingding/dingtalk/api/rest/OapiImChatServicegroupNoticeCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiImChatServicegroupNoticeCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiImChatServicegroupNoticeCreateRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2019.12.04 ''' from dingtalk.api.base import RestApi class OapiImChatServicegroupNoticeCreateRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.chat_id = None self.send_ding = None self.sticky = None self.text_content = None self.title = None self.un...
23.047619
59
0.747934
67
484
5.208955
0.61194
0.137536
0.063037
0
0
0
0
0
0
0
0
0.019324
0.144628
484
20
60
24.2
0.823672
0.068182
0
0
0
0
0.117381
0.108352
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
525f8d6b892e7d706301be5c02157ac6987237be
1,794
py
Python
shopkit/order/app.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/order/app.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
shopkit/order/app.py
sakkada/django-shopkit
35e6f8ac73bf6aa40887aa9b1b860d27db8b2975
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404, render from django.utils.decorators import method_decorator from django.conf.urls import url from ..core.app import ShopKitApp class OrderApp(ShopKitApp): app_name = 'order' namespace = 'order' Orde...
32.618182
73
0.655518
212
1,794
5.353774
0.325472
0.052863
0.044934
0.02467
0.181498
0.132159
0.075771
0.075771
0
0
0
0.004342
0.229654
1,794
54
74
33.222222
0.816932
0.023969
0
0
0
0
0.09897
0.04119
0
0
0
0
0.02381
1
0.119048
false
0
0.119048
0.02381
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
526ee6dfc18c0f3a91b7d0cadd7bcf6514dba8a6
586
py
Python
src/sensor_actuator/scripts/service_sensor.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
src/sensor_actuator/scripts/service_sensor.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
src/sensor_actuator/scripts/service_sensor.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import rospy, tf from math import pi from fake_sensor import FakeSensor from geometry_msgs.msg import Quaternion from sensor_actuator.srv import FakeSensor, FakeSensorResponse def make_quaternion(angle): q = tf.transformations.quaternion_from_euler(0, 0, angle) return Quaternion(*q) def call...
21.703704
62
0.762799
79
586
5.443038
0.493671
0.046512
0.088372
0
0
0
0
0
0
0
0
0.013807
0.134812
586
26
63
22.538462
0.83432
0.035836
0
0
0
0
0.042705
0
0
0
0
0
0
1
0.125
false
0
0.3125
0
0.5625
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
5272b418c2d64d445409252c3a370b0b6bc9eccc
960
py
Python
emeof/field_generator.py
ahippert/em-eof
82889e762367f7c6a90ec2f6c0cbcf73896598ee
[ "MIT" ]
1
2022-01-25T18:18:42.000Z
2022-01-25T18:18:42.000Z
emeof/field_generator.py
ahippert/em-eof
82889e762367f7c6a90ec2f6c0cbcf73896598ee
[ "MIT" ]
null
null
null
emeof/field_generator.py
ahippert/em-eof
82889e762367f7c6a90ec2f6c0cbcf73896598ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np from numpy import cos, sin, tanh, pi # generate random synthetic 2D field def deterministic_field(i, j, X, Y): r = (i*2*pi)/X t = (j*2*pi)/Y return sin(r)*sin(t) + sin(2.1*r)*sin(2.1*t) \ + sin(3.1*r)*sin(3.1*t) + tanh(r)*cos(t) \ + tanh(2*r)*cos(2....
28.235294
55
0.520833
183
960
2.710383
0.251366
0.060484
0.048387
0.028226
0.096774
0
0
0
0
0
0
0.053936
0.285417
960
33
56
29.090909
0.669096
0.09375
0
0.076923
1
0
0
0
0
0
0
0
0
1
0.115385
false
0
0.076923
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5273386f05333c5e588dab244d1aed66b6042e2b
716
py
Python
tests/test_redistestcase.py
ziadsawalha/redisbox
5dda344a67e2f9e5fba66f1150ec4a8556e22262
[ "Apache-2.0" ]
1
2016-12-28T09:47:16.000Z
2016-12-28T09:47:16.000Z
tests/test_redistestcase.py
ziadsawalha/redisbox
5dda344a67e2f9e5fba66f1150ec4a8556e22262
[ "Apache-2.0" ]
null
null
null
tests/test_redistestcase.py
ziadsawalha/redisbox
5dda344a67e2f9e5fba66f1150ec4a8556e22262
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from redisbox.unittest import RedisTestCase class RedisTestCaseTestCase(RedisTestCase): @classmethod def setUpClass(cls): # intentionally created class based method. pass def setUp(self): self.client = self.redis_client self.client.set('test', {'fo...
23.866667
52
0.600559
80
716
5.2875
0.5375
0.07565
0.047281
0.07565
0.330969
0.330969
0.330969
0.330969
0.330969
0.330969
0
0.005917
0.291899
716
29
53
24.689655
0.828402
0.087989
0
0.3
0
0
0.132308
0
0
0
0
0
0.1
1
0.25
false
0.05
0.05
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
1
0
0
0
0
0
0
0
1
5276308d226ef591b5d5be589937994167ad1bec
11,058
py
Python
common/locale/en_US/LC_MESSAGES/PaliTextTitle.py
sup6/pali
5b0808305b730a195d1c5a10a5f860d31db00d8d
[ "Unlicense" ]
16
2015-07-15T15:38:15.000Z
2022-03-09T07:11:38.000Z
common/locale/en_US/LC_MESSAGES/PaliTextTitle.py
sup6/pali
5b0808305b730a195d1c5a10a5f860d31db00d8d
[ "Unlicense" ]
1
2021-06-09T07:48:35.000Z
2021-06-09T07:48:35.000Z
common/locale/en_US/LC_MESSAGES/PaliTextTitle.py
sup6/pali
5b0808305b730a195d1c5a10a5f860d31db00d8d
[ "Unlicense" ]
6
2015-09-27T03:30:04.000Z
2020-07-01T09:25:52.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # http://www.accesstoinsight.org/tipitaka/index.html PaliTextTitle = { 'Tipiṭaka (Mūla)': 'Pāḷi Canon', 'Vinayapiṭaka': 'The Basket of the Discipline', 'Suttapiṭaka': 'The Basket of Discourses', 'Dīghanikāya': 'Long Discourses', 'Dīgha nikāya': 'Long Discourses', 'S...
38.8
130
0.630042
851
11,058
8.19389
0.683901
0.014341
0.014198
0.011186
0.014341
0.009752
0
0
0
0
0
0.000339
0.20085
11,058
284
131
38.93662
0.78805
0.400525
0
0.015038
0
0
0.716469
0.062201
0
0
0
0
0
1
0
false
0.007519
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
52772915dab7ee04416d031a1ced9acc78dc391b
3,851
py
Python
ci/render_pipelines.py
vpnachev/gardenlinux
c939b18396143311e77f17fbf47c3c92b97dd16d
[ "MIT" ]
null
null
null
ci/render_pipelines.py
vpnachev/gardenlinux
c939b18396143311e77f17fbf47c3c92b97dd16d
[ "MIT" ]
null
null
null
ci/render_pipelines.py
vpnachev/gardenlinux
c939b18396143311e77f17fbf47c3c92b97dd16d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import dacite import dataclasses import itertools import typing import yaml import glci.model import tkn.model GardenlinuxFlavour = glci.model.GardenlinuxFlavour Pipeline = tkn.model.Pipeline PipelineSpec = tkn.model.PipelineSpec PipelineMetadata = tkn.model.PipelineMetadata TaskRef = tkn.mo...
28.738806
93
0.665801
371
3,851
6.735849
0.293801
0.09884
0.038415
0.036014
0.201281
0.091236
0.045618
0.045618
0
0
0
0.000344
0.24591
3,851
133
94
28.954887
0.860193
0.026487
0
0.142857
0
0
0.069196
0.0358
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.009524
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
5280e55cfc576d11cb9224f4d546fab2cf329045
986
py
Python
back of code/RSCFN/rsden/loader/DORN-20181120100724.py
lidongyv/Monocular-depth-esitimation-with-region-support-cvpr
7715c91b9c9f88de5c0233923c3a073edf9b2ca8
[ "Apache-2.0" ]
null
null
null
back of code/RSCFN/rsden/loader/DORN-20181120100724.py
lidongyv/Monocular-depth-esitimation-with-region-support-cvpr
7715c91b9c9f88de5c0233923c3a073edf9b2ca8
[ "Apache-2.0" ]
null
null
null
back of code/RSCFN/rsden/loader/DORN-20181120100724.py
lidongyv/Monocular-depth-esitimation-with-region-support-cvpr
7715c91b9c9f88de5c0233923c3a073edf9b2ca8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: yulidong # @Date: 2018-04-25 23:06:40 # @Last Modified by: yulidong # @Last Modified time: 2018-11-20 00:11:31 import os import torch import numpy as np import scipy.misc as m import cv2 from torch.utils import data from python_pfm import * import torchvision.transforms as trans...
26.648649
63
0.703854
168
986
4.113095
0.446429
0.036179
0.028944
0.049204
0.04631
0.04631
0
0
0
0
0
0.127462
0.124746
986
37
64
26.648649
0.673233
0.21501
0
0
0
0
0.054759
0.054759
0
0
0
0
0
1
0
false
0
0.37037
0
0.37037
0.074074
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
52818a598359b7d4768f460d92369f063a16ce74
723
py
Python
Python_Test/PyFinanceApiSample/com/djs/learn/test/TestCheckYahooFinanceStockData.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
3
2017-11-18T21:34:33.000Z
2020-09-17T08:32:24.000Z
Python_Test/PyFinanceApiSample/com/djs/learn/test/TestCheckYahooFinanceStockData.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
11
2020-03-04T23:04:17.000Z
2022-03-31T18:51:08.000Z
Python_Test/PyFinanceApiSample/com/djs/learn/test/TestCheckYahooFinanceStockData.py
djsilenceboy/LearnTest
9e4959db04f61133faafb206dcb2f7be67f8a4f4
[ "Apache-2.0" ]
3
2019-07-02T14:24:49.000Z
2020-09-17T08:32:26.000Z
''' Check Yahoo finance stock data helper. Update log: (date / version / author : comments) 2017-12-08 / 1.0.0 / Du Jiang : Creation 2017-12-13 / 2.0.0 / Du Jiang : Use new API ''' from com.djs.learn.financeapi import CheckFinanceDataRequests __data_type = 0 __inventory_info_file_path = "../../../../etc...
25.821429
114
0.648686
92
723
4.728261
0.619565
0.073563
0.018391
0.041379
0
0
0
0
0
0
0
0.039867
0.167358
723
27
115
26.777778
0.682724
0.239281
0
0
0
0
0.197403
0.161039
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
528a6b375af3c8b3c0fd60132ef6bd4a9243dc84
5,107
py
Python
src/plog/mixins.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/plog/mixins.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
src/plog/mixins.py
Strangemother/project-conceptnet-graphing
3fd1b3188088090c71c95b1a660770482123ce22
[ "MIT" ]
null
null
null
from io import StringIO from plog import patterns class MixinBase(object): ''' Base mixin object of all Plog Mixins to inherit''' def __init__(self, *args, **kwargs): pass class PlogFileMixin(MixinBase): ''' A PlogFileMixin is designed to wrap a file object to represent correctl...
28.372222
75
0.538281
599
5,107
4.449082
0.240401
0.041276
0.018762
0.021013
0.269794
0.138086
0.115572
0.09531
0.09531
0.09531
0
0.002193
0.374976
5,107
179
76
28.530726
0.832707
0.272763
0
0.147727
0
0
0.011429
0
0
0
0
0
0
1
0.204545
false
0.011364
0.022727
0.022727
0.352273
0.011364
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
bfe08922df7b81eb0ac28fcf3a6fd6284d5b45b5
6,387
py
Python
elements_sdk/models/storage_node_status.py
elements-storage/elements-sdk-python
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
[ "MIT" ]
6
2020-11-16T23:15:18.000Z
2022-03-14T03:56:12.000Z
elements_sdk/models/storage_node_status.py
elements-storage/elements-sdk-python
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
[ "MIT" ]
1
2021-07-28T13:03:49.000Z
2021-08-25T12:24:01.000Z
elements_sdk/models/storage_node_status.py
elements-storage/elements-sdk-python
39c365fe079dcd5928c5fe1bbaa67389bd5a3d81
[ "MIT" ]
null
null
null
# coding: utf-8 """ ELEMENTS API The version of the OpenAPI document: 2 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from elements_sdk.configuration import Configuration class StorageNodeStatus(object): """NOTE: This class is auto generated by...
28.386667
139
0.58807
765
6,387
4.732026
0.160784
0.048619
0.127072
0.111878
0.472928
0.401105
0.356906
0.265193
0.121271
0.082873
0
0.017375
0.315171
6,387
224
140
28.513393
0.810242
0.298888
0
0.087379
1
0
0.085744
0
0
0
0
0
0
1
0.15534
false
0
0.038835
0
0.339806
0.019417
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
bfebe016cb46bb1a24b8ec605e892a83dd0c8580
1,056
py
Python
vframe_cli/vframe/settings/modelzoo_cfg.py
julescarbon/vframe
0798841fa9eb7e1252e4cdf71d68d991c26acab8
[ "MIT" ]
1
2021-05-15T11:06:39.000Z
2021-05-15T11:06:39.000Z
vframe_cli/vframe/settings/modelzoo_cfg.py
julescarbon/vframe
0798841fa9eb7e1252e4cdf71d68d991c26acab8
[ "MIT" ]
null
null
null
vframe_cli/vframe/settings/modelzoo_cfg.py
julescarbon/vframe
0798841fa9eb7e1252e4cdf71d68d991c26acab8
[ "MIT" ]
null
null
null
############################################################################# # # VFRAME # MIT License # Copyright (c) 2020 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# from os.path import join from dacite import from_dict from vframe.mo...
28.540541
82
0.54072
121
1,056
4.520661
0.46281
0.043876
0
0
0
0
0
0
0
0
0
0.004219
0.102273
1,056
36
83
29.333333
0.572785
0.34375
0
0
0
0
0.030593
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
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
bfedf766047acbe11837daba08c35125fdbb4e23
968
py
Python
src/dbspy/core/analyze/_analyze.py
ZhengKeli/PositronSpector
be0281fe50fe634183b6f239f03b7140c1dc0b7f
[ "MIT" ]
1
2019-06-18T09:23:42.000Z
2019-06-18T09:23:42.000Z
src/dbspy/core/analyze/_analyze.py
ZhengKeli/DBSpy
be0281fe50fe634183b6f239f03b7140c1dc0b7f
[ "MIT" ]
null
null
null
src/dbspy/core/analyze/_analyze.py
ZhengKeli/DBSpy
be0281fe50fe634183b6f239f03b7140c1dc0b7f
[ "MIT" ]
null
null
null
import abc from dbspy.core import base class Conf(base.ElementConf, abc.ABC): @staticmethod @abc.abstractmethod def create_process(cluster_block): pass def create_and_apply(self, cluster_block): process = self.create_process(cluster_block) self.apply(process) ...
24.2
62
0.581612
112
968
4.901786
0.321429
0.065574
0.07286
0.091075
0
0
0
0
0
0
0
0
0.302686
968
39
63
24.820513
0.813333
0
0
0.133333
0
0
0.02686
0
0
0
0
0
0
1
0.2
false
0.033333
0.133333
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfee62dff9ab808ecbcb49d9d9e27c9f295db8f3
12,004
py
Python
docs-source/source/conf.py
phyletica/codiv-sanger-bake-off
2a6b109f15e4ed450d71eb836ef77ff10428db02
[ "CC-BY-4.0" ]
null
null
null
docs-source/source/conf.py
phyletica/codiv-sanger-bake-off
2a6b109f15e4ed450d71eb836ef77ff10428db02
[ "CC-BY-4.0" ]
null
null
null
docs-source/source/conf.py
phyletica/codiv-sanger-bake-off
2a6b109f15e4ed450d71eb836ef77ff10428db02
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- import time # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------...
34.794203
111
0.664279
1,432
12,004
5.483939
0.319832
0.085572
0.067108
0.018337
0.211639
0.160703
0.092194
0.058449
0.058449
0.030307
0
0.009631
0.126375
12,004
344
112
34.895349
0.739201
0.351716
0
0.010989
0
0.021978
0.822902
0.375407
0
0
0
0.002907
0
1
0
false
0
0.005495
0
0.005495
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bffd81aa0baebff2906d3f3fbaefb1e7d630fe80
1,637
py
Python
tests/test_ur5_box_env.py
happyCoderJDFJJ/pyrfuniverse
8ddb6e0d8f113015ba820a327388a528a8b215c7
[ "Apache-2.0" ]
null
null
null
tests/test_ur5_box_env.py
happyCoderJDFJJ/pyrfuniverse
8ddb6e0d8f113015ba820a327388a528a8b215c7
[ "Apache-2.0" ]
null
null
null
tests/test_ur5_box_env.py
happyCoderJDFJJ/pyrfuniverse
8ddb6e0d8f113015ba820a327388a528a8b215c7
[ "Apache-2.0" ]
null
null
null
from pyrfuniverse.envs import Ur5BoxEnv import numpy as np import math import pybullet as p env = Ur5BoxEnv( max_steps=50, min_open_angle=10, reward_type='sparse' ) # env.reset() env.set_ur5_arm( [0.130700007,0.469000012,-0.379999995], # p.getQuaternionFromEuler([0, math.pi, math.pi / 4]) Non...
23.385714
70
0.551619
273
1,637
3.227106
0.252747
0.143019
0.112372
0.174801
0.518729
0.497162
0.474461
0.442679
0.401816
0.401816
0
0.1512
0.236408
1,637
69
71
23.724638
0.5536
0.693341
0
0
0
0
0.013158
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfff4d216ebb9b81ce71006556229c8b264a9c4e
1,137
py
Python
tmp/pyunimarc/pyunimarc/tree_utils.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
tmp/pyunimarc/pyunimarc/tree_utils.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
9
2019-12-20T15:24:38.000Z
2021-12-13T20:28:48.000Z
tmp/pyunimarc/pyunimarc/tree_utils.py
MagicSword/BookTags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- class Node: def __init__(self, node_type): self.type = node_type self.node_problems = [] @property def name(self): return "" @property def problems(self): return self.node_problems class ValueNode(Node): def __init__(self, node_type, va...
24.717391
57
0.596306
134
1,137
4.641791
0.253731
0.173633
0.120579
0.072347
0.255627
0.110932
0
0
0
0
0
0.00125
0.296394
1,137
45
58
25.266667
0.77625
0.01847
0
0.305556
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
0.055556
0.444444
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
bfff6525e333cb68cab85fd75d476a8a5b3baf6e
5,691
py
Python
main.py
z00bean/uml-NLP-project-R-net-1
d48a3c11c49d62da45c92bb7f4034ec0001fd4e6
[ "MIT" ]
1
2019-03-09T07:14:51.000Z
2019-03-09T07:14:51.000Z
main.py
z00bean/R-net-1
d48a3c11c49d62da45c92bb7f4034ec0001fd4e6
[ "MIT" ]
null
null
null
main.py
z00bean/R-net-1
d48a3c11c49d62da45c92bb7f4034ec0001fd4e6
[ "MIT" ]
null
null
null
import os import pickle import torch from trainer import Trainer from utils.utils import prepare_data, get_args, read_embedding # TODO: read vocab into a cpu embedding layer def read_vocab(vocab_config): """ :param counter: counter of words in dataset :param vocab_config: word_embedding config: (root, w...
39.797203
102
0.57547
651
5,691
4.772657
0.227343
0.056646
0.032185
0.025748
0.310911
0.274541
0.259092
0.243643
0.243643
0.22047
0
0.00455
0.304867
5,691
142
103
40.077465
0.780839
0.046389
0
0.192308
0
0
0.159074
0.00963
0
0
0
0.014085
0
1
0.028846
false
0
0.057692
0
0.105769
0.057692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8703b8f05a09b6b323000e0fcb6266e2cbed4596
404
py
Python
Employee/migrations/0018_employee_img.py
khalil-Hennara/Incentive_system
1eb51ed3c773744dd14de3291e6e247b0c6bb3a4
[ "Apache-2.0" ]
1
2021-09-16T15:35:55.000Z
2021-09-16T15:35:55.000Z
Employee/migrations/0018_employee_img.py
khalil-Hennara/Incentive_system
1eb51ed3c773744dd14de3291e6e247b0c6bb3a4
[ "Apache-2.0" ]
null
null
null
Employee/migrations/0018_employee_img.py
khalil-Hennara/Incentive_system
1eb51ed3c773744dd14de3291e6e247b0c6bb3a4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-17 15:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Employee', '0017_alter_rating_note'), ] operations = [ migrations.AddField( model_name='employee', name='img', ...
21.263158
73
0.59901
44
404
5.386364
0.818182
0
0
0
0
0
0
0
0
0
0
0.061856
0.279703
404
18
74
22.444444
0.752577
0.106436
0
0
1
0
0.114206
0.061281
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