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
a7c6b487f8aa1fc6b5c568650fff8c01845f1ff7
349
py
Python
simuloc/signal/generator.py
mcanatalay/SIMULOC
af32c522887dec08a0815052a5878b5a595b8d44
[ "MIT" ]
null
null
null
simuloc/signal/generator.py
mcanatalay/SIMULOC
af32c522887dec08a0815052a5878b5a595b8d44
[ "MIT" ]
null
null
null
simuloc/signal/generator.py
mcanatalay/SIMULOC
af32c522887dec08a0815052a5878b5a595b8d44
[ "MIT" ]
null
null
null
import numpy class Generator: """ Generator class of Signal Module """ def __init__(self): pass def noise(self, level=0.1): """Generates a noise Args: level: % level of noise. Returns: Returns noise. """ return level *...
15.863636
50
0.507163
38
349
4.552632
0.605263
0
0
0
0
0
0
0
0
0
0
0.023585
0.39255
349
21
51
16.619048
0.792453
0.329513
0
0
1
0
0
0
0
0
0
0
0
1
0.333333
false
0.166667
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
a7da925df97e0f7bcd7218a9c8764a52e2c5838b
156
py
Python
ex006.py
JoaoCrescioni/Exercicios-curso-em-video-python
5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e
[ "MIT" ]
null
null
null
ex006.py
JoaoCrescioni/Exercicios-curso-em-video-python
5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e
[ "MIT" ]
null
null
null
ex006.py
JoaoCrescioni/Exercicios-curso-em-video-python
5db9c79af4e8894b0ed2cc4d0110cdb10b4a467e
[ "MIT" ]
null
null
null
x = float(input('Insira um número aqui: ')) print('Esse número ao quadrado equivale a {}, ao cubo a {} e sua raiz é igual a {}'.format(x**2,x**3,x**(1/2)))
52
111
0.628205
31
156
3.16129
0.741935
0
0
0
0
0
0
0
0
0
0
0.030534
0.160256
156
2
112
78
0.717557
0
0
0
0
0
0.628205
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
38fd54dbc6520b5db20e9e8082cbf12a33b0c039
778
py
Python
unitconvert/temperature.py
mgemma/unitconvert
1435b0054dbe1ea7968504fcdf30ee74f70dbfe9
[ "MIT" ]
null
null
null
unitconvert/temperature.py
mgemma/unitconvert
1435b0054dbe1ea7968504fcdf30ee74f70dbfe9
[ "MIT" ]
null
null
null
unitconvert/temperature.py
mgemma/unitconvert
1435b0054dbe1ea7968504fcdf30ee74f70dbfe9
[ "MIT" ]
null
null
null
""" A python module to convert between temperature scales """ def fahrenheit_to_celsius(fahrenheit): """ Convert temperature from Fahrenheit to Celsius PARAMETERS ---------- fahrenheit: float A temperature value in units of Fahrenheit RETURNS ------- celsius: float A t...
20.473684
53
0.632391
84
778
5.809524
0.27381
0.147541
0.139344
0.180328
0.393443
0.393443
0.393443
0.393443
0.393443
0
0
0.014035
0.267352
778
37
54
21.027027
0.842105
0.663239
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
0
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
1
0
0
3
ac0ce3f3b5737cdcfdbce6c0ed9cb09ed75a859e
1,008
py
Python
Color_Ai/Color AI.py
xxmeowxx/AI-s
9f062b08765314142791a2342d25c1f7a7498863
[ "MIT" ]
1
2020-08-27T08:07:33.000Z
2020-08-27T08:07:33.000Z
Color_Ai/Color AI.py
xxmeowxx/AI-s
9f062b08765314142791a2342d25c1f7a7498863
[ "MIT" ]
null
null
null
Color_Ai/Color AI.py
xxmeowxx/AI-s
9f062b08765314142791a2342d25c1f7a7498863
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.neighbors import KNeighborsClassifier data = pd.read_csv("Color_data.csv") pd.set_option("display.max_rows", 117) R = data["R"] G = data["G"] B = data["B"] X = data.iloc[:, :-2].values y = data["Id"] model = KNeighborsClassifier(n_neighbors = 7) model.fit(X, y)...
23.44186
51
0.640873
137
1,008
4.678832
0.467153
0.24337
0.318253
0
0
0
0
0
0
0
0
0.035672
0.165675
1,008
42
52
24
0.726516
0
0
0
0
0
0.200828
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0.518519
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
1
0
3
ac1fa213db9129e8b0c81ed756714d74f02ffb2e
9,862
py
Python
metaspace/engine/sm/engine/annotation/png_generator.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
32
2018-08-13T15:49:42.000Z
2022-01-17T18:32:19.000Z
metaspace/engine/sm/engine/annotation/png_generator.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
624
2018-07-02T15:18:22.000Z
2022-03-30T08:10:35.000Z
metaspace/engine/sm/engine/annotation/png_generator.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
6
2021-01-10T22:24:30.000Z
2022-03-16T19:14:37.000Z
import logging from io import BytesIO import numpy as np import png logger = logging.getLogger('engine') class PngGenerator: """Generator of isotopic images as png files Args ---------- mask : numpy.array Alpha channel (2D, 0..1) """ def __init__(self, mask, greyscale=True): ...
31.307937
97
0.294869
985
9,862
2.920812
0.309645
0.020855
0.013556
0.014599
0.045186
0.015294
0
0
0
0
0
0.44422
0.549179
9,862
314
98
31.407643
0.202879
0.010748
0
0.013378
0
0
0.001028
0
0
0
0
0
0
1
0.010033
false
0
0.013378
0
0.033445
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
1
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
3
ac4042697077709030debe816f6c80a79115cb03
3,455
py
Python
CIM16/IEC61968/Metering/DynamicDemand.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM16/IEC61968/Metering/DynamicDemand.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM16/IEC61968/Metering/DynamicDemand.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
69.1
1,341
0.738929
498
3,455
5.10241
0.345382
0.023613
0.030697
0.021251
0.541519
0.541519
0.541519
0.541519
0.469894
0.469894
0
0.014225
0.186107
3,455
49
1,342
70.510204
0.889403
0.82576
0
0
0
0
0.192164
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ac4580fc953fc5af6670ab0d327024307e29d325
1,797
py
Python
app/dao/coupon_dao.py
sheldonzipingchen/cniao5
4b19465d5dcf0c8ce7165a55f1227c5016276072
[ "MIT" ]
1
2017-12-06T07:45:56.000Z
2017-12-06T07:45:56.000Z
app/dao/coupon_dao.py
sheldonzipingchen/cniao5
4b19465d5dcf0c8ce7165a55f1227c5016276072
[ "MIT" ]
null
null
null
app/dao/coupon_dao.py
sheldonzipingchen/cniao5
4b19465d5dcf0c8ce7165a55f1227c5016276072
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from sqlalchemy import or_ from app import db from .. models import Coupon __author__ = 'longo' class CouponDao(): def get(self,id): return Coupon.query.get(id) def save(self,coupon): db.session.add(coupon) db.session.commit() def get_by_code(self,code...
27.227273
123
0.581525
225
1,797
4.4
0.248889
0.042424
0.068687
0.092929
0.330303
0.214141
0.151515
0.084848
0.084848
0
0
0.004721
0.29271
1,797
65
124
27.646154
0.774194
0.383417
0
0
0
0
0.00463
0
0
0
0
0
0
1
0.272727
false
0
0.136364
0.181818
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
1
0
0
0
1
1
0
0
3
ac5878a544a4c7ec91d08e8451023cfb37b6034b
500
py
Python
collection/consumerlib/__init__.py
WilkinsonK/python-collections
2b2307a7f3f560be2a095eb59e28d51344db1772
[ "MIT" ]
null
null
null
collection/consumerlib/__init__.py
WilkinsonK/python-collections
2b2307a7f3f560be2a095eb59e28d51344db1772
[ "MIT" ]
null
null
null
collection/consumerlib/__init__.py
WilkinsonK/python-collections
2b2307a7f3f560be2a095eb59e28d51344db1772
[ "MIT" ]
null
null
null
from consumerlib.controllers import AsyncController, BaseController, Controller, ListenState from consumerlib.clients import BaseClient, AsyncClient, DatabaseClient, ConnectState from consumerlib.helpers.maps import ClientMap, EventMap, FetchMap, ParamMap, Parameter __all__ = ( "AsyncController", "BaseContr...
41.666667
93
0.754
40
500
9.325
0.525
0.120643
0.209115
0.252011
0
0
0
0
0
0
0
0
0.136
500
11
94
45.454545
0.863426
0
0
0
0
0
0.284254
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
3bb00e25616dec08f6b0ac48d66958aecad4c074
1,398
py
Python
bookExercises/cards.py
tntptntp/CMPTGCS-20
f9fbb32199c2b415614e914a84560a2080949965
[ "MIT" ]
null
null
null
bookExercises/cards.py
tntptntp/CMPTGCS-20
f9fbb32199c2b415614e914a84560a2080949965
[ "MIT" ]
null
null
null
bookExercises/cards.py
tntptntp/CMPTGCS-20
f9fbb32199c2b415614e914a84560a2080949965
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- from random import shuffle class Deck: 'represents a deck of 52 cards' # ranks and suits are Deck class variables represented as sets ranks = ['2','3','4','5','6','7','8','9','10','J','Q','K','A'] suits = ['♣','♢','♡','♠'] def __init__(self,deck=[]): ...
24.964286
82
0.565093
193
1,398
3.968912
0.367876
0.083551
0.05483
0.044386
0.062663
0.062663
0
0
0
0
0
0.012961
0.282546
1,398
55
83
25.418182
0.74676
0.189557
0
0.111111
0
0
0.081926
0
0
0
0
0
0
1
0.333333
false
0
0.027778
0.222222
0.694444
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
3bc017af79bbfd51663053054600fd128dd4f856
146
py
Python
api/tacticalrmm/integrations/snipeit/apps.py
subzdev/tacticalrmm
21d8899e9a01f0939ab908e82e1205fa7b632caf
[ "MIT" ]
1
2021-12-29T07:20:57.000Z
2021-12-29T07:20:57.000Z
api/tacticalrmm/integrations/snipeit/apps.py
subzdev/tacticalrmm
21d8899e9a01f0939ab908e82e1205fa7b632caf
[ "MIT" ]
null
null
null
api/tacticalrmm/integrations/snipeit/apps.py
subzdev/tacticalrmm
21d8899e9a01f0939ab908e82e1205fa7b632caf
[ "MIT" ]
1
2021-12-29T05:55:53.000Z
2021-12-29T05:55:53.000Z
from django.apps import AppConfig class SnipeitConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'snipeit'
20.857143
56
0.760274
17
146
6.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.150685
146
6
57
24.333333
0.879032
0
0
0
0
0
0.246575
0.19863
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
3bc394676d872821b07fa7b3c606594680a949c0
3,436
py
Python
sensor_test.py
motorox/sensors-raspi
dc8ba50bd5deb2afdc2381c4fbf915cd66819603
[ "MIT" ]
null
null
null
sensor_test.py
motorox/sensors-raspi
dc8ba50bd5deb2afdc2381c4fbf915cd66819603
[ "MIT" ]
1
2018-05-16T08:38:59.000Z
2018-05-16T08:38:59.000Z
sensor_test.py
motorox/sensors-raspi
dc8ba50bd5deb2afdc2381c4fbf915cd66819603
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from sensor_utils import floatfromhex, tosigned, tosignedbyte from sensor_utils import calcAccel, calcGyro, calcHum, calcMagn, calcTmpTarget from sensor_callbacks import SensorCallbacks class UtilFunctionsTestCase(unittest.TestCase): def test_floatfromhex(self): self....
40.904762
120
0.684517
416
3,436
5.591346
0.430288
0.193465
0.155202
0.187876
0.254944
0.080825
0
0
0
0
0
0.18594
0.172002
3,436
83
121
41.39759
0.631634
0.005821
0
0
0
0
0.041593
0
0
0
0
0
0.46875
0
null
null
0
0.0625
null
null
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
1
1
0
0
0
0
0
0
0
0
3
3bd469fcafc6534f5e9c518f4babca696bbb0654
157
py
Python
CFRTEST.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
CFRTEST.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
CFRTEST.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/CFRTEST for T in range(int(input())): n = int(input()) l = list(map(int,input().split())) print(len(set(l)))
26.166667
43
0.605096
25
157
3.8
0.8
0.252632
0
0
0
0
0
0
0
0
0
0
0.159236
157
6
44
26.166667
0.719697
0.261147
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
3
3be8661ee87abeee17b15e0853c50a63ee7026d8
91
py
Python
freelancefinder/users/__init__.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
2
2017-03-18T04:28:58.000Z
2017-04-25T10:01:28.000Z
freelancefinder/users/__init__.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
20
2017-03-18T04:29:33.000Z
2017-06-13T22:37:42.000Z
freelancefinder/users/__init__.py
ScorpionResponse/freelancefinder
7882aa8ed42afe689e594a3e10c9fc6369f70bf5
[ "BSD-3-Clause" ]
1
2019-01-14T19:02:06.000Z
2019-01-14T19:02:06.000Z
"""Default initialization for users app.""" default_app_config = 'users.apps.UsersConfig'
22.75
45
0.769231
11
91
6.181818
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.098901
91
3
46
30.333333
0.829268
0.406593
0
0
0
0
0.458333
0.458333
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3be9c3f41b8c365f8e047522eb1b2fbe2f0e2b1b
52
py
Python
learnml/utils/__init__.py
Vipul97/learnml
e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17
[ "MIT" ]
3
2019-11-22T22:12:52.000Z
2021-04-02T19:40:20.000Z
learnml/utils/__init__.py
Vipul97/learnml
e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17
[ "MIT" ]
null
null
null
learnml/utils/__init__.py
Vipul97/learnml
e1ca5b58fc0118ab8a65e35c5bbf9aac2fb2bc17
[ "MIT" ]
1
2021-10-05T23:24:03.000Z
2021-10-05T23:24:03.000Z
from .sigmoid import sigmoid __all__ = ['sigmoid']
13
28
0.730769
6
52
5.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
3
29
17.333333
0.772727
0
0
0
0
0
0.134615
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
ce0677f791a83599f3961fd2b5ea597f5ca943e9
258
py
Python
cylinder_fitting/analysis.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
19
2018-04-13T07:53:41.000Z
2022-03-27T13:40:44.000Z
cylinder_fitting/analysis.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
2
2018-05-18T12:53:11.000Z
2022-03-09T12:31:08.000Z
cylinder_fitting/analysis.py
wataru-ya/cylinder_fitting
9d8508fa4a915d84000c24664189328f19677adb
[ "BSD-3-Clause" ]
10
2018-02-13T22:15:51.000Z
2022-03-03T08:06:05.000Z
import numpy as np from . import geometry def fitting_rmsd(w_fit, C_fit, r_fit, Xs): '''Calculate the RMSD of fitting.''' return np.sqrt(sum((geometry.point_line_distance(p, C_fit, w_fit) - r_fit) ** 2 for p in Xs) / len(Xs))
25.8
83
0.627907
44
258
3.477273
0.636364
0.052288
0.091503
0
0
0
0
0
0
0
0
0.005155
0.248062
258
9
84
28.666667
0.783505
0.116279
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
ce185a2f2d17feec1fed3bdcf57375a3e4238895
474
py
Python
Class Work/Linked List/main.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Linked List/main.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
Class Work/Linked List/main.py
Pondorasti/CS-1.2
c86efa40f8a09c1ca1ce0b937ca63a07108bfc6c
[ "MIT" ]
null
null
null
from LinkedList import LinkedList linked_list = LinkedList() linked_list.prepend("odin") linked_list.prepend("alex") clone_linked_list = linked_list.clone() linked_list.pop_head() print(linked_list) print(clone_linked_list) # linked_list.prepend("jess") # linked_list.append("yin") # linked_list.prepend("starligh...
15.8
39
0.774262
67
474
5.119403
0.283582
0.495627
0.198251
0.233236
0.530612
0.428571
0.346939
0
0
0
0
0.002331
0.094937
474
30
40
15.8
0.797203
0.462025
0
0
0
0
0.03252
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce1c2494d7a1b146f45276512acda65981e38177
558
py
Python
scripts/fix_table.py
flaviovdf/phoenix
59177657f13337b14d1fe27527a9b09c2c1c1419
[ "BSD-3-Clause" ]
1
2019-06-24T17:42:10.000Z
2019-06-24T17:42:10.000Z
scripts/fix_table.py
flaviovdf/phoenix
59177657f13337b14d1fe27527a9b09c2c1c1419
[ "BSD-3-Clause" ]
null
null
null
scripts/fix_table.py
flaviovdf/phoenix
59177657f13337b14d1fe27527a9b09c2c1c1419
[ "BSD-3-Clause" ]
null
null
null
import tables h5f = tables.open_file('db_csi.h5', 'a') h5f.root.ismir_artist.cols.date.remove_index() h5f.root.ismir_artist.cols.date.create_csindex() h5f.root.ismir_song.cols.date.remove_index() h5f.root.ismir_song.cols.date.create_csindex() h5f.root.lastfm_artist.cols.date.remove_index() h5f.root.lastfm_artist.co...
26.571429
52
0.808244
92
558
4.663043
0.25
0.16317
0.16317
0.221445
0.902098
0.864802
0.675991
0
0
0
0
0.024345
0.043011
558
20
53
27.9
0.779026
0
0
0
0
0
0.017921
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce1f15000117437f668deea6ac41be20ee12ca09
44
py
Python
plumbing/__init__.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
null
null
null
plumbing/__init__.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
null
null
null
plumbing/__init__.py
xapple/plumbing
47a0a85c5367a01385e8ff30ed658bc34cf0ce2a
[ "MIT" ]
1
2015-08-26T08:53:19.000Z
2015-08-26T08:53:19.000Z
# Special variables # __version__ = '2.11.1'
22
22
0.704545
6
44
4.5
1
0
0
0
0
0
0
0
0
0
0
0.105263
0.136364
44
2
22
22
0.605263
0.386364
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce301aac438823305948218747f755743f62a9f1
190
py
Python
test.py
Joe1sn/asoul_weibo_comment
bc2cd69cc908bc2a5638b183126c94745feab780
[ "MIT" ]
1
2021-10-08T00:22:58.000Z
2021-10-08T00:22:58.000Z
test.py
Joe1sn/asoul_weibo_comment
bc2cd69cc908bc2a5638b183126c94745feab780
[ "MIT" ]
null
null
null
test.py
Joe1sn/asoul_weibo_comment
bc2cd69cc908bc2a5638b183126c94745feab780
[ "MIT" ]
null
null
null
with open("list.txt","r",encoding="utf-8") as comments: content = comments.readlines() print(type(content),content) content=list(content[0]) print(len(content),content)
31.666667
56
0.663158
25
190
5.04
0.64
0.333333
0
0
0
0
0
0
0
0
0
0.012579
0.163158
190
5
57
38
0.779874
0
0
0
0
0
0.075676
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
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
3
ce36c075861c8ea25b3e49e5f28b4fac1a8107ad
132
py
Python
kiem_nghiem/apps.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
kiem_nghiem/apps.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
kiem_nghiem/apps.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
from django.apps import AppConfig class KiemNghiemConfig(AppConfig): name = 'kiem_nghiem' verbose_name = "F. Kiểm nghiệm"
18.857143
35
0.734848
16
132
5.9375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.181818
132
6
36
22
0.87963
0
0
0
0
0
0.189394
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ce3bae5a3756d19e3484b4fd61a321f8268b9828
105
py
Python
citasmedicasapp/apps.py
anderson7ru/bienestarues
9e36963cd40989517fec396283dbe279280bb500
[ "MIT" ]
null
null
null
citasmedicasapp/apps.py
anderson7ru/bienestarues
9e36963cd40989517fec396283dbe279280bb500
[ "MIT" ]
null
null
null
citasmedicasapp/apps.py
anderson7ru/bienestarues
9e36963cd40989517fec396283dbe279280bb500
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CitasmedicasappConfig(AppConfig): name = 'citasmedicasapp'
17.5
39
0.790476
10
105
8.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.142857
105
5
40
21
0.922222
0
0
0
0
0
0.142857
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
0
0
0
3
021d42f4506809c0833b6655de2e67291ef63490
223
py
Python
dev/test_package_by_doc/explore_vaex_time.py
StefanHeng/test_ECG-Signal-Viewer
4fc1849aa5d8ff9bf18d3662bc405d7f20663b64
[ "MIT" ]
null
null
null
dev/test_package_by_doc/explore_vaex_time.py
StefanHeng/test_ECG-Signal-Viewer
4fc1849aa5d8ff9bf18d3662bc405d7f20663b64
[ "MIT" ]
null
null
null
dev/test_package_by_doc/explore_vaex_time.py
StefanHeng/test_ECG-Signal-Viewer
4fc1849aa5d8ff9bf18d3662bc405d7f20663b64
[ "MIT" ]
null
null
null
import numpy as np import vaex as vx date = np.array(['2009-10-12T03:31:00', '2016-02-11T10:17:34', '2015-11-12T11:34:22'], dtype=np.datetime64) df = vx.from_arrays(date=date) df = df.date.dt.strftime("%Y-%m") print(df)
22.3
107
0.681614
44
223
3.431818
0.727273
0
0
0
0
0
0
0
0
0
0
0.221106
0.107623
223
9
108
24.777778
0.537688
0
0
0
0
0
0.278027
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
022e1c39eb01945a2892d4e99b80d043d4e018a7
134
py
Python
logging_/handlers/__init__.py
mzpqnxow/logging-extras
014bce99000f5716317a054169a3c1f51fc0b77a
[ "MIT" ]
5
2021-05-29T11:04:33.000Z
2021-12-20T07:09:23.000Z
logging_/handlers/__init__.py
mzpqnxow/logging-extras
014bce99000f5716317a054169a3c1f51fc0b77a
[ "MIT" ]
19
2021-06-05T23:12:54.000Z
2022-01-31T17:53:39.000Z
logging_/handlers/__init__.py
mzpqnxow/logging-extras
014bce99000f5716317a054169a3c1f51fc0b77a
[ "MIT" ]
3
2021-08-08T18:30:55.000Z
2021-09-11T13:02:58.000Z
# -*- coding: utf-8 -*- from logging_.handlers.queue_listener_handler import QueueListenerHandler __all__ = ["QueueListenerHandler"]
26.8
73
0.783582
13
134
7.538462
0.923077
0
0
0
0
0
0
0
0
0
0
0.008264
0.097015
134
4
74
33.5
0.801653
0.156716
0
0
0
0
0.18018
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
023d67415af291ddc89f8678ae183870b8884a9c
476
py
Python
kmbio/PDB/parsers/__init__.py
kim-lab/kmbio
ad2afc429d8990487c1094bdd69112cab91c03c9
[ "PostgreSQL" ]
null
null
null
kmbio/PDB/parsers/__init__.py
kim-lab/kmbio
ad2afc429d8990487c1094bdd69112cab91c03c9
[ "PostgreSQL" ]
null
null
null
kmbio/PDB/parsers/__init__.py
kim-lab/kmbio
ad2afc429d8990487c1094bdd69112cab91c03c9
[ "PostgreSQL" ]
null
null
null
# flake8: noqa import warnings try: from ._mmcif_to_dict import mmcif2dict except ImportError: warnings.warn("Cound not import cythonized `mmcif2dict` function. Performance will suffer!") from .mmcif_to_dict import MMCIF2Dict as mmcif2dict from .bioassembly import ProcessRemark350, get_mmcif_bioassembly_d...
31.733333
96
0.821429
60
476
6.333333
0.533333
0.126316
0.057895
0.078947
0.163158
0.163158
0
0
0
0
0
0.01937
0.132353
476
14
97
34
0.900726
0.02521
0
0
0
0
0.162338
0
0
0
0
0
0
1
0
true
0
0.909091
0
0.909091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
0253566cbb83028d7a7106c3e94289f15c1e1cd3
227
py
Python
siuba/tests/test_sql_utils.py
sethvargo/siuba
90172e7888b93eb4a42187a5aea947dbcbbc05ad
[ "MIT" ]
null
null
null
siuba/tests/test_sql_utils.py
sethvargo/siuba
90172e7888b93eb4a42187a5aea947dbcbbc05ad
[ "MIT" ]
null
null
null
siuba/tests/test_sql_utils.py
sethvargo/siuba
90172e7888b93eb4a42187a5aea947dbcbbc05ad
[ "MIT" ]
null
null
null
from siuba.sql.utils import get_dialect_translator import pytest @pytest.mark.parametrize('name', [ 'redshift', 'postgresql', 'sqlite' ]) def test_get_dialect_translator(name): get_dialect_translator(name)
20.636364
50
0.731278
27
227
5.888889
0.62963
0.188679
0.377358
0.301887
0
0
0
0
0
0
0
0
0.15859
227
10
51
22.7
0.832461
0
0
0
0
0
0.123348
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0
1
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
3
026b02c7b445868842655740ef1046ee9bf7f939
2,448
py
Python
e2e-environment/geth/genesis.py
manuelwedler/light-client
bb322c2d843540533cfd97bc45c100659179efee
[ "MIT" ]
null
null
null
e2e-environment/geth/genesis.py
manuelwedler/light-client
bb322c2d843540533cfd97bc45c100659179efee
[ "MIT" ]
null
null
null
e2e-environment/geth/genesis.py
manuelwedler/light-client
bb322c2d843540533cfd97bc45c100659179efee
[ "MIT" ]
1
2020-07-07T05:00:05.000Z
2020-07-07T05:00:05.000Z
#!/usr/bin/env python import json from pathlib import Path from typing import Dict import click GENESIS_STUB: Dict = { "config": { "chainId": 4321, "homesteadBlock": 0, "eip150Block": 0, "eip155Block": 0, "eip158Block": 0, "ByzantiumBlock": 0, "eip150Hash":...
31.384615
215
0.673611
157
2,448
10.363057
0.509554
0.040565
0.019668
0
0
0
0
0
0
0
0
0.382185
0.211193
2,448
77
216
31.792208
0.460383
0.00817
0
0.0625
0
0
0.474248
0.343634
0
0
0.241862
0
0
1
0.015625
false
0
0.0625
0
0.078125
0
0
0
1
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
3
65f5ce6ec86920c0de9095d466a2e125eb953d4d
542
py
Python
commonutils.py
rohgarg/uscis-scrape
73b882566d0b6ed92a0a25d459c0e2bd637f266c
[ "Apache-2.0" ]
null
null
null
commonutils.py
rohgarg/uscis-scrape
73b882566d0b6ed92a0a25d459c0e2bd637f266c
[ "Apache-2.0" ]
null
null
null
commonutils.py
rohgarg/uscis-scrape
73b882566d0b6ed92a0a25d459c0e2bd637f266c
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 from signal import getsignal, signal, SIGINT from sys import exit, stderr from constants import APP_PREFIX def log_error(msg: str) -> None: """ Logs message to stderr """ print(msg, file=stderr) def construct_app_num(num: int) -> str: """ Returns the application receipt number st...
21.68
73
0.697417
74
542
5.027027
0.621622
0.064516
0
0
0
0
0
0
0
0
0
0.002247
0.178967
542
24
74
22.583333
0.833708
0.330258
0
0
0
0
0.012232
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.777778
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
1
0
0
1
0
1
0
0
3
65f9ea202875c9d13632ffb701959315f9510d48
19
py
Python
tools/env.py
pollend/ppseq
c6f4bf80195a230f9139b554ac8b378d6f102d20
[ "MIT" ]
null
null
null
tools/env.py
pollend/ppseq
c6f4bf80195a230f9139b554ac8b378d6f102d20
[ "MIT" ]
null
null
null
tools/env.py
pollend/ppseq
c6f4bf80195a230f9139b554ac8b378d6f102d20
[ "MIT" ]
null
null
null
BUILD_DIR = 'build'
19
19
0.736842
3
19
4.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.105263
19
1
19
19
0.764706
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5a0087dd76cb4f5ba977e01215e385855f2696bc
13,663
py
Python
rmvsnet/warping.py
leejaeyong7/RMVSNet-Pytorch
c87b97b5c4338250159d03cc30796d2e93515821
[ "MIT" ]
16
2019-11-28T07:26:49.000Z
2022-03-19T07:50:13.000Z
rmvsnet/warping.py
leejaeyong7/RMVSNet-Pytorch
c87b97b5c4338250159d03cc30796d2e93515821
[ "MIT" ]
1
2019-11-28T12:33:14.000Z
2022-01-07T08:28:51.000Z
rmvsnet/warping.py
leejaeyong7/RMVSNet-Pytorch
c87b97b5c4338250159d03cc30796d2e93515821
[ "MIT" ]
3
2020-11-20T03:56:55.000Z
2022-03-07T12:38:22.000Z
import torch import torch.nn.functional as NF def get_pixel_grids(width, height): '''returns W x H grid pixels Given width and height, creates a mesh grid, and returns homogeneous coordinates of image in a 3 x W*H Tensor Arguments: width {Number} -- Number representing width of pixel gri...
36.050132
114
0.619849
2,255
13,663
3.581375
0.08071
0.01263
0.01263
0.015354
0.760896
0.719787
0.70629
0.678554
0.67843
0.653294
0
0.038729
0.274318
13,663
378
115
36.145503
0.775794
0.450487
0
0.286667
0
0
0
0
0
0
0
0
0
1
0.08
false
0
0.013333
0
0.173333
0.006667
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5a1702ab5b6acaac689b36995337457fc7e11967
263
py
Python
saleor/graphql/core/utils.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
9
2021-08-08T22:42:18.000Z
2021-11-23T06:50:14.000Z
saleor/graphql/core/utils.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
3
2020-03-24T16:14:11.000Z
2021-02-02T21:55:00.000Z
saleor/graphql/core/utils.py
probablysalty/bonsai
06e74acd890ac53e9332aef13a8b47b88e13723c
[ "BSD-3-Clause" ]
null
null
null
def clean_seo_fields(data): """Extract and assign seo fields to given dictionary.""" seo_fields = data.pop('seo', None) if seo_fields: data['seo_title'] = seo_fields.get('title') data['seo_description'] = seo_fields.get('description')
37.571429
63
0.665399
36
263
4.638889
0.472222
0.323353
0.233533
0
0
0
0
0
0
0
0
0
0.190114
263
6
64
43.833333
0.784038
0.190114
0
0
0
0
0.207729
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0
0
0
0
null
1
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
3
5a1ed018bedde988f4915d41dfe0789703f564a5
302
py
Python
webhook_telegram_bot/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
null
null
null
webhook_telegram_bot/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
1
2022-02-01T18:18:28.000Z
2022-02-01T18:18:28.000Z
webhook_telegram_bot/handlers.py
toolen/webhook-telegram-bot
c2ef4e7a6cf0f78c0341d3d645e516440596569f
[ "MIT" ]
null
null
null
"""This file contains handlers for common purposes.""" from aiohttp import web from aiohttp.web_response import Response async def health_handler(request: web.Request) -> Response: """ Return healthcheck response. :return: Response """ return web.json_response({"health": "ok"})
23.230769
59
0.708609
36
302
5.861111
0.583333
0.199052
0
0
0
0
0
0
0
0
0
0
0.178808
302
12
60
25.166667
0.850806
0.15894
0
0
0
0
0.044199
0
0
0
0
0
0
1
0
true
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
5a27f40f7024fd8c3e790d59b06e601202eccf97
206
py
Python
tests/test_log_help.py
fdr/heroku-wal-e
0145e81611e06328de228d2ac4820f3afae2f5c1
[ "BSD-3-Clause" ]
1
2022-02-15T18:18:43.000Z
2022-02-15T18:18:43.000Z
tests/test_log_help.py
fdr/heroku-wal-e
0145e81611e06328de228d2ac4820f3afae2f5c1
[ "BSD-3-Clause" ]
null
null
null
tests/test_log_help.py
fdr/heroku-wal-e
0145e81611e06328de228d2ac4820f3afae2f5c1
[ "BSD-3-Clause" ]
null
null
null
import wal_e.log_help def test_nonexisting_socket(tmpdir): # Must not raise an exception, silently failing is preferred for # now. wal_e.log_help.configure(syslog_address=tmpdir.join('bogus'))
29.428571
68
0.762136
31
206
4.83871
0.83871
0.053333
0.093333
0.146667
0
0
0
0
0
0
0
0
0.150485
206
6
69
34.333333
0.857143
0.325243
0
0
0
0
0.036765
0
0
0
0
0
0
1
0.333333
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
3
5a2a0bba8d4bde70965f22a212ce8acf9a78fcba
46,634
py
Python
src/game/link.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
6
2017-04-25T00:22:02.000Z
2022-02-18T05:27:17.000Z
src/game/link.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
null
null
null
src/game/link.py
BradAnderson1995/PyZelda
8fffcf01fb66bb583b40f4e23b4fc850bcbca2da
[ "MIT" ]
3
2018-11-17T18:07:58.000Z
2021-11-04T02:46:41.000Z
__author__ = 'brad' import os import src.engine as engine import pygame import effects import random import linksword import specialtiles from pygame.locals import * RESOURCE_DIR = os.path.join(os.path.dirname(__file__),'../../resources/') + '/' SPRITE_DIR = RESOURCE_DIR + 'sprite/' SOUND_DIR = RESOURCE_DIR + 'sound...
47.344162
174
0.564417
5,569
46,634
4.481056
0.04956
0.032819
0.045682
0.016029
0.820797
0.758525
0.733841
0.681627
0.616269
0.585053
0
0.028706
0.32918
46,634
984
175
47.392276
0.769012
0.04516
0
0.661427
0
0
0.065986
0.010323
0
0
0
0.001016
0
1
0.056832
false
0.003628
0.009674
0.01451
0.094317
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5a350d36f4a231f5a03aafe52b9c0f1f4bf12e80
590
py
Python
workingwithhtml.py
itzzmesid/FlaskLessons
4e109af984e353ff3456b74b0c3a332d677316f0
[ "MIT" ]
null
null
null
workingwithhtml.py
itzzmesid/FlaskLessons
4e109af984e353ff3456b74b0c3a332d677316f0
[ "MIT" ]
null
null
null
workingwithhtml.py
itzzmesid/FlaskLessons
4e109af984e353ff3456b74b0c3a332d677316f0
[ "MIT" ]
null
null
null
# Maintain a folder named `templates` for storing the html pages from flask import Flask, render_template app = Flask(__name__) @app.route("/child1") def inherited(): return render_template("child1.html") @app.route("/<user>") def home(user): return render_template("index.html",content=user, r=2) # We can pass mu...
34.705882
122
0.730508
93
590
4.548387
0.602151
0.132388
0.141844
0.118203
0.137116
0
0
0
0
0
0
0.005988
0.150847
590
16
123
36.875
0.838323
0.571186
0
0
0
0
0.142276
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
5a3ca1d7e54ea77148c9b4a1189c4bab1d774c3f
133
py
Python
finodays/ml_app/urls.py
e-kondr01/finodays
68837ff71068239f4013e8cf289f29021978c6a4
[ "MIT" ]
null
null
null
finodays/ml_app/urls.py
e-kondr01/finodays
68837ff71068239f4013e8cf289f29021978c6a4
[ "MIT" ]
null
null
null
finodays/ml_app/urls.py
e-kondr01/finodays
68837ff71068239f4013e8cf289f29021978c6a4
[ "MIT" ]
null
null
null
from django.conf.urls import url from finodays.ml_app.views import * urlpatterns = [ url("predict", PredictView.as_view()), ]
14.777778
42
0.714286
18
133
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.157895
133
8
43
16.625
0.830357
0
0
0
0
0
0.052632
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
5a484a656becdb89dbc6bd610d619dde7d33c6a5
153
py
Python
tests/errors/semantic/non_blocking/INCOMPATIBLE_TYPES_IN_ASSIGNMENT_1.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
3
2017-08-31T14:11:55.000Z
2018-03-05T04:47:58.000Z
tests/errors/semantic/non_blocking/INCOMPATIBLE_TYPES_IN_ASSIGNMENT_1.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
null
null
null
tests/errors/semantic/non_blocking/INCOMPATIBLE_TYPES_IN_ASSIGNMENT_1.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
1
2018-02-13T23:46:49.000Z
2018-02-13T23:46:49.000Z
# pylint: disable=missing-function-docstring, missing-module-docstring/ import numpy as np a = np.ones(4,dtype=np.int32) a = np.zeros(4,dtype=np.int64)
25.5
71
0.751634
26
153
4.423077
0.653846
0.052174
0.13913
0
0
0
0
0
0
0
0
0.043478
0.098039
153
5
72
30.6
0.789855
0.45098
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
5a7a6a1c4663dd779c92795bda5a1f39af896a2f
102
py
Python
trojuholnik/apps.py
MartinStevko/matikNaboj
72e854cb52d59aa45c1b80eef19e12dca7e21351
[ "MIT" ]
null
null
null
trojuholnik/apps.py
MartinStevko/matikNaboj
72e854cb52d59aa45c1b80eef19e12dca7e21351
[ "MIT" ]
1
2018-03-29T21:04:02.000Z
2018-04-29T17:54:51.000Z
trojuholnik/apps.py
MartinStevko/matikNaboj
72e854cb52d59aa45c1b80eef19e12dca7e21351
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TrojuholnikConfig(AppConfig): name = 'trojuholnik'
17
36
0.735294
10
102
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.196078
102
5
37
20.4
0.914634
0
0
0
0
0
0.113402
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
0
0
0
3
5a8030a578dca009f1829a3a70aee0244ff6f30e
8,792
py
Python
test.py
rhargreaves/zx-spec
5df6c8428339e0f1a35a2f8d00dc65995102f2cf
[ "MIT" ]
34
2017-10-25T04:29:37.000Z
2021-08-29T15:33:27.000Z
test.py
rhargreaves/zx-spec
5df6c8428339e0f1a35a2f8d00dc65995102f2cf
[ "MIT" ]
2
2017-10-20T22:49:29.000Z
2017-11-28T12:42:22.000Z
test.py
rhargreaves/zx-spec
5df6c8428339e0f1a35a2f8d00dc65995102f2cf
[ "MIT" ]
1
2019-09-20T17:55:35.000Z
2019-09-20T17:55:35.000Z
#!/usr/bin/env python from __future__ import print_function import os import subprocess import signal import time import glob import unittest ZX_SPEC_OUTPUT_FILE = "printout.txt" ZX_SPEC_TEST_END_MARKER = '-- ZX SPEC TEST END --' class TestPasses(unittest.TestCase): @classmethod def setUpClass(self): ...
45.319588
169
0.710077
1,148
8,792
5.227352
0.174216
0.104983
0.265456
0.324446
0.77987
0.743209
0.65989
0.490585
0.444593
0.444593
0
0.018965
0.184372
8,792
193
170
45.554404
0.817878
0.002275
0
0.3
0
0.01875
0.312735
0.020978
0
0
0
0
0.36875
1
0.1625
false
0.05
0.04375
0
0.24375
0.0625
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5a829f6c37993d1a6eb4773f38c2e8db67a38c53
3,115
py
Python
src/zonal/tests/test_zone.py
LaudateCorpus1/ccs-pycalendar
4c7e0513a8a7a19ab4602ff2a82af968b78c413e
[ "Apache-2.0" ]
72
2016-08-14T17:45:09.000Z
2021-11-16T06:15:11.000Z
src/zonal/tests/test_zone.py
ass-a2s/ccs-pycalendar
7aad34797f055875d4207615e6ad493707037f6a
[ "Apache-2.0" ]
3
2017-04-06T18:16:01.000Z
2020-05-14T05:57:00.000Z
src/zonal/tests/test_zone.py
ass-a2s/ccs-pycalendar
7aad34797f055875d4207615e6ad493707037f6a
[ "Apache-2.0" ]
26
2016-09-14T16:27:00.000Z
2022-03-26T11:42:20.000Z
## # Copyright (c) 2007-2013 Cyrus Daboo. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
29.666667
89
0.708828
552
3,115
3.983696
0.346014
0.0191
0.015007
0.025011
0.43156
0.380628
0.380628
0.34925
0.287403
0.261937
0
0.153761
0.133547
3,115
104
90
29.951923
0.660986
0.194543
0
0.461538
0
0.205128
0.695338
0.513264
0
0
0
0
0.025641
1
0.025641
false
0
0.051282
0
0.089744
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
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ce5a62ea04d62413f2daeea87c8f6e0d01bdc814
767
py
Python
day7/task2.py
pablogo1/statistics
39b86b8787876bc087f3ecb6b880952e1f6d010c
[ "MIT" ]
null
null
null
day7/task2.py
pablogo1/statistics
39b86b8787876bc087f3ecb6b880952e1f6d010c
[ "MIT" ]
null
null
null
day7/task2.py
pablogo1/statistics
39b86b8787876bc087f3ecb6b880952e1f6d010c
[ "MIT" ]
null
null
null
import math def read_int(): return int(input()) def read_float_arr(): return list(map(float, input().rstrip().split())) def cov(X, Y, mean_x, mean_y): return sum(map(lambda x, y: (x - mean_x) * (y - mean_y), X, Y)) / len(X) def std_dev(arr, mean): return math.sqrt(sum(map(lambda x: (x - mean)**2, ar...
23.242424
76
0.597132
142
767
3.077465
0.330986
0.02746
0.08238
0.089245
0.06865
0.06865
0
0
0
0
0
0.017945
0.200782
767
33
77
23.242424
0.694943
0
0
0
0
0
0.011719
0
0
0
0
0
0
1
0.25
false
0
0.041667
0.208333
0.541667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
ce847c1fdb288667fbc79ac484c666197a5df79f
318
py
Python
eeflows/eeflows/storages.py
effie-ms/eeflows
22dc5f52f2be88e9314c6705dd384cd643e93949
[ "MIT" ]
null
null
null
eeflows/eeflows/storages.py
effie-ms/eeflows
22dc5f52f2be88e9314c6705dd384cd643e93949
[ "MIT" ]
null
null
null
eeflows/eeflows/storages.py
effie-ms/eeflows
22dc5f52f2be88e9314c6705dd384cd643e93949
[ "MIT" ]
null
null
null
from django.conf import settings from storages.backends.s3boto3 import S3Boto3Storage class PrivateMediaStorage(S3Boto3Storage): location = settings.MEDIAFILES_LOCATION default_acl = "private" class MediaStorage(S3Boto3Storage): location = settings.MEDIAFILES_LOCATION default_acl = "public-read"
22.714286
52
0.795597
32
318
7.78125
0.59375
0.176707
0.240964
0.321285
0.465863
0.465863
0.465863
0
0
0
0
0.029304
0.141509
318
13
53
24.461538
0.882784
0
0
0.25
0
0
0.056604
0
0
0
0
0
0
1
0
false
0
0.25
0
1
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
1
0
0
3
ce874b7cb1b81c4079fd2f78f64bbf6877a65eb4
119
py
Python
main.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
2
2017-10-17T10:08:25.000Z
2017-10-17T11:17:39.000Z
main.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
main.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
import wrapper for i in range(1,14,1): wrapper.dealAImage("data/" + str(i),"data/result/" + str(i),True,True,True)
29.75
79
0.663866
21
119
3.761905
0.619048
0.101266
0
0
0
0
0
0
0
0
0
0.038462
0.12605
119
4
79
29.75
0.721154
0
0
0
0
0
0.141667
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
ce923ea486b8c3b11b44bc9f6c3cbc6543c867f2
119
py
Python
scripts/portal/mirtalk01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/mirtalk01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/mirtalk01.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
if not "dt01=o" in sm.getQRValue(22013): sm.showFieldEffect("evan/dragonTalk01") sm.addQRValue(22013, "dt01=o")
39.666667
43
0.705882
17
119
4.941176
0.705882
0.119048
0
0
0
0
0
0
0
0
0
0.153846
0.12605
119
3
44
39.666667
0.653846
0
0
0
0
0
0.241667
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
3
ce941a034674fb6eb8ff2ed349a52235d702d3c5
708
py
Python
essentials_kit_management/interactors/storages/.~c9_invoke_LHKYAJ.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
null
null
null
essentials_kit_management/interactors/storages/.~c9_invoke_LHKYAJ.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
2
2021-09-07T07:06:00.000Z
2021-09-07T07:24:26.000Z
essentials_kit_management/interactors/storages/form_storage_interface.py
RajeshKumar1490/iB_hubs_mini_project
f7126092400fb9a62fb4bff643dae7cda3a8d9d2
[ "MIT" ]
null
null
null
from typing import List from abc import abstractmethod, ABC from essentials_kit_management.interactors.storages.dtos \ import FormDto, FormDetailsDto class FormStorageInterface(ABC): @abstractmethod def get_forms_details_as_list( self, offset: int, limit: int) -> List[FormDto]: pass ...
23.6
66
0.682203
84
708
5.5
0.452381
0.183983
0.181818
0.084416
0
0
0
0
0
0
0
0
0.245763
708
29
67
24.413793
0.865169
0
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.227273
false
0.227273
0.136364
0
0.409091
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
ce993aae09cda595d8f83986b84b17bacf919c58
2,188
py
Python
models/random_model.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
2
2019-12-09T08:41:13.000Z
2020-10-22T02:29:22.000Z
models/random_model.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
models/random_model.py
TeamSerpentine/retro-baselines
9b2c725604496aca9c382a53f456d31fdbcaa5b1
[ "BSD-3-Clause" ]
null
null
null
""" Random choice model. The random choice model chooses a random action in a snake, taking into account the appropriate action space. Useful for testing purposes but not so much for playing a snake well. """ import random from models.base_model import BaseModel class RandomModel(BaseModel): """ Model th...
29.972603
109
0.599634
276
2,188
4.65942
0.344203
0.051322
0.040435
0.023328
0.303266
0.267496
0.195956
0.195956
0.195956
0.195956
0
0
0.328154
2,188
72
110
30.388889
0.87483
0.502742
0
0.222222
0
0
0.025992
0
0
0
0
0
0
1
0.333333
false
0.222222
0.111111
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
1
0
0
1
0
0
3
ce9f7d5deb32f4a9fe918104f07de45113671649
246
py
Python
carfactory/dealership/models.py
quesiasts/django-grpc
a4330a726f2f0d0ec3e259dd83ea82bac57294e0
[ "MIT" ]
1
2022-03-20T22:51:39.000Z
2022-03-20T22:51:39.000Z
carfactory/dealership/models.py
quesiasts/django-grpc
a4330a726f2f0d0ec3e259dd83ea82bac57294e0
[ "MIT" ]
null
null
null
carfactory/dealership/models.py
quesiasts/django-grpc
a4330a726f2f0d0ec3e259dd83ea82bac57294e0
[ "MIT" ]
null
null
null
from django.db import models class Car(models.Model): brand = models.CharField(max_length=100) release_year = models.DateField() color = models.CharField(max_length=6, default='black') class Meta: ordering = ['brand']
20.5
59
0.682927
31
246
5.322581
0.709677
0.181818
0.218182
0.290909
0
0
0
0
0
0
0
0.020305
0.199187
246
11
60
22.363636
0.817259
0
0
0
0
0
0.040816
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.857143
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
1
0
0
3
cea0c676c5c55d3c9e4f47193a1feb97233d0ff8
197
py
Python
lifter/profiles/urls.py
13lift/OpenHackathonPlatform
0ccd4459fd002182e901427d1e6fff38e02fe10d
[ "MIT" ]
null
null
null
lifter/profiles/urls.py
13lift/OpenHackathonPlatform
0ccd4459fd002182e901427d1e6fff38e02fe10d
[ "MIT" ]
null
null
null
lifter/profiles/urls.py
13lift/OpenHackathonPlatform
0ccd4459fd002182e901427d1e6fff38e02fe10d
[ "MIT" ]
1
2019-04-09T09:49:42.000Z
2019-04-09T09:49:42.000Z
from django.conf.urls import url from .views import * urlpatterns = [ url(r'^$', ProfilesList.as_view(), name='list'), url(r'^(?P<pk>\w+)/?$', ProfilesDetail.as_view(), name='detail'), ]
21.888889
69
0.624365
27
197
4.481481
0.703704
0.066116
0.165289
0
0
0
0
0
0
0
0
0
0.142132
197
8
70
24.625
0.715976
0
0
0
0
0
0.137056
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
3
ceb96831d269dec779d63f56ddca6518af7fde8a
361
py
Python
torch_glow/tests/nodes/exp_test.py
dreamingleo/glow
8f9649bf1e1244692f2e14bdf57720f683d82618
[ "Apache-2.0" ]
3
2019-06-12T22:05:33.000Z
2020-02-20T22:21:50.000Z
torch_glow/tests/nodes/exp_test.py
dreamingleo/glow
8f9649bf1e1244692f2e14bdf57720f683d82618
[ "Apache-2.0" ]
1
2018-05-03T01:46:43.000Z
2018-05-03T01:46:43.000Z
torch_glow/tests/nodes/exp_test.py
dreamingleo/glow
8f9649bf1e1244692f2e14bdf57720f683d82618
[ "Apache-2.0" ]
1
2020-02-13T10:46:16.000Z
2020-02-13T10:46:16.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import torch from tests.utils import jitVsGlow def test_exp_basic(): """Test of the PyTorch exp Node on Glow.""" def test_f(a): b = torch.exp(a) return torch.exp(b) x = torch.randn(4) jitVsGlow(test...
20.055556
82
0.684211
54
361
4.333333
0.62963
0.059829
0
0
0
0
0
0
0
0
0
0.003497
0.207756
361
17
83
21.235294
0.814685
0.102493
0
0
0
0
0.028302
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.666667
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
1
0
0
1
0
1
0
0
3
cedcdebac0cd2c341d4c42dcf6ba34f2f97e15e8
210
py
Python
tests/backend/__init__.py
cuducos/cunhajacaiu
a96cdd1d3aca9b22996a401ae772083346a5b678
[ "MIT" ]
28
2016-05-01T12:02:27.000Z
2016-10-31T19:00:04.000Z
tests/backend/__init__.py
cuducos/cunhajacaiu
a96cdd1d3aca9b22996a401ae772083346a5b678
[ "MIT" ]
16
2016-07-14T09:41:13.000Z
2020-04-15T00:12:38.000Z
tests/backend/__init__.py
cuducos/cunhajacaiu
a96cdd1d3aca9b22996a401ae772083346a5b678
[ "MIT" ]
3
2016-05-02T13:07:27.000Z
2016-05-05T13:57:13.000Z
from json import loads from unittest import TestCase from cunhajacaiu import app class FlaskTestCase(TestCase): def setUp(self): app.config['TESTING'] = True self.app = app.test_client()
19.090909
36
0.704762
27
210
5.444444
0.666667
0.095238
0
0
0
0
0
0
0
0
0
0
0.214286
210
10
37
21
0.890909
0
0
0
0
0
0.033333
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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
1
0
0
3
0c76df33ef7c02d25349cdee657235220fad235d
183
py
Python
edition4/py/template.py
kgraves/ctci
a55b3234dfdcba7ccc9c22e761f6192cc82c2cca
[ "MIT" ]
null
null
null
edition4/py/template.py
kgraves/ctci
a55b3234dfdcba7ccc9c22e761f6192cc82c2cca
[ "MIT" ]
2
2016-11-03T00:32:52.000Z
2018-04-14T21:57:47.000Z
edition4/py/template.py
kgraves/ctci
a55b3234dfdcba7ccc9c22e761f6192cc82c2cca
[ "MIT" ]
null
null
null
def func(): pass import unittest class TestHasAllUnique(unittest.TestCase): def test_(self): self.assertTrue(func()) if __name__ == '__main__': unittest.main()
15.25
42
0.666667
20
183
5.65
0.7
0
0
0
0
0
0
0
0
0
0
0
0.20765
183
11
43
16.636364
0.77931
0
0
0
0
0
0.043716
0
0
0
0
0
0.125
1
0.25
false
0.125
0.125
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
3
0c9bea41b1b8cd68eeabde91bf3567b7bb10da44
13,144
py
Python
matrpo/common/distributions.py
hepengli/matrpo
17569a57f980415c4e10718f1cbd76ef6d7781be
[ "MIT" ]
null
null
null
matrpo/common/distributions.py
hepengli/matrpo
17569a57f980415c4e10718f1cbd76ef6d7781be
[ "MIT" ]
null
null
null
matrpo/common/distributions.py
hepengli/matrpo
17569a57f980415c4e10718f1cbd76ef6d7781be
[ "MIT" ]
1
2021-05-19T14:10:43.000Z
2021-05-19T14:10:43.000Z
import tensorflow as tf import numpy as np from gym import spaces from baselines.a2c.utils import fc class Pd(object): """ A particular probability distribution """ def flatparam(self): raise NotImplementedError def mode(self): raise NotImplementedError def neglogp(self, x): ...
40.195719
166
0.628195
1,800
13,144
4.436667
0.118333
0.038818
0.024418
0.0288
0.526672
0.423867
0.328951
0.263586
0.188705
0.127849
0
0.015756
0.246729
13,144
326
167
40.319018
0.790829
0.034388
0
0.461268
0
0
0.014857
0
0
0
0
0
0.017606
1
0.28169
false
0
0.017606
0.165493
0.556338
0.003521
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
0cb4107689e63ba664f9747a255ec584ab5833e7
39
py
Python
projects/oscope/software/bmb7/__init__.py
FelixVi/Bedrock
82072341902048e5b37022512909d209efb243d6
[ "RSA-MD" ]
17
2019-09-29T14:52:18.000Z
2022-03-28T21:16:25.000Z
projects/oscope/software/bmb7/__init__.py
FelixVi/Bedrock
82072341902048e5b37022512909d209efb243d6
[ "RSA-MD" ]
null
null
null
projects/oscope/software/bmb7/__init__.py
FelixVi/Bedrock
82072341902048e5b37022512909d209efb243d6
[ "RSA-MD" ]
4
2019-12-04T17:30:38.000Z
2021-11-01T01:52:13.000Z
__all__ = ['bmb7', 'submodules/build']
19.5
38
0.666667
4
39
5.5
1
0
0
0
0
0
0
0
0
0
0
0.028571
0.102564
39
1
39
39
0.6
0
0
0
0
0
0.512821
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0cd4207a9fec19e91e506dee20eae5b1116b4085
98
py
Python
stimuli/Python/one_file_per_item/jap/61_# str_seq 7.py
ALFA-group/neural_program_comprehension
0253911f376cf282af5a5627e38e0a591ad38860
[ "MIT" ]
6
2020-04-24T08:16:51.000Z
2021-11-01T09:50:46.000Z
stimuli/Python/one_file_per_item/jap/61_# str_seq 7.py
ALFA-group/neural_program_comprehension
0253911f376cf282af5a5627e38e0a591ad38860
[ "MIT" ]
null
null
null
stimuli/Python/one_file_per_item/jap/61_# str_seq 7.py
ALFA-group/neural_program_comprehension
0253911f376cf282af5a5627e38e0a591ad38860
[ "MIT" ]
4
2021-02-17T20:21:31.000Z
2022-02-14T12:43:23.000Z
mojiretu1 = "onion" shin_mojiretu = mojiretu1[-2:] zoufukugo = shin_mojiretu*4 print(zoufukugo)
14
30
0.755102
12
98
6
0.666667
0.333333
0
0
0
0
0
0
0
0
0
0.046512
0.122449
98
6
31
16.333333
0.790698
0
0
0
0
0
0.051546
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
3
0cf7d217c46c8d0b403b29511c6b71fbdfff24f3
4,260
py
Python
tortoise/backends/base/filters.py
nextfit/tortoise-orm
06bcecaf769d12c21c0da950950f030c8e74659a
[ "Apache-2.0" ]
null
null
null
tortoise/backends/base/filters.py
nextfit/tortoise-orm
06bcecaf769d12c21c0da950950f030c8e74659a
[ "Apache-2.0" ]
null
null
null
tortoise/backends/base/filters.py
nextfit/tortoise-orm
06bcecaf769d12c21c0da950950f030c8e74659a
[ "Apache-2.0" ]
null
null
null
import operator from functools import partial from typing import Callable, Tuple, Optional, Dict from pypika import functions from pypika.enums import SqlTypes from tortoise.fields import BackwardFKField, Field, ManyToManyField, RelationField # # Encoders # def identity_encoder(value, *args): return value d...
26.962025
113
0.676291
529
4,260
5.232514
0.192817
0.043353
0.057803
0.063223
0.433887
0.316835
0.288295
0.200145
0.200145
0.200145
0
0
0.199531
4,260
157
114
27.133758
0.81173
0.026056
0
0.168421
0
0
0.043068
0
0
0
0
0
0
1
0.210526
false
0
0.063158
0.168421
0.568421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
0b2a876e3aae79ba1b2e7ad99144e76d8c64729a
3,042
py
Python
sarpy/io/general/nitf_elements/tres/unclass/SNSRA.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
119
2018-07-12T22:08:17.000Z
2022-03-24T12:11:39.000Z
sarpy/io/general/nitf_elements/tres/unclass/SNSRA.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
72
2018-03-29T15:57:37.000Z
2022-03-10T01:46:21.000Z
sarpy/io/general/nitf_elements/tres/unclass/SNSRA.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
54
2018-03-27T19:57:20.000Z
2022-03-09T20:53:11.000Z
from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class SENBAND1(TREElement): def __init__(self, value): super(SENBAND1, self).__init__() self.add_field('SENBAND', 's', 10, value) self.add_field('SEN_BANDWL', 's', 3, ...
40.56
72
0.589086
435
3,042
3.832184
0.206897
0.197361
0.323935
0.407918
0.730654
0.716857
0.485903
0.377325
0.288542
0.259748
0
0.026609
0.234057
3,042
74
73
41.108108
0.688841
0
0
0.203125
0
0
0.161131
0
0
0
0
0
0
1
0.046875
false
0
0.015625
0
0.15625
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b61ae98a4d3ae686198492a8b7ddc9bb4b86b3a
492
py
Python
pnad/importer.py
fabiommendes/pnad
a18d598fb5a71eb558f2b7c944406711f7c1f27d
[ "MIT" ]
1
2020-03-24T02:43:47.000Z
2020-03-24T02:43:47.000Z
pnad/importer.py
BrunaNayara/pnad
45adcbb83c79ab0b51c3b5bb47a901da67d83b92
[ "MIT" ]
null
null
null
pnad/importer.py
BrunaNayara/pnad
45adcbb83c79ab0b51c3b5bb47a901da67d83b92
[ "MIT" ]
1
2020-03-24T02:43:44.000Z
2020-03-24T02:43:44.000Z
LINE_NO_BLACKLIST = { 1976: [{252398, 85073, 61227, 63285, 84395, 60548, 66328, 83594, 38149, 64203, 38132, 253890, 61945, 255371, 254087, 258295, 254087, 13739, 15052, 63425, 258315, 14335, 252470, 58318, 58359, 67061, 258315, 15830, 252470, 64906, 14335, 85814, 61233, 58318}, (...
61.5
90
0.556911
53
492
5.132075
0.90566
0
0
0
0
0
0
0
0
0
0
0.671018
0.221545
492
8
91
61.5
0.039164
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b636193e31c3f6e0fc66de5cf93a2e041d1b1fa
77
py
Python
Codeforces Problems/String Similarity/String Similarity.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
null
null
null
Codeforces Problems/String Similarity/String Similarity.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
1
2020-10-13T20:57:34.000Z
2020-10-13T20:57:34.000Z
Codeforces Problems/String Similarity/String Similarity.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
null
null
null
t=int(input()) for i in range(t): n=int(input()) s1=input() print(s1[::2])
15.4
18
0.584416
16
77
2.8125
0.6875
0.355556
0
0
0
0
0
0
0
0
0
0.044776
0.12987
77
5
19
15.4
0.626866
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
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
3
0b659a17f6d3627d4eaa5c8bfc8d6dc77a013051
9,268
py
Python
ctapipe_io_magic/tests/test_magic_event_source.py
cta-observatory/ctapipe_io_magic
84b16aa8c75751b44d927c99abb2cffa312c324f
[ "MIT" ]
null
null
null
ctapipe_io_magic/tests/test_magic_event_source.py
cta-observatory/ctapipe_io_magic
84b16aa8c75751b44d927c99abb2cffa312c324f
[ "MIT" ]
34
2021-12-21T11:48:13.000Z
2022-03-30T08:50:40.000Z
ctapipe_io_magic/tests/test_magic_event_source.py
cta-observatory/ctapipe_io_magic
84b16aa8c75751b44d927c99abb2cffa312c324f
[ "MIT" ]
4
2019-05-23T10:18:39.000Z
2022-01-05T11:11:32.000Z
import copy import os from pathlib import Path import pytest test_data = Path(os.getenv('MAGIC_TEST_DATA', 'test_data')).absolute() test_calibrated_real_dir = test_data / 'real/calibrated' test_calibrated_real = [ test_calibrated_real_dir / '20210314_M1_05095172.001_Y_CrabNebula-W0.40+035.root', test_calibrat...
43.924171
108
0.756798
1,419
9,268
4.53277
0.126145
0.05597
0.054726
0.044465
0.780317
0.744558
0.721704
0.69574
0.684235
0.607432
0
0.139564
0.134117
9,268
210
109
44.133333
0.661931
0.11448
0
0.208633
0
0
0.334801
0.24945
0
0
0
0
0.158273
1
0.064748
false
0
0.107914
0
0.172662
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0b8d026c01a44977324aa09e990e05997743b5c7
399
py
Python
src/flake8_aaa/multi_node_block.py
jamescooke/flake8-aaa
9df248e10538946531b67da4564bb229a91baece
[ "MIT" ]
44
2018-04-08T21:25:43.000Z
2022-01-20T14:28:16.000Z
src/flake8_aaa/multi_node_block.py
jamescooke/flake8-aaa
9df248e10538946531b67da4564bb229a91baece
[ "MIT" ]
72
2018-03-30T14:30:48.000Z
2022-03-31T16:18:16.000Z
src/flake8_aaa/multi_node_block.py
jamescooke/flake8-aaa
9df248e10538946531b67da4564bb229a91baece
[ "MIT" ]
1
2018-10-17T18:49:25.000Z
2018-10-17T18:49:25.000Z
import ast from abc import ABCMeta, abstractmethod from typing import List # noqa: F401 from .types import LineType class MultiNodeBlock(metaclass=ABCMeta): @property @abstractmethod def line_type(self) -> LineType: pass def __init__(self) -> None: self.nodes: List[ast.AST] = [] ...
19
46
0.661654
48
399
5.375
0.5625
0.131783
0
0
0
0
0
0
0
0
0
0.009967
0.245614
399
20
47
19.95
0.847176
0.025063
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.214286
false
0.142857
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
e7e925bafaf2c456088a1e7f2d923c8bb6a4e272
99
py
Python
Python/Programming Basics/Simple Calculations/08. Triangle Area.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Basics/Simple Calculations/08. Triangle Area.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
Python/Programming Basics/Simple Calculations/08. Triangle Area.py
teodoramilcheva/softuni-software-engineering
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
[ "MIT" ]
null
null
null
b = float(input()) h = float(input()) area = (a*h/2) print(f'Triangle area = {round(area, 2)}')
12.375
42
0.575758
17
99
3.352941
0.647059
0.350877
0
0
0
0
0
0
0
0
0
0.02439
0.171717
99
7
43
14.142857
0.670732
0
0
0
0
0
0.323232
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
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
3
e7edf0ee72bcd7fff6a71c4cb76970e531f62339
921
py
Python
la_mysql/db/connection.py
lucyatodd/pymodules
f8712d4b11e28c4d8bfdfde5def15f8704bd34a3
[ "MIT" ]
null
null
null
la_mysql/db/connection.py
lucyatodd/pymodules
f8712d4b11e28c4d8bfdfde5def15f8704bd34a3
[ "MIT" ]
null
null
null
la_mysql/db/connection.py
lucyatodd/pymodules
f8712d4b11e28c4d8bfdfde5def15f8704bd34a3
[ "MIT" ]
null
null
null
from mysql.connector import (connection) import configparser import io def open(): config = configparser.RawConfigParser() config.read("config.properties") user = config.get('DatabaseSection','mysql.user') password = config.get('DatabaseSection','mysql.password') host = config.get('DatabaseSection','m...
35.423077
106
0.718784
105
921
6.304762
0.257143
0.108761
0.181269
0.219033
0.501511
0.471299
0.471299
0.471299
0.471299
0.471299
0
0
0.134636
921
25
107
36.84
0.830615
0
0
0.4
0
0
0.271444
0
0
0
0
0
0
1
0.1
false
0.3
0.15
0
0.35
0.1
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
1
0
0
0
0
0
3
e7f985c32234ce00071567d034c9cd5f41d8a133
52
py
Python
packages/dmg-builder/vendor/dmgbuild/__init__.py
Vkzem/electron-builder
0ba9c4fae411cab520217f70fabdde05c5d1c226
[ "MIT" ]
21,684
2015-01-01T03:42:20.000Z
2022-03-30T13:32:44.000Z
packages/dmg-builder/vendor/dmgbuild/__init__.py
Vkzem/electron-builder
0ba9c4fae411cab520217f70fabdde05c5d1c226
[ "MIT" ]
4,067
2015-01-01T00:04:51.000Z
2022-03-30T13:42:56.000Z
packages/dmg-builder/vendor/dmgbuild/__init__.py
Vkzem/electron-builder
0ba9c4fae411cab520217f70fabdde05c5d1c226
[ "MIT" ]
1,901
2015-01-01T21:05:59.000Z
2022-03-21T08:14:25.000Z
from .core import build_dmg __all__ = ['dmgbuild']
13
27
0.730769
7
52
4.714286
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
3
28
17.333333
0.75
0
0
0
0
0
0.153846
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
f00c9c4c8a4a1321e664ce1c05aeb9912cf252ff
242
py
Python
script_python/numeros_pares_intervalo_1_50_047.py
carlos-freitas-gitHub/Python_Basico_Avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
1
2020-07-31T20:31:12.000Z
2020-07-31T20:31:12.000Z
script_python/numeros_pares_intervalo_1_50_047.py
carlos-freitas-gitHub/python_basico_avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
null
null
null
script_python/numeros_pares_intervalo_1_50_047.py
carlos-freitas-gitHub/python_basico_avancado
e1ee25d125cb20ba07d3777f74d1ac85c96c6f4d
[ "Apache-2.0" ]
null
null
null
'''crie um intervalo de 1 à 50 e saia com todos os seus números pares''' print('{:-^40}'.format('NÚMEROS PARES EM UM INTERVALO')) for i in range(1, 51, 2): print(i, end=' → ' if i < 49 else ' ') # print(i) print('\n{:-^40}'.format('FIM'))
34.571429
73
0.603306
45
242
3.266667
0.711111
0.14966
0
0
0
0
0
0
0
0
0
0.065327
0.177686
242
6
74
40.333333
0.668342
0.318182
0
0
0
0
0.327044
0
0
0
0
0.166667
0
1
0
false
0
0
0
0
0.75
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
3
f01ce83986a9ca103e4e90957f39e6f302f20c2d
3,352
py
Python
bs4/webscraping14.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
bs4/webscraping14.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
bs4/webscraping14.py
dirleif/aprendendo-scraping
0850897c019402c897e9ec58160a13aec2e02665
[ "MIT" ]
null
null
null
""" parseando arquivo html buscando elementos com find_next_sibling/find_previous_sibling parser lxml """ # importando modulo BeautifulSoup do pacote bs4 from bs4 import BeautifulSoup # abrir arquivo para leitura with open('arquivo03.html','r') as f: soup = BeautifulSoup(f, 'lxml') producers = soup.find(id = 'pro...
24.289855
62
0.700776
448
3,352
5.198661
0.185268
0.137398
0.103049
0.131387
0.751825
0.751825
0.705024
0.626878
0.626878
0.572778
0
0.02603
0.09457
3,352
137
63
24.467153
0.741351
0.084427
0
0.266667
0
0
0.127119
0
0
0
0
0.014599
0
1
0
false
0
0.066667
0
0.066667
0.266667
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
3
f024f88e71cb4406b7cc689950cc087b1e43dca3
1,132
py
Python
src/differential_value_iteration/algorithms/random.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
null
null
null
src/differential_value_iteration/algorithms/random.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
24
2021-08-16T23:21:39.000Z
2021-11-25T20:46:17.000Z
src/differential_value_iteration/algorithms/random.py
btanner/differential_value_iteration
5b734397cd158b6783f5fb44106774ba2a28049f
[ "Apache-2.0" ]
2
2021-08-06T21:15:49.000Z
2021-08-16T04:29:52.000Z
"""Random control baseline.""" import numpy as np from differential_value_iteration.algorithms import algorithm from differential_value_iteration.environments import structure class Control(algorithm.Control): """Random algorithm.""" def __init__( self, mdp: structure.MarkovDecisionProcess, i...
23.102041
70
0.69523
145
1,132
5.262069
0.4
0.06422
0.068152
0.078637
0
0
0
0
0
0
0
0.00443
0.202297
1,132
48
71
23.583333
0.840532
0.037102
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.030303
0.090909
0.151515
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f03d5ab84e73ffa093b0d7f0bc58238c13ba0be1
539
py
Python
tutorials/python/decorators/mydeco.py
joamatab/install_new_computer
92080adc4bdd693bbd07c19e696a2a6cae8bb8f8
[ "MIT" ]
3
2019-09-30T22:33:45.000Z
2021-06-02T03:01:55.000Z
tutorials/python/decorators/mydeco.py
joamatab/install_new_computer
92080adc4bdd693bbd07c19e696a2a6cae8bb8f8
[ "MIT" ]
null
null
null
tutorials/python/decorators/mydeco.py
joamatab/install_new_computer
92080adc4bdd693bbd07c19e696a2a6cae8bb8f8
[ "MIT" ]
1
2019-12-27T11:19:36.000Z
2019-12-27T11:19:36.000Z
#!/usr/bin/env python3 """Example of a decorator that takes any function, puts its output into a string, and then adds exclamation points. Very exciting!!! From Reuven Lerner's "Practical Decorators" talk at PyCon 2019. Reuven's courses, books, and newsletter are at https://lerner.co.il/ """ def mydeco(func): d...
21.56
71
0.647495
80
539
4.2625
0.7125
0.058651
0.093842
0
0
0
0
0
0
0
0
0.021277
0.215213
539
24
72
22.458333
0.78487
0.530612
0
0
0
0
0.138211
0
0
0
0
0
0
1
0.3
false
0
0
0.2
0.6
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
b2b628c29fa391c4697f601258fa62807584e958
161
py
Python
flask_flatpages/imports.py
hSterz/Flask-FlatPages
b1fdc51eb8b9c05737f5941fc872d3945417799b
[ "BSD-3-Clause" ]
112
2016-09-09T15:57:16.000Z
2022-03-27T03:12:15.000Z
flask_flatpages/imports.py
hSterz/Flask-FlatPages
b1fdc51eb8b9c05737f5941fc872d3945417799b
[ "BSD-3-Clause" ]
28
2016-11-27T16:10:21.000Z
2021-12-21T08:01:17.000Z
flask_flatpages/imports.py
hSterz/Flask-FlatPages
b1fdc51eb8b9c05737f5941fc872d3945417799b
[ "BSD-3-Clause" ]
28
2016-08-26T20:39:33.000Z
2022-03-23T20:41:10.000Z
"""Conditional imports.""" try: from pygments.formatters import HtmlFormatter as PygmentsHtmlFormatter except ImportError: PygmentsHtmlFormatter = None
23
74
0.78882
14
161
9.071429
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.142857
161
6
75
26.833333
0.92029
0.124224
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
b2f396ee154b17ee2e6fa8847f8f5753eda01768
2,139
py
Python
pytorch3dunet/augment/downscale.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
pytorch3dunet/augment/downscale.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
pytorch3dunet/augment/downscale.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
from pytorch3dunet.augment.transforms import TransformOptions, LocalTransform, Phase, \ SkippableTransformOptions, SkippedTransform, logger, MyGenerator from dataclasses import dataclass from pytorch3dunet.datasets.featurizer import Transformable, LabelClass from pytorch3dunet.datasets.features import Potential...
35.065574
143
0.720898
218
2,139
6.949541
0.394495
0.055446
0.033003
0.031683
0.088449
0.051485
0
0
0
0
0
0.010514
0.199626
2,139
60
144
35.65
0.874416
0.01683
0
0.232558
0
0
0
0
0
0
0
0
0
1
0.209302
false
0
0.162791
0.139535
0.697674
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
650b01884d66621de23cdf676754434cfb6e9f23
432
py
Python
katas/kyu_5/caesar_cipher_helper.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_5/caesar_cipher_helper.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_5/caesar_cipher_helper.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from string import ascii_uppercase as az, maketrans class CaesarCipher(object): def __init__(self, shift): self.shifted = az[shift:] + az[:shift] self.decode_trans = maketrans(self.shifted, az) self.encode_trans = maketrans(az, self.shifted) def decode(self, s): return s.upper...
28.8
55
0.671296
57
432
4.929825
0.403509
0.117438
0.092527
0.085409
0.213523
0.213523
0.213523
0
0
0
0
0
0.210648
432
14
56
30.857143
0.824047
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0.1
0.2
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6524ba428cb179af5a75df8b99e2634b820230f8
458
py
Python
src/docbuilder/__init__.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
2
2020-08-26T06:56:01.000Z
2021-07-08T13:56:20.000Z
src/docbuilder/__init__.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
4
2021-02-02T23:04:30.000Z
2022-03-02T09:54:47.000Z
src/docbuilder/__init__.py
pbedn/ggrc-core
12ae4720a430730835f1d02def62c0f6ef453521
[ "ECL-2.0", "Apache-2.0" ]
1
2016-08-23T10:51:19.000Z
2016-08-23T10:51:19.000Z
# Copyright (C) 2019 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Documentation builder. 1. Generates API documentation using introspection of application objects. 2. Places generated ReST files into ``/docs/source/api``. 3. Builds generated and manually written docum...
26.941176
78
0.746725
65
458
5.246154
0.8
0.046921
0
0
0
0
0
0
0
0
0
0.023136
0.150655
458
16
79
28.625
0.85347
0.969432
0
null
1
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
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
65471ae7009afc22db3e7cf1d1dbc7c24ffd9d4b
120
py
Python
docs/howto/transforming_inventory_data/helpers.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
4
2020-01-19T16:29:19.000Z
2020-12-30T19:25:14.000Z
docs/howto/transforming_inventory_data/helpers.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
1
2020-02-23T08:44:01.000Z
2020-03-12T15:12:12.000Z
docs/howto/transforming_inventory_data/helpers.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
3
2018-11-01T18:20:30.000Z
2020-04-10T20:12:36.000Z
def adapt_host_data(host): # This function receives a Host object for manipulation host.username = host["user"]
30
59
0.733333
17
120
5.058824
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.183333
120
3
60
40
0.877551
0.441667
0
0
0
0
0.061538
0
0
0
0
0
0
1
0.5
false
0
0
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
1
0
0
0
0
0
0
0
3
331f90cfa1a380c4b22ea0e6de6e742a3f10144a
813
py
Python
leet/dynamic/numDecodings.py
peterlamar/python-cp-cheatsheet
f9f854064a3c657c04fab27d0a496401bfa97da1
[ "Apache-2.0" ]
140
2020-10-21T13:23:52.000Z
2022-03-31T15:09:45.000Z
leet/dynamic/numDecodings.py
stacykutyepov/python-cp-cheatsheet
a00a57e1b36433648d1cace331e15ff276cef189
[ "Apache-2.0" ]
1
2021-07-22T14:01:25.000Z
2021-07-22T14:01:25.000Z
leet/dynamic/numDecodings.py
stacykutyepov/python-cp-cheatsheet
a00a57e1b36433648d1cace331e15ff276cef189
[ "Apache-2.0" ]
33
2020-10-21T14:17:02.000Z
2022-03-25T11:25:03.000Z
class Solution: def numDecodings(self, s: str) -> int: # Count possibilities up to that point dp = [0] * (len(s) + 1 ) dp[0] = 1 dp[1] = 1 if s[0] !='0' else 0 for i in range(2, len(s)+1): if 0< int(s[i-1:i]) <= 9: dp[i] += dp[i...
26.225806
46
0.345633
130
813
2.161538
0.223077
0.085409
0.071174
0.085409
0.818505
0.754448
0.569395
0.569395
0.569395
0.569395
0
0.096244
0.476015
813
31
47
26.225806
0.56338
0.04428
0
0.761905
0
0
0.002577
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.238095
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
3327984ccd9648d4823777f8c8ebda916fdab2a5
176
py
Python
Tree_Traversal/06_csDataStructureIterativeDepthFirstTraversal.py
med-cab1/CSPT15_BST_GP
b526bd03cc9ff256963b1b7f48e40697a4558b4c
[ "MIT" ]
null
null
null
Tree_Traversal/06_csDataStructureIterativeDepthFirstTraversal.py
med-cab1/CSPT15_BST_GP
b526bd03cc9ff256963b1b7f48e40697a4558b4c
[ "MIT" ]
null
null
null
Tree_Traversal/06_csDataStructureIterativeDepthFirstTraversal.py
med-cab1/CSPT15_BST_GP
b526bd03cc9ff256963b1b7f48e40697a4558b4c
[ "MIT" ]
38
2020-12-02T02:04:13.000Z
2021-02-11T03:48:57.000Z
""" What data structure would you use in order to write an interative depth-first traversal method? A - Heap B - Binary Search Tree C - Stack D - Queue answer is : """
10.352941
95
0.6875
28
176
4.321429
1
0
0
0
0
0
0
0
0
0
0
0
0.238636
176
17
96
10.352941
0.902985
0.920455
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
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
3
3338243bc36911424108dcb53c7a742cd6daca84
1,067
py
Python
models.py
crhowell/plj-flask
dc69d81abc4434bf4264bffaac5259cd500a87c4
[ "MIT" ]
null
null
null
models.py
crhowell/plj-flask
dc69d81abc4434bf4264bffaac5259cd500a87c4
[ "MIT" ]
null
null
null
models.py
crhowell/plj-flask
dc69d81abc4434bf4264bffaac5259cd500a87c4
[ "MIT" ]
null
null
null
import datetime from flask_bcrypt import generate_password_hash from flask_login import UserMixin from peewee import * DATABASE = SqliteDatabase('journal.db') class User(UserMixin, Model): email = CharField(unique=True) password = CharField(max_length=120) class Meta: database = DATABASE @...
24.25
57
0.66448
111
1,067
6.279279
0.540541
0.025825
0.057389
0.071736
0
0
0
0
0
0
0
0.007407
0.240862
1,067
43
58
24.813953
0.853086
0
0
0.121212
1
0
0.033739
0
0
0
0
0
0
1
0.060606
false
0.121212
0.121212
0
0.575758
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
1
0
0
3
333ee4717b8ceee74768f2e6a10750ec672c9212
53
py
Python
cfw/framework/util.py
zinic/python-cfw
48d339537cb958c29294eca5fbf81b98e5858fde
[ "MIT" ]
1
2017-07-21T00:34:15.000Z
2017-07-21T00:34:15.000Z
cfw/framework/util.py
zinic/python-cfw
48d339537cb958c29294eca5fbf81b98e5858fde
[ "MIT" ]
null
null
null
cfw/framework/util.py
zinic/python-cfw
48d339537cb958c29294eca5fbf81b98e5858fde
[ "MIT" ]
null
null
null
import re GREEDY_WHITESPACE_RE = re.compile("[ ]+")
13.25
41
0.698113
7
53
5
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.132075
53
3
42
17.666667
0.76087
0
0
0
0
0
0.075472
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
33578bd563f9f2c3cd52394fe5247afb21c5f07e
298
py
Python
datascience_bot/wiki/__init__.py
dmarx/datascience-bot
49868e67237d008a2b893c53b0dab90a69aeed9d
[ "MIT" ]
2
2019-10-02T00:59:56.000Z
2020-02-26T23:58:46.000Z
datascience_bot/wiki/__init__.py
dmarx/datascience-bot
49868e67237d008a2b893c53b0dab90a69aeed9d
[ "MIT" ]
15
2019-09-15T16:42:45.000Z
2020-01-21T18:17:01.000Z
datascience_bot/wiki/__init__.py
dmarx/datascience-bot
49868e67237d008a2b893c53b0dab90a69aeed9d
[ "MIT" ]
1
2020-05-17T17:55:59.000Z
2020-05-17T17:55:59.000Z
# -*- coding: utf-8 -*- """Markdown files as variables """ import pathlib faq = (pathlib.Path(__file__).parent / "frequently-asked-questions.md").read_text() index = (pathlib.Path(__file__).parent / "index.md").read_text() resources = (pathlib.Path(__file__).parent / "resources.md").read_text()
29.8
83
0.704698
38
298
5.131579
0.552632
0.169231
0.230769
0.323077
0
0
0
0
0
0
0
0.003717
0.097315
298
9
84
33.111111
0.72119
0.167785
0
0
0
0
0.20332
0.120332
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
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
3
335a59f82fd33fd36ddc41124e13ff2a6ca3bbf0
7,364
py
Python
pacu/models/awsapi/iot1click-projects.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
1
2022-03-09T14:51:54.000Z
2022-03-09T14:51:54.000Z
pacu/models/awsapi/iot1click-projects.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
pacu/models/awsapi/iot1click-projects.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: openapi.yaml # timestamp: 2021-12-31T02:50:48+00:00 from __future__ import annotations from datetime import datetime from typing import Annotated, Any, List, Optional from pydantic import BaseModel, Extra, Field class AssociateDeviceWithPlacementResponse(BaseModel...
20.120219
112
0.745247
669
7,364
8.052317
0.248132
0.055133
0.056803
0.05569
0.321143
0.246334
0.235938
0.1925
0.114535
0.065899
0
0.013615
0.172189
7,364
365
113
20.175342
0.870079
0.076453
0
0.424084
1
0.005236
0.019976
0.015206
0
0
0
0
0
1
0
false
0.172775
0.020942
0
0.73822
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
1
0
0
3
681f8a8a59ddd73b19af2a943d9b272d815a5ef9
20,393
py
Python
week_12_quantumChemistry1/utils2.py
praiteri/TeachingNotebook
75ee8baf8ef81154dffcac556d4739bf73eba712
[ "MIT" ]
null
null
null
week_12_quantumChemistry1/utils2.py
praiteri/TeachingNotebook
75ee8baf8ef81154dffcac556d4739bf73eba712
[ "MIT" ]
null
null
null
week_12_quantumChemistry1/utils2.py
praiteri/TeachingNotebook
75ee8baf8ef81154dffcac556d4739bf73eba712
[ "MIT" ]
1
2022-02-23T11:36:12.000Z
2022-02-23T11:36:12.000Z
import sys version=sys.version_info.major import os import numpy as np import scipy as sp import scipy.linalg as spla import matplotlib.pyplot as plt import matplotlib.ticker as mtick import matplotlib as mpl try: from colorama import Fore,Back,Style from colorama import init init(autoreset=True) print_...
39.06705
269
0.620311
3,362
20,393
3.610648
0.104105
0.01384
0.029656
0.043496
0.736799
0.708872
0.677156
0.63053
0.619903
0.600873
0
0.032287
0.239102
20,393
521
270
39.142035
0.750016
0.039818
0
0.590618
0
0.044776
0.196581
0
0
0
0
0
0
0
null
null
0
0.021322
null
null
0.098081
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
6824aa36824fa0495bf3c71109c22ad4ed9c4bad
35,144
py
Python
python/check_mysql.py
bopopescu/Heimdallr
793b5b0242788e7212a7b10e9e6a5bdaef7a73b2
[ "Apache-2.0" ]
null
null
null
python/check_mysql.py
bopopescu/Heimdallr
793b5b0242788e7212a7b10e9e6a5bdaef7a73b2
[ "Apache-2.0" ]
null
null
null
python/check_mysql.py
bopopescu/Heimdallr
793b5b0242788e7212a7b10e9e6a5bdaef7a73b2
[ "Apache-2.0" ]
1
2020-07-22T08:57:53.000Z
2020-07-22T08:57:53.000Z
#!/usr/bin/env python #coding:utf-8 import os import sys import string import time import datetime import traceback import MySQLdb import logging import logging.config logging.config.fileConfig("etc/logger.ini") logger = logging.getLogger("check_mysql") path='./include' sys.path.insert(0,path) import functions as func ...
61.013889
2,284
0.662674
4,767
35,144
4.511643
0.063562
0.013577
0.069559
0.101176
0.785233
0.734552
0.647882
0.608546
0.557865
0.510252
0
0.007528
0.19864
35,144
575
2,285
61.12
0.756134
0.030361
0
0.277647
0
0.058824
0.31688
0.137774
0
0
0
0
0
0
null
null
0.025882
0.032941
null
null
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
68250a8e57c5061451c7c0da126a9d762ece7df1
3,561
py
Python
router.py
Zogheen/it254DetectACLAnomalies
bfda3cb3b25c5e35ec807650013799e8787b0257
[ "MIT" ]
null
null
null
router.py
Zogheen/it254DetectACLAnomalies
bfda3cb3b25c5e35ec807650013799e8787b0257
[ "MIT" ]
null
null
null
router.py
Zogheen/it254DetectACLAnomalies
bfda3cb3b25c5e35ec807650013799e8787b0257
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import int, acl, router, re from ciscoconfparse import CiscoConfParse class router: def __init__(self): self.interfaces = {} self.acls = {} def addint(self, name, ip): self.interfaces[name] = int.int(name, ip) def addacl(self, name, str): ...
50.871429
126
0.538332
463
3,561
4.103672
0.187905
0.225789
0.24
0.123158
0.496316
0.422105
0.412632
0.388421
0.388421
0.388421
0
0.02057
0.290087
3,561
69
127
51.608696
0.731013
0.005897
0
0.1
0
0
0.061383
0.021902
0
0
0
0
0
1
0.116667
false
0.15
0.05
0
0.216667
0.05
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
1
0
0
0
0
0
3
68346f00d2148186085498a1cf7994de2771d33e
231
py
Python
URI/1-Beginner/1164.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1164.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
URI/1-Beginner/1164.py
vicenteneto/online-judge-solutions
4176e2387658f083b980d7b49bc98300a4c28411
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- for i in range(int(raw_input())): x = int(raw_input()) if x == sum([j for j in range(1, int(x / 2) + 1) if x % j == 0]): print x, 'eh perfeito' else: print x, 'nao eh perfeito'
23.1
69
0.497835
41
231
2.756098
0.536585
0.123894
0.19469
0
0
0
0
0
0
0
0
0.03125
0.307359
231
9
70
25.666667
0.675
0.090909
0
0
0
0
0.125
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
1
0
0
0
0
0
0
0
0
3
683fa0b975609104f72f4eea00a81abb32658dd1
1,347
py
Python
simplenn/init.py
yadizhou/SimpleNN
9abe523ea9f8e9360188750a47cbad1b3c1768e4
[ "MIT" ]
null
null
null
simplenn/init.py
yadizhou/SimpleNN
9abe523ea9f8e9360188750a47cbad1b3c1768e4
[ "MIT" ]
null
null
null
simplenn/init.py
yadizhou/SimpleNN
9abe523ea9f8e9360188750a47cbad1b3c1768e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import math import numpy as np from .utils import PrepareModule # ============================================================================== def Uniform(shape, a=0.0, b=1.0): return np.random.uniform(low=a, high=b, size=shape) def Normal(shape, mean=0.0, std=1.0): return np.rand...
24.053571
80
0.548627
165
1,347
4.436364
0.333333
0.010929
0.035519
0.027322
0.18306
0
0
0
0
0
0
0.015726
0.197476
1,347
55
81
24.490909
0.661425
0.132888
0
0
0
0
0.055842
0
0
0
0
0
0
1
0.205882
false
0
0.088235
0.117647
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
68420f62cd9c6152f9c178a072bcf96394431b7d
233
py
Python
tests/test_kuaishou.py
geekpayment/you-get
5b21d714eda47d5fe93dc3c17d2809fc49e31d66
[ "MIT" ]
null
null
null
tests/test_kuaishou.py
geekpayment/you-get
5b21d714eda47d5fe93dc3c17d2809fc49e31d66
[ "MIT" ]
null
null
null
tests/test_kuaishou.py
geekpayment/you-get
5b21d714eda47d5fe93dc3c17d2809fc49e31d66
[ "MIT" ]
null
null
null
import unittest from you_get.common import any_download class KuaishouTest(unittest.TestCase): def test_download(self): any_download('https://v.kuaishouapp.com/s/BO1I9zjn', merge=True, output_dir='.', info_only=False)
25.888889
105
0.755365
32
233
5.3125
0.84375
0.129412
0
0
0
0
0
0
0
0
0
0.009804
0.124464
233
8
106
29.125
0.823529
0
0
0
0
0
0.158798
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
684b855f9eea75624441ad3894e5166991377c2c
161
py
Python
gym-random_rooms/gym_random_rooms/__init__.py
nkami/rl_grammar_constrained
fb88253e308ff0b1a59406c63d93e42ff500ddc0
[ "MIT" ]
3
2019-12-14T16:35:57.000Z
2019-12-15T07:51:54.000Z
gym-random_rooms/gym_random_rooms/__init__.py
nkami/rl_grammar_constrained
fb88253e308ff0b1a59406c63d93e42ff500ddc0
[ "MIT" ]
null
null
null
gym-random_rooms/gym_random_rooms/__init__.py
nkami/rl_grammar_constrained
fb88253e308ff0b1a59406c63d93e42ff500ddc0
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='random_rooms-v0', entry_point='gym_random_rooms.envs:RandomRoomsEnv', reward_threshold=1, )
23
55
0.763975
21
161
5.619048
0.761905
0.186441
0
0
0
0
0
0
0
0
0
0.014286
0.130435
161
7
56
23
0.828571
0
0
0
0
0
0.314815
0.222222
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
684ed855d5850cad9d06f61243d7bcfdf1cf0d60
590
py
Python
Taller Estructuras de Control Secuenciales/Contador_2.py
JRobayo99/Talleres-de-algotimos
684ad3a4a21ada2f8347a6bae6eaa845d5abb2dc
[ "MIT" ]
null
null
null
Taller Estructuras de Control Secuenciales/Contador_2.py
JRobayo99/Talleres-de-algotimos
684ad3a4a21ada2f8347a6bae6eaa845d5abb2dc
[ "MIT" ]
null
null
null
Taller Estructuras de Control Secuenciales/Contador_2.py
JRobayo99/Talleres-de-algotimos
684ad3a4a21ada2f8347a6bae6eaa845d5abb2dc
[ "MIT" ]
null
null
null
n=int(input()) c=0 suma=0 while True: if(c==n): break c=c+1 led=input("") for i in led: if(i=="1"): sumatoria= suma+=2 elif(i=="2"): suma= suma+=5 elif(i=="3"): suma=suma+=5 elif(i=="4"): suma=suma+=4 elif(i=...
17.878788
30
0.350847
82
590
2.52439
0.304878
0.217391
0.130435
0.188406
0.338164
0
0
0
0
0
0
0.070122
0.444068
590
32
31
18.4375
0.560976
0
0
0.206897
0
0
0.016949
0
0
0
0
0
0
0
null
null
0
0
null
null
0
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
1
0
0
0
0
0
0
0
0
3
685162c5561f81764b4a1c53526c713cb84c8a82
486
py
Python
uptimetext.py
HerrEurobeat/bumblebee-status-scripts
41b1374e8983ea0d16947fe3c6e3df6ea1821234
[ "MIT" ]
1
2021-08-14T15:48:19.000Z
2021-08-14T15:48:19.000Z
uptimetext.py
HerrEurobeat/bumblebee-status-scripts
41b1374e8983ea0d16947fe3c6e3df6ea1821234
[ "MIT" ]
null
null
null
uptimetext.py
HerrEurobeat/bumblebee-status-scripts
41b1374e8983ea0d16947fe3c6e3df6ea1821234
[ "MIT" ]
null
null
null
# Author: 3urobeat (https://github.com/HerrEurobeat) # Description: Very simple uptime script that gets the output from 'uptime -p' for bumblebee-status. import os import core.module import core.widget class Module(core.module.Module): def __init__(self, config, theme): super().__init__(config, theme, co...
30.375
100
0.693416
66
486
4.984848
0.651515
0.042553
0
0
0
0
0
0
0
0
0
0.004951
0.168724
486
15
101
32.4
0.804455
0.306584
0
0
0
0
0.042042
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
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
1
0
1
0
0
3
68872a36a190839789b1f048088e31f87f5a4de4
224
py
Python
test/conftest.py
MayrockAndy/SchafkopfAnalyser
d8d5e27f6668444083acbe1c6dc10e3dbc951ee4
[ "MIT" ]
1
2022-01-19T23:49:41.000Z
2022-01-19T23:49:41.000Z
test/conftest.py
MayrockAndy/SchafkopfAnalyser
d8d5e27f6668444083acbe1c6dc10e3dbc951ee4
[ "MIT" ]
null
null
null
test/conftest.py
MayrockAndy/SchafkopfAnalyser
d8d5e27f6668444083acbe1c6dc10e3dbc951ee4
[ "MIT" ]
null
null
null
import pytest from .flask_utils import flask_test_client @pytest.fixture def client(): """Create flask test client with no dependency injection override""" with flask_test_client() as client: yield client
20.363636
72
0.741071
30
224
5.366667
0.566667
0.167702
0.279503
0
0
0
0
0
0
0
0
0
0.191964
224
10
73
22.4
0.889503
0.276786
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
6895c89da0a4c9a5d015ce6c5dcc51894d47994c
2,827
py
Python
rustplus/api/structures/rust_team_info.py
clearsh0t/rustplus
b4489b96e65bb8862d30fb92eb7f15e690245a11
[ "MIT" ]
null
null
null
rustplus/api/structures/rust_team_info.py
clearsh0t/rustplus
b4489b96e65bb8862d30fb92eb7f15e690245a11
[ "MIT" ]
null
null
null
rustplus/api/structures/rust_team_info.py
clearsh0t/rustplus
b4489b96e65bb8862d30fb92eb7f15e690245a11
[ "MIT" ]
null
null
null
from typing import List class RustTeamMember: def __init__(self, data) -> None: self._steam_id: int = data.steamId self._name: str = data.name self._x: float = data.x self._y: float = data.y self._is_online: bool = data.isOnline self._spawn_time: int = data.spawnTim...
25.93578
130
0.602759
351
2,827
4.51567
0.136752
0.104101
0.041009
0.053628
0.374763
0.287066
0.213249
0.1653
0.118612
0.118612
0
0
0.283339
2,827
108
131
26.175926
0.78233
0
0
0.392857
0
0
0.07676
0.028299
0
0
0
0
0
1
0.25
false
0
0.011905
0.214286
0.511905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
68aa98bf5fda591a77f254fae0c4293e488489e9
224
py
Python
mlrose_hiive/generators/queens_generator.py
sridatta/mlrose
d9fe33df157bd801a33b13a803d737c4f8e48ebb
[ "BSD-3-Clause" ]
63
2019-09-24T14:09:51.000Z
2022-03-09T02:36:25.000Z
mlrose_hiive/generators/queens_generator.py
kunla/mlrose
306c96b156182a847f5c9e6ffb62eb805d266fef
[ "BSD-3-Clause" ]
6
2019-10-04T01:04:21.000Z
2021-08-31T19:06:13.000Z
mlrose_hiive/generators/queens_generator.py
kunla/mlrose
306c96b156182a847f5c9e6ffb62eb805d266fef
[ "BSD-3-Clause" ]
104
2019-09-23T22:44:43.000Z
2022-03-13T18:50:53.000Z
import numpy as np from mlrose_hiive import QueensOpt class QueensGenerator: @staticmethod def generate(seed, size=20): np.random.seed(seed) problem = QueensOpt(length=size) return problem
18.666667
40
0.6875
27
224
5.666667
0.740741
0
0
0
0
0
0
0
0
0
0
0.011834
0.245536
224
11
41
20.363636
0.893491
0
0
0
1
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
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
1
0
0
3
68ac072928b2d74d0b20fb064f1b05b2680ac3f8
76
py
Python
apollo/core/login/__init__.py
Den4200/apollo
a657d151fa1b9b3e79c9f05e020de54493fe33b0
[ "MIT" ]
1
2020-03-04T00:37:13.000Z
2020-03-04T00:37:13.000Z
apollo/core/login/__init__.py
Den4200/apollo
a657d151fa1b9b3e79c9f05e020de54493fe33b0
[ "MIT" ]
null
null
null
apollo/core/login/__init__.py
Den4200/apollo
a657d151fa1b9b3e79c9f05e020de54493fe33b0
[ "MIT" ]
null
null
null
from apollo.core.login.login import LoginScreen __all__ = ('LoginScreen',)
19
47
0.776316
9
76
6.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.105263
76
3
48
25.333333
0.808824
0
0
0
0
0
0.144737
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
d7a441a83eaf47ef03ff0156bf7727713434dfa8
317
py
Python
sctokenizer/assets/java_operators.py
ngocjr7/sctokenizer
05564a6b58e21ae0469aa2ab19919c4c7937a37f
[ "MIT" ]
5
2020-09-07T16:21:26.000Z
2020-10-07T13:18:12.000Z
sctokenizer/assets/java_operators.py
ngocjr7/sctokenizer
05564a6b58e21ae0469aa2ab19919c4c7937a37f
[ "MIT" ]
2
2021-07-21T05:11:05.000Z
2021-07-23T06:29:40.000Z
sctokenizer/assets/java_operators.py
ngocjr7/sctokenizer
05564a6b58e21ae0469aa2ab19919c4c7937a37f
[ "MIT" ]
null
null
null
java_operator_set = { '::', '++', '--', '~', '!', '+', '-', 'instanceof', \ '&', '*', '/', '%', '<<', '>>', '<', '>', '<=', '>=', \ '==', '!=', '^', '|', '&&', '||', '=', '*=', '/=', \ '%=', '+=', '-=', '>>=', '<<=', '&=', '^=', '|=', \ '?:', '>>>', '>>>=', '?', ':' } # Becareful with ?: operator
45.285714
59
0.15142
7
317
6.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.227129
317
7
60
45.285714
0.187755
0.082019
0
0
0
0
0.268966
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
d7a9446461e30cfc2cb85fa14e12cb24d5e29bfb
1,506
py
Python
src/main/SCOPUS/pybliometrics/scopus/exception.py
alvinajacquelyn/COMP0016
679712adbb976a39333ea9ff832c897be0674059
[ "MIT" ]
1
2020-11-20T17:00:08.000Z
2020-11-20T17:00:08.000Z
src/main/SCOPUS/pybliometrics/scopus/exception.py
alvinajacquelyn/COMP0016
679712adbb976a39333ea9ff832c897be0674059
[ "MIT" ]
null
null
null
src/main/SCOPUS/pybliometrics/scopus/exception.py
alvinajacquelyn/COMP0016
679712adbb976a39333ea9ff832c897be0674059
[ "MIT" ]
2
2021-06-12T16:54:55.000Z
2021-09-24T14:28:45.000Z
"""Base exceptions and classes for pybliometrics.scopus.""" # Base classes class ScopusException(Exception): """Base class for exceptions in scopus.""" class ScopusError(ScopusException): """Exception for a serious error in scopus.""" # Query errors class ScopusQueryError(ScopusException): """Exceptio...
25.965517
82
0.720452
187
1,506
5.802139
0.342246
0.174194
0.190783
0.199078
0.333641
0.298618
0.298618
0
0
0
0
0.043373
0.173307
1,506
57
83
26.421053
0.828112
0.549801
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
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
1
0
0
0
0
0
0
3
d7cd173c8e923ac35b8b1d127c520b190c933409
1,377
py
Python
AI/MullerBook/ch8/own_estimator_sklearn_api.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
AI/MullerBook/ch8/own_estimator_sklearn_api.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
3
2020-03-24T16:26:35.000Z
2020-04-15T19:40:41.000Z
AI/MullerBook/ch8/own_estimator_sklearn_api.py
honchardev/Fun
ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc
[ "MIT" ]
null
null
null
# code src: copy-paste from Muller's book. # usage: custom data preprocessing (if preprocessing is data dependent) # simplest transformer: 1) inherit from BaseEstimator & TransformerMixin @ 2)__init__(), fit(), predict() from sklearn.base import BaseEstimator, TransformerMixin class MyTransformer(BaseEstimator, Tr...
32.023256
150
0.665214
173
1,377
5.179191
0.520231
0.097098
0.022321
0
0
0
0
0
0
0
0
0.004845
0.250545
1,377
42
151
32.785714
0.863372
0.591866
0
0
0
0
0.098901
0
0
0
0
0.02381
0
1
0.25
false
0
0.083333
0
0.583333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
d7d775471f154f9a432f88aef81f3e701b5acabe
92
py
Python
chapter02/personal_message.py
rafalmaziejuk/PythonCrashCourseSolutions
733a393c8ee0eeb4212ee7c1cd629c62eacb7cc4
[ "MIT" ]
null
null
null
chapter02/personal_message.py
rafalmaziejuk/PythonCrashCourseSolutions
733a393c8ee0eeb4212ee7c1cd629c62eacb7cc4
[ "MIT" ]
null
null
null
chapter02/personal_message.py
rafalmaziejuk/PythonCrashCourseSolutions
733a393c8ee0eeb4212ee7c1cd629c62eacb7cc4
[ "MIT" ]
null
null
null
message = "Eric" print("Hello " + message + ", would you like to learn some Python today?")
30.666667
74
0.673913
13
92
4.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.184783
92
3
74
30.666667
0.826667
0
0
0
0
0
0.580645
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
3
d7d8d89654bdacd8e6e80fb30d747a60f4dbb2f3
367
py
Python
setup.py
sblanky/psd_uptake_correlator
263de773bf9ea703102549d68b0319930ca5d952
[ "MIT" ]
null
null
null
setup.py
sblanky/psd_uptake_correlator
263de773bf9ea703102549d68b0319930ca5d952
[ "MIT" ]
1
2022-01-31T16:52:13.000Z
2022-02-01T09:38:24.000Z
setup.py
sblanky/pyPUC
263de773bf9ea703102549d68b0319930ca5d952
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pyPUC', version='0.1.0', url='https://github.com/sblanky/pyPUC', author='L. Scott Blankenship', author_email='pcxtsbl@nottingham.ac.uk', license='MIT', packages=['pyPUC'], classifiers=[ 'Programming Language :: Python :: 3', 'Pr...
21.588235
48
0.60218
41
367
5.365854
0.780488
0.172727
0.227273
0.236364
0
0
0
0
0
0
0
0.021127
0.226158
367
16
49
22.9375
0.753521
0
0
0
0
0
0.452316
0.065395
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
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
1
0
0
0
0
0
0
3
cc1b4573c8b0869d8f42fcfc92d4e3dc09f36836
212
py
Python
django_101/django_101/cities/urls.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
1
2021-07-20T12:16:34.000Z
2021-07-20T12:16:34.000Z
django_101/django_101/cities/urls.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
django_101/django_101/cities/urls.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
from django.urls import path from django_101.cities.views import index, list_phones, show_forms_demo urlpatterns = [ path("", index), path('phones/', list_phones), path('forms/', show_forms_demo), ]
23.555556
71
0.712264
29
212
4.965517
0.517241
0.138889
0.180556
0
0
0
0
0
0
0
0
0.01676
0.15566
212
9
72
23.555556
0.78771
0
0
0
0
0
0.061033
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
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
3
0bca61af145b37bdbb3cfeb28de589b967f6cf1a
689
py
Python
test/test_interface.py
lwa19/dsc
20b7edf638df71ca4ba3ba0857167bd673b78c21
[ "MIT" ]
6
2016-03-11T20:29:56.000Z
2017-01-16T21:06:39.000Z
test/test_interface.py
lwa19/dsc
20b7edf638df71ca4ba3ba0857167bd673b78c21
[ "MIT" ]
126
2018-03-14T14:36:15.000Z
2022-03-28T18:59:43.000Z
test/test_interface.py
lwa19/dsc
20b7edf638df71ca4ba3ba0857167bd673b78c21
[ "MIT" ]
8
2018-12-07T15:42:48.000Z
2021-11-08T01:16:58.000Z
#!/usr/bin/env python3 # # Copyright (c) Gao Wang, Stephens Lab at The Univeristy of Chicago # Distributed under the terms of the MIT License. import subprocess import unittest def run_cmd(cmd): return subprocess.call(cmd, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, shell=True...
29.956522
73
0.70537
83
689
5.710843
0.650602
0.037975
0.037975
0
0
0
0
0
0
0
0
0.005367
0.188679
689
23
74
29.956522
0.842576
0.351234
0
0
0
0
0.115385
0
0
0
0
0
0.083333
1
0.25
false
0.083333
0.166667
0.083333
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
0bcc139fa40bea79bb68fde1ac32f9a6faab12ab
3,357
py
Python
djangocms_page_meta/migrations/0011_auto_20190218_1010.py
Bernardvdv/djangocms-page-meta
e8c5e2180819341bd7f5afd7ec3ef1046c1a7712
[ "BSD-3-Clause" ]
null
null
null
djangocms_page_meta/migrations/0011_auto_20190218_1010.py
Bernardvdv/djangocms-page-meta
e8c5e2180819341bd7f5afd7ec3ef1046c1a7712
[ "BSD-3-Clause" ]
null
null
null
djangocms_page_meta/migrations/0011_auto_20190218_1010.py
Bernardvdv/djangocms-page-meta
e8c5e2180819341bd7f5afd7ec3ef1046c1a7712
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-18 10:10 import django.db.models.deletion import filer.fields.file from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("djangocms_page_meta", "0010_auto_20180108_2316"), ] opera...
33.237624
122
0.529044
303
3,357
5.689769
0.260726
0.046404
0.073086
0.114849
0.767981
0.736079
0.606729
0.560325
0.536543
0.493619
0
0.014748
0.373846
3,357
100
123
33.57
0.805423
0.013405
0
0.776596
1
0
0.163444
0.056193
0
0
0
0
0
1
0
false
0
0.042553
0
0.074468
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0bf1e4b46b80c21fb9b1ebffdc0f3bd20209822a
337
py
Python
asgard/api/resources/jobs.py
rockerbacon/asgard-api
1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a
[ "MIT" ]
3
2020-01-10T02:16:09.000Z
2020-02-19T18:42:37.000Z
asgard/api/resources/jobs.py
b2wdigital/asgard-api
5444d81be33bf4af3c9cf5a2185c16ff10357034
[ "MIT" ]
13
2020-01-15T18:22:35.000Z
2021-03-31T19:21:54.000Z
asgard/api/resources/jobs.py
rockerbacon/asgard-api
1c1eb19225ace4bbecb06b65b1b9c4ab131eb24a
[ "MIT" ]
6
2020-03-07T09:49:19.000Z
2021-07-25T03:14:10.000Z
from typing import Optional, List from pydantic import BaseModel from asgard.models.job import ScheduledJob class ScheduledJobResource(BaseModel): job: Optional[ScheduledJob] class ScheduledJobsListResource(BaseModel): jobs: Optional[List[ScheduledJob]] class CreateScheduledJobResource(BaseModel): j...
18.722222
44
0.804154
33
337
8.212121
0.484848
0.188192
0
0
0
0
0
0
0
0
0
0
0.133531
337
17
45
19.823529
0.928082
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
0408af04da1c531ad2be8cefb4df73605b83f8d5
291
py
Python
BOJ/06000~06999/6000~6099/6005.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/06000~06999/6000~6099/6005.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/06000~06999/6000~6099/6005.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
n = int(input()) L = [] for i in range(n): k = list(map(int,input().split())) k = k + [0]*(n-len(k)) L.append(k) D = [[0]*n for i in range(n)] D[0] = L[0] for i in range(1,n): for j in range(n): D[i][j] = L[i][j] + max(D[i-1][j],D[i-1][max(0,j-1)]) print(max(D[n-1]))
24.25
61
0.467354
70
291
1.942857
0.285714
0.205882
0.132353
0.242647
0.176471
0
0
0
0
0
0
0.044444
0.226804
291
12
62
24.25
0.56
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.083333
0
0
1
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
3