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
b5d9dc78f107664fe1c40409eb448f1dcfcce77f
3,541
py
Python
examples/dumb_slave_2/master.py
ohpauleez/aupy
27d504617100fb49ec12e70f5436d27bebe164b0
[ "MIT" ]
1
2016-09-24T03:07:43.000Z
2016-09-24T03:07:43.000Z
examples/dumb_slave_2/master.py
ohpauleez/aupy
27d504617100fb49ec12e70f5436d27bebe164b0
[ "MIT" ]
null
null
null
examples/dumb_slave_2/master.py
ohpauleez/aupy
27d504617100fb49ec12e70f5436d27bebe164b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import with_statement import time import sys from SocketServer import ThreadingMixIn, TCPServer, StreamRequestHandler #import pydysh from aupy2 import Utility class Master(object): def __init__(self): self.master_server = None super(Master, self).__init__() def startMonit...
31.336283
107
0.71477
510
3,541
4.792157
0.305882
0.047872
0.025777
0.00982
0.112111
0.076923
0.033552
0.033552
0.033552
0.033552
0
0.029252
0.169726
3,541
112
108
31.616071
0.802041
0.091217
0
0.155556
0
0
0.161421
0
0
0
0
0.008929
0
0
null
null
0.022222
0.066667
null
null
0.177778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b5e36bfb974d2a93243e7fde1fcd927d53df627f
1,146
py
Python
Ene-Jun-2021/navoa-acevedo-david/Primer_Parcial/Ejercicio_3/facade.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/navoa-acevedo-david/Primer_Parcial/Ejercicio_3/facade.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/navoa-acevedo-david/Primer_Parcial/Ejercicio_3/facade.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
#Clases del ciclo de lavado class lavando: #Etapa 1. Lavado def lavado(self): print("Lavando...") class enjuagando: #Etapa 2. Enjuagado def enjuagado(self): print("Enjuagando...") class centrifugando: #Etapa 3. Centrifugado def centrifugado(self): print("Centrifugando....
23.387755
44
0.642234
113
1,146
6.442478
0.247788
0.054945
0.131868
0.111264
0.270604
0.164835
0.164835
0.164835
0
0
0
0.004651
0.249564
1,146
48
45
23.875
0.84186
0.10733
0
0.3125
0
0
0.049213
0
0
0
0
0
0
1
0.28125
false
0
0
0
0.4375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b5ed52539fc2619f28fc79685dc90b7162b99427
511
py
Python
setup.py
nuster1128/nusterTool
2b9922cdffa87a6d2ef92f0e826d67a883b9b2da
[ "MIT" ]
null
null
null
setup.py
nuster1128/nusterTool
2b9922cdffa87a6d2ef92f0e826d67a883b9b2da
[ "MIT" ]
null
null
null
setup.py
nuster1128/nusterTool
2b9922cdffa87a6d2ef92f0e826d67a883b9b2da
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = "nusterTool", version = "0.0.1", keywords = ("pip", "toolkit"), description = "This is a toolkit for nuster.", long_description = "This is a toolkit for nuster.", license = "MIT Licence", url = "https://github.com/nuster1128/nusterT...
26.894737
57
0.643836
59
511
5.457627
0.711864
0.074534
0.10559
0.111801
0.21118
0.21118
0.21118
0
0
0
0
0.025063
0.219178
511
19
58
26.894737
0.781955
0
0
0
0
0
0.324219
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b5edb65677dd0a1f1d72ddbc40d58cfba6ba6c65
2,600
py
Python
output/models/ms_data/additional/test93490_16_xsd/test93490_16.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/additional/test93490_16_xsd/test93490_16.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/additional/test93490_16_xsd/test93490_16.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional __NAMESPACE__ = "http://schemas.microsoft.com/office/excel/2003/xml" class MapInfoTypeHideInactiveListBorder(Enum): TRUE = "true" FALSE = "false" @dataclass class SchemaType: any_element: List[object] = fie...
27.083333
78
0.567692
228
2,600
6.399123
0.254386
0.080192
0.123372
0.17889
0.583962
0.541467
0.541467
0.385195
0.385195
0.316655
0
0.020219
0.296154
2,600
95
79
27.368421
0.777049
0
0
0.428571
0
0
0.305
0.018462
0
0
0
0
0
1
0
false
0
0.035714
0
0.25
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5f40cb11080f80ebd435a6cc09ccef46e836580
446
py
Python
GLaDOS/test/test_utils.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
2
2021-11-29T13:51:27.000Z
2021-12-12T14:59:42.000Z
GLaDOS/test/test_utils.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
GLaDOS/test/test_utils.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
from queueapp.utils import run_if_active def test_run_if_active(): class A: is_active = False count = 0 @run_if_active def run(self): self.count += 1 a = A() b = A() b.is_active = True assert a.count == 0 assert b.count == 0 a.run() b.run...
14.387097
40
0.511211
68
446
3.220588
0.308824
0.136986
0.150685
0.178082
0.415525
0.415525
0.415525
0.30137
0.30137
0.30137
0
0.028571
0.372197
446
30
41
14.866667
0.753571
0
0
0.333333
0
0
0
0
0
0
0
0
0.285714
1
0.095238
false
0
0.047619
0
0.285714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b5f4c71f3a7a6c6b6960536fc037358b4c2b7edf
17,535
py
Python
esgfpid/rabbit/synchronous/synchronous.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
null
null
null
esgfpid/rabbit/synchronous/synchronous.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
7
2017-02-22T15:24:54.000Z
2021-05-06T22:43:15.000Z
esgfpid/rabbit/synchronous/synchronous.py
merretbuurman/esgf-pid
df511387904ad215cd84ef29ef0c902ce6cec826
[ "Apache-2.0" ]
5
2016-08-23T08:52:00.000Z
2020-03-25T21:28:31.000Z
import logging import datetime import json import pika import time import esgfpid.utils import esgfpid.defaults as defaults from esgfpid.utils import loginfo, logdebug, logtrace, logerror, logwarn from esgfpid.exceptions import MessageNotDeliveredException from esgfpid.utils import get_now_utc_as_formatted_string as ge...
41.552133
225
0.640947
2,010
17,535
5.30199
0.180597
0.026274
0.011823
0.013137
0.273998
0.21141
0.173126
0.162428
0.136248
0.128179
0
0.001902
0.280354
17,535
422
226
41.552133
0.842618
0.106929
0
0.204651
0
0.004651
0.13091
0.002312
0
0
0
0.004739
0
1
0.074419
false
0.055814
0.055814
0.013953
0.204651
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b5f75d143d7a7c7f667216c9d1db75eecd3555f9
1,987
py
Python
drones/models.py
Zoki92/Drone
7c637220d1c085ec804d72f148b1c98b088799df
[ "MIT" ]
null
null
null
drones/models.py
Zoki92/Drone
7c637220d1c085ec804d72f148b1c98b088799df
[ "MIT" ]
null
null
null
drones/models.py
Zoki92/Drone
7c637220d1c085ec804d72f148b1c98b088799df
[ "MIT" ]
null
null
null
from django.db import models class DroneCategory(models.Model): name = models.CharField(max_length=250, unique=True) class Meta: ordering = ('name',) def __str__(self): return self.name class Drone(models.Model): owner = models.ForeignKey('auth.User', ...
29.220588
64
0.561147
188
1,987
5.707447
0.345745
0.041007
0.067102
0.089469
0.406337
0.380242
0.380242
0.309413
0.236719
0.236719
0
0.007651
0.342224
1,987
67
65
29.656716
0.813313
0
0
0.442308
0
0
0.048817
0
0
0
0
0
0
1
0.057692
false
0
0.019231
0.057692
0.634615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b5f81d5543d1db507613e6432a0afffd465f79f5
1,631
py
Python
tests/test_files.py
ericfrederich/graphviz
6c53fe9b85b5217888ae44591f72fc919b4c0ecd
[ "MIT" ]
null
null
null
tests/test_files.py
ericfrederich/graphviz
6c53fe9b85b5217888ae44591f72fc919b4c0ecd
[ "MIT" ]
null
null
null
tests/test_files.py
ericfrederich/graphviz
6c53fe9b85b5217888ae44591f72fc919b4c0ecd
[ "MIT" ]
null
null
null
# test_files.py import unittest2 as unittest from graphviz.files import File, Source class TestBase(unittest.TestCase): def setUp(self): self.file = File() def test_format(self): with self.assertRaisesRegexp(ValueError, 'format'): self.file.format = 'spam' def test_engine(...
25.888889
72
0.630901
184
1,631
5.548913
0.288043
0.062684
0.058766
0.146915
0.401567
0.272282
0.211557
0.127326
0.127326
0.127326
0
0.002425
0.24157
1,631
62
73
26.306452
0.822959
0.007971
0
0.195122
0
0
0.100866
0
0
0
0
0
0.243902
1
0.243902
false
0
0.097561
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bd02e68c85dc10cdb778cb6ea36d9fb7ab1bcc90
1,928
py
Python
odesolvers/_thetamethod.py
francescoseccamonte/odesolvers
40debe289b80399b62164793cc9b29d3abce9280
[ "MIT" ]
null
null
null
odesolvers/_thetamethod.py
francescoseccamonte/odesolvers
40debe289b80399b62164793cc9b29d3abce9280
[ "MIT" ]
1
2020-02-01T23:40:12.000Z
2020-02-01T23:40:12.000Z
odesolvers/_thetamethod.py
francescoseccamonte/odesolvers
40debe289b80399b62164793cc9b29d3abce9280
[ "MIT" ]
null
null
null
# # Author : Francesco Seccamonte # Copyright (c) 2020 Francesco Seccamonte. All rights reserved. # Licensed under the MIT License. See LICENSE file in the project root for full license information. # # # Internal implementation of the Theta method (including Backward Euler) for ODEs numerical solution. # import ...
31.606557
102
0.686203
311
1,928
4.247588
0.411576
0.027252
0.033308
0.027252
0.056018
0.056018
0.056018
0.056018
0.056018
0.056018
0
0.007042
0.189834
1,928
60
103
32.133333
0.838668
0.813278
0
0
0
0
0.076749
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd141114ae8ffe1d103bea1a63fb5805283b47e6
221
py
Python
ex010 conversor de moedas.py
xing-wang-kai/Exercicios_curso_video_Gustavo_guanabara
c28fb114dc71ef7e4b1684d78a5140fa8dc982a3
[ "MIT" ]
null
null
null
ex010 conversor de moedas.py
xing-wang-kai/Exercicios_curso_video_Gustavo_guanabara
c28fb114dc71ef7e4b1684d78a5140fa8dc982a3
[ "MIT" ]
null
null
null
ex010 conversor de moedas.py
xing-wang-kai/Exercicios_curso_video_Gustavo_guanabara
c28fb114dc71ef7e4b1684d78a5140fa8dc982a3
[ "MIT" ]
null
null
null
# considerando o dollar 3.27$ carteira = float(input("quanto você tem na sua carteira: ")) dollar = float(3.27) total = float(carteira / dollar) print(f"Com total de R$ {carteira:.2f} você pode comprar US$ {total:.2f}")
31.571429
74
0.701357
36
221
4.305556
0.638889
0.03871
0
0
0
0
0
0
0
0
0
0.042553
0.149321
221
7
74
31.571429
0.781915
0.122172
0
0
0
0
0.502591
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd16a1ca0b4fba757261c3b89f8f5019131c31aa
2,550
py
Python
exs/mundo_3/python/089.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
45
2021-01-02T18:36:01.000Z
2022-03-26T19:46:47.000Z
exs/mundo_3/python/089.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
24
2020-12-31T17:23:16.000Z
2021-03-11T19:44:36.000Z
exs/mundo_3/python/089.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
28
2020-12-30T15:57:16.000Z
2022-03-26T19:46:49.000Z
""" Desafio 089 Problema: Crie um programa que leia nome e duas notas de vários alunos e guarde tudo em uma lista composta. No final, mostre um boletim contendo a média de cada um e permita que o usuário possa mostrar as notas de cada aluno individualmente. Resolução do problema: """ his...
36.956522
112
0.570588
323
2,550
4.479876
0.368421
0.038701
0.038701
0.041465
0.13407
0.118867
0.048376
0
0
0
0
0.038713
0.22
2,550
68
113
37.5
0.688788
0.23098
0
0.261905
0
0.02381
0.318439
0.116076
0
0
0
0
0
1
0
false
0
0
0
0
0.404762
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
bd1afd246d2de74e16e8f73d575e1016ed3dbc62
419
py
Python
backend/rumergy_backend/rumergy/migrations/0003_alter_meter_comments.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-08T00:28:37.000Z
2021-11-08T00:28:37.000Z
backend/rumergy_backend/rumergy/migrations/0003_alter_meter_comments.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-11-02T02:17:37.000Z
2021-11-02T02:17:37.000Z
backend/rumergy_backend/rumergy/migrations/0003_alter_meter_comments.py
Firefly-Tech/rumergy-webapp
859054bd9ee710a11b393027bb9cb1bad55d0f00
[ "MIT" ]
1
2021-10-18T22:27:04.000Z
2021-10-18T22:27:04.000Z
# Generated by Django 3.2.9 on 2021-11-07 16:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rumergy', '0002_auto_20211107_1520'), ] operations = [ migrations.AlterField( model_name='meter', name='comments', ...
22.052632
82
0.613365
46
419
5.478261
0.847826
0
0
0
0
0
0
0
0
0
0
0.111475
0.272076
419
18
83
23.277778
0.714754
0.107399
0
0
1
0
0.166667
0.061828
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd1d5dd335462969858084434958b34abf188070
2,347
py
Python
sellerhub/__init__.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
1
2021-03-13T19:36:49.000Z
2021-03-13T19:36:49.000Z
sellerhub/__init__.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
null
null
null
sellerhub/__init__.py
clair513/SellerHub
1bbc173c24c47e9ce1ec43bf627f281267c75fe7
[ "MIT" ]
null
null
null
# Importing external package dependency: import os import logging from datetime import datetime from flask import Flask, render_template, request, url_for, redirect, flash, session, abort, jsonify from flask_migrate import Migrate from flask_login import LoginManager, AnonymousUserMixin from flask_mail import Ma...
34.514706
101
0.717086
283
2,347
5.777385
0.441696
0.066055
0.079511
0.027523
0.023242
0
0
0
0
0
0
0
0.19003
2,347
67
102
35.029851
0.860074
0.189604
0
0
0
0
0.103014
0
0
0
0
0
0
1
0.022222
false
0.044444
0.311111
0
0.355556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bd2074c886f7dc3f0eb599eb5b8ca2dff73f95a9
662
py
Python
eventapp/migrations/0002_auto_20210204_0123.py
Steve99-coder/Events
a31a7fd8683bb8c8af1aa7383c96dc8661bfd7dd
[ "MIT" ]
null
null
null
eventapp/migrations/0002_auto_20210204_0123.py
Steve99-coder/Events
a31a7fd8683bb8c8af1aa7383c96dc8661bfd7dd
[ "MIT" ]
null
null
null
eventapp/migrations/0002_auto_20210204_0123.py
Steve99-coder/Events
a31a7fd8683bb8c8af1aa7383c96dc8661bfd7dd
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-02-03 22:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('eventapp', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='event', name='profile', ), ...
23.642857
63
0.558912
64
662
5.6875
0.625
0.074176
0.115385
0.148352
0.225275
0.225275
0.225275
0.225275
0
0
0
0.055804
0.323263
662
27
64
24.518519
0.756696
0.067976
0
0.380952
1
0
0.100813
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd213fa8d6532a79f8bb2007702dd5d68db981c1
1,519
py
Python
daraz-crawler/daraz/pipelines/format_pipeline.py
dipu-bd/product-crawler
ab852f9140955dfaf341d354318872e70feb708a
[ "MIT" ]
2
2017-10-27T23:55:40.000Z
2021-09-08T15:49:20.000Z
daraz-crawler/daraz/pipelines/format_pipeline.py
dipu-bd/product-crawler
ab852f9140955dfaf341d354318872e70feb708a
[ "MIT" ]
null
null
null
daraz-crawler/daraz/pipelines/format_pipeline.py
dipu-bd/product-crawler
ab852f9140955dfaf341d354318872e70feb708a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class FormatPipeline(object): """ All crawled items are passed through this pipeline """ def process_item(self...
29.211538
88
0.583278
207
1,519
4.207729
0.400966
0.034443
0.030999
0.022962
0.097589
0.055109
0
0
0
0
0
0.006029
0.235681
1,519
51
89
29.784314
0.744186
0.231731
0
0
0
0
0.189748
0
0
0
0
0
0
1
0.2
false
0
0
0.12
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
bd217d049748f003be4dc0b1179b888241259cd3
1,859
py
Python
helpscout/tests/test_auth_proxy.py
physera/python-helpscout
84bf669417d72ca19641a02c9a660e1ae4271de4
[ "MIT" ]
6
2017-09-20T15:22:21.000Z
2021-12-15T11:24:17.000Z
helpscout/tests/test_auth_proxy.py
physera/python-helpscout
84bf669417d72ca19641a02c9a660e1ae4271de4
[ "MIT" ]
39
2017-09-15T21:22:31.000Z
2019-03-15T05:06:00.000Z
helpscout/tests/test_auth_proxy.py
physera/python-helpscout
84bf669417d72ca19641a02c9a660e1ae4271de4
[ "MIT" ]
6
2018-03-15T09:40:46.000Z
2019-03-15T04:51:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017-TODAY LasLabs Inc. # License MIT (https://opensource.org/licenses/MIT). import unittest from .. import AuthProxy class EndTestException(Exception): def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs super(EndTestException, ...
29.046875
68
0.658956
220
1,859
5.386364
0.340909
0.04557
0.050633
0.043038
0.153587
0.081013
0.081013
0.081013
0.081013
0
0
0.003511
0.233997
1,859
63
69
29.507937
0.828652
0.182356
0
0.131579
0
0
0.024129
0
0
0
0
0
0.131579
1
0.236842
false
0
0.052632
0.026316
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bd26587075e7c4eef60f523cb0a1056e5bdbd27b
8,516
py
Python
enso/net/__init__.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
7
2015-09-19T20:57:32.000Z
2020-12-31T16:34:42.000Z
enso/net/__init__.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
21
2015-11-03T23:15:25.000Z
2018-10-11T21:57:45.000Z
enso/net/__init__.py
blackdaemon/enso-launcher-continued
346f82811e77caf73560619cdeb16afabfbf1fce
[ "BSD-3-Clause" ]
4
2015-09-15T17:18:00.000Z
2021-06-16T07:06:06.000Z
# Author : Pavel Vitis "blackdaemon" # Email : blackdaemon@seznam.cz # # Copyright (c) 2010, Pavel Vitis <blackdaemon@seznam.cz> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistri...
36.865801
153
0.573156
1,070
8,516
4.495327
0.308411
0.0079
0.008108
0.009979
0.351975
0.341996
0.28711
0.28711
0.28711
0.26237
0
0.027455
0.272898
8,516
230
154
37.026087
0.749354
0.246242
0
0.431655
0
0.028777
0.138085
0.054305
0
0
0
0
0
0
null
null
0
0.122302
null
null
0.028777
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bd28915d12448e20fa9317daa971677810412910
666
py
Python
lab/logger/util/pytorch.py
gear/lab
ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2
[ "MIT" ]
null
null
null
lab/logger/util/pytorch.py
gear/lab
ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2
[ "MIT" ]
null
null
null
lab/logger/util/pytorch.py
gear/lab
ad1c5838acbcc98abb5d5d93d5c7a6c2b74bdfa2
[ "MIT" ]
null
null
null
import torch from lab import logger from lab.logger.indicators import Histogram def add_model_indicators(model: torch.nn.Module, model_name: str = "model"): for name, param in model.named_parameters(): if param.requires_grad: logger.add_indicator(Histogram(f"{model_name}.{name}")) ...
35.052632
78
0.687688
91
666
4.857143
0.274725
0.122172
0.090498
0.126697
0.782805
0.764706
0.665158
0.665158
0.493213
0.493213
0
0
0.181682
666
18
79
37
0.811009
0
0
0.307692
0
0
0.144144
0.072072
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd297ea38ca8bce56fa85b71eb9447eba0981e61
1,177
py
Python
server/apps/ui/models/content.py
IvanDubrowin/simple-shop
7eb3b3a82863ee382692498812954a2f4530dafe
[ "MIT" ]
null
null
null
server/apps/ui/models/content.py
IvanDubrowin/simple-shop
7eb3b3a82863ee382692498812954a2f4530dafe
[ "MIT" ]
8
2021-03-30T13:03:15.000Z
2022-03-12T00:22:52.000Z
server/apps/ui/models/content.py
IvanDubrowin/simple-shop
7eb3b3a82863ee382692498812954a2f4530dafe
[ "MIT" ]
null
null
null
import os from textwrap import shorten from django.conf import settings from django.db import models from django.db.models.fields.files import ImageFieldFile from django.utils.html import mark_safe from core.utils import admin_display, hash_upload class Content(models.Model): """ Контент главной страницы са...
30.973684
96
0.701784
150
1,177
5.326667
0.46
0.068836
0.030038
0.057572
0.115144
0.115144
0.115144
0
0
0
0
0.012539
0.186916
1,177
37
97
31.810811
0.822362
0.048428
0
0.076923
0
0
0.104261
0
0
0
0
0
0
1
0.115385
false
0
0.269231
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bd2c0501e4061fbe3c3d3dd6f810496e48cac721
659
py
Python
tests/constant.py
avidito/swifind
2e3a0bb3f1a28f2bf4c654d43762c6fb1e1fe732
[ "MIT" ]
2
2021-04-03T10:26:22.000Z
2021-04-30T22:34:41.000Z
tests/constant.py
avidito/swifind
2e3a0bb3f1a28f2bf4c654d43762c6fb1e1fe732
[ "MIT" ]
1
2021-05-08T08:29:15.000Z
2021-05-09T04:11:58.000Z
tests/constant.py
avidito/swifind
2e3a0bb3f1a28f2bf4c654d43762c6fb1e1fe732
[ "MIT" ]
null
null
null
import os # MAIN PATH TEST_PATH = os.path.dirname(__file__) DUMMY_PATH = os.path.join(TEST_PATH, '_dummy') # SCRIPT PATH DUMMY_SWIPL = os.path.join(DUMMY_PATH, 'dummy.swipl') CATFISH_INITIATION = os.path.join(DUMMY_PATH, 'test_catfish_initiation') CATFISH_SWIM = os.path.join(DUMMY_PATH, 'test_catfish_swim') CATFISH_R...
36.611111
72
0.789074
102
659
4.705882
0.254902
0.1125
0.166667
0.21875
0.416667
0.377083
0.377083
0.133333
0
0
0
0
0.08346
659
17
73
38.764706
0.794702
0.054628
0
0
0
0
0.252019
0.071082
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd491de89acca53c88d29fbd9138cdc2cb25a24e
1,852
py
Python
shared/templates/create_mount_options.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
shared/templates/create_mount_options.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
shared/templates/create_mount_options.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
# # create_mount_options.py # generate template-based checks for partition mount rights import re from template_common import FilesGenerator, UnknownTargetError class MountOptionsGenerator(FilesGenerator): def generate(self, target, path_info): mount_point, mount_option = path_info point_...
36.313725
88
0.482721
151
1,852
5.596026
0.331126
0.156213
0.035503
0.071006
0.356213
0.256805
0.139645
0.139645
0.139645
0.139645
0
0.002742
0.409287
1,852
50
89
37.04
0.769653
0.047516
0
0.2
1
0
0.217045
0.127273
0
0
0
0
0
1
0.05
false
0
0.05
0.025
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bd4c18070525158d9fb9a870c76bfd1eaf512e7f
2,543
py
Python
Eyedec.py
SundarGopal/FacialRecognitionUsingGoldenRatio
4b6244fab33786fe39014e6ecb7b7c54005c59f5
[ "Unlicense" ]
1
2021-08-30T09:30:55.000Z
2021-08-30T09:30:55.000Z
Eyedec.py
SundarGopal/FacialRecognitionUsingGoldenRatio
4b6244fab33786fe39014e6ecb7b7c54005c59f5
[ "Unlicense" ]
null
null
null
Eyedec.py
SundarGopal/FacialRecognitionUsingGoldenRatio
4b6244fab33786fe39014e6ecb7b7c54005c59f5
[ "Unlicense" ]
null
null
null
import cv2 import math import numpy as np from scipy.spatial import distance as dist def midpoint(ptA, ptB): return ((ptA[0] + ptB[0]) * 0.5, (ptA[1] + ptB[1]) * 0.5) def calculateDistance(ex,ey,ew,eh): dist = math.sqrt((ex - ew)**2 + (ey - eh)**2) ...
43.101695
97
0.539913
317
2,543
4.239748
0.44164
0.005952
0.013393
0.017857
0.046131
0.008929
0
0
0
0
0
0.04551
0.351947
2,543
59
98
43.101695
0.770024
0.208022
0
0
0
0
0.063304
0.0386
0
0
0
0
0
0
null
null
0
0.125
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bd4ea64bf1975261b3a282ed3a1f291f7f6b38f4
2,577
py
Python
LAT_reader.py
ctom2/lhef-parser
d770cbe998999745337af07f6667781fd78cc0e0
[ "MIT" ]
null
null
null
LAT_reader.py
ctom2/lhef-parser
d770cbe998999745337af07f6667781fd78cc0e0
[ "MIT" ]
null
null
null
LAT_reader.py
ctom2/lhef-parser
d770cbe998999745337af07f6667781fd78cc0e0
[ "MIT" ]
null
null
null
import re from typing import NamedTuple import numpy as np EVENT_TAG = '<event>' INIT_TAG = '<init>' INIT_END_TAG = '</init>' FILE_END_TAG = '</LesHouchesEvents>' class Parameters(NamedTuple): id_a : int # IDBMUP(1) id_b : int # IDBMUP(2) energy_a : float # EBMUP(1) energy_b : float # EBMUP(2) pdf...
27.709677
79
0.564222
337
2,577
4.243323
0.320475
0.033566
0.078322
0.03986
0.163636
0.14965
0.14965
0.07972
0.06014
0.06014
0
0.01938
0.299185
2,577
93
80
27.709677
0.772425
0.171129
0
0.131579
0
0
0.025727
0
0
0
0
0
0
1
0.013158
false
0
0.039474
0
0.592105
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bd51ca8b5dd852c5401e15a8b474d71b45a58bb5
582
py
Python
beginner_tutorials/scripts/simple_action_client.py
ken0nek/utmi-soft3
d5539c354d31446cceffd0b32814f2860e370501
[ "MIT" ]
null
null
null
beginner_tutorials/scripts/simple_action_client.py
ken0nek/utmi-soft3
d5539c354d31446cceffd0b32814f2860e370501
[ "MIT" ]
null
null
null
beginner_tutorials/scripts/simple_action_client.py
ken0nek/utmi-soft3
d5539c354d31446cceffd0b32814f2860e370501
[ "MIT" ]
null
null
null
#!/usr/bin/env python import roslib; roslib.load_manifest('beginner_tutorials') import rospy import actionlib from beginner_tutorials.msg import * if __name__ == '__main__': rospy.init_node('do_dishes_client') client = actionlib.SimpleActionClient('do_dishes', DoDishesAction) client.wait_for_server() goal = DoDi...
27.714286
67
0.78866
78
582
5.551282
0.576923
0.078522
0.060046
0
0
0
0
0
0
0
0
0.005703
0.09622
582
21
68
27.714286
0.81749
0.034364
0
0
0
0
0.174377
0
0
0
0
0
0
0
null
null
0
0.266667
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bd5402057876be7e71ffbfcb885835eca851d96e
729
py
Python
linear_algebra/LU.py
ankit864/Movie-Recommender-
b0bb1988c60f0eb507a873e7558e3334d4599ae3
[ "MIT", "Unlicense" ]
null
null
null
linear_algebra/LU.py
ankit864/Movie-Recommender-
b0bb1988c60f0eb507a873e7558e3334d4599ae3
[ "MIT", "Unlicense" ]
null
null
null
linear_algebra/LU.py
ankit864/Movie-Recommender-
b0bb1988c60f0eb507a873e7558e3334d4599ae3
[ "MIT", "Unlicense" ]
null
null
null
import numpy as np import ast n,m = 3,3 s = raw_input("Enter space sep. matrix elements: ") items = map(ast.literal_eval, s.split(' ')) assert(len(items) == n*m) A = np.array(items).reshape((n,m)) print "User given Matrix: " #print A s=(n,m) #L=np.zeros(s) U=np.zeros(s) #print L #print U L=np.identity(3) for j ...
19.702703
52
0.591221
156
729
2.75
0.320513
0.111888
0.062937
0.055944
0.242424
0.219114
0.219114
0.219114
0.219114
0.219114
0
0.013962
0.213992
729
37
53
19.702703
0.734729
0.048011
0
0.071429
0
0
0.157971
0
0
0
0
0
0.035714
0
null
null
0
0.071429
null
null
0.321429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f9a9f9756a1821be742be46c457e0d054a94240
323
py
Python
.frameworks/skdaccess/GLDAS_Data.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
.frameworks/skdaccess/GLDAS_Data.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
.frameworks/skdaccess/GLDAS_Data.py
MITeaps/codesnippets
7621ec4d4c667e95a66c355563e467e50f0fadf6
[ "MIT" ]
null
null
null
# Start and end date gldas_start_date = '2010-01-01' gldas_end_date = '2014-01-01' # Location (Latitude and Longitude) gldas_geo_point = AutoParam([(38, -117), (38, -118)]) # Create data fetcher gldasdf = GLDASDF([gldas_geo_point],start_date=gldas_start_date, end_date=gldas_end_date, resample=Fals...
29.363636
64
0.712074
48
323
4.5
0.479167
0.12963
0.111111
0.166667
0
0
0
0
0
0
0
0.096296
0.164087
323
10
65
32.3
0.703704
0.22291
0
0
0
0
0.080972
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fa7cbe9c5f9db26681b5202c433da297693717e
372
py
Python
Backend/core/order/migrations/0002_alter_order_additional.py
Extraordinary01/freshnesecom
e16047d7f8a8d771125c4656351bae2b4389a1a6
[ "MIT" ]
null
null
null
Backend/core/order/migrations/0002_alter_order_additional.py
Extraordinary01/freshnesecom
e16047d7f8a8d771125c4656351bae2b4389a1a6
[ "MIT" ]
null
null
null
Backend/core/order/migrations/0002_alter_order_additional.py
Extraordinary01/freshnesecom
e16047d7f8a8d771125c4656351bae2b4389a1a6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-12-13 15:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0001_initial'), ] operations = [ migrations.AlterField( model_name='order', name='additional', ...
19.578947
47
0.583333
39
372
5.512821
0.820513
0
0
0
0
0
0
0
0
0
0
0.072797
0.298387
372
18
48
20.666667
0.750958
0.120968
0
0
1
0
0.098462
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1faa9e1fef312650a1445d8a25a13c0d56e97069
4,051
py
Python
day22.py
jlucangelio/adventofcode-2021
99280ff2150eff692f01ce342931940558dfc2a3
[ "MIT" ]
null
null
null
day22.py
jlucangelio/adventofcode-2021
99280ff2150eff692f01ce342931940558dfc2a3
[ "MIT" ]
null
null
null
day22.py
jlucangelio/adventofcode-2021
99280ff2150eff692f01ce342931940558dfc2a3
[ "MIT" ]
null
null
null
from copy import copy from collections import defaultdict, namedtuple with open("day22.in") as f: # with open("day22.small.in") as f: lines = f.read().splitlines() reactor = defaultdict(bool) for line in lines[:20]: # on x=0..45,y=-21..27,z=-28..20 # print(line) switch, coords = line.split() x, ...
27.746575
93
0.584053
561
4,051
4.167558
0.178253
0.041061
0.058169
0.02053
0.299401
0.25663
0.238238
0.216424
0.216424
0.17793
0
0.013791
0.266107
4,051
145
94
27.937931
0.77262
0.029375
0
0.170213
0
0
0.016047
0.006368
0
0
0
0
0
1
0.159574
false
0
0.021277
0.106383
0.414894
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1fab0cb1c8405c18f0e49d268003a2f7b894cc9b
16,838
py
Python
otter/gofer.py
choldgraf/otter-grader
8a759a910023b1265c10643fb67a07a47ba255c1
[ "BSD-3-Clause" ]
1
2021-12-07T20:23:08.000Z
2021-12-07T20:23:08.000Z
otter/gofer.py
choldgraf/otter-grader
8a759a910023b1265c10643fb67a07a47ba255c1
[ "BSD-3-Clause" ]
1
2020-07-29T23:14:01.000Z
2020-07-29T23:14:01.000Z
otter/gofer.py
jgwerner/otter-grader
8a759a910023b1265c10643fb67a07a47ba255c1
[ "BSD-3-Clause" ]
1
2021-07-29T12:31:30.000Z
2021-07-29T12:31:30.000Z
####################################### ##### Functions from Gofer-Grader ##### ####################################### from contextlib import redirect_stderr, redirect_stdout, contextmanager import inspect import ast import os import sys from IPython import get_ipython import doctest import io import itertools impor...
34.717526
145
0.620026
2,080
16,838
4.898558
0.190385
0.0159
0.011483
0.015311
0.313573
0.275886
0.242222
0.229071
0.215723
0.199431
0
0.004556
0.28305
16,838
485
146
34.717526
0.839463
0.411866
0
0.256303
0
0
0.189563
0.020294
0
0
0
0
0.021008
1
0.07563
false
0.12605
0.088235
0.008403
0.298319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1faba66706a942933001a28f33d023d9c37eeb9b
1,325
py
Python
app/body/migrations/0001_initial.py
DmitryBovsunovskyi/django-training-app
90b32a9572b6b6827a6b4622af3776c9cef0b0dc
[ "MIT" ]
null
null
null
app/body/migrations/0001_initial.py
DmitryBovsunovskyi/django-training-app
90b32a9572b6b6827a6b4622af3776c9cef0b0dc
[ "MIT" ]
null
null
null
app/body/migrations/0001_initial.py
DmitryBovsunovskyi/django-training-app
90b32a9572b6b6827a6b4622af3776c9cef0b0dc
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-26 08:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MuscleGroup', fields=[ ...
36.805556
132
0.589434
138
1,325
5.543478
0.398551
0.082353
0.130719
0.156863
0.573856
0.573856
0.573856
0.573856
0.573856
0.573856
0
0.042531
0.272453
1,325
35
133
37.857143
0.751037
0.033962
0
0.571429
1
0
0.080595
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fb15a945435b6bbf7892ffc58298cae5e698ad4
1,033
py
Python
src/webmention/middleware.py
blturner/django-webmention
610b2f5667ecc6fba04e71803d167a6d400c2fe1
[ "MIT" ]
null
null
null
src/webmention/middleware.py
blturner/django-webmention
610b2f5667ecc6fba04e71803d167a6d400c2fe1
[ "MIT" ]
null
null
null
src/webmention/middleware.py
blturner/django-webmention
610b2f5667ecc6fba04e71803d167a6d400c2fe1
[ "MIT" ]
null
null
null
from django.utils.decorators import decorator_from_middleware try: from django.core.urlresolvers import reverse except ImportError: from django.urls import reverse def add_webmention_headers_to_response(request, response): link_header = '<{scheme}://{host}{path}>; rel="webmention"'.format( scheme...
29.514286
101
0.740561
116
1,033
6.37069
0.37931
0.101489
0.081191
0.08931
0.198917
0.198917
0.198917
0.138024
0
0
0
0
0.157793
1,033
34
102
30.382353
0.849425
0
0
0.086957
0
0
0.085189
0.025169
0
0
0
0
0
1
0.173913
false
0
0.173913
0.043478
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1fbadd66a7e3132c812054446ca0928aae5a6ac4
7,252
py
Python
setup.py
breaks-software/OSCAAR
254acfccbd907b89485b9d78cff2681892a40309
[ "MIT" ]
null
null
null
setup.py
breaks-software/OSCAAR
254acfccbd907b89485b9d78cff2681892a40309
[ "MIT" ]
null
null
null
setup.py
breaks-software/OSCAAR
254acfccbd907b89485b9d78cff2681892a40309
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Made by Luuk Visser (UL/TUD), with tweaks by Brett Morris (NASA GSFC/UMD)""" import os import sys import shutil import subprocess import atexit import urllib2 def internet_on(): refURL = 'http://74.125.228.100' ## One Google IP address (bypass DNS lookup) try: response=...
36.812183
84
0.615279
869
7,252
4.988493
0.342923
0.017993
0.031834
0.020761
0.280969
0.207612
0.172318
0.111188
0.111188
0.083506
0
0.01263
0.268478
7,252
197
85
36.812183
0.804524
0.111555
0
0.232258
0
0
0.276125
0.01686
0
0
0
0
0
0
null
null
0.006452
0.090323
null
null
0.045161
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1fc0e63e890967be93cbd904b0c946c116a1d557
1,588
py
Python
opencvtest/__init__.py
Zeyecx/OpenCVTest
f2be16307206db4e2ffb6c5201be8a4c70e62b33
[ "MIT" ]
null
null
null
opencvtest/__init__.py
Zeyecx/OpenCVTest
f2be16307206db4e2ffb6c5201be8a4c70e62b33
[ "MIT" ]
null
null
null
opencvtest/__init__.py
Zeyecx/OpenCVTest
f2be16307206db4e2ffb6c5201be8a4c70e62b33
[ "MIT" ]
null
null
null
import sys import cv2 def sample(x_axes, y_axes) -> None: """ Basic Sample File """ if not isinstance(x_axes, int): print("Please enter a number for the X axis") sys.exit() if not isinstance(y_axes, int): print("Please enter a number for the Y axis") sys.exit() ...
17.842697
53
0.525819
197
1,588
4.177665
0.451777
0.060753
0.014581
0.024301
0.087485
0.087485
0.087485
0.087485
0.087485
0
0
0.075349
0.323048
1,588
88
54
18.045455
0.690233
0.09131
0
0.083333
0
0
0.079353
0
0
0
0
0
0
1
0.25
false
0
0.041667
0
0.291667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1fcc317a2e1a3a6345dfa5c851fc4d8d8ae4842d
1,650
py
Python
quadis/ui_confirm.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
quadis/ui_confirm.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
quadis/ui_confirm.py
BottomNotch/Quadis
66d8d5d302ccd8691a507fcbd35b4d3097411457
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '../qt5ui/confirm.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_confirmDialog(object): def setupUi(self, confirmDialog): ...
41.25
103
0.724242
163
1,650
7.306748
0.478528
0.076406
0.04534
0.052057
0.053736
0
0
0
0
0
0
0.011739
0.173939
1,650
39
104
42.307692
0.862069
0.115152
0
0
1
0
0.06405
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fd40dfd7ee7b20623255e0d35d055ea6cab363d
1,246
py
Python
fixtures/data/04_geoserver/00_initial/01_create_datastores.py
meomancer/inasafe-fba
7a05cf09795c366afdc2885bcee5777a4a731cd8
[ "MIT" ]
1
2020-12-01T14:42:12.000Z
2020-12-01T14:42:12.000Z
fixtures/data/04_geoserver/00_initial/01_create_datastores.py
meomancer/inasafe-fba
7a05cf09795c366afdc2885bcee5777a4a731cd8
[ "MIT" ]
50
2020-01-10T07:44:34.000Z
2020-05-27T12:00:52.000Z
fixtures/data/04_geoserver/00_initial/01_create_datastores.py
meomancer/inasafe-fba
7a05cf09795c366afdc2885bcee5777a4a731cd8
[ "MIT" ]
7
2020-01-13T08:45:42.000Z
2020-12-07T06:37:11.000Z
#!/usr/bin/env python3 import os from utils import GeoServerRESTRunner if __name__ == '__main__': runner = GeoServerRESTRunner() with runner.session() as s: response = runner.assert_get(s, '/workspaces/kartoza/datastores/gis') if response.ok: print('Resource exists.') ...
28.318182
78
0.513644
109
1,246
5.633028
0.495413
0.07329
0.09772
0.17101
0.276873
0.276873
0
0
0
0
0
0.002548
0.369984
1,246
43
79
28.976744
0.779618
0.016854
0
0
0
0
0.268791
0.169118
0
0
0
0
0.060606
1
0
false
0.030303
0.060606
0
0.060606
0.090909
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fdb33b8ac7fc2ad5c5b482c17d55a223e5151c1
2,790
py
Python
practice/day2/test/test_make_fingerprint.py
ideptor/mlips
88437c81b92d19f5d5c2b5d47fad93dd533e5f5d
[ "Apache-2.0" ]
null
null
null
practice/day2/test/test_make_fingerprint.py
ideptor/mlips
88437c81b92d19f5d5c2b5d47fad93dd533e5f5d
[ "Apache-2.0" ]
null
null
null
practice/day2/test/test_make_fingerprint.py
ideptor/mlips
88437c81b92d19f5d5c2b5d47fad93dd533e5f5d
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import data import make_fingerprint as mf def test_load_logfile(): # given trace_file_name = "test/data/filtering_test.txt" #must_include_head = ["POSI;", "WIFI;", "MAGN;"] must_include_head = ["POSI;", "WIFI;"] # when filtered_lines = mf.load_logfile(trace_file_...
25.59633
175
0.669176
425
2,790
4.145882
0.230588
0.07151
0.045403
0.068104
0.594779
0.527809
0.350738
0.31328
0.31328
0.273553
0
0.040891
0.211111
2,790
109
176
25.59633
0.759655
0.039785
0
0.28125
0
0.015625
0.114779
0.093398
0
0
0
0
0.4375
1
0.0625
false
0
0.0625
0
0.125
0.109375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1fe120613416aaa1020608233e473c2277119eea
590
py
Python
student/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
null
null
null
student/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
7
2020-06-05T18:11:24.000Z
2022-03-11T23:20:15.000Z
student/admin.py
Portfolio-APPS/web-app
57dc3243fc17d1429f30b9337e2633197505671c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Student, Project, WorkingExperience, VolunteerExperience, Skill, Language, StudyProgramme, \ Certification @admin.register(Student) class StudentAdmin(admin.ModelAdmin): fields = ('user', 'study_programme', 'current_study_year', 'professional_skills', 'tec...
31.052632
120
0.808475
64
590
7.359375
0.453125
0.133758
0.252654
0
0
0
0
0
0
0
0
0
0.079661
590
18
121
32.777778
0.867403
0
0
0
0
0
0.140678
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.307692
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fe14d26a17ab38c497603e42a685c4c49618b8e
1,772
py
Python
dashboard/migrations/0009_auto_20210130_2114.py
muttiopenbts/cascade_spit
27b722390977cb9bd677789617cf049fc5b90539
[ "Apache-2.0" ]
null
null
null
dashboard/migrations/0009_auto_20210130_2114.py
muttiopenbts/cascade_spit
27b722390977cb9bd677789617cf049fc5b90539
[ "Apache-2.0" ]
null
null
null
dashboard/migrations/0009_auto_20210130_2114.py
muttiopenbts/cascade_spit
27b722390977cb9bd677789617cf049fc5b90539
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-31 05:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('dashboard', '0008_auto_2...
38.521739
142
0.611174
195
1,772
5.415385
0.507692
0.071023
0.056818
0.109848
0.1875
0.102273
0
0
0
0
0
0.028418
0.265237
1,772
45
143
39.377778
0.782642
0.025395
0
0.307692
1
0
0.2
0.013333
0
0
0
0
0
1
0
false
0
0.076923
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1fe514d511aff85a12ad483344de3f579d86e729
2,106
py
Python
tests/conftest.py
coxwave/manta
fc55357e139dbf61854595475f401656440d53aa
[ "MIT" ]
17
2021-11-19T08:26:33.000Z
2022-01-27T10:22:09.000Z
tests/conftest.py
coxwave/manta
fc55357e139dbf61854595475f401656440d53aa
[ "MIT" ]
95
2021-11-19T05:29:22.000Z
2022-03-03T09:39:46.000Z
tests/conftest.py
coxwave/manta
fc55357e139dbf61854595475f401656440d53aa
[ "MIT" ]
2
2021-12-10T07:31:54.000Z
2021-12-10T07:43:37.000Z
import logging from dataclasses import dataclass from unittest.mock import patch import pytest from tests.utils.mock_backend import ( ApiKey, BackendContext, Run, Project, Team, User, ) from tests.utils.mock_base_client import MockBaseClient ###################################...
27.710526
97
0.637227
255
2,106
5.141176
0.337255
0.045767
0.064073
0.080092
0.271548
0.117468
0.070175
0.070175
0.070175
0
0
0
0.205603
2,106
75
98
28.08
0.783622
0.168566
0
0.045455
0
0
0.233333
0.132051
0
0
0
0.013333
0
1
0.068182
false
0
0.136364
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1febbe7848e685566202bf56748c9c211b4d2b82
1,408
py
Python
scripts/tuya-discovery.py
meingraham/tuya-convert
dbeab1ba9d8730b2fbf97b48b7115c2b418a592e
[ "MIT" ]
9
2019-05-05T14:22:53.000Z
2022-01-06T16:59:07.000Z
scripts/tuya-discovery.py
Meisterdieb1412/tuya-convert
dbeab1ba9d8730b2fbf97b48b7115c2b418a592e
[ "MIT" ]
null
null
null
scripts/tuya-discovery.py
Meisterdieb1412/tuya-convert
dbeab1ba9d8730b2fbf97b48b7115c2b418a592e
[ "MIT" ]
2
2019-12-18T18:15:45.000Z
2020-11-08T13:30:19.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ tuya-discovery.py Created by kueblc on 2019-11-13. Discover Tuya devices on the LAN via UDP broadcast """ import asyncio import json from Crypto.Cipher import AES pad = lambda s: s + (16 - len(s) % 16) * chr(16 - len(s) % 16) unpad = lambda s: s[:-ord(s[len(s) - 1:])] encr...
26.074074
96
0.71946
213
1,408
4.624413
0.441315
0.012183
0.012183
0.016244
0.160406
0.160406
0.121827
0.121827
0.121827
0.121827
0
0.040867
0.148438
1,408
53
97
26.566038
0.780651
0.136364
0
0.194444
0
0
0.106401
0
0
0
0
0
0
1
0.055556
false
0.055556
0.111111
0
0.194444
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1ff2f5f076a5a98916d3e93ed953e0d60395d73f
500
py
Python
CourseOnline/MainProject/migrations/0024_auto_20200105_0210.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
CourseOnline/MainProject/migrations/0024_auto_20200105_0210.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
CourseOnline/MainProject/migrations/0024_auto_20200105_0210.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-01-04 23:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('MainProject', '0023_auto_20200105_0203'), ] operations = [ migrations.AddField( model_name='coursematerial', name='d...
22.727273
70
0.6
49
500
6
0.816327
0
0
0
0
0
0
0
0
0
0
0.086835
0.286
500
21
71
23.809524
0.736695
0.09
0
0.133333
1
0
0.18543
0.050773
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ffac0c675dea7705a3e98a6587d6e6cf2f67544
7,198
py
Python
install/services/RPM.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
null
null
null
install/services/RPM.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
3
2015-12-02T19:37:45.000Z
2016-01-20T03:21:48.000Z
install/services/RPM.py
bbockelm/glideinWMS
a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18
[ "BSD-3-Clause" ]
1
2015-12-01T23:02:41.000Z
2015-12-01T23:02:41.000Z
#!/usr/bin/env python import traceback import sys,os,os.path,string,time import stat,re import xml.sax.saxutils import optparse #------------------------- from glideinwms.lib import xmlFormat import common import Condor from VOFrontend import VOFrontend #------------------------- #os.environ["PYTHONPATH"] = "" fronte...
28.117188
96
0.633231
811
7,198
5.307028
0.274969
0.060409
0.040892
0.046004
0.186571
0.153346
0.089684
0.07342
0.07342
0.07342
0
0.005815
0.163796
7,198
255
97
28.227451
0.709254
0.152681
0
0.201031
0
0
0.223768
0.019108
0
0
0
0
0
0
null
null
0
0.046392
null
null
0.041237
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9501ac3518a2adf9bc9034307a031cecdeba7652
3,279
py
Python
paderbox/utils/misc.py
jensheit/paderbox
48c76c0169bd40466a416a2e73b3aa6d07a15bb7
[ "MIT" ]
25
2019-12-21T21:10:08.000Z
2022-02-04T10:40:19.000Z
paderbox/utils/misc.py
jensheit/paderbox
48c76c0169bd40466a416a2e73b3aa6d07a15bb7
[ "MIT" ]
32
2019-12-21T21:48:24.000Z
2022-03-31T08:20:39.000Z
paderbox/utils/misc.py
jensheit/paderbox
48c76c0169bd40466a416a2e73b3aa6d07a15bb7
[ "MIT" ]
254
2019-12-16T08:15:08.000Z
2021-11-26T12:41:12.000Z
""" A collection of (mostly undocumented) functions used in various projects. Most of these functions are tailored for a specific need. However, you might find something useful if you alter it a little bit. """ import os import sys from collections import Mapping from typing import Iterable, Hashable def interleav...
26.232
77
0.566026
469
3,279
3.884861
0.304904
0.016465
0.011526
0.013721
0.400659
0.356751
0.326564
0.326564
0.227223
0.221734
0
0.039983
0.283013
3,279
124
78
26.443548
0.735006
0.517841
0
0.058824
0
0
0.053812
0
0
0
0
0
0
1
0.205882
false
0
0.117647
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
95035650f270c20b63502de134f187de3d0b4bb3
2,705
py
Python
test/state.py
bug00r/rapid_maps
091e0b917c3f2fc68fd5bb152df27abf1e406478
[ "MIT" ]
null
null
null
test/state.py
bug00r/rapid_maps
091e0b917c3f2fc68fd5bb152df27abf1e406478
[ "MIT" ]
null
null
null
test/state.py
bug00r/rapid_maps
091e0b917c3f2fc68fd5bb152df27abf1e406478
[ "MIT" ]
null
null
null
import unittest from rapidmaps.map.state import MapStateType, MapStateEntity, MapState, MapStateTranslator from rapidmaps.map.selection import Selections from rapidmaps.map.shape import Point import wx class MyTestCase(unittest.TestCase): def test_map_sate_type(self): self.assertEqual(MapStateType.conta...
38.642857
90
0.681701
317
2,705
5.637224
0.198738
0.159485
0.129267
0.120873
0.440963
0.327924
0.209849
0.101847
0.059317
0
0
0.014032
0.209612
2,705
69
91
39.202899
0.821796
0
0
0.122807
0
0
0.01146
0
0
0
0
0
0.421053
1
0.087719
false
0
0.087719
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
9504ef015f0d40c338d6fbc4956ba3140fabe83f
14,902
py
Python
code/chapter 10/chapter10.py
JJGO/Intro-to-Computation-and-Programming
35c1e736385fabb73d50db3e612b7493da46e532
[ "CC0-1.0" ]
33
2021-01-26T22:01:56.000Z
2022-03-29T06:07:28.000Z
code/chapter 10/chapter10.py
hahaahyoyoy/Intro-to-Computation-and-Programming
f65a3300a2c17c73f84ac701d16cc495be880180
[ "CC0-1.0" ]
1
2021-11-29T16:27:12.000Z
2021-11-29T16:27:12.000Z
code/chapter 10/chapter10.py
hahaahyoyoy/Intro-to-Computation-and-Programming
f65a3300a2c17c73f84ac701d16cc495be880180
[ "CC0-1.0" ]
22
2021-01-26T22:11:07.000Z
2022-03-20T20:13:34.000Z
# -*- coding: utf-8 -*- # # Code from page 179 class Toy(object): def __init__(self): self._elems = [] def add(self, new_elems): """new_elems is a list""" self._elems += new_elems def size(self): return len(self._elems) # print(type(Toy)) # print(type(Toy.__init__), type(To...
29.804
77
0.605758
2,094
14,902
4.087393
0.17383
0.027106
0.023835
0.009931
0.211006
0.172801
0.128987
0.086809
0.0805
0.069751
0
0.030508
0.274124
14,902
499
78
29.863727
0.760747
0.40404
0
0.230089
0
0
0.049665
0.008258
0
0
0
0
0
1
0.261062
false
0.00885
0.004425
0.048673
0.464602
0.053097
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9508655f3e11c8b02f49b0d94c5e7d988d967f21
8,016
py
Python
tools/bin/ext/figleaf/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
450
2015-09-05T09:12:51.000Z
2018-08-30T01:45:36.000Z
tools/bin/ext/figleaf/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
1,274
2015-09-22T20:06:16.000Z
2018-08-31T22:14:00.000Z
tools/bin/ext/figleaf/__init__.py
YangHao666666/hawq
10cff8350f1ba806c6fec64eb67e0e6f6f24786c
[ "Artistic-1.0-Perl", "ISC", "bzip2-1.0.5", "TCL", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "PostgreSQL", "BSD-3-Clause" ]
278
2015-09-21T19:15:06.000Z
2018-08-31T00:36:51.000Z
""" figleaf is another tool to trace Python code coverage. figleaf uses the sys.settrace hook to record which statements are executed by the CPython interpreter; this record can then be saved into a file, or otherwise communicated back to a reporting script. figleaf differs from the gold standard of Python coverage t...
25.858065
79
0.634481
1,087
8,016
4.551978
0.298988
0.011318
0.012732
0.006871
0.039208
0.034357
0.034357
0.034357
0.018189
0.018189
0
0.006966
0.265719
8,016
309
80
25.941748
0.833673
0.041292
0
0.184397
0
0
0.047713
0
0
0
0
0
0.007092
0
null
null
0.007092
0.056738
null
null
0.014184
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
950d2b77dc2066ada5b37afe65c24d49add58446
4,264
py
Python
gscripts/rnaseq/rpkm_from_counts.py
YeoLab/gscripts
ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b
[ "MIT" ]
12
2015-07-10T09:36:49.000Z
2021-07-06T03:25:04.000Z
gscripts/rnaseq/rpkm_from_counts.py
YeoLab/gscripts
ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b
[ "MIT" ]
43
2015-01-21T20:01:38.000Z
2021-04-13T17:50:38.000Z
gscripts/rnaseq/rpkm_from_counts.py
YeoLab/gscripts
ae653d29d0ce82d342f7f6ff5bbeedd27a2e062b
[ "MIT" ]
19
2015-05-02T09:33:17.000Z
2022-02-12T17:08:06.000Z
from glob import glob from gscripts.qtools._Submitter import Submitter import sys __author__ = 'olga' from glob import iglob, glob from gscripts.qtools._Submitter import Submitter import sys import os from gscripts.qtools import Submitter import argparse import os class CommandLine(object): def __init__(self, i...
37.734513
80
0.554409
489
4,264
4.685072
0.357873
0.038411
0.044522
0.031427
0.120471
0.120471
0.075076
0.048014
0.048014
0
0
0.003577
0.344278
4,264
112
81
38.071429
0.815808
0.002814
0
0.088608
0
0
0.213843
0
0
0
0
0
0
0
null
null
0
0.139241
null
null
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9512d0c7a2ccd15fcd48f6112c024217eae2566f
1,616
py
Python
gocdapi_tests/systests/base.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
8
2015-01-23T12:50:30.000Z
2020-01-21T11:00:19.000Z
gocdapi_tests/systests/base.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
7
2015-01-27T23:17:05.000Z
2016-06-08T15:27:07.000Z
gocdapi_tests/systests/base.py
andrewphilipsmith/gocdapi
82eb37c6b00a918b6bcf4184a66cad7344cfaa2e
[ "MIT" ]
2
2015-11-23T18:33:24.000Z
2020-07-15T09:01:34.000Z
import logging import time import unittest from gocdapi.go import Go from gocdapi_tests.systests.pipeline_configs import EMPTY_PIPELINE log = logging.getLogger(__name__) DEFAULT_GO_URL = "http://localhost" DEFAULT_GO_PORT = 8153 DEFAULT_GO_PIPELINE_GROUP = "GO_SYSTESTS" class BaseSystemTest(unittest.TestCase): ...
35.130435
109
0.717822
224
1,616
4.834821
0.316964
0.120037
0.10988
0.10157
0.292705
0.192982
0.192982
0.133887
0.090489
0
0
0.005376
0.194307
1,616
45
110
35.911111
0.826421
0
0
0.058824
0
0
0.089728
0
0
0
0
0
0.058824
1
0.205882
false
0
0.147059
0.029412
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
951620ee91982307d02980ea8d89aa06698f138b
1,393
py
Python
src/midnite/visualization/base/__init__.py
christina-aigner/midnite
a042ec775dc66ca68291ebaf0eb1a3be9ef28cf6
[ "MIT" ]
null
null
null
src/midnite/visualization/base/__init__.py
christina-aigner/midnite
a042ec775dc66ca68291ebaf0eb1a3be9ef28cf6
[ "MIT" ]
null
null
null
src/midnite/visualization/base/__init__.py
christina-aigner/midnite
a042ec775dc66ca68291ebaf0eb1a3be9ef28cf6
[ "MIT" ]
1
2019-12-24T00:57:00.000Z
2019-12-24T00:57:00.000Z
from .interface import Activation from .interface import Attribution from .interface import LayerSplit from .interface import NeuronSelector from .interface import OutputRegularization from .interface import TransformSequence from .interface import TransformStep from .methods import Backpropagation from .methods import...
26.788462
43
0.77028
121
1,393
8.834711
0.256198
0.085126
0.124415
0
0
0
0
0
0
0
0
0
0.15865
1,393
51
44
27.313725
0.912116
0
0
0
0
0
0.229002
0.015075
0
0
0
0
0
1
0
false
0
0.48
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
951812843d4feee3ff72ef03566457358a091585
1,749
py
Python
pyros_schemas/ros/types_mapping.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
3
2018-01-01T17:10:16.000Z
2018-11-15T15:41:46.000Z
pyros_schemas/ros/types_mapping.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
7
2018-02-02T10:05:55.000Z
2018-02-17T15:15:46.000Z
pyros_schemas/ros/types_mapping.py
pyros-dev/pyros-schemas
a460920260ee77a1b5b6d5c0b97df52f1572ff79
[ "MIT" ]
2
2017-09-27T09:46:31.000Z
2018-02-02T09:37:13.000Z
from __future__ import absolute_import from __future__ import print_function import sys # for py2 / py3 compatibility import six six_long = six.integer_types[-1] from .basic_fields import ( RosBool, RosInt8, RosInt16, RosInt32, RosInt64, RosUInt8, RosUInt16, RosUInt32, RosUInt64, RosFloat32, RosFloa...
31.8
118
0.685535
201
1,749
5.865672
0.457711
0.047498
0.057676
0.067854
0.273113
0.273113
0.273113
0.273113
0.273113
0.273113
0
0.056148
0.19554
1,749
54
119
32.388889
0.781805
0.434534
0
0
0
0
0.14876
0
0
0
0
0.018519
0
1
0
false
0
0.166667
0
0.166667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
95229fea7d23caa9a9b9eb6323804931319eeb70
436
py
Python
Tasks_1/Task_4.py
BomberDim/Lessons_1
1ffdf335d630cb211311ede8b7e181425da844db
[ "MIT" ]
null
null
null
Tasks_1/Task_4.py
BomberDim/Lessons_1
1ffdf335d630cb211311ede8b7e181425da844db
[ "MIT" ]
null
null
null
Tasks_1/Task_4.py
BomberDim/Lessons_1
1ffdf335d630cb211311ede8b7e181425da844db
[ "MIT" ]
null
null
null
#Даны два числа. Найти их сумму, разность, произведение, а также частное от деления первого числа на второе. import math a = (float(input('Введите а: '))) b = (float(input('Введите b: '))) sum = a + b print('сумма = ', sum) dif = a - b print('разность = ', dif) mult = a * b print('произведение = ', mult) if b == ...
18.956522
108
0.623853
67
436
4.059701
0.492537
0.029412
0.102941
0.169118
0.264706
0.264706
0.264706
0
0
0
0
0.005917
0.224771
436
22
109
19.818182
0.798817
0.245413
0
0
0
0
0.345566
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.357143
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
95252589d072a128a6a248395ea2739f48379c17
580
py
Python
data_extraction/run_scrapers.py
kfilyk/quoracle
80dd860a37f420eb30eb9f119597dbddab59a0c1
[ "MIT" ]
null
null
null
data_extraction/run_scrapers.py
kfilyk/quoracle
80dd860a37f420eb30eb9f119597dbddab59a0c1
[ "MIT" ]
null
null
null
data_extraction/run_scrapers.py
kfilyk/quoracle
80dd860a37f420eb30eb9f119597dbddab59a0c1
[ "MIT" ]
null
null
null
from RedditScraper import RedditScraper from TwitterScraper import TwitterScraper import os from os import path import json if __name__ == "__main__": from_reddit = RedditScraper().scrape() from_twitter = TwitterScraper().scrape() joined_results = from_reddit + from_twitter output_filename = "scrapers_...
36.25
88
0.739655
71
580
5.746479
0.478873
0.171569
0
0
0
0
0
0
0
0
0
0
0.167241
580
16
88
36.25
0.844721
0
0
0
0
0
0.168675
0.036145
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
952a5dd1a5ee68dbf92f4616e652482014e548e5
1,258
py
Python
vivino/data/geojson/test_serialiser.py
rosst/vivino-geocoder
b987161405ff292070b5794e9c4f9a15ae1a7d6d
[ "Apache-2.0" ]
3
2018-08-04T13:39:29.000Z
2021-10-17T13:11:29.000Z
vivino/data/geojson/test_serialiser.py
rosst/vivino-geocoder
b987161405ff292070b5794e9c4f9a15ae1a7d6d
[ "Apache-2.0" ]
null
null
null
vivino/data/geojson/test_serialiser.py
rosst/vivino-geocoder
b987161405ff292070b5794e9c4f9a15ae1a7d6d
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import vivino.data.geojson.serialiser as ser from vivino.data.model.winery import Winery from shapely_geojson import Feature from shapely.geometry import Point import json class TestSerialiser(TestCase): def test_serialise(self): serialised = ser.serialise(Winery("Alfr...
26.208333
87
0.693164
143
1,258
6.062937
0.314685
0.155709
0.152249
0.103806
0.342561
0.175317
0.083045
0.083045
0
0
0
0.075671
0.170111
1,258
47
88
26.765957
0.754789
0
0
0
0
0
0.120827
0
0
0
0
0
0.478261
1
0.086957
false
0
0.26087
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
952dcf49fe9918709df5f5ea2b31432a5578b318
1,897
py
Python
src/lab6_dijkstra/test.py
andrew-kulikov/saiio
eabfee50f92faa77072937dc696bd0d1181bd2bb
[ "MIT" ]
null
null
null
src/lab6_dijkstra/test.py
andrew-kulikov/saiio
eabfee50f92faa77072937dc696bd0d1181bd2bb
[ "MIT" ]
null
null
null
src/lab6_dijkstra/test.py
andrew-kulikov/saiio
eabfee50f92faa77072937dc696bd0d1181bd2bb
[ "MIT" ]
null
null
null
import unittest import numpy as np def build_graph(pairs): n = max(map(lambda p: max(p[0], p[1]), pairs)) G = [[] for _ in range(n)] for from_, to, weight in pairs: G[from_ - 1].append((to - 1, weight)) return G[:n], n def solve(G, n, s): d = np.full((n,), np.inf) used = np.full((n,)...
25.986301
55
0.392198
320
1,897
2.23125
0.209375
0.019608
0.063025
0.030812
0.193277
0.159664
0.159664
0.159664
0.159664
0.159664
0
0.138298
0.405377
1,897
72
56
26.347222
0.494681
0
0
0.169492
0
0
0.004217
0
0
0
0
0
0.033898
1
0.084746
false
0
0.033898
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20f7262e730914e9234da220d85cbe7c961c04c1
2,659
py
Python
tissue_classifier/mdl/visualizer.py
summerblind/neurotrace
5367da086bfe2c74752268e6c3aa47577a63cf35
[ "MIT" ]
null
null
null
tissue_classifier/mdl/visualizer.py
summerblind/neurotrace
5367da086bfe2c74752268e6c3aa47577a63cf35
[ "MIT" ]
null
null
null
tissue_classifier/mdl/visualizer.py
summerblind/neurotrace
5367da086bfe2c74752268e6c3aa47577a63cf35
[ "MIT" ]
null
null
null
import pickle import pdb import sys import os import numpy as np dirname, filename = os.path.split(sys.argv[1]) handle=open(sys.argv[1],'rb') video_output = False if (len(sys.argv)==3): if (sys.argv[2]=='video'): video_output = True #import matplotlib #matplotlib.use("Agg") import matpl...
29.21978
94
0.713802
426
2,659
4.307512
0.342723
0.009809
0.042507
0.016349
0.12861
0.117711
0.092643
0
0
0
0
0.027813
0.107559
2,659
90
95
29.544444
0.74547
0.033847
0
0.028986
0
0
0.077973
0
0
0
0
0
0
0
null
null
0
0.130435
null
null
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
20f7b96aadedd05c7e0d176037c74e61ad0aec9c
453
py
Python
expresso_python_api/expresso/tools/set_device_id.py
iorodeo/expresso_device_software
786e7fb7a0dfae423f500108acc7b521e7380a1e
[ "Apache-2.0" ]
null
null
null
expresso_python_api/expresso/tools/set_device_id.py
iorodeo/expresso_device_software
786e7fb7a0dfae423f500108acc7b521e7380a1e
[ "Apache-2.0" ]
null
null
null
expresso_python_api/expresso/tools/set_device_id.py
iorodeo/expresso_device_software
786e7fb7a0dfae423f500108acc7b521e7380a1e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from expresso.libs.expresso_serial import ExpressoSerial import sys port = sys.argv[1] number = int(sys.argv[2]) print() print('setting device ID') print(' port = {0}'.format(port)) print(' number = {0}'.format(number)) print() dev = ExpressoSerial(port,checkId=False) dev....
16.777778
56
0.710817
63
453
4.984127
0.428571
0.076433
0
0
0
0
0
0
0
0
0
0.012821
0.139073
453
26
57
17.423077
0.792308
0
0
0.1875
0
0
0.185682
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.5625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
20f96840a781770d3aa601815de80af3367e18b9
1,511
py
Python
test/ecc_test.py
matuhn/FPT-Capstone
d67217b77ce723136bafd436e664a6d9fa4fb00b
[ "MIT" ]
null
null
null
test/ecc_test.py
matuhn/FPT-Capstone
d67217b77ce723136bafd436e664a6d9fa4fb00b
[ "MIT" ]
null
null
null
test/ecc_test.py
matuhn/FPT-Capstone
d67217b77ce723136bafd436e664a6d9fa4fb00b
[ "MIT" ]
null
null
null
from Crypto.Cipher import AES from Crypto.PublicKey import ECC from Crypto.Math.Numbers import Integer import os import hashlib def ecc_point_to_256_bit_key(point): sha = hashlib.sha256(point.x.to_bytes()) sha.update(point.y.to_bytes()) return sha.digest() def ecc_encrypt(plain_text, ecc_public_key): ...
32.847826
119
0.763733
244
1,511
4.405738
0.245902
0.050233
0.072558
0.036279
0.342326
0.296744
0.186047
0.186047
0.113488
0
0
0.018018
0.118465
1,511
45
120
33.577778
0.789039
0
0
0.057143
0
0
0.058901
0.021178
0
0
0
0
0
1
0.085714
false
0.057143
0.171429
0
0.342857
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f01460c555fa2d67161bc1f46bf11c255b2dce0
2,594
py
Python
p3iv_modules/src/p3iv_modules/interfaces/planning.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
4
2021-07-27T06:56:22.000Z
2022-03-22T11:21:30.000Z
p3iv_modules/src/p3iv_modules/interfaces/planning.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
null
null
null
p3iv_modules/src/p3iv_modules/interfaces/planning.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
1
2021-10-10T01:56:44.000Z
2021-10-10T01:56:44.000Z
# This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV), # copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory) import abc import p3iv_types class PlannerInterface(object): __metaclass__ = abc.ABCMeta ...
40.53125
118
0.701619
296
2,594
5.942568
0.388514
0.061399
0.054576
0.054576
0.135304
0.105742
0.105742
0.105742
0.105742
0.073906
0
0.006474
0.225906
2,594
63
119
41.174603
0.869522
0.37394
0
0.24
0
0
0
0
0
0
0
0
0.16
1
0.16
false
0.08
0.08
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f014b2d5f888bd379aa49c4431c28d29f0e7826
363
py
Python
models/stats.py
mithro/combineit
e51206585de68995ba3e78b0ac1e75b22b25b4ac
[ "Apache-2.0" ]
null
null
null
models/stats.py
mithro/combineit
e51206585de68995ba3e78b0ac1e75b22b25b4ac
[ "Apache-2.0" ]
1
2021-11-23T05:15:54.000Z
2021-11-23T05:15:54.000Z
models/stats.py
mithro/combineit
e51206585de68995ba3e78b0ac1e75b22b25b4ac
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010 Google Inc. All rights reserved. # Use of this source code is governed by a Apache-style license that can be # found in the LICENSE file. from google.appengine.ext import db import base class FeaturedGame(db.Model): reference = db.ReferenceProperty(base.Game) class PopularGame(db.Model): r...
24.2
75
0.768595
54
363
5.166667
0.740741
0.050179
0.114695
0.129032
0.308244
0.308244
0.308244
0
0
0
0
0.012987
0.151515
363
14
76
25.928571
0.892857
0.418733
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
1
1f0a22e3b887b466f4780e339ff8fd9b97b1aaad
3,162
py
Python
manga_py/libs/fs.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
4
2018-07-05T11:03:22.000Z
2020-03-27T13:21:56.000Z
manga_py/libs/fs.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
null
null
null
manga_py/libs/fs.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
1
2019-07-04T21:41:06.000Z
2019-07-04T21:41:06.000Z
import tempfile from os import name as os_name, getpid from pathlib import Path import json __dir_name = '.manga-py' def get_temp_path(*args) -> str: """ Returns the path of the temporary files manga-py :param args: :return: """ temp = 'temp_%s' % getpid() return path_join(tempfile.gettem...
20.940397
76
0.604048
426
3,162
4.21831
0.225352
0.058431
0.028937
0.028381
0.188648
0.146912
0.121313
0.061213
0.061213
0.061213
0
0.000845
0.251107
3,162
150
77
21.08
0.758024
0.142631
0
0.049383
0
0
0.033476
0
0
0
0
0
0
1
0.234568
false
0
0.049383
0.061728
0.493827
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1f0d87245faab1c5df229e4f561fae414440678b
7,634
py
Python
jccli/jc_api_v1.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
jccli/jc_api_v1.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
jccli/jc_api_v1.py
zaro0508/jccli
1de9a7f493d14bbbe6f3d201eb1aa989cdeec5bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ .. currentmodule:: jccli.jc_api_v1.py .. moduleauthor:: zaro0508 <zaro0508@gmail.com> This is a utility library for the jumpcloud version 1 api .. note:: To learn more about the jumpcloud api 1 `project website <https://github.com/TheJumpCloud/jcapi-python/tree/master/jcapiv1>`_....
41.715847
120
0.522531
738
7,634
5.258808
0.249322
0.020098
0.02319
0.027828
0.353517
0.328524
0.307137
0.234476
0.188611
0.188611
0
0.00625
0.392193
7,634
182
121
41.945055
0.830172
0.192429
0
0.298077
0
0
0.11582
0.022649
0
0
0
0.016484
0
1
0.086538
false
0.019231
0.057692
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1f108be3347496b7dc20551eb9dd9b58e537e360
1,098
py
Python
ML_model/convert_to_coreml.py
Willjay90/DigitRecognition
97db4606063327d7b55c35f8f8ce87d14d2daeab
[ "MIT" ]
8
2019-04-06T19:46:50.000Z
2021-05-28T13:41:50.000Z
ML_model/convert_to_coreml.py
mohsinalimat/DigitRecognition
97db4606063327d7b55c35f8f8ce87d14d2daeab
[ "MIT" ]
2
2018-04-01T16:30:15.000Z
2018-05-07T06:08:01.000Z
ML_model/convert_to_coreml.py
mohsinalimat/DigitRecognition
97db4606063327d7b55c35f8f8ce87d14d2daeab
[ "MIT" ]
3
2019-04-19T19:11:52.000Z
2020-11-03T06:33:14.000Z
# See documentation for more details # https://apple.github.io/coremltools/generated/coremltools.converters.keras.convert.html import coremltools from keras.models import model_from_json from keras.models import load_model # load model and weights #json_file = open('keras_model.json', 'r') #loaded_model_json = json_fi...
37.862069
116
0.614754
129
1,098
4.992248
0.496124
0.093168
0.080745
0.102484
0
0
0
0
0
0
0
0.024845
0.266849
1,098
28
117
39.214286
0.775155
0.312386
0
0
1
0
0.165545
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f123ccaab44374a5f8127fb1ee500a978664fb5
469
py
Python
timetrackerctl/tasks/source/internal.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
timetrackerctl/tasks/source/internal.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
timetrackerctl/tasks/source/internal.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
from typing import List from timetrackerctl.tasks.source import AbstractSource class InternalSource(AbstractSource): @property def name(self): return 'INT' def list(self): int = self.config.config["jira"]["internal_tickets"] lst = [] for t in self.jira.search(f'project = ...
26.055556
121
0.61194
56
469
5.089286
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.26226
469
17
122
27.588235
0.823699
0
0
0
0
0
0.223881
0.046908
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1f12a2c3f2b1880c829d1dc7e9fa34d7281d1d33
3,233
py
Python
web/tests/test_user_model.py
innocorps/PyIoT
99d07b3220a5877ead8811a0b002527b55bba7cf
[ "MIT" ]
2
2018-02-03T12:25:44.000Z
2018-03-28T06:05:22.000Z
web/tests/test_user_model.py
innocorps/PyIoT
99d07b3220a5877ead8811a0b002527b55bba7cf
[ "MIT" ]
1
2022-03-08T21:09:03.000Z
2022-03-08T21:09:03.000Z
web/tests/test_user_model.py
innocorps/pyIoT
99d07b3220a5877ead8811a0b002527b55bba7cf
[ "MIT" ]
null
null
null
"""Test User Password Hashing""" import unittest import time from app import create_app, db from app.models import User class UserModelTestCase(unittest.TestCase): """User password hash testing""" def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() ...
34.763441
78
0.645221
389
3,233
5.22108
0.22365
0.094535
0.059084
0.046775
0.458395
0.353028
0.275726
0.172329
0.172329
0.172329
0
0.00811
0.237241
3,233
92
79
35.141304
0.815491
0.147232
0
0.283582
0
0
0.032951
0
0
0
0
0
0.19403
1
0.164179
false
0.38806
0.059701
0
0.238806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f20b1c9a17970a54378a3578001207a435a0523
1,375
py
Python
sample.py
AliRezaBeigy/LexicalAnalyzer
1273b0e7099596892040f4a5b9de131c451c6b11
[ "MIT" ]
null
null
null
sample.py
AliRezaBeigy/LexicalAnalyzer
1273b0e7099596892040f4a5b9de131c451c6b11
[ "MIT" ]
null
null
null
sample.py
AliRezaBeigy/LexicalAnalyzer
1273b0e7099596892040f4a5b9de131c451c6b11
[ "MIT" ]
null
null
null
import hashlib import os # TODO Fix Bug sampleString = 'Hello World' sampleNumber = 126 * 256 def check_prime_and_good_check(prime, g): good_prime_bits_count = 2048 if prime < 0 or prime.bit_length() != good_prime_bits_count: raise ValueError('bad prime count {}, expected {}'.format( pr...
31.976744
72
0.567273
194
1,375
3.92268
0.314433
0.177398
0.165572
0.149803
0.194481
0.0841
0.0841
0
0
0
0
0.059426
0.290182
1,375
43
73
31.976744
0.720287
0.027636
0
0
0
0
0.143071
0
0
0
0
0.023256
0
1
0.030303
false
0.030303
0.060606
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1f251620238cddc1fc7bbb2d601aaec053a0f421
3,116
py
Python
src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-03-24T21:06:20.000Z
2021-03-24T21:07:58.000Z
src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
24.34375
106
0.691592
380
3,116
5.444737
0.263158
0.039149
0.060416
0.100048
0.42726
0.358144
0.148864
0.148864
0.135331
0
0
0.011988
0.17009
3,116
127
107
24.535433
0.78809
0.279525
0
0.369231
0
0
0.069557
0.056007
0
0
0
0
0
1
0.2
false
0.169231
0.076923
0
0.292308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f29b4c46afbb53eee33e18f912d32c69f5f70ba
285
py
Python
multiprocessing/11_return_value.py
BenedictusAryo/python_threading
8133315ed59b2ad927dfe748f63a1f41dda3d0bc
[ "MIT" ]
1
2021-02-01T10:14:22.000Z
2021-02-01T10:14:22.000Z
multiprocessing/11_return_value.py
BenedictusAryo/python_threading
8133315ed59b2ad927dfe748f63a1f41dda3d0bc
[ "MIT" ]
null
null
null
multiprocessing/11_return_value.py
BenedictusAryo/python_threading
8133315ed59b2ad927dfe748f63a1f41dda3d0bc
[ "MIT" ]
null
null
null
import multiprocessing def sum_up_to(number): return sum(range(1, number + 1)) if __name__ == '__main__': # Create pool object pool = multiprocessing.Pool(4) # Run `sum_up_to` 10 times simultaneously result = pool.map(sum_up_to, range(10)) print(result)
21.923077
45
0.673684
40
285
4.45
0.6
0.08427
0.117978
0
0
0
0
0
0
0
0
0.03139
0.217544
285
13
46
21.923077
0.766816
0.203509
0
0
0
0
0.035556
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1f2ab21960da06d1b62f0215168a5e025b0a2f06
521
py
Python
pyboat/socket_client.py
offbye/PiBoat
aa3295b8c3b63bb79fce5b80669773364fa40057
[ "Apache-2.0" ]
15
2015-08-21T08:05:13.000Z
2021-05-29T10:15:47.000Z
pyboat/socket_client.py
offbye/PiBoat
aa3295b8c3b63bb79fce5b80669773364fa40057
[ "Apache-2.0" ]
null
null
null
pyboat/socket_client.py
offbye/PiBoat
aa3295b8c3b63bb79fce5b80669773364fa40057
[ "Apache-2.0" ]
7
2016-04-21T04:35:44.000Z
2021-02-16T13:48:05.000Z
#!/usr/bin/python # -*- encoding: UTF-8 -*- # BoatServer created on 15/8/21 下午3:15 # Copyright 2014 offbye@gmail.com """ """ __author__ = ['"Xitao":<offbye@gmail.com>'] from socket import * host = '172.19.3.18' port = 9999 bufsize = 1024 addr = (host, port) client = socket() client.connect(addr) while True: d...
16.806452
43
0.614203
75
521
4.2
0.693333
0.069841
0.088889
0
0
0
0
0
0
0
0
0.071253
0.21881
521
30
44
17.366667
0.702703
0.209213
0
0.111111
0
0
0.1175
0.065
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f2f73aedc982220a637989eced8718d8c56c40c
402
py
Python
setup.py
tashley/xyz2rast
02fdd02ada3983f0e5041d7d8ca18b11f8cdea5d
[ "MIT" ]
null
null
null
setup.py
tashley/xyz2rast
02fdd02ada3983f0e5041d7d8ca18b11f8cdea5d
[ "MIT" ]
null
null
null
setup.py
tashley/xyz2rast
02fdd02ada3983f0e5041d7d8ca18b11f8cdea5d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """setup.py: setuptools control.""" from setuptools import setup setup(name='xyz2rast', version='0.1.1', description='Gridding algorithm for time series XYZ data', url='https://github.com/tashley/xyz2rast.git', author='Thomas Ashley', author_email='tashley22@gm...
22.333333
64
0.634328
48
402
5.270833
0.833333
0
0
0
0
0
0
0
0
0
0
0.028037
0.201493
402
17
65
23.647059
0.760125
0.129353
0
0
0
0
0.401163
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1f3ade1fe47bb615bd50df750d184dc2099e6841
580
py
Python
fold_fasta.py
huddlej/clone_msa_builder
7224d4621f54d7e4dc9af78901cfcca30feda4e1
[ "MIT" ]
null
null
null
fold_fasta.py
huddlej/clone_msa_builder
7224d4621f54d7e4dc9af78901cfcca30feda4e1
[ "MIT" ]
null
null
null
fold_fasta.py
huddlej/clone_msa_builder
7224d4621f54d7e4dc9af78901cfcca30feda4e1
[ "MIT" ]
null
null
null
#!/bin/env python import argparse from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("input_file") parser.add_argument("output_file") args = parser.parse_args() new_records = [] fo...
29
89
0.717241
80
580
4.975
0.4875
0.052764
0.085427
0
0
0
0
0
0
0
0
0
0.167241
580
19
90
30.526316
0.824017
0.124138
0
0
0
0
0.077075
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1f3aec866a155ec9b177c19aa9b7a2689791e76f
2,226
py
Python
Utils/app.py
hanzckernel/OPpython
6ee68ccc31ea972c394e17c60c468720dc215cdb
[ "Unlicense" ]
1
2019-10-14T09:24:28.000Z
2019-10-14T09:24:28.000Z
Utils/app.py
hanzckernel/OPpython
6ee68ccc31ea972c394e17c60c468720dc215cdb
[ "Unlicense" ]
null
null
null
Utils/app.py
hanzckernel/OPpython
6ee68ccc31ea972c394e17c60c468720dc215cdb
[ "Unlicense" ]
null
null
null
import math import pandas as pd import flask import dash import dash_core_components as dcc import dash_html_components as html import dateutil.parser # from sfManager import sf_Manager import dash import dash_html_components as html class CustomDash(dash.Dash): def interpolate_index(self, **kwargs): #...
31.352113
94
0.497754
220
2,226
4.922727
0.554545
0.046168
0.029548
0.036934
0.055402
0.055402
0
0
0
0
0
0.007283
0.383199
2,226
70
95
31.8
0.780044
0.043576
0
0.145455
0
0.054545
0.68
0.099294
0
0
0
0
0
1
0.018182
false
0
0.163636
0
0.218182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f3e6d840584137fd9fa12a059f268d6867a2e5e
761
py
Python
Attributes and Methods/Excercise/stone.py
PraghadeshManivannan/OOPS-in-Python
fcddee54317753e8d562fb80dfbe7b825d6bf268
[ "MIT" ]
null
null
null
Attributes and Methods/Excercise/stone.py
PraghadeshManivannan/OOPS-in-Python
fcddee54317753e8d562fb80dfbe7b825d6bf268
[ "MIT" ]
null
null
null
Attributes and Methods/Excercise/stone.py
PraghadeshManivannan/OOPS-in-Python
fcddee54317753e8d562fb80dfbe7b825d6bf268
[ "MIT" ]
null
null
null
class Preciousstone: def __init__(self): self.preciousStone = [] def storePreciousStone(self,name): self.preciousStone.append(name) if( len(self.preciousStone) > 5): del(self.preciousStone[0]) def displayPreciousStone(self): if(...
23.78125
48
0.550591
74
761
5.608108
0.432432
0.245783
0.043373
0.106024
0
0
0
0
0
0
0
0.019724
0.333771
761
32
49
23.78125
0.798817
0
0
0
0
0
0.087551
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.190476
0.095238
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f3e9c1b0194336ea332d84f883233484ab71288
14,926
py
Python
openerp/tools/mail.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/tools/mail.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/tools/mail.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2012-2013 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms o...
39.696809
153
0.577717
1,971
14,926
4.29173
0.253678
0.018915
0.021279
0.00662
0.080861
0.052961
0.049178
0.04114
0.033101
0.017496
0
0.00975
0.237237
14,926
376
154
39.696809
0.733246
0.184041
0
0.117647
0
0.004902
0.140787
0.038357
0
0
0
0
0
0
null
null
0.014706
0.063725
null
null
0.004902
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f4f6aee84d58d6ac66f2592fd13d15ae5a2598c
465
py
Python
setup.py
dioptra-io/multilevel-mda-lite
71dcd37469d574f18f9d57ceca9b1568b33c766a
[ "MIT" ]
null
null
null
setup.py
dioptra-io/multilevel-mda-lite
71dcd37469d574f18f9d57ceca9b1568b33c766a
[ "MIT" ]
null
null
null
setup.py
dioptra-io/multilevel-mda-lite
71dcd37469d574f18f9d57ceca9b1568b33c766a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='Multilevel MDA-Lite Paris Traceroute', version='0.1', description='Costless version of MDA + Router level view of traceroute', url='https://gitlab.planet-lab.eu/', author='Kevin Vermeulen,', author_email='kevinmylinh.vermeulen@gmail....
33.214286
78
0.655914
53
465
5.660377
0.811321
0.08
0
0
0
0
0
0
0
0
0
0.005495
0.217204
465
14
79
33.214286
0.818681
0
0
0
0
0
0.405579
0.066524
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1f500638033c77bed64b8817a50d83605236039a
952
py
Python
application/filterData.py
aditya369b/Gator-Barter-Website
5e7151021ae49374a4e18b15b2ccf219baed02a8
[ "MIT" ]
null
null
null
application/filterData.py
aditya369b/Gator-Barter-Website
5e7151021ae49374a4e18b15b2ccf219baed02a8
[ "MIT" ]
null
null
null
application/filterData.py
aditya369b/Gator-Barter-Website
5e7151021ae49374a4e18b15b2ccf219baed02a8
[ "MIT" ]
null
null
null
""" Class for holding logic for sorting Item Posts The posts are a list of dictionareis which makes for interesting sort logic Created By Alex Kohanim with some help from stack overflow Please contact if any questions arise """ from flask import abort def filter_data(data, filter_type): if filter_type == "a...
29.75
75
0.661765
144
952
4.222222
0.409722
0.115132
0.138158
0.167763
0.432566
0.350329
0.350329
0.350329
0.350329
0.111842
0
0.00406
0.22374
952
31
76
30.709677
0.818674
0.234244
0
0
0
0
0.145833
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f544ea475d7d980254438644bedb6995cf3d9c9
2,420
py
Python
hwtLib/cesnet/mi32/to_axi4Lite.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/cesnet/mi32/to_axi4Lite.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/cesnet/mi32/to_axi4Lite.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.interfaces.utils import addClkRstn from hwtLib.abstract.busBridge import BusBridge from hwtLib.amba.axi4Lite import Axi4Lite from hwtLib.amba.constants import PROT_DEFAULT from hwtLib.cesnet.mi32.intf import Mi32 from hwt.hdl.types.struct import HStruct from hwt....
29.156627
103
0.575207
341
2,420
3.923754
0.316716
0.074738
0.044843
0.024664
0.095665
0.06577
0.06577
0.06577
0.06577
0.06577
0
0.029744
0.305372
2,420
82
104
29.512195
0.766211
0.145041
0
0.1
0
0
0.017682
0
0
0
0
0.012195
0
1
0.05
false
0
0.15
0
0.216667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1f5bee25bc7d6f7c5ac252dfdcad1f32173df07b
1,067
py
Python
pentestui/pentest_api/enumeration/ldap/spray/sprayattack.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
21
2021-07-26T05:19:45.000Z
2022-02-01T07:35:21.000Z
pentestui/pentest_api/enumeration/ldap/spray/sprayattack.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
null
null
null
pentestui/pentest_api/enumeration/ldap/spray/sprayattack.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
2
2021-09-21T06:52:10.000Z
2021-09-26T07:31:27.000Z
""" PASSWORD SPRAY ATTACK """ from ldap3 import Server, Connection, ALL, Tls, EXTERNAL, SASL, DIGEST_MD5 import os, sys class PasswordSPRAY: def AttackArguments(self, serverIP, domainusers, sprayPassword, domainName): """ Spray Attack Arguments """ self.__domain = domainName self.__kdcHost...
30.485714
91
0.641987
99
1,067
6.69697
0.484848
0.033183
0
0
0
0
0
0
0
0
0
0.002538
0.261481
1,067
34
92
31.382353
0.838832
0.105904
0
0
0
0
0.004315
0
0
0
0
0
0
1
0.15
false
0.2
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1f5da1cd9456211bcd3633d40b54336a07612d1c
1,132
py
Python
demo.py
apigateway-demo/qcloud-apigateway-sign-demo-python
d3fb2f7db2b0a4245119e9c804005276c89fb8a4
[ "Apache-2.0" ]
5
2018-04-20T15:48:26.000Z
2019-08-22T06:55:59.000Z
demo.py
apigateway-demo/qcloud-apigateway-sign-demo-python
d3fb2f7db2b0a4245119e9c804005276c89fb8a4
[ "Apache-2.0" ]
null
null
null
demo.py
apigateway-demo/qcloud-apigateway-sign-demo-python
d3fb2f7db2b0a4245119e9c804005276c89fb8a4
[ "Apache-2.0" ]
2
2018-08-14T03:04:00.000Z
2019-05-29T08:33:06.000Z
# -*- coding: utf-8 -*- import requests import datetime from hashlib import sha1 import hmac import base64 from com.qcloudapigateway.auth import sign #r = requests.get('https://github.com/timeline.json') #print r #print r.text SecretId = 'AKIDgz33go7zufbgrt6azbakwbx7tx0jampv84kz' SecretKey = 'lCIC0ZQhtcI5u36Lojuh2...
29.789474
135
0.694346
142
1,132
5.528169
0.584507
0.030573
0.030573
0.030573
0.185987
0.145223
0.145223
0.145223
0
0
0
0.084817
0.15636
1,132
38
136
29.789474
0.737173
0.091873
0
0
0
0.08
0.493646
0.16129
0
0
0
0
0
0
null
null
0
0.24
null
null
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f5f591cf876fbffde2b9baec1170eed8dd2a19b
246
py
Python
doc/paper/results/time-big-fft.py
wangxuesong29/bit-reversal-methods
7447917b3028e7d87b6e20eec8a84174a3c5cac9
[ "CC-BY-4.0" ]
null
null
null
doc/paper/results/time-big-fft.py
wangxuesong29/bit-reversal-methods
7447917b3028e7d87b6e20eec8a84174a3c5cac9
[ "CC-BY-4.0" ]
null
null
null
doc/paper/results/time-big-fft.py
wangxuesong29/bit-reversal-methods
7447917b3028e7d87b6e20eec8a84174a3c5cac9
[ "CC-BY-4.0" ]
null
null
null
import numpy as np from time import time # Use the largest number of bits here: b = 28 N = 2**b x = np.array([ 2*i + (2*i+1)*1j for i in xrange(N)]) print 'Timing b =', b t1=time() y = np.fft.fft(x) t2=time() print t2-t1, (t2 - t2) / float(N)
16.4
52
0.609756
54
246
2.777778
0.592593
0.026667
0
0
0
0
0
0
0
0
0
0.06701
0.211382
246
14
53
17.571429
0.706186
0.146341
0
0
0
0
0.048077
0
0
0
0
0
0
0
null
null
0
0.2
null
null
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
1
0
0
0
0
0
0
0
0
1
1f605886b16b7cafcbf3a8d10492a4dc03822879
329
py
Python
src/troubleshooting/framework/remote/SSHLibrary.py
gaoxiaofeng/troubleShooting
eb66c8eadc4bbd5a5fabd98ad946fd7340966d17
[ "Apache-2.0" ]
7
2017-08-17T13:09:35.000Z
2017-09-08T15:15:14.000Z
src/troubleshooting/framework/remote/SSHLibrary.py
gaoxiaofeng/troubleShooting
eb66c8eadc4bbd5a5fabd98ad946fd7340966d17
[ "Apache-2.0" ]
null
null
null
src/troubleshooting/framework/remote/SSHLibrary.py
gaoxiaofeng/troubleShooting
eb66c8eadc4bbd5a5fabd98ad946fd7340966d17
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from troubleshooting.framework.remote.BashSSH import BaseSSH class SSHLibrary(BaseSSH): def __init__(self): super(SSHLibrary,self).__init__() def read_file(self,file): stdout = self._execute_command("cat %s"%file) return stdout if __name__ == "__main__": SSH...
27.416667
60
0.674772
38
329
5.342105
0.710526
0
0
0
0
0
0
0
0
0
0
0.003774
0.194529
329
12
61
27.416667
0.762264
0.06383
0
0
0
0
0.045603
0
0
0
0
0
0
1
0.222222
false
0
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
0
0
0
0
0
0
1
1f6327283e90d1b8fc58a98820e4b1ee397b591c
10,606
py
Python
blaze/type_reconstruction.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
1
2015-01-02T18:16:07.000Z
2015-01-02T18:16:07.000Z
blaze/type_reconstruction.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
null
null
null
blaze/type_reconstruction.py
davidfischer/blaze-core
19b55ed469aec742fd871b959115a3d87a89acb9
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Adapted from ML type inference algorithms. See: # "Types and Programming Languages", Benjamin C. Pierce (2002) from numpy import dtype from string import letters from collections import namedtuple from context import Env DEBUG = False #-------------------------------------------------...
23.106754
77
0.437017
1,106
10,606
4.141049
0.203436
0.00524
0.017031
0.022271
0.112227
0.08559
0.051965
0.033624
0.003493
0.003493
0
0.002606
0.276259
10,606
458
78
23.157205
0.592757
0.233076
0
0.207547
0
0
0.043947
0
0
0
0
0.002183
0.003774
0
null
null
0
0.015094
null
null
0.045283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f638b9c2ece9d52589bb32dbf32567e3bd0e649
701
py
Python
usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/metrixCloudSync.py
Open-Plus/MetrixHD
8d562feda54cd47ffe1e7888888745ae34c9eaab
[ "Unlicense" ]
null
null
null
usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/metrixCloudSync.py
Open-Plus/MetrixHD
8d562feda54cd47ffe1e7888888745ae34c9eaab
[ "Unlicense" ]
null
null
null
usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/metrixCloudSync.py
Open-Plus/MetrixHD
8d562feda54cd47ffe1e7888888745ae34c9eaab
[ "Unlicense" ]
null
null
null
# Embedded file name: /usr/lib/enigma2/python/Plugins/Extensions/MyMetrix/metrixCloudSync.py import metrixDefaults import random import metrixCore import traceback config = metrixDefaults.loadDefaults() def getSyncRow(area, category, keyname, keydescription, value, order = 0): row = [] row.append(area) row...
28.04
92
0.701854
84
701
5.833333
0.619048
0.110204
0
0
0
0
0
0
0
0
0
0.005245
0.184023
701
25
93
28.04
0.851399
0.128388
0
0
0
0
0.14918
0
0
0
0
0
0
0
null
null
0
0.190476
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1f67d84428dcf4db97e536020419365f13c9cc98
5,612
py
Python
scale/storage/serializers.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/storage/serializers.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/storage/serializers.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
"""Defines the serializers for Scale files and workspaces""" from __future__ import unicode_literals import rest_framework.serializers as serializers from rest_framework.fields import CharField from util.rest import ModelIdSerializer class DataTypeField(CharField): """Field for displaying the list of data type t...
32.068571
74
0.716679
552
5,612
7.182971
0.235507
0.108953
0.02623
0.0343
0.539218
0.495334
0.45826
0.41034
0.370996
0.330139
0
0.003125
0.201711
5,612
174
75
32.252874
0.88192
0.22933
0
0.474227
0
0
0.012618
0
0
0
0
0.005747
0
1
0.030928
false
0
0.072165
0
0.938144
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1f680e5b88bda44185c8a3302f4f05c58df26baf
436
py
Python
dev_nb/nb_005a.py
bearpelican/fastai_pytorch
3e8751d2fc5acdc880eef22d6849e156ce84778b
[ "Apache-2.0" ]
1
2018-10-23T20:45:41.000Z
2018-10-23T20:45:41.000Z
dev_nb/nb_005a.py
bearpelican/fastai_pytorch
3e8751d2fc5acdc880eef22d6849e156ce84778b
[ "Apache-2.0" ]
null
null
null
dev_nb/nb_005a.py
bearpelican/fastai_pytorch
3e8751d2fc5acdc880eef22d6849e156ce84778b
[ "Apache-2.0" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# def get_resize_target(img_sz, crop_target, do_crop=False): if crop_target is None: return None ch,r,c = img_sz target_r,target_c = c...
39.636364
61
0.504587
57
436
3.631579
0.473684
0.144928
0
0
0
0
0
0
0
0
0
0
0.188073
436
11
62
39.636364
0.584746
0.094037
0
0
1
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f68dd987f1965ee31f6b0fbab07e1056e04cfc4
854
py
Python
Squest/api/authentication.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
112
2021-04-21T08:52:55.000Z
2022-03-01T15:09:19.000Z
Squest/api/authentication.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
216
2021-04-21T09:06:47.000Z
2022-03-30T14:21:28.000Z
Squest/api/authentication.py
LaudateCorpus1/squest
98304f20c1d966fb3678d348ffd7c5be438bb6be
[ "Apache-2.0" ]
21
2021-04-20T13:53:54.000Z
2022-03-30T21:43:04.000Z
from rest_framework import authentication, exceptions from profiles.models import Token class TokenAuthentication(authentication.TokenAuthentication): """ A custom authentication scheme which enforces Token expiration times. """ model = Token keyword = 'Bearer' def authenticate_credentials(s...
34.16
73
0.687354
90
854
6.455556
0.577778
0.077453
0.180723
0
0
0
0
0
0
0
0
0
0.234192
854
24
74
35.583333
0.888379
0.149883
0
0
0
0
0.069014
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.4375
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f7f999257f43daa878cf693787afe4211f0896e
1,680
py
Python
api/migrations/0003_auto_20180607_1822.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
api/migrations/0003_auto_20180607_1822.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
api/migrations/0003_auto_20180607_1822.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
# Generated by Django 2.0.5 on 2018-06-07 18:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20180410_1445'), ] operations = [ migrations.AlterField( model_name='actionsta...
37.333333
133
0.627976
177
1,680
5.813559
0.293785
0.062196
0.095238
0.14966
0.689018
0.689018
0.689018
0.49757
0.49757
0.49757
0
0.024409
0.244048
1,680
44
134
38.181818
0.785827
0.026786
0
0.473684
1
0
0.164115
0.014085
0
0
0
0
0
1
0
false
0
0.052632
0
0.131579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f893e948e5269cf7bfd6f4151d6c3c175bf156e
429
py
Python
users/migrations/0004_auto_20200901_1858.py
yanfreitas/Django-blog-project
b67d343ee6861547239d478e962c238bfd7f61ef
[ "MIT" ]
null
null
null
users/migrations/0004_auto_20200901_1858.py
yanfreitas/Django-blog-project
b67d343ee6861547239d478e962c238bfd7f61ef
[ "MIT" ]
null
null
null
users/migrations/0004_auto_20200901_1858.py
yanfreitas/Django-blog-project
b67d343ee6861547239d478e962c238bfd7f61ef
[ "MIT" ]
1
2020-08-28T14:04:30.000Z
2020-08-28T14:04:30.000Z
# Generated by Django 3.1 on 2020-09-01 21:58 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('users', '0003_auto_20200830_2005'), ] operations = [ ...
21.45
66
0.645688
47
429
5.723404
0.787234
0.074349
0
0
0
0
0
0
0
0
0
0.094044
0.25641
429
19
67
22.578947
0.749216
0.100233
0
0
1
0
0.111979
0.059896
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f897cffe96d54195b7f8ba87638d3bc65ba7672
8,428
py
Python
diary/cli.py
davidxmoody/diary
6b15ea948f1554166633ab59d1b65e2ed1aef44d
[ "MIT" ]
1
2016-08-26T08:28:40.000Z
2016-08-26T08:28:40.000Z
diary/cli.py
davidxmoody/diary
6b15ea948f1554166633ab59d1b65e2ed1aef44d
[ "MIT" ]
null
null
null
diary/cli.py
davidxmoody/diary
6b15ea948f1554166633ab59d1b65e2ed1aef44d
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from diary.database import connect from diary.presenter import display_entries from diary.utils import custom_date from diary.generator import generate_command import logging import re import os __version__ = '2.2.0' try: # Strip non- word or dash characters from device name ...
36.803493
85
0.638467
1,055
8,428
4.931754
0.216114
0.057082
0.061503
0.026908
0.374784
0.335191
0.296752
0.296752
0.279454
0.279454
0
0.002588
0.174775
8,428
228
86
36.964912
0.745507
0.082701
0
0.266234
1
0
0.287306
0.005959
0
0
0
0.004386
0
1
0.032468
false
0
0.051948
0
0.084416
0.032468
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f8a1b50462cd0039422d93e1f5c3d519c17b100
852
py
Python
announcement/migrations/0004_auto_20190430_2118.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
32
2019-07-09T13:14:03.000Z
2022-03-21T08:32:58.000Z
announcement/migrations/0004_auto_20190430_2118.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
9
2020-08-15T14:46:31.000Z
2022-03-12T00:46:33.000Z
announcement/migrations/0004_auto_20190430_2118.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
12
2020-05-06T04:59:42.000Z
2021-08-30T09:18:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2019-04-30 21:18 from __future__ import unicode_literals import django.db.models.deletion from django.conf import settings from django.db import migrations, models import utils.models class Migration(migrations.Migration): dependencies = [ ...
27.483871
115
0.577465
85
852
5.611765
0.682353
0.033543
0
0
0
0
0
0
0
0
0
0.055743
0.305164
852
30
116
28.4
0.75
0.079812
0
0
1
0
0.111851
0.030626
0
0
0
0
0
1
0
false
0
0.227273
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1f8edecd4532e51f31e6428226e1c56544400a5c
1,072
py
Python
ed-1.py
chai19990323/spider
0907d9b7af13160d5ad8b75f5927dc88f4abcabd
[ "Apache-2.0" ]
null
null
null
ed-1.py
chai19990323/spider
0907d9b7af13160d5ad8b75f5927dc88f4abcabd
[ "Apache-2.0" ]
null
null
null
ed-1.py
chai19990323/spider
0907d9b7af13160d5ad8b75f5927dc88f4abcabd
[ "Apache-2.0" ]
null
null
null
import urllib.request import re def getHtml(url): page = urllib.request.urlopen(url) html = page.read() return html def getImg(html): reg = r'src="(.+?\.jpg)" pic_ext' imgre = re.compile(reg) html = html.decode('utf-8') imglist = re.findall(imgre,html) x = 0 ...
21.877551
91
0.567164
151
1,072
4.006623
0.470199
0.064463
0.06281
0.072727
0
0
0
0
0
0
0
0.016883
0.281716
1,072
49
92
21.877551
0.768831
0
0
0.054054
0
0.027027
0.141463
0
0
0
0
0
0
0
null
null
0
0.081081
null
null
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f055158544bbd930910e3f128a3e42c04ec6624
984
py
Python
Curriculums/migrations/0016_auto_20180509_1424.py
acuacu/CodigoTecnologiasDedicadas
6bddfc63d2fc96a8f2f93a17d716d462b394bd0b
[ "Apache-2.0" ]
null
null
null
Curriculums/migrations/0016_auto_20180509_1424.py
acuacu/CodigoTecnologiasDedicadas
6bddfc63d2fc96a8f2f93a17d716d462b394bd0b
[ "Apache-2.0" ]
3
2018-05-16T00:51:18.000Z
2018-05-23T10:30:43.000Z
Curriculums/migrations/0016_auto_20180509_1424.py
acuacu/CodigoTecnologiasDedicadas
6bddfc63d2fc96a8f2f93a17d716d462b394bd0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-09 17:24 from __future__ import unicode_literals import Curriculums.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Curriculums', '0015_remove_flyers_nombrearchivo'), ] operat...
30.75
116
0.629065
100
984
6.03
0.59
0.044776
0.056385
0.069652
0.295191
0.295191
0.295191
0.295191
0.295191
0.295191
0
0.035135
0.247967
984
31
117
31.741935
0.77973
0.067073
0
0.458333
1
0
0.203279
0.126776
0
0
0
0
0
1
0
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f07aa58b7a36fe83f434be994805eba8d1018ab
1,428
py
Python
outfit/hashicorp/consul_config.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
1
2020-02-29T12:44:31.000Z
2020-02-29T12:44:31.000Z
outfit/hashicorp/consul_config.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
null
null
null
outfit/hashicorp/consul_config.py
situkangsayur/python-outfit
5a47eb9e765afde3219ff26525958274499f6ecc
[ "MIT" ]
1
2019-08-01T02:48:05.000Z
2019-08-01T02:48:05.000Z
#import conf.bootstrap as config #import conf.datakey as datakey from .hashicorp_base import ConnBase import consul import os import json from ..utils.io import convert_yaml from ..utils.logger import Logger class ConsulCon(ConnBase): """Class to construct the dict properties for the app from Consul and Vault ...
29.142857
116
0.628151
179
1,428
4.860335
0.385475
0.104598
0.032184
0
0
0
0
0
0
0
0
0.00194
0.278011
1,428
48
117
29.75
0.841901
0.270308
0
0
0
0
0.036437
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2f12f3d020545b1af1d0760c6671c69b2ccadd16
307
py
Python
1069.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
1069.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
1069.py
luizgallas/uri_iniciante
fd23f2fe1638b373b94b7b4ddb2d906cec8db87b
[ "Apache-2.0" ]
null
null
null
for i in range(int(input())): text = input().replace('.', '') countOpen = 0 countDiamonds = 0 for char in text: if char == '<': countOpen += 1 elif char == '>' and countOpen > 0: countDiamonds += 1 countOpen -= 1 print(countDiamonds)
23.615385
43
0.491857
32
307
4.71875
0.53125
0.13245
0.304636
0
0
0
0
0
0
0
0
0.030928
0.368078
307
13
44
23.615385
0.747423
0
0
0
0
0
0.00974
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f16e7281d2c9fbc568a77dc0de170ee43b49b1f
447
py
Python
torrent_crawler/crawler.py
Alxspb/torrent-crawler
142c5cdae6ebe5ccd7f01ef5e66713a469f7f700
[ "MIT" ]
null
null
null
torrent_crawler/crawler.py
Alxspb/torrent-crawler
142c5cdae6ebe5ccd7f01ef5e66713a469f7f700
[ "MIT" ]
null
null
null
torrent_crawler/crawler.py
Alxspb/torrent-crawler
142c5cdae6ebe5ccd7f01ef5e66713a469f7f700
[ "MIT" ]
null
null
null
import torpy.http.requests from torrent_crawler.sources.tmdb import Tmdb from torrent_crawler.trackers.rutor import Rutor class TorrentCrawler: def search(self, text: str): with torpy.http.requests.tor_requests_session() as session: result = [] for source in self.sources: ...
26.294118
67
0.657718
52
447
5.576923
0.538462
0.062069
0.117241
0
0
0
0
0
0
0
0
0
0.252796
447
16
68
27.9375
0.868263
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2f17784ae23009fee2b0b977ed184b1f6848478a
7,634
py
Python
lib/api_swagger_client/swagger_client/api/adjusted_values_api.py
31337mbf/yapo
b790e112efccfb8f818dc7711989a9174b2c65fb
[ "MIT" ]
null
null
null
lib/api_swagger_client/swagger_client/api/adjusted_values_api.py
31337mbf/yapo
b790e112efccfb8f818dc7711989a9174b2c65fb
[ "MIT" ]
null
null
null
lib/api_swagger_client/swagger_client/api/adjusted_values_api.py
31337mbf/yapo
b790e112efccfb8f818dc7711989a9174b2c65fb
[ "MIT" ]
null
null
null
# coding: utf-8 """ cifrum API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re ...
45.712575
177
0.656799
879
7,634
5.468714
0.187713
0.038278
0.059289
0.045143
0.591221
0.529852
0.501768
0.470148
0.430206
0.408571
0
0.013718
0.255174
7,634
166
178
45.987952
0.831692
0.329971
0
0
1
0
0.269898
0.060581
0
0
0
0
0
1
0.034884
false
0
0.046512
0
0.127907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f1ab62efa2a819bc11c9ffae04bb9e07517dbb5
649
bzl
Python
tools/python/py3_macros.bzl
sha1n/bazel-python-toolchain
562af53d9927a670457f67dfbd4ad512ead70b82
[ "MIT" ]
null
null
null
tools/python/py3_macros.bzl
sha1n/bazel-python-toolchain
562af53d9927a670457f67dfbd4ad512ead70b82
[ "MIT" ]
null
null
null
tools/python/py3_macros.bzl
sha1n/bazel-python-toolchain
562af53d9927a670457f67dfbd4ad512ead70b82
[ "MIT" ]
null
null
null
load("@rules_python//python:python.bzl", "py_binary", "py_library", "py_test") def py3_library(*args, **kwargs): py_library( srcs_version = "PY3", *args, **kwargs ) def py3_binary(name, main = None, *args, **kwargs): if main == None: main = "%s.py" % (name) py_binary( ...
20.935484
78
0.523883
73
649
4.410959
0.315068
0.186335
0.130435
0.186335
0.447205
0.360248
0.229814
0
0
0
0
0.016092
0.329738
649
30
79
21.633333
0.724138
0
0
0.461538
0
0
0.115562
0.049307
0
0
0
0
0
1
0.115385
false
0
0
0
0.115385
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2f1da404920bac187f0a399cee417784c479332e
1,829
py
Python
tests/test_pyglobal.py
justengel/pyglobal
d587aac835971f70e0bac41d178e24815a9172ee
[ "MIT" ]
null
null
null
tests/test_pyglobal.py
justengel/pyglobal
d587aac835971f70e0bac41d178e24815a9172ee
[ "MIT" ]
null
null
null
tests/test_pyglobal.py
justengel/pyglobal
d587aac835971f70e0bac41d178e24815a9172ee
[ "MIT" ]
null
null
null
def test_simple(): import pyglobal import settings assert pyglobal.get('abc') == 123 assert pyglobal.get('qwerty') == '' assert pyglobal.get('Hello') == 'World!' assert pyglobal.get('SECRET_KEY') == '!!!CHANGE!!!' def test_hack(): import pyglobal pyglobal.set('SECRET_KEY', '*******...
26.507246
89
0.628759
216
1,829
5.166667
0.421296
0.078853
0.060932
0.071685
0.129032
0.129032
0
0
0
0
0
0.003668
0.254784
1,829
68
90
26.897059
0.815114
0.124112
0
0.255319
0
0
0.214912
0
0
0
0
0
0.148936
1
0.085106
false
0.085106
0.106383
0
0.191489
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2f1f8d22c51f866884b7c0254fd21362622cc14b
1,627
py
Python
check_all.py
kbl/zookeeper-mq
fce171029a54ec1681cf9ae6f3ebe83931f93c2f
[ "Apache-2.0" ]
4
2015-02-11T04:51:11.000Z
2019-04-27T15:12:22.000Z
check_all.py
andreisavu/zookeeper-mq
010c26ed904b6ab22fa6531781466569a1b8dad9
[ "Apache-2.0" ]
null
null
null
check_all.py
andreisavu/zookeeper-mq
010c26ed904b6ab22fa6531781466569a1b8dad9
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # Copyright 2011 Andrei Savu <asavu@apache.org> # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You...
27.576271
74
0.653964
218
1,627
4.825688
0.550459
0.057034
0.024715
0.030418
0
0
0
0
0
0
0
0.024187
0.263061
1,627
58
75
28.051724
0.853211
0.503995
0
0.071429
0
0
0.144487
0.09379
0
0
0
0
0.035714
0
null
null
0
0.071429
null
null
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2f26117cf77a90a2dfc36ce0d394e98b937e22de
1,221
py
Python
tests/test_briefcase_models.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
null
null
null
tests/test_briefcase_models.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
47
2020-12-07T18:25:02.000Z
2022-03-30T08:01:32.000Z
tests/test_briefcase_models.py
Murtrag/AutoResume
20a4874904454a19ff6edba412429c543451642b
[ "MIT" ]
null
null
null
import os import pytest from mixer.backend.django import mixer def test_type_str(): type = mixer.blend("briefcase.Type", name="test") assert str(type) == type.name class TestItem: def setup_method(self): images = mixer.cycle(2).blend("briefcase.Image", primary=False) self.image_primary ...
28.395349
83
0.661753
169
1,221
4.615385
0.224852
0.126923
0.121795
0.092308
0.146154
0.05641
0
0
0
0
0
0.002083
0.213759
1,221
42
84
29.071429
0.810417
0
0
0.066667
0
0
0.084357
0
0
0
0
0
0.2
1
0.266667
false
0
0.1
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2f28d0f77acea2c3df3dbcbaa91f1cc9ceb0c6a0
1,991
py
Python
src/passari_workflow/scripts/reenqueue_object.py
finnish-heritage-agency/passari-workflow
b5218d821f8c5c782b7f827ff2a052a2f70c5cf2
[ "MIT" ]
1
2020-06-17T11:01:57.000Z
2020-06-17T11:01:57.000Z
src/passari_workflow/scripts/reenqueue_object.py
finnish-heritage-agency/passari-workflow
b5218d821f8c5c782b7f827ff2a052a2f70c5cf2
[ "MIT" ]
null
null
null
src/passari_workflow/scripts/reenqueue_object.py
finnish-heritage-agency/passari-workflow
b5218d821f8c5c782b7f827ff2a052a2f70c5cf2
[ "MIT" ]
null
null
null
""" Re-enqueue a failed object after rejection by DPRES service """ import click from passari_workflow.db import scoped_session from passari_workflow.db.connection import connect_db from passari_workflow.db.models import MuseumObject, MuseumPackage from passari_workflow.jobs.download_object import download_object from...
28.442857
78
0.606228
221
1,991
5.149321
0.339367
0.105448
0.08348
0.087873
0.036907
0
0
0
0
0
0
0.00074
0.320944
1,991
69
79
28.855072
0.840976
0.052235
0
0.042553
0
0
0.11427
0.037554
0
0
0
0
0
1
0.042553
false
0.106383
0.12766
0
0.170213
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1