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
278cd6d0e93305676248b8cdc1277926e8c64eff
75
py
Python
00.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
00.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
00.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
#!/usr/bin/python3 s="stressed" rev="" for c in s: rev=c+rev print(rev)
9.375
18
0.626667
15
75
3.133333
0.666667
0
0
0
0
0
0
0
0
0
0
0.015873
0.16
75
7
19
10.714286
0.730159
0.226667
0
0
0
0
0.140351
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
279270433852464c4c404d39297286c82feeeb06
1,903
py
Python
applications/conventions/models.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
applications/conventions/models.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
applications/conventions/models.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils import formats from django.utils import timezone # Create your models here. class ConventionManager(models.Manager): def next(self): """ The upcoming event """ next_convention = self.exclude(en...
31.196721
109
0.685759
232
1,903
5.396552
0.387931
0.091054
0.035942
0.033546
0.057508
0.057508
0.057508
0
0
0
0
0.005968
0.207567
1,903
60
110
31.716667
0.824271
0.0536
0
0
0
0
0.058231
0.016797
0
0
0
0.016667
0
1
0.15
false
0
0.1
0.1
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
27adb53e589b287e93c247ebcbe9098c603dc098
3,529
py
Python
app.py
anthonycgalea/FRC-2022-Scouting-Server
44a4f3090193b15947b7fb78b5cb83918da4f2d8
[ "MIT" ]
null
null
null
app.py
anthonycgalea/FRC-2022-Scouting-Server
44a4f3090193b15947b7fb78b5cb83918da4f2d8
[ "MIT" ]
null
null
null
app.py
anthonycgalea/FRC-2022-Scouting-Server
44a4f3090193b15947b7fb78b5cb83918da4f2d8
[ "MIT" ]
null
null
null
from flask import ( Flask , render_template , redirect , request , jsonify , url_for ) from flask_sqlalchemy import SQLAlchemy import os, requests from models import constants from requests.exceptions import HTTPError basedir = os.path.abspath(os.path.dirname(__file__)) app = Flask(__name__) ap...
32.675926
98
0.68178
467
3,529
5.079229
0.321199
0.114671
0.143339
0.16484
0.334317
0.254216
0.221754
0.109612
0.109612
0.109612
0
0.009418
0.187589
3,529
108
99
32.675926
0.817928
0.152734
0
0.027397
0
0
0.099449
0.050585
0
0
0
0.018519
0
1
0.041096
false
0
0.068493
0.013699
0.671233
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
27b3f6245e9d6ff2f745a4abe1dba742b7c3447b
94
py
Python
photoframe/__init__.py
sesamemucho/photoframe
76e31837fa54e25258f093f71483f26929e5827a
[ "MIT" ]
null
null
null
photoframe/__init__.py
sesamemucho/photoframe
76e31837fa54e25258f093f71483f26929e5827a
[ "MIT" ]
null
null
null
photoframe/__init__.py
sesamemucho/photoframe
76e31837fa54e25258f093f71483f26929e5827a
[ "MIT" ]
null
null
null
__author__ = 'Bob Forgey' __email__ = 'rforgey@grumpydogconsulting.com' __version__ = '0.1.0'
23.5
45
0.755319
11
94
5.363636
0.909091
0
0
0
0
0
0
0
0
0
0
0.035714
0.106383
94
3
46
31.333333
0.666667
0
0
0
0
0
0.489362
0.329787
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
27d55fdfadce0de618f19030a822ada61f923f31
2,198
py
Python
hyperspeed/text.py
bovesan/mistika-hyperspeed
03ce9117036699b194696ef025794e25cbf4993e
[ "Apache-2.0" ]
3
2018-01-24T17:04:04.000Z
2019-03-17T07:34:53.000Z
hyperspeed/text.py
bovesan/mistika-hyperspeed
03ce9117036699b194696ef025794e25cbf4993e
[ "Apache-2.0" ]
13
2017-06-06T08:13:14.000Z
2017-09-03T07:56:48.000Z
hyperspeed/text.py
bovesan/mistika-hyperspeed
03ce9117036699b194696ef025794e25cbf4993e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import re class Title(object): def __init__(self, path): self.path = path self._fonts = False self._string = False def __str__(self): return self.name def __repr__(self): return self.name @property def fonts(self): if not self....
34.34375
121
0.440855
222
2,198
4.198198
0.351351
0.05794
0.038627
0.038627
0.10515
0.055794
0
0
0
0
0
0.018197
0.449955
2,198
64
122
34.34375
0.752688
0.061419
0
0.237288
0
0
0.048567
0
0
0
0
0.015625
0
0
null
null
0
0.016949
null
null
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
27e5d3a926a5a28ccd0669ad45b2c959776b62d7
2,106
py
Python
roster2ical/roster.py
SimonCW/roster2cal
a3cfdd39436f6f7b218633d442a2fb4bab2b60ac
[ "Apache-2.0" ]
null
null
null
roster2ical/roster.py
SimonCW/roster2cal
a3cfdd39436f6f7b218633d442a2fb4bab2b60ac
[ "Apache-2.0" ]
null
null
null
roster2ical/roster.py
SimonCW/roster2cal
a3cfdd39436f6f7b218633d442a2fb4bab2b60ac
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_roster.ipynb (unless otherwise specified). __all__ = ['ShiftProperties', 'Shift', 'Roster'] # Cell from dataclasses import dataclass from datetime import datetime, timedelta, date, time from ics import Calendar, Event import re from typing import Optional from zoneinfo i...
27
89
0.581197
242
2,106
4.96281
0.458678
0.034971
0.016653
0
0
0
0
0
0
0
0
0.00561
0.322887
2,106
77
90
27.350649
0.836606
0.090218
0
0.1
1
0
0.088482
0
0
0
0
0.012987
0
1
0.05
false
0
0.1
0
0.416667
0.033333
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
1
0
0
0
0
0
0
0
0
0
0
2
27e9caeca25c634348809f998f0b0f967d75e936
735
py
Python
website/TableManager.py
uclchem/HITS
1d9d227699adfda8ad4f5fa5fb24266f18b76e4e
[ "MIT" ]
null
null
null
website/TableManager.py
uclchem/HITS
1d9d227699adfda8ad4f5fa5fb24266f18b76e4e
[ "MIT" ]
null
null
null
website/TableManager.py
uclchem/HITS
1d9d227699adfda8ad4f5fa5fb24266f18b76e4e
[ "MIT" ]
null
null
null
import pandas as pd class TableManager: def __init__(self,table_file): self.master_table=pd.read_csv(table_file).sort_values("Info",ascending=False) def get_filtered_table(self,low_freq,high_freq,delta_freq,target): low_freq=float(low_freq) high_freq=float(high_freq) delta_freq...
40.833333
85
0.673469
106
735
4.415094
0.320755
0.213675
0.160256
0.202991
0.277778
0.235043
0
0
0
0
0
0.009983
0.182313
735
18
86
40.833333
0.768719
0
0
0
0
0
0.077446
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
0.0625
0
0
0
null
1
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
2
27f48971c242d0c67f80ccf879d4f6fd9e7d7faa
634
py
Python
src/genie/libs/parser/iosxe/tests/ShowLicenseSummary/cli/equal/golden_output2_expected.py
oianson/genieparser
91d7f898e3c4ad809511d025f88d1c89744ec0a6
[ "Apache-2.0" ]
1
2021-10-01T05:41:06.000Z
2021-10-01T05:41:06.000Z
src/genie/libs/parser/iosxe/tests/ShowLicenseSummary/cli/equal/golden_output2_expected.py
phkind/genieparser
4e115b83567d867320e48ee9679de3556ce8005d
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/tests/ShowLicenseSummary/cli/equal/golden_output2_expected.py
phkind/genieparser
4e115b83567d867320e48ee9679de3556ce8005d
[ "Apache-2.0" ]
null
null
null
expected_output = { 'license_usage':{ 'C9300 48P DNA Advantage':{ 'entitlement':'C9300-48 DNA Advantage', 'count':'2', 'status':'AUTHORIZED' }, 'C9300 48P Network Adv...':{ 'entitlement':'C9300-48 Network Advan...', 'count':'2', 'status':'AUTHOR...
26.416667
51
0.492114
56
634
5.535714
0.357143
0.154839
0.203226
0.180645
0.174194
0
0
0
0
0
0
0.12178
0.326498
634
24
52
26.416667
0.604215
0
0
0.333333
0
0
0.524409
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7e00bb5a7b29be39f8f52e8b4d6d64f41deda06a
544
py
Python
helloworld-tls/src/app/__init__.py
JeNeSuisPasDave/Selenium-and-TLS
4f1b88968967f3fbae52d499213031d56eb53337
[ "MIT-0", "MIT" ]
2
2017-09-29T19:23:08.000Z
2021-11-20T18:14:42.000Z
helloworld-tls/src/app/__init__.py
JeNeSuisPasDave/Selenium-and-TLS
4f1b88968967f3fbae52d499213031d56eb53337
[ "MIT-0", "MIT" ]
null
null
null
helloworld-tls/src/app/__init__.py
JeNeSuisPasDave/Selenium-and-TLS
4f1b88968967f3fbae52d499213031d56eb53337
[ "MIT-0", "MIT" ]
null
null
null
# Copyright 2017 David Hein # # Licensed under the MIT License. If the LICENSE file is missing, you # can find the MIT license terms here: https://opensource.org/licenses/MIT from flask import Flask, render_template from config import config def create_app(config_name): app = Flask(__name__) app.config.from_o...
27.2
74
0.751838
80
544
4.9375
0.5625
0.075949
0.065823
0
0
0
0
0
0
0
0
0.008969
0.180147
544
19
75
28.631579
0.876682
0.382353
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7e06f96408ae0af5de7ad66e71cbc1a26b4b809f
176
py
Python
hackerhub/urls.py
jason17h/hackerhub
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
null
null
null
hackerhub/urls.py
jason17h/hackerhub
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
16
2020-03-24T17:25:22.000Z
2022-03-11T23:57:11.000Z
hackerhub/urls.py
sherman-grewal/wehack
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
1
2019-06-25T20:34:09.000Z
2019-06-25T20:34:09.000Z
from django.urls import path from hackerhub import views app_name = 'hackerhub' urlpatterns = [ # path('hackathons/', views.hackathonList, name='hackathonList'), ]
16
69
0.710227
19
176
6.526316
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.176136
176
11
70
16
0.855172
0.357955
0
0
0
0
0.080357
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7e0c74b622915a00abc2c3cca89a4215d7ee1113
250
py
Python
03_01_dice.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
null
null
null
03_01_dice.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
null
null
null
03_01_dice.py
bolivaralejandro/prog_pi_ed2-
656705c70a0334c915409dd8ec8a3593cb092b72
[ "MIT" ]
null
null
null
#03_01_dice import random # import random module for x in range(1,11): # for loop to go from 1 -10 random_number = random.randint(1, 6) # ranint pick between 1 and 6 print(random_number) # print the # that was saved to variable random_number
41.666667
79
0.732
45
250
3.955556
0.666667
0.202247
0
0
0
0
0
0
0
0
0
0.069652
0.196
250
5
80
50
0.81592
0.548
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fd73f6e9ec6c3e65aaf8a6ce9008401fd9c0817b
1,110
py
Python
rial/util/util.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-02T20:00:28.000Z
2020-06-06T02:15:49.000Z
rial_old/util.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
51
2020-04-13T13:27:10.000Z
2020-06-12T11:38:36.000Z
rial/util/util.py
L3tum/RIAL
fba25f37434ff51e0de8e22ce834af589aba24e8
[ "BSD-3-Clause" ]
2
2020-06-24T14:44:01.000Z
2020-11-29T04:08:54.000Z
import hashlib import random import string from llvmlite.ir import Context def generate_random_name(count: int): return ''.join(random.choices(string.ascii_uppercase + string.ascii_lowercase + string.digits, k=count)) def rreplace(s, old, new, occurrence=-1): li = s.rsplit(old, occurrence) return new.j...
24.666667
108
0.653153
144
1,110
4.881944
0.423611
0.064011
0.072546
0.081081
0.106686
0
0
0
0
0
0
0.002381
0.243243
1,110
44
109
25.227273
0.834524
0
0
0
1
0
0.008108
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
fd7527264581cad7da7e18465f58999a272fdcf7
874
py
Python
accounts/forms.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
24
2020-02-01T17:22:47.000Z
2020-10-24T19:49:36.000Z
accounts/forms.py
xNovax/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
16
2020-02-01T14:30:15.000Z
2020-08-13T20:49:56.000Z
accounts/forms.py
aaronspindler/RoomScout
287240a9d13f2b8f6ce9abdc95cf611671970fc3
[ "MIT" ]
6
2020-02-01T22:07:46.000Z
2021-03-05T14:05:27.000Z
from captcha.fields import ReCaptchaField from captcha.widgets import ReCaptchaV3 from django import forms class AllauthSignupForm(forms.Form): captcha = ReCaptchaField(widget=ReCaptchaV3, label='') field_order = ['email', 'password1', 'password2', 'captcha'] def signup(self, request, user): """ ...
39.727273
168
0.750572
110
874
5.918182
0.618182
0.041475
0.073733
0.089094
0.205837
0.205837
0.205837
0.205837
0.205837
0.205837
0
0.008119
0.154462
874
21
169
41.619048
0.872801
0.05492
0
0
0
0
0.287286
0
0
0
0
0
0
1
0.076923
false
0.153846
0.230769
0
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fda63075243e0648662076d3bf7924d8f447dd49
199
py
Python
blog/urls.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
null
null
null
blog/urls.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
null
null
null
blog/urls.py
minielectron/portfolio
c45e5976d141ca69fb4e9fc35ca862ef1bda8d52
[ "Apache-2.0" ]
1
2021-01-19T16:27:29.000Z
2021-01-19T16:27:29.000Z
from django.urls import path from . import views app_name="blog" #Works as namespace urlpatterns = [ path('', views.blogs, name="blog"), path('<int:blog_id>', views.detail, name="detail") ]
22.111111
54
0.678392
28
199
4.75
0.607143
0.120301
0
0
0
0
0
0
0
0
0
0
0.155779
199
9
55
22.111111
0.791667
0.090452
0
0
0
0
0.149171
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fdb919ed8f923b60028188ff42434186a339745e
1,006
py
Python
apis/custom_errors.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
84
2017-07-24T02:00:38.000Z
2022-03-26T16:28:49.000Z
apis/custom_errors.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
5
2017-10-25T13:04:01.000Z
2019-07-13T08:36:34.000Z
apis/custom_errors.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
28
2017-08-21T05:03:31.000Z
2021-01-25T16:24:38.000Z
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from sanic.exceptions import SanicException def add_status_code(code): """ Decorator used for adding exceptions to _sanic_exceptions. """ def class_...
20.530612
74
0.688867
122
1,006
5.45082
0.434426
0.150376
0.097744
0.117293
0.135338
0
0
0
0
0
0
0.016477
0.215706
1,006
49
75
20.530612
0.826362
0.185885
0
0.153846
1
0
0
0
0
0
0
0
0
1
0.115385
false
0.153846
0.038462
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
fdbce89a8a68479d18365fe1372661ad306d4890
1,728
py
Python
pdx_beer_finder/beer_googles/models.py
mgborgman/pcg2015_mgb
94135729315edda88ee534106d45e7b5a9a25176
[ "MIT" ]
null
null
null
pdx_beer_finder/beer_googles/models.py
mgborgman/pcg2015_mgb
94135729315edda88ee534106d45e7b5a9a25176
[ "MIT" ]
null
null
null
pdx_beer_finder/beer_googles/models.py
mgborgman/pcg2015_mgb
94135729315edda88ee534106d45e7b5a9a25176
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Beer(models.Model): name = models.CharField(max_length=200) description = models.TextField() slug = models.SlugField(unique=True, default='') def __unicode__(self): return self.name class Meta: verbos...
22.441558
61
0.678241
199
1,728
5.703518
0.241206
0.106608
0.086344
0.123348
0.684582
0.601762
0.601762
0.601762
0.601762
0.601762
0
0.005147
0.212963
1,728
76
62
22.736842
0.829412
0
0
0.58
0
0
0.011594
0
0
0
0
0
0
1
0.14
false
0
0.04
0.14
0.92
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
1
0
0
0
2
fdbf6c7bf3081af23d12c585923264642958856d
199
py
Python
setup.py
litrin/MACD
0a289967a7f0079f34807b038613a5acb9013a0f
[ "MIT" ]
13
2016-06-29T09:49:15.000Z
2021-06-08T02:07:08.000Z
setup.py
litrin/MACD
0a289967a7f0079f34807b038613a5acb9013a0f
[ "MIT" ]
null
null
null
setup.py
litrin/MACD
0a289967a7f0079f34807b038613a5acb9013a0f
[ "MIT" ]
8
2016-07-26T09:21:20.000Z
2020-09-16T02:08:38.000Z
from distutils.core import setup setup( name='MACD', version='1.0', py_modules=["Average", "MACD"], license='MIT', author='Litrin Jinag', author_email='litrin<AT>gmil.com' )
18.090909
37
0.628141
26
199
4.730769
0.846154
0
0
0
0
0
0
0
0
0
0
0.0125
0.19598
199
10
38
19.9
0.75625
0
0
0
0
0
0.256281
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
fdc26c52b871d5cd98252938e7c1ac9f24686ca5
743
py
Python
book/form.py
GyanendraMaurya/book-recommendation-system
148e2032cd8b64ceabeead252dbcf2ca3303e951
[ "MIT" ]
null
null
null
book/form.py
GyanendraMaurya/book-recommendation-system
148e2032cd8b64ceabeead252dbcf2ca3303e951
[ "MIT" ]
null
null
null
book/form.py
GyanendraMaurya/book-recommendation-system
148e2032cd8b64ceabeead252dbcf2ca3303e951
[ "MIT" ]
null
null
null
from django.forms import ModelForm, Textarea, TextInput from .models import Review from django import forms from django.contrib.auth.models import User # Form to take display to take user's review class ReviewForm(ModelForm): class Meta: model = Review fields = ['rating', 'comment'] #user_...
30.958333
91
0.675639
85
743
5.882353
0.470588
0.06
0.12
0.15
0.156
0.156
0
0
0
0
0
0.006667
0.192463
743
23
92
32.304348
0.826667
0.248991
0
0
0
0
0.076087
0
0
0
0
0
0
1
0
false
0.071429
0.285714
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fde65672253748dec3ec25da70fb81d0e2a0b0f4
164
py
Python
12403/save_setu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
12403/save_setu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
12403/save_setu.py
sc458/uHunt-solutions
37464e1db98c897995eab79caa6c70f379ad877a
[ "MIT" ]
null
null
null
res = 0 T = int(input()) for i in range(0,T): inp = input() if(inp == 'report'): print(res) else: inp_arr = inp.split(' ') res += int(inp_arr[1])
16.4
27
0.52439
28
164
3
0.607143
0.047619
0
0
0
0
0
0
0
0
0
0.024793
0.262195
164
9
28
18.222222
0.669421
0
0
0
0
0
0.045161
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fdec15632e4c83bb2c03a8ba72112395afb72f93
679
py
Python
backend/common/tests.py
marcosflp/commitz
9402e96bad0ac66f054b22c020bf6fbac358b4ec
[ "MIT" ]
1
2020-03-02T19:58:37.000Z
2020-03-02T19:58:37.000Z
backend/common/tests.py
marcosflp/commitz
9402e96bad0ac66f054b22c020bf6fbac358b4ec
[ "MIT" ]
7
2020-06-06T01:12:25.000Z
2022-02-10T11:48:09.000Z
backend/common/tests.py
marcosflp/commitz
9402e96bad0ac66f054b22c020bf6fbac358b4ec
[ "MIT" ]
null
null
null
from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase from users.models import User, GitHubProfile class BaseTestCase(APITestCase): USER = 'admin' PASSWORD = '1234qwer' EMAIL = 'test@test.com' def setUp(self): super(BaseTestCase, self).setUp() ...
32.333333
102
0.734904
82
679
5.987805
0.439024
0.07943
0.10387
0
0
0
0
0
0
0
0
0.007042
0.163476
679
20
103
33.95
0.857394
0
0
0
0
0
0.092784
0.045655
0
0
0
0
0
1
0.133333
false
0.133333
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fdeea4e52353ab49096ea71d07ca4c84e619970f
616
py
Python
examples/Lists.py
mnishitha/INF502-Fall2020
63c93219ba593fe50accfb24ea04752be2a62ddb
[ "Unlicense" ]
8
2020-08-07T00:04:02.000Z
2020-12-14T21:43:54.000Z
examples/Lists.py
mnishitha/INF502-Fall2020
63c93219ba593fe50accfb24ea04752be2a62ddb
[ "Unlicense" ]
34
2020-09-05T04:13:37.000Z
2020-10-13T21:57:29.000Z
examples/Lists.py
mnishitha/INF502-Fall2020
63c93219ba593fe50accfb24ea04752be2a62ddb
[ "Unlicense" ]
34
2020-08-18T22:42:39.000Z
2020-09-11T00:25:14.000Z
list_of_numbers = [1,2,3,4,5] len(list_of_numbers) list_of_numbers[0] print(list_of_numbers) list_of_numbers[4] print(list_of_numbers) list_of_numbers[-2] print(list_of_numbers) #extending it list_of_numbers.extend([6,7,8]) print(list_of_numbers) #slicing it piece = list_of_numbers[:4] #beginning to 4 print (piece) pi...
18.117647
50
0.751623
117
616
3.717949
0.273504
0.193103
0.418391
0.206897
0.202299
0.202299
0.142529
0
0
0
0
0.07804
0.105519
616
34
51
18.117647
0.711434
0.133117
0
0.36
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a90099d0aa766dd4a74d840f4a35aa14158fc67c
103
py
Python
M1/Aula1.py
DouglasCarvalhoPereira/Interact-OS-PYTHON
2405d34a0624f1e1277399c936d87d444cf0a7d6
[ "MIT" ]
null
null
null
M1/Aula1.py
DouglasCarvalhoPereira/Interact-OS-PYTHON
2405d34a0624f1e1277399c936d87d444cf0a7d6
[ "MIT" ]
null
null
null
M1/Aula1.py
DouglasCarvalhoPereira/Interact-OS-PYTHON
2405d34a0624f1e1277399c936d87d444cf0a7d6
[ "MIT" ]
null
null
null
name = input('Digite se nome: ') cont = 0 while cont < 10: print(f'Hello word {name}') cont+=1
17.166667
32
0.592233
17
103
3.588235
0.823529
0
0
0
0
0
0
0
0
0
0
0.051282
0.242718
103
6
33
17.166667
0.730769
0
0
0
0
0
0.317308
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e30b4a3bd8ed265326031b20ebabac2f3b919b0d
1,862
py
Python
src/database/querys/clients.py
g4-mobile/g4-mobile-api
17c76202107ab4e363d042c0a13fb7804a2d880e
[ "MIT" ]
null
null
null
src/database/querys/clients.py
g4-mobile/g4-mobile-api
17c76202107ab4e363d042c0a13fb7804a2d880e
[ "MIT" ]
1
2022-03-28T03:11:47.000Z
2022-03-28T04:15:53.000Z
src/database/querys/clients.py
g4-mobile/g4-mobile-api
17c76202107ab4e363d042c0a13fb7804a2d880e
[ "MIT" ]
null
null
null
from typing import List from src.database import DBConnectionHendler from src.database.db_connection import db_connector from src.database.models import Client class ClientQuerys: """Criando um novo cliente""" @classmethod def new(cls, nome): """someting""" with DBConnectionHendler() as ...
27.382353
64
0.542965
173
1,862
5.705202
0.33526
0.170213
0.192503
0.082067
0.529889
0.529889
0.529889
0.473151
0.473151
0.473151
0
0
0.370569
1,862
67
65
27.791045
0.84215
0.042428
0
0.568627
0
0
0
0
0
0
0
0.014925
0
1
0.078431
false
0
0.078431
0
0.215686
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
2
e30f1da916d4dc03d41bf4a2f31ce3a72df07c55
2,117
py
Python
backend/chatbot_back/forms.py
karenrios2208/ProyectoAplicacionesWeb
9e25f82a86aca5ae8869a6b2ce99073445a47a12
[ "MIT" ]
null
null
null
backend/chatbot_back/forms.py
karenrios2208/ProyectoAplicacionesWeb
9e25f82a86aca5ae8869a6b2ce99073445a47a12
[ "MIT" ]
null
null
null
backend/chatbot_back/forms.py
karenrios2208/ProyectoAplicacionesWeb
9e25f82a86aca5ae8869a6b2ce99073445a47a12
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField, DateField, IntegerField from wtforms.validators import DataRequired, Email, EqualTo, ValidationError import wtforms_json from chatbot_back.models import Cuenta, Cliente wtforms_json.init() class Registration(Fl...
34.704918
98
0.702881
197
2,117
7.497462
0.390863
0.178741
0.048747
0.05958
0.207177
0.064997
0
0
0
0
0
0
0.179027
2,117
60
99
35.283333
0.849252
0
0
0.26087
0
0
0.122343
0
0
0
0
0
0
1
0.021739
false
0.108696
0.108696
0
0.826087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
e3142a0000f6bf5108e6eba13b91a75aff2bab6e
262
py
Python
app/modules/news/migrations/0013_merge_20200415_0747.py
nickmoreton/nhsx-website
2397d1308376c02b75323d30e6bc916af0daac9d
[ "MIT" ]
50
2019-04-04T17:50:00.000Z
2021-08-05T15:08:37.000Z
app/modules/news/migrations/0013_merge_20200415_0747.py
nickmoreton/nhsx-website
2397d1308376c02b75323d30e6bc916af0daac9d
[ "MIT" ]
434
2019-04-04T18:25:32.000Z
2022-03-31T18:23:37.000Z
app/modules/news/migrations/0013_merge_20200415_0747.py
nhsx-mirror/nhsx-website
2133b4e275ca35ff77f7d6874e809f139ec4bf86
[ "MIT" ]
23
2019-04-04T09:52:07.000Z
2021-04-11T07:41:47.000Z
# Generated by Django 3.0.4 on 2020-04-15 07:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("news", "0012_auto_20200409_1452"), ("news", "0009_auto_20200414_0913"), ] operations = []
18.714286
47
0.652672
33
262
5
0.848485
0
0
0
0
0
0
0
0
0
0
0.230392
0.221374
262
13
48
20.153846
0.578431
0.171756
0
0
1
0
0.251163
0.213953
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e31d289793c7195c4909f104d71110d06c38b719
405
py
Python
evacsim/manhattan.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
evacsim/manhattan.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
evacsim/manhattan.py
selverob/lcmae
0d82dca736c6b2dd291f9a271e904f9f14a389e6
[ "MIT" ]
null
null
null
from .level import Level from .graph.interface import Node class ManhattanDistanceHeuristic(): def __init__(self, level: Level): self.level = level def manhattan_distance(self, x: Node, y: Node) -> int: x_coords = self.level.id_to_coords(x.pos()) y_coords = self.level.id_to_coords(y.p...
31.153846
78
0.666667
61
405
4.180328
0.393443
0.141176
0.109804
0.133333
0.196078
0.196078
0
0
0
0
0
0.012384
0.202469
405
12
79
33.75
0.77709
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e31edf100b9164fb1c8b0e4f02e0e66362ca709a
227
py
Python
twiml/voice/pay/pay-tokenize-connector/pay-tokenize-connector.6.x.py
stuyy/api-snippets
d25f0de2389d7df9859942b6cafaa156922d3ca5
[ "MIT" ]
null
null
null
twiml/voice/pay/pay-tokenize-connector/pay-tokenize-connector.6.x.py
stuyy/api-snippets
d25f0de2389d7df9859942b6cafaa156922d3ca5
[ "MIT" ]
null
null
null
twiml/voice/pay/pay-tokenize-connector/pay-tokenize-connector.6.x.py
stuyy/api-snippets
d25f0de2389d7df9859942b6cafaa156922d3ca5
[ "MIT" ]
null
null
null
from twilio.twiml.voice_response import Pay, VoiceResponse response = VoiceResponse() response.pay(charge_amount='0', payment_connector='My_Pay_Connector', action='https://your-callback-function-url.com/pay') print(response)
32.428571
122
0.806167
30
227
5.933333
0.733333
0.235955
0
0
0
0
0
0
0
0
0
0.004695
0.061674
227
6
123
37.833333
0.830986
0
0
0
0
0
0.259912
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e32620f8f3cb408c51b434e4ed62c752d3ea4eda
1,312
py
Python
scfw2d/StoryManager.py
lines-of-codes/StablerCharacter
a2fad7840de6e0a8542135a00b0cd4355d53008e
[ "MIT" ]
7
2021-07-10T12:45:24.000Z
2022-01-10T14:24:43.000Z
scfw2d/StoryManager.py
StablerCharacter/StablerCharacter
a2fad7840de6e0a8542135a00b0cd4355d53008e
[ "MIT" ]
null
null
null
scfw2d/StoryManager.py
StablerCharacter/StablerCharacter
a2fad7840de6e0a8542135a00b0cd4355d53008e
[ "MIT" ]
2
2021-07-28T04:08:07.000Z
2021-12-05T20:08:16.000Z
from dataclasses import dataclass @dataclass class Dialog: message: str sideObjects: tuple = () extraEvents: tuple = () @dataclass class Branch: dialogsList: list class Chapter: def __init__(self, branchList: dict): self.branchList = branchList self.currentBranch = branchList["main"] self.dialogIndex =...
23.854545
67
0.760671
139
1,312
7.122302
0.28777
0.084848
0.145455
0.141414
0.234343
0.107071
0.107071
0
0
0
0
0.004386
0.131098
1,312
54
68
24.296296
0.864035
0
0
0.263158
0
0
0.003049
0
0
0
0
0
0
1
0.263158
false
0
0.026316
0.105263
0.657895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e3420f759c6f2a9e6dd671eb48b2517eadf9569e
249
py
Python
src/qiskit_trebugger/views/widget/button_with_value.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
7
2021-12-23T19:47:40.000Z
2022-03-18T10:41:12.000Z
src/qiskit_trebugger/views/widget/button_with_value.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
null
null
null
src/qiskit_trebugger/views/widget/button_with_value.py
kdk/qiskit-timeline-debugger
80f56894af67ff881cda0fb8613e324e34d0015f
[ "Apache-2.0" ]
3
2021-12-04T10:01:32.000Z
2021-12-25T11:57:10.000Z
import ipywidgets as widgets class ButtonWithValue(widgets.Button): def __init__(self, *args, **kwargs): self.value = kwargs['value'] kwargs.pop('value', None) super(ButtonWithValue, self).__init__(*args, **kwargs)
35.571429
62
0.654618
27
249
5.740741
0.592593
0.129032
0
0
0
0
0
0
0
0
0
0
0.208835
249
7
62
35.571429
0.786802
0
0
0
0
0
0.040984
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e34ccf16e1e9b5ea75310687974675d6cd11b94e
5,689
py
Python
csaopt/model_loader/model_validator.py
d53dave/cgopt
a655d87a8577d18a7a714431f4237e4c9ebbf7e8
[ "MIT" ]
1
2018-08-11T18:58:16.000Z
2018-08-11T18:58:16.000Z
csaopt/model_loader/model_validator.py
d53dave/cgopt
a655d87a8577d18a7a714431f4237e4c9ebbf7e8
[ "MIT" ]
1
2018-03-07T19:54:44.000Z
2018-03-07T19:54:44.000Z
csaopt/model_loader/model_validator.py
d53dave/cgopt
a655d87a8577d18a7a714431f4237e4c9ebbf7e8
[ "MIT" ]
1
2018-01-10T19:30:10.000Z
2018-01-10T19:30:10.000Z
import inspect import subprocess from pyhocon import ConfigTree from typing import Optional, List, Dict, Callable from ..model import RequiredFunctions from . import ValidationError def _empty_function(): pass class ModelValidator: empty_function_bytecode = _empty_function.__code__.co_code # TODO: re...
36.941558
119
0.638952
628
5,689
5.638535
0.22293
0.025417
0.018639
0.023722
0.411183
0.344253
0.303022
0.268568
0.253883
0.253883
0
0.001947
0.277729
5,689
153
120
37.183007
0.85982
0.325365
0
0.096774
0
0
0.106433
0.009942
0
0
0
0.013072
0
1
0.145161
false
0.016129
0.096774
0
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
1
0
0
0
0
0
0
0
1
0
0
2
e358314297e432d97aa33b4617a5bc1225b1b54f
925
py
Python
server/handlers/BaseHandler.py
AKAMEDIASYSTEM/rf-immanence
df2ec6caf1ac89f2acd6d0d094868d409d9dfd53
[ "Apache-2.0" ]
1
2015-08-07T23:54:47.000Z
2015-08-07T23:54:47.000Z
server/handlers/BaseHandler.py
AKAMEDIASYSTEM/rf-immanence
df2ec6caf1ac89f2acd6d0d094868d409d9dfd53
[ "Apache-2.0" ]
3
2015-03-09T02:05:05.000Z
2015-03-10T18:44:53.000Z
server/handlers/BaseHandler.py
AKAMEDIASYSTEM/rf-immanence
df2ec6caf1ac89f2acd6d0d094868d409d9dfd53
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # curriculum - semantic browsing for groups # (c)nytlabs 2014 import datetime import json import tornado import tornado.ioloop import tornado.web import tornado.options import tornado.template import ResponseObject import traceback class BaseHandler(tornado.web.RequestHandler): def __init__...
28.90625
71
0.682162
102
925
6.068627
0.5
0.105008
0.077544
0.058158
0.168013
0.168013
0.168013
0.168013
0.168013
0
0
0.00561
0.229189
925
32
72
28.90625
0.862553
0.143784
0
0.26087
0
0
0.035488
0.034221
0
0
0
0
0
0
null
null
0
0.391304
null
null
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
e35ebd0dd670b98501ab4150f35f3997f4aa0939
10,758
py
Python
deprecated/pycqed/analysis/old_tomo_code.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
deprecated/pycqed/analysis/old_tomo_code.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
deprecated/pycqed/analysis/old_tomo_code.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
# Commented out as this code does not run as is (missing imports etc) # class Tomo_Analysis(MeasurementAnalysis): # def __init__(self, num_qubits=2, quad='IQ', over_complete_set=False, # plot_oper=True, folder=None, auto=False, **kw): # self.num_qubits = num_qubits # self.num_sta...
40.75
106
0.505112
1,396
10,758
3.670487
0.169054
0.050546
0.045667
0.023614
0.31694
0.212139
0.148907
0.092506
0.070648
0.057377
0
0.033921
0.361498
10,758
263
107
40.904943
0.71204
0.952965
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
e3624b288acc70a9add9c081ab1ed05ab92208ce
2,167
py
Python
portfolio/portfolio_api/migrations/0001_initial.py
muniri92/django-react-blog
8810bc512659d01bc412406b77d80dab32f03803
[ "MIT" ]
null
null
null
portfolio/portfolio_api/migrations/0001_initial.py
muniri92/django-react-blog
8810bc512659d01bc412406b77d80dab32f03803
[ "MIT" ]
4
2018-08-31T23:09:58.000Z
2021-06-10T20:31:36.000Z
portfolio/portfolio_api/migrations/0001_initial.py
muniri92/django-react-blog
8810bc512659d01bc412406b77d80dab32f03803
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-21 10:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='About', fields=[ ('id', models.AutoField(au...
40.886792
188
0.563913
203
2,167
5.871921
0.320197
0.075503
0.120805
0.161074
0.575503
0.484899
0.419463
0.419463
0.419463
0.419463
0
0.02987
0.28934
2,167
52
189
41.673077
0.744156
0.020766
0
0.577778
1
0
0.123585
0
0
0
0
0
0
1
0
false
0
0.022222
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e36f45ed2e2adf633b7299f991547c21a5a93f0c
3,392
py
Python
applications/physbam/physbam-lib/Scripts/Archives/pd/mon/SERVER.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
applications/physbam/physbam-lib/Scripts/Archives/pd/mon/SERVER.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
applications/physbam/physbam-lib/Scripts/Archives/pd/mon/SERVER.py
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
#!/usr/bin/python from pd.common import CONFIG from pd.common import SOCKET import os import mutex import time import threading import pickle class SERVER: def __init__(self): self.sessions={} self.next_id=1 # Define RPC interface self.mutex=threading.Lock() self.co...
33.92
163
0.661557
432
3,392
4.9375
0.261574
0.135021
0.062353
0.068917
0.329114
0.24707
0.233005
0.170652
0.170652
0.170652
0
0.003062
0.229658
3,392
99
164
34.262626
0.813241
0.085495
0
0.2
0
0
0.098901
0.007434
0
0
0
0
0
0
null
null
0.066667
0.106667
null
null
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
8b5c7a06d0d84f14b7ad472d53cfa622aaa2a576
2,449
py
Python
mumoco/mumoco_api.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
3
2021-05-29T23:26:48.000Z
2022-01-12T16:20:47.000Z
mumoco/mumoco_api.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
72
2021-05-26T19:04:40.000Z
2022-03-31T17:18:00.000Z
mumoco/mumoco_api.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
1
2021-05-30T15:34:40.000Z
2021-05-30T15:34:40.000Z
import json from pathlib import Path from typing import List import cli_ui as ui import deserialize from conans.client.conan_api import Conan from .conanbuilder.configreader import ConfigReader from .conanbuilder.package import Package from .conanbuilder.runner import Runner from .conanbuilder.signature import Signat...
33.547945
112
0.734177
321
2,449
5.333333
0.249221
0.040888
0.040888
0.03972
0.156542
0.127336
0.127336
0.044393
0
0
0
0.000495
0.175174
2,449
72
113
34.013889
0.84703
0
0
0
0
0
0.027358
0
0
0
0
0
0
1
0.211538
false
0.038462
0.192308
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8b6581dafd9db926fcecbacb1e5b0d29bcc54784
717
py
Python
sendgrid/helpers/__init__.py
tulikavijay/sendgrid-python
0b683169b08d3a7c204107cd333be33053297e74
[ "MIT" ]
1
2020-12-02T03:48:39.000Z
2020-12-02T03:48:39.000Z
sendgrid/helpers/__init__.py
tulikavijay/sendgrid-python
0b683169b08d3a7c204107cd333be33053297e74
[ "MIT" ]
1
2020-03-20T02:14:04.000Z
2020-03-20T02:14:04.000Z
sendgrid/helpers/__init__.py
tulikavijay/sendgrid-python
0b683169b08d3a7c204107cd333be33053297e74
[ "MIT" ]
1
2020-07-03T01:01:08.000Z
2020-07-03T01:01:08.000Z
"""v3/mail/send response body builder Builder for assembling emails to be sent with the v3 SendGrid API. Usage example: def build_hello_email(): to_email = from_email = Email("test@example.com") subject = "Hello World from the SendGrid Python Library" content = Content("text/plain", "some ...
35.85
77
0.716876
103
717
4.902913
0.533981
0.041584
0
0
0
0
0
0
0
0
0
0.010152
0.175732
717
19
78
37.736842
0.844332
0.988842
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
8b6ede170838e2f94ba9b85ca239eef8cb14be0f
1,009
py
Python
pyRFTests.py
softwarespartan/pyStk
d37bb2acdee3fc62972e8ff51363588af060db1f
[ "MIT" ]
null
null
null
pyRFTests.py
softwarespartan/pyStk
d37bb2acdee3fc62972e8ff51363588af060db1f
[ "MIT" ]
null
null
null
pyRFTests.py
softwarespartan/pyStk
d37bb2acdee3fc62972e8ff51363588af060db1f
[ "MIT" ]
null
null
null
import pyRF; import pyStk; import numpy as np; import math from scipy import stats; #print rf.refData.shape #print len(rf.refStnList) # #print rf.npv.shape; #print rf.nvv.shape; #print rf.refEpoch.shape; # #npv = rf.npvForEpoch(2003.50414524) #print npv.shape ts = pyStk.pyTS().initFromMatFile('../data/ts.mat'); r...
20.591837
68
0.688801
154
1,009
4.5
0.402597
0.040404
0.056277
0.04329
0
0
0
0
0
0
0
0.028761
0.104063
1,009
48
69
21.020833
0.737832
0.156591
0
0.148148
0
0
0.210024
0
0
0
0
0
0
0
null
null
0
0.185185
null
null
0.592593
0
0
0
null
0
0
0
0
0
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
1
0
2
8b7529539bba9f32176f5044b6e631313902b101
1,595
py
Python
src/django_grainy_test/models.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
2
2018-02-18T15:23:18.000Z
2020-02-10T13:40:23.000Z
src/django_grainy_test/models.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
41
2017-12-01T01:10:41.000Z
2021-08-24T14:08:09.000Z
src/django_grainy_test/models.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
1
2021-08-10T17:46:14.000Z
2021-08-10T17:46:14.000Z
from django.db import models from django_grainy.decorators import grainy_model from django_grainy.models import Permission, PermissionManager from django_grainy.handlers import GrainyMixin # Create your models here. """ These are the models used during the django_grainy unit tests. There is no need to ever install ...
22.464789
79
0.743574
203
1,595
5.699507
0.37931
0.076059
0.103717
0.072602
0.195333
0.070873
0.070873
0
0
0
0
0.00437
0.139185
1,595
70
80
22.785714
0.83831
0.015047
0
0.125
0
0
0.093596
0.047854
0
0
0
0
0
1
0
false
0.075
0.1
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
8b79ea29ff2f9af49fd4397aab45377d1c335dc9
1,809
py
Python
wunderkafka/serdes/store.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/serdes/store.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
wunderkafka/serdes/store.py
severstal-digital/wunderkafka
8c56fa4559a8576af7f005fd916bf97127576278
[ "Apache-2.0" ]
null
null
null
from typing import Type, Union, Optional from pathlib import Path from wunderkafka.types import TopicName, KeySchemaDescription, ValueSchemaDescription from wunderkafka.serdes.abc import AbstractDescriptionStore from wunderkafka.compat.types import AvroModel from wunderkafka.compat.constants import PY36 from wunderkaf...
39.326087
113
0.716418
213
1,809
5.971831
0.361502
0.037736
0.023585
0.035377
0.365566
0.340409
0.211478
0.128145
0.128145
0.128145
0
0.002723
0.187949
1,809
45
114
40.2
0.863172
0.150912
0
0.103448
0
0
0
0
0
0
0
0.022222
0
1
0.172414
false
0
0.241379
0
0.551724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
8b86dfe52fcaeeb53fd1b74e089768621c8937e5
1,000
py
Python
abstraction/dist_metrics.py
xoren22/tmp
2c0d25db72e607c805acce07f3b023c96ee9f4eb
[ "Apache-2.0" ]
1
2021-04-22T14:01:53.000Z
2021-04-22T14:01:53.000Z
abstraction/dist_metrics.py
xoren22/tmp
2c0d25db72e607c805acce07f3b023c96ee9f4eb
[ "Apache-2.0" ]
null
null
null
abstraction/dist_metrics.py
xoren22/tmp
2c0d25db72e607c805acce07f3b023c96ee9f4eb
[ "Apache-2.0" ]
null
null
null
import torch class ACT_EMD: """ EMD stands for Earth Mover's Distance - Mallows distance or 1st Wasserstein distance between the two distributions, is a measure of the distance between two probability distributions. ACT or Approximate Constrained Transfers is a linear compelixty approximation of the ICT or Ite...
35.714286
79
0.733
147
1,000
4.911565
0.557823
0.055402
0.038781
0
0
0
0
0
0
0
0
0.012788
0.218
1,000
27
80
37.037037
0.910486
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.125
0.125
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
8b8d495433389edf7f7639e68e7d9da531f2cd8b
683
py
Python
ad-hoc/p11496.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
10
2019-03-29T08:37:10.000Z
2021-12-29T14:06:57.000Z
ad-hoc/p11496.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
1
2020-07-03T08:25:38.000Z
2020-07-03T08:25:38.000Z
ad-hoc/p11496.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
4
2019-05-30T16:04:48.000Z
2020-10-22T21:42:25.000Z
from sys import stdin, stdout while True: n = int(input()) if n == 0: break line = list(map(int, stdin.readline().strip().split())) local_extremas = 0 for i in range(1, len(line) - 1): if line[i] > line[i-1] and line[i] > line[i+1]: local_extremas += 1 if line[i] < line[i-1] and line[i] <...
24.392857
57
0.565154
118
683
3.20339
0.254237
0.119048
0.111111
0.238095
0.632275
0.632275
0.632275
0.632275
0.632275
0.632275
0
0.058708
0.25183
683
27
58
25.296296
0.681018
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.047619
0
0
0
null
0
0
1
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
2
8b92ac94c1ae589379f9a464ee9054e9444b0606
975
py
Python
expfactory_deploy/experiments/migrations/0013_auto_20211119_2336.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/experiments/migrations/0013_auto_20211119_2336.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
31
2021-03-08T21:30:47.000Z
2022-03-01T12:09:09.000Z
expfactory_deploy/experiments/migrations/0013_auto_20211119_2336.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-11-19 23:36 from django.db import migrations import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('experiments', '0012_repoorigin_name'), ] operations = [ migrations.AddField( model_name='battery', ...
32.5
138
0.622564
108
975
5.425926
0.453704
0.068259
0.109215
0.102389
0.614334
0.614334
0.614334
0.614334
0.614334
0.614334
0
0.042062
0.244103
975
29
139
33.62069
0.753053
0.046154
0
0.434783
1
0
0.126078
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8b9ceb0b9461a2cc83b6da8c900015dc228719d1
1,810
py
Python
scripts/mechanics/ammoFind.py
TheNewGuy100/PyxelGameProject
1b29eac02577f5a6ce88fdce1e490408a6ff108b
[ "MIT" ]
null
null
null
scripts/mechanics/ammoFind.py
TheNewGuy100/PyxelGameProject
1b29eac02577f5a6ce88fdce1e490408a6ff108b
[ "MIT" ]
null
null
null
scripts/mechanics/ammoFind.py
TheNewGuy100/PyxelGameProject
1b29eac02577f5a6ce88fdce1e490408a6ff108b
[ "MIT" ]
null
null
null
import random import pyxel class ammoSpawner(): probability = 0 ammo_package_list = [] ammo_package_x = 0 ammo_package_y = 0 ammo_package_img = 0 ammo_package_u = 48 ammo_package_v = 0 ammo_package_w = 16 ammo_package_h = 16 ammo_package_color_exclusion = 0 def spawnAmmoIn...
34.150943
100
0.51105
221
1,810
3.823529
0.239819
0.260355
0.195266
0.112426
0.063905
0.063905
0
0
0
0
0
0.028674
0.383425
1,810
52
101
34.807692
0.728495
0
0
0.043478
0
0
0.018805
0
0
0
0
0
0
1
0.043478
false
0
0.043478
0
0.326087
0
0
0
0
null
1
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
2
8ba25fff714e094a25f31f7f829c5412ba29a423
113
py
Python
Uche Clare/Phase 1/Python Basic 1/Day 2/Task-7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Uche Clare/Phase 1/Python Basic 1/Day 2/Task-7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Uche Clare/Phase 1/Python Basic 1/Day 2/Task-7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
file = input('Enter the file name: ') file_extsn= file.split(".") print(f"The file extension is {file_extsn[1]}")
37.666667
47
0.699115
19
113
4.052632
0.631579
0.181818
0
0
0
0
0
0
0
0
0
0.01
0.115044
113
3
47
37.666667
0.76
0
0
0
0
0
0.517544
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8bd2e03a729afea24c08b91aefd96ce491cc6fa7
1,026
py
Python
backend/wmg/config.py
chanzuckerberg/dcp-prototype
24d2323ba5ae1482395da35ea11c42708e3a52ce
[ "MIT" ]
2
2020-02-07T18:12:12.000Z
2020-02-11T14:59:03.000Z
backend/wmg/config.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
173
2020-01-29T17:48:02.000Z
2020-03-20T02:52:58.000Z
backend/wmg/config.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
1
2020-03-20T17:06:54.000Z
2020-03-20T17:06:54.000Z
import os from backend.corpora.common.utils.secret_config import SecretConfig class WmgConfig(SecretConfig): def __init__(self, *args, **kwargs): super().__init__("backend", secret_name="wmg_config", **kwargs) # TODO: promote this impl to parent class, if new behavior works universally def __get...
38
120
0.666667
125
1,026
5.192
0.488
0.05547
0.050847
0.07396
0.20339
0.172573
0.135593
0.135593
0.135593
0.135593
0
0
0.229045
1,026
26
121
39.461538
0.82048
0.128655
0
0.157895
0
0
0.116723
0.050505
0
0
0
0.038462
0
1
0.157895
false
0
0.105263
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
8bd8fd8bcbe12ea9d65972a0f05b430524b667f6
12,192
py
Python
homework4/problem1.py
jojonium/CS-539-Machine-Learning
a1d2b07d0e092faf5580b44f8d4f01d02ea89564
[ "MIT" ]
null
null
null
homework4/problem1.py
jojonium/CS-539-Machine-Learning
a1d2b07d0e092faf5580b44f8d4f01d02ea89564
[ "MIT" ]
null
null
null
homework4/problem1.py
jojonium/CS-539-Machine-Learning
a1d2b07d0e092faf5580b44f8d4f01d02ea89564
[ "MIT" ]
null
null
null
import numpy as np # Note: please don't import any new package. You should solve this problem using only the package(s) above. #------------------------------------------------------------------------- ''' Problem 1: Multi-Armed Bandit Problem (15 points) In this problem, you will implement the epsilon-greedy ...
59.764706
504
0.583169
1,674
12,192
4.21147
0.174433
0.028936
0.017021
0.02383
0.598156
0.578298
0.578298
0.547943
0.507801
0.496454
0
0.009758
0.209892
12,192
204
505
59.764706
0.722101
0.238599
0
0.1875
0
0
0
0
0
0
0
0.019608
0
1
0.3125
false
0
0.0625
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
47756b64945956a9583371705c815302265b6e59
150
py
Python
InBuiltExcptionHandling.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
InBuiltExcptionHandling.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
InBuiltExcptionHandling.py
ShanmukhaSrinivas/python-75-hackathon
57eafed31d84ac09079ba9bcbaa9263d79996313
[ "MIT" ]
null
null
null
#Handling Built-in Exceptions try: a=[int(i) for i in input('Enter a list:').split()] except Exception as e: print(e) else: print(sum(a))
18.75
54
0.64
26
150
3.692308
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.2
150
7
55
21.428571
0.8
0.186667
0
0
0
0
0.107438
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
478cb98411188bf5303571e6676d07647580653e
697
py
Python
src/app_conf.py
kb2ma/nethead-ui
950aa85806aa31e1d7857af8f933e75588c1fdc5
[ "Apache-2.0" ]
null
null
null
src/app_conf.py
kb2ma/nethead-ui
950aa85806aa31e1d7857af8f933e75588c1fdc5
[ "Apache-2.0" ]
null
null
null
src/app_conf.py
kb2ma/nethead-ui
950aa85806aa31e1d7857af8f933e75588c1fdc5
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Ken Bannister 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, software d...
31.681818
72
0.784792
108
697
5.037037
0.703704
0.110294
0.047794
0.058824
0
0
0
0
0
0
0
0.013582
0.15495
697
21
73
33.190476
0.910017
0.827834
0
0
0
0
0.180328
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
479e70d2464e3cffa60bc75a95fe4098d07ef70e
135
py
Python
conf/gunicorn.ini.py
tkosht/wsgis
ff178b3dece77b4fcc988bfdda43323c59c5a8bf
[ "MIT" ]
null
null
null
conf/gunicorn.ini.py
tkosht/wsgis
ff178b3dece77b4fcc988bfdda43323c59c5a8bf
[ "MIT" ]
null
null
null
conf/gunicorn.ini.py
tkosht/wsgis
ff178b3dece77b4fcc988bfdda43323c59c5a8bf
[ "MIT" ]
null
null
null
# import multiprocessing bind = "0.0.0.0:8000" # workers = multiprocessing.cpu_count() * 2 + 1 workers = 2 threads = 2 backlog = 4096
16.875
47
0.688889
20
135
4.6
0.65
0.065217
0.065217
0
0
0
0
0
0
0
0
0.144144
0.177778
135
7
48
19.285714
0.684685
0.503704
0
0
0
0
0.1875
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47a01e21fd83b200656578db1346b698bc099953
1,154
py
Python
svg_ultralight/strings/svg_strings.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2019-10-26T01:49:58.000Z
2019-10-26T01:49:58.000Z
svg_ultralight/strings/svg_strings.py
ShayHill/svg_writer
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2020-01-29T13:15:58.000Z
2020-02-03T14:30:13.000Z
svg_ultralight/strings/svg_strings.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """Explicit string formatting calls for arguments that aren't floats or strings. :author: Shay Hill :created: 10/30/2020 The `string_conversion` module will format floats or strings. Some other formatters can make things easier. """ from typing import Iterable, Tuple f...
24.553191
87
0.65078
178
1,154
4.129213
0.455056
0.032653
0.027211
0.043537
0.065306
0.032653
0
0
0
0
0
0.046995
0.207106
1,154
46
88
25.086957
0.756284
0.519064
0
0
0
0
0.039749
0
0
0
0
0
0
1
0.3
false
0
0.2
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
1
0
0
2
47a23ce8de0f7e1c1f6574462f21c6af7dde34a8
3,355
py
Python
data.py
Goteia000/simple_dcf_model
56453374a59bfecfcc642452649df4dd5e57e6fc
[ "MIT" ]
2
2021-09-30T09:02:47.000Z
2021-09-30T09:02:56.000Z
data.py
Goteia000/simple_dcf_model
56453374a59bfecfcc642452649df4dd5e57e6fc
[ "MIT" ]
null
null
null
data.py
Goteia000/simple_dcf_model
56453374a59bfecfcc642452649df4dd5e57e6fc
[ "MIT" ]
1
2021-09-30T09:02:43.000Z
2021-09-30T09:02:43.000Z
from util import retrieve_from # 3b732d31142b79d4e8d659612f55181a class API_Data: def __init__(self, ticker, apikey='2bd6ce6f77da18e51c3e254ed9060702', url='https://financialmodelingprep.com', verbose=True): self.url = url self.ticker = ticker self.verbose = verbose self.say('Initi...
39.470588
129
0.677794
386
3,355
5.720207
0.238342
0.076993
0.069746
0.100091
0.404438
0.298913
0.298913
0.298913
0.131793
0.063859
0
0.025922
0.183607
3,355
85
130
39.470588
0.780212
0.009538
0
0.0625
0
0
0.220048
0.086996
0
0
0
0
0
1
0.296875
false
0
0.015625
0.25
0.59375
0.046875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
47ac2d70d6ed5c6188e9d9e02a45b45e4971d1a0
12,789
py
Python
fonts/FreeSerifItalic9pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/FreeSerifItalic9pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
fonts/FreeSerifItalic9pt7b.py
cnobile2012/Python-TFT
812a87e6f694eae338c3d9579ea98eae636f8f99
[ "MIT" ]
null
null
null
FreeSerifItalic9pt7bBitmaps = [ 0x11, 0x12, 0x22, 0x24, 0x40, 0x0C, 0xDE, 0xE5, 0x40, 0x04, 0x82, 0x20, 0x98, 0x24, 0x7F, 0xC4, 0x82, 0x23, 0xFC, 0x24, 0x11, 0x04, 0x83, 0x20, 0x1C, 0x1B, 0x99, 0x4D, 0x26, 0x81, 0xC0, 0x70, 0x1C, 0x13, 0x49, 0xA4, 0xDA, 0xC7, 0xC1, 0x00, 0x80, 0x1C, 0x61, 0xCF, 0x0E, 0x...
63
75
0.485104
1,901
12,789
3.263019
0.178327
0.013542
0.005804
0.006448
0.106723
0.034822
0.027084
0.018056
0.018056
0.018056
0
0.502573
0.3313
12,789
202
76
63.311881
0.222755
0.068027
0
0
0
0
0
0
0
0
0.394247
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47af993a84cf34ff99ffcacf9194808e2ebd9008
149
py
Python
app.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
app.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
app.py
heminsatya/free_notes
88272a34c48e60d1a82e28b0b2d56883fa724bb3
[ "MIT" ]
null
null
null
# Dependencies from aurora import Aurora # Instantiate the root app root = Aurora() # Run the root app if __name__ == '__main__': root.run()
12.416667
26
0.691275
20
149
4.75
0.6
0.147368
0.210526
0
0
0
0
0
0
0
0
0
0.214765
149
11
27
13.545455
0.811966
0.362416
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
2
47b985de53eb519f4ebb42dd21f03e305b651a65
633
py
Python
lochlanandcatherinecom/urls.py
Lochlan/LochlanAndCatherine.com
6b1cf9f09843aac6e0913e36027b7e463d841f5e
[ "MIT" ]
1
2021-12-01T14:15:48.000Z
2021-12-01T14:15:48.000Z
lochlanandcatherinecom/urls.py
Lochlan/LochlanAndCatherine.com
6b1cf9f09843aac6e0913e36027b7e463d841f5e
[ "MIT" ]
null
null
null
lochlanandcatherinecom/urls.py
Lochlan/LochlanAndCatherine.com
6b1cf9f09843aac6e0913e36027b7e463d841f5e
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from django.views.generic import TemplateView from rsvps.views import GuestRsvpView urlpatterns = [ url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'), url(r'^about/$', TemplateView.as_view(template_name="about.ht...
39.5625
94
0.704581
88
633
4.965909
0.352273
0.05492
0.16476
0.237986
0.2746
0
0
0
0
0
0
0.003515
0.101106
633
15
95
42.2
0.764499
0
0
0
0
0
0.192733
0.034755
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
2
47bdcd7764248ec0a7ac4f4713a76ad09dd53a5d
318
py
Python
app/mocks/bme280.py
mygulamali/pi-sensors
58ce1783822ca6b6f0cf8c52fad2f5c45bed0b9a
[ "MIT" ]
null
null
null
app/mocks/bme280.py
mygulamali/pi-sensors
58ce1783822ca6b6f0cf8c52fad2f5c45bed0b9a
[ "MIT" ]
null
null
null
app/mocks/bme280.py
mygulamali/pi-sensors
58ce1783822ca6b6f0cf8c52fad2f5c45bed0b9a
[ "MIT" ]
null
null
null
from mocks.base import Base class BME280(Base): @property def humidity(self) -> float: # % return 100.0 * self.value @property def pressure(self) -> float: # hPa return 1013.25 * self.value @property def temperature(self) -> float: # ºC return 100.0 * self.value
19.875
41
0.59434
40
318
4.725
0.525
0.174603
0.10582
0.148148
0.201058
0
0
0
0
0
0
0.075893
0.295597
318
15
42
21.2
0.767857
0.025157
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.272727
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
47c5b482e80559c96eaec3ef562d424384c2d9e1
135
py
Python
queries/variables/schedule_vars.py
CaladBlogBaal/Victorique
1574909ae2c70502a31e9380bec44e3a8c274ee9
[ "MIT" ]
null
null
null
queries/variables/schedule_vars.py
CaladBlogBaal/Victorique
1574909ae2c70502a31e9380bec44e3a8c274ee9
[ "MIT" ]
null
null
null
queries/variables/schedule_vars.py
CaladBlogBaal/Victorique
1574909ae2c70502a31e9380bec44e3a8c274ee9
[ "MIT" ]
null
null
null
def get_schedule(page: str): if not page.isdecimal(): return False variables = {"page": page} return variables
13.5
30
0.614815
16
135
5.125
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.281481
135
9
31
15
0.845361
0
0
0
0
0
0.029851
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47d903147af5e93fc0c3a7c3fe5cf0ef547ab64a
26,905
py
Python
sickbeard/lib/tidysub/cleaner.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/tidysub/cleaner.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/tidysub/cleaner.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import re from datetime import timedelta from datetime import datetime from regex import strings from sickbeard import logger #Definition of the TidySub class class TidySub: """Load the subtitle, the file containing regex for removal and perform the ...
41.648607
210
0.480394
3,438
26,905
3.545957
0.075625
0.138381
0.217456
0.201788
0.668772
0.629399
0.588221
0.567222
0.545402
0.518825
0
0.02068
0.352983
26,905
645
211
41.713178
0.67963
0.112172
0
0.453782
0
0.019608
0.11385
0.028178
0.008403
0
0
0
0
1
0.044818
false
0
0.016807
0
0.117647
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
47dc7d6c25e244c2e296c1d8aa2a9001dfbe3caa
1,299
py
Python
zusha/registrations/forms.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
1
2020-02-24T08:06:26.000Z
2020-02-24T08:06:26.000Z
zusha/registrations/forms.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
6
2021-02-08T20:41:46.000Z
2021-09-22T18:34:32.000Z
zusha/registrations/forms.py
samsonmuoki/zusha_web_app
5ea788402e48855e8d77a92e379730ad646aad27
[ "MIT" ]
null
null
null
from django import forms SACCO_DRIVER_STATUS_OPTIONS = [ ('Approved', ('Approved to operate')), ('Suspended', ('Suspended for the time being')), ('Blacklisted', ('Blacklisted from operating')) ] class VehicleForm(forms.Form): # sacco = forms.CharField(label="Sacco", max_length=100) regno = forms....
29.522727
77
0.681293
158
1,299
5.455696
0.392405
0.178654
0.138051
0.186775
0.189095
0.157773
0.090487
0
0
0
0
0.016068
0.185527
1,299
43
78
30.209302
0.798677
0.331024
0
0
0
0
0.160906
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.631579
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
47dd004119477db44422d5eb51f9711a7dd8e6db
1,146
py
Python
terminal/test zips/outlab_3_boilerplate_files/q4.py
Phantom-Troupe-CS251/RedPlag
6c6d7a26fcc5d23cf5bea26d3d1596a87f8dda7c
[ "MIT" ]
null
null
null
terminal/test zips/outlab_3_boilerplate_files/q4.py
Phantom-Troupe-CS251/RedPlag
6c6d7a26fcc5d23cf5bea26d3d1596a87f8dda7c
[ "MIT" ]
7
2021-04-08T20:12:18.000Z
2021-06-10T20:19:13.000Z
terminal/test zips/outlab_3_boilerplate_files/q4.py
Phantom-Troupe-CS251/RedPlag
6c6d7a26fcc5d23cf5bea26d3d1596a87f8dda7c
[ "MIT" ]
1
2022-01-15T21:57:16.000Z
2022-01-15T21:57:16.000Z
class Node(object): """ Node contains two objects - a left and a right child, both may be a Node or both None, latter representing a leaf """ def __init__(self, left=None, right=None): super(Node, self).__init__() self.left = left self.right = right def __str__(self): """ Default inorder print """ ...
21.222222
87
0.664049
178
1,146
4.140449
0.353933
0.065129
0.054274
0.070556
0.371777
0.339213
0.265943
0.200814
0.200814
0.108548
0
0
0.212914
1,146
54
88
21.222222
0.817073
0.273124
0
0.25
0
0
0.02293
0
0
0
0
0
0
1
0.214286
false
0.107143
0
0
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
47de2641ba81214d7d547e34e58e9768e2ea4b0e
194
py
Python
tests/python-reference/scope/unboundlocal-augassign.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
25
2015-04-16T04:31:49.000Z
2022-03-10T15:53:28.000Z
tests/python-reference/scope/unboundlocal-augassign.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2018-11-21T22:40:02.000Z
2018-11-26T17:53:11.000Z
tests/python-reference/scope/unboundlocal-augassign.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2021-03-26T03:36:19.000Z
2021-03-26T03:36:19.000Z
# the variable in f() is lifted as a local and assigned # unbound, because it is the left side of an assignment. global_x = 1 def f(): global_x += 1 ___assertRaises(UnboundLocalError, f)
19.4
57
0.716495
32
194
4.1875
0.78125
0.104478
0.119403
0
0
0
0
0
0
0
0
0.012987
0.206186
194
9
58
21.555556
0.857143
0.561856
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
47e1cd316eeb2f2dc4c37e6c150a32ca7d440112
4,063
py
Python
config/settings/base.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
1
2021-01-28T15:16:39.000Z
2021-01-28T15:16:39.000Z
config/settings/base.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
77
2021-02-01T04:53:10.000Z
2021-12-07T15:45:43.000Z
config/settings/base.py
hussu010/Backend-1
f5d9a057d6ff947f6574b45f825d7987e2ac2730
[ "MIT" ]
3
2021-01-28T15:05:56.000Z
2021-02-22T17:12:08.000Z
from decouple import config import os from datetime import timedelta BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '0s-b^agz!&i1$oiq01cc4(-u_12h-cch%wzy-^yfp)#+)zu$6(' # SECURITY WARNING: don't r...
26.907285
120
0.700222
439
4,063
6.275626
0.425968
0.080218
0.049365
0.03049
0.155717
0.127768
0.055898
0.045372
0.029038
0
0
0.011183
0.163672
4,063
150
121
27.086667
0.799588
0.101649
0
0.017699
0
0.00885
0.547154
0.440748
0
0
0
0
0
1
0
false
0.088496
0.026549
0
0.026549
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
1
0
0
0
0
0
2
47e4c27ad316c37108a43e60b9846e5c322b9019
3,519
py
Python
kbc.py
JayPrakash916/KBC-CLI-Game
500087cfc75b4909b6210474b3925260990aba51
[ "MIT" ]
1
2022-03-08T15:11:42.000Z
2022-03-08T15:11:42.000Z
kbc.py
jaypatel149/KBC-CLI-Game
500087cfc75b4909b6210474b3925260990aba51
[ "MIT" ]
null
null
null
kbc.py
jaypatel149/KBC-CLI-Game
500087cfc75b4909b6210474b3925260990aba51
[ "MIT" ]
null
null
null
# question_list=["1.who wrote the mahabharat?","2.what is the capital of India?","3.what is apples colour?","4.what is tree colour?","5.how many months there are in a year?","6.who is the computer invetor?","7.What was the of the first computer?","8.When was the search for a modern computer first?","9.when did the gre...
51.75
591
0.649901
586
3,519
3.836177
0.354949
0.028915
0.032028
0.020018
0.251335
0.209075
0.182384
0.168149
0.095196
0.057829
0
0.09042
0.154589
3,519
67
592
52.522388
0.66521
0.961921
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
9a155cee4afd6b0180e15248ff97224599a6062d
1,999
py
Python
setup.py
itamar-otonomo/traj-dist-py3
94fb273c2b2ca7e0e01c7147afdf72852c7dc698
[ "MIT" ]
null
null
null
setup.py
itamar-otonomo/traj-dist-py3
94fb273c2b2ca7e0e01c7147afdf72852c7dc698
[ "MIT" ]
null
null
null
setup.py
itamar-otonomo/traj-dist-py3
94fb273c2b2ca7e0e01c7147afdf72852c7dc698
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from Cython.Distutils.extension import Extension from Cython.Build import cythonize, build_ext import numpy import os from glob import glob """ ext_modules = [Extension("traj_dist.cydist.basic_geographical", ["traj_dist/cydist/basic_geographical.pyx"]), Extens...
44.422222
109
0.664832
249
1,999
5.144578
0.305221
0.156128
0.273224
0.215457
0.384075
0.051522
0
0
0
0
0
0.016949
0.173587
1,999
44
110
45.431818
0.758475
0.012006
0
0
0
0
0.263699
0.082192
0
0
0
0
0
1
0
false
0
0.24
0
0.24
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a16a18ab00a6efdf738f2cb0248812497d792f6
328
py
Python
genbank-fan/nwk_tree_parser.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
2
2017-12-25T09:14:52.000Z
2021-05-18T06:39:26.000Z
genbank-fan/nwk_tree_parser.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
1
2018-09-29T22:34:30.000Z
2018-09-29T22:34:30.000Z
genbank-fan/nwk_tree_parser.py
chnops/code
cd48843ed7b7239fdb85bff66f02510a7c7899b5
[ "MIT" ]
1
2020-10-19T02:22:06.000Z
2020-10-19T02:22:06.000Z
import sys from Bio import Phylo names = {} tree = Phylo.read(sys.argv[1], "newick") for idx, clade in enumerate(tree.find_clades()): if clade.name: clade.name = '%d\t%s' % (idx, clade.name) print clade.name # else: # clade.name = str(idx) # names = clade.name # print...
19.294118
49
0.573171
46
328
4.065217
0.565217
0.28877
0.149733
0
0
0
0
0
0
0
0
0.004274
0.286585
328
16
50
20.5
0.794872
0.204268
0
0
0
0
0.047059
0
0
0
0
0
0
0
null
null
0
0.25
null
null
0.125
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
1
0
0
0
0
0
0
0
0
2
9a203f5d4de21212c8c99bab315c77cab82e9241
258
py
Python
cyberdb/extensions/nonce.py
Cyberbolt/CyberDB
a1e11c28557992a4b9de0f737b73f857fa10513d
[ "MIT" ]
1
2022-03-25T15:53:46.000Z
2022-03-25T15:53:46.000Z
cyberdb/extensions/nonce.py
Cyberbolt/CyberDB
a1e11c28557992a4b9de0f737b73f857fa10513d
[ "MIT" ]
null
null
null
cyberdb/extensions/nonce.py
Cyberbolt/CyberDB
a1e11c28557992a4b9de0f737b73f857fa10513d
[ "MIT" ]
null
null
null
import random seed = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' def generate(num: int): ''' Generate num random strings. ''' text = '' for i in range(num): text += random.choice(seed) return text
17.2
71
0.647287
24
258
6.958333
0.666667
0.131737
0
0
0
0
0
0
0
0
0
0.052083
0.255814
258
14
72
18.428571
0.817708
0.108527
0
0
1
0
0.295238
0.295238
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
9a2ffc053c54e607bcaa51b3431003f5676ea469
834
py
Python
proxy/init.py
chrissvec/py-proxy
c58524ef51287832480f9ec5a13ab7b49c1a3207
[ "Apache-2.0" ]
null
null
null
proxy/init.py
chrissvec/py-proxy
c58524ef51287832480f9ec5a13ab7b49c1a3207
[ "Apache-2.0" ]
2
2018-09-03T19:56:25.000Z
2018-09-03T21:29:45.000Z
proxy/init.py
chrissvec/py-proxy
c58524ef51287832480f9ec5a13ab7b49c1a3207
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Flask is used to create a somewhat lightweight listening server from flask import Flask from requests import get def spawn_proxy(): myproxy = Flask('__name__') # Quick health check override @myproxy.route('/healthcheck', methods=['GET']) def health(): return "OK" # ...
27.8
95
0.641487
122
834
4.344262
0.606557
0.045283
0.073585
0
0
0
0
0
0
0
0
0.00468
0.231415
834
29
96
28.758621
0.822153
0.378897
0
0
0
0
0.210938
0.044922
0
0
0
0
0
1
0.266667
false
0
0.133333
0.133333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
9a3c6c9f57b9f416f11a1b4130f8ccb40706d669
1,021
py
Python
api/management/commands/set_in_search_init.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
api/management/commands/set_in_search_init.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
api/management/commands/set_in_search_init.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
from django.core.management.base import BaseCommand from api.models import Country from django.db import transaction from django.db.models import Q from api.logger import logger class Command(BaseCommand): help = 'Update Countries initially to set/revoke their in_search field (probably one-time run only)' @t...
44.391304
132
0.70715
141
1,021
5.042553
0.531915
0.078762
0.033755
0.073136
0.135021
0.070323
0
0
0
0
0
0.002478
0.209598
1,021
22
133
46.409091
0.878563
0.144956
0
0
0
0
0.214286
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9a49ee0bc62c027eca486dae4088564bd121e81d
4,597
py
Python
skbio/sequence/__init__.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/__init__.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/__init__.py
Kleptobismol/scikit-bio
3df95446558273034b884852f2b7bf6a1872f66d
[ "BSD-3-Clause" ]
null
null
null
r""" Biological sequences (:mod:`skbio.sequence`) ============================================ .. currentmodule:: skbio.sequence This module provides functionality for working with biological sequences, including generic sequences, nucelotide sequences, DNA sequences, and RNA sequences. Class methods and attributes a...
28.202454
79
0.632369
502
4,597
5.752988
0.537849
0.030471
0.022161
0.023546
0.149584
0.101801
0.078255
0.059557
0
0
0
0.009985
0.150315
4,597
162
80
28.376543
0.729391
0.844681
0
0
0
0
0.264664
0.032904
0
0
0
0
0
1
0
false
0
0.307692
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
9a4bfdd555307b1d08cd32c81afe1846547c1ec6
1,020
py
Python
test_cast/19-10-17/Animal-shelter/solution.py
qinggniq/Algorithm-Practice
24339bd059cd3cf7fe8e93a74d54b59cf4686a1b
[ "MIT" ]
null
null
null
test_cast/19-10-17/Animal-shelter/solution.py
qinggniq/Algorithm-Practice
24339bd059cd3cf7fe8e93a74d54b59cf4686a1b
[ "MIT" ]
null
null
null
test_cast/19-10-17/Animal-shelter/solution.py
qinggniq/Algorithm-Practice
24339bd059cd3cf7fe8e93a74d54b59cf4686a1b
[ "MIT" ]
null
null
null
class Animal: def __init__(self, id: int, isDog: bool): self.id = id self.isDog = isDog class Solution: def __init__(self): self.catQueue = [] self.dogQueue = [] self.time = 0 def enqueue(self, animal: list): if animal[1]: self.dogQueue.append((...
28.333333
81
0.537255
134
1,020
4.029851
0.201493
0.177778
0.066667
0.061111
0.396296
0.225926
0.125926
0.125926
0.125926
0.125926
0
0.041193
0.309804
1,020
35
82
29.142857
0.725852
0
0
0.241379
0
0
0
0
0
0
0
0
0
1
0.206897
false
0
0
0
0.517241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9a4fbee8c660577f7ab8ea70991157a3dbe45260
1,106
py
Python
douban/test.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-07-08T10:53:13.000Z
2021-07-20T00:20:10.000Z
douban/test.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
1
2021-05-11T05:20:18.000Z
2021-05-11T05:20:18.000Z
douban/test.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-10-31T06:31:54.000Z
2020-08-31T20:55:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2018-01-27 09:47:26 from __future__ import print_function, unicode_literals, absolute_import import requests import json import os import sys import hashlib import time import argparse import logging from lxml import etree, html sys.path.inse...
29.105263
74
0.707957
164
1,106
4.554878
0.536585
0.064257
0.034806
0.040161
0.042838
0
0
0
0
0
0
0.030688
0.14557
1,106
38
75
29.105263
0.759788
0.08047
0
0
0
0
0.17357
0.100592
0
0
0
0
0
1
0.068966
false
0
0.413793
0
0.517241
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9a679d43076a030e4540f8a43993c6d6c872dcb4
1,099
py
Python
pollicino/core/views.py
inmagik/pollicino
b4eed3ed6772b479b129ead3f5e0cd8985c2308d
[ "MIT" ]
2
2016-02-13T01:17:18.000Z
2019-05-14T12:18:59.000Z
pollicino/core/views.py
inmagik/pollicino
b4eed3ed6772b479b129ead3f5e0cd8985c2308d
[ "MIT" ]
5
2016-02-13T11:02:07.000Z
2016-02-14T11:37:37.000Z
pollicino/core/views.py
inmagik/pollicino
b4eed3ed6772b479b129ead3f5e0cd8985c2308d
[ "MIT" ]
null
null
null
from rest_framework import parsers, renderers from rest_framework.authtoken.models import Token from rest_framework.authtoken.serializers import AuthTokenSerializer from rest_framework.response import Response from rest_framework.views import APIView from .serializers import ClientTokenSerializer from .models import C...
39.25
96
0.767971
125
1,099
6.552
0.448
0.04884
0.103785
0.063492
0
0
0
0
0
0
0
0
0.148317
1,099
27
97
40.703704
0.875
0
0
0
0
0
0.021838
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.681818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
9a69ddd3a8f973574a1c799b6f76a4a45dc16941
425
py
Python
website/drawquest/apps/twitter/tests.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/drawquest/apps/twitter/tests.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/drawquest/apps/twitter/tests.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
from drawquest.tests.tests_helpers import (CanvasTestCase, create_content, create_user, create_group, create_comment, create_staff, create_quest, create_quest_comment) from services import Services, override_service class TestSimpleThing(CanvasTestCase): def test_basic_a...
38.636364
108
0.691765
48
425
5.875
0.604167
0.078014
0
0
0
0
0
0
0
0
0
0.018462
0.235294
425
10
109
42.5
0.849231
0.077647
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7bd46a5c372367948d61a884aa54a2e6344f6581
2,982
py
Python
insights/parsers/dmsetup.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
1
2020-02-19T06:36:22.000Z
2020-02-19T06:36:22.000Z
insights/parsers/dmsetup.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
10
2018-04-16T15:38:04.000Z
2018-05-15T18:43:02.000Z
insights/parsers/dmsetup.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
null
null
null
""" dmsetup commands - Command ``dmsetup`` ====================================== Parsers for parsing and extracting data from output of commands related to ``dmsetup``. Parsers contained in this module are: DmsetupInfo - command ``dmsetup info -C`` ----------------------------------------- """ from insights import...
32.064516
125
0.568746
327
2,982
5.11315
0.302752
0.009569
0.008971
0.032895
0.123804
0.114833
0.066986
0.064593
0.064593
0.034689
0
0.076288
0.309859
2,982
92
126
32.413043
0.736152
0.648223
0
0
0
0
0.039409
0
0
0
0
0
0
1
0.222222
false
0
0.166667
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
1
0
0
0
0
1
0
0
2
7bd61bb961ac2f96b6cd5a0d390598cbf39fc37e
459
py
Python
maxixe/tests/__init__.py
tswicegood/maxixe
680fc8e92bf34e5b825ee0685659e40e992b0328
[ "Apache-2.0" ]
1
2020-07-09T04:30:52.000Z
2020-07-09T04:30:52.000Z
maxixe/tests/__init__.py
tswicegood/maxixe
680fc8e92bf34e5b825ee0685659e40e992b0328
[ "Apache-2.0" ]
null
null
null
maxixe/tests/__init__.py
tswicegood/maxixe
680fc8e92bf34e5b825ee0685659e40e992b0328
[ "Apache-2.0" ]
null
null
null
import unittest import maxixe from maxixe.tests import decorators from maxixe.tests import loader from maxixe.tests import parser from maxixe.tests import utils suite = unittest.TestSuite() suite.addTests(unittest.TestLoader().loadTestsFromModule(decorators)) suite.addTests(unittest.TestLoader().loadTestsFromModule(l...
32.785714
69
0.840959
51
459
7.568627
0.27451
0.103627
0.15544
0.217617
0.518135
0
0
0
0
0
0
0
0.063181
459
13
70
35.307692
0.897674
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7bd782eb8fc064cd238c47be544613cbc28798db
197
py
Python
_celery/djusecelery/app/blog/models.py
yc19890920/ap
5df907afdeeea06befbb29c11f2bab8ff06efb16
[ "Apache-2.0" ]
1
2021-01-11T06:30:44.000Z
2021-01-11T06:30:44.000Z
_celery/djusecelery/app/blog/models.py
yc19890920/ap
5df907afdeeea06befbb29c11f2bab8ff06efb16
[ "Apache-2.0" ]
23
2020-02-12T02:35:49.000Z
2022-02-11T03:45:40.000Z
_celery/djusecelery/app/blog/models.py
yc19890920/ap
5df907afdeeea06befbb29c11f2bab8ff06efb16
[ "Apache-2.0" ]
2
2020-04-08T15:39:46.000Z
2020-10-10T10:13:09.000Z
from django.db import models class Blog(models.Model): title = models.CharField("标题", unique=True, max_length=200) class Meta: db_table = 'blog' verbose_name = '文章'
24.625
64
0.629442
26
197
4.653846
0.807692
0
0
0
0
0
0
0
0
0
0
0.020548
0.258883
197
8
65
24.625
0.808219
0
0
0
0
0
0.041885
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7be2f875af66c9790f73435416bff026e32c3f3c
303
py
Python
apps/node/urls.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/urls.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/urls.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
from django.urls import path from .views import NodeShow, NodeDetail, SelectNode urlpatterns = [ path('node/', NodeShow.as_view(), name='node-show'), path('node/detail/<int:n_id>', NodeDetail.as_view(), name='node-detail'), path('node/select/', SelectNode.as_view(), name='node-select') ]
30.3
77
0.693069
41
303
5.02439
0.487805
0.116505
0.145631
0.203884
0
0
0
0
0
0
0
0
0.122112
303
9
78
33.666667
0.774436
0
0
0
0
0
0.231023
0.072607
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7bf2a9b6a67d041af571455be0ab5ad877d7c335
1,075
py
Python
cryptography/generate_hash_512.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
null
null
null
cryptography/generate_hash_512.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
null
null
null
cryptography/generate_hash_512.py
dgengtek/scripts
b5b8b82b0295fd2714aaee1b8adb432b111106e8
[ "MIT" ]
1
2016-11-10T21:07:58.000Z
2016-11-10T21:07:58.000Z
#!/usr/bin/env python3 # generate password mac for dovecot import sys import os import getopt from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes import base64 import binascii def usage(): h="usage:\t"+sys.argv[0] h+=" [-s salt] password" print(h) ...
17.916667
61
0.701395
163
1,075
4.533742
0.429448
0.032476
0.05954
0
0
0
0
0
0
0
0
0.028446
0.149767
1,075
59
62
18.220339
0.780088
0.051163
0
0.097561
1
0
0.054028
0
0
0
0
0
0
1
0.02439
false
0.121951
0.170732
0
0.195122
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
d01b2f2cb24dd0a2ee3bf69928cc7825efe2edce
63
py
Python
oppertions/09.py
mallimuondu/python-practice
64fce60a646032152db8b35e20df06b2edc349ae
[ "MIT" ]
null
null
null
oppertions/09.py
mallimuondu/python-practice
64fce60a646032152db8b35e20df06b2edc349ae
[ "MIT" ]
null
null
null
oppertions/09.py
mallimuondu/python-practice
64fce60a646032152db8b35e20df06b2edc349ae
[ "MIT" ]
null
null
null
i = 1 while i < 6: print(i) if (i == 3): break i += 1
10.5
14
0.412698
13
63
2
0.615385
0.153846
0
0
0
0
0
0
0
0
0
0.105263
0.396825
63
6
15
10.5
0.578947
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d02257e82f4fa0555ff0d69e8ad9229555702083
909
py
Python
saleor/graphql/payment/resolvers.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/payment/resolvers.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/payment/resolvers.py
valcome-analytics/saleor
f41b5d0de897b3914fe8bfd19c4f0b3c15448fa0
[ "CC-BY-4.0" ]
null
null
null
import stripe from ...payment.gateways.stripe.plugin import StripeGatewayPlugin from ...plugins import manager from ... import settings from ...payment import gateway as payment_gateway, models from ...payment.utils import fetch_customer_id from ..utils.filters import filter_by_query_param PAYMENT_SEARCH_FIELDS = ["i...
33.666667
87
0.79978
119
909
5.798319
0.361345
0.069565
0.043478
0.052174
0.075362
0
0
0
0
0
0
0
0.113311
909
26
88
34.961538
0.856079
0
0
0
0
0
0.027503
0.025303
0
0
0
0
0
1
0.166667
false
0
0.388889
0
0.722222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d036d5071239a9e4c15688c2507442b237ce79c1
704
py
Python
users/migrations/0005_auto_20190911_2212.py
nhy17-thu/ImageProcessingWebsite
d90eaf115c870dd359bf5315f7b56f042270f31f
[ "MIT" ]
1
2021-03-29T12:40:39.000Z
2021-03-29T12:40:39.000Z
users/migrations/0005_auto_20190911_2212.py
nhy17-thu/FinalProject_Upgrade
d90eaf115c870dd359bf5315f7b56f042270f31f
[ "MIT" ]
null
null
null
users/migrations/0005_auto_20190911_2212.py
nhy17-thu/FinalProject_Upgrade
d90eaf115c870dd359bf5315f7b56f042270f31f
[ "MIT" ]
1
2021-03-29T12:40:42.000Z
2021-03-29T12:40:42.000Z
# Generated by Django 2.2.4 on 2019-09-11 14:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20190907_1334'), ] operations = [ migrations.AddField( model_name='pic', name='classification152'...
24.275862
62
0.559659
67
704
5.776119
0.58209
0.139535
0.178295
0.209302
0.413437
0.413437
0.325581
0.325581
0.325581
0.325581
0
0.075314
0.321023
704
28
63
25.142857
0.73431
0.06392
0
0.5
1
0
0.118721
0.035008
0
0
0
0
0
1
0
false
0
0.045455
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d04906c47b20a2fc9a4e2322b72e323c7ab73e38
630
py
Python
ecomstore/caching.py
Pythonian/ecomstore
d24d20518f784901c553500bcfb83a1dd0063dfa
[ "MIT" ]
null
null
null
ecomstore/caching.py
Pythonian/ecomstore
d24d20518f784901c553500bcfb83a1dd0063dfa
[ "MIT" ]
null
null
null
ecomstore/caching.py
Pythonian/ecomstore
d24d20518f784901c553500bcfb83a1dd0063dfa
[ "MIT" ]
null
null
null
from django.core.cache import cache from .settings import CACHE_TIMEOUT def cache_update(sender, **kwargs): """ signal for updating a model instance in the cache; any Model class using this signal must have a uniquely identifying 'cache_key' property. """ item = kwargs.get('instance') cache....
26.25
58
0.707937
88
630
4.977273
0.386364
0.073059
0.068493
0.091324
0.689498
0.689498
0.689498
0.689498
0.689498
0.689498
0
0
0.201587
630
23
59
27.391304
0.870775
0.442857
0
0.25
0
0
0.051613
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
2
d050ce4cfcc71050d822eb59b610593d27513b27
844
py
Python
test/test_si7021.py
arkjedrz/si7021
0de2c5752d80634fcd7a2fa13b94b96f060ea8e8
[ "MIT" ]
null
null
null
test/test_si7021.py
arkjedrz/si7021
0de2c5752d80634fcd7a2fa13b94b96f060ea8e8
[ "MIT" ]
null
null
null
test/test_si7021.py
arkjedrz/si7021
0de2c5752d80634fcd7a2fa13b94b96f060ea8e8
[ "MIT" ]
null
null
null
import unittest import si7021 class Si7021SensorTests(unittest.TestCase): def setUp(self): # TODO: checks for Windows, but should check for embedded platform import os if os.name == 'Windows': raise OSError self._sensor = si7021.Si7021Sensor() def _assert_in_ra...
33.76
95
0.669431
108
844
4.981481
0.481481
0.055762
0.072491
0.094796
0.174721
0.115242
0.115242
0
0
0
0
0.035115
0.223934
844
25
96
33.76
0.78626
0.075829
0
0
0
0
0.160462
0
0
0
0
0.04
0.277778
1
0.222222
false
0
0.166667
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
d062245a593b0736a0398d18788c717441f93b06
333
py
Python
src/test/data_pipe_test/basic_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
14
2020-02-08T06:27:09.000Z
2021-06-02T07:35:09.000Z
src/test/data_pipe_test/basic_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
null
null
null
src/test/data_pipe_test/basic_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
null
null
null
""" """ from data_pipe.basic_index import * from data_pipe_test.verify_index import * def test_log2(): print() assert integer_log2(1) == 0 assert integer_log2(2) == 1 assert integer_log2(4) == 2 assert integer_log2(8) == 3 def test_index_store(): index_store = BasicIndex() verify_index(...
17.526316
41
0.678679
48
333
4.395833
0.4375
0.246446
0.322275
0
0
0
0
0
0
0
0
0.049057
0.204204
333
18
42
18.5
0.74717
0
0
0
0
0
0
0
0
0
0
0
0.363636
1
0.181818
false
0
0.181818
0
0.363636
0.090909
0
0
0
null
1
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
2
d0783d0b8aff709165b50879c3efa4d3ee0b5fdd
1,008
py
Python
dtu-api/dtu_api/model/database.py
demitri/DtU_api
5327e6ffa7bda8b76d9fdb97f8807178a32ae907
[ "BSD-3-Clause" ]
1
2017-03-01T23:16:59.000Z
2017-03-01T23:16:59.000Z
dtu-api/dtu_api/model/database.py
demitri/DtU_api
5327e6ffa7bda8b76d9fdb97f8807178a32ae907
[ "BSD-3-Clause" ]
null
null
null
dtu-api/dtu_api/model/database.py
demitri/DtU_api
5327e6ffa7bda8b76d9fdb97f8807178a32ae907
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python ''' This file handles a database connection. It can simply be deleted if not needed. The example given is for a PostgreSQL database, but can be modified for any other. ''' import psycopg2 from ..config import AppConfig from ..designpatterns import singleton config = AppConfig() @singleton clas...
24
84
0.644841
127
1,008
5.070866
0.582677
0.037267
0
0
0
0
0
0
0
0
0
0.00365
0.184524
1,008
42
85
24
0.779805
0.626984
0
0
0
0
0
0
0
0
0
0.02381
0
1
0.166667
false
0
0.25
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
d08638957b5714b11a24bb89d740acaa296f8478
117
py
Python
code_samples/vec2d_use.py
xanewton/PygameCreepsGame
9e0b1899824746223a76941d650c41c96f17b693
[ "Apache-2.0" ]
1
2016-12-23T04:28:19.000Z
2016-12-23T04:28:19.000Z
code_samples/vec2d_use.py
an-garcia/PygameCreepsGame
9e0b1899824746223a76941d650c41c96f17b693
[ "Apache-2.0" ]
null
null
null
code_samples/vec2d_use.py
an-garcia/PygameCreepsGame
9e0b1899824746223a76941d650c41c96f17b693
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import sys sys.path.append('..') from vec2d import vec2d v = vec2d(-1, 1) print (v.angle)
10.636364
23
0.649573
20
117
3.8
0.7
0
0
0
0
0
0
0
0
0
0
0.051546
0.17094
117
10
24
11.7
0.731959
0.179487
0
0
0
0
0.021053
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
d0966449bdccdd963df2a8b080e293af1207e7c7
356
py
Python
1 - Beginner/1789.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/1789.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/1789.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# URI Online Judge 1789 while True: try: N = int(input()) entrada = [int(i) for i in input().split()] if max(entrada) < 10: print(1) elif max(entrada) >= 10 and max(entrada) < 20: print(2) elif max(entrada) >= 20: print(3) ...
22.25
54
0.460674
43
356
3.813953
0.651163
0.243902
0.146341
0.207317
0
0
0
0
0
0
0
0.072816
0.421348
356
16
55
22.25
0.723301
0.058989
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
1
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
2
d0a1a1fb528f04c0b8fa3a54e4dfbdae933ae3da
262
py
Python
polichart/api/views.py
cjmabry/PoliChart
787d987669de4891b1b1ac5f8ebc0ecd38ac2785
[ "BSD-3-Clause" ]
null
null
null
polichart/api/views.py
cjmabry/PoliChart
787d987669de4891b1b1ac5f8ebc0ecd38ac2785
[ "BSD-3-Clause" ]
null
null
null
polichart/api/views.py
cjmabry/PoliChart
787d987669de4891b1b1ac5f8ebc0ecd38ac2785
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, current_app, request, jsonify from flask.ext.login import login_user, current_user, logout_user from ..extensions import db from polichart import models api = Blueprint('api', __name__, url_prefix='/api')
23.818182
65
0.755725
37
262
5.108108
0.621622
0.095238
0
0
0
0
0
0
0
0
0
0.004405
0.133588
262
10
66
26.2
0.828194
0.080153
0
0
0
0
0.029289
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d0ce9a54ed740f684dc6a0870300d383bc7c76bb
2,142
py
Python
agents/meinberg_m1000/mibs/MBG-SNMP-ROOT-MIB.py
simonsobs/socs
ef1c0f6e3620dcbb574aea64b5eb1b633ce87b07
[ "BSD-2-Clause" ]
6
2019-09-02T14:16:53.000Z
2022-01-19T20:49:35.000Z
agents/meinberg_m1000/mibs/MBG-SNMP-ROOT-MIB.py
simonsobs/socs
ef1c0f6e3620dcbb574aea64b5eb1b633ce87b07
[ "BSD-2-Clause" ]
183
2019-06-04T20:38:07.000Z
2022-03-28T18:45:17.000Z
agents/meinberg_m1000/mibs/MBG-SNMP-ROOT-MIB.py
simonsobs/socs
ef1c0f6e3620dcbb574aea64b5eb1b633ce87b07
[ "BSD-2-Clause" ]
7
2019-06-28T15:55:16.000Z
2022-02-02T16:27:44.000Z
# # PySNMP MIB module MBG-SNMP-ROOT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file://./MBG-SNMP-ROOT-MIB.mib # Produced by pysmi-0.3.4 at Fri May 1 22:39:55 2020 # On host grumpy platform Linux version 4.15.0-88-generic by user bjk49 # Using Python version 3.6.9 (default, Apr 18 2020, 01:56:04) # OctetString, In...
89.25
505
0.780579
217
2,142
7.695853
0.543779
0.082635
0.01976
0.02515
0.332934
0.214371
0.214371
0.214371
0.214371
0.214371
0
0.060112
0.083567
2,142
23
506
93.130435
0.790627
0.134921
0
0
0
0
0.303688
0.023861
0
0
0
0
0
1
0
false
0
0.4
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d0d243d05e669b4c8fae75d55d4640e696bff0af
1,079
py
Python
__manifest__.py
IDRISSOUM/sinerkia_jitsi_meet
febca48cd7a85ce922e880684a7c875b881b67b9
[ "Unlicense" ]
null
null
null
__manifest__.py
IDRISSOUM/sinerkia_jitsi_meet
febca48cd7a85ce922e880684a7c875b881b67b9
[ "Unlicense" ]
null
null
null
__manifest__.py
IDRISSOUM/sinerkia_jitsi_meet
febca48cd7a85ce922e880684a7c875b881b67b9
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # © 2020 Sinerkia iD (<https://www.sinerkia.com>). { 'name': 'Sinerkia Jitsi Meet Integration', 'version': '12.0.1.0.2', 'category': 'Extra Tools', 'sequence': 1, 'summary': 'Create and share Jitsi Meet video conferences with other users and external partners', 'descr...
43.16
162
0.663577
147
1,079
4.816327
0.632653
0.050847
0.072034
0.053672
0
0
0
0
0
0
0
0.014806
0.186284
1,079
24
163
44.958333
0.790433
0.068582
0
0
0
0.090909
0.765469
0.164671
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
d0f09f075edac3593aa66940fe395e234544b1af
1,987
py
Python
prueba.py
IC-3002/ic-3002-2020ii-p2-lobo
84ec7b4b8dd9ad38ce3ef713d569bd6a6cd8a848
[ "Apache-2.0" ]
null
null
null
prueba.py
IC-3002/ic-3002-2020ii-p2-lobo
84ec7b4b8dd9ad38ce3ef713d569bd6a6cd8a848
[ "Apache-2.0" ]
1
2021-08-23T20:55:21.000Z
2021-08-23T20:55:21.000Z
prueba.py
IC-3002/ic-3002-2020ii-p2-lobo
84ec7b4b8dd9ad38ce3ef713d569bd6a6cd8a848
[ "Apache-2.0" ]
null
null
null
import re from simulated_annealing import optimizar from dominio_tsp import DominioTSP #from dominio_ag_tsp import DominioAGTSP #from algoritmo_genetico import optimizar from math import e from time import time """ temperatura = 10000 enfriamiento = [0.8,0.9,0.95,0.99] dominio = DominioTSP('datos/ciudades_cr.csv', ...
24.8375
107
0.640161
257
1,987
4.871595
0.29572
0.009585
0.047923
0.057508
0.327476
0.327476
0.327476
0.228435
0.228435
0.228435
0
0.087842
0.209361
1,987
79
108
25.151899
0.709102
0.142929
0
0
0
0
0.089783
0.065015
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
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
0
1
0
1
0
0
2
d0f64743ed6524cecb7c24ed7355ec9bdca51c38
104
py
Python
venv/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/pylint/test/functional/too_many_lines.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# pylint: disable=missing-docstring # -1: [too-many-lines] __revision__ = 0 ZERFZAER = 3 HEHEHE = 2
10.4
35
0.682692
14
104
4.785714
1
0
0
0
0
0
0
0
0
0
0
0.047059
0.182692
104
9
36
11.555556
0.741176
0.519231
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
19099eb65f86ee831e72de8c9aefddf381c8fc11
255
py
Python
boj/4344.py
pparkddo/ps
7164c694403c2087a7b4b16a64f521ae327e328f
[ "MIT" ]
1
2021-04-02T09:37:11.000Z
2021-04-02T09:37:11.000Z
boj/4344.py
pparkddo/ps
7164c694403c2087a7b4b16a64f521ae327e328f
[ "MIT" ]
null
null
null
boj/4344.py
pparkddo/ps
7164c694403c2087a7b4b16a64f521ae327e328f
[ "MIT" ]
null
null
null
import sys; input=sys.stdin.readline for _ in range(int(input())): n, *scores = map(int, input().split()) average = sum(scores) / len(scores) answer = len(list(filter(lambda x: x > average, scores))) / len(scores) print(f"{answer:.3%}")
28.333333
75
0.623529
37
255
4.27027
0.648649
0.101266
0.189873
0
0
0
0
0
0
0
0
0.004785
0.180392
255
8
76
31.875
0.751196
0
0
0
0
0
0.047059
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
190c10fe10cd79a7e0457178eac5c7c717f190d4
4,944
py
Python
homework5.py
chubbypanda/principles-of-computing
264b460a1de59bd1f996d3ec8176d12c0d124dc9
[ "MIT" ]
22
2015-04-18T09:05:01.000Z
2021-12-03T12:57:37.000Z
homework5.py
nsm-lab/principles-of-computing
24602f3bcfa56c6230a5d16f4b7606f2a9fe5e99
[ "MIT" ]
null
null
null
homework5.py
nsm-lab/principles-of-computing
24602f3bcfa56c6230a5d16f4b7606f2a9fe5e99
[ "MIT" ]
34
2015-03-08T21:07:08.000Z
2021-10-02T14:38:57.000Z
# Homework 5 for Principles of Computing class, by k., 07/19/2014 # Question 1 class Incrementer(object): ''' counting increments separately from the function ''' def __init__(self, count): self.count = count def increment(self): self.count += 1 """ Recursion according to the "Ca...
23.542857
89
0.617921
844
4,944
3.546209
0.152844
0.120281
0.133645
0.160374
0.435015
0.335783
0.215169
0.042766
0
0
0
0.04715
0.240696
4,944
209
90
23.655502
0.750133
0.067557
0
0.251656
0
0
0.199568
0
0
0
0
0
0
0
null
null
0
0
null
null
0.324503
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
1
0
0
0
0
0
0
0
0
2
ef7800dd647137e1f966dcc1f6e9b004fd1c3e74
566
py
Python
string_09.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
string_09.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
string_09.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
"""Below Python Programme demonstrate encode functions in a string""" #Utf-8 Encoding # unicode string string = 'pythön!' # print string print('The string is:', string) # default encoding to utf-8 string_utf = string.encode() # print result print('The encoded version is:', string_utf) # unicode string string = 'pythön!...
25.727273
82
0.724382
78
566
5.230769
0.346154
0.098039
0.110294
0.161765
0.436275
0.436275
0.284314
0.284314
0.284314
0.284314
0
0.00409
0.136042
566
21
83
26.952381
0.830266
0.353357
0
0.5
0
0
0.465714
0
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
ef7aa62be03ed044ba79a6416d1bf8a1977d656e
123
py
Python
rl-fmri/tmp_load_zip.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
rl-fmri/tmp_load_zip.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
rl-fmri/tmp_load_zip.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
from stable_baselines3 import PPO filename = "exp5/model-ant-400-500-600-s0.zip" model = PPO.load(filename) print(model)
17.571429
46
0.764228
20
123
4.65
0.8
0
0
0
0
0
0
0
0
0
0
0.109091
0.105691
123
7
47
17.571429
0.736364
0
0
0
0
0
0.266129
0.266129
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ef7d6a6b9c25e52fba220c88e9e52eb8a2aa829c
600
py
Python
tests/test_weatherman_butler.py
aecobb53/weatherman
24b3324ffd35568f8719404c3ff2e27fc4a361f7
[ "MIT" ]
1
2020-10-14T23:23:37.000Z
2020-10-14T23:23:37.000Z
tests/test_weatherman_butler.py
aecobb53/weatherman
24b3324ffd35568f8719404c3ff2e27fc4a361f7
[ "MIT" ]
48
2020-11-30T01:34:37.000Z
2021-06-10T01:15:31.000Z
tests/test_weatherman_butler.py
aecobb53/weatherman
24b3324ffd35568f8719404c3ff2e27fc4a361f7
[ "MIT" ]
null
null
null
from weatherman import weather_butler import pytest import datetime # noqa import sqlite3 # noqa import yaml import json # noqa import os import unittest mock = unittest.mock.Mock() master_copnfig = 'etc/weatherman.yml' with open(master_copnfig) as ycf: config = yaml.load(ycf, Loader=yaml.FullLoader) environment =...
20
59
0.76
83
600
5.301205
0.566265
0.063636
0.068182
0
0
0
0
0
0
0
0
0.001927
0.135
600
29
60
20.689655
0.845857
0.206667
0
0
0
0
0.118026
0
0
0
0
0
0
1
0.058824
false
0
0.470588
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ef870faadd8075efcadb56ce286c86fc6e03752e
444
py
Python
08_testing/test_mean.py
nachrisman/PHY494
bac0dd5a7fe6f59f9e2ccaee56ebafcb7d97e2e7
[ "CC-BY-4.0" ]
null
null
null
08_testing/test_mean.py
nachrisman/PHY494
bac0dd5a7fe6f59f9e2ccaee56ebafcb7d97e2e7
[ "CC-BY-4.0" ]
null
null
null
08_testing/test_mean.py
nachrisman/PHY494
bac0dd5a7fe6f59f9e2ccaee56ebafcb7d97e2e7
[ "CC-BY-4.0" ]
null
null
null
from mean import mean import pytest def test_ints(): num_list = [1, 2, 3, 4, 5] obs = mean(num_list) assert obs == 3 def test_not_numbers(): values = [2, "lolcats"] with pytest.raises(TypeError): out = mean(values) def test_zero(): num_list = [0, 2, 4, 6] assert mean(num_list) =...
16.444444
34
0.599099
67
444
3.80597
0.447761
0.137255
0.086275
0.196078
0
0
0
0
0
0
0
0.042683
0.261261
444
26
35
17.076923
0.734756
0
0
0.111111
0
0
0.015801
0
0
0
0
0
0.166667
1
0.277778
false
0
0.111111
0
0.388889
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
1
0
0
0
0
0
0
0
2
ef909c162d105d87f61e7f3ee39dd9c0dd7a1213
550
py
Python
greenbyteapi/http/auth/custom_header_auth.py
charlie9578/greenbyte-api-sdk
6835ee1f6a667b5c7827c5248391081f06b75513
[ "MIT" ]
null
null
null
greenbyteapi/http/auth/custom_header_auth.py
charlie9578/greenbyte-api-sdk
6835ee1f6a667b5c7827c5248391081f06b75513
[ "MIT" ]
null
null
null
greenbyteapi/http/auth/custom_header_auth.py
charlie9578/greenbyte-api-sdk
6835ee1f6a667b5c7827c5248391081f06b75513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ greenbyteapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ from greenbyteapi.configuration import Configuration class CustomHeaderAuth: @staticmethod def apply(http_request): """ Add custom authentication to the request. ...
22.916667
83
0.634545
58
550
5.913793
0.706897
0.09621
0.081633
0
0
0
0
0
0
0
0
0.007519
0.274545
550
23
84
23.913043
0.85213
0.487273
0
0
1
0
0.039823
0
0
0
0
0
0
1
0.2
false
0
0.2
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
efa1e5d9b435f802c2458f80b47eaea595318d68
4,637
py
Python
tests/test_easter.py
cccntu/dateutil
86ab39008e6eddce2b0837553d9ff42aee25c783
[ "Apache-2.0" ]
null
null
null
tests/test_easter.py
cccntu/dateutil
86ab39008e6eddce2b0837553d9ff42aee25c783
[ "Apache-2.0" ]
null
null
null
tests/test_easter.py
cccntu/dateutil
86ab39008e6eddce2b0837553d9ff42aee25c783
[ "Apache-2.0" ]
null
null
null
from bs_dateutil.easter import easter from bs_dateutil.easter import EASTER_WESTERN, EASTER_ORTHODOX, EASTER_JULIAN from datetime import date import pytest # List of easters between 1990 and 2050 western_easter_dates = [ date(1990, 4, 15), date(1991, 3, 31), date(1992, 4, 19), date(1993, 4, 11), d...
23.185
77
0.537201
783
4,637
3.128991
0.218391
0.02449
0.022041
0.033061
0.418367
0.35102
0.234286
0.137143
0.112653
0.112653
0
0.318665
0.269787
4,637
199
78
23.301508
0.404903
0.029329
0
0.184783
0
0
0.007338
0
0
0
0
0
0.016304
1
0.021739
false
0
0.021739
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
efba54f71dda76caf3dfebbc7d00e67feb9770ad
1,712
py
Python
liberaction/sales/models.py
Computeiros-Estonia/liberaction-api
c14ace4b91eb881eff55032964cd186ce1fe6847
[ "MIT" ]
null
null
null
liberaction/sales/models.py
Computeiros-Estonia/liberaction-api
c14ace4b91eb881eff55032964cd186ce1fe6847
[ "MIT" ]
3
2021-12-03T18:58:03.000Z
2022-03-31T23:03:42.000Z
liberaction/sales/models.py
Computeiros-Estonia/liberaction-api
c14ace4b91eb881eff55032964cd186ce1fe6847
[ "MIT" ]
null
null
null
from django.db import models from liberaction.users.models import User from liberaction.core.models import BaseProduct class Cart(models.Model): is_open = models.BooleanField(default=True, verbose_name='Carrinho em aberto', help_text='Determina se a compra do carrinho está em aberto.') class Meta: verb...
32.301887
145
0.688084
222
1,712
5.121622
0.342342
0.096746
0.066843
0.05277
0.25066
0.144239
0.144239
0.093228
0.093228
0.093228
0
0.000737
0.20736
1,712
52
146
32.923077
0.837141
0
0
0.205128
0
0
0.172897
0
0
0
0
0
0
1
0.179487
false
0
0.076923
0.153846
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2