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
c2789f406ce3292169cd4311431ad46c4914a529
41
py
Python
config/config.py
pzzzl/p55
1c5a7023c02302dcf18f0f287693af19658a390d
[ "MIT" ]
1
2019-12-26T02:19:37.000Z
2019-12-26T02:19:37.000Z
config/config.py
pzzzl/py-extract
1c5a7023c02302dcf18f0f287693af19658a390d
[ "MIT" ]
null
null
null
config/config.py
pzzzl/py-extract
1c5a7023c02302dcf18f0f287693af19658a390d
[ "MIT" ]
null
null
null
APP_NAME = "P55" APP_GEOMETRY = "200x150"
20.5
24
0.731707
6
41
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0.222222
0.121951
41
2
24
20.5
0.555556
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
4
c2a6baadb88c013f1526151ada66a783484b049a
218
py
Python
app/app/calc.py
ivose/recipe-app-api
bef72d91cb34d876fd3ec43c7967b85c0b64c364
[ "MIT" ]
1
2021-07-12T08:53:44.000Z
2021-07-12T08:53:44.000Z
app/app/calc.py
ivose/recipe-app-api
bef72d91cb34d876fd3ec43c7967b85c0b64c364
[ "MIT" ]
null
null
null
app/app/calc.py
ivose/recipe-app-api
bef72d91cb34d876fd3ec43c7967b85c0b64c364
[ "MIT" ]
null
null
null
def add(x, y): """add two numbers""" return x + y def subtract(x, y): """subtrct one number from another""" return y - x def mult(x, y): """multiply two numbers""" return x * y
15.571429
42
0.513761
32
218
3.5
0.46875
0.089286
0.285714
0.303571
0.321429
0
0
0
0
0
0
0
0.334862
218
13
43
16.769231
0.772414
0.311927
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
c2c1356c214c5c6ec9aa95798789743071486462
65
py
Python
spaten/__init__.py
thomersch/py-spaten
8014691510431a09d752046b6d8e620136499a65
[ "Apache-2.0" ]
null
null
null
spaten/__init__.py
thomersch/py-spaten
8014691510431a09d752046b6d8e620136499a65
[ "Apache-2.0" ]
null
null
null
spaten/__init__.py
thomersch/py-spaten
8014691510431a09d752046b6d8e620136499a65
[ "Apache-2.0" ]
null
null
null
from .spaten import Feature, File __all__ = ('Feature', 'File')
16.25
33
0.692308
8
65
5.125
0.75
0.536585
0
0
0
0
0
0
0
0
0
0
0.153846
65
3
34
21.666667
0.745455
0
0
0
0
0
0.169231
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c2cd5c75993086c4c05ac1f64ceaf3fd7743d4d3
38
py
Python
data/studio21_generated/introductory/2718/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/2718/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/2718/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def timed_reading(max_length, text):
19
36
0.789474
6
38
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
2
37
19
0.823529
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
c2e3e3232f894c242f45fb20e2acfaafb3e67bdc
4,656
py
Python
turismo/sitio/migrations/0020_perfil_usuario_localidad.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
turismo/sitio/migrations/0020_perfil_usuario_localidad.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
turismo/sitio/migrations/0020_perfil_usuario_localidad.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-25 01:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sitio', '0019_auto_20170525_0052'), ] operations = [ migrations.AddField( model_name='perfil_usuario', name='localidad', field=models.CharField(choices=[('Acebal', 'Acebal'), ('Alcorta', 'Alcorta'), ('Alejandra', 'Alejandra'), ('Álvarez', 'Álvarez'), ('Alvear', 'Alvear'), ('Arequito', 'Arequito'), ('Armstrong', 'Armstrong'), ('Arroyo Seco', 'Arroyo Seco'), ('Arteaga', 'Arteaga'), ('Avellaneda', 'Avellaneda'), ('Barrancas', 'Barrancas'), ('Barrio Arroyo del Medio', 'Barrio Arroyo del Medio'), ('Barrio Mitre', 'Barrio Mitre'), ('Barrios Acapulco y Veracruz', 'Barrios Acapulco y Veracruz'), ('Berabevú', 'Berabevú'), ('Bigand', 'Bigand'), ('Bombal', 'Bombal'), ('Calchaquí', 'Calchaquí'), ('Capitán Bermúdez', 'Capitán Bermúdez'), ('Carcarañá', 'Carcarañá'), ('Carlos Pellegrini', 'Carlos Pellegrini'), ('Casilda', 'Casilda'), ('Cayastá', 'Cayastá'), ('Cañada Rosquín', 'Cañada Rosquín'), ('Centeno', 'Centeno'), ('Ceres', 'Ceres'), ('Chabás', 'Chabás'), ('Chovet', 'Chovet'), ('Coronda', 'Coronda'), ('Correa', 'Correa'), ('El Trébol', 'El Trébol'), ('Elortondo', 'Elortondo'), ('Empalme Villa Constitución', 'Empalme Villa Constitución'), ('Esperanza', 'Esperanza'), ('Estación Clucellas', 'Estación Clucellas'), ('Fighiera', 'Fighiera'), ('Firmat', 'Firmat'), ('Florencia', 'Florencia'), ('Franck', 'Franck'), ('Frontera', 'Frontera'), ('Fuentes', 'Fuentes'), ('General Lagos', 'General Lagos'), ('Gobernador Crespo', 'Gobernador Crespo'), ('Gálvez', 'Gálvez'), ('Colonia Hansen', 'Colonia Hansen'), ('Helvecia', 'Helvecia'), ('Hersilia', 'Hersilia'), ('Hughes', 'Hughes'), ('Humboldt', 'Humboldt'), ('Ibarlucea', 'Ibarlucea'), ('Juan de Garay', 'Juan de Garay'), ('La Gallareta', 'La Gallareta'), ('Laguna Paiva', 'Laguna Paiva'), ('Las Parejas', 'Las Parejas'), ('Las Rosas', 'Las Rosas'), ('Las Toscas', 'Las Toscas'), ('Lehmann', 'Lehmann'), ('Llambi Campbell', 'Llambi Campbell'), ('Los Quirquinchos', 'Los Quirquinchos'), ('Maciel', 'Maciel'), ('Malabrigo', 'Malabrigo'), ('Margarita', 'Margarita'), ('María Juana', 'María Juana'), ('María Susana', 'María Susana'), ('María Teresa', 'María Teresa'), ('Melincué', 'Melincué'), ('Moisés Ville', 'Moisés Ville'), ('Monte Oscuridad', 'Monte Oscuridad'), ('Monte Vera', 'Monte Vera'), ('Montes de Oca', 'Montes de Oca'), ('Murphy', 'Murphy'), ('Máximo Paz', 'Máximo Paz'), ('Nelson', 'Nelson'), ('Oliveros', 'Oliveros'), ('Peyrano', 'Peyrano'), ('Piamonte', 'Piamonte'), ('Pilar', 'Pilar'), ('Progreso', 'Progreso'), ('Pueblo Esther', 'Pueblo Esther'), ('Puerto Gaboto', 'Puerto Gaboto'), ('Pujato', 'Pujato'), ('Ricardone', 'Ricardone'), ('Rivadavia', 'Rivadavia'), ('Romang', 'Romang'), ('Rufino', 'Rufino'), ('San Antonio de Obligado', 'San Antonio de Obligado'), ('San Carlos Centro', 'San Carlos Centro'), ('San Carlos Sud', 'San Carlos Sud'), ('San Genaro', 'San Genaro'), ('San Genaro Norte', 'San Genaro Norte'), ('San Gregorio', 'San Gregorio'), ('San Guillermo', 'San Guillermo'), ('San Javier', 'San Javier'), ('San Jerónimo Norte', 'San Jerónimo Norte'), ('San Jerónimo Sud', 'San Jerónimo Sud'), ('San Jorge', 'San Jorge'), ('San José de la Esquina', 'San José de la Esquina'), ('San Justo', 'San Justo'), ('San Martín de las Escobas', 'San Martín de las Escobas'), ('San Vicente', 'San Vicente'), ('Sancti Spiritu', 'Sancti Spiritu'), ('Santa Clara de Buena Vista', 'Santa Clara de Buena Vista'), ('Santa Clara de Saguier', 'Santa Clara de Saguier'), ('Santa Emilia', 'Santa Emilia'), ('Santa Isabel', 'Santa Isabel'), ('Santa María Norte', 'Santa María Norte'), ('Santa Rosa de Calchines', 'Santa Rosa de Calchines'), ('Santa Teresa', 'Santa Teresa'), ('Sastre y Ortiz', 'Sastre y Ortiz'), ('Serodino', 'Serodino'), ('Soutomayor', 'Soutomayor'), ('Suardi', 'Suardi'), ('Tacuarendí', 'Tacuarendí'), ('Teodelina', 'Teodelina'), ('Timbúes', 'Timbúes'), ('Tortugas', 'Tortugas'), ('Tostado', 'Tostado'), ('Totoras', 'Totoras'), ('Vera', 'Vera'), ('Vicente Echeverría', 'Vicente Echeverría'), ('Videla', 'Videla'), ('Villa Cañás', 'Villa Cañás'), ('Villa Eloísa', 'Villa Eloísa'), ('Villa Guillermina', 'Villa Guillermina'), ('Villa Minetti', 'Villa Minetti'), ('Villa Mugueta', 'Villa Mugueta'), ('Villa Ocampo', 'Villa Ocampo'), ('Villa Trinidad', 'Villa Trinidad'), ('Wheelwright', 'Wheelwright'), ('Zavalla', 'Zavalla')], default=1, max_length=100), preserve_default=False, ), ]
211.636364
4,212
0.639605
501
4,656
5.92016
0.42515
0.012138
0.016183
0.013486
0.129467
0.047202
0.018881
0.018881
0
0
0
0.009073
0.124141
4,656
21
4,213
221.714286
0.718244
0.014605
0
0
1
0
0.630534
0.005016
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c2e83bb25fe71f00b470af75a779286f687fe7a0
46
py
Python
src/fast_norbert/__init__.py
artyompal/fast_norbert
f6c682f2ec2292ed6c0112c982dae9a18333d5ed
[ "MIT" ]
2
2020-08-26T19:20:17.000Z
2020-08-26T22:01:06.000Z
src/fast_norbert/__init__.py
artyompal/fast_norbert
f6c682f2ec2292ed6c0112c982dae9a18333d5ed
[ "MIT" ]
null
null
null
src/fast_norbert/__init__.py
artyompal/fast_norbert
f6c682f2ec2292ed6c0112c982dae9a18333d5ed
[ "MIT" ]
null
null
null
__version__ = '1.0.1' from .norbert import *
11.5
22
0.673913
7
46
3.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.078947
0.173913
46
3
23
15.333333
0.631579
0
0
0
0
0
0.108696
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c2fa23924c0dce2dfccd20ded712c0e71d35036b
64
py
Python
starlette_admin/admin/__init__.py
korcky/starlette-admin
14af70430d5cdfb2bc6e32d887d4fa0981808c5c
[ "MIT" ]
36
2019-06-12T12:34:00.000Z
2022-03-30T06:52:45.000Z
starlette_admin/admin/__init__.py
korcky/starlette-admin
14af70430d5cdfb2bc6e32d887d4fa0981808c5c
[ "MIT" ]
11
2019-05-12T21:29:45.000Z
2020-04-02T07:44:10.000Z
starlette_admin/admin/__init__.py
korcky/starlette-admin
14af70430d5cdfb2bc6e32d887d4fa0981808c5c
[ "MIT" ]
8
2020-02-22T17:55:27.000Z
2021-07-15T06:57:20.000Z
from .base import BaseAdmin from .model_admin import ModelAdmin
21.333333
35
0.84375
9
64
5.888889
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.125
64
2
36
32
0.946429
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
6c111b93c9eea151a38c5a87a38181cef110da42
8,896
py
Python
mibs/pycopia/mibs/SNMPv2_MIB.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
89
2015-03-26T11:25:20.000Z
2022-01-12T06:25:14.000Z
mibs/pycopia/mibs/SNMPv2_MIB.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
1
2015-07-05T03:27:43.000Z
2015-07-11T06:21:20.000Z
mibs/pycopia/mibs/SNMPv2_MIB.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
30
2015-04-30T01:35:54.000Z
2022-01-12T06:19:49.000Z
# python # This file is generated by a program (mib2py). Any edits will be lost. from pycopia.aid import Enum import pycopia.SMI.Basetypes Range = pycopia.SMI.Basetypes.Range Ranges = pycopia.SMI.Basetypes.Ranges from pycopia.SMI.Objects import ColumnObject, MacroObject, NotificationObject, RowObject, ScalarObject, NodeObject, ModuleObject, GroupObject # imports from SNMPv2_SMI import MODULE_IDENTITY, OBJECT_TYPE, NOTIFICATION_TYPE, TimeTicks, Counter32, snmpModules, mib_2 from SNMPv2_CONF import MODULE_COMPLIANCE, OBJECT_GROUP, NOTIFICATION_GROUP from SNMPv2_TC import DisplayString, TestAndIncr, TimeStamp class SNMPv2_MIB(ModuleObject): path = '/usr/share/mibs/ietf/SNMPv2-MIB' conformance = 5 name = 'SNMPv2-MIB' language = 2 description = 'The MIB module for SNMP entities.\n\nCopyright (C) The Internet Society (2002). This\nversion of this MIB module is part of RFC 3418;\nsee the RFC itself for full legal notices.' # nodes class system(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1]) name = 'system' class snmp(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11]) name = 'snmp' class snmpMIB(NodeObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1]) name = 'snmpMIB' class snmpMIBObjects(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1]) name = 'snmpMIBObjects' class snmpTrap(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 4]) name = 'snmpTrap' class snmpTraps(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 5]) name = 'snmpTraps' class snmpSet(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 6]) name = 'snmpSet' class snmpMIBConformance(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2]) name = 'snmpMIBConformance' class snmpMIBCompliances(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 1]) name = 'snmpMIBCompliances' class snmpMIBGroups(NodeObject): OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2]) name = 'snmpMIBGroups' # macros # types # scalars class sysDescr(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 1]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class sysObjectID(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 2]) syntaxobject = pycopia.SMI.Basetypes.ObjectIdentifier class sysUpTime(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 3]) syntaxobject = pycopia.SMI.Basetypes.TimeTicks class sysContact(ScalarObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 4]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class sysName(ScalarObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 5]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class sysLocation(ScalarObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 6]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class sysServices(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 7]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class sysORLastChange(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 8]) syntaxobject = pycopia.SMI.Basetypes.TimeStamp class snmpInPkts(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 1]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpInBadVersions(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 3]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpInBadCommunityNames(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 4]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpInBadCommunityUses(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 5]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpInASNParseErrs(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 6]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpEnableAuthenTraps(ScalarObject): status = 1 access = 5 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 30]) syntaxobject = pycopia.SMI.Basetypes.Enumeration enumerations = [Enum(1, 'enabled'), Enum(2, 'disabled')] class snmpSilentDrops(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 31]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpProxyDrops(ScalarObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 11, 32]) syntaxobject = pycopia.SMI.Basetypes.Counter32 class snmpTrapOID(ScalarObject): access = 3 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 4, 1]) syntaxobject = pycopia.SMI.Basetypes.ObjectIdentifier class snmpTrapEnterprise(ScalarObject): access = 3 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 4, 3]) syntaxobject = pycopia.SMI.Basetypes.ObjectIdentifier class snmpSetSerialNo(ScalarObject): access = 5 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 6, 1]) syntaxobject = pycopia.SMI.Basetypes.TestAndIncr # columns class sysORIndex(ColumnObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 9, 1, 1]) syntaxobject = pycopia.SMI.Basetypes.Integer32 class sysORID(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 9, 1, 2]) syntaxobject = pycopia.SMI.Basetypes.ObjectIdentifier class sysORDescr(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 9, 1, 3]) syntaxobject = pycopia.SMI.Basetypes.DisplayString class sysORUpTime(ColumnObject): access = 4 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 9, 1, 4]) syntaxobject = pycopia.SMI.Basetypes.TimeStamp # rows class sysOREntry(RowObject): status = 1 index = pycopia.SMI.Objects.IndexObjects([sysORIndex], False) OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 2, 1, 1, 9, 1]) access = 2 columns = {'sysORIndex': sysORIndex, 'sysORID': sysORID, 'sysORDescr': sysORDescr, 'sysORUpTime': sysORUpTime} # notifications (traps) class coldStart(NotificationObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 5, 1]) class warmStart(NotificationObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 5, 2]) class authenticationFailure(NotificationObject): status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 1, 5, 5]) # groups class snmpSetGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 5]) group = [snmpSetSerialNo] class systemGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 6]) group = [sysDescr, sysObjectID, sysUpTime, sysContact, sysName, sysLocation, sysServices, sysORLastChange, sysORID, sysORUpTime, sysORDescr] class snmpBasicNotificationsGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 7]) group = [coldStart, authenticationFailure] class snmpGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 8]) group = [snmpInPkts, snmpInBadVersions, snmpInASNParseErrs, snmpSilentDrops, snmpProxyDrops, snmpEnableAuthenTraps] class snmpCommunityGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 9]) group = [snmpInBadCommunityNames, snmpInBadCommunityUses] class snmpWarmStartNotificationGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 11]) group = [warmStart] class snmpNotificationGroup(GroupObject): access = 2 status = 1 OID = pycopia.SMI.Basetypes.ObjectIdentifier([1, 3, 6, 1, 6, 3, 1, 2, 2, 12]) group = [snmpTrapOID, snmpTrapEnterprise] # capabilities # special additions # Add to master OIDMAP. from pycopia import SMI SMI.update_oidmap(__name__)
29.263158
194
0.720661
1,217
8,896
5.254725
0.137223
0.112588
0.207975
0.262705
0.61939
0.605317
0.476779
0.476779
0.460203
0.460203
0
0.067018
0.146246
8,896
303
195
29.359736
0.774984
0.023943
0
0.403756
1
0.004695
0.043263
0.006114
0
0
0
0
0
1
0
false
0
0.032864
0
0.985915
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
6c18c834904360b6a30e0398146a3a11c111510d
581
py
Python
apps/mospolytech/serializers.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
null
null
null
apps/mospolytech/serializers.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
1
2022-02-08T18:33:28.000Z
2022-02-08T18:33:28.000Z
apps/mospolytech/serializers.py
drtnn/polyrobot__backend
65b45fc55e338e8a83296211d782b218d785400b
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from .models import MospolytechUser class MospolytechUserSerializer(serializers.ModelSerializer): name = serializers.CharField(required=False) surname = serializers.CharField(required=False) patronymic = serializers.CharField(required=False) class Meta: model = MospolytechUser fields = ['id', 'login', 'password', 'cached_token', 'telegram', 'name', 'surname', 'patronymic'] extra_kwargs = { 'password': {'write_only': True}, 'cached_token': {'write_only': True} }
32.277778
105
0.67642
53
581
7.301887
0.566038
0.155039
0.217054
0.255814
0
0
0
0
0
0
0
0
0.20654
581
17
106
34.176471
0.839479
0
0
0
0
0
0.165232
0
0
0
0
0
0
1
0
false
0.153846
0.153846
0
0.538462
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
6c3ebeec41c7689616016b720482a887f70f3c28
165
py
Python
Models/messages/message.py
SvenSommer/LegoSorter.BrickRecognition
1a653b597c3902f3c042182c414640eeaafcca87
[ "MIT" ]
null
null
null
Models/messages/message.py
SvenSommer/LegoSorter.BrickRecognition
1a653b597c3902f3c042182c414640eeaafcca87
[ "MIT" ]
null
null
null
Models/messages/message.py
SvenSommer/LegoSorter.BrickRecognition
1a653b597c3902f3c042182c414640eeaafcca87
[ "MIT" ]
null
null
null
import uuid class Message(object): def __init__(self): self.message_id = str(uuid.uuid4()) def get_type(self): return type(self).__name__
16.5
43
0.642424
22
165
4.363636
0.681818
0.166667
0
0
0
0
0
0
0
0
0
0.008
0.242424
165
9
44
18.333333
0.76
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
6c4dacc5dbe0be3050f8b5091f57311175511ad7
2,903
py
Python
template_container_human/labels/slice_3.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_3.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_3.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_01EE00 = ((123, 116), (123, 124), (123, 127), (123, 128), (123, 136), (123, 137), (124, 115), (124, 117), (124, 119), (124, 120), (124, 121), (124, 122), (124, 130), (124, 134), (124, 135), (124, 138), (125, 114), (125, 116), (125, 124), (125, 125), (125, 126), (125, 127), (125, 128), (125, 131), (125, 132), (125, 136), (125, 138), (126, 114), (126, 116), (126, 117), (126, 118), (126, 119), (126, 120), (126, 121), (126, 122), (126, 123), (126, 124), (126, 125), (126, 126), (126, 127), (126, 128), (126, 129), (126, 130), (126, 133), (126, 134), (126, 135), (126, 137), (127, 115), (127, 117), (127, 118), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 124), (127, 125), (127, 126), (127, 127), (127, 128), (127, 129), (127, 130), (127, 131), (127, 132), (127, 133), (127, 134), (127, 135), (127, 137), (128, 115), (128, 117), (128, 118), (128, 119), (128, 120), (128, 121), (128, 122), (128, 123), (128, 124), (128, 125), (128, 126), (128, 127), (128, 128), (128, 129), (128, 130), (128, 131), (128, 132), (128, 133), (128, 134), (128, 136), (129, 115), (129, 117), (129, 118), (129, 119), (129, 120), (129, 121), (129, 122), (129, 123), (129, 124), (129, 125), (129, 126), (129, 127), (129, 128), (129, 129), (129, 130), (129, 131), (129, 132), (129, 133), (129, 134), (129, 136), (130, 115), (130, 117), (130, 118), (130, 119), (130, 120), (130, 121), (130, 122), (130, 123), (130, 124), (130, 125), (130, 126), (130, 127), (130, 128), (130, 129), (130, 130), (130, 131), (130, 132), (130, 133), (130, 135), (131, 116), (131, 118), (131, 119), (131, 120), (131, 121), (131, 122), (131, 123), (131, 124), (131, 125), (131, 126), (131, 127), (131, 128), (131, 129), (131, 130), (131, 131), (131, 132), (131, 134), (132, 117), (132, 119), (132, 120), (132, 121), (132, 122), (132, 123), (132, 124), (132, 125), (132, 126), (132, 127), (132, 128), (132, 129), (132, 130), (132, 131), (132, 133), (133, 118), (133, 120), (133, 121), (133, 122), (133, 123), (133, 124), (133, 125), (133, 126), (133, 127), (133, 128), (133, 129), (133, 130), (133, 132), (134, 119), (134, 121), (134, 122), (134, 123), (134, 126), (134, 127), (134, 128), (134, 129), (134, 131), (135, 120), (135, 122), (135, 123), (135, 125), (135, 126), (135, 127), (135, 128), (135, 130), (136, 120), (136, 123), (136, 126), (136, 129), (137, 119), (137, 121), (137, 123), (137, 126), (137, 128), (138, 119), (138, 122), (138, 126), (138, 128), (139, 119), (139, 122), (139, 126), (140, 120), (140, 122), (140, 126), (140, 127), ) coordinates_00EE00 = ((107, 122), (108, 122), (108, 124), (109, 122), (109, 125), (110, 114), (110, 122), (110, 124), (110, 126), (111, 113), (111, 122), (111, 124), (111, 125), (111, 127), (112, 112), (112, 115), (112, 123), (112, 127), (113, 112), (113, 114), (113, 118), (113, 124), (113, 127), (114, 118), (115, 116), (115, 117), ) coordinates_E0E1E1 = ()
362.875
865
0.504306
476
2,903
3.069328
0.079832
0.008214
0
0
0
0
0
0
0
0
0
0.588893
0.168791
2,903
7
866
414.714286
0.016577
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
6c590827859ad0383d452cbb4baff37b58ccf051
77
py
Python
gesso/gesso/api/adapter.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
gesso/gesso/api/adapter.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
gesso/gesso/api/adapter.py
machineeeee/builder-python
a01415ef8675e5a11afaa0fe33f794f8ab2a98dc
[ "Apache-2.0" ]
null
null
null
class Adapter(object): def __init__(self): self.interfaces = []
15.4
28
0.61039
8
77
5.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.25974
77
4
29
19.25
0.754386
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
6c62ab2faeae450541dd34e56b36a2fd1fbbc182
24
py
Python
scripts/add.py
ErikMann/AllAboutText
9462322ddf7daaeeede85a7eeeeda3bc14b089a1
[ "MIT" ]
null
null
null
scripts/add.py
ErikMann/AllAboutText
9462322ddf7daaeeede85a7eeeeda3bc14b089a1
[ "MIT" ]
1
2021-11-13T13:58:41.000Z
2021-11-13T13:58:41.000Z
scripts/add.py
ErikMann/AllAboutText
9462322ddf7daaeeede85a7eeeeda3bc14b089a1
[ "MIT" ]
null
null
null
a = 5 b = 10 print(a+b)
6
10
0.5
7
24
1.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0.176471
0.291667
24
4
10
6
0.529412
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
1
1
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
4
666b9d09c19c82fdf3a47f8b9bb47fc0efdd49c9
97
py
Python
remote_event_bundle/event.py
franagustin/remote_event_bundle
8e5822e62fb75c9568cbe7f972980891714167b8
[ "Apache-2.0" ]
null
null
null
remote_event_bundle/event.py
franagustin/remote_event_bundle
8e5822e62fb75c9568cbe7f972980891714167b8
[ "Apache-2.0" ]
2
2021-05-18T21:04:48.000Z
2021-09-09T16:49:36.000Z
remote_event_bundle/event.py
franagustin/remote_event_bundle
8e5822e62fb75c9568cbe7f972980891714167b8
[ "Apache-2.0" ]
1
2021-05-18T20:35:29.000Z
2021-05-18T20:35:29.000Z
from applauncher.kernel import Event class RemoteEvent(Event): event_name = "remote_event"
16.166667
36
0.773196
12
97
6.083333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
37
19.4
0.890244
0
0
0
0
0
0.123711
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
666c48e0d8d9148a4cd04b0b6d9d4d2373fabbf8
55
py
Python
src/clilib/decorator/util.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
src/clilib/decorator/util.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
5
2020-08-27T17:40:29.000Z
2020-09-20T19:09:20.000Z
src/clilib/decorator/util.py
markediez/clilib
46753645b96b6482e38c14fc707a300e10faf330
[ "MIT" ]
null
null
null
def is_verb(func): return hasattr(func, '_action')
18.333333
35
0.690909
8
55
4.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.163636
55
2
36
27.5
0.782609
0
0
0
0
0
0.127273
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
4
666fb298bba2c185a509d29b3f13968bc12005a5
234
py
Python
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK8PFCHSJetCorrector_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK8PFCHSJetCorrector_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK8PFCHSJetCorrector_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms hltAK8PFCHSJetCorrector = cms.EDProducer("ChainedJetCorrectorProducer", correctors = cms.VInputTag("hltAK8PFCHSJetCorrectorL1", "hltAK8PFCHSJetCorrectorL2", "hltAK8PFCHSJetCorrectorL3") )
39
117
0.833333
16
234
12.1875
0.875
0
0
0
0
0
0
0
0
0
0
0.032407
0.076923
234
5
118
46.8
0.87037
0
0
0
0
0
0.435897
0.435897
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
66b2425adef2141d4c05b1ddd39ec32564f46b61
81
py
Python
ftp/apps.py
lj2007331/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
25
2017-04-16T15:28:39.000Z
2018-11-20T06:02:01.000Z
ftp/apps.py
linuxeye/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
2
2018-04-13T12:26:39.000Z
2018-09-04T06:35:55.000Z
ftp/apps.py
lj2007331/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
10
2017-05-24T05:18:12.000Z
2018-12-17T08:05:48.000Z
from django.apps import AppConfig class FtpConfig(AppConfig): name = 'ftp'
13.5
33
0.728395
10
81
5.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.185185
81
5
34
16.2
0.893939
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
66ba4b1d59178204489300ea07ee54f97e892ac1
66
py
Python
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import mod1 from dir_for_mod import mod2 mod1.func() mod2.func()
11
28
0.772727
12
66
4.083333
0.666667
0
0
0
0
0
0
0
0
0
0
0.070175
0.136364
66
5
29
13.2
0.789474
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
66c48fd31ab54dbceb7bb43dd4b0af4f198ccfec
20
py
Python
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/healpy/version.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/healpy/version.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
null
null
null
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/healpy/version.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
__version__='1.9.1'
10
19
0.7
4
20
2.5
0.75
0
0
0
0
0
0
0
0
0
0
0.157895
0.05
20
1
20
20
0.368421
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
66d25f0a42b7edc4d11ca49463500865a273a617
141
py
Python
pyro/templates/template.py
awakenedhaki/PyRo
b24db69739e1bacd6da8f9034919f43444534533
[ "MIT" ]
null
null
null
pyro/templates/template.py
awakenedhaki/PyRo
b24db69739e1bacd6da8f9034919f43444534533
[ "MIT" ]
null
null
null
pyro/templates/template.py
awakenedhaki/PyRo
b24db69739e1bacd6da8f9034919f43444534533
[ "MIT" ]
null
null
null
''' Title: %s Given: %s Return %s Sample Dataset: %s Sample Output: %s ''' def compute(): pass if __name__ == "__main__": pass
7.833333
26
0.58156
19
141
3.894737
0.684211
0.189189
0
0
0
0
0
0
0
0
0
0
0.255319
141
17
27
8.294118
0.704762
0.48227
0
0.5
0
0
0.123077
0
0
0
0
0
0
1
0.25
true
0.5
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
66d28fc53fcd76564d0d828449b121c20c43a251
592
py
Python
intro_py_bites/bite102_infloop_v2.py
szaster/100daysOfPython
10c15d0f815fe40a9cf56cf50f05813d256fadf4
[ "MIT" ]
null
null
null
intro_py_bites/bite102_infloop_v2.py
szaster/100daysOfPython
10c15d0f815fe40a9cf56cf50f05813d256fadf4
[ "MIT" ]
2
2019-11-20T22:44:28.000Z
2019-11-21T03:41:23.000Z
intro_py_bites/bite102_infloop_v2.py
szaster/100daysOfPython
10c15d0f815fe40a9cf56cf50f05813d256fadf4
[ "MIT" ]
null
null
null
def read_color(input_func): """ Reads input color and lower cases it """ user_supplied_color = input_func() return user_supplied_color.casefold() def is_quit(user_supplied_color): return 'quit' == user_supplied_color def print_colors(): """ In the while loop ask the user to enter a color, lowercase it and store it in a variable. Next check: - if 'quit' was entered for color, print 'bye' and break. - if the color is not in VALID_COLORS, print 'Not a valid color' and continue. - otherwise print the color in lower case. """ pass
26.909091
82
0.679054
90
592
4.311111
0.477778
0.123711
0.175258
0.108247
0
0
0
0
0
0
0
0
0.239865
592
21
83
28.190476
0.862222
0.537162
0
0
0
0
0.017621
0
0
0
0
0
0
1
0.428571
false
0.142857
0
0.142857
0.714286
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
1
0
1
0
1
1
0
0
4
dd0bc7d3f4b056817946766027241f8e1f10379f
2,235
py
Python
src/roomba/heap.py
UOBIR06/roomba
fda18a3c70fc39046758823f1963c5398b275bac
[ "BSD-3-Clause" ]
null
null
null
src/roomba/heap.py
UOBIR06/roomba
fda18a3c70fc39046758823f1963c5398b275bac
[ "BSD-3-Clause" ]
null
null
null
src/roomba/heap.py
UOBIR06/roomba
fda18a3c70fc39046758823f1963c5398b275bac
[ "BSD-3-Clause" ]
1
2022-01-27T09:56:04.000Z
2022-01-27T09:56:04.000Z
#!/usr/bin/python3 import heapq from math import ceil from typing import Any, Optional # See: https://www.redblobgames.com/pathfinding/a-star/implementation.html class Heap: def __init__(self): self.elements = [] def empty(self) -> bool: return not self.elements def put(self, item: Any, priority: float): heapq.heappush(self.elements, (priority, item)) def get(self) -> Any: return heapq.heappop(self.elements)[1] def has(self, item: Any) -> bool: for e in self.elements: _, i = e if i == item: return True return False # class Heap(object): # """Implementation of a min-heap.""" # # def __init__(self): # self.array = [] # # def push(self, element: Any, priority: float): # """Add element to heap.""" # self.array.append((element, priority)) # i = len(self.array) - 1 # # while True: # j = int(ceil(i / 2) - 1) # parent = self.array[j] # # # Swap with parent if lower priority # if parent[1] > priority: # self.array[j], self.array[i] = self.array[i], self.array[j] # else: # break # # def pop(self) -> Optional[Any]: # """Remove root element (lowest priority).""" # if not self.array: # return None # # root = self.array[0] # last = self.array.pop() # if self.array: # self.array[0] = last # # i = 0 # length = len(self.array) # # while True: # j = i # l = 2 * (i + 1) # r = 2 * (i + 1) + 1 # # if l < length and self.array[l][1] < self.array[j][1]: # j = l # if r < length and self.array[r][1] < self.array[j][1]: # j = r # # if j != i: # self.array[j], self.array[i] = self.array[i], self.array[j] # i = j # else: # break # # return root[0] # # def has(self, element: Any) -> bool: # return element in [e for e, _ in self.array] # # def __bool__(self): # return len(self.array) != 0
26.294118
77
0.478747
275
2,235
3.84
0.283636
0.204545
0.066288
0.05303
0.136364
0.100379
0.075758
0.075758
0.075758
0.075758
0
0.014327
0.375392
2,235
84
78
26.607143
0.74212
0.704251
0
0
0
0
0
0
0
0
0
0
0
1
0.277778
false
0
0.166667
0.111111
0.722222
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
dd0c8e37c8b438583ac012dbef511e45d1534522
223
py
Python
example_project/animals/admin.py
jeanwainer/django-queryset-reporter
b5ca6f32903305e5c8ffc7046d9f21978fa981ca
[ "MIT" ]
10
2015-03-03T22:58:16.000Z
2022-03-28T17:15:34.000Z
example_project/animals/admin.py
jeanwainer/django-queryset-reporter
b5ca6f32903305e5c8ffc7046d9f21978fa981ca
[ "MIT" ]
24
2015-03-03T15:08:35.000Z
2022-03-12T00:07:38.000Z
example_project/animals/admin.py
jeanwainer/django-queryset-reporter
b5ca6f32903305e5c8ffc7046d9f21978fa981ca
[ "MIT" ]
3
2015-10-21T18:19:42.000Z
2021-01-10T04:33:55.000Z
from django.contrib import admin from animals.models import ( Animal, Class, Family, Specie, ) admin.site.register(Animal) admin.site.register(Class) admin.site.register(Family) admin.site.register(Specie)
17.153846
32
0.73991
29
223
5.689655
0.448276
0.218182
0.412121
0
0
0
0
0
0
0
0
0
0.152466
223
12
33
18.583333
0.873016
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.181818
0
0.181818
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
dd29c3213338827b64ede5dffa798bb1571a6220
37
py
Python
libs/application.py
hirokikana/surplus
22895989081d68f0c8bfc717aba3d73e963c2e15
[ "MIT" ]
null
null
null
libs/application.py
hirokikana/surplus
22895989081d68f0c8bfc717aba3d73e963c2e15
[ "MIT" ]
null
null
null
libs/application.py
hirokikana/surplus
22895989081d68f0c8bfc717aba3d73e963c2e15
[ "MIT" ]
null
null
null
import bottle app = bottle.Bottle()
9.25
21
0.72973
5
37
5.4
0.6
0
0
0
0
0
0
0
0
0
0
0
0.162162
37
3
22
12.333333
0.870968
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
dd2bd02a2d9af76e7d09ded303dda849cbf7b9ba
155
py
Python
run.py
nehiridil/MLDays_nlp
20d29d01836c82361cb1b656f2e98d7435a93622
[ "MIT" ]
null
null
null
run.py
nehiridil/MLDays_nlp
20d29d01836c82361cb1b656f2e98d7435a93622
[ "MIT" ]
null
null
null
run.py
nehiridil/MLDays_nlp
20d29d01836c82361cb1b656f2e98d7435a93622
[ "MIT" ]
null
null
null
import create_corpus,preprocessing,train_word2vec corpus = create_corpus.create() corpus = preprocessing.clean(corpus) train_word2vec.train("corpus.txt")
25.833333
49
0.832258
19
155
6.578947
0.421053
0.288
0.4
0
0
0
0
0
0
0
0
0.013793
0.064516
155
5
50
31
0.848276
0
0
0
0
0
0.064516
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
dd3a97bbaf56e53ec56280673609c52973941168
3,726
py
Python
emma/exceptions.py
Nibblecomm/EmmaPython
61dca6d5ff36714547120a6410c3b5734bc59d50
[ "MIT" ]
10
2015-06-02T13:24:53.000Z
2021-07-16T15:03:45.000Z
emma/exceptions.py
Nibblecomm/EmmaPython
61dca6d5ff36714547120a6410c3b5734bc59d50
[ "MIT" ]
11
2015-09-20T01:39:36.000Z
2021-04-14T13:06:25.000Z
emma/exceptions.py
Nibblecomm/EmmaPython
61dca6d5ff36714547120a6410c3b5734bc59d50
[ "MIT" ]
12
2015-05-26T23:39:28.000Z
2021-03-15T07:42:48.000Z
"""Wrapper Exceptions""" class ApiRequestFailed(Exception): """ Denotes a failure interacting with the API, such as the HTTP 4xx Series """ pass class ApiRequest400(ApiRequestFailed): """ Denotes a HTTP 400 error while interacting with the API """ pass class ImportDeleteError(ApiRequestFailed): """ The API call to mark an import as deleted did not complete correctly """ pass class MemberChangeStatusError(ApiRequestFailed): """ The API call to change a member's status did not complete correctly """ pass class MemberCopyToGroupError(ApiRequestFailed): """ The API call to copy members into a group did not complete correctly """ pass class MemberDeleteError(ApiRequestFailed): """ The API call to delete a member did not complete correctly """ pass class MemberDropGroupError(ApiRequestFailed): """ The API call to drop groups from a member did not complete correctly """ pass class MemberUpdateError(ApiRequestFailed): """ The API call to update a member's information did not complete correctly """ pass class GroupUpdateError(ApiRequestFailed): """ The API call to update a group's information did not complete correctly """ pass class NoMemberEmailError(ApiRequestFailed): """ An API call was attempted with missing required parameters (email) """ pass class NoMemberIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (member_id) """ pass class NoMemberStatusError(ApiRequestFailed): """ An API call was attempted with missing required parameters (status) """ pass class NoGroupIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (member_group_id) """ pass class NoGroupNameError(ApiRequestFailed): """ An API call was attempted with missing required parameters (group_name) """ pass class NoImportIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (import_id) """ pass class NoFieldIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (field_id) """ pass class NoMailingIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (mailing_id) """ pass class NoSearchIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (search_id) """ pass class NoTriggerIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (trigger_id) """ pass class NoWebHookIdError(ApiRequestFailed): """ An API call was attempted with missing required parameters (webhook_id) """ pass class ClearMemberFieldInformationError(ApiRequestFailed): """ An API call to clear member info from a field did not complete correctly """ pass class MailingArchiveError(ApiRequestFailed): """ An API call to archive a mailing did not complete correctly """ pass class MailingCancelError(ApiRequestFailed): """ An API call to cancel a mailing did not complete correctly """ pass class MailingForwardError(ApiRequestFailed): """ An API call to forward a mailing did not complete correctly """ pass class SyntaxValidationError(ApiRequestFailed): """ An API call to validate message syntax did not complete correctly """ pass class WebHookDeleteError(ApiRequestFailed): """ An API call to delete a webhook did not complete correctly """ pass
20.585635
80
0.69109
407
3,726
6.302211
0.223587
0.087719
0.139181
0.165692
0.622222
0.488889
0.426511
0.39922
0.287719
0.287719
0
0.002464
0.23752
3,726
181
81
20.585635
0.900387
0.479066
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0.038462
0
0.538462
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
1
1
0
0
1
0
0
4
dd55597dfb89a2d18ab65198b3f644a630dab8bb
220
py
Python
src/BubotObj/User/UserApi.py
businka/Bubot_WebServer
75c2391624e07705dd52d7e4556cd92cc00d0d2e
[ "MIT" ]
null
null
null
src/BubotObj/User/UserApi.py
businka/Bubot_WebServer
75c2391624e07705dd52d7e4556cd92cc00d0d2e
[ "MIT" ]
2
2020-07-17T08:41:39.000Z
2020-07-17T08:50:33.000Z
src/BubotObj/User/UserApi.py
businka/Bubot_WebServer
75c2391624e07705dd52d7e4556cd92cc00d0d2e
[ "MIT" ]
null
null
null
from Bubot.Core.CatalogObjApi import CatalogObjApi # from bubot.Helpers.Сryptography.SignedData import SignedData from BubotObj.User.User import User class UserApi(CatalogObjApi): name = "User" handler = User
22
62
0.786364
26
220
6.653846
0.538462
0.104046
0
0
0
0
0
0
0
0
0
0
0.145455
220
9
63
24.444444
0.920213
0.272727
0
0
0
0
0.025478
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
dd67e16b1e46a31074f3174a1ab5d1b2e0f21020
371
py
Python
penaltymodel_core/penaltymodel/core/exceptions.py
uxvrob/penaltymodel
818f268df038cd1d66648aad8cac2358508e7865
[ "Apache-2.0" ]
1
2022-02-01T14:40:05.000Z
2022-02-01T14:40:05.000Z
penaltymodel_core/penaltymodel/core/exceptions.py
uxvrob/penaltymodel
818f268df038cd1d66648aad8cac2358508e7865
[ "Apache-2.0" ]
null
null
null
penaltymodel_core/penaltymodel/core/exceptions.py
uxvrob/penaltymodel
818f268df038cd1d66648aad8cac2358508e7865
[ "Apache-2.0" ]
1
2022-02-01T14:40:31.000Z
2022-02-01T14:40:31.000Z
""" Exceptions ---------- """ class FactoryException(Exception): """General exception for a factory being not able to produce a penalty model.""" class ImpossiblePenaltyModel(FactoryException): """PenaltyModel is impossible to build.""" class MissingPenaltyModel(FactoryException): """PenaltyModel is missing from the cache or otherwise unavailable."""
21.823529
84
0.727763
37
371
7.297297
0.756757
0.207407
0.222222
0
0
0
0
0
0
0
0
0
0.148248
371
16
85
23.1875
0.85443
0.533693
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
4
06dc084ee31ab1563f41b4beb6a8fc706f38f8af
89
py
Python
Languages/Python/python_study_4/page3/script.py
myarist/Progate
0132583c989b5ec1805d4de1a6f6861586cf152e
[ "MIT" ]
5
2021-09-08T03:07:22.000Z
2022-03-18T13:36:27.000Z
Languages/Python/python_study_4/page3/script.py
myarist/Progate
0132583c989b5ec1805d4de1a6f6861586cf152e
[ "MIT" ]
null
null
null
Languages/Python/python_study_4/page3/script.py
myarist/Progate
0132583c989b5ec1805d4de1a6f6861586cf152e
[ "MIT" ]
12
2021-05-11T07:54:20.000Z
2022-03-27T02:55:46.000Z
class MenuItem: pass # Buat instance untuk class MenuItem menu_item1 = MenuItem()
12.714286
37
0.730337
11
89
5.818182
0.727273
0.40625
0
0
0
0
0
0
0
0
0
0.014286
0.213483
89
6
38
14.833333
0.9
0.382022
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.333333
0
0
0.333333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
06e8962a0d019add030af1ba260a2e07097a3f2f
200
py
Python
chapter3/transfic/transfic/cmdhelper.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter3/transfic/transfic/cmdhelper.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter3/transfic/transfic/cmdhelper.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
import os from bgcore import logging as bglogging from fannsdb.cmdhelper import Command, PredictorsTrait, TransformsTrait DefaultCommandHelper = Command.withtraits(PredictorsTrait, TransformsTrait)
28.571429
75
0.86
20
200
8.6
0.7
0.348837
0
0
0
0
0
0
0
0
0
0
0.1
200
7
75
28.571429
0.955556
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
660cca3b206745f946b6b326e882248e6d7ae3ca
48
py
Python
graphql_countries/relay/__init__.py
urantialife/django-graphql-countries
461a96c814d54546cb413552fcf1945c56d9a510
[ "MIT" ]
2
2019-06-19T12:05:33.000Z
2021-07-06T07:26:02.000Z
graphql_countries/relay/__init__.py
urantialife/django-graphql-countries
461a96c814d54546cb413552fcf1945c56d9a510
[ "MIT" ]
null
null
null
graphql_countries/relay/__init__.py
urantialife/django-graphql-countries
461a96c814d54546cb413552fcf1945c56d9a510
[ "MIT" ]
null
null
null
from .queries import Query __all__ = ['Query']
12
26
0.708333
6
48
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.166667
48
3
27
16
0.75
0
0
0
0
0
0.104167
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
661eaddb5508b74edc9d4e9a1221ada73eba2b0f
81
py
Python
show/off/apps.py
CollinsMuiruri/Show-Off
a6797e026a309c276e7f03d5a86493c77e75acd7
[ "Unlicense" ]
null
null
null
show/off/apps.py
CollinsMuiruri/Show-Off
a6797e026a309c276e7f03d5a86493c77e75acd7
[ "Unlicense" ]
null
null
null
show/off/apps.py
CollinsMuiruri/Show-Off
a6797e026a309c276e7f03d5a86493c77e75acd7
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class OffConfig(AppConfig): name = 'off'
13.5
33
0.728395
10
81
5.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.185185
81
5
34
16.2
0.893939
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b0915b3c63cd28136cae4515a57893f7a0aa5a99
127
py
Python
src/zserio_pubsub_paho_mqtt/__init__.py
ndsev/zserio-pubsub-paho-mqtt-python
42c9bc6c483a5363ae6c9a1a14542647b08c5970
[ "BSD-3-Clause" ]
1
2021-01-28T14:10:49.000Z
2021-01-28T14:10:49.000Z
src/zserio_pubsub_paho_mqtt/__init__.py
ndsev/zserio-pubsub-paho-mqtt-python
42c9bc6c483a5363ae6c9a1a14542647b08c5970
[ "BSD-3-Clause" ]
null
null
null
src/zserio_pubsub_paho_mqtt/__init__.py
ndsev/zserio-pubsub-paho-mqtt-python
42c9bc6c483a5363ae6c9a1a14542647b08c5970
[ "BSD-3-Clause" ]
null
null
null
""" Sample implementation of Zserio Pub/Sub Paho MQTT backend. """ from zserio_pubsub_paho_mqtt.mqtt_client import MqttClient
21.166667
58
0.811024
18
127
5.5
0.777778
0.161616
0
0
0
0
0
0
0
0
0
0
0.11811
127
5
59
25.4
0.883929
0.456693
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b0b99456aa41d0503e1e79845c51355e491d5740
389
py
Python
app_collaborative_sci_workflow/pipeline_modules/Filter_axt_to_lav/Filter_axt_to_lav_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
app_collaborative_sci_workflow/pipeline_modules/Filter_axt_to_lav/Filter_axt_to_lav_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
app_collaborative_sci_workflow/pipeline_modules/Filter_axt_to_lav/Filter_axt_to_lav_main.py
pseudoPixels/SourceFlow
e1738c8b838c71b18598ceca29d7c487c76f876b
[ "MIT" ]
null
null
null
import subprocess pipe = subprocess.Popen([python, "/home/ubuntu/Webpage/app_collaborative_sci_workflow/GalaxyToolBase/filters/axt_to_lav.py", /galaxy/data/dbkey_1/seq/%s.nib:dbkey_1:GALAXY_DATA_INDEX_DIR/shared/ucsc/chrom/dbkey_1.len, /galaxy/data/dbkey_2/seq/%s.nib:dbkey_2:GALAXY_DATA_INDEX_DIR/shared/ucsc/chrom/dbkey_2.len, align_input, lav_file, seq_file1, seq_file2]).communicate()
129.666667
370
0.830334
66
389
4.575758
0.575758
0.13245
0.099338
0.07947
0.251656
0.251656
0.251656
0.251656
0
0
0
0.02122
0.030848
389
3
370
129.666667
0.779841
0
0
0
0
0
0.226221
0.226221
0
0
0
0
0
0
null
null
0
0.5
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
b0ce2274ef078c373e8c3eff0f453a9122c008c3
831
py
Python
app/models/User.py
winlongit/lemeng-mp-server
e1f9ded246e5dbe2a8bfddb85495763ed450d48e
[ "Apache-2.0" ]
null
null
null
app/models/User.py
winlongit/lemeng-mp-server
e1f9ded246e5dbe2a8bfddb85495763ed450d48e
[ "Apache-2.0" ]
1
2021-03-25T23:01:17.000Z
2021-03-25T23:01:17.000Z
app/models/User.py
winlongit/lemeng-mp-server
e1f9ded246e5dbe2a8bfddb85495763ed450d48e
[ "Apache-2.0" ]
null
null
null
from app.dbengines import db from Picture import Picture import datetime # 用户管理model class User(db.Document): xcc_openid = db.StringField(verbose_name='微信对应的小程序id') tel = db.StringField(verbose_name='手机') name = db.StringField(verbose_name='姓名') sex = db.StringField(verbose_name='性别') id_card = db.StringField(verbose_name='身份证号码') province = db.StringField(verbose_name='省') city = db.StringField(verbose_name='市') area = db.StringField(verbose_name='区') address = db.StringField(verbose_name='地址') avatar = db.ReferenceField(Picture, verbose='头像') create_time = db.DateTimeField(default=datetime.datetime.now, verbose_name='创建时间') update_time = db.DateTimeField(default=datetime.datetime.now, verbose_name='更新时间') def __unicode__(self): return str(self.xcc_openid)
36.130435
86
0.729242
108
831
5.425926
0.453704
0.206485
0.307167
0.368601
0.191126
0.191126
0.191126
0.191126
0.191126
0
0
0
0.144404
831
22
87
37.772727
0.824191
0.01083
0
0
0
0
0.043902
0
0
0
0
0
0
1
0.055556
false
0
0.166667
0.055556
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
b0d022efd1ccd37126fc4e66fea32f78fa6d56be
203
py
Python
dice.py
flatlining/micro-bit
26a49ae8603f1efd25174117534b7efee1894be8
[ "MIT" ]
null
null
null
dice.py
flatlining/micro-bit
26a49ae8603f1efd25174117534b7efee1894be8
[ "MIT" ]
null
null
null
dice.py
flatlining/micro-bit
26a49ae8603f1efd25174117534b7efee1894be8
[ "MIT" ]
null
null
null
from microbit import * import random while True: if accelerometer.was_gesture("shake"): display.show(Image.ALL_CLOCKS, loop=False, delay=100) display.show(str(random.randint(1, 6)))
25.375
61
0.699507
28
203
5
0.857143
0.157143
0
0
0
0
0
0
0
0
0
0.02994
0.17734
203
7
62
29
0.808383
0
0
0
0
0
0.024631
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
b0d9e93fd601d1cc5c78a14b73a30e72c1ca178e
417
py
Python
adv/armored_yachiyo.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
22
2020-04-04T17:34:16.000Z
2021-09-25T00:22:23.000Z
adv/armored_yachiyo.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
92
2020-04-04T15:30:34.000Z
2022-03-24T01:43:11.000Z
adv/armored_yachiyo.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
37
2020-04-16T02:47:07.000Z
2021-03-28T23:18:50.000Z
from core.advbase import * class Armored_Yachiyo(Adv): def prerun(self): if self.condition("unrelenting_blade"): Timer(self.unrelenting_blade).on(15) Timer(self.unrelenting_blade).on(30) Timer(self.unrelenting_blade).on(45) def unrelenting_blade(self, t): Modifier("a1_unrelenting_blade", "att", "passive", 0.2).on() variants = {None: Armored_Yachiyo}
26.0625
68
0.654676
52
417
5.076923
0.557692
0.363636
0.227273
0.284091
0.306818
0
0
0
0
0
0
0.027439
0.213429
417
15
69
27.8
0.777439
0
0
0
0
0
0.11271
0
0
0
0
0
0
1
0.2
false
0.1
0.1
0
0.4
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
b0da7d150dfdca819b1417ac244a8593fe3a0a29
152
py
Python
runtests.py
thomas545/drf-errors-formatter
a6571e63644aa91c562494a084a929a5df227f46
[ "MIT" ]
1
2021-08-20T18:19:57.000Z
2021-08-20T18:19:57.000Z
runtests.py
thomas545/drf-errors-formatter
a6571e63644aa91c562494a084a929a5df227f46
[ "MIT" ]
null
null
null
runtests.py
thomas545/drf-errors-formatter
a6571e63644aa91c562494a084a929a5df227f46
[ "MIT" ]
1
2021-08-16T16:44:46.000Z
2021-08-16T16:44:46.000Z
# This file mainly exists to allow python setup.py test to work. # flake8: noqa def runtests(): pass if __name__ == '__main__': runtests()
12.666667
64
0.664474
21
152
4.428571
0.904762
0
0
0
0
0
0
0
0
0
0
0.008621
0.236842
152
11
65
13.818182
0.793103
0.493421
0
0
0
0
0.109589
0
0
0
0
0
0
1
0.25
true
0.25
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
b0dd9196efaaf3fc9d82f8658470c98f4a23cdb9
201
py
Python
backend/app/services/__init__.py
shvixxl/tablic
3ca2f026d84fab9692e7e5adde74a9716266ff5e
[ "MIT" ]
2
2021-02-05T16:55:41.000Z
2021-02-07T21:46:37.000Z
backend/app/services/__init__.py
shvixxl/tablic
3ca2f026d84fab9692e7e5adde74a9716266ff5e
[ "MIT" ]
1
2021-10-30T15:42:53.000Z
2021-10-30T15:42:53.000Z
backend/app/services/__init__.py
shvixxl/tablic
3ca2f026d84fab9692e7e5adde74a9716266ff5e
[ "MIT" ]
null
null
null
"""Application services.""" from .auth import ( create_user, authenticate_user, generate_access_token, ) from .table import ( create_table, ) from .chat import ( create_message, )
14.357143
27
0.681592
22
201
5.954545
0.636364
0.274809
0
0
0
0
0
0
0
0
0
0
0.21393
201
13
28
15.461538
0.829114
0.104478
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
0.272727
0
0.272727
0
1
0
0
null
1
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
1
0
0
0
0
0
0
4
b0fc8baea08d3f79d2b85c9444564061b86f7184
42
py
Python
src/scott/utils/__init__.py
coluccigiovanni16/GraphMachines-
d2aa1f1322400019f86b40bdb55ef332b947e580
[ "MIT" ]
10
2019-12-12T14:09:01.000Z
2021-08-19T20:07:55.000Z
src/scott/utils/__init__.py
coluccigiovanni16/GraphMachines-
d2aa1f1322400019f86b40bdb55ef332b947e580
[ "MIT" ]
1
2022-02-09T14:23:19.000Z
2022-02-09T14:23:19.000Z
src/scott/utils/__init__.py
elbarto91/GraphMachines-
5234a6fa6bf856ae0c39f9c916378825b7159b02
[ "MIT" ]
null
null
null
__all__ = ['smiles2mol'] from . import *
10.5
24
0.642857
4
42
5.75
1
0
0
0
0
0
0
0
0
0
0
0.029412
0.190476
42
3
25
14
0.647059
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9fdfd39909ce2f330cc50c5e855cd00723129b72
657
py
Python
test/conftest.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
72
2021-10-20T01:17:54.000Z
2022-02-22T07:40:35.000Z
test/conftest.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
7
2021-10-21T21:44:00.000Z
2022-03-17T18:24:42.000Z
test/conftest.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
16
2021-10-20T02:07:46.000Z
2022-03-16T08:18:37.000Z
from pathlib import Path import pytest import cargan ############################################################################### # Testing fixtures ############################################################################### @pytest.fixture(scope='session') def audio(): """Retrieve the test audio""" return cargan.load.audio(path('test.wav')) ############################################################################### # Utilities ############################################################################### def path(file): """Retrieve the path to the test file""" return Path(__file__).parent / 'assets' / file
24.333333
79
0.34551
44
657
5.068182
0.545455
0.098655
0
0
0
0
0
0
0
0
0
0
0.108067
657
27
80
24.333333
0.380546
0.130898
0
0
0
0
0.086066
0
0
0
0
0
0
1
0.25
false
0
0.375
0
0.875
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
1
0
0
1
0
1
0
0
4
9fe6913eb3a75d0602f2a670fc79a727bc0c1770
153
py
Python
examples/motor.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
1
2022-02-07T11:55:55.000Z
2022-02-07T11:55:55.000Z
examples/motor.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
null
null
null
examples/motor.py
jncraton/robot-inventor-cli
356db4a2d6e294a5a1c3f748e8fc7d9611232211
[ "MIT" ]
null
null
null
""" Spin Motor A slowly """ import hub import time while True: if hub.port.A.motor: hub.port.A.motor.run_at_speed(25) time.sleep(1000)
12.75
41
0.647059
26
153
3.730769
0.653846
0.14433
0.164948
0.268041
0
0
0
0
0
0
0
0.05042
0.222222
153
11
42
13.909091
0.764706
0.124183
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
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
1
0
1
0
0
0
0
4
b030880c04fe88c37397d87b4ddb53374820fd0a
63
py
Python
001/001.py
jaredks/euler
b90f0d0c8308b26fd282b9807bfd0d6ed0dd88f4
[ "BSD-3-Clause" ]
1
2021-02-22T12:08:52.000Z
2021-02-22T12:08:52.000Z
001/001.py
jaredks/euler
b90f0d0c8308b26fd282b9807bfd0d6ed0dd88f4
[ "BSD-3-Clause" ]
null
null
null
001/001.py
jaredks/euler
b90f0d0c8308b26fd282b9807bfd0d6ed0dd88f4
[ "BSD-3-Clause" ]
null
null
null
print sum(n for n in xrange(1000) if n % 3 == 0 or n % 5 == 0)
31.5
62
0.555556
16
63
2.1875
0.75
0
0
0
0
0
0
0
0
0
0
0.177778
0.285714
63
1
63
63
0.6
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
b04ec9dbea7d8a4f7f8177f747c3a84a2ebac81f
138
py
Python
log/apps.py
j3ygh/ctdb
3c4b90c5265125fc37aa9ac569b7f39ffd5b13c9
[ "MIT" ]
1
2021-12-27T02:18:19.000Z
2021-12-27T02:18:19.000Z
log/apps.py
j3ygh/ctdb
3c4b90c5265125fc37aa9ac569b7f39ffd5b13c9
[ "MIT" ]
null
null
null
log/apps.py
j3ygh/ctdb
3c4b90c5265125fc37aa9ac569b7f39ffd5b13c9
[ "MIT" ]
1
2022-03-14T06:52:48.000Z
2022-03-14T06:52:48.000Z
from django.apps import AppConfig class LogConfig(AppConfig): name = 'log' def ready(self): import log.signals # noqa
15.333333
34
0.65942
17
138
5.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.253623
138
8
35
17.25
0.883495
0.028986
0
0
0
0
0.022727
0
0
0
0
0
0
1
0.2
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b05ed6d0c525ed7ebc8aaade6b465460c132ba79
505
py
Python
tools/lib/vectoranalysis3D.py
jmark/turbubox
17fd3214ad4cb0c360bdb628d7bd270e8b00aadc
[ "MIT" ]
null
null
null
tools/lib/vectoranalysis3D.py
jmark/turbubox
17fd3214ad4cb0c360bdb628d7bd270e8b00aadc
[ "MIT" ]
null
null
null
tools/lib/vectoranalysis3D.py
jmark/turbubox
17fd3214ad4cb0c360bdb628d7bd270e8b00aadc
[ "MIT" ]
null
null
null
import numpy as np def diff_x(f,Delta=1): return (np.roll(f,-1,axis=0) - np.roll(f,1,axis=0))/2./Delta def diff_y(f,Delta=1): return (np.roll(f,-1,axis=1) - np.roll(f,1,axis=1))/2./Delta def diff_z(f,Delta=1): return (np.roll(f,-1,axis=2) - np.roll(f,1,axis=2))/2./Delta def curl(X,Y,Z,Dx,Dy,Dz): dX = (diff_y(Z,Dy) - diff_z(Y,Dz)) dY = (diff_z(X,Dz) - diff_x(Z,Dx)) dZ = (diff_x(Y,Dx) - diff_y(X,Dy)) return (dX,dY,dZ) def norm(X,Y,Z): return X**2 + Y**2 + Z**2
24.047619
64
0.568317
118
505
2.355932
0.186441
0.129496
0.151079
0.172662
0.420863
0.420863
0.269784
0.269784
0.269784
0
0
0.050725
0.180198
505
20
65
25.25
0.620773
0
0
0
0
0
0
0
0
0
0
0
0
1
0.357143
false
0
0.071429
0.285714
0.785714
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
c661c95f2a52b49bc345c07841cfec5e920be081
11,125
py
Python
Thirdparty/libtheora/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
5
2020-02-11T12:04:17.000Z
2022-01-30T10:18:29.000Z
Thirdparty/libtheora/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
null
null
null
Thirdparty/libtheora/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
4
2019-11-28T19:24:34.000Z
2021-08-24T19:12:50.000Z
import os import shutil import build_utils import build_config def get_supported_targets(platform): if platform == 'win32': return ['win32', 'win10'] elif platform == 'darwin': return ['macos', 'ios'] elif platform == 'linux': return ['linux'] else: return [] def get_dependencies_for_target(target): return ['libogg'] def build_for_target(target, working_directory_path, root_project_path): if target == 'win32': _build_win32(working_directory_path, root_project_path) elif target == 'win10': _build_win10(working_directory_path, root_project_path) elif target == 'macos': _build_macos(working_directory_path, root_project_path) elif target == 'ios': _build_ios(working_directory_path, root_project_path) elif target == 'linux': _build_linux(working_directory_path, root_project_path) def get_download_info(): return 'http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2' def _download_and_extract(working_directory_path, source_folder_prefix=''): source_folder_name = 'libtheora_source' + source_folder_prefix source_folder_path = os.path.join( working_directory_path, source_folder_name) url = get_download_info() build_utils.download_and_extract( url, working_directory_path, source_folder_path, build_utils.get_url_file_name_no_ext(url)) return source_folder_path def _patch_sources(source_folder_path, working_directory_path, patch_postifx): try: if source_folder_path in _patch_sources.cache: return except AttributeError: _patch_sources.cache = [] pass # Apply fixes build_utils.apply_patch( os.path.abspath('patch' + patch_postifx + '.diff'), working_directory_path) _patch_sources.cache.append(source_folder_path) def _build_win32(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) _patch_sources(source_folder_path, working_directory_path, '_win32') vc_solution_file_path = os.path.join( source_folder_path, 'win32/VS2008/libtheora_static.sln') libogg_include_path = os.path.abspath( os.path.join( working_directory_path, '../libogg/libogg_source/include')) env = build_utils.get_win32_vs_x86_env() env['INCLUDE'] = libogg_include_path + ';' + env['INCLUDE'] build_utils.build_vs( vc_solution_file_path, 'Debug', 'Win32', 'libtheora_static', build_config.get_msvc_toolset_ver_win32(), env=env) build_utils.build_vs( vc_solution_file_path, 'Release', 'Win32', 'libtheora_static', build_config.get_msvc_toolset_ver_win32(), env=env) env = build_utils.get_win32_vs_x64_env() env['INCLUDE'] = libogg_include_path + ';' + env['INCLUDE'] build_utils.build_vs( vc_solution_file_path, 'Debug', 'x64', 'libtheora_static', build_config.get_msvc_toolset_ver_win32(), env=env) build_utils.build_vs( vc_solution_file_path, 'Release', 'x64', 'libtheora_static', build_config.get_msvc_toolset_ver_win32(), env=env) libraries_win_root = os.path.join(root_project_path, 'Libs/lib_CMake/win') lib_path_x86_debug = os.path.join( source_folder_path, 'win32/VS2008/Win32/Debug/libtheora_static.lib') lib_path_x86_release = os.path.join( source_folder_path, 'win32/VS2008/Win32/Release/libtheora_static.lib') shutil.copyfile( lib_path_x86_debug, os.path.join(libraries_win_root, 'x86/Debug/libtheora_win.lib')) shutil.copyfile( lib_path_x86_release, os.path.join(libraries_win_root, 'x86/Release/libtheora_win.lib')) lib_path_x64_debug = os.path.join( source_folder_path, 'win32/VS2008/x64/Debug/libtheora_static.lib') lib_path_x64_release = os.path.join( source_folder_path, 'win32/VS2008/x64/Release/libtheora_static.lib') shutil.copyfile( lib_path_x64_debug, os.path.join(libraries_win_root, 'x64/Debug/theora_static_d.lib')) shutil.copyfile( lib_path_x64_release, os.path.join(libraries_win_root, 'x64/Release/theora_static.lib')) _copy_headers(source_folder_path, root_project_path) def _build_win10(working_directory_path, root_project_path): prefix = '_win10' source_folder_path = _download_and_extract(working_directory_path, prefix) _patch_sources(source_folder_path, working_directory_path, prefix) vc_solution_file_path = os.path.join( source_folder_path, 'win32/VS2008/libtheora_static.sln') libogg_include_path = os.path.abspath(os.path.join( working_directory_path, '../libogg/libogg_source_win10/include')) env = build_utils.get_win10_vs_x86_env() env['INCLUDE'] = libogg_include_path + ';' + env['INCLUDE'] build_utils.build_vs( vc_solution_file_path, 'Debug', 'Win32', 'libtheora_static', env=env) build_utils.build_vs( vc_solution_file_path, 'Release', 'Win32', 'libtheora_static', env=env) env = build_utils.get_win10_vs_x64_env() env['INCLUDE'] = libogg_include_path + ';' + env['INCLUDE'] build_utils.build_vs( vc_solution_file_path, 'Debug', 'x64', 'libtheora_static', env=env) build_utils.build_vs( vc_solution_file_path, 'Release', 'x64', 'libtheora_static', env=env) env = build_utils.get_win10_vs_arm_env() env['INCLUDE'] = libogg_include_path + ';' + env['INCLUDE'] build_utils.build_vs( vc_solution_file_path, 'Debug', 'ARM', 'libtheora_static', env=env) build_utils.build_vs( vc_solution_file_path, 'Release', 'ARM', 'libtheora_static', env=env) libraries_win10_root = os.path.join( root_project_path, 'Libs/lib_CMake/win10') lib_path_x86_debug = os.path.join( source_folder_path, 'win32/VS2008/Win32/Debug/libtheora_static.lib') lib_path_x86_release = os.path.join( source_folder_path, 'win32/VS2008/Win32/Release/libtheora_static.lib') shutil.copyfile( lib_path_x86_debug, os.path.join( libraries_win10_root, 'Win32/Debug/libtheora10_static.lib')) shutil.copyfile( lib_path_x86_release, os.path.join( libraries_win10_root, 'Win32/Release/libtheora10_static.lib')) lib_path_x64_debug = os.path.join( source_folder_path, 'win32/VS2008/x64/Debug/libtheora_static.lib') lib_path_x64_release = os.path.join( source_folder_path, 'win32/VS2008/x64/Release/libtheora_static.lib') shutil.copyfile( lib_path_x64_debug, os.path.join(libraries_win10_root, 'x64/Debug/libtheora10_static.lib')) shutil.copyfile( lib_path_x64_release, os.path.join( libraries_win10_root, 'x64/Release/libtheora10_static.lib')) lib_path_x64_debug = os.path.join( source_folder_path, 'win32/VS2008/ARM/Debug/libtheora_static.lib') lib_path_x64_release = os.path.join( source_folder_path, 'win32/VS2008/ARM/Release/libtheora_static.lib') shutil.copyfile( lib_path_x64_debug, os.path.join(libraries_win10_root, 'arm/Debug/libtheora10_static.lib')) shutil.copyfile( lib_path_x64_release, os.path.join( libraries_win10_root, 'arm/Release/libtheora10_static.lib')) _copy_headers(source_folder_path, root_project_path) def _build_macos(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) ogg_install_dir_macos = os.path.join( working_directory_path, '../libogg/gen/install_macos') install_dir_macos = os.path.join( working_directory_path, 'gen/install_macos') # --disable-asm since it won't compile for x64 otherwise # do not postclean since binaries may be used for cross compiling build_utils.build_with_autotools( source_folder_path, ['--with-ogg=' + ogg_install_dir_macos, '--disable-asm', '--disable-examples', '--host=x86_64-apple-darwin', '--disable-shared', '--enable-static'], install_dir_macos, env=build_utils.get_autotools_macos_env(), postclean=False) shutil.copyfile( os.path.join(install_dir_macos, 'lib/libtheora.a'), os.path.join( root_project_path, os.path.join('Libs/lib_CMake/mac/libtheora_macos.a'))) _copy_headers_from_installation(install_dir_macos, root_project_path) def _build_ios(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) ogg_install_dir_ios = os.path.join( working_directory_path, '../libogg/gen/install_ios') install_dir_ios = os.path.join( working_directory_path, 'gen/install_ios') build_utils.build_with_autotools( source_folder_path, ['--with-ogg=' + ogg_install_dir_ios, '--disable-examples', '--host=armv7-apple-darwin', '--disable-shared', '--enable-static'], install_dir_ios, env=build_utils.get_autotools_ios_env()) shutil.copyfile( os.path.join(install_dir_ios, 'lib/libtheora.a'), os.path.join( root_project_path, os.path.join('Libs/lib_CMake/ios/libtheora_ios.a'))) _copy_headers_from_installation(install_dir_ios, root_project_path) def _build_linux(working_directory_path, root_project_path): source_folder_path = _download_and_extract(working_directory_path) env = build_utils.get_autotools_linux_env() ogg_install_dir = os.path.join(working_directory_path, '../libogg/gen/install_linux') install_dir = os.path.join(working_directory_path, 'gen/install_linux') # --disable-asm since it won't compile for x64 otherwise # do not postclean since binaries may be used for cross compiling build_utils.build_with_autotools( source_folder_path, ['--with-ogg=' + ogg_install_dir, '--disable-asm', '--disable-examples', '--disable-shared', '--enable-static'], install_dir, env=env, postclean=False) shutil.copyfile(os.path.join(install_dir, 'lib/libtheora.a'), os.path.join(root_project_path, 'Libs/lib_CMake/linux/libtheora.a')) _copy_headers_from_installation(install_dir, root_project_path) def _copy_headers(source_folder_path, root_project_path): include_path = os.path.join(root_project_path, 'Libs/include/theora') build_utils.clean_copy_includes( os.path.join(source_folder_path, 'include/theora'), include_path) def _copy_headers_from_installation(install_dir_path, root_project_path): include_path = os.path.join(root_project_path, 'Libs/include/theora') build_utils.clean_copy_includes( os.path.join(install_dir_path, 'include/theora'), include_path)
35.657051
89
0.695461
1,436
11,125
4.966574
0.090529
0.040381
0.063096
0.039961
0.84899
0.799495
0.763881
0.731913
0.634184
0.585951
0
0.028145
0.198382
11,125
311
90
35.771704
0.771586
0.022382
0
0.486056
0
0.003984
0.187489
0.103956
0
0
0
0
0
1
0.051793
false
0.003984
0.015936
0.007968
0.099602
0
0
0
0
null
0
0
0
1
1
1
1
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
4
c67bb29c8162a3531968e179a497008631d3e965
180
py
Python
time.py
ddfunk2/Using-the-time-module-again
af83ce56950f016208de750f0f0b74b843fcd00f
[ "BSD-2-Clause" ]
null
null
null
time.py
ddfunk2/Using-the-time-module-again
af83ce56950f016208de750f0f0b74b843fcd00f
[ "BSD-2-Clause" ]
null
null
null
time.py
ddfunk2/Using-the-time-module-again
af83ce56950f016208de750f0f0b74b843fcd00f
[ "BSD-2-Clause" ]
null
null
null
#Import the time module import time #The only command I know is this: time.sleep(1) #You can change the 1 to any number you'd like. It's just how many seconds you want to wait.
20
92
0.738889
37
180
3.594595
0.756757
0
0
0
0
0
0
0
0
0
0
0.013889
0.2
180
8
93
22.5
0.909722
0.805556
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c69949d1ab52df8483a23dde8854893dae25cbc3
686
py
Python
OldAnimeReal/mathutils.py
bubble-07/AnimeReal
b12193f10d231ee85a2a86ec2defeca0b5a4e240
[ "BSD-2-Clause" ]
null
null
null
OldAnimeReal/mathutils.py
bubble-07/AnimeReal
b12193f10d231ee85a2a86ec2defeca0b5a4e240
[ "BSD-2-Clause" ]
null
null
null
OldAnimeReal/mathutils.py
bubble-07/AnimeReal
b12193f10d231ee85a2a86ec2defeca0b5a4e240
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import tensorflow as tf #Helper function to compute bell curves of a given height and spread #These are just vertically-scaled versions of the corresponding normal distribution def bellCurve(x, mu, sigma, height): return tf.exp(-(((x - mu) ** 2) / (2 * (sigma ** 2)))) * height def avg(x, y): return (x + y) / 2.0 #Mean squared error loss def mse_loss(x, y): return tf.losses.mean_squared_error(x, y) #Mean absolute error loss def mabs_loss(x, y): return tf.losses.mean_squared_error(y, x, reduction=tf.losses.Reduction.SUM_OVER_BATCH_SIZE)
27.44
96
0.740525
110
686
4.409091
0.5
0.020619
0.098969
0.049485
0.148454
0.148454
0.148454
0.148454
0.148454
0
0
0.008726
0.164723
686
24
97
28.583333
0.837696
0.285714
0
0
0
0
0
0
0
0
0
0
0
1
0.307692
false
0
0.384615
0.307692
1
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
c69c07324534da1416899c6c7541bfef746ba8a6
712
py
Python
solthiruthi/peyarchorkal.py
nv-d/open-tamil
0fcb1cece5ffd6263210db987bede09566353e80
[ "MIT" ]
218
2016-03-19T20:59:17.000Z
2022-03-31T03:35:32.000Z
solthiruthi/peyarchorkal.py
nv-d/open-tamil
0fcb1cece5ffd6263210db987bede09566353e80
[ "MIT" ]
132
2016-02-23T06:16:32.000Z
2022-02-17T05:16:43.000Z
solthiruthi/peyarchorkal.py
nv-d/open-tamil
0fcb1cece5ffd6263210db987bede09566353e80
[ "MIT" ]
62
2016-03-19T20:59:26.000Z
2022-03-01T11:34:48.000Z
## -*- coding: utf-8 -*- ## (C) 2020 Muthiah Annamalai ## from tamil.utf8 import get_letters from tamil.utils.santhirules import joinWords def make_plural(peyar): # கூட்டுப்பெயர்களுக்கு மட்டுமே இது சேறும். return joinWords(peyar, "கள்") def make_possessive_1(peyar): return joinWords(peyar, "இன்") def make_possessive_2(peyar): return joinWords( make_possessive_1(peyar) , "அது") def make_possessive_3(peyar): return joinWords(peyar,"ற்கு") def make_possessive_4(peyar): return joinWords(peyar,"ஆல்") def make_all_variants(பெயர்): return [_சார்பு(பெயர்) for _சார்பு in [make_plural,make_possessive_1,make_possessive_2,\ make_possessive_3,make_possessive_4]]
27.384615
92
0.689607
146
712
3.410959
0.342466
0.253012
0.160643
0.03012
0.024096
0.024096
0
0
0
0
0
0.025
0.157303
712
25
93
28.48
0.751667
0.125
0
0
0
0
0.026016
0
0
0
0
0
0
1
0.4
false
0
0.133333
0.4
0.933333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
c6af64b3eef4458023fc038a4965377b8905142c
68
py
Python
tt/cross/__init__.py
rballester/ttpy
a2fdf08fae9d34cb1e5ba28482e82e04b249911b
[ "MIT" ]
null
null
null
tt/cross/__init__.py
rballester/ttpy
a2fdf08fae9d34cb1e5ba28482e82e04b249911b
[ "MIT" ]
null
null
null
tt/cross/__init__.py
rballester/ttpy
a2fdf08fae9d34cb1e5ba28482e82e04b249911b
[ "MIT" ]
1
2021-01-10T07:02:09.000Z
2021-01-10T07:02:09.000Z
from rectcross import cross as rect_cross __all__ = ['rect_cross']
17
41
0.779412
10
68
4.7
0.7
0.382979
0
0
0
0
0
0
0
0
0
0
0.147059
68
3
42
22.666667
0.810345
0
0
0
0
0
0.149254
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c6b281553b8cf462111781c2da9cf85c2e0e8d64
85
py
Python
bleet/apps.py
ntoll/facebaaak
9a1a555f36bfa358d83ceebfd10da8e0146f3f2f
[ "MIT" ]
null
null
null
bleet/apps.py
ntoll/facebaaak
9a1a555f36bfa358d83ceebfd10da8e0146f3f2f
[ "MIT" ]
null
null
null
bleet/apps.py
ntoll/facebaaak
9a1a555f36bfa358d83ceebfd10da8e0146f3f2f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BleetConfig(AppConfig): name = "bleet"
14.166667
33
0.741176
10
85
6.3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.176471
85
5
34
17
0.9
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c6eb773ed89827195c82c59b4546d761631501ce
246
py
Python
tests/test_camera.py
anibali/aspset-510
77b5e7c87fac1e6a45686eb45f6fb1190132e040
[ "CC0-1.0" ]
32
2021-05-03T07:17:39.000Z
2022-03-09T15:34:47.000Z
tests/test_camera.py
anibali/aspset-510
77b5e7c87fac1e6a45686eb45f6fb1190132e040
[ "CC0-1.0" ]
null
null
null
tests/test_camera.py
anibali/aspset-510
77b5e7c87fac1e6a45686eb45f6fb1190132e040
[ "CC0-1.0" ]
null
null
null
from glupy.math import to_cartesian from numpy.testing import assert_allclose def test_world_to_image_space(camera, joints_3d, joints_2d): actual = to_cartesian(camera.world_to_image_space(joints_3d)) assert_allclose(actual, joints_2d)
30.75
65
0.825203
38
246
4.947368
0.526316
0.117021
0.12766
0.180851
0
0
0
0
0
0
0
0.018265
0.109756
246
7
66
35.142857
0.840183
0
0
0
0
0
0
0
0
0
0
0
0.4
1
0.2
false
0
0.4
0
0.6
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
c6f6073e9e6c88393ccd05f8068a5907b6746d5f
184
py
Python
django_cache/apps.py
Cguilliman/django-cache
3ec5b6f832468b0691b59adc181139f6df324212
[ "MIT" ]
2
2021-04-29T13:05:55.000Z
2021-05-05T09:33:03.000Z
django_cache/apps.py
Cguilliman/django-cache
3ec5b6f832468b0691b59adc181139f6df324212
[ "MIT" ]
null
null
null
django_cache/apps.py
Cguilliman/django-cache
3ec5b6f832468b0691b59adc181139f6df324212
[ "MIT" ]
1
2021-05-05T11:15:06.000Z
2021-05-05T11:15:06.000Z
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class DjangoCacheConfig(AppConfig): name = 'django_cache' verbose_name = _('Cache')
23
55
0.771739
22
184
6.227273
0.681818
0.145985
0
0
0
0
0
0
0
0
0
0
0.152174
184
7
56
26.285714
0.878205
0
0
0
0
0
0.092391
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
05f517c1f5332c57d189693d0bb29b6beec12631
22,385
py
Python
pyxform/tests_v1/test_xmldata.py
bmarika/pyxform
d86a86be86ee8c2d2f5b4b28620327aa581c9e20
[ "BSD-2-Clause" ]
null
null
null
pyxform/tests_v1/test_xmldata.py
bmarika/pyxform
d86a86be86ee8c2d2f5b4b28620327aa581c9e20
[ "BSD-2-Clause" ]
null
null
null
pyxform/tests_v1/test_xmldata.py
bmarika/pyxform
d86a86be86ee8c2d2f5b4b28620327aa581c9e20
[ "BSD-2-Clause" ]
null
null
null
from pyxform.errors import PyXFormError from pyxform.tests_v1.pyxform_test_case import PyxformTestCase from pyxform.tests_v1.pyxform_test_case import PyxformTestError class ExternalInstanceTests(PyxformTestCase): """ External Instance Tests """ def test_can__output_single_external_xml_item(self): """Simplest possible example to include an external instance.""" self.assertPyxformXform( md=""" | survey | | | | | | type | name | label | | | xml-external | mydata | | """, model__contains=[ '<instance id="mydata" src="jr://file/mydata.xml">' ], run_odk_validate=True ) def test_cannot__use_same_external_xml_id_in_same_section(self): """Duplicate external instances in the same section raises an error.""" with self.assertRaises(PyxformTestError) as ctx: self.assertPyxformXform( md=""" | survey | | | | | | type | name | label | | | xml-external | mydata | | | | xml-external | mydata | | """, model__contains=[]) # This is caught first by existing validation rule. self.assertIn("There are more than one survey elements named 'mydata'", repr(ctx.exception)) def test_can__use_unique_external_xml_in_same_section(self): """Two unique external instances in the same section is OK.""" self.assertPyxformXform( md=""" | survey | | | | | | type | name | label | | | xml-external | mydata | | | | xml-external | mydata2 | | """, model__contains=[ '<instance id="mydata" src="jr://file/mydata.xml">', '<instance id="mydata2" src="jr://file/mydata2.xml">' ], run_odk_validate=True ) def test_cannot__use_same_external_xml_id_across_groups(self): """Duplicate external instances anywhere raises an error.""" with self.assertRaises(PyxformTestError) as ctx: self.assertPyxformXform( md=""" | survey | | | | | | type | name | label | | | xml-external | mydata | | | | begin group | g1 | | | | xml-external | mydata | | | | end group | g1 | | | | begin group | g2 | | | | xml-external | mydata | | | | end group | g2 | | """, model__contains=[]) self.assertIn("Instance names must be unique", repr(ctx.exception)) self.assertIn( "The name \'mydata\' was found 3 time(s)", repr(ctx.exception)) def test_can__use_unique_external_xml_across_groups(self): """Unique external instances anywhere is OK.""" self.assertPyxformXform( md=""" | survey | | | | | | type | name | label | | | xml-external | mydata | | | | begin group | g1 | | | | xml-external | mydata1 | | | | note | note1 | It's note-able | | | end group | g1 | | | | begin group | g2 | | | | note | note2 | It's note-able | | | xml-external | mydata2 | | | | end group | g2 | | | | begin group | g3 | | | | note | note3 | It's note-able | | | xml-external | mydata3 | | | | end group | g3 | | """, model__contains=[ '<instance id="mydata" src="jr://file/mydata.xml">', '<instance id="mydata1" src="jr://file/mydata1.xml">', '<instance id="mydata2" src="jr://file/mydata2.xml">', '<instance id="mydata3" src="jr://file/mydata3.xml">' ], run_odk_validate=True ) def test_cannot__use_same_external_xml_id_with_mixed_types(self): """Duplicate instances with other sources present raises an error.""" with self.assertRaises(PyxformTestError) as ctx: self.assertPyxformXform( md=""" | survey | | | | | | | type | name | label | calculation | | | begin group | g1 | | | | | xml-external | city | | | | | end group | g1 | | | | | xml-external | city | | | | | begin group | g2 | | | | | select_one_from_file cities.csv | city | City | | | | end group | g2 | | | | | begin group | g3 | | | | | select_multiple_from_file cities.csv | city | City | | | | end group | g3 | | | | | begin group | g4 | | | | | calculate | city | City | pulldata('fruits', 'name', 'name', 'mango') | | | end group | g4 | | | """, # noqa model__contains=[]) self.assertIn("The name 'city' was found 2 time(s)", repr(ctx.exception)) def test_can__use_all_types_together_with_unique_ids(self): """Unique instances with other sources present are OK.""" self.assertPyxformXform( md=""" | survey | | | | | | | | type | name | label | calculation | choice_filter | | | begin group | g1 | | | | | | xml-external | city1 | | | | | | note | note1 | Note | | | | | end group | g1 | | | | | | begin group | g2 | | | | | | select_one_from_file cities.csv | city2 | City2 | | | | | end group | g2 | | | | | | begin group | g3 | | | | | | select_multiple_from_file cities.csv | city3 | City3 | | | | | end group | g3 | | | | | | begin group | g4 | | | | | | calculate | city4 | City4 | pulldata('fruits', 'name', 'name', 'mango') | | | | note | note4 | Note | | | | | end group | g4 | | | | | | select_one states | test | Test | | true() | | choices | | | | | | | | list_name | name | label | | | | | states | 1 | Pass | | | | | states | 2 | Fail | | | """, # noqa model__contains=[ '<instance id="city1" src="jr://file/city1.xml">', """ <instance id="cities" src="jr://file-csv/cities.csv"> <root> <item> <name>_</name> <label>_</label> </item> </root> </instance> """, '<instance id="fruits" src="jr://file-csv/fruits.csv">', """ <instance id="states"> <root> <item> <itextId>static_instance-states-0</itextId> <name>1</name> </item> <item> <itextId>static_instance-states-1</itextId> <name>2</name> </item> </root> </instance> """ ], # noqa run_odk_validate=True ) def test_cannot__use_different_src_same_id__select_then_internal(self): """Duplicate instance from internal choices raises an error: #88.""" md = """ | survey | | | | | | | type | name | label | choice_filter | | | select_one_from_file states.csv | state | State | | | | select_one states | test | Test | state=/select_from_file_test/state | | choices | | | | | | | list_name | name | label | | | | states | 1 | Pass | | | | states | 2 | Fail | | """ # noqa with self.assertRaises(PyXFormError) as ctx: survey = self.md_to_pyxform_survey(md_raw=md) survey._to_pretty_xml() self.assertIn( "Instance name: 'states', " "Existing type: 'file', Existing URI: 'jr://file-csv/states.csv', " "Duplicate type: 'choice', Duplicate URI: 'None', " "Duplicate context: 'survey'.", repr(ctx.exception) ) def test_cannot__use_different_src_same_id__external_then_pulldata(self): """ Duplicate instance from pulldata after xml-external raises an error. """ md = """ | survey | | | | | | | type | name | label | calculation | | | begin group | g1 | | | | | xml-external | fruits | | | | | calculate | f_csv | City | pulldata('fruits', 'name', 'name', 'mango') | | | note | note | Fruity! ${f_csv} | | | | end group | g1 | | | """ # noqa with self.assertRaises(PyXFormError) as ctx: survey = self.md_to_pyxform_survey(md_raw=md) survey._to_pretty_xml() self.assertIn( "Instance name: 'fruits', " "Existing type: 'external', Existing URI: 'jr://file/fruits.xml', " "Duplicate type: 'pulldata', Duplicate URI: 'jr://file-csv/fruits.csv', " # noqa "Duplicate context: '[type: group, name: g1]'.", repr(ctx.exception) ) def test_cannot__use_different_src_same_id__pulldata_then_external(self): """ Duplicate instance from xml-external after pulldata raises an error. """ md = """ | survey | | | | | | | type | name | label | calculation | | | begin group | g1 | | | | | calculate | f_csv | City | pulldata('fruits', 'name', 'name', 'mango') | | | xml-external | fruits | | | | | note | note | Fruity! ${f_csv} | | | | end group | g1 | | | """ # noqa with self.assertRaises(PyXFormError) as ctx: survey = self.md_to_pyxform_survey(md_raw=md) survey._to_pretty_xml() self.assertIn( "Instance name: 'fruits', " "Existing type: 'pulldata', Existing URI: 'jr://file-csv/fruits.csv', " # noqa "Duplicate type: 'external', Duplicate URI: 'jr://file/fruits.xml', " # noqa "Duplicate context: '[type: group, name: g1]'.", repr(ctx.exception) ) def test_can__reuse_csv__selects_then_pulldata(self): """Re-using the same csv external data source id and URI is OK.""" md = """ | survey | | | | | | | type | name | label | calculation | | | select_multiple_from_file pain_locations.csv | plocs | Locations of pain this week. | | | | select_one_from_file pain_locations.csv | pweek | Location of worst pain this week. | | | | select_one_from_file pain_locations.csv | pmonth | Location of worst pain this month. | | | | select_one_from_file pain_locations.csv | pyear | Location of worst pain this year. | | | | calculate | f_csv | pd | pulldata('pain_locations', 'name', 'name', 'arm') | | | note | note | Arm ${f_csv} | | """ # noqa expected = \ """ <instance id="pain_locations" src="jr://file-csv/pain_locations.csv"> <root> <item> <name>_</name> <label>_</label> </item> </root> </instance> """ # noqa self.assertPyxformXform( md=md, model__contains=[expected], run_odk_validate=True) survey = self.md_to_pyxform_survey(md_raw=md) xml = survey._to_pretty_xml() self.assertEqual(1, xml.count(expected)) def test_can__reuse_csv__pulldata_then_selects(self): """Re-using the same csv external data source id and URI is OK.""" md = """ | survey | | | | | | | type | name | label | calculation | | | calculate | f_csv | pd | pulldata('pain_locations', 'name', 'name', 'arm') | | | note | note | Arm ${f_csv} | | | | select_multiple_from_file pain_locations.csv | plocs | Locations of pain this week. | | | | select_one_from_file pain_locations.csv | pweek | Location of worst pain this week. | | | | select_one_from_file pain_locations.csv | pmonth | Location of worst pain this month. | | | | select_one_from_file pain_locations.csv | pyear | Location of worst pain this year. | | """ # noqa expected = \ """ <instance id="pain_locations" src="jr://file-csv/pain_locations.csv"> <root> <item> <name>_</name> <label>_</label> </item> </root> </instance> """ # noqa self.assertPyxformXform( md=md, model__contains=[expected], run_odk_validate=True) def test_can__reuse_xml__selects_then_external(self): """Re-using the same xml external data source id and URI is OK.""" md = """ | survey | | | | | | type | name | label | | | select_multiple_from_file pain_locations.xml | plocs | Locations of pain this week. | | | select_one_from_file pain_locations.xml | pweek | Location of worst pain this week. | | | select_one_from_file pain_locations.xml | pmonth | Location of worst pain this month. | | | select_one_from_file pain_locations.xml | pyear | Location of worst pain this year. | | | xml-external | pain_locations | | """ # noqa expected = \ """ <instance id="pain_locations" src="jr://file/pain_locations.xml"> <root> <item> <name>_</name> <label>_</label> </item> </root> </instance> """ # noqa survey = self.md_to_pyxform_survey(md_raw=md) xml = survey._to_pretty_xml() self.assertEqual(1, xml.count(expected)) def test_can__reuse_xml__external_then_selects(self): """Re-using the same xml external data source id and URI is OK.""" md = """ | survey | | | | | | type | name | label | | | xml-external | pain_locations | | | | select_multiple_from_file pain_locations.xml | plocs | Locations of pain this week. | | | select_one_from_file pain_locations.xml | pweek | Location of worst pain this week. | | | select_one_from_file pain_locations.xml | pmonth | Location of worst pain this month. | | | select_one_from_file pain_locations.xml | pyear | Location of worst pain this year. | """ # noqa expected = \ """ <instance id="pain_locations" src="jr://file/pain_locations.xml"> <root> <item> <name>_</name> <label>_</label> </item> </root> </instance> """ # noqa self.assertPyxformXform( md=md, model__contains=[expected], run_odk_validate=True) survey = self.md_to_pyxform_survey(md_raw=md) xml = survey._to_pretty_xml() self.assertEqual(1, xml.count(expected))
61.161202
167
0.343578
1,523
22,385
4.833881
0.118844
0.049443
0.041565
0.04564
0.774925
0.720728
0.685683
0.673866
0.63787
0.601874
0
0.007778
0.569265
22,385
365
168
61.328767
0.755756
0.044628
0
0.662879
0
0.022727
0.769246
0.030905
0
0
0
0
0.098485
1
0.05303
false
0.007576
0.011364
0
0.068182
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
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
4
05f7de6f69aba8ca1015c087f8b3960b7ba6596d
26
py
Python
extpipe/batchfarm/__init__.py
fermiPy/haloanalysis
ac0e1263994abdedb716dff46da8a5bbbb7bcc00
[ "BSD-3-Clause" ]
null
null
null
extpipe/batchfarm/__init__.py
fermiPy/haloanalysis
ac0e1263994abdedb716dff46da8a5bbbb7bcc00
[ "BSD-3-Clause" ]
null
null
null
extpipe/batchfarm/__init__.py
fermiPy/haloanalysis
ac0e1263994abdedb716dff46da8a5bbbb7bcc00
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['lsf','utils']
13
25
0.576923
3
26
3.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.115385
26
1
26
26
0.478261
0
0
0
0
0
0.307692
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
af05b62b1ec95be27c37be1a8dd387730c6f82ec
128
py
Python
wsgi.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
null
null
null
wsgi.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
null
null
null
wsgi.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
1
2020-03-18T07:27:27.000Z
2020-03-18T07:27:27.000Z
#! /usr/bin/env python # -*- coding: UTF-8 -*- from MyApp.web import main, application if __name__ == '__main__': main()
14.222222
39
0.625
17
128
4.235294
0.882353
0
0
0
0
0
0
0
0
0
0
0.009709
0.195313
128
8
40
16
0.68932
0.335938
0
0
0
0
0.097561
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
af0c868a9fc52ab07ccfad49ffa3995a4b09d13a
97
py
Python
server/run.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
7
2017-04-12T10:58:42.000Z
2021-10-03T18:07:29.000Z
server/run.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
null
null
null
server/run.py
abhishekg785/hiro
950224d07797740b8840316bb412c1827eab46f0
[ "MIT" ]
5
2017-07-06T12:28:10.000Z
2020-01-07T19:45:25.000Z
# run.py : starts the server at port 3000 from app import app app.run(port = 8000, debug = True)
24.25
41
0.71134
18
97
3.833333
0.777778
0
0
0
0
0
0
0
0
0
0
0.102564
0.195876
97
4
42
24.25
0.782051
0.402062
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
af2b90c479409cc352d9a220d34411321650b0f5
5,308
py
Python
yakonfig/__init__.py
diffeo/yakonfig
d7065800e3cf40a9a95be637382324e8f6eedc60
[ "MIT" ]
null
null
null
yakonfig/__init__.py
diffeo/yakonfig
d7065800e3cf40a9a95be637382324e8f6eedc60
[ "MIT" ]
null
null
null
yakonfig/__init__.py
diffeo/yakonfig
d7065800e3cf40a9a95be637382324e8f6eedc60
[ "MIT" ]
null
null
null
'''Global configuration management tools. .. This software is released under an MIT/X11 open source license. Copyright 2013-2014 Diffeo, Inc. .. only:: pyapi or all Loads a YAML file (with extensions) and makes it available globally to a Python application. Application code can call :func:`yakonfig.get_global_config` to get values from the configuration store. In typical use, a program will declare some number of top-level configuration modules. These modules mimic the structure of :class:`yakonfig.Configurable`, and are passed in directly to :func:`yakonfig.parse_args()`. This makes the corresponding configuration available in the global configuration. For example:: # I am a_module.py import yakonfig # Configurable metadata config_name = 'a_module' default_config = { 'message': 'hello world' } def add_arguments(parser): parser.add_argument('--message') runtime_keys = { 'message': 'message' } def main(): parser = argparse.ArgumentParser() args = yakonfig.parse_args(parser, [yakonfig, a_module]) print yakonfig.get_global_config('a_module', 'message') if __name__ == '__main__': main() Running ``python -m a_module`` will print out "hello world"; running ``python -m a_module --message goodbye`` will inject the "goodbye" message into the configuration, and then print it out. .. note:: Avoid using :meth:`argparse.ArgumentParser.set_defaults` in combination with :func:`yakonfig.parse_args`. Any default values set this way will override values set in the user's configuration file. Most of the useful functions and objects in the submodules are re-exported from the top-level module. .. only:: all Common command-line arguments ============================= All programs based on :mod:`yakonfig` support the following command-line arguments. .. only:: cliref or all .. program:: yakonfig .. option:: --config <file.yaml>, -c <file.yaml> Load `file.yaml` as the primary configuration file. Options set in the configuration file override any default values; options set on the command line override values in this configuration file. .. option:: --dump-config {default|effective|full} Write the configuration as YAML to standard output, then stop immediately. The argument indicates which configuration is dumped: if ``default`` then the default configuration, ignoring all user setup, is dumped; if ``full`` then the dump contains the complete configuration, including all default settings, settings from the configuration file, and command-line options; and if ``effective`` then the dump contains only those settings that differ from the defaults, producing the minimum configuration to recreate the current settings. .. only:: pyapi or all YAML extensions =============== ``key: !include path`` Loads a yaml file at `path` and inserts it as the value associated with `key`. Top-level entry points ====================== .. autofunction:: parse_args .. autofunction:: set_default_config .. autofunction:: defaulted_config .. autofunction:: get_global_config .. autofunction:: set_global_config .. autofunction:: clear_global_config Configurable modules ==================== Modules that can be configured by the user implement the :class:`yakonfig.Configurable` interface, or more often, have their classes and modules provide the same names. Anything that includes a :attr:`~yakonfig.Configurable.config_name` property can be passed into the top-level entry points above. .. autoclass:: Configurable :members: .. autoclass:: ProxyConfigurable :members: .. autoclass:: NewSubModules :members: .. autofunction:: check_toplevel_config .. autofunction:: check_subconfig Operations on configuration =========================== Configuration is always passed around as plain Python dictionaries. If you can guarantee that a configuration has passed through yakonfig, then you can generally guarantee that its default values are present and that any defined checks have passed. .. autofunction:: overlay_config .. autofunction:: diff_config Exceptions ========== .. autoclass:: ConfigurationError .. autoclass:: ProgrammerError Interactive programs ==================== .. currentmodule:: yakonfig.cmd .. autoclass:: ArgParseCmd .. currentmodule:: yakonfig ''' from __future__ import absolute_import from yakonfig.configurable import Configurable, ProxyConfigurable, \ NewSubModules, check_subconfig from yakonfig.exceptions import ConfigurationError, ProgrammerError from yakonfig.merge import diff_config, overlay_config from yakonfig.toplevel import parse_args, set_default_config, \ defaulted_config, check_toplevel_config, \ config_name, add_arguments, runtime_keys from yakonfig.yakonfig import clear_global_config, set_global_config, \ get_global_config
34.025641
74
0.67954
613
5,308
5.776509
0.368679
0.027111
0.016944
0.007907
0.011861
0
0
0
0
0
0
0.002433
0.225509
5,308
155
75
34.245161
0.858915
0.901093
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
af7cc1b8bcac50b57193a457e320b41edd2904bb
319
py
Python
otello/cli.py
hysds/otello
c32cb7c3c85039bf476ff6002206764ded8e6fc7
[ "Apache-2.0" ]
null
null
null
otello/cli.py
hysds/otello
c32cb7c3c85039bf476ff6002206764ded8e6fc7
[ "Apache-2.0" ]
4
2021-01-27T07:48:38.000Z
2021-09-15T17:56:31.000Z
otello/cli.py
hysds/otello
c32cb7c3c85039bf476ff6002206764ded8e6fc7
[ "Apache-2.0" ]
null
null
null
import click from otello.client import initialize @click.group() def cli(): """Wrapper library to communicate with HySDS""" @cli.command() def init(): """Initialize the config file (config.yml) in ~/.config/otello""" initialize() # TODO: add ci cli functionality # TODO: add mozart cli functionality
16.789474
69
0.695925
41
319
5.414634
0.658537
0.063063
0
0
0
0
0
0
0
0
0
0
0.178683
319
18
70
17.722222
0.847328
0.526646
0
0
0
0
0
0
0
0
0
0.055556
0
1
0.285714
true
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
1
0
0
0
1
0
0
4
afa4cf6e21744b643054aed803e3f4ab158cbcb4
87
py
Python
Lib/help/__init__.py
saski18/SumBot
2b13a52ab7b39e4be15bc762a21d04acfebd72d9
[ "MIT" ]
1
2021-01-20T22:46:45.000Z
2021-01-20T22:46:45.000Z
Lib/help/__init__.py
saski18/SumBot
2b13a52ab7b39e4be15bc762a21d04acfebd72d9
[ "MIT" ]
null
null
null
Lib/help/__init__.py
saski18/SumBot
2b13a52ab7b39e4be15bc762a21d04acfebd72d9
[ "MIT" ]
1
2021-04-03T07:24:49.000Z
2021-04-03T07:24:49.000Z
from .help_SumBot import help_command from .navigation import * __version__ = "1.2.0"
17.4
37
0.770115
13
87
4.692308
0.769231
0
0
0
0
0
0
0
0
0
0
0.04
0.137931
87
4
38
21.75
0.773333
0
0
0
0
0
0.057471
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
afb05d60a4feb28a1ccd3bad32d4cb3243af003d
105
py
Python
forms/converted/What_to_add_into_base_file.py
QuandisS/Physics_Project
edf89ed2df860104d672e274de75adf6f3b1920b
[ "Apache-2.0" ]
2
2018-03-23T08:13:46.000Z
2018-04-13T11:49:20.000Z
forms/converted/What_to_add_into_base_file.py
QuandisS/Physics_Project
edf89ed2df860104d672e274de75adf6f3b1920b
[ "Apache-2.0" ]
28
2018-04-13T21:45:31.000Z
2018-05-24T12:03:43.000Z
forms/converted/What_to_add_into_base_file.py
QuandisS/Physics_Project
edf89ed2df860104d672e274de75adf6f3b1920b
[ "Apache-2.0" ]
null
null
null
""" MainWindow.setWindowTitle('Physics') self.centralwidget.setLayout(self.gridLayout) version = "v1" """
21
45
0.761905
10
105
8
0.9
0
0
0
0
0
0
0
0
0
0
0.010101
0.057143
105
5
46
21
0.79798
0.92381
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
bb790ad0ec37d6b6b75d48f241fb38db9dc68073
174
py
Python
photos/apps.py
AndreasMilants/django-photos
721c2515879a424333859ac48f65d6382b7a48d4
[ "BSD-3-Clause" ]
1
2021-12-27T12:35:06.000Z
2021-12-27T12:35:06.000Z
facein_api/photos/apps.py
Sirkirill/facetracker-backend
462dff11e7dccc379a6e04250b121120ec954c8d
[ "MIT" ]
10
2021-06-07T16:41:35.000Z
2022-03-12T01:04:23.000Z
facein_api/photos/apps.py
gda2048/facein-backend
01a8500ffcdaef91540b0cdf94d50dd64cb46276
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class PhotosConfig(AppConfig): name = 'photos' verbose_name = _('Photos')
21.75
55
0.758621
21
174
6.095238
0.714286
0.15625
0
0
0
0
0
0
0
0
0
0
0.16092
174
7
56
24.857143
0.876712
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bb871fcec6e01d56e21c56ab45c5bfefe5b135ab
664
py
Python
datetime_interval/__init__.py
zeckalpha/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
1
2016-11-18T09:59:13.000Z
2016-11-18T09:59:13.000Z
datetime_interval/__init__.py
kmarekspartz/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
null
null
null
datetime_interval/__init__.py
kmarekspartz/datetime-interval
5c329016cefdbda65e71b2ddc4bc341720662fc2
[ "MIT" ]
2
2015-10-21T13:46:47.000Z
2015-11-18T18:49:26.000Z
""" The builtin `datetime` module provides classes for points in time (`date`, and `datetime`) as well as durations (`timedelta`), but it does not account for time durations at a specific point. This module provides `Interval`, which contains a start and end `date` or `datetime`, and a duration `timedelta`. This is useful for representing calendar events. This module also provides `PeriodicInterval` which can be used for repeating events, by containing a period `timedelta` and a count of occurrences (either an `int` or `forever`). """ from datetime_interval.interval import Interval from datetime_interval.periodic_interval import forever, PeriodicInterval
51.076923
78
0.787651
95
664
5.473684
0.6
0.053846
0.076923
0
0
0
0
0
0
0
0
0
0.14006
664
12
79
55.333333
0.910683
0.801205
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
4
bb904fc9e6aa92e93cc12e602fec731212ac27ed
214
py
Python
categoria/serializers.py
Emerson-MM-Filho/finance-control
0d6b20501f9f601ab373b67f9c9bff9c42839f66
[ "MIT" ]
null
null
null
categoria/serializers.py
Emerson-MM-Filho/finance-control
0d6b20501f9f601ab373b67f9c9bff9c42839f66
[ "MIT" ]
null
null
null
categoria/serializers.py
Emerson-MM-Filho/finance-control
0d6b20501f9f601ab373b67f9c9bff9c42839f66
[ "MIT" ]
null
null
null
from .models import Categoria from rest_framework import serializers class CategoriaSerializer(serializers.ModelSerializer): class Meta: model = Categoria fields = ['id', 'nome', 'descricao']
23.777778
55
0.719626
21
214
7.285714
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.196262
214
8
56
26.75
0.889535
0
0
0
0
0
0.070093
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bba962a22635b5c96a004f4028c065946659aa6a
410
py
Python
web/labeler/user_db.py
wallone/pepto-web-master
0e565d87b172c2bcb1ce8c133b0a8bd3adbde119
[ "MIT" ]
null
null
null
web/labeler/user_db.py
wallone/pepto-web-master
0e565d87b172c2bcb1ce8c133b0a8bd3adbde119
[ "MIT" ]
null
null
null
web/labeler/user_db.py
wallone/pepto-web-master
0e565d87b172c2bcb1ce8c133b0a8bd3adbde119
[ "MIT" ]
null
null
null
import sqlite3 as lite con = lite.connect('user_info.db') admin = ['admin','admin','admin','admin@admin.com'] with con: cur = con.cursor() cur.execute('DROP TABLE IF EXISTS user') cur.execute('CREATE TABLE user(name TEXT, username TEXT, password TEXT, email TEXT, user_id INTEGER PRIMARY KEY)') cur.executemany('INSERT INTO user(name, username, password, email) VALUES (?, ?, ?, ?)', (admin,))
45.555556
118
0.685366
58
410
4.810345
0.568966
0.179211
0.215054
0.215054
0.107527
0
0
0
0
0
0
0.002874
0.15122
410
9
119
45.555556
0.798851
0
0
0
0
0.125
0.571776
0
0
0
0
0
0
1
0
false
0.25
0.125
0
0.125
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
bbbdde4d91046b23a10a0ba6e2b866bfe84514c5
276
py
Python
manage.py
Gandi/wagtail-oauth2
19074da3dc7eafeab28f901c1f38fd383757fbf7
[ "BSD-3-Clause" ]
6
2021-12-08T12:46:39.000Z
2021-12-15T14:32:29.000Z
manage.py
Gandi/wagtail-oauth2
19074da3dc7eafeab28f901c1f38fd383757fbf7
[ "BSD-3-Clause" ]
1
2022-01-04T15:33:20.000Z
2022-01-04T15:33:20.000Z
manage.py
Gandi/wagtail-oauth2
19074da3dc7eafeab28f901c1f38fd383757fbf7
[ "BSD-3-Clause" ]
null
null
null
# This file is used only in tests import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wagtail_oauth2.tests.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23
84
0.778986
39
276
5.076923
0.692308
0.111111
0.181818
0.222222
0
0
0
0
0
0
0
0.004219
0.141304
276
11
85
25.090909
0.831224
0.112319
0
0
0
0
0.242798
0.209877
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
bbcb97a2689c6a649c97663ac0051cba5db05bfe
25
py
Python
data/studio21_generated/introductory/3317/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3317/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3317/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def gr33k_l33t(string):
12.5
23
0.76
4
25
4.5
1
0
0
0
0
0
0
0
0
0
0
0.181818
0.12
25
2
24
12.5
0.636364
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
bbe23ab9e958aa334aa155098134515407323c99
495
py
Python
tests/test_positions.py
rdesgroppes/asciidigraphs
e73a4aad59b9aa1cdb2241eb1822c986f4bf2878
[ "Apache-2.0" ]
4
2019-11-20T15:30:18.000Z
2021-06-17T12:51:47.000Z
tests/test_positions.py
rdesgroppes/asciidigraphs
e73a4aad59b9aa1cdb2241eb1822c986f4bf2878
[ "Apache-2.0" ]
null
null
null
tests/test_positions.py
rdesgroppes/asciidigraphs
e73a4aad59b9aa1cdb2241eb1822c986f4bf2878
[ "Apache-2.0" ]
null
null
null
from asciidigraphs.positions import Offset, Pos def test_new_offset_with_default_z(): assert Offset(1, 2) == Offset(dx=1, dy=2, dz=0) def test_offset_to_euclidean_distance(): assert Offset(3, 4, 0).distance == 5 def test_new_pos_with_default_z(): assert Pos(1, 2) == Pos(x=1, y=2, z=0) def test_add_offset_to_pos(): assert Pos(1, 2, 3) + Offset(10, 20, 30) == Pos(11, 22, 33) def test_subtract_pos_from_pos(): assert Pos(1, 2, 3) - Pos(3, 2, 1) == Offset(-2, 0, 2)
22.5
63
0.660606
93
495
3.27957
0.376344
0.114754
0.098361
0.108197
0.098361
0.098361
0
0
0
0
0
0.093596
0.179798
495
21
64
23.571429
0.657635
0
0
0
0
0
0
0
0
0
0
0
0.454545
1
0.454545
true
0
0.090909
0
0.545455
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
1
1
0
0
0
1
0
0
4
a54f4bcd5cdd4eb4f5c0c1f962a8913f54d849b7
923
py
Python
colour/examples/plotting/examples_corresponding.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/examples/plotting/examples_corresponding.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/examples/plotting/examples_corresponding.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
"""Showcases corresponding chromaticities prediction plotting examples.""" from colour.plotting import ( colour_style, plot_corresponding_chromaticities_prediction, ) from colour.utilities import message_box message_box("Corresponding Chromaticities Prediction Plots") colour_style() message_box( 'Plotting corresponding chromaticities prediction with "Von Kries" ' 'chromatic adaptation model for "Breneman (1987)" experiment number "2" ' 'using "Bianco" CAT.' ) plot_corresponding_chromaticities_prediction( 2, "Von Kries", corresponding_chromaticities_prediction_kwargs={ "transform": "Bianco 2010" }, ) print("\n") message_box( 'Plotting corresponding chromaticities prediction with "CMCCAT200" ' 'chromatic adaptation model for "Breneman (1987)" experiment number "4" ' 'using "Bianco" CAT.' ) plot_corresponding_chromaticities_prediction(4, "CMCCAT2000")
27.147059
77
0.757313
93
923
7.322581
0.408602
0.317181
0.434655
0.180617
0.496329
0.496329
0.496329
0.161527
0
0
0
0.029449
0.153846
923
33
78
27.969697
0.84251
0.073673
0
0.153846
0
0
0.468787
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0.038462
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a5518fce8f2bffd8d28ebd87523bed862c2b9b14
315
py
Python
src/SRM-199/string_mult.py
mikefeneley/topcoder
175a7a05367c0458a900a3fea16af68ae5ee53ec
[ "MIT" ]
null
null
null
src/SRM-199/string_mult.py
mikefeneley/topcoder
175a7a05367c0458a900a3fea16af68ae5ee53ec
[ "MIT" ]
null
null
null
src/SRM-199/string_mult.py
mikefeneley/topcoder
175a7a05367c0458a900a3fea16af68ae5ee53ec
[ "MIT" ]
null
null
null
class StringMult: def times(self, sFactor, iFactor): if(sFactor == ""): return "" elif(iFactor == 0): return "" elif(iFactor > 0): return sFactor * iFactor else: reverse = sFactor[::-1] return reverse * abs(iFactor)
21
41
0.469841
28
315
5.285714
0.535714
0.189189
0.22973
0.243243
0.283784
0
0
0
0
0
0
0.016216
0.412698
315
14
42
22.5
0.783784
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.545455
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
a58ef57a9ddfa5542b2cf474641eca8e0b09e265
452
py
Python
tools/optimization/__init__.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
1
2021-01-19T02:40:43.000Z
2021-01-19T02:40:43.000Z
tools/optimization/__init__.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
null
null
null
tools/optimization/__init__.py
MRossol/HOPP
c8bcf610fdd2cbb27a807ddaf444684ef1aab7e8
[ "BSD-3-Clause" ]
null
null
null
from .candidate import Candidate from .optimization_problem import OptimizationProblem from .parametrized_optimization_driver import OptimizationDriver from .problem_parametrization import ProblemParametrization from .data_logging.data_recorder import DataRecorder from .data_logging.null_data_recorder import NullDataRecorder from .data_logging.JSON_lines_record_logger import JSONLinesRecordLogger from .command_line_tools.run_utils import setup_run
50.222222
72
0.902655
53
452
7.377358
0.528302
0.061381
0.11509
0
0
0
0
0
0
0
0
0
0.070796
452
8
73
56.5
0.930952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
a597d3c457dfc21e168043490badced262f2d8df
97
py
Python
transkribus/apps.py
acdh-oeaw/acdh-django-transkribus
3e14d033030dda22ebbf8dd9e249360380a96daf
[ "MIT" ]
2
2019-09-30T13:17:25.000Z
2019-10-13T23:08:58.000Z
transkribus/apps.py
acdh-oeaw/acdh-django-transkribus
3e14d033030dda22ebbf8dd9e249360380a96daf
[ "MIT" ]
11
2019-09-29T11:37:44.000Z
2019-10-21T12:09:05.000Z
transkribus/apps.py
acdh-oeaw/acdh-django-transkribus
3e14d033030dda22ebbf8dd9e249360380a96daf
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TranskribusConfig(AppConfig): name = 'transkribus'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a5b096ba4cf6dd22ac9a8ccd2f77940c5aab7ad0
162
py
Python
sense_hat/__init__.py
paddywwoof/python-sense-hat
bdbbc8f20797c132fed00299d9c21461cb07c0d4
[ "BSD-3-Clause" ]
1
2016-06-13T06:33:25.000Z
2016-06-13T06:33:25.000Z
sense_hat/__init__.py
paddywwoof/python-sense-hat
bdbbc8f20797c132fed00299d9c21461cb07c0d4
[ "BSD-3-Clause" ]
null
null
null
sense_hat/__init__.py
paddywwoof/python-sense-hat
bdbbc8f20797c132fed00299d9c21461cb07c0d4
[ "BSD-3-Clause" ]
1
2019-11-02T07:45:54.000Z
2019-11-02T07:45:54.000Z
from __future__ import absolute_import from .sense_hat import SenseHat, SenseHat as AstroPi from .stick import SenseStick, InputEvent __version__ = '2.1.0'
27
53
0.790123
22
162
5.363636
0.727273
0
0
0
0
0
0
0
0
0
0
0.021898
0.154321
162
5
54
32.4
0.839416
0
0
0
0
0
0.031847
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
3c156cef762225a9823cb48113ca70a1634e8157
91
py
Python
tests/logging_tests/__init__.py
vt-sailbot/sailbot-20
b5d75cb82e4bc3e9c4e428a288c6ac98a4aa2c52
[ "MIT" ]
1
2019-09-26T12:05:57.000Z
2019-09-26T12:05:57.000Z
tests/rudder_test/__init__.py
vt-sailbot/sailbot-20
b5d75cb82e4bc3e9c4e428a288c6ac98a4aa2c52
[ "MIT" ]
5
2019-08-25T21:01:18.000Z
2020-09-04T02:56:40.000Z
tests/tracking_tests/__init__.py
vt-sailbot/sailbot-20
b5d75cb82e4bc3e9c4e428a288c6ac98a4aa2c52
[ "MIT" ]
null
null
null
# If this file is not included, unittest will not discover any tests inside this directory
45.5
90
0.802198
15
91
4.866667
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.175824
91
1
91
91
0.973333
0.967033
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3c1d705cef0fc1d5dbec3ef7557d41da32788a8f
19
py
Python
.idea/VirtualEnvironment/lib/python3.8/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
TataSatyaPratheek/Tic-Tac-Toe
fa3da80f9ec9ffa3c8c9aaa34a5bb1e88553fecd
[ "MIT" ]
null
null
null
.idea/VirtualEnvironment/lib/python3.8/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
TataSatyaPratheek/Tic-Tac-Toe
fa3da80f9ec9ffa3c8c9aaa34a5bb1e88553fecd
[ "MIT" ]
null
null
null
.idea/VirtualEnvironment/lib/python3.8/site-packages/tests/outcomes/imports/test_import_absolute_error_circular/main2.py
TataSatyaPratheek/Tic-Tac-Toe
fa3da80f9ec9ffa3c8c9aaa34a5bb1e88553fecd
[ "MIT" ]
null
null
null
import main x = 10
6.333333
11
0.684211
4
19
3.25
1
0
0
0
0
0
0
0
0
0
0
0.142857
0.263158
19
2
12
9.5
0.785714
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
3c2e9ff6b55294e74683c304d25ca4d8f469cbe2
449
py
Python
code401challengespython/multi_bracket_validation/test_multi_bracket_validation.py
danhuyle508/data-structures-and-algorithms
476f32ebcde0350390e36d32e5dc7911ac9bab09
[ "MIT" ]
null
null
null
code401challengespython/multi_bracket_validation/test_multi_bracket_validation.py
danhuyle508/data-structures-and-algorithms
476f32ebcde0350390e36d32e5dc7911ac9bab09
[ "MIT" ]
null
null
null
code401challengespython/multi_bracket_validation/test_multi_bracket_validation.py
danhuyle508/data-structures-and-algorithms
476f32ebcde0350390e36d32e5dc7911ac9bab09
[ "MIT" ]
null
null
null
from multi_bracket_validation import multi_bracket_validation def test_multi_bracket_validation(): sentence = '(something){}[else]' assert multi_bracket_validation(sentence) == True def test_multi_bracket_validation_fail(): sentence = '}' assert multi_bracket_validation(sentence) == False def test_multi_bracket_validation_fail_again(): sentence = '(}[something]' assert multi_bracket_validation(sentence) == False
28.0625
61
0.766147
50
449
6.44
0.3
0.298137
0.546584
0.372671
0.661491
0.459627
0
0
0
0
0
0
0.142539
449
16
62
28.0625
0.836364
0
0
0.2
0
0
0.073333
0
0
0
0
0
0.3
1
0.3
false
0
0.1
0
0.4
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
3c6b8d81a1812a7ae35d6ce46b5418bb8ddc15a6
35
py
Python
tests/test_home/__init__.py
devmrfitz/sample-platform
799a5062ddb3fd7b4e9891c16376e47587ee35aa
[ "ISC" ]
28
2017-11-04T16:15:04.000Z
2022-02-23T15:25:05.000Z
tests/test_home/__init__.py
devmrfitz/sample-platform
799a5062ddb3fd7b4e9891c16376e47587ee35aa
[ "ISC" ]
503
2017-09-30T17:05:15.000Z
2022-03-31T17:07:43.000Z
tests/test_home/__init__.py
devmrfitz/sample-platform
799a5062ddb3fd7b4e9891c16376e47587ee35aa
[ "ISC" ]
89
2017-09-24T11:27:27.000Z
2022-03-09T18:43:57.000Z
"""Contains tests for mod_home."""
17.5
34
0.685714
5
35
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
1
35
35
0.741935
0.8
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
59158aff4dc011eb546944dce9308428157c2eb8
16
py
Python
whenconnect/config.py
williamfzc/whenac
23bda017c81534c12dfadd24389f72f291b89d3e
[ "MIT" ]
13
2018-09-29T05:44:43.000Z
2021-09-12T07:29:55.000Z
whenconnect/config.py
williamfzc/whenac
23bda017c81534c12dfadd24389f72f291b89d3e
[ "MIT" ]
2
2018-11-26T08:36:37.000Z
2020-12-05T12:34:06.000Z
whenconnect/config.py
williamfzc/whenac
23bda017c81534c12dfadd24389f72f291b89d3e
[ "MIT" ]
7
2018-09-29T08:55:21.000Z
2020-12-04T09:21:32.000Z
ADB_PORT = 5037
8
15
0.75
3
16
3.666667
1
0
0
0
0
0
0
0
0
0
0
0.307692
0.1875
16
1
16
16
0.538462
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
4
591ec44f5c6de42165d6d58c80ead19cb524e10e
228
py
Python
systems/imageGuidance/__init__.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
null
null
null
systems/imageGuidance/__init__.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
25
2019-03-05T05:56:35.000Z
2019-07-24T13:11:57.000Z
systems/imageGuidance/__init__.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
1
2019-11-27T05:10:47.000Z
2019-11-27T05:10:47.000Z
# imageGuidance __init__.py # __all__ = ["wcs2wcs","dicom","hardware"] from . import nonOrthogonalImaging from .optimise import optimiseFiducials from .solver import solver # from syncmrt.tools.opencl import gpu as gpuInterface
32.571429
54
0.798246
26
228
6.692308
0.730769
0
0
0
0
0
0
0
0
0
0
0.004951
0.114035
228
7
54
32.571429
0.856436
0.52193
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
592345c40b56a43f9f55b8e7cf403087864cd071
243
py
Python
models/__init__.py
necla-ml/Lite-HRNet
4ef311bf0f584bffae369fe2c0f1c7dc37f89477
[ "Apache-2.0" ]
549
2021-04-14T03:16:52.000Z
2022-03-30T02:44:56.000Z
models/__init__.py
necla-ml/Lite-HRNet
4ef311bf0f584bffae369fe2c0f1c7dc37f89477
[ "Apache-2.0" ]
68
2021-04-14T05:17:29.000Z
2022-03-28T06:26:27.000Z
models/__init__.py
necla-ml/Lite-HRNet
4ef311bf0f584bffae369fe2c0f1c7dc37f89477
[ "Apache-2.0" ]
91
2021-04-14T05:04:42.000Z
2022-03-30T13:09:55.000Z
from .backbones import * # noqa from .builder import (build_backbone, build_head, build_loss, build_neck, build_posenet) __all__ = [ 'build_backbone', 'build_head', 'build_loss', 'build_posenet', 'build_neck' ]
27
73
0.662551
28
243
5.25
0.428571
0.176871
0.244898
0.29932
0.489796
0.489796
0.489796
0
0
0
0
0
0.226337
243
8
74
30.375
0.781915
0.016461
0
0
0
0
0.240506
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
592cae7910308e9209dd3cf3c8792ed80bf53f1e
717
py
Python
Util/query_issues.py
MateusSantosFonseca/TISVI-Analise-Efetividade-Testes-Unitarios
91182b5167ff4393a16eb8113b2f315d117831ea
[ "MIT" ]
null
null
null
Util/query_issues.py
MateusSantosFonseca/TISVI-Analise-Efetividade-Testes-Unitarios
91182b5167ff4393a16eb8113b2f315d117831ea
[ "MIT" ]
2
2021-03-31T19:52:13.000Z
2021-12-13T20:40:04.000Z
Util/query_issues.py
MateusSantosFonseca/TISVI-Analise-Efetividade-Testes-Unitarios
91182b5167ff4393a16eb8113b2f315d117831ea
[ "MIT" ]
null
null
null
query_issues = """ { repository(name: "{placeholder_nome_repo}", owner: "{placeholder_owner_repo}") { issues(filterBy: {labels: ["BUG", "bug", "Bug", "Type: Bug", "Type: BUG", "Type: bug", "type: Bug", "type: BUG", "type: bug", "browser bug", "Error", "ERROR", "error", "Failure", "FAILURE", "failure", "Confirmed Bug", "confirmed bug", "Type: Bug / Error", "good first bug", "Good First Bug", "GOOD FIRST BUG", "confirmed-bug", "bug critical", "bug minor", "bug moderate", "type:bug", "Type:bug", "type:Bug", "Type:Bug"]}, first: 1, orderBy: {field: UPDATED_AT, direction: DESC}) { totalCount nodes { updatedAt } } } } """
44.8125
114
0.555091
80
717
4.9
0.3875
0.196429
0.255102
0.285714
0.278061
0.278061
0.186224
0.186224
0.114796
0.114796
0
0.001835
0.239888
717
16
115
44.8125
0.717431
0
0
0
0
0.3125
0.969359
0.073816
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3ca936f1d19084914c7b099d668cda61d9e1bc11
229
py
Python
project/models/place.py
vishwas125/budget-travel-hackillinois18
5fc82544a783acbc70a1df57e3f41a1ef352f765
[ "Apache-2.0" ]
null
null
null
project/models/place.py
vishwas125/budget-travel-hackillinois18
5fc82544a783acbc70a1df57e3f41a1ef352f765
[ "Apache-2.0" ]
null
null
null
project/models/place.py
vishwas125/budget-travel-hackillinois18
5fc82544a783acbc70a1df57e3f41a1ef352f765
[ "Apache-2.0" ]
3
2018-03-09T01:59:22.000Z
2019-12-06T16:52:04.000Z
class Place: destination="" iata_code = "" attractions_list =[] hotels_list = [] weather = [] flights = [] restaurants_list = [] def __init__(self, iata_code): self.iata_code = iata_code
17.615385
34
0.580786
23
229
5.304348
0.608696
0.262295
0.196721
0
0
0
0
0
0
0
0
0
0.296943
229
12
35
19.083333
0.757764
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.9
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
3cdc69fcc068af522fc56e2b8d84ac5baaec8a47
8,570
py
Python
datasets/__init__.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
1
2021-03-20T13:57:03.000Z
2021-03-20T13:57:03.000Z
datasets/__init__.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
null
null
null
datasets/__init__.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
null
null
null
import sys from torch.utils.data import DataLoader from datasets.breast_dataset import BreastCancerBagsCross from datasets.camelyon_dataset import CamelyonPreprocessedBagsCross from datasets.colon_dataset import ColonCancerBagsCross from datasets.mnist_dataset import MnistBags from datasets.messidor_dataset import DiabeticRetinopathyDataset PATH_TO_MESSIDOR_PATCH = '/shared/sets/datasets/vision/messidor/retina_patches/patches.csv' PATH_TO_MESSIDOR_LABELS = '/shared/sets/datasets/vision/messidor/messidor_scaled_700x700/trainLabels.csv' def get_train(name, seed=3, workers=0, config=None): if name == 'colon_cancer': ds = ColonCancerBagsCross(path="data/ColonCancer", train=True, shuffle_bag=True, data_augmentation=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push = ColonCancerBagsCross(path="data/ColonCancer", train=True, push=True, shuffle_bag=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) elif name == 'breast_cancer': ds = BreastCancerBagsCross(path="data/Bisque", train=True, shuffle_bag=True, data_augmentation=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push = BreastCancerBagsCross(path="data/Bisque", train=True, push=True, shuffle_bag=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) elif name == 'mnist': ds = MnistBags(train=True, random_state=seed, **config.dataset_settings) ds_push = MnistBags(train=True, push=True, random_state=seed, **config.dataset_settings) elif name == 'camelyon': ds = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=True, shuffle_bag=True, data_augmentation=True, random_state=seed) ds_push = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=True, push=True, shuffle_bag=True, random_state=seed) elif name == 'messidor': ds = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=True, shuffle_bag=True, data_augmentation=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=True, push=True, shuffle_bag=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) else: raise NotImplementedError() print('training set size: {}'.format(len(ds))) train_loader = DataLoader( ds, batch_size=None, shuffle=True, num_workers=workers, pin_memory=False) train_push_loader = DataLoader( ds_push, batch_size=None, shuffle=False, num_workers=workers, pin_memory=False) return train_loader, train_push_loader def get_valid(name, seed=3, workers=0, config=None): if name == 'colon_cancer': ds_valid = ColonCancerBagsCross(path="data/ColonCancer", train=False, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_valid = ColonCancerBagsCross(path="data/ColonCancer", train=False, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed, push=True) elif name == 'breast_cancer': ds_valid = BreastCancerBagsCross(path="data/Bisque", train=False, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_valid = BreastCancerBagsCross(path="data/Bisque", train=False, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed, push=True, ) elif name == 'mnist': ds_valid = MnistBags(train=False, random_state=seed, **config.dataset_settings, all_labels=True) ds_push_valid = MnistBags(train=False, random_state=seed, **config.dataset_settings, all_labels=True, push=True) elif name == 'camelyon': ds_valid = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=False, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_valid = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=False, all_labels=True, random_state=seed, push=True, ) elif name == 'messidor': ds_valid = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=False, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_valid = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=False, fold_id=config.fold_id, folds=config.folds, random_state=seed, push=True) else: raise NotImplementedError() print('valid set size: {}'.format(len(ds_valid))) valid_loader = DataLoader( ds_valid, batch_size=None, shuffle=False, num_workers=workers, pin_memory=False) valid_push_loader = DataLoader( ds_push_valid, batch_size=None, shuffle=False, num_workers=workers, pin_memory=False) return valid_loader, valid_push_loader def get_test(name, seed=3, workers=0, config=None): if name == 'colon_cancer': ds_test = ColonCancerBagsCross(path="data/ColonCancer", train=False, test=True, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_test = ColonCancerBagsCross(path="data/ColonCancer", train=False, test=True, push=True, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) elif name == 'breast_cancer': ds_test = BreastCancerBagsCross(path="data/Bisque", train=False, test=True, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_test = BreastCancerBagsCross(path="data/Bisque", train=False, test=True, push=True, all_labels=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) elif name == 'mnist': ds_test = MnistBags(train=False, test=True, random_state=seed, **config.dataset_settings, all_labels=True) ds_push_test = MnistBags(train=False, test=True, push=True, random_state=seed, **config.dataset_settings, all_labels=True) elif name == 'camelyon': ds_test = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=False, test=True, all_labels=True, random_state=seed) ds_push_test = CamelyonPreprocessedBagsCross(path="data/CAMELYON_patches", train=False, test=True, all_labels=True, push=True) elif name == 'messidor': ds_test = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=False, test=True, fold_id=config.fold_id, folds=config.folds, random_state=seed) ds_push_test = DiabeticRetinopathyDataset(PATH_TO_MESSIDOR_PATCH, PATH_TO_MESSIDOR_LABELS, train=False, test=True, fold_id=config.fold_id, folds=config.folds, random_state=seed, push=True) else: raise NotImplementedError() print('test set size: {}'.format(len(ds_test))) test_loader = DataLoader( ds_test, batch_size=None, shuffle=False, num_workers=workers, pin_memory=False) test_push_loader = DataLoader( ds_push_test, batch_size=None, shuffle=False, num_workers=workers, pin_memory=False) return test_loader, test_push_loader def get_datasets(name, seed=3, workers=0, config=None): return (*get_train(name, seed, workers, config), *get_valid(name, seed, workers, config), *get_test(name, seed, workers, config))
57.133333
137
0.64189
979
8,570
5.363636
0.079673
0.04342
0.082841
0.057894
0.855837
0.788421
0.732241
0.681775
0.673586
0.633213
0
0.002221
0.264527
8,570
149
138
57.516779
0.830874
0
0
0.424
0
0
0.072695
0.031155
0
0
0
0
0
1
0.032
false
0
0.056
0.008
0.12
0.024
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
3ce2fdd20b7a30c21dae3b883c4bf3822a90b63e
524
py
Python
src/olympia/addons/tests/test_migrations.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_migrations.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_migrations.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
from ..migrations import fix_contributions_url def test_fix_contributions_url(): assert ( fix_contributions_url('http://github.com/foo12/?q=z') == 'https://github.com/foo12/?q=z' ) assert ( fix_contributions_url('https://paypal.com/foo?q=z') == 'https://www.paypal.com/foo?q=z' ) assert ( fix_contributions_url('https://www.donate.mozilla.org/') == 'https://donate.mozilla.org/' ) assert fix_contributions_url('https://bunny.github.com') == ''
26.2
66
0.618321
65
524
4.784615
0.353846
0.308682
0.366559
0.321543
0.482315
0.205788
0.205788
0
0
0
0
0.009615
0.206107
524
19
67
27.578947
0.737981
0
0
0.2
0
0
0.372137
0
0
0
0
0
0.266667
1
0.066667
true
0
0.066667
0
0.133333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
3cecf1d041556afddb71585270adf6f900d9c1bc
91
py
Python
FUNDAMENTALS_MODULE/Regular_Expressions/LAB/01_Match_Full_Name.py
sleepychild/ProgramingBasicsPython
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
[ "MIT" ]
null
null
null
FUNDAMENTALS_MODULE/Regular_Expressions/LAB/01_Match_Full_Name.py
sleepychild/ProgramingBasicsPython
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
[ "MIT" ]
1
2022-01-15T10:33:56.000Z
2022-01-15T10:33:56.000Z
FUNDAMENTALS_MODULE/Regular_Expressions/LAB/01_Match_Full_Name.py
sleepychild/ProgramingBasicsPython
d96dc4662adc1c8329b731b9c9b7fa4ecf69ec16
[ "MIT" ]
null
null
null
import re print(' '.join(re.findall( r"\b[A-Z][a-z]+\s[A-Z][a-z]+\b", input() )))
13
36
0.472527
19
91
2.263158
0.578947
0.186047
0.139535
0.186047
0
0
0
0
0
0
0
0
0.175824
91
6
37
15.166667
0.573333
0
0
0
0
0.2
0.318681
0.307692
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0.2
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
a7072d2809e311d3e00d59369ac9f61bea6e4b7e
143
py
Python
interpop/__init__.py
danial29rus/interpop
2eccaf20a9ba9ef9948559b29830641472514677
[ "MIT" ]
null
null
null
interpop/__init__.py
danial29rus/interpop
2eccaf20a9ba9ef9948559b29830641472514677
[ "MIT" ]
null
null
null
interpop/__init__.py
danial29rus/interpop
2eccaf20a9ba9ef9948559b29830641472514677
[ "MIT" ]
null
null
null
""" :authors: danial29rus,CHERNOV,martishenya,KAHOROV :Functions: interpop.interpol() """ from .interpop import interpol
11.916667
49
0.657343
12
143
7.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.018018
0.223776
143
11
50
13
0.828829
0.608392
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
a72d35343a5cbf3f337288afbed626b408a6964f
86
py
Python
src/gen/__init__.py
paotien833/NXP-MCUBootUtility
0afa881de1c3b870e482ac703d2b595d275856a3
[ "Apache-2.0" ]
null
null
null
src/gen/__init__.py
paotien833/NXP-MCUBootUtility
0afa881de1c3b870e482ac703d2b595d275856a3
[ "Apache-2.0" ]
null
null
null
src/gen/__init__.py
paotien833/NXP-MCUBootUtility
0afa881de1c3b870e482ac703d2b595d275856a3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import gencore import gendef __all__ = ["gencore", "gendef"]
10.75
31
0.697674
11
86
5.090909
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.151163
86
7
32
12.285714
0.767123
0.232558
0
0
0
0
0.203125
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
5979ad2b98c3d26aa6fce7acd283aef46d03831a
251
py
Python
variables/MyVariables.py
daniel-ari/RobocorpCertificateLevel2
6e5bf75908b7db70bc36800dfbfb8b555e6170b7
[ "Apache-2.0" ]
1
2021-12-27T18:42:05.000Z
2021-12-27T18:42:05.000Z
variables/MyVariables.py
daniel-ari/RobocorpCertificateLevel2
6e5bf75908b7db70bc36800dfbfb8b555e6170b7
[ "Apache-2.0" ]
null
null
null
variables/MyVariables.py
daniel-ari/RobocorpCertificateLevel2
6e5bf75908b7db70bc36800dfbfb8b555e6170b7
[ "Apache-2.0" ]
null
null
null
from datetime import datetime TODAY = datetime.now() URL_INTRANETWEBSITE = "https://robotsparebinindustries.com/" URL_ORDERWEBSITE = "https://robotsparebinindustries.com/#/robot-order" URL_ORDERSCSV = "https://robotsparebinindustries.com/orders.csv"
35.857143
70
0.804781
26
251
7.653846
0.615385
0.422111
0.467337
0
0
0
0
0
0
0
0
0
0.067729
251
6
71
41.833333
0.850427
0
0
0
0
0
0.521912
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ab852ca551d7825909d1b18c87eef0c6a884cbf2
606
py
Python
platform_constants.py
jmercouris/IPSRC
a0f59f04eb6ce08aea953d24da0d3b5e4837395a
[ "BSD-3-Clause" ]
47
2018-06-01T16:05:56.000Z
2021-07-17T18:33:33.000Z
platform_constants.py
jmercouris/IPSRC
a0f59f04eb6ce08aea953d24da0d3b5e4837395a
[ "BSD-3-Clause" ]
2
2020-06-06T10:20:40.000Z
2020-06-06T20:26:22.000Z
platform_constants.py
jmercouris/IPSRC
a0f59f04eb6ce08aea953d24da0d3b5e4837395a
[ "BSD-3-Clause" ]
5
2018-06-01T18:00:51.000Z
2020-06-06T18:30:40.000Z
import platform_disk import platform_git import platform_mqtt def get_broadcast_function(platform_string): if(platform_string == "disk"): return platform_disk.broadcast_data if(platform_string == "git"): return platform_git.broadcast_data if(platform_string == "mqtt"): return platform_mqtt.broadcast_data def get_read_function(platform_string): if(platform_string == "disk"): return platform_disk.read_data if(platform_string == "git"): return platform_git.read_data if(platform_string == "mqtt"): return platform_mqtt.read_data
27.545455
44
0.719472
75
606
5.453333
0.186667
0.273839
0.234719
0.195599
0.757946
0.694377
0.694377
0.694377
0.293399
0.293399
0
0
0.191419
606
21
45
28.857143
0.834694
0
0
0.352941
0
0
0.036304
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.647059
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
f9f6d87bfd14c9baaa70c354ebaee6ae4f5a396c
531
py
Python
waves_gateway/service/fee_service.py
NeolithEra/WavesGatewayFramework
e7ba892427e1d0444f2bfdc2922c45ff5f4c4add
[ "MIT" ]
25
2018-03-04T07:49:21.000Z
2022-03-28T05:20:50.000Z
waves_gateway/service/fee_service.py
NeolithEra/WavesGatewayFramework
e7ba892427e1d0444f2bfdc2922c45ff5f4c4add
[ "MIT" ]
22
2018-03-25T13:19:45.000Z
2020-11-28T17:21:08.000Z
waves_gateway/service/fee_service.py
NeolithEra/WavesGatewayFramework
e7ba892427e1d0444f2bfdc2922c45ff5f4c4add
[ "MIT" ]
31
2018-03-25T09:45:13.000Z
2022-03-24T05:32:18.000Z
""" FeeService """ from abc import ABC, abstractmethod from typing import Union import pywaves # type: ignore from decimal import Decimal class FeeService(ABC): """ Defines the fee values, the Gateway requires. The waves_fee may also be overwritten of required. """ @abstractmethod def get_coin_fee(self) -> Union[int, Decimal]: pass @abstractmethod def get_gateway_fee(self) -> Union[int, Decimal]: pass def get_waves_fee(self) -> int: return pywaves.DEFAULT_TX_FEE
19.666667
100
0.681733
68
531
5.191176
0.5
0.050992
0.113314
0.084986
0.147309
0.147309
0
0
0
0
0
0
0.233522
531
26
101
20.423077
0.867322
0.227872
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.230769
false
0.153846
0.307692
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
1
0
1
1
0
1
0
0
4
e61dfafff953aab1150b08b9a147164ea4abaa00
241
py
Python
UNF/test/data/test_tokenizer.py
waterzxj/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
86
2020-02-23T13:38:11.000Z
2022-03-01T12:09:28.000Z
UNF/test/data/test_tokenizer.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
2
2020-04-20T08:33:05.000Z
2020-05-13T13:43:08.000Z
UNF/test/data/test_tokenizer.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
14
2020-03-07T05:21:44.000Z
2021-05-09T16:57:23.000Z
from unittest import TestCase from UNF.data.tokenizer import WhitespaceTokenizer, SpacyTokenizer class TestToken(TestCase): def test_whitespacetokenizer(self): self.assertEqual(WhitespaceTokenizer()("a b c"), ["a", "b", "c"])
26.777778
73
0.738589
27
241
6.555556
0.666667
0.022599
0.033898
0
0
0
0
0
0
0
0
0
0.141079
241
8
74
30.125
0.855072
0
0
0
0
0
0.033195
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e61dfb6d6c1432ebd28ff850b54ccfa9ca5793b4
3,274
py
Python
Implementations/Deep-Convolutional-GAN/model.py
jaywonchung/Learning-ML
5298318686144a78bed42d979e10fbd9979c0159
[ "MIT" ]
10
2019-01-18T10:32:36.000Z
2022-03-14T08:40:23.000Z
Implementations/Deep-Convolutional-GAN/model.py
jaywonchung/Learning-ML
5298318686144a78bed42d979e10fbd9979c0159
[ "MIT" ]
null
null
null
Implementations/Deep-Convolutional-GAN/model.py
jaywonchung/Learning-ML
5298318686144a78bed42d979e10fbd9979c0159
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from constants import * class Generator(nn.Module): def __init__(self): super().__init__() self.ngpu = NGPU if torch.cuda.is_available() else 0 self.dataset = DATASET modules = [ nn.ConvTranspose2d(LATENT_DIM, NUM_FILTERS*4, 4, 1, 0, bias=False), nn.BatchNorm2d(NUM_FILTERS*4), nn.ReLU(inplace=True), nn.ConvTranspose2d(NUM_FILTERS*4, NUM_FILTERS*2, 4, 2, 1, bias=False), nn.BatchNorm2d(NUM_FILTERS*2), nn.ReLU(inplace=True), nn.ConvTranspose2d(NUM_FILTERS*2, NUM_FILTERS, 4, 2, 2 if DATASET == 'MNIST' else 1, bias=False), nn.BatchNorm2d(NUM_FILTERS), nn.ReLU(inplace=True), ] if DATASET == 'CelebA': modules.extend([ nn.ConvTranspose2d(NUM_FILTERS, NUM_FILTERS//2, 4, 2, 1, bias=False), nn.BatchNorm2d(NUM_FILTERS//2), nn.ReLU(inplace=True), nn.ConvTranspose2d(NUM_FILTERS//2, NUM_CHANNELS, 4, 2, 1, bias=False), nn.Tanh() ]) else: modules.extend([ nn.ConvTranspose2d(NUM_FILTERS, NUM_CHANNELS, 4, 2, 1, bias=False), nn.Tanh() ]) self.layers = nn.Sequential(*modules) for m in self.modules(): if isinstance(m, nn.ConvTranspose2d): nn.init.normal_(m.weight.data, 0.0, 0.02) elif isinstance(m, nn.BatchNorm2d): nn.init.normal_(m.weight.data, 1.0, 0.02) nn.init.constant_(m.bias.data, 0.0) def forward(self, z): return self.layers(z) class Discriminator(nn.Module): def __init__(self): super().__init__() self.ngpu = NGPU self.dataset = DATASET if DATASET == 'CelebA': modules = [ nn.Conv2d(NUM_CHANNELS, NUM_FILTERS//2, 4, 2, 1, bias=False), nn.LeakyReLU(0.2, inplace=True), nn.Conv2d(NUM_FILTERS//2, NUM_FILTERS, 4, 2, 1, bias=False), nn.BatchNorm2d(NUM_FILTERS), nn.LeakyReLU(0.2, inplace=True) ] else: modules = [ nn.Conv2d(NUM_CHANNELS, NUM_FILTERS, 4, 2, 1, bias=False), nn.LeakyReLU(0.2, inplace=True) ] modules.extend([ nn.Conv2d(NUM_FILTERS, NUM_FILTERS*2, 4, 2, 2 if DATASET == 'MNIST' else 1, bias=False), nn.BatchNorm2d(NUM_FILTERS*2), nn.LeakyReLU(0.2, inplace=True), nn.Conv2d(NUM_FILTERS*2, NUM_FILTERS*4, 4, 2, 1, bias=False), nn.BatchNorm2d(NUM_FILTERS*4), nn.LeakyReLU(0.2, inplace=True), nn.Conv2d(NUM_FILTERS*4, 1, 4, 1, 0, bias=False), nn.Sigmoid() ]) self.layers = nn.Sequential(*modules) for m in self.modules(): if isinstance(m, nn.ConvTranspose2d): nn.init.normal_(m.weight.data, 0.0, 0.02) elif isinstance(m, nn.BatchNorm2d): nn.init.normal_(m.weight.data, 1.0, 0.02) nn.init.constant_(m.bias.data, 0.0) def forward(self, x): return self.layers(x)
33.752577
109
0.537569
414
3,274
4.123188
0.147343
0.146456
0.077329
0.070299
0.820738
0.820738
0.797891
0.704159
0.650264
0.570592
0
0.052198
0.332926
3,274
97
110
33.752577
0.729396
0
0
0.641026
0
0
0.006718
0
0
0
0
0
0
1
0.051282
false
0
0.038462
0.025641
0.141026
0
0
0
0
null
0
0
0
1
1
1
1
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
4
e64ea0545f0e142a027c54115bb22fa4cd619dcc
236
py
Python
club/admin.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
1
2018-04-10T11:47:16.000Z
2018-04-10T11:47:16.000Z
club/admin.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
club/admin.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Club from .models import ClubRule from .models import ApplyList # Register your models here. admin.site.register(Club) admin.site.register(ApplyList) admin.site.register(ClubRule)
19.666667
32
0.809322
33
236
5.787879
0.393939
0.157068
0.251309
0
0
0
0
0
0
0
0
0
0.114407
236
11
33
21.454545
0.913876
0.110169
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.571429
0
0.571429
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
e64face20bfae44c90853c9f9c72206215f81f4e
617
py
Python
summer-of-code/week-03/nltkCh1.py
VeraButler/toolkitten
c70c1dc11404685d14cba79f60ff9133c1050fcb
[ "MIT" ]
null
null
null
summer-of-code/week-03/nltkCh1.py
VeraButler/toolkitten
c70c1dc11404685d14cba79f60ff9133c1050fcb
[ "MIT" ]
null
null
null
summer-of-code/week-03/nltkCh1.py
VeraButler/toolkitten
c70c1dc11404685d14cba79f60ff9133c1050fcb
[ "MIT" ]
null
null
null
import nltk #for line in text1: # for word in line.split(): # if word.endswith('ing'): # print(word) #text1.concordance("man") #text1.concordance("woman") #text1.dispersion_plot(["man", "woman", "child"]) #print(len(text1)) #prints dictionary of vocab in text ##print(sorted(set(text1))) #prints number of unique words in text ##print(len(set(text1))) #Lexical richenss of text ##lex_rich = len(set(text1)) / len(text1) ##print(lex_rich) ##def lex_diversity(text): ##return len(set(text)) / len(text) ##def precentage(count, total): ##return 100 * count / total #nltk.chat.chatbots()
23.730769
49
0.666126
88
617
4.625
0.477273
0.058968
0.054054
0
0
0
0
0
0
0
0
0.023033
0.155592
617
26
50
23.730769
0.758157
0.883306
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
1
0
0
4
e650cba0295f63f1e837812aee4bb1bdbf890ec0
146
py
Python
July 10/multof5.py
rithulkamesh/python-comp
0d3fe963d0713b60857240491da68ff7d8320d1a
[ "MIT" ]
1
2021-08-21T15:31:48.000Z
2021-08-21T15:31:48.000Z
July 10/multof5.py
rithulkamesh/python-comp
0d3fe963d0713b60857240491da68ff7d8320d1a
[ "MIT" ]
null
null
null
July 10/multof5.py
rithulkamesh/python-comp
0d3fe963d0713b60857240491da68ff7d8320d1a
[ "MIT" ]
null
null
null
num = int(input("Enter a number:\n")) if num % 5 == 0: print(f"{num} is a multiple of 5.") else: print(f"{num} is not a multiple of 5.")
20.857143
43
0.575342
29
146
2.896552
0.586207
0.142857
0.214286
0.261905
0
0
0
0
0
0
0
0.035714
0.232877
146
6
44
24.333333
0.714286
0
0
0
0
0
0.486301
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e66a1b292dbd17eedf2dd04e0d580c3378d63ed8
121
py
Python
printfunc.py
DMGAP/Python-Hackerrank
891fa7365d9acf71cc5827c248f10880c0f9d1a6
[ "MIT" ]
2
2021-09-12T14:56:14.000Z
2021-10-15T16:33:14.000Z
printfunc.py
DMGAP/Python-Hackerrank
891fa7365d9acf71cc5827c248f10880c0f9d1a6
[ "MIT" ]
null
null
null
printfunc.py
DMGAP/Python-Hackerrank
891fa7365d9acf71cc5827c248f10880c0f9d1a6
[ "MIT" ]
null
null
null
def not_string (n): for i in range (1,n): print(i,end='') return n n = int(input()) print(not_string(n))
17.285714
25
0.561983
22
121
3
0.636364
0.272727
0.30303
0
0
0
0
0
0
0
0
0.011111
0.256198
121
7
26
17.285714
0.722222
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.333333
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
053ad94b5ec5164fbb3d6fa44e86bae483c3c366
171
py
Python
apps/featureapi/management/commands/runfeaturetest.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/featureapi/management/commands/runfeaturetest.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/featureapi/management/commands/runfeaturetest.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from all_test_handle import * class Command(BaseCommand): def handle(self, *args, **options): test(data)
21.375
51
0.730994
22
171
5.590909
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.169591
171
7
52
24.428571
0.866197
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
0549b56acd8a4f8cc988d2dfd51f53a5345bbde3
1,392
py
Python
tests/test_misc.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
96
2016-05-13T12:13:07.000Z
2021-12-17T21:01:17.000Z
tests/test_misc.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
421
2016-05-17T20:47:16.000Z
2022-03-08T00:35:32.000Z
tests/test_misc.py
rhysnewell/spacegraphcats
e4d8b29171af0d1c8507066021be3b6a50c7802b
[ "BSD-3-Clause" ]
17
2016-10-13T17:13:17.000Z
2021-06-02T18:19:34.000Z
import sqlite3 import os from .pytest_utils import pkg_file from spacegraphcats.search import search_utils def test_get_contig_by_id(): testdata = pkg_file("tests/test-data/catlas.dory_k21") db_filename = os.path.join(testdata, "bcalm.unitigs.db") db = sqlite3.connect(db_filename) records = list(search_utils.get_contigs_by_cdbg_sqlite(db, [118])) assert len(records) == 1 record = records[0] assert record.name == "118" print(record.sequence) assert ( record.sequence == "AGACCAACCTTTAGCCTATTCAAGACGAGTGTACTTAGAGCTTCTCCATCAACATCTTCAGCGATTATGACCAAAGGCTTACGGTGAGCATTGGCAATTTCAAGAGCAGGTACAATGGACTGGATACTAGAAATTTTCTTTTCACTCAACAGAACATAGGCATCCTGGAATTCACATTTCTGACCTTTTGATGTATTAATAAAGTATGGAGAAATATAGCCTCGATCAAACTTCATGCCTTCAATAATTTCTAATTCATCATTCAGTGTTTTTCCATCCTTTACTGTGATGACACCCTTTCTTCCAACTTTTTTCATTGCATCAGAGATGATATTGCCAATTTCTTTGTCTCCGTTTGCAGAAATCGTAGCAACCTGTGCAATTTCTTCAGGGGTGGTCACAGGTTTAGACTGCTTTTTAAGTTCAGCAATTACAGCATCAACAGCTAACATCACACCTCTCCTGATTTCCACTGGATTAGCACCTTTGCTAATCTTCTCGAAGCCTTCCTTGGCTATAGAGCGTGCCAGTACAGTAGCAGTGGTAGTGCCATCCCCAGCTTCTTCATTTGTGTTATTGGCAACATCTTGAACAAGTTTAGCTCCAATGTTCTTGTATTTATCTTTTAAGTCAATTGACTTTGCAACAGTCACACCATCTTTTGTTACTTTGGGACTTCCCCAACTCTGCTCAATAATCACTGTTCTTCCCTTTGGCCCCATTGTAACGGCCACAGCATCGGCTAAAAGGTCTACACCTTGAAGCATTAAGGCTCGGGCATCTGCACCAAATTTTACATCTTTGGCATAAGCCCGAGTGAGATGAGGAGCCAGTACCCTGGACACCGGTCTCAT" )
63.272727
867
0.881466
74
1,392
16.364865
0.594595
0.011561
0
0
0
0
0
0
0
0
0
0.009331
0.076149
1,392
21
868
66.285714
0.932348
0
0
0
0
0
0.649425
0.635776
0
1
0
0
0.176471
1
0.058824
false
0
0.235294
0
0.294118
0.058824
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
4
054ae68bab55b9edc6e0531c39763f048511acd0
275
py
Python
py_abac/policy/conditions/collection/__init__.py
farhah/py-abac
588ea2bba1cee4f6c234b5892d46faa34b2fc6e4
[ "Apache-2.0" ]
47
2019-10-17T03:23:01.000Z
2022-02-26T03:27:03.000Z
py_abac/policy/conditions/collection/__init__.py
farhah/py-abac
588ea2bba1cee4f6c234b5892d46faa34b2fc6e4
[ "Apache-2.0" ]
17
2020-02-24T02:17:34.000Z
2022-02-15T20:11:19.000Z
py_abac/policy/conditions/collection/__init__.py
ketgo/pyabac
8a44107a00f712bbb9c6cd3ecad155ef696cf035
[ "Apache-2.0" ]
10
2019-12-24T04:13:21.000Z
2021-08-01T08:21:41.000Z
""" Collection conditions """ from .all_in import AllIn from .all_not_in import AllNotIn from .any_in import AnyIn from .any_not_in import AnyNotIn from .is_empty import IsEmpty from .is_in import IsIn from .is_not_empty import IsNotEmpty from .is_not_in import IsNotIn
21.153846
36
0.8
46
275
4.521739
0.391304
0.230769
0.158654
0
0
0
0
0
0
0
0
0
0.149091
275
12
37
22.916667
0.888889
0.076364
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
054c846ffee05497c5da4dbd52dce19ba51aa795
49
py
Python
see_them_all/outputs/tvtime/__init__.py
Lulu300/see-them-all
ceb74003190085f0c353d7780e52f5dbd12ef7c8
[ "MIT" ]
2
2019-03-02T10:25:29.000Z
2019-05-06T13:52:52.000Z
see_them_all/outputs/tvtime/__init__.py
Lulu300/see-them-all
ceb74003190085f0c353d7780e52f5dbd12ef7c8
[ "MIT" ]
null
null
null
see_them_all/outputs/tvtime/__init__.py
Lulu300/see-them-all
ceb74003190085f0c353d7780e52f5dbd12ef7c8
[ "MIT" ]
null
null
null
from .tvtime import Tvtime __all__ = ['Tvtime']
12.25
26
0.714286
6
49
5.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.163265
49
3
27
16.333333
0.756098
0
0
0
0
0
0.122449
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4