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
f1fa05fa1cb12068e6e83fcae8c36f764d69b4cc
799
py
Python
DIMCREATOR/public_function.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
DIMCREATOR/public_function.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
DIMCREATOR/public_function.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
import MySQLdb def antisql(content): antistr=u"'|and|exec|insert|select|delete|update|count|*|%|chr|mid|master|truncate|char|declare|;|or|-|+|,".split(u"|") for i in range (len(antistr)): if antistr[i] in content: return 1 return 0 def sql_select(text): conn=MyS...
21.026316
123
0.622028
105
799
4.714286
0.52381
0.012121
0.060606
0.088889
0.569697
0.569697
0.460606
0.460606
0.460606
0.460606
0
0.018868
0.204005
799
37
124
21.594595
0.759434
0
0
0.521739
0
0.043478
0.207809
0.120907
0
0
0
0
0
1
0.130435
false
0.086957
0.043478
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7b00c6f1d89e97a620c345e04781fb343ad03d86
211
py
Python
tests/settings_test.py
uploadcare/intercom-rank
1b4eb8ab8589c7ed85dd295f97016213deafec93
[ "MIT" ]
12
2016-03-10T15:58:51.000Z
2020-05-07T21:46:03.000Z
tests/settings_test.py
uploadcare/intercom-rank
1b4eb8ab8589c7ed85dd295f97016213deafec93
[ "MIT" ]
34
2019-06-14T16:17:13.000Z
2020-12-17T10:19:45.000Z
tests/settings_test.py
uploadcare/intercom-rank
1b4eb8ab8589c7ed85dd295f97016213deafec93
[ "MIT" ]
1
2016-12-23T11:02:07.000Z
2016-12-23T11:02:07.000Z
from app.settings import * DEBUG = False TESTING = True SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:' SERVER_NAME = 'localhost' WTF_CSRF_ENABLED = False WTF_CSRF_CHECK_DEFAULT = False WTF_CSRF_METHODS = []
16.230769
46
0.763033
28
211
5.392857
0.785714
0.139073
0.15894
0
0
0
0
0
0
0
0
0
0.137441
211
12
47
17.583333
0.82967
0
0
0
0
0
0.127962
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
7b00ce29fe36466f2153668cf7f2917f6e68f29c
304
py
Python
Desafio/ex097.py
NathanMuniz/Exercises-Python
21dcf5fafdc3bd20baec997986b3ae97f5e08784
[ "MIT" ]
null
null
null
Desafio/ex097.py
NathanMuniz/Exercises-Python
21dcf5fafdc3bd20baec997986b3ae97f5e08784
[ "MIT" ]
null
null
null
Desafio/ex097.py
NathanMuniz/Exercises-Python
21dcf5fafdc3bd20baec997986b3ae97f5e08784
[ "MIT" ]
null
null
null
def tran_titulo(tit): x = len(tit) print((x + 5) * "~") print(f" {tit}") print((x + 5) * "~") titulo_principal = "Gustavo Guanabara" titulo_secundario = "Curso de Python no Youtube" paragrafo = "Cev" tran_titulo(titulo_principal) tran_titulo(titulo_secundario) tran_titulo(paragrafo)
21.714286
48
0.674342
40
304
4.925
0.5
0.203046
0.091371
0.101523
0
0
0
0
0
0
0
0.008
0.177632
304
14
49
21.714286
0.78
0
0
0.181818
0
0
0.183607
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.090909
0.272727
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b010dbec2cf3990d56e1160ac59b8af67327157
530
py
Python
users/migrations/0002_shifts_per_roster.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
18
2019-10-27T02:53:57.000Z
2021-12-30T06:02:12.000Z
users/migrations/0002_shifts_per_roster.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
9
2020-06-06T02:24:55.000Z
2021-09-11T03:54:05.000Z
users/migrations/0002_shifts_per_roster.py
gregcowell/roster-wizard
8a594ba0a6b38fda34bcc924c70a37b1c1692ddf
[ "MIT" ]
7
2020-04-20T03:25:56.000Z
2021-09-09T06:50:24.000Z
# Generated by Django 2.2 on 2019-04-24 03:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='customuser', name='ward_name', )...
22.083333
50
0.575472
51
530
5.843137
0.72549
0.060403
0.127517
0.154362
0
0
0
0
0
0
0
0.055249
0.316981
530
23
51
23.043478
0.767956
0.081132
0
0.235294
1
0
0.129897
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b014e2664227d349f7c94a4f0cbd7aa25ecfef8
1,880
py
Python
mongoDB/connections.py
Atharva-Gundawar/PyDB
fe4583a34b569c163516ad1115ee7b211dac81a6
[ "MIT" ]
null
null
null
mongoDB/connections.py
Atharva-Gundawar/PyDB
fe4583a34b569c163516ad1115ee7b211dac81a6
[ "MIT" ]
null
null
null
mongoDB/connections.py
Atharva-Gundawar/PyDB
fe4583a34b569c163516ad1115ee7b211dac81a6
[ "MIT" ]
null
null
null
# Install pymongo using 'pip install pymongo' import urllib from pymongo import MongoClient client = MongoClient() # Connect to localhost : # Format : # client = MongoClient('<host>', port_number) client = MongoClient('localhost', 27017) # or use the entire URL # client = MongoClient('mongodb://<host>:<portnum>/') ...
38.367347
105
0.739362
237
1,880
5.814346
0.493671
0.123367
0.087083
0.029028
0
0
0
0
0
0
0
0.023529
0.140957
1,880
48
106
39.166667
0.829721
0.453723
0
0.111111
0
0.055556
0.387065
0.248756
0
0
0
0
0
1
0
false
0.222222
0.111111
0
0.111111
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7b08f3f8c33fa71c0769589a9082226b1e225d83
976
py
Python
forms.py
sarar0sa/PCAPinator
90b49f22d5e035fb8f03745a66f261753a1960c9
[ "Apache-2.0" ]
null
null
null
forms.py
sarar0sa/PCAPinator
90b49f22d5e035fb8f03745a66f261753a1960c9
[ "Apache-2.0" ]
null
null
null
forms.py
sarar0sa/PCAPinator
90b49f22d5e035fb8f03745a66f261753a1960c9
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import (StringField, IntegerField, SubmitField) from wtforms.validators import InputRequired, Length, Regexp valid_search_time = "^(19[0-9][0-9]|20[0-9][0-9])(\/)(0[1-9]|1[0-2])(\/)(0[1-9]|1[0-9]|2[0-9]|3[0-1])\+(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$" # The form...
69.714286
187
0.710041
153
976
4.470588
0.372549
0.02924
0.017544
0.061404
0.20614
0.093567
0
0
0
0
0
0.058756
0.110656
976
14
188
69.714286
0.729263
0.071721
0
0
0
0.1
0.351381
0.167956
0
0
0
0
0
1
0
false
0
0.3
0
0.9
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
7b0f434a4097d8151586d5849c4e52a16442b68b
391
py
Python
secret/migrations/0002_auto_20191230_1047.py
sgilissen/PulseSecretServer
7b9e62712ddcfd61e1c4a90bb104b87242d1cfcb
[ "MIT" ]
null
null
null
secret/migrations/0002_auto_20191230_1047.py
sgilissen/PulseSecretServer
7b9e62712ddcfd61e1c4a90bb104b87242d1cfcb
[ "MIT" ]
null
null
null
secret/migrations/0002_auto_20191230_1047.py
sgilissen/PulseSecretServer
7b9e62712ddcfd61e1c4a90bb104b87242d1cfcb
[ "MIT" ]
null
null
null
# Generated by Django 2.2.9 on 2019-12-30 10:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('secret', '0001_initial'), ] operations = [ migrations.AlterField( model_name='secret', name='expiry_date', ...
20.578947
62
0.595908
42
391
5.47619
0.785714
0
0
0
0
0
0
0
0
0
0
0.0681
0.286445
391
18
63
21.722222
0.756272
0.11509
0
0
1
0
0.101744
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
7b1aefc318e24d03b079a436333d54651048022b
679
py
Python
UTAT_Matlab/Rocket Optimizer/reg_fuel.py
coursekevin/AerospikeDesign
2385e53fa6af51fb09b8f1280cbb052e7a5c7aea
[ "MIT" ]
1
2020-09-17T18:33:17.000Z
2020-09-17T18:33:17.000Z
UTAT_Matlab/Rocket Optimizer/reg_fuel.py
coursekevin/AerospikeDesign
2385e53fa6af51fb09b8f1280cbb052e7a5c7aea
[ "MIT" ]
null
null
null
UTAT_Matlab/Rocket Optimizer/reg_fuel.py
coursekevin/AerospikeDesign
2385e53fa6af51fb09b8f1280cbb052e7a5c7aea
[ "MIT" ]
1
2022-03-23T21:58:20.000Z
2022-03-23T21:58:20.000Z
rho_fuel = 950 L = 0.3048 #fuel core length CHECK r_fo = 0.068/2 # Inner combustion chamber radius a0 = 0.000155 # Regression rate coeff (m/s**2) n_reg = 0.5 # Regression rate exponent, FLUX EXP??? MW_ox = 44.013 # Molecular weight/mass of N2O (kg/kmol) m_ox = #liquid ox mass in tank initial n = m_ox/MW_ox # moels of...
32.333333
75
0.683358
143
679
3.090909
0.426573
0.027149
0.099548
0.126697
0
0
0
0
0
0
0
0.063636
0.189985
679
21
76
32.333333
0.74
0.568483
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7b1afd932cbe595a77f58155b648ba56ae2b9606
4,276
py
Python
tools/view_traces.py
PHILAE-PROJECT/agilkia
d54741fd7e4b1c965db9a9f87ffcbeec1c9a68ef
[ "MIT" ]
1
2022-02-08T08:14:56.000Z
2022-02-08T08:14:56.000Z
tools/view_traces.py
PHILAE-PROJECT/agilkia
d54741fd7e4b1c965db9a9f87ffcbeec1c9a68ef
[ "MIT" ]
null
null
null
tools/view_traces.py
PHILAE-PROJECT/agilkia
d54741fd7e4b1c965db9a9f87ffcbeec1c9a68ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ View the traces within an Agilkia TraceSet. It prints a one-line summary of each trace, plus some general statistics. If the TraceSet is clustered, traces will be displayed in clusters, by default. TODO: allow user to specify the 'Ok' status value (e.g. --ok=200 for HTTP results) @author:...
44.082474
108
0.654584
592
4,276
4.619932
0.356419
0.021938
0.04351
0.020475
0.135283
0.118464
0.062888
0.041682
0.041682
0.041682
0
0.008447
0.197147
4,276
96
109
44.541667
0.788232
0.172591
0
0.073529
0
0
0.257899
0.027896
0
0
0
0.010417
0
1
0.029412
false
0
0.073529
0
0.117647
0.220588
0
0
0
null
0
0
0
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
7b1d388de458568738f7a0c8927f8a9ae2fd4a8e
1,428
py
Python
Python/python-practice/chapter5-if/toppints.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
Python/python-practice/chapter5-if/toppints.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
Python/python-practice/chapter5-if/toppints.py
jiaoqiyuan/Tests
a3595b0e4b430d910f90e428d6b6b4465f67a059
[ "Apache-2.0" ]
null
null
null
requested_topping = 'mushrooms' if requested_topping != 'anchovies': print("Hold the anchovies!") answer = 17 if answer != 42: print("That is not the correct answer. Please try again!") requested_toppings = ['mushrooms', 'extra cheese'] if 'mushrooms' in requested_toppings: print("Adding mushrooms.") if 'pepperon...
32.454545
103
0.734594
176
1,428
5.823864
0.289773
0.171707
0.11122
0.093659
0.442927
0.320976
0.283902
0.24
0.24
0.130732
0
0.003239
0.135154
1,428
44
104
32.454545
0.826721
0
0
0.333333
0
0
0.395381
0
0
0
0
0
0
1
0
false
0
0
0
0
0.416667
0
0
0
null
0
0
0
0
0
0
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
7b1e776a56b5db8dc8751388168be826b4e1f881
964
py
Python
tools/initialcompdata/abundngc5286.py
lukeshingles/evelchemevol
c2cc192bc3bf7ca0ebcf486ec37bb95c5fafb672
[ "MIT" ]
2
2016-03-03T14:36:32.000Z
2021-04-12T12:08:50.000Z
tools/initialcompdata/abundngc5286.py
lukeshingles/evelchemevol
c2cc192bc3bf7ca0ebcf486ec37bb95c5fafb672
[ "MIT" ]
1
2016-03-24T00:31:09.000Z
2016-03-24T00:31:09.000Z
tools/initialcompdata/abundngc5286.py
lukeshingles/evelchemevol
c2cc192bc3bf7ca0ebcf486ec37bb95c5fafb672
[ "MIT" ]
null
null
null
from abundsolar import elsolarlogepsilon zfactor = 10 ** -1.92 # mean of s-poor population in NGC5286 # from Marino et al. (2015) 2015MNRAS.450..815M # [Fe/H] = -1.92 # log X/Fe = [X/Fe] + log(X/Fe)_solar targetlogxtofe = { 'o': 0.58 + elsolarlogepsilon['o'] - elsolarlogepsilon['fe'], 'na': 0.18 + e...
50.736842
81
0.557054
100
964
5.36
0.47
0.31903
0.022388
0
0
0
0
0
0
0
0
0.075071
0.267635
964
18
82
53.555556
0.684136
0.137967
0
0
0
0
0.060606
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b250a5135f083dfeb1a0e3546505df08292bf67
2,866
py
Python
tests/flag_test.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
tests/flag_test.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
tests/flag_test.py
harrybrwn/dispatch
77aac949adb2229a609e4d1a7380478fdf5f1f7f
[ "Apache-2.0" ]
null
null
null
import pytest from pytest import raises import sys from os.path import dirname sys.path.insert(0, dirname(dirname(__file__))) from typing import List, Set, Dict, Sequence, Mapping from dispatch import command from dispatch.flags import Option, _from_typing_module, _is_iterable class AType: def __init__(self, va...
28.376238
68
0.638172
426
2,866
4.157277
0.194836
0.073405
0.08131
0.009034
0.34105
0.243365
0.193676
0.193676
0.181818
0.181818
0
0.0271
0.227495
2,866
100
69
28.66
0.772809
0.00314
0
0.176471
0
0.011765
0.063442
0.016474
0
0
0
0
0.482353
1
0.070588
false
0.035294
0.082353
0
0.188235
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
7b316a4c09da0dc1dc7a0c9da51fe511b8d7b2d8
401
py
Python
aula2/exercicio2.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
aula2/exercicio2.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
aula2/exercicio2.py
ArseniumGX/bluemer-modulo1-python
2f7c69252a9a86cc573c192d1d9685b0c20466f8
[ "MIT" ]
null
null
null
""" 02 - Qual o valor do troco? Defina uma variável para o valor de uma compra que custou R$100,98; Defina uma variável para o valor que o cliente pagou R$150,00; Defina uma variável que calcula o valor do troco e exiba-o no console com o valor final arredondado. """ valor_compra = 100.98 valor_pago = 1...
26.733333
104
0.710723
74
401
3.797297
0.472973
0.106762
0.181495
0.092527
0.192171
0.192171
0
0
0
0
0
0.072555
0.209476
401
14
105
28.642857
0.81388
0.653367
0
0
0
0
0.243697
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
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
7b33b50dcbc78e06ed24ef45a895d2925e481454
3,328
py
Python
ac/messagepgp.py
juga0/djac
e15b6d216c32c72bb825e2b36220dad92aeae48e
[ "MIT" ]
null
null
null
ac/messagepgp.py
juga0/djac
e15b6d216c32c72bb825e2b36220dad92aeae48e
[ "MIT" ]
null
null
null
ac/messagepgp.py
juga0/djac
e15b6d216c32c72bb825e2b36220dad92aeae48e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab # Copyright 2017 juga (juga at riseup dot net), under MIT license. """Extend Django email classes for MIME multipart/pgp-encrypted type messages. """ __all__ = ['EmailMessageEnc', 'EmailMessagePGP'] from django.conf import settings from django.core.mail.message impor...
38.697674
85
0.650841
405
3,328
5.153086
0.392593
0.030187
0.053666
0.027312
0.064207
0.021083
0
0
0
0
0
0.004358
0.241587
3,328
85
86
39.152941
0.822504
0.204327
0
0
0
0
0.047637
0
0
0
0
0.011765
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9e27b35d79b12b92a39f4959cc1a0c912df5a4d9
1,918
py
Python
data_prep_step/BERT_PYTORCH/data_prep_bert_pytorch.py
sampathkumaran90/pytorch-pipeline
32c9bb29fecd144cbee35182e56328ea4592dbcc
[ "MIT" ]
null
null
null
data_prep_step/BERT_PYTORCH/data_prep_bert_pytorch.py
sampathkumaran90/pytorch-pipeline
32c9bb29fecd144cbee35182e56328ea4592dbcc
[ "MIT" ]
null
null
null
data_prep_step/BERT_PYTORCH/data_prep_bert_pytorch.py
sampathkumaran90/pytorch-pipeline
32c9bb29fecd144cbee35182e56328ea4592dbcc
[ "MIT" ]
null
null
null
import shutil from collections import defaultdict import numpy as np import pandas as pd import torch import torch.nn.functional as F from sklearn.model_selection import train_test_split from torch import nn from torch.utils.data import Dataset, DataLoader from transformers import ( BertModel, BertTokenizer, ...
24.909091
109
0.696559
240
1,918
5.379167
0.5
0.048799
0.039504
0.048799
0.035631
0
0
0
0
0
0
0.000664
0.215328
1,918
76
110
25.236842
0.857143
0.233577
0
0.044444
0
0
0.082686
0
0
0
0
0
0
1
0.066667
false
0
0.422222
0
0.488889
0.044444
0
0
0
null
0
0
0
0
0
0
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
9e2853bc86e39b2d16cf6ae9851478345e87ec3f
606
py
Python
month02/multiprocessing/day13-2/myprocess.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
4
2021-01-07T14:25:15.000Z
2021-02-01T10:36:10.000Z
month02/multiprocessing/day13-2/myprocess.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month02/multiprocessing/day13-2/myprocess.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
""" 自定义进程类 """ from multiprocessing import Process # 使用面向对象的思想 创建自己的进程类 class MyProcess(Process): def __init__(self,value): self.value = value super().__init__() # 引入父类 def fun(self): print(self.value) # 进程执行内容的入口函数 def run(self): self.fun() print("搞点大事情,想干嘛都行"...
17.314286
35
0.589109
67
606
5.074627
0.432836
0.079412
0.082353
0.105882
0
0
0
0
0
0
0
0.002288
0.278878
606
35
36
17.314286
0.775744
0.394389
0
0
0
0
0.031792
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
0.153846
0
0
0
null
0
0
0
0
0
0
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
9e2888437f1cf08e2be6b5315a6fe714fc7e205e
241
py
Python
exe066a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe066a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
exe066a.py
Alexmachado81/ExerciciosPython_Resolvidos
2774ba742788eb7b545f3f85e9438deb68a983d4
[ "MIT" ]
null
null
null
soma = cont =0 while True: numero = int(input('Informe um numero inteiro[digite 999 para ele parar ]:')) if numero == 999: break soma = soma + numero cont += 1 print(f' A soma dos {cont} numeros digitador é {soma}')
24.1
81
0.618257
36
241
4.138889
0.722222
0
0
0
0
0
0
0
0
0
0
0.045198
0.26556
241
9
82
26.777778
0.79661
0
0
0
0
0
0.410788
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e2e4b24602fd5d4888815a3552d0b859132dc64
1,440
py
Python
0845 Enclosed Islands.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
1
2020-12-29T21:17:26.000Z
2020-12-29T21:17:26.000Z
0845 Enclosed Islands.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
null
null
null
0845 Enclosed Islands.py
ansabgillani/binarysearchcomproblems
12fe8632f8cbb5058c91a55bae53afa813a3247e
[ "MIT" ]
4
2021-09-09T17:42:43.000Z
2022-03-18T04:54:03.000Z
class Solution: def solve(self, matrix): total = sum(sum(row) for row in matrix) escapable = 0 seen = set() for r in range(len(matrix)): for c in [0,len(matrix[0])-1]: if (r,c) in seen or matrix[r][c] != 1: continue se...
34.285714
118
0.375
193
1,440
2.797927
0.181347
0.074074
0.074074
0.051852
0.681481
0.681481
0.681481
0.681481
0.681481
0.681481
0
0.035667
0.474306
1,440
41
119
35.121951
0.677675
0
0
0.6875
0
0
0
0
0
0
0
0
0
1
0.03125
false
0
0
0
0.09375
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
9e3640498efe5c016bf8f9c846cc60df457386d0
1,851
py
Python
aslprep/workflows/asl/__init__.py
lawlessrd/aslprep
22ec61f482cc3561f4fd35d769af0fe8bc2e80cb
[ "BSD-3-Clause" ]
2
2022-03-18T18:31:12.000Z
2022-03-18T18:31:26.000Z
aslprep/workflows/asl/__init__.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
null
null
null
aslprep/workflows/asl/__init__.py
kha-dija1/aslprep
ce1ed4a8fa23f64aaa7d6bb0977582586e6a7039
[ "BSD-3-Clause" ]
1
2020-04-13T20:04:21.000Z
2020-04-13T20:04:21.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Pre-processing ASL - ASL signal workflows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. automodule:: aslprep.workflows.asl.base .. automodule:: aslprep.workflows.asl.hmc .. automodule:: aslprep.workf...
25.708333
73
0.715289
273
1,851
4.351648
0.208791
0.156566
0.143939
0.195286
0.414983
0.362795
0.272727
0.170034
0.138047
0.138047
0
0.007737
0.162075
1,851
71
74
26.070423
0.758221
0.300378
0
0
0
0
0.286048
0.087295
0
0
0
0
0
1
0
false
0
0.204082
0
0.204082
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
9e3d14109157108b5c3dc00987ba58f556abc820
2,665
py
Python
methods/model_n.py
behrouzsh/deepPhosAPI
af3b3670fd583891aa70aa523556b395cca7cd96
[ "MIT" ]
null
null
null
methods/model_n.py
behrouzsh/deepPhosAPI
af3b3670fd583891aa70aa523556b395cca7cd96
[ "MIT" ]
4
2020-09-26T00:45:30.000Z
2022-02-10T01:39:36.000Z
methods/model_n.py
behrouzsh/deepPhosAPI
af3b3670fd583891aa70aa523556b395cca7cd96
[ "MIT" ]
null
null
null
import functools import itertools import os import random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np from sklearn import metrics from sklearn import preprocessing from sklearn.model_selection import train_test_split, KFold, cross_val_score from keras.layers import Dense,...
30.284091
101
0.65666
351
2,665
4.737892
0.404558
0.043295
0.02706
0.025256
0.032471
0.032471
0.032471
0.032471
0
0
0
0.043022
0.249906
2,665
87
102
30.632184
0.788894
0.077298
0
0
0
0
0.017984
0
0
0
0
0
0
1
0.016667
false
0
0.333333
0
0.366667
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
9e3d72bbe359dbb1c4d93cec5c822d7e00f2ba60
2,952
py
Python
models/MAF.py
mahkons/Dreamer
1e979d22a74347fef7d9f179d5df1ccee8e34277
[ "MIT" ]
null
null
null
models/MAF.py
mahkons/Dreamer
1e979d22a74347fef7d9f179d5df1ccee8e34277
[ "MIT" ]
null
null
null
models/MAF.py
mahkons/Dreamer
1e979d22a74347fef7d9f179d5df1ccee8e34277
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.transforms as T from .MADE import MADE from .Shuffle import Shuffle from .Flow import SequentialConditionalFlow from .NormFunctions import ActNorm, RunningBatchNorm1d from utils.logger import log class MAF(nn.Module): def __init__(self, flow_dim, condition_dim...
33.545455
101
0.628726
361
2,952
4.961219
0.310249
0.039084
0.024567
0.031826
0.075935
0.051368
0.035734
0
0
0
0
0.012284
0.25542
2,952
87
102
33.931034
0.802548
0.004743
0
0.0625
0
0
0.016866
0
0
0
0
0.011494
0
1
0.125
false
0
0.125
0
0.328125
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
9e4012a15b6caf8d1970dc79d0509a7c75e6d342
1,556
py
Python
sdk/python/pulumi_okta/profile/_inputs.py
brinnehlops/pulumi-okta
798be92b13233d23736016b7ae78f256d5c95c06
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_okta/profile/_inputs.py
brinnehlops/pulumi-okta
798be92b13233d23736016b7ae78f256d5c95c06
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_okta/profile/_inputs.py
brinnehlops/pulumi-okta
798be92b13233d23736016b7ae78f256d5c95c06
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
28.814815
87
0.645887
192
1,556
5.046875
0.34375
0.113519
0.130031
0.068111
0.277606
0.21259
0.184727
0.150671
0
0
0
0.000831
0.226864
1,556
53
88
29.358491
0.804655
0.113753
0
0.128205
1
0
0.070648
0
0
0
0
0
0
1
0.179487
false
0
0.128205
0.076923
0.410256
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
9e4825a3ab7dc66d60d304e5d35504619771260c
28,220
py
Python
snpdb/models/models_variant.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
snpdb/models/models_variant.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
snpdb/models/models_variant.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import collections import logging import re from typing import Optional, Pattern, Tuple, Iterable, Set import django.dispatch from django.conf import settings from django.contrib.auth.models import User from django.db import models, IntegrityError from django.db.models import Value as V, QuerySet, F from django.db.mod...
42.372372
131
0.686286
3,493
28,220
5.313484
0.146865
0.041487
0.018588
0.00819
0.275
0.225485
0.182274
0.150377
0.125808
0.108459
0
0.003567
0.225124
28,220
665
132
42.43609
0.845201
0.136605
0
0.206452
0
0
0.078016
0.026991
0
0
0
0
0
1
0.163441
false
0.004301
0.066667
0.07957
0.544086
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
9e49cdcbed80ab12a7df08b54018ae769a9572c1
553
py
Python
setup.py
KaiAnalytics/qualtrics_mailer
feb6796b7d6c3418a0b4be6d2b9409f4ead8f452
[ "MIT" ]
6
2017-11-19T20:49:32.000Z
2021-02-02T21:27:49.000Z
setup.py
KaiAnalytics/qualtrics-mailer
feb6796b7d6c3418a0b4be6d2b9409f4ead8f452
[ "MIT" ]
4
2018-08-17T08:49:29.000Z
2021-03-01T01:16:48.000Z
setup.py
KaiAnalytics/qualtrics-mailer
feb6796b7d6c3418a0b4be6d2b9409f4ead8f452
[ "MIT" ]
5
2018-04-19T23:16:14.000Z
2021-07-29T18:28:51.000Z
from setuptools import setup setup( name='qualtrics_mailer', version='0.1', description='A package for distributing pre-built surveys in Qualtrics', keywords='qualtrics survey', url='http://github.com/kaianalytics/qualtrics_mailer', author='Kai Analytics', author_email='info@kaianalytics.co...
23.041667
76
0.632911
57
553
6.035088
0.824561
0.130814
0
0
0
0
0
0
0
0
0
0.009501
0.238698
553
23
77
24.043478
0.807601
0
0
0.136364
0
0
0.439421
0.037975
0
0
0
0
0
1
0
true
0
0.045455
0
0.045455
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
9e4b914b4046ddb856ce341d0dc1212df19c3305
765
py
Python
models/__init__.py
respect5716/Tensorflow_Cifar10
cddb193646acbdf37248f46e03ae16af1b4c436e
[ "MIT" ]
null
null
null
models/__init__.py
respect5716/Tensorflow_Cifar10
cddb193646acbdf37248f46e03ae16af1b4c436e
[ "MIT" ]
null
null
null
models/__init__.py
respect5716/Tensorflow_Cifar10
cddb193646acbdf37248f46e03ae16af1b4c436e
[ "MIT" ]
null
null
null
import tensorflow as tf from .vgg import * from .resnet import * from .resnext import * from .preact_resnet import * from .densenet import * from .dpn import * from .dla import * from .senet import * def create_model(model_name, initializer, weight_decay): model_dict = { 'vgg': VGG11, 'resnet': R...
23.90625
56
0.637908
82
765
5.804878
0.463415
0.147059
0.067227
0
0
0
0
0
0
0
0
0.031414
0.25098
765
32
57
23.90625
0.799302
0
0
0
0
0
0.109661
0
0
0
0
0
0
1
0.035714
false
0
0.321429
0
0.392857
0.035714
0
0
0
null
0
0
0
0
0
0
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
9e4bde9cd2e9b03b0b769a336afe9af52ab52eb5
4,703
py
Python
scripts-test/server-zmq.py
freewebfish/lightweight-human-pose-estimation-3d-demo.pytorch
a75759b2950ecfd60c686b8b58f0184b3c8306d6
[ "Apache-2.0" ]
null
null
null
scripts-test/server-zmq.py
freewebfish/lightweight-human-pose-estimation-3d-demo.pytorch
a75759b2950ecfd60c686b8b58f0184b3c8306d6
[ "Apache-2.0" ]
null
null
null
scripts-test/server-zmq.py
freewebfish/lightweight-human-pose-estimation-3d-demo.pytorch
a75759b2950ecfd60c686b8b58f0184b3c8306d6
[ "Apache-2.0" ]
null
null
null
# # Hello World server in Python # Binds REP socket to tcp://*:5555 # Expects b"Hello" from client, replies with b"World" # import time import zmq import cv2 import json # define message protocol with Unity client msgClientAlive = "UNITY_CLIENT_ALIVE" msgClientParam = "{\"cam_id\":" msgClientReady = "UNITY_CLIE...
58.061728
1,961
0.536679
660
4,703
3.74697
0.374242
0.030732
0.029114
0.032754
0.194096
0.148807
0.148807
0.126163
0.126163
0.069551
0
0.110634
0.208165
4,703
81
1,962
58.061728
0.553437
0.167553
0
0
0
0.042553
0.245118
0.019527
0
0
0
0
0
1
0
false
0
0.085106
0
0.085106
0.085106
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e4f3003003462353774f65fd4ed0b78e70b6674
759
py
Python
understanding_loop_control.py
brucestull/PythonLearning
8520bf0237ef0df53a4d9075bb349354e0c01506
[ "MIT" ]
2
2021-12-06T15:12:21.000Z
2022-01-03T19:21:15.000Z
understanding_loop_control.py
brucestull/PythonLearning
8520bf0237ef0df53a4d9075bb349354e0c01506
[ "MIT" ]
null
null
null
understanding_loop_control.py
brucestull/PythonLearning
8520bf0237ef0df53a4d9075bb349354e0c01506
[ "MIT" ]
null
null
null
# Second edit. # Added feature_01. # Create two nested 'for' loops. for x in range(1,5): print(f"Start of x:{x} loop.") for y in range(1,5): print(f"Start of y:{y} loop.") if y == 3: print(x, y, 'breaking') # print("Only 'break' out of inner 'y' loop.") break ...
36.142857
73
0.550725
113
759
3.690265
0.424779
0.047962
0.038369
0.043165
0.42446
0.326139
0.326139
0.326139
0.220624
0
0
0.013183
0.300395
759
20
74
37.95
0.772128
0.28195
0
0
0
0
0.433086
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
0
0
0
null
0
0
0
0
0
0
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
9e51ef336e16d09bf56b85c49286dc94c6936295
850
py
Python
setup.py
timniven/hsdbi
a3974972a728f631f9cbced1cf8d88e9ccc37c47
[ "MIT" ]
null
null
null
setup.py
timniven/hsdbi
a3974972a728f631f9cbced1cf8d88e9ccc37c47
[ "MIT" ]
null
null
null
setup.py
timniven/hsdbi
a3974972a728f631f9cbced1cf8d88e9ccc37c47
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # python setup.py sdist upload -r pypi setup( name='hsdbi', packages=find_packages(exclude=['testing']), version='0.1a18', description='A simple interface for accessing databases.', author='Tim Niven', author_email='tim.niven.public@gmail.com', ...
28.333333
75
0.64
92
850
5.858696
0.717391
0.044527
0.051948
0.06308
0.111317
0.111317
0
0
0
0
0
0.01506
0.218824
850
29
76
29.310345
0.796687
0.042353
0
0
0
0
0.522167
0.03202
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
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
9e5426fd463d1fea19b86c91e0b6ff01849c5c96
309
py
Python
examples/simpleApp.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/simpleApp.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/simpleApp.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
# import the library from appJar import gui app = gui() # top slice - CREATE the GUI app.addLabel("title", "Welcome to appJar") # add a label app.setLabelBg("title", "red") # set the label's background to be red app.go() # bottom slice - START the GUI
30.9
86
0.576052
42
309
4.238095
0.619048
0.067416
0
0
0
0
0
0
0
0
0
0
0.326861
309
9
87
34.333333
0.855769
0.398058
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e585bd00bab643c5036f898001316c81db85859
933
py
Python
examples/plot_read_raw_data.py
arokem/mne-python
588aba1a35fb448978872f179d479839448352fd
[ "BSD-3-Clause" ]
null
null
null
examples/plot_read_raw_data.py
arokem/mne-python
588aba1a35fb448978872f179d479839448352fd
[ "BSD-3-Clause" ]
null
null
null
examples/plot_read_raw_data.py
arokem/mne-python
588aba1a35fb448978872f179d479839448352fd
[ "BSD-3-Clause" ]
null
null
null
""" ========================== Reading a raw file segment ========================== """ # Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # # License: BSD (3-clause) print __doc__ import os from mne import fiff fname = os.environ['MNE_SAMPLE_DATASET_PATH'] fname += '/MEG/sample/sample_audvis_raw.fif' raw...
23.923077
79
0.613076
133
933
4.135338
0.503759
0.08
0.101818
0
0
0
0
0
0
0
0
0.026829
0.121115
933
38
80
24.552632
0.643902
0.215434
0
0
0
0
0.176577
0.100901
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9e5b3111503a5a1fe2e1b84795bfc993be669bf2
1,247
py
Python
tool_test/test_v_output4_8_get_map_zip_data.py
BerkeleyLibrary/geodata_pre_ingest
fed3a7e4f3018c05612628fe6988d7864e086f56
[ "MIT" ]
null
null
null
tool_test/test_v_output4_8_get_map_zip_data.py
BerkeleyLibrary/geodata_pre_ingest
fed3a7e4f3018c05612628fe6988d7864e086f56
[ "MIT" ]
null
null
null
tool_test/test_v_output4_8_get_map_zip_data.py
BerkeleyLibrary/geodata_pre_ingest
fed3a7e4f3018c05612628fe6988d7864e086f56
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys import shutil sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from pre_ingestion import zip_data,geo_helper,par,validate_csv dirname = os.path.dirname(__file__).replace("test","test_data") def main(): try: geo_ext_list = _EXT = ["....
34.638889
101
0.579791
145
1,247
4.558621
0.468966
0.045386
0.081694
0.051437
0
0
0
0
0
0
0
0.003444
0.301524
1,247
35
102
35.628571
0.755454
0.012831
0
0
0
0
0.089431
0
0
0
0
0
0
0
null
null
0
0.148148
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
9e5bc30970ec994fc44c59ed169e31c578d5b9e6
352
py
Python
codebasin/walkers/tree_walker.py
jasonsewall-intel/code-base-investigator
8cf4d51ebfde85d508641f601f7cd3eb1a5c8c3c
[ "BSD-3-Clause" ]
17
2019-07-24T21:17:52.000Z
2022-03-22T01:15:46.000Z
codebasin/walkers/tree_walker.py
jasonsewall-intel/code-base-investigator
8cf4d51ebfde85d508641f601f7cd3eb1a5c8c3c
[ "BSD-3-Clause" ]
1
2022-03-11T13:11:41.000Z
2022-03-11T13:11:41.000Z
codebasin/walkers/tree_walker.py
jasonsewall-intel/code-base-investigator
8cf4d51ebfde85d508641f601f7cd3eb1a5c8c3c
[ "BSD-3-Clause" ]
7
2019-07-24T21:27:42.000Z
2022-03-21T22:47:34.000Z
# Copyright (C) 2019 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause import logging import collections log = logging.getLogger('codebasin') class TreeWalker(): """ Generic tree walker class. """ def __init__(self, _tree, _node_associations): self.tree = _tree self._node_as...
19.555556
52
0.701705
39
352
6.025641
0.692308
0.204255
0
0
0
0
0
0
0
0
0
0.017794
0.201705
352
17
53
20.705882
0.818505
0.289773
0
0
0
0
0.038627
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e5c485c5bebb3af5bc1751cd6893fdf78cb74b7
670
py
Python
daiquiri/files/migrations/0002_depth.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/files/migrations/0002_depth.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/files/migrations/0002_depth.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-01-09 14:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('daiquiri_files', '0001_initial'), ] operations = [ migrations.AddField( ...
25.769231
120
0.604478
72
670
5.458333
0.736111
0.045802
0.091603
0.111959
0
0
0
0
0
0
0
0.051335
0.273134
670
25
121
26.8
0.755647
0.101493
0
0.222222
1
0
0.131886
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
9e5cca57af90b5ef2e9ad6c0d89e3ea178e12603
3,130
py
Python
webserver.py
Linerly/linerlybot-rewritten
e89c11c21a7591f1d4ccf1addcb554f4894827f1
[ "MIT" ]
3
2021-05-25T07:55:45.000Z
2021-08-14T22:39:22.000Z
webserver.py
Linerly/linerlybot-rewritten
e89c11c21a7591f1d4ccf1addcb554f4894827f1
[ "MIT" ]
1
2021-08-16T18:56:41.000Z
2021-08-16T23:56:39.000Z
webserver.py
Linerly/linerlybot-rewritten
e89c11c21a7591f1d4ccf1addcb554f4894827f1
[ "MIT" ]
1
2021-08-16T18:29:40.000Z
2021-08-16T18:29:40.000Z
from threading import Thread from flask import Flask app = Flask("") @app.route("/") def home(): return """ <!DOCTYPE="html"> <html> <head> <link rel="icon" href="https://linerly.github.io/assets/linerlybot/linerlybot.png" type="image/png"> <title>LinerlyBot Repl Page</t...
37.710843
299
0.59393
398
3,130
4.665829
0.444724
0.038772
0.037695
0.048465
0.152396
0.082391
0.031233
0.031233
0
0
0
0.05023
0.236741
3,130
82
300
38.170732
0.727082
0
0
0.114754
0
0.180328
0.928435
0.01278
0
0
0
0
0
1
0.04918
false
0
0.04918
0.016393
0.114754
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
9e67d76f8c869967dca8eedfff1d0bf6565c9da6
5,609
py
Python
app/tests/courses/factories.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
3
2020-12-27T21:52:52.000Z
2021-08-23T10:26:10.000Z
app/tests/courses/factories.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
12
2020-12-22T22:36:28.000Z
2021-01-18T13:39:34.000Z
app/tests/courses/factories.py
Valaraucoo/raven
0157e193baf569be9479a78838dc26d77a11a99d
[ "BSD-3-Clause" ]
2
2020-12-27T21:52:39.000Z
2021-11-18T08:08:25.000Z
import datetime import random import factory import factory.fuzzy as fuzzy from django.core.files.base import ContentFile from courses import models from courses.models import LANGUAGE_CHOICES, PROFILE_CHOICES from tests.users import factories as users_factories from users import models as users_models PROFILE_CHOIC...
32.610465
86
0.694598
607
5,609
6.345964
0.217463
0.075026
0.088525
0.102804
0.627466
0.559709
0.516355
0.376428
0.323988
0.298027
0
0.012396
0.20895
5,609
172
87
32.610465
0.855758
0
0
0.521739
0
0
0.015865
0
0
0
0
0
0
1
0.021739
false
0
0.065217
0
0.652174
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
9e68a0ead84aad708c90ff98f2a1ddf8c30a354c
1,512
py
Python
geotrek/common/tests/__init__.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/tests/__init__.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
geotrek/common/tests/__init__.py
ker2x/Geotrek-admin
78e154894d1d78dbb35789285c7def8deaaa2dd3
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- from django.utils import translation from django.utils.translation import ugettext as _ # Workaround https://code.djangoproject.com/ticket/22865 from geotrek.common.models import FileType # NOQA from mapentity.tests import MapEntityTest from geotrek.authent.factories import StructureFacto...
33.6
78
0.707672
173
1,512
6.057803
0.445087
0.031489
0.028626
0.034351
0.219466
0.156489
0.156489
0.093511
0.093511
0.093511
0
0.007317
0.186508
1,512
44
79
34.363636
0.844715
0.054894
0
0.193548
0
0
0.042105
0
0
0
0
0
0.129032
1
0.129032
false
0
0.193548
0.032258
0.516129
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
9e70a890b82ec1162ff87882d764312cd753108e
2,629
py
Python
python_modules/dagster/dagster/core/snap/repository_snapshot.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
3
2020-09-09T04:10:23.000Z
2021-11-08T02:10:42.000Z
python_modules/dagster/dagster/core/snap/repository_snapshot.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
2
2021-05-11T13:36:27.000Z
2021-09-03T01:53:11.000Z
python_modules/dagster/dagster/core/snap/repository_snapshot.py
flowersw/dagster
0de6baf2bd6a41bfacf0be532b954e23305fb6b4
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict, namedtuple from dagster import RepositoryDefinition, check from dagster.core.snap.pipeline_snapshot import PipelineIndex, PipelineSnapshot from dagster.serdes import whitelist_for_serdes class RepositoryIndex: def __init__(self, repository_snapshot): self.repository_s...
37.557143
100
0.71396
267
2,629
6.659176
0.198502
0.094488
0.038245
0.044994
0.266592
0.191226
0.151856
0.151856
0.151856
0.151856
0
0
0.222138
2,629
69
101
38.101449
0.869438
0
0
0.142857
0
0
0.056295
0.007988
0
0
0
0
0
1
0.178571
false
0
0.071429
0.107143
0.464286
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
9e773e8401e68a80c8d3ee3e342f0e24c4102be6
5,702
py
Python
portal/portal/legacy/operators.py
sneaxiy/PaddlePaddle.org
84927c672d292e3a79051e988c8e39b70a92ab6a
[ "Apache-2.0" ]
47
2017-09-14T01:18:36.000Z
2022-02-14T01:41:31.000Z
portal/portal/legacy/operators.py
sneaxiy/PaddlePaddle.org
84927c672d292e3a79051e988c8e39b70a92ab6a
[ "Apache-2.0" ]
371
2017-09-14T00:47:48.000Z
2022-03-11T23:19:17.000Z
portal/portal/legacy/operators.py
sneaxiy/PaddlePaddle.org
84927c672d292e3a79051e988c8e39b70a92ab6a
[ "Apache-2.0" ]
45
2017-09-17T01:44:49.000Z
2022-02-14T01:44:21.000Z
import json import os import re import codecs from bs4 import BeautifulSoup from django.template import Template, Context import markdown from deploy.utils import reserve_formulas, MARKDOWN_EXTENSIONS OPERATOR_TEMPLATE = '<div class="section" id="{{ type }}">' + ( '<h2>{{ type }}</h2>') + ( '<dl cla...
42.87218
326
0.589092
644
5,702
5.031056
0.265528
0.055556
0.031481
0.015741
0.262346
0.24537
0.16821
0.148457
0.124074
0.101852
0
0.00477
0.264644
5,702
132
327
43.19697
0.767947
0.021747
0
0.133333
0
0.055556
0.335351
0.074849
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.044444
0
0
0
null
0
0
0
0
0
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
9e785e76437075b5060097c7d805d7aab28d1343
986
py
Python
crawl.py
doudounannan/python-crawl
4c10e4b99f40203507f5c5e83d5ab0760c559289
[ "MIT" ]
null
null
null
crawl.py
doudounannan/python-crawl
4c10e4b99f40203507f5c5e83d5ab0760c559289
[ "MIT" ]
null
null
null
crawl.py
doudounannan/python-crawl
4c10e4b99f40203507f5c5e83d5ab0760c559289
[ "MIT" ]
null
null
null
import requests, urllib, urllib2, os from bs4 import BeautifulSoup import style def getImg(url): response = requests.get(url) soup = BeautifulSoup(response.text, 'lxml') imgs = soup.find_all('img') for img in imgs: print(img.get('src')) def downloadImg(imgUrl, targetUrl): arr = imgUrl.spl...
36.518519
128
0.656187
126
986
5.087302
0.611111
0.049922
0.081123
0.056162
0.078003
0
0
0
0
0
0
0.02963
0.178499
986
26
129
37.923077
0.761728
0
0
0
0
0
0.208925
0.028398
0
0
0
0
0
0
null
null
0
0.136364
null
null
0.136364
0
0
0
null
0
0
0
0
0
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
9e7a0d67a924666aca302dd0bff0bf920840922b
16,924
py
Python
Badger/DataLoader/AMGA/readAttributes.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
null
null
null
Badger/DataLoader/AMGA/readAttributes.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
1
2021-03-04T08:48:38.000Z
2021-03-04T08:48:38.000Z
Badger/DataLoader/AMGA/readAttributes.py
zhangxt-ihep/IHEPDIRAC
fb53500a998adc43ff0c65c02caf492da2965de5
[ "MIT" ]
2
2020-08-26T06:36:51.000Z
2021-03-04T08:08:34.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # author: linlei #for data/all name of file like run_0023454_All_file014_SFO-2.dst #for data/skim & mc, we use new file naming rule, #file name like resonance_eventType_streamId_runL_runH_*.dst import os import os.path import ROOT from ROOT import gROOT from amga import ...
34.609407
169
0.568364
1,833
16,924
5.208947
0.166939
0.024194
0.008798
0.013196
0.367093
0.339443
0.308127
0.275974
0.24822
0.226644
0
0.020574
0.322205
16,924
488
170
34.680328
0.811786
0.221579
0
0.424028
0
0.017668
0.178247
0.045479
0
0
0
0
0
0
null
null
0
0.031802
null
null
0.056537
0
0
0
null
0
0
0
0
0
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
9e7d2d5ebba3eb5aa9241ab5ee3421fd963e7b25
5,574
py
Python
openuav-app/dockerfiles/openuav_sample/ros-setups/intel-edison/setpoint_demo.py
harishanand95/openuav-playground
dea503f42e5c2c5ef89f81ceb3616dd6395e05f4
[ "Apache-2.0" ]
23
2018-01-09T23:43:29.000Z
2021-08-15T12:25:54.000Z
openuav-app/dockerfiles/openuav_sample/ros-setups/intel-edison/setpoint_demo.py
harishanand95/openuav-playground
dea503f42e5c2c5ef89f81ceb3616dd6395e05f4
[ "Apache-2.0" ]
14
2018-01-09T16:40:14.000Z
2020-07-22T01:20:45.000Z
openuav-app/dockerfiles/openuav_sample/ros-setups/intel-edison/setpoint_demo.py
harishanand95/openuav-playground
dea503f42e5c2c5ef89f81ceb3616dd6395e05f4
[ "Apache-2.0" ]
16
2018-02-22T17:08:12.000Z
2021-01-05T07:27:02.000Z
#!/usr/bin/env python # vim:set ts=4 sw=4 et: # # # **************************************************************************** # * # * Copyright (c) 2015 UAVenture AG. All rights reserved. # * Author: Simon Wilks <simon@uaventure.com> # * # * Redistribution and use in source and binary forms, with or without # * ...
30.12973
149
0.59652
789
5,574
4.163498
0.326996
0.028006
0.024658
0.018265
0.20761
0.147641
0.140335
0.115373
0.080365
0.0414
0
0.037019
0.273053
5,574
184
150
30.293478
0.773692
0.364191
0
0.114286
0
0
0.051744
0.016867
0
0
0
0.005435
0
0
null
null
0.009524
0.104762
null
null
0.085714
0
0
0
null
0
0
0
0
0
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
9e863e4e4a3d349e93e1e77f85b42816367fb8d2
119
py
Python
strings/split_join.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
strings/split_join.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
strings/split_join.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python # split_join.py nums = "1,5,6,8,2,3,1,9" n = nums.split(",") print (n) m = ':'.join(n) print (m)
9.916667
24
0.537815
25
119
2.52
0.68
0
0
0
0
0
0
0
0
0
0
0.080808
0.168067
119
11
25
10.818182
0.555556
0.252101
0
0
0
0
0.195402
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
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
9e8e89bf23225508d65aca2604fea81357d394f6
281
py
Python
check_db_connection.py
dondemonz/python_training_mantis
b327ba1c057685aa6381c3afd882d9dec58b0cfc
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
dondemonz/python_training_mantis
b327ba1c057685aa6381c3afd882d9dec58b0cfc
[ "Apache-2.0" ]
null
null
null
check_db_connection.py
dondemonz/python_training_mantis
b327ba1c057685aa6381c3afd882d9dec58b0cfc
[ "Apache-2.0" ]
null
null
null
import pymysql.cursors db = pymysql.connect(host="127.0.0.1", database="bugtracker", user="root", password="") try: cursor = db.cursor() cursor.execute("select * from mantis_project_table") for row in cursor.fetchall(): print(row) finally: db.close()
23.416667
87
0.654804
37
281
4.918919
0.783784
0
0
0
0
0
0
0
0
0
0
0.026316
0.188612
281
12
88
23.416667
0.77193
0
0
0
0
0
0.202128
0
0
0
0
0
0
1
0
false
0.111111
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
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
9e91d516e8673f9d8be0dde1be9675aa920ff823
361
py
Python
searching/search_in_sorter_matrix.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
searching/search_in_sorter_matrix.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
searching/search_in_sorter_matrix.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
# O(m + n) time | O(1) space # m is row and n is col def searchInSortedMatrix(matrix, target): row = 0 col = len(matrix[0]) - 1 while row < len(matrix) and col > -1: if target == matrix[row][col]: return [row, col] if target > matrix[row][col]: row += 1 else: ...
25.785714
41
0.493075
53
361
3.358491
0.377358
0.101124
0.157303
0.191011
0.224719
0
0
0
0
0
0
0.039301
0.365651
361
13
42
27.769231
0.737991
0.132964
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
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
9e95ad5cb176b94bcfe9b08dcb6515e30b96d146
505
py
Python
ex43.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
ex43.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
ex43.py
Marcelo1080p/cev
48c092af47fe822ef04ff5d3a203bd64dd07b431
[ "MIT" ]
null
null
null
peso = float(input('Qual é o seu Peso? Kg')) altura = float(input('Qual é a sua Altura? m')) imc = peso / (altura ** 2) print('O seu Indice de massa muscular é {:.1f}'.format(imc)) if imc <= 18.5: print('Você esta abaixo do Peso!') elif imc <= 24.9: print('Peso ideal. Parabéns!') elif imc <= 29.9: print('Le...
31.5625
60
0.625743
85
505
3.717647
0.529412
0.110759
0.170886
0.094937
0
0
0
0
0
0
0
0.054455
0.2
505
16
61
31.5625
0.727723
0
0
0
0
0
0.432806
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4375
0
0
0
null
0
0
0
0
0
0
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
9e9a5c60b0d5cfb76945a0a123585041ce99057a
2,950
py
Python
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
20
2016-12-13T19:38:19.000Z
2022-02-11T08:40:40.000Z
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
null
null
null
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
6
2017-03-02T16:59:44.000Z
2021-01-25T10:06:17.000Z
import numpy """ Utility variables and functions """ aa2au = 1.8897261249935897 # bohr / AA # converts nuclear charge to atom label Z2LABEL = { 1: 'H', 2: 'He', 3: 'Li', 4: 'Be', 5: 'B', 6: 'C', 7: 'N', 8: 'O', 9: 'F', 10: 'Ne', 11: 'NA', 12: 'Mg...
32.417582
106
0.498983
488
2,950
3.016393
0.385246
0.006793
0.040761
0.01019
0.398098
0.365489
0.365489
0.365489
0.365489
0.365489
0
0.243386
0.359322
2,950
90
107
32.777778
0.53545
0.33661
0
0.217391
0
0
0.015704
0
0
0
0
0
0
1
0.043478
false
0
0.021739
0
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9ea28efc7c2b8b19e846eedc25c1bb29c3fe1eae
382
py
Python
Tugas 0/Invoice/main.py
hafidh561/Pemrograman-Berorientasi-Objek
55f955aaff8023d40ecfdfa407902ad42937c98e
[ "MIT" ]
null
null
null
Tugas 0/Invoice/main.py
hafidh561/Pemrograman-Berorientasi-Objek
55f955aaff8023d40ecfdfa407902ad42937c98e
[ "MIT" ]
null
null
null
Tugas 0/Invoice/main.py
hafidh561/Pemrograman-Berorientasi-Objek
55f955aaff8023d40ecfdfa407902ad42937c98e
[ "MIT" ]
1
2020-10-22T10:54:55.000Z
2020-10-22T10:54:55.000Z
from Invoice import Invoice def main(): items = [Invoice("RTX 2080", "VGA", 5, 10000000), Invoice("Intel i9 10900K", "Processor", 10, 8000000)] for item in items: print(item.part_num) print(item.part_desc) print(item.quantity) print(item.price) print("Total tagihanmu adalah", item.get_invoice_am...
23.875
105
0.664921
53
382
4.566038
0.660377
0.14876
0.107438
0
0
0
0
0
0
0
0
0.089457
0.180628
382
15
106
25.466667
0.683706
0
0
0
0
0
0.188011
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.454545
0
0
0
null
0
0
0
0
0
0
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
9eb3db5c72086aa7682ce56b880faf0e8650e734
930
py
Python
tests/test_shape_filter.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2021-07-02T11:59:07.000Z
2021-07-02T11:59:07.000Z
tests/test_shape_filter.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
null
null
null
tests/test_shape_filter.py
fabiommendes/easymunk
420dfc4a006997c47887f6876876249674feb3cd
[ "MIT" ]
1
2022-01-14T20:18:35.000Z
2022-01-14T20:18:35.000Z
import pickle import easymunk as p class TestShapeFilter: def test_init(self) -> None: f = p.ShapeFilter() assert f.group == 0 assert f.categories == 0xFFFFFFFF assert f.mask == 0xFFFFFFFF f = p.ShapeFilter(1, 2, 3) assert f.group == 1 assert f.categories...
21.627907
59
0.570968
121
930
4.338843
0.322314
0.182857
0.099048
0.106667
0.114286
0
0
0
0
0
0
0.048973
0.319355
930
42
60
22.142857
0.780411
0
0
0.066667
0
0
0
0
0
0
0.043011
0
0.366667
1
0.133333
false
0.066667
0.066667
0
0.3
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
9eb732dc73557673c56e38ff51c5c76c1265d122
1,094
py
Python
makeIGVToolsSortScript.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
makeIGVToolsSortScript.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
makeIGVToolsSortScript.py
imk1/MethylationQTLCode
d193f518994074a29a39e081d470b1c67a95a527
[ "MIT" ]
null
null
null
def makeIGVToolsSortScript(bismarkFileNameListFileName, suffix, scriptFileName, codePath): # Make a script that will use gatk to convert Hapmap files to VCF files bismarkFileNameListFile = open(bismarkFileNameListFileName) scriptFile = open(scriptFileName, 'w+') for line in bismarkFileNameListFile: # Iterate th...
42.076923
127
0.769653
113
1,094
7.380531
0.557522
0.033573
0.131894
0.165468
0.184652
0
0
0
0
0
0
0.007407
0.136197
1,094
25
128
43.76
0.875132
0.178245
0
0
0
0
0.056054
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
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
9eb8bddb66358ebcc2b184401d2f660df4b2754c
3,133
py
Python
dlme_airflow/drivers/oai_xml.py
sul-dlss/dlme-airflow
a94b51419575ed35fc048b87cab60f3db66b1b79
[ "Apache-2.0" ]
null
null
null
dlme_airflow/drivers/oai_xml.py
sul-dlss/dlme-airflow
a94b51419575ed35fc048b87cab60f3db66b1b79
[ "Apache-2.0" ]
72
2021-07-26T15:34:43.000Z
2022-03-18T00:09:28.000Z
dlme_airflow/drivers/oai_xml.py
sul-dlss/dlme-airflow
a94b51419575ed35fc048b87cab60f3db66b1b79
[ "Apache-2.0" ]
null
null
null
import intake import logging import pandas as pd from sickle import Sickle from lxml import etree class OAIXmlSource(intake.source.base.DataSource): container = "dataframe" name = "oai_xml" version = "0.0.1" partition_access = True def __init__(self, collection_url, set, dtype=None, metadata=None...
35.602273
110
0.610278
368
3,133
5.013587
0.361413
0.056911
0.051491
0.039024
0.029268
0
0
0
0
0
0
0.005333
0.281838
3,133
87
111
36.011494
0.814667
0.064794
0
0.085714
0
0
0.04788
0
0
0
0
0.011494
0
1
0.128571
false
0
0.071429
0.014286
0.371429
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
9ebae0e0b803b406d2f5040810ac4746fba22612
1,176
py
Python
app/routers/authentication.py
maktoobgar/fastapi
368ef96c902831f5b72c00d737fe11e111b4f814
[ "MIT" ]
1
2021-06-13T10:10:57.000Z
2021-06-13T10:10:57.000Z
app/routers/authentication.py
maktoobgar/fastapi
368ef96c902831f5b72c00d737fe11e111b4f814
[ "MIT" ]
null
null
null
app/routers/authentication.py
maktoobgar/fastapi
368ef96c902831f5b72c00d737fe11e111b4f814
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends, status, HTTPException from fastapi.security import OAuth2PasswordRequestForm from app import schemas, database, models, token from app.hashing import Hash from sqlalchemy.orm import Session from app.repository import user router = APIRouter(prefix="/auth", tags=['Authentication'...
39.2
74
0.722789
149
1,176
5.57047
0.416107
0.024096
0.031325
0.06747
0.13494
0.13494
0.13494
0.13494
0.13494
0.13494
0
0.00715
0.167517
1,176
29
75
40.551724
0.840654
0
0
0.086957
0
0
0.085034
0
0
0
0
0
0
1
0.086957
false
0.130435
0.26087
0.043478
0.434783
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
9ec2ff4d99a55616eec001399c69ac01cfba5b3e
293
py
Python
hackerrank/data-structures/2d-array.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
hackerrank/data-structures/2d-array.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
hackerrank/data-structures/2d-array.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://www.hackerrank.com/challenges/2d-array a=[0]*6 for i in range(6): a[i]=[int(x) for x in input().split()] c=-9*9 for i in range(1,5): for j in range(1,5): c=max(c,a[i-1][j-1]+a[i-1][j]+a[i-1][j+1]+a[i][j]+a[i+1][j-1]+a[i+1][j]+a[i+1][j+1]) print(c)
29.3
92
0.552901
79
293
2.050633
0.367089
0.098765
0.111111
0.148148
0.191358
0.191358
0.191358
0.191358
0.17284
0.17284
0
0.082031
0.12628
293
9
93
32.555556
0.550781
0.232082
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b3a4a14f96f258b7e4941216efe22d316526258
629
py
Python
ex6_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex6_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
ex6_sd3.py
jlaw8504/lp3thw
e3e5c559a0d851547acda6387eb5ff9034549e48
[ "BSD-3-Clause" ]
null
null
null
# the other instances of formatting strings used variables that were not # strings. To prove it, I'll use the function type to print out the # type of each variable used in a formatted string # recreate the variables from ex6 types_of_people = 10 x = f"There are {types_of_people} type of people." binary = "binary" do...
31.45
72
0.72655
107
629
4.158879
0.448598
0.089888
0.116854
0.080899
0
0
0
0
0
0
0
0.005597
0.147854
629
19
73
33.105263
0.824627
0.391097
0
0
0
0
0.384615
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7b3daca7224ddf034268f3e3126de9e5ac88c9bb
1,298
py
Python
config.py
bert386/rpi-flask-bluez-controller
56c5062243b0e9ce6383d5c390902f0db1ae2808
[ "Apache-2.0" ]
null
null
null
config.py
bert386/rpi-flask-bluez-controller
56c5062243b0e9ce6383d5c390902f0db1ae2808
[ "Apache-2.0" ]
null
null
null
config.py
bert386/rpi-flask-bluez-controller
56c5062243b0e9ce6383d5c390902f0db1ae2808
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Singleton class to manage configuration Description: Todo: """ import json import os import sys import logging import constant class Config(object): # Here will be the instance stored. __instance = None @classmethod def getInstance(cls): """ Static access method....
25.45098
72
0.587057
145
1,298
5.131034
0.475862
0.080645
0.043011
0.053763
0.225806
0.225806
0.134409
0.134409
0.134409
0.134409
0
0.002242
0.312789
1,298
50
73
25.96
0.831839
0.130971
0
0.176471
0
0
0.067812
0
0
0
0
0.02
0
1
0.117647
false
0
0.147059
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
1
0
0
0
0
0
0
0
0
0
0
1
7b3fcc413bf91795d6c1a63c01633294fc7a9067
3,354
py
Python
main.py
JonathaTrue/Python_par
32196008902bebbcf5e6c7bf39ecab8589037c44
[ "MIT" ]
null
null
null
main.py
JonathaTrue/Python_par
32196008902bebbcf5e6c7bf39ecab8589037c44
[ "MIT" ]
null
null
null
main.py
JonathaTrue/Python_par
32196008902bebbcf5e6c7bf39ecab8589037c44
[ "MIT" ]
null
null
null
import os clear = lambda: os.system('clear') clear() opcao = 1 while(opcao != 0): print("Atividade de PARADIGMAS") print(" 1 - QUESTÃO 01") print(" 2 - QUESTÃO 02") print(" 3 - QUESTÃO 03") print(" 4 - QUESTÃO 04") print(" 5 - QUESTÃO 05") print(" 0 - PARA SAIR") prin...
29.681416
79
0.514609
350
3,354
4.931429
0.308571
0.057937
0.040556
0.03708
0.117034
0.066049
0.03708
0
0
0
0
0.028751
0.336315
3,354
113
80
29.681416
0.746631
0
0
0.211111
0
0
0.279063
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0.444444
0
0
0
null
0
0
0
0
0
0
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
7b409b6364cec6ff7435e55a60af3c8cd69b44ad
30,034
py
Python
lib/pushtree/pushtree_nfa.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
6
2015-01-30T03:50:36.000Z
2022-03-20T16:09:58.000Z
lib/pushtree/pushtree_nfa.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
2
2015-02-04T17:18:47.000Z
2019-09-27T23:39:52.000Z
lib/pushtree/pushtree_nfa.py
zepheira/amara
d3ffe07d6e2266b34d72b012a82d572c8edbf1e7
[ "Apache-2.0" ]
6
2015-02-04T16:16:18.000Z
2019-10-30T20:07:48.000Z
import itertools from amara.xpath import parser as xpath_parser from amara.xpath import locationpaths from amara.xpath.locationpaths import axisspecifiers from amara.xpath.locationpaths import nodetests from amara.xpath.functions import nodesets from amara.xpath.expressions import booleans import amara.xpath.expressio...
35.968862
91
0.591563
3,628
30,034
4.673374
0.109978
0.022648
0.015099
0.007078
0.329401
0.218932
0.174167
0.14627
0.117487
0.101209
0
0.003102
0.313012
30,034
834
92
36.01199
0.81864
0.109543
0
0.268987
0
0
0.027701
0.003603
0
0
0
0.001199
0.033228
0
null
null
0.011076
0.017405
null
null
0.045886
0
0
0
null
0
0
0
0
0
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
7b40a3cac2c0d0e3629fcdb320cb5a694901568e
2,666
py
Python
test/unit/agent/pipelines/syslog.py
empiricompany/nginx-amplify-agent
2ea46f037ef158e5d4f56f2532010c72c5f8842c
[ "BSD-2-Clause" ]
1
2021-06-20T06:03:54.000Z
2021-06-20T06:03:54.000Z
test/unit/agent/pipelines/syslog.py
SammyEnigma/nginx-amplify-agent
81c4002c156809039933234abeb292edee3ac492
[ "BSD-2-Clause" ]
null
null
null
test/unit/agent/pipelines/syslog.py
SammyEnigma/nginx-amplify-agent
81c4002c156809039933234abeb292edee3ac492
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import time import logging from logging.handlers import SysLogHandler from hamcrest import * from amplify.agent.pipelines.syslog import SyslogTail, SYSLOG_ADDRESSES, AmplifyAddresssAlreadyInUse from test.base import BaseTestCase, disabled_test __author__ = "Grant Hulegaard" __copyright__ = "...
34.179487
100
0.661665
336
2,666
5.089286
0.431548
0.032749
0.033333
0.024561
0.125731
0.112281
0.112281
0.074854
0.045614
0.045614
0
0.016288
0.24006
2,666
77
101
34.623377
0.827739
0.205551
0
0.16
0
0
0.105938
0.011876
0
0
0
0.012987
0.12
1
0.1
false
0
0.12
0
0.24
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
7b42b6238c6d7ca9b1b924d14de6f6f8987ae5b6
474
py
Python
Ex_52.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_52.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_52.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
#Faça um programa que leia um número inteiro e diga se ele é ou não um número primo. num = int(input('Digite um número: ')) tot = 0 for i in range(1,num+1): if num % i == 0: print('\033[33m', end='') tot += 1 else: print('\033[31m', end='') print('{} '.format(i), end='') print('\n\...
27.882353
84
0.57173
82
474
3.304878
0.512195
0.088561
0.066421
0.095941
0.118081
0
0
0
0
0
0
0.053371
0.248945
474
17
85
27.882353
0.707865
0.175105
0
0.142857
0
0
0.329923
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
7b4d2923536f89021e4b5bea444563f7c603c12a
278
py
Python
examples/text_classificaiton/functional.py
Zzoay/YaoNLP
bfc54606f8b20584c4a6d997ba5bdddd528473e4
[ "Apache-2.0" ]
null
null
null
examples/text_classificaiton/functional.py
Zzoay/YaoNLP
bfc54606f8b20584c4a6d997ba5bdddd528473e4
[ "Apache-2.0" ]
null
null
null
examples/text_classificaiton/functional.py
Zzoay/YaoNLP
bfc54606f8b20584c4a6d997ba5bdddd528473e4
[ "Apache-2.0" ]
null
null
null
from torch import max from torch.nn.functional import cross_entropy def compute_acc(logit, y_gt): predicts = max(logit, 1)[1] corrects = (predicts.view(y_gt.size()).data == y_gt.data).float().sum() accuracy = 100.0 * float(corrects/len(y_gt)) return accuracy
25.272727
75
0.694245
44
278
4.25
0.613636
0.064171
0
0
0
0
0
0
0
0
0
0.025862
0.165468
278
11
76
25.272727
0.780172
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7b4e0e54f3c3f85ca32ce0291d57609f455c16e8
2,322
py
Python
ml/notebook_examples/functions/main.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
146
2018-02-18T22:57:51.000Z
2022-02-03T10:27:40.000Z
ml/notebook_examples/functions/main.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
15
2019-02-15T10:05:30.000Z
2022-02-10T02:37:12.000Z
ml/notebook_examples/functions/main.py
bhjeong-goldenplanet/automl
0e24ef5d57b005a1185d1a583eff88ee9e45f748
[ "Apache-2.0" ]
88
2017-08-31T22:58:24.000Z
2022-02-18T05:30:47.000Z
import logging import datetime import logging import time import kfp import kfp.compiler as compiler import kfp.dsl as dsl import requests # TODO: replace yours # HOST = 'https://<yours>.pipelines.googleusercontent.com' HOST = 'https://7c7f7f3e3d11e1d4-dot-us-central2.pipelines.googleusercontent.com' @dsl.pipel...
36.28125
100
0.677864
293
2,322
5.293515
0.406143
0.078014
0.0245
0.020632
0.096712
0.096712
0.056738
0.056738
0.056738
0.056738
0
0.01458
0.143411
2,322
63
101
36.857143
0.765209
0.062016
0
0.115385
0
0.019231
0.319816
0.040553
0
0
0
0.015873
0
1
0.057692
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7b5532fc40e6566fb83f627ee0cc8cc8390442cc
2,311
py
Python
tools/sample.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
1,552
2016-09-29T18:59:01.000Z
2022-03-30T06:13:41.000Z
tools/sample.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
385
2016-10-01T11:21:18.000Z
2021-12-17T01:40:25.000Z
tools/sample.py
VanessaDo/cloudml-samples
ae6cd718e583944beef9d8a90db12091ac399432
[ "Apache-2.0" ]
983
2016-09-29T17:00:57.000Z
2022-03-30T06:13:46.000Z
# Copyright 2018 Google LLC # # 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 writing, s...
28.530864
112
0.708784
347
2,311
4.634006
0.521614
0.037313
0.016791
0.020522
0.034204
0
0
0
0
0
0
0.004362
0.206404
2,311
80
113
28.8875
0.87241
0.699264
0
0.068966
0
0
0.056726
0
0
0
0
0
0
1
0.137931
false
0.068966
0.172414
0
0.413793
0.068966
0
0
0
null
0
0
0
0
0
0
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
7b575d52bfdb4ce442a151e991ee733c0b91e84e
630
py
Python
test/drafts/2017-09-29_1852 Overall Testing/002.py
friedrichromstedt/upy
4b6b890259fb34bc69265fc400881587157b03a3
[ "MIT" ]
3
2015-06-01T23:09:38.000Z
2015-10-06T13:14:23.000Z
test/drafts/2017-09-29_1852 Overall Testing/002.py
friedrichromstedt/upy
4b6b890259fb34bc69265fc400881587157b03a3
[ "MIT" ]
null
null
null
test/drafts/2017-09-29_1852 Overall Testing/002.py
friedrichromstedt/upy
4b6b890259fb34bc69265fc400881587157b03a3
[ "MIT" ]
null
null
null
import numpy import upy2 from upy2 import u, U from upy2.typesetting import ScientificTypesetter # This test probably doesn't demonstrate the intended behaviour # anymore since :func:`upy2.numpy_operators.install_numpy_operators` # is now called unconditionally upon importing ``upy2``. U(2).default() ScientificTypese...
23.333333
68
0.728571
85
630
5.341176
0.517647
0.092511
0.092511
0
0
0
0
0
0
0
0
0.057971
0.12381
630
26
69
24.230769
0.764493
0.338095
0
0.133333
0
0
0.024272
0
0
0
0
0
0
0
null
null
0
0.266667
null
null
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7b5860717803ce2199610e4be9586a5adf093ff2
951
py
Python
iota/commands/extended/broadcast_and_store.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
347
2016-12-23T14:28:06.000Z
2019-09-30T13:46:30.000Z
iota/commands/extended/broadcast_and_store.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
194
2016-12-22T21:22:47.000Z
2019-10-01T09:01:16.000Z
iota/commands/extended/broadcast_and_store.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
147
2017-01-08T13:14:47.000Z
2019-10-01T22:27:31.000Z
from iota.commands import FilterCommand from iota.commands.core.broadcast_transactions import \ BroadcastTransactionsCommand from iota.commands.core.store_transactions import StoreTransactionsCommand import asyncio __all__ = [ 'BroadcastAndStoreCommand', ] class BroadcastAndStoreCommand(FilterCommand): "...
26.416667
74
0.690852
91
951
7.076923
0.56044
0.037267
0.074534
0.062112
0
0
0
0
0
0
0
0
0.221872
951
35
75
27.171429
0.87027
0.187171
0
0.090909
0
0
0.070385
0.031873
0
0
0
0
0
1
0.090909
false
0.090909
0.181818
0
0.409091
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
7b5c2aa6f59e06775840cabdfabbf3723e6640d3
1,161
py
Python
generate_encodings.py
AsimMessi/FaceRecognition
03329ee73f18330eb1b4b14533fba8226ff4ebd1
[ "CNRI-Python" ]
null
null
null
generate_encodings.py
AsimMessi/FaceRecognition
03329ee73f18330eb1b4b14533fba8226ff4ebd1
[ "CNRI-Python" ]
null
null
null
generate_encodings.py
AsimMessi/FaceRecognition
03329ee73f18330eb1b4b14533fba8226ff4ebd1
[ "CNRI-Python" ]
null
null
null
from tqdm import tqdm import face_recognition import glob import csv import numpy as np def generate_training_data(folder): r=0 print("Generating encodings for db images..") image_encodings=[] with tqdm(total=len(glob.glob(folder+"/*.jpg"))) as pbar: for img in glob.glob(folder+"/*.jpg"): ...
27
86
0.612403
150
1,161
4.613333
0.433333
0.040462
0.057803
0.049133
0
0
0
0
0
0
0
0.009401
0.267011
1,161
42
87
27.642857
0.80376
0.029285
0
0
1
0
0.153915
0.020463
0
0
0
0
0
1
0.029412
false
0.029412
0.147059
0
0.205882
0.088235
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
7b5f40dd4600f5790928eac3bbb0a722480016ce
697
py
Python
check_colors.py
IgaLewandowska/Check_colors
c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449
[ "Unlicense" ]
1
2021-07-27T17:19:29.000Z
2021-07-27T17:19:29.000Z
check_colors.py
IgaLewandowska/Check_colors
c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449
[ "Unlicense" ]
null
null
null
check_colors.py
IgaLewandowska/Check_colors
c1fb39f61e8a6528e4a2b26e3c8fc2f696c7f449
[ "Unlicense" ]
null
null
null
#import Pillow #from colors.py import generate_colors import colorthief from colorthief import ColorThief import glob from pathlib import Path def get_colors(image): dominant_color = ColorThief(image).get_palette(color_count=3, quality=3) return dominant_color #print (get_colors('blockchains/polygon/info/logo.png'...
17.871795
73
0.687231
99
697
4.69697
0.393939
0.058065
0.034409
0.055914
0
0
0
0
0
0
0
0.006849
0.162123
697
39
74
17.871795
0.789384
0.17934
0
0
1
0
0.043937
0
0
0
0
0
0
1
0.136364
false
0
0.181818
0
0.409091
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b650ffd3764367fa23c5dfe1939411c676bc9c2
1,345
py
Python
src/denzel/app/logic/pipeline.py
eliorc/denzel
429a7c277b1a4ee515e3a112a8734b58fc89f53a
[ "Apache-2.0" ]
17
2018-10-02T07:09:45.000Z
2021-11-30T11:02:28.000Z
src/denzel/app/logic/pipeline.py
eliorc/denzel
429a7c277b1a4ee515e3a112a8734b58fc89f53a
[ "Apache-2.0" ]
4
2018-10-22T10:18:17.000Z
2020-09-02T14:31:31.000Z
src/denzel/app/logic/pipeline.py
eliorc/denzel
429a7c277b1a4ee515e3a112a8734b58fc89f53a
[ "Apache-2.0" ]
2
2018-10-28T10:17:57.000Z
2020-02-05T22:12:04.000Z
# -------- Handled by api container -------- def verify_input(json_data): """ Verifies the validity of an API request content :param json_data: Parsed JSON accepted from API call :type json_data: dict :return: Data for the the process function """ # callback_uri is needed to sent the respo...
24.907407
81
0.672862
186
1,345
4.774194
0.354839
0.072072
0.047297
0.04955
0.15991
0.108108
0.108108
0.108108
0.108108
0
0
0
0.24461
1,345
53
82
25.377358
0.874016
0.69145
0
0.2
0
0
0.121311
0
0
0
0
0
0
1
0.4
false
0
0
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7b6b4e1f3cfbf1acd6b4eda1099739c610256a9e
3,791
py
Python
client/scripts/assets/generator_strings.py
thefstock/FirstockPy
09b4dcf3470f83de991b43213958d2c6783f997b
[ "MIT" ]
1
2022-03-29T06:56:06.000Z
2022-03-29T06:56:06.000Z
client/scripts/assets/generator_strings.py
thefstock/FirstockPy
09b4dcf3470f83de991b43213958d2c6783f997b
[ "MIT" ]
3
2022-01-17T09:31:21.000Z
2022-03-11T12:12:08.000Z
client/scripts/assets/generator_strings.py
thefstock/FirstockPy
09b4dcf3470f83de991b43213958d2c6783f997b
[ "MIT" ]
null
null
null
DATASOURCE = """ \"\"\" Datasource for handling {module} operations \"\"\" from ...utils.datasources import NorenRestDataSource from . import endpoints from .models import * class {classname}DataSource(NorenRestDataSource): \"\"\" Datasource for handling {module} operations \"\"\" pass """ ENDPOINTS = """ \"\...
26.326389
115
0.681087
448
3,791
5.669643
0.316964
0.019685
0.018898
0.02126
0.093701
0
0
0
0
0
0
0
0.174624
3,791
144
116
26.326389
0.811761
0
0
0.278689
0
0.016393
0.960179
0.232859
0
0
0
0
0.04918
1
0
false
0.02459
0.172131
0
0.180328
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
7b6f4563c5ab019e160d85938da2d210a0d4edfe
558
py
Python
djspace/bin/gm2m.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
null
null
null
djspace/bin/gm2m.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
null
null
null
djspace/bin/gm2m.py
carthagecollege/django-djspace
0fd26cccecdfd644255b323664e69b856ec90838
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import django import os import sys django.setup() # env os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djspace.settings.shell') from django.contrib.auth.models import User user = User.objects.get(pk=1217743) print(user) apps = user.profile.applica...
16.411765
73
0.646953
78
558
4.461538
0.564103
0.103448
0.057471
0
0
0
0
0
0
0
0
0.020737
0.222222
558
33
74
16.909091
0.781106
0.086022
0
0
0
0
0.149153
0.149153
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7b701d018f72c6274782522b665cf6b4697b256a
1,110
py
Python
estruturais/flyweight/main.py
caio-bernardo/design-patterns-python
8a3643c510628ae18329f032fb6bee1fea5217e7
[ "Apache-2.0" ]
363
2018-07-30T18:52:55.000Z
2022-03-29T23:04:26.000Z
estruturais/flyweight/main.py
sou-rafael/design-patterns-python
e955d570265c154863fbfc65564dd4781f549042
[ "Apache-2.0" ]
7
2018-07-14T20:19:23.000Z
2020-04-17T00:24:30.000Z
estruturais/flyweight/main.py
sou-rafael/design-patterns-python
e955d570265c154863fbfc65564dd4781f549042
[ "Apache-2.0" ]
99
2018-09-06T18:11:43.000Z
2022-03-27T13:32:45.000Z
class KarakTea: def __init__(self, tea_type): self.__tea_type = tea_type @property def tea_type(self): return self.__tea_type class TeaMaker: def __init__(self): self.__available_tea = dict() def make(self, preference): if preference not in self.__available_tea: ...
25.227273
68
0.643243
145
1,110
4.462069
0.289655
0.075734
0.068006
0.074189
0.100464
0.071097
0
0
0
0
0
0.003601
0.24955
1,110
43
69
25.813953
0.773109
0
0
0
0
0
0.065766
0
0
0
0
0
0
1
0.225806
false
0
0
0.032258
0.387097
0.032258
0
0
0
null
0
0
0
0
0
0
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
7b76029f7d5d2e9aeefbc44766d1e980a22135d8
1,433
py
Python
operative/test/report_test.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
operative/test/report_test.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
operative/test/report_test.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
import unittest import operative import datetime from caliendo.patch import patch from caliendo import expected_value from nose.tools import eq_, ok_ from operative.settings import TEST_FTP_LOGIN class ReportTest(unittest.TestCase): """ Test the various reports. """ @patch('operative.FTPConnection...
31.152174
120
0.68388
176
1,433
5.261364
0.363636
0.032397
0.053996
0.075594
0.193305
0.152268
0.12311
0.12311
0.12311
0.12311
0
0.014337
0.221214
1,433
45
121
31.844444
0.815412
0.11305
0
0
0
0
0.119804
0.096985
0
0
0
0
0
1
0.086957
false
0
0.347826
0
0.478261
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
7b7712cdf29f6b758faa65e27678a4639698f692
1,653
py
Python
pys/006_get_table_columns.py
indecipherable/linuxtest_dust
be1801be7776d044c2d794decc65f7a2df6e7e5f
[ "CC0-1.0" ]
null
null
null
pys/006_get_table_columns.py
indecipherable/linuxtest_dust
be1801be7776d044c2d794decc65f7a2df6e7e5f
[ "CC0-1.0" ]
null
null
null
pys/006_get_table_columns.py
indecipherable/linuxtest_dust
be1801be7776d044c2d794decc65f7a2df6e7e5f
[ "CC0-1.0" ]
null
null
null
# works as intended import mysql.connector from mysql.connector import errorcode import sys import re import os from pprint import pprint as p # trying to import where_am_i as module #import importlib #where_am_i="/000_where_am_i" #sys.path.append(os.getcwd()) #import 000_where_am_i #pm = __import__(where_am_i) #find_w...
28.5
77
0.709619
252
1,653
4.440476
0.404762
0.075067
0.042895
0.042895
0.094727
0.094727
0.094727
0.094727
0
0
0
0.010256
0.174229
1,653
57
78
29
0.809524
0.318814
0
0.166667
0
0
0.130866
0
0
0
0
0
0
1
0.055556
false
0.055556
0.222222
0
0.361111
0.138889
0
0
0
null
0
0
0
0
0
0
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
7b7a76a50135ec7df6e8cfcbd270d76696ab1a94
1,259
py
Python
arike/visits/migrations/0005_auto_20220304_2228.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
arike/visits/migrations/0005_auto_20220304_2228.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
arike/visits/migrations/0005_auto_20220304_2228.py
iamsdas/arike
ab76f48f49cd794dd4b77172b347e260a03413b2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-03-04 16:58 import datetime from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('patients', '0014_auto_20220304_2228'), ('visits', '0004_auto_...
33.131579
110
0.622716
136
1,259
5.661765
0.411765
0.020779
0.12987
0.150649
0.455844
0.455844
0.280519
0.280519
0.280519
0.280519
0
0.108858
0.255759
1,259
37
111
34.027027
0.712914
0.036537
0
0.419355
1
0
0.138728
0.037985
0
0
0
0
0
1
0
false
0
0.129032
0
0.225806
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
7b7ad708513ba9938e072dd7e68e4a160e724f26
840
py
Python
app/routers/weather/models.py
neurothrone/weather-api
c4fcfd69e2c21d97055f26befbd40bf675c5a805
[ "MIT" ]
null
null
null
app/routers/weather/models.py
neurothrone/weather-api
c4fcfd69e2c21d97055f26befbd40bf675c5a805
[ "MIT" ]
null
null
null
app/routers/weather/models.py
neurothrone/weather-api
c4fcfd69e2c21d97055f26befbd40bf675c5a805
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from app.shared.enums import Units class LocationBase(BaseModel): units: Units = Units.METRIC class CityLocation(BaseModel): city: str state: str | None = Field(default=None, max_length=3) country: str | None = None class Config: schema_extra = { ...
19.090909
57
0.547619
86
840
5.313953
0.418605
0.105033
0.09628
0.078775
0.126915
0
0
0
0
0
0
0.009208
0.353571
840
43
58
19.534884
0.832413
0
0
0.25
0
0
0.045238
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.65625
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
7b8381b19b671065bbfaddd02f7a764dd81eb127
491
py
Python
redditpoller/migrations/0014_auto_20170304_1513.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
8
2017-03-17T14:10:59.000Z
2017-09-24T12:36:34.000Z
redditpoller/migrations/0014_auto_20170304_1513.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
null
null
null
redditpoller/migrations/0014_auto_20170304_1513.py
ericleepa/watcherforreddit
3b74534be3dcb97cac3ce5529b0db2ef659725f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-04 20:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('redditpoller', '0013_watchedsubreddit_watchedsubredditthreads'), ] operations = [ m...
23.380952
74
0.655804
48
491
6.458333
0.791667
0.064516
0
0
0
0
0
0
0
0
0
0.056452
0.242363
491
20
75
24.55
0.776882
0.138493
0
0
1
0
0.264286
0.161905
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b86c4d0f20873e5d49e0fbc51331999b417486c
858
py
Python
2018/aoc/d7/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
1
2018-12-12T22:59:44.000Z
2018-12-12T22:59:44.000Z
2018/aoc/d7/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
null
null
null
2018/aoc/d7/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
null
null
null
import unittest from unittest.mock import mock_open, patch from aoc.d7.main import step_order, time_required DATA = "Step C must be finished before step A can begin.\nStep C must be finished before step F can begin.\nStep A must be finished before step B can begin.\nStep A must be finished before step D can begin.\nS...
40.857143
359
0.727273
139
858
4.33813
0.309353
0.069652
0.162521
0.232172
0.588723
0.588723
0.505804
0.505804
0.451078
0.199005
0
0.007153
0.185315
858
20
360
42.9
0.855508
0
0
0.153846
0
0.076923
0.454545
0
0
0
0
0
0.153846
1
0.153846
false
0
0.230769
0
0.461538
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
7b89734c37d1b8da5691626260f3127c67b34ac0
925
py
Python
stack/valid_parenthesis.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
8
2017-07-02T15:17:25.000Z
2017-09-18T15:37:51.000Z
stack/valid_parenthesis.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
null
null
null
stack/valid_parenthesis.py
javyxu/algorithms-python
2076d0f22c2d6b2dd53a5e1d2a9a3000ef2c9d38
[ "MIT" ]
5
2017-11-24T06:55:23.000Z
2019-05-17T06:47:36.000Z
""" Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. """ def is_valid(s:"str")->"bool": stack = [] dic = { ")":"(", "}":...
23.717949
60
0.475676
104
925
4.096154
0.403846
0.115023
0.176056
0.199531
0.316901
0.316901
0.316901
0.316901
0.316901
0.316901
0
0
0.32
925
38
61
24.342105
0.677266
0.244324
0
0.269231
0
0
0.060781
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.153846
0.192308
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
7b8af8f9a2a2aa6da75633af2422c6bcd9c5f395
2,050
py
Python
src/figs/figS03.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
2
2020-08-21T04:06:12.000Z
2022-02-09T07:36:58.000Z
src/figs/figS03.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
null
null
null
src/figs/figS03.py
RPGroup-PBoC/chann_cap
f2a826166fc2d47c424951c616c46d497ed74b39
[ "MIT" ]
2
2020-04-29T17:43:28.000Z
2020-09-09T00:20:16.000Z
#%% import os import pickle import cloudpickle import itertools import glob import numpy as np import scipy as sp import pandas as pd import git # Import matplotlib stuff for plotting import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib as mpl # Seaborn, useful for graphics import seaborn as s...
25
74
0.731707
324
2,050
4.512346
0.481481
0.043776
0.012312
0.018468
0.015048
0
0
0
0
0
0
0.012622
0.149756
2,050
81
75
25.308642
0.826162
0.245854
0
0
0
0
0.165793
0.065531
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7b95135de00166af50507dff7bb30fab06a0b8e3
669
py
Python
tests/test_autommittee.py
rodsenra/socialgraph
8ff91dda8fa210958d137f46bd6e7759004bcd22
[ "0BSD" ]
null
null
null
tests/test_autommittee.py
rodsenra/socialgraph
8ff91dda8fa210958d137f46bd6e7759004bcd22
[ "0BSD" ]
2
2016-05-07T14:02:20.000Z
2017-05-29T19:08:28.000Z
tests/test_autommittee.py
rodsenra/socialgraph
8ff91dda8fa210958d137f46bd6e7759004bcd22
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test some edge cases. """ import unittest from socialgraph import autommittee class TestPowerHistory(unittest.TestCase): def setUp(self): self.G = autommittee.Graph() self.G.add_edge('b', 'a') self.G.add_edge('a', 'c') self.G.add...
24.777778
99
0.547085
99
669
3.585859
0.424242
0.126761
0.112676
0.169014
0.109859
0
0
0
0
0
0
0.015355
0.221226
669
27
99
24.777778
0.666027
0.095665
0
0
0
0
0.031826
0
0
0
0
0
0.133333
1
0.2
false
0
0.133333
0
0.4
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
7b9d52d1ec4946ccbfccbbb2a26ccd6088b08d83
1,060
py
Python
new_trade/main.py
cbbing/stock
6bde95c447544b719094f045817690c54c6e730f
[ "Apache-2.0" ]
31
2015-10-25T05:31:49.000Z
2022-01-11T19:07:16.000Z
new_trade/main.py
cbbing/stock
6bde95c447544b719094f045817690c54c6e730f
[ "Apache-2.0" ]
null
null
null
new_trade/main.py
cbbing/stock
6bde95c447544b719094f045817690c54c6e730f
[ "Apache-2.0" ]
21
2015-07-17T10:11:18.000Z
2020-06-08T07:23:03.000Z
#coding: utf-8 import tushare as ts import pandas as pd from util.date_convert import GetNowDate def diagnosis_one_stock(code): """ 个股诊断 :return: """ # 获取股价 df = get_stock_price(code, True) # 均线指标 # K线提示 def get_stock_price(code, include_realtime_price): """ 获取个股股价 :p...
20
64
0.608491
143
1,060
4.244755
0.41958
0.059308
0.06425
0.056013
0
0
0
0
0
0
0
0.008827
0.251887
1,060
52
65
20.384615
0.75662
0.048113
0
0
0
0
0.064368
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ba155479360f06786ac722089af3c649e7f8c18
605
py
Python
app/chat/migrations/0002_alter_chatmessage_user_id.py
GonnaFlyMethod/simple_chat
9135003a1def28909c27a50d4cf38e0de52c7285
[ "MIT" ]
null
null
null
app/chat/migrations/0002_alter_chatmessage_user_id.py
GonnaFlyMethod/simple_chat
9135003a1def28909c27a50d4cf38e0de52c7285
[ "MIT" ]
null
null
null
app/chat/migrations/0002_alter_chatmessage_user_id.py
GonnaFlyMethod/simple_chat
9135003a1def28909c27a50d4cf38e0de52c7285
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-20 13:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('chat', '0001_initial'), ...
27.5
144
0.677686
72
605
5.555556
0.625
0.06
0.07
0.11
0
0
0
0
0
0
0
0.039916
0.213223
605
21
145
28.809524
0.80042
0.07438
0
0
1
0
0.071685
0
0
0
0
0
0
1
0
false
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ba2b9885e7419789b525be966e28d5deb8f52a2
2,736
py
Python
SourceModel/SM_Constants.py
crossminer/CrossPuppeteer
ab99f67f9c3440752e767ad284de5049f6fd1da9
[ "Apache-2.0" ]
47
2016-02-08T08:46:17.000Z
2021-01-17T23:56:34.000Z
SourceModel/SM_Constants.py
crossminer/CrossPuppeteer
ab99f67f9c3440752e767ad284de5049f6fd1da9
[ "Apache-2.0" ]
null
null
null
SourceModel/SM_Constants.py
crossminer/CrossPuppeteer
ab99f67f9c3440752e767ad284de5049f6fd1da9
[ "Apache-2.0" ]
15
2016-02-09T13:34:48.000Z
2021-05-12T14:34:26.000Z
CLASS_REGEX = r'class [\w\d\:\-_\']+(?:\:\:[\w\d\:\-_\']+)*\s*(?:\(.+\)\s*)*{*' CLASS_NAME_REGEX = r'class ([\w\d\:\-_\']+(?:\:\:[\w\d\:\-_\']+)*)\s*(?:\(.+\)\s*)*{*' DEFINE_REGEX = r'define \w+(?:\:\:\w+)*\s*(?:\(.+\)\s*)*{*' FILE_REGEX = r'file\W*\{\W*\'.+\'\W*:|file\W*\{\W*\".+\"\W*:|file\W*{\W*\$.+\W*:' PACKAGE_REG...
51.622642
224
0.419956
364
2,736
2.947802
0.112637
0.096925
0.064306
0.039143
0.575023
0.439888
0.439888
0.422181
0.335508
0.303821
0
0.005477
0.065789
2,736
52
225
52.615385
0.414319
0.120249
0
0
0
0
0.520799
0.310316
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ba6fcf48c431270a02aaeb44766b07f105ad811
709
py
Python
HW1/election_count.py
profrichto/handson
b0803694256682d66c574054175355df601cae31
[ "MIT" ]
null
null
null
HW1/election_count.py
profrichto/handson
b0803694256682d66c574054175355df601cae31
[ "MIT" ]
null
null
null
HW1/election_count.py
profrichto/handson
b0803694256682d66c574054175355df601cae31
[ "MIT" ]
null
null
null
import mediacloud, datetime #Default key: The variable 'key' must be edited according to the specific mediacloud user key = '00' mc = mediacloud.api.MediaCloud(key) #Comparison of number of stories written about 'Trump' and 'Clinton' in September 2016 res = mc.sentenceCount('Trump', solr_filter=[mc.publish_date_query...
64.454545
150
0.737659
108
709
4.75
0.490741
0.093567
0.124756
0.074074
0.300195
0.300195
0.300195
0.300195
0.300195
0.300195
0
0.064725
0.12835
709
10
151
70.9
0.765372
0.244006
0
0
0
0
0.257036
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7bbf5f1e0966c56c43c7200eb9356e5354e57273
505
py
Python
src/Jupyter/Jupyter_frontend.py
Chaostheeory/Insight-DOTA-Mine
c5e3b354bbab4e00335b370a44086a2a7be8acf6
[ "MIT" ]
null
null
null
src/Jupyter/Jupyter_frontend.py
Chaostheeory/Insight-DOTA-Mine
c5e3b354bbab4e00335b370a44086a2a7be8acf6
[ "MIT" ]
1
2019-02-25T05:04:55.000Z
2019-02-25T05:04:55.000Z
src/Jupyter/Jupyter_frontend.py
Chaostheeory/Insight-DOTA-Mine
c5e3b354bbab4e00335b370a44086a2a7be8acf6
[ "MIT" ]
null
null
null
import pandas as pd import psycopg2 #from sqlalchemy import create_engine psql_credeintal = { 'database': 'wode', 'user': 'wode', 'password': '***', 'host': '54.242.73.153', 'port': '5432' } con = psycopg2.connect(**psql_credeintal) def get_winrate(user_id): query = "SE...
24.047619
100
0.657426
64
505
5
0.640625
0.05625
0.06875
0
0
0
0
0
0
0
0
0.063131
0.215842
505
20
101
25.25
0.744949
0.071287
0
0
0
0
0.282051
0
0
0
0
0
0
1
0.066667
false
0.066667
0.133333
0
0.266667
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
7bc22ec533935bcfd3ea53a0c34c0cdfbab724ae
315
py
Python
reports/utils.py
Rakib1508/django-sales-stat
c48799f5d26ac6a4ccfde4ffdad0e96707a7be11
[ "MIT" ]
null
null
null
reports/utils.py
Rakib1508/django-sales-stat
c48799f5d26ac6a4ccfde4ffdad0e96707a7be11
[ "MIT" ]
null
null
null
reports/utils.py
Rakib1508/django-sales-stat
c48799f5d26ac6a4ccfde4ffdad0e96707a7be11
[ "MIT" ]
null
null
null
from django.core.files.base import ContentFile import base64 import uuid def get_report_image(data): _, image_binary = data.split(';base64') decoded_image = base64.b64decode(image_binary) img_name = str(uuid.uuid4())[:10] + '.png' data = ContentFile(decoded_image, name=img_name) return data
24.230769
52
0.72381
43
315
5.093023
0.581395
0.100457
0
0
0
0
0
0
0
0
0
0.041667
0.161905
315
12
53
26.25
0.787879
0
0
0
0
0
0.034921
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7bc8bd2122d15e4afb888511bbc4093977fac011
11,215
py
Python
tests/paradrop/lib/utils/test_utils.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
1
2018-03-22T13:04:19.000Z
2018-03-22T13:04:19.000Z
tests/paradrop/lib/utils/test_utils.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
tests/paradrop/lib/utils/test_utils.py
VegetableChook/Paradrop
a38e1773877d5b136c3b626edd8c033a12b43e56
[ "Apache-2.0" ]
null
null
null
import copy import errno import os import tempfile from mock import MagicMock, Mock, patch from nose.tools import assert_raises from pdmock import MockChute, MockChuteStorage, writeTempFile from paradrop.lib.utils import pdos from paradrop.lib.utils import pdosq from paradrop.lib.utils.pd_storage import PDStorage ...
30.895317
85
0.669461
1,407
11,215
5.283582
0.214641
0.027845
0.011299
0.027845
0.373419
0.289884
0.187248
0.134786
0.089185
0.053134
0
0.021668
0.209897
11,215
362
86
30.980663
0.817289
0.157735
0
0.183761
0
0
0.120734
0.014059
0
0
0
0.002762
0.42735
1
0.042735
false
0.008547
0.059829
0.008547
0.115385
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
7bce784cb4a5472980ae26619eb181f6a302f432
616
py
Python
products/urls.py
okosamastar/nisshin_b2b
7576eb464ca90a191e57dddddfdfd0aff76d2291
[ "MIT" ]
null
null
null
products/urls.py
okosamastar/nisshin_b2b
7576eb464ca90a191e57dddddfdfd0aff76d2291
[ "MIT" ]
3
2022-03-25T06:31:45.000Z
2022-03-31T06:34:00.000Z
products/urls.py
okosamastar/nisshin_b2b
7576eb464ca90a191e57dddddfdfd0aff76d2291
[ "MIT" ]
null
null
null
from django.urls import path from . import views # from django.views.generic import RedirectView urlpatterns = [ path("", views.CategoriesView.as_view(), name="products.category"), # path("detail/", RedirectView.as_view(url="/b2b/products/")), path("detail/<slug:slug>", views.ProductDetail.as_view(), na...
34.222222
87
0.675325
76
616
5.394737
0.342105
0.087805
0.121951
0.219512
0.358537
0.358537
0.273171
0.273171
0.273171
0.273171
0
0.001855
0.125
616
17
88
36.235294
0.758813
0.172078
0
0
0
0
0.291913
0.04142
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
7bcee7a296c47e3d70c208791eb85e3e3f8c39aa
6,158
py
Python
lesson5/utils.py
BaiduOSS/PaddleTutorial
d71136c105b78b57c5df1fe98e19e2fd8ee65045
[ "Apache-2.0" ]
33
2018-03-18T08:56:11.000Z
2022-01-06T14:43:54.000Z
lesson5/utils.py
weiexcelpro/DeepLearningAndPaddleTutorial
01efade3b02204042b771aeecd887e320b5e10a1
[ "Apache-2.0" ]
5
2017-12-06T12:40:59.000Z
2019-07-05T08:47:48.000Z
lesson5/utils.py
weiexcelpro/DeepLearningAndPaddleTutorial
01efade3b02204042b771aeecd887e320b5e10a1
[ "Apache-2.0" ]
43
2017-12-06T12:51:16.000Z
2022-01-06T14:44:00.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Authors: Jiahui Liu(2505774110@qq.com) Date: 2017/11/17 17:27:06 """ import h5py import matplotlib.pyplot as plt import numpy as np def initialize_parameters(layer): """ 初始化参数 Args: layer:各层所包含的节点数 Return: parameters:参数,包括w和...
21.683099
77
0.551315
816
6,158
4.03799
0.262255
0.054628
0.010926
0.02003
0.246434
0.168437
0.109256
0.055235
0
0
0
0.025024
0.312114
6,158
283
78
21.759717
0.752833
0.063495
0
0.179245
0
0
0.046279
0.011212
0
0
0
0
0
0
null
null
0
0.028302
null
null
0.009434
0
0
0
null
0
0
0
0
0
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
c8754fc2e4082e0b8b4ffcad68022a9053c6774e
214
py
Python
01_Primeiros passos_Fundamentos/05_metros_centimentos.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
01_Primeiros passos_Fundamentos/05_metros_centimentos.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
01_Primeiros passos_Fundamentos/05_metros_centimentos.py
Basilio40/exercicios_Python
327a6430e36e8a37596bed521617a2eba3024ddb
[ "Apache-2.0" ]
null
null
null
'''Faça um Programa que converta metros para centímetros.''' # Resposta: metro = float(input('Informe a media em metros: ')) cent = int(metro * 100) print(f'Convertendo {metro}m em centímetros, temos: {cent}cm')
26.75
62
0.71028
31
214
4.903226
0.806452
0
0
0
0
0
0
0
0
0
0
0.016393
0.14486
214
7
63
30.571429
0.814208
0.303738
0
0
0
0
0.552448
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
c8788da656d661653155fe9a85ee51fbde582489
415
py
Python
pythonbrasil/exercicios/decisao/DE resp 03.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
pythonbrasil/exercicios/decisao/DE resp 03.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
pythonbrasil/exercicios/decisao/DE resp 03.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
fm = str(input("Digite o sexo - [M - Masculino] ou [F - Feminino]: ")) def foum(): if fm == "M": print("M - Masculino") if fm == "F": print("F - Feminino") def si(): while fm != "M" and fm != "F": print("Sexo inválido, tente novamente!") fm = str(input("...
24.411765
82
0.457831
52
415
3.653846
0.403846
0.157895
0.105263
0.168421
0.442105
0.442105
0.442105
0.442105
0.442105
0.442105
0
0
0.356627
415
16
83
25.9375
0.71161
0
0
0.307692
0
0
0.390361
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.153846
0.230769
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
c885477d38c579133a38fd201449fbecb68b3223
3,952
py
Python
statistics_check.py
bugo99iot/airbnb_k_nearest
1df3887c519dfa3b344a31a37c962084ad7bedd1
[ "Apache-2.0" ]
9
2017-10-08T02:10:10.000Z
2021-01-08T00:08:41.000Z
statistics_check.py
bugo99iot/airbnb_k_nearest
1df3887c519dfa3b344a31a37c962084ad7bedd1
[ "Apache-2.0" ]
null
null
null
statistics_check.py
bugo99iot/airbnb_k_nearest
1df3887c519dfa3b344a31a37c962084ad7bedd1
[ "Apache-2.0" ]
19
2017-10-08T14:45:55.000Z
2021-08-16T22:51:32.000Z
import pandas as pd import numpy as np from scipy.spatial import distance import sys import json import math columns = ["price", "room_type", "accommodates", "bedrooms", "bathrooms", "beds", "number_of_reviews", "latitude", "longitude", "review_scores_value"] #load cities' information with open('cities_dictionary.jso...
31.365079
170
0.717105
575
3,952
4.683478
0.297391
0.151504
0.029707
0.04456
0.235797
0.197921
0.130338
0.130338
0.103231
0.103231
0
0.012511
0.150557
3,952
125
171
31.616
0.789693
0.112095
0
0.053333
0
0
0.205268
0.018322
0
0
0
0
0
0
null
null
0
0.08
null
null
0.053333
0
0
0
null
0
0
0
0
0
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
c88aab50aa809775d548741873392a512cd15157
21,504
py
Python
mafComparator/comparatorSummarizer.py
dadidange/mafTools
ac30f729be79fb6fe43a67f0c8a47c2e56963548
[ "MIT" ]
null
null
null
mafComparator/comparatorSummarizer.py
dadidange/mafTools
ac30f729be79fb6fe43a67f0c8a47c2e56963548
[ "MIT" ]
null
null
null
mafComparator/comparatorSummarizer.py
dadidange/mafTools
ac30f729be79fb6fe43a67f0c8a47c2e56963548
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ comparatorSummarizer.py dent earl, dearl (a) soe ucsc edu 22 November 2011 Simple utility to summarize output of mafComparator for use with alignathon competetition. """ # Note: Actually belongs to https://github.com/dentearl/mwgAlignAnalysis # but was moved in here for convenience ########...
51.078385
142
0.590402
2,087
21,504
6.071874
0.191184
0.006629
0.023201
0.02762
0.286222
0.261048
0.252999
0.248106
0.216146
0.163352
0
0.01461
0.299758
21,504
420
143
51.2
0.826936
0.122442
0
0.248555
0
0.020231
0.092407
0.009386
0
0
0
0
0.011561
0
null
null
0.00289
0.011561
null
null
0.031792
0
0
0
null
0
0
0
0
0
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
c88e549574497e07287c4e8048ebe0d462a7f5e3
2,214
py
Python
bluebird/sim_client/bluesky/sim_client.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
8
2019-01-29T15:19:39.000Z
2020-07-16T03:55:36.000Z
bluebird/sim_client/bluesky/sim_client.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
46
2019-02-08T14:23:11.000Z
2021-04-06T13:45:10.000Z
bluebird/sim_client/bluesky/sim_client.py
rkm/bluebird
2325ebb151724d4444c092c095a040d7365dda79
[ "MIT" ]
3
2019-05-06T14:18:07.000Z
2021-06-17T10:39:59.000Z
""" BlueSky simulation client class """ # TODO: Need to re-add the tests for string parsing/units from the old API tests import os from typing import List from semver import VersionInfo from .bluesky_aircraft_controls import BlueSkyAircraftControls from .bluesky_simulator_controls import BlueSkySimulatorControls from...
30.75
86
0.724029
275
2,214
5.621818
0.407273
0.045278
0.03881
0
0
0
0
0
0
0
0
0.000565
0.200542
2,214
71
87
31.183099
0.872881
0.178862
0
0.069767
0
0
0.054372
0
0
0
0
0.014085
0.046512
1
0.186047
false
0
0.209302
0.093023
0.534884
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
c890e90a3e98b6bea29fc02df9a08e7506ee1738
855
py
Python
questions/permutations/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/permutations/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/permutations/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
''' Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] ''' class Solution: def permute(self, nums: List[int]) -> List[List[int]]: def generate_permutation(nums, ret, curr, visited...
21.923077
74
0.48655
100
855
4.13
0.4
0.01937
0.135593
0.188862
0.268765
0.268765
0
0
0
0
0
0.039848
0.383626
855
38
75
22.5
0.743833
0.207018
0
0.105263
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.263158
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
c89a4a481dbee1cb826ea24e3dee83a4045bac0c
1,612
py
Python
BaseTools/PythonLibrary/Uefi/Capsule/CatGenerator_test.py
StefMa/mu_basecore
12287e65da8053c8d43d198ad94d0cb2e5a8367d
[ "BSD-2-Clause" ]
null
null
null
BaseTools/PythonLibrary/Uefi/Capsule/CatGenerator_test.py
StefMa/mu_basecore
12287e65da8053c8d43d198ad94d0cb2e5a8367d
[ "BSD-2-Clause" ]
null
null
null
BaseTools/PythonLibrary/Uefi/Capsule/CatGenerator_test.py
StefMa/mu_basecore
12287e65da8053c8d43d198ad94d0cb2e5a8367d
[ "BSD-2-Clause" ]
null
null
null
import os import logging import unittest from Uefi.Capsule.CatGenerator import * #must run from build env or set PYTHONPATH env variable to point to the PythonLibrary folder class CatGeneratorTest(unittest.TestCase): def test_win10_OS(self): o = CatGenerator("x64", "win10") self.assertEqual(o.OperatingSyst...
27.322034
92
0.687345
208
1,612
5.221154
0.317308
0.070902
0.140884
0.116022
0.39779
0.332413
0.247698
0.188766
0
0
0
0.050784
0.169355
1,612
58
93
27.793103
0.760269
0.056452
0
0.25
0
0
0.137022
0
0
0
0
0
0.3
1
0.275
false
0
0.1
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
1
0
0
0
0
0
0
0
1
c8a05881cea2e9222e5679c4d68721b3033524b4
1,212
py
Python
mtp_api/apps/security/migrations/0018_auto_20181003_1117.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/security/migrations/0018_auto_20181003_1117.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/security/migrations/0018_auto_20181003_1117.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
# Generated by Django 2.0.8 on 2018-10-03 10:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('prison', '0016_auto_20171121_1110'), ('security', '0017_auto_20180914_1613'), ] operations = [ migrations.AddField( mode...
30.3
99
0.594059
107
1,212
6.579439
0.495327
0.06392
0.130682
0.153409
0.423295
0.318182
0.318182
0.21875
0.21875
0.21875
0
0.056977
0.290429
1,212
39
100
31.076923
0.761628
0.037129
0
0.454545
1
0
0.221459
0.060944
0
0
0
0
0
1
0
false
0
0.030303
0
0.121212
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
c8b239eca0a1d2f5dc5a1af020c95ed9fd5dbe3f
670
py
Python
src/components/kankeiforms/__init__.py
BigJerBD/Kankei-Backend
22e512405dff98c9b517d483ac7ddd168c459999
[ "MIT" ]
null
null
null
src/components/kankeiforms/__init__.py
BigJerBD/Kankei-Backend
22e512405dff98c9b517d483ac7ddd168c459999
[ "MIT" ]
null
null
null
src/components/kankeiforms/__init__.py
BigJerBD/Kankei-Backend
22e512405dff98c9b517d483ac7ddd168c459999
[ "MIT" ]
null
null
null
from components.kankeiforms.kankeiform import KankeiForm def init(config): KankeiForm.timeout = config.DB_TIMEOUT_SEC from . import exploration from . import comparison from . import random def get_kankeiforms(config): init(config) return KankeiForm.registry def get_kankeiforms_dict(config...
24.814815
76
0.698507
82
670
5.646341
0.54878
0.064795
0.073434
0
0
0
0
0
0
0
0
0
0.222388
670
26
77
25.769231
0.888676
0.225373
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.266667
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
c8cbf97a615a9819b5b19beded09290020f9eb12
4,163
py
Python
tests/graph/test_ppatterns.py
saezlab/squidpy
d3532fce65c57afaf8cbed61e82435319c63ca54
[ "BSD-3-Clause" ]
null
null
null
tests/graph/test_ppatterns.py
saezlab/squidpy
d3532fce65c57afaf8cbed61e82435319c63ca54
[ "BSD-3-Clause" ]
null
null
null
tests/graph/test_ppatterns.py
saezlab/squidpy
d3532fce65c57afaf8cbed61e82435319c63ca54
[ "BSD-3-Clause" ]
null
null
null
import pytest from anndata import AnnData from pandas.testing import assert_frame_equal import numpy as np from squidpy.gr import moran, ripley_k, co_occurrence MORAN_K = "moranI" def test_ripley_k(adata: AnnData): """Check ripley score and shape.""" ripley_k(adata, cluster_key="leiden") # assert rip...
41.217822
111
0.723517
646
4,163
4.422601
0.19969
0.084004
0.036402
0.027301
0.610081
0.529226
0.500525
0.455723
0.419321
0.419321
0
0.015612
0.153735
4,163
100
112
41.63
0.795345
0.184482
0
0.280702
0
0
0.088464
0
0
0
0
0
0.45614
1
0.087719
false
0
0.087719
0
0.175439
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
c8d35523a045f3013f4710bab1beb903b85de30e
896
py
Python
Machine-Learning-with-Python- From-LM-to-DL/Midterm/04_midterm_exercise.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
1
2020-09-29T17:29:34.000Z
2020-09-29T17:29:34.000Z
Machine-Learning-with-Python- From-LM-to-DL/Midterm/04_midterm_exercise.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
Machine-Learning-with-Python- From-LM-to-DL/Midterm/04_midterm_exercise.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
import numpy as np classification_vector= np.array([-1,-1,-1,-1,-1,1,1,1,1,1]) data_vector= np.array([[0,0], [2,0],[3,0], [0,2],[2,2],[5,1],[5,2],[2,4],[4,4],[5,5]]) def quadratic_kernel(data_vector): return np.array((1 + np.dot(data_vector, data_vector.T))**2) def perceptron_quadratic_kernel(feature_matrix, la...
29.866667
86
0.580357
138
896
3.601449
0.297101
0.036217
0.04829
0.056338
0.020121
0.020121
0.020121
0.020121
0.020121
0
0
0.064083
0.251116
896
29
87
30.896552
0.676602
0.015625
0
0
0
0
0
0
0
0
0
0.034483
0
1
0.105263
false
0
0.052632
0.052632
0.210526
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
1
0
0
0
0
0
0
0
0
0
0
1
c8ddbaef293385ba1b09b327f3c904dc2b9d6e7c
15,850
py
Python
randomFourierComplete.py
aasensio/randomModulator
6dcce8dedc995e9a8193150824a2569651b48ad2
[ "MIT" ]
1
2016-05-04T06:05:04.000Z
2016-05-04T06:05:04.000Z
randomFourierComplete.py
aasensio/randomModulator
6dcce8dedc995e9a8193150824a2569651b48ad2
[ "MIT" ]
null
null
null
randomFourierComplete.py
aasensio/randomModulator
6dcce8dedc995e9a8193150824a2569651b48ad2
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as pl import scipy.sparse as sp import scipy.sparse.linalg as splinalg import scipy.fftpack as fft def bin_ndarray(ndarray, new_shape, operation='sum'): """ Bins an ndarray in all axes based on the target shape, by summing or averaging. Number of output dime...
32.680412
218
0.618991
2,508
15,850
3.898325
0.153908
0.023525
0.009205
0.030684
0.295285
0.268692
0.212744
0.177969
0.15966
0.152092
0
0.067929
0.193817
15,850
484
219
32.747934
0.697214
0.187823
0
0.166667
0
0.004065
0.03359
0.00206
0
0
0
0
0
0
null
null
0
0.020325
null
null
0.00813
0
0
0
null
0
0
0
0
0
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
c8e8ef99975510d56a532b6b6ad97424f7f0726a
2,963
py
Python
example/settings.py
rheinwerk-verlag/planning-poker-jira
23a4f4d5cc33a148d648c341416723216f338397
[ "BSD-3-Clause" ]
1
2021-08-24T08:12:17.000Z
2021-08-24T08:12:17.000Z
example/settings.py
rheinwerk-verlag/planning-poker-jira
23a4f4d5cc33a148d648c341416723216f338397
[ "BSD-3-Clause" ]
1
2021-09-13T07:18:46.000Z
2021-09-13T07:18:46.000Z
example/settings.py
rheinwerk-verlag/planning-poker-jira
23a4f4d5cc33a148d648c341416723216f338397
[ "BSD-3-Clause" ]
null
null
null
# Django settings for example project. import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) DEBUG = True TEMPLATE_DEBUG = DEBUG SECRET_KEY = '96a40240ed25433cb8ff8ce819bf710b' TEMPLATE_DIRS = ( ...
29.04902
87
0.693891
312
2,963
6.474359
0.461538
0.096535
0.047525
0.022277
0.066832
0.022277
0.022277
0.022277
0
0
0
0.008642
0.179885
2,963
101
88
29.336634
0.822634
0.261559
0
0
0
0
0.554328
0.46547
0
0
0
0
0
1
0
false
0.014925
0.014925
0
0.014925
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1