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
d128e2cb73309c88eec66c10ca013dec080dcec2
1,729
py
Python
backend/media_server/migrations/0001_initial.py
sk1t0n/docker-drf-quasar-media-server
4645655764f2fcd56f6d04d83417446324475537
[ "BSD-3-Clause" ]
null
null
null
backend/media_server/migrations/0001_initial.py
sk1t0n/docker-drf-quasar-media-server
4645655764f2fcd56f6d04d83417446324475537
[ "BSD-3-Clause" ]
null
null
null
backend/media_server/migrations/0001_initial.py
sk1t0n/docker-drf-quasar-media-server
4645655764f2fcd56f6d04d83417446324475537
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-09 08:27 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Genre', fields=[ ...
40.209302
131
0.580682
172
1,729
5.686047
0.412791
0.112474
0.055215
0.07362
0.404908
0.404908
0.404908
0.327198
0.327198
0.327198
0
0.027092
0.274147
1,729
42
132
41.166667
0.752191
0.026027
0
0.4
1
0
0.102854
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d13092803e84c7bddef0c7c74f3b30fa5fe2cdac
2,631
py
Python
tests/test_instance.py
simonw/python-ext-wasm
7768c6b668e1f26f36c4f5c03f143871505de401
[ "MIT" ]
null
null
null
tests/test_instance.py
simonw/python-ext-wasm
7768c6b668e1f26f36c4f5c03f143871505de401
[ "MIT" ]
null
null
null
tests/test_instance.py
simonw/python-ext-wasm
7768c6b668e1f26f36c4f5c03f143871505de401
[ "MIT" ]
null
null
null
import wasmer from wasmer import Instance, Uint8Array, Value import inspect import os import pytest here = os.path.dirname(os.path.realpath(__file__)) TEST_BYTES = open(here + '/tests.wasm', 'rb').read() INVALID_TEST_BYTES = open(here + '/invalid.wasm', 'rb').read() def value_with_type(value): return (value, type...
31.321429
103
0.72672
378
2,631
4.748677
0.246032
0.074095
0.142061
0.147075
0.423398
0.321448
0.27688
0.225627
0.051253
0
0
0.046646
0.144432
2,631
83
104
31.698795
0.750777
0
0
0.066667
0
0
0.079437
0
0
0
0
0
0.316667
1
0.333333
false
0
0.083333
0.016667
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d14ec74051e0d298429e261ca02d2d737f3b7cfc
591
py
Python
modules/app_settings.py
hungluu6453/BK_212_Autonomous_Car_DMC_Project
5806a7e938e57b2e8b51c734af5cc28308dce172
[ "MIT" ]
null
null
null
modules/app_settings.py
hungluu6453/BK_212_Autonomous_Car_DMC_Project
5806a7e938e57b2e8b51c734af5cc28308dce172
[ "MIT" ]
null
null
null
modules/app_settings.py
hungluu6453/BK_212_Autonomous_Car_DMC_Project
5806a7e938e57b2e8b51c734af5cc28308dce172
[ "MIT" ]
null
null
null
class Settings(): # APP SETTINGS # /////////////////////////////////////////////////////////////// ENABLE_CUSTOM_TITLE_BAR = False MENU_WIDTH = 240 TIME_ANIMATION = 400 # BTNS LEFT AND RIGHT BOX COLORS BTN_LEFT_BOX_COLOR = "background-color: rgb(44, 49, 58);" BTN_RIGHT_BOX_COLOR = "back...
34.764706
140
0.592217
76
591
4.434211
0.684211
0.133531
0.106825
0.136499
0
0
0
0
0
0
0
0.114823
0.189509
591
16
141
36.9375
0.588727
0.22335
0
0
0
0.1
0.522026
0.059471
0
0
0
0
0
1
0
false
0
0
0
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d14f2afd8a56185f8947af2d3c9ae23295474979
1,248
py
Python
svm-grid.py
josh314/squinty
417dc131fec7ada4e4a53aa5aadcf66bad54f515
[ "MIT" ]
null
null
null
svm-grid.py
josh314/squinty
417dc131fec7ada4e4a53aa5aadcf66bad54f515
[ "MIT" ]
null
null
null
svm-grid.py
josh314/squinty
417dc131fec7ada4e4a53aa5aadcf66bad54f515
[ "MIT" ]
null
null
null
import optparse parser = optparse.OptionParser() parser.add_option("-o", action="store", type="string", dest="o") parser.add_option("-n", action="store", type="int", dest="n") parser.set_defaults(o="out.p", n=1000) opts, args = parser.parse_args() if(len(args) < 1): print "Usage: python svm.py <input CSV> [option...
27.130435
104
0.74359
207
1,248
4.323672
0.478261
0.020112
0.060335
0.051397
0
0
0
0
0
0
0
0.020036
0.120192
1,248
45
105
27.733333
0.795082
0.060897
0
0
0
0
0.063356
0
0
0
0
0
0
0
null
null
0
0.212121
null
null
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d15a7ba5a876afb4fad6f6b1961ffd02339b2551
1,525
py
Python
options.py
mryab/vmf_loss
1571c9ae52d43d081a4a3ae12256ade87e226d1e
[ "MIT" ]
4
2020-09-02T16:09:28.000Z
2021-01-30T18:36:02.000Z
options.py
mryab/vmf_loss
1571c9ae52d43d081a4a3ae12256ade87e226d1e
[ "MIT" ]
null
null
null
options.py
mryab/vmf_loss
1571c9ae52d43d081a4a3ae12256ade87e226d1e
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from losses import get_available_losses def add_general_args(parser): group = parser.add_argument_group("General options") group.add_argument("--dataset", choices=["de-en", "en-fr", "fr-en"], required=True) group.add_argument( "--token-type", choices=["word", "...
33.888889
87
0.709508
201
1,525
5.159204
0.298507
0.16972
0.200579
0.057859
0.3973
0.201543
0.201543
0.094503
0
0
0
0.01139
0.136393
1,525
44
88
34.659091
0.776006
0
0
0.181818
0
0
0.148197
0
0
0
0
0
0
1
0.151515
false
0
0.060606
0
0.272727
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d15d3d07398f2208a27651e5f9ab79d67bc20fa1
21,532
py
Python
avisynch_script_generator.py
StefanWyszynski/blender_addon_denoising_script
2559b9463baa13d71ada51820f90f90f74990f07
[ "MIT" ]
2
2019-07-31T08:28:19.000Z
2022-01-09T17:35:02.000Z
avisynch_script_generator.py
StefanWyszynski/blender_addon_denoising_script
2559b9463baa13d71ada51820f90f90f74990f07
[ "MIT" ]
null
null
null
avisynch_script_generator.py
StefanWyszynski/blender_addon_denoising_script
2559b9463baa13d71ada51820f90f90f74990f07
[ "MIT" ]
null
null
null
bl_info = { "name": "Denoiser animation Avisynth script generator", "description": "Generate denoising script for Avisynth", "author": "Stefan Wyszyński", "version": (0, 3), "blender": (2, 78, 0), "location": "Properties > Render > Denoising scrip generator", "warning": "Requires Avisynth to...
45.330526
213
0.619171
2,588
21,532
5.083076
0.223725
0.036488
0.035652
0.023109
0.276777
0.209578
0.186925
0.142835
0.112353
0.101102
0
0.020328
0.255202
21,532
474
214
45.42616
0.799963
0.083736
0
0.173554
1
0.046832
0.382002
0.04469
0
0
0
0
0
1
0.013774
false
0
0.022039
0.002755
0.066116
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d15f46dd6981b42b7c51333f04fd78644c0cf4b4
6,052
py
Python
lianjia/lianjia/items.py
UranusResident/xa_new_house
6229c34076bd8043dfe2cfe3c329beec968d5a1f
[ "MIT" ]
null
null
null
lianjia/lianjia/items.py
UranusResident/xa_new_house
6229c34076bd8043dfe2cfe3c329beec968d5a1f
[ "MIT" ]
null
null
null
lianjia/lianjia/items.py
UranusResident/xa_new_house
6229c34076bd8043dfe2cfe3c329beec968d5a1f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item,Field class BasicInfoItem(Item): basic_id = Field() city_id = Field() city_name = Field() district_name = Field() distric...
24.502024
51
0.655651
733
6,052
5.111869
0.281037
0.043235
0.0411
0.025354
0.212437
0.099279
0.070189
0.070189
0.049373
0.049373
0
0.000212
0.221249
6,052
247
52
24.502024
0.794823
0.121447
0
0.38806
0
0
0
0
0
0
0
0
0
1
0
false
0
0.004975
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d16153dd322b4b9e1fab8ccdfda1a3faf2e3a9cb
2,349
py
Python
forum/templatetags/user_tags.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-07-14T09:58:07.000Z
2017-07-14T09:58:07.000Z
forum/templatetags/user_tags.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
forum/templatetags/user_tags.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from django import template from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe import logging register = template.Library() class UserSignatureNode(template.Node): template = template.loader.get_template('users/signature.html') def __init__(self, user, format): ...
31.32
111
0.683269
267
2,349
5.917603
0.262172
0.040506
0.026582
0.032278
0.412025
0.398734
0.317722
0.317722
0.25443
0.25443
0
0.00162
0.211579
2,349
74
112
31.743243
0.851512
0
0
0.267857
0
0
0.087734
0
0
0
0
0
0
0
null
null
0
0.089286
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
d162aa64f61b764ff97b6d774a2400329a48c0dd
5,878
py
Python
wsMiddle/wsmiddle.py
gorquan/tangdou
88f200a5b00a596b11079d87d205546a227fbbca
[ "MIT" ]
2
2019-10-22T01:14:57.000Z
2020-06-18T02:18:24.000Z
wsMiddle/wsmiddle.py
gorquan/tangdou
88f200a5b00a596b11079d87d205546a227fbbca
[ "MIT" ]
null
null
null
wsMiddle/wsmiddle.py
gorquan/tangdou
88f200a5b00a596b11079d87d205546a227fbbca
[ "MIT" ]
1
2020-06-18T02:18:25.000Z
2020-06-18T02:18:25.000Z
# author: gorquanwu <gorquanwu@gmail.com> # date: 2019.7.20 import logging import yaml import os import logging.config from MQBase import MQSender, MQReciver from queue import Queue import threading import json from functools import partial import ast def setLog(baseDir, filename): ''' To set log :param ...
39.716216
308
0.609391
578
5,878
6.124567
0.311419
0.059322
0.033898
0.023729
0.116384
0.085593
0.05904
0
0
0
0
0.002558
0.268289
5,878
147
309
39.986395
0.820507
0.032664
0
0.186441
0
0
0.182044
0
0
0
0
0.006803
0
1
0.050847
false
0.09322
0.110169
0
0.177966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d164a9074b4f6193d859d49a16daf38de09854ef
995
py
Python
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
3
2019-02-24T07:37:36.000Z
2020-03-17T16:00:38.000Z
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
null
null
null
i2a/latent_space/latent_space_imagination_core.py
FlorianKlemt/pytorch-latent-i2a
36809bf3adda1fcffaccd27e352b7ad2338060a7
[ "MIT" ]
null
null
null
from torch import nn class LatentSpaceImaginationCore(nn.Module): def __init__(self, env_model=None, rollout_policy=None): super(LatentSpaceImaginationCore, self).__init__() self.env_model = env_model self.rollout_policy = rollout_policy def forward(self, latent_state, action): ...
36.851852
91
0.730653
124
995
5.491935
0.282258
0.082232
0.105727
0.04699
0.061674
0
0
0
0
0
0
0
0.194975
995
26
92
38.269231
0.850187
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.05
0
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
d16b22a4ef8e4e8471d39bef240aedfa2a7dfe4a
1,343
py
Python
Exercicios/ex045_GAME Pedra Papel e Tesoura.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
Exercicios/ex045_GAME Pedra Papel e Tesoura.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
Exercicios/ex045_GAME Pedra Papel e Tesoura.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
from random import randint from time import sleep itens = ('Pedra', 'Papel', 'Tesoura') # lista de itens computador = randint(0, 2) # o computador esta sorteando entre 0, 1 ou 2.. print(''' Suas opções [0] Pedra [1] Papel [2] Tesoura''') player = int(input('Qual é sua jogada? \n')) sleep(0.5) print('JO') sleep(...
24.87037
83
0.580045
174
1,343
4.477011
0.293103
0.077022
0.026958
0.046213
0.392811
0.293967
0.259307
0.084724
0
0
0
0.043053
0.239017
1,343
53
84
25.339623
0.719178
0.097543
0
0.510638
0
0
0.30597
0
0
0
0
0
0
1
0
false
0
0.042553
0
0.042553
0.446809
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
d16e53118362ebc3f13ba483709e4734463b9c73
1,564
py
Python
setup.py
jayvdb/sre-tools
975bd5d421214fd325feab0ce32782dac3df93bc
[ "Apache-2.0" ]
2
2020-09-23T19:58:46.000Z
2022-01-06T14:02:49.000Z
setup.py
jayvdb/sre-tools
975bd5d421214fd325feab0ce32782dac3df93bc
[ "Apache-2.0" ]
2
2020-09-23T16:08:11.000Z
2020-09-23T23:07:57.000Z
setup.py
jayvdb/sre-tools
975bd5d421214fd325feab0ce32782dac3df93bc
[ "Apache-2.0" ]
1
2022-01-06T14:02:52.000Z
2022-01-06T14:02:52.000Z
#!/usr/bin/env python """SRE regex tools.""" """ Copyright 2020 John Vandenberg Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
30.666667
72
0.730818
210
1,564
5.37619
0.590476
0.053144
0.088574
0.069088
0
0
0
0
0
0
0
0.022556
0.149616
1,564
50
73
31.28
0.826316
0.023657
0
0
0
0.035714
0.645464
0.038582
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d16f8bceddb8dabae8c3440a08319128a417f548
900
py
Python
appbackend/migrations/0003_auto_20200403_1152.py
Ekhel/backend-kawal-corona-papua
daa4c5f09e5b2373791e4be1fb9340dcb27c7fec
[ "MIT" ]
1
2020-04-03T17:18:14.000Z
2020-04-03T17:18:14.000Z
appbackend/migrations/0003_auto_20200403_1152.py
Ekhel/backend-kawal-corona-papua
daa4c5f09e5b2373791e4be1fb9340dcb27c7fec
[ "MIT" ]
5
2020-06-06T01:36:33.000Z
2022-02-10T11:50:01.000Z
appbackend/migrations/0003_auto_20200403_1152.py
Ekhel/backend-kawal-corona-papua
daa4c5f09e5b2373791e4be1fb9340dcb27c7fec
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-04-03 02:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('appbackend', '0002_auto_20200402_0335'), ] operations = [ migrations.AddField( model_name='penderita', name='umur', ...
31.034483
152
0.581111
89
900
5.775281
0.539326
0.062257
0.105058
0.128405
0.163424
0.163424
0
0
0
0
0
0.054381
0.264444
900
28
153
32.142857
0.722054
0.05
0
0.363636
1
0
0.200469
0.026964
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
66f9cb50914de2b553892caaa54c8d19b2b9e605
1,874
py
Python
pychron/database/orms/isotope/spec.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/database/orms/isotope/spec.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/database/orms/isotope/spec.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2013 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
37.48
81
0.652081
205
1,874
5.863415
0.546341
0.049917
0.021631
0.026622
0.063228
0.063228
0.063228
0
0
0
0
0.004902
0.129136
1,874
49
82
38.244898
0.731618
0.478122
0
0.2
0
0
0.105318
0.098019
0
0
0
0
0
1
0
false
0
0.35
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f00fe72edecb75c5600606d7c1939291d18c8b6
1,791
py
Python
apps/courses/factories.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
null
null
null
apps/courses/factories.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
null
null
null
apps/courses/factories.py
SatishTammineni/django-lms
3dcf11355994089eb5506c441a8b1374c0df1f86
[ "BSD-3-Clause" ]
2
2020-11-03T03:32:12.000Z
2022-03-02T18:14:52.000Z
import factory from datetime import datetime, timedelta, time from django.contrib.auth.models import User, Group from models import Course, CourseEvent, Semester, Assignment class SemesterFactory(factory.Factory): FACTORY_FOR = Semester name = 'Fall' year = unicode(datetime.now().year) start = datetim...
29.85
74
0.670575
212
1,791
5.608491
0.429245
0.117746
0.08831
0.100925
0.16148
0.137931
0.062237
0.062237
0
0
0
0.016129
0.203797
1,791
59
75
30.355932
0.817672
0
0
0
0
0
0.107203
0.040201
0
0
0
0
0
1
0.022727
false
0
0.090909
0
0.886364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f0a139db1789a5ebc9565bd3f6479e2f08160ae
18,899
py
Python
openvino_object_detection_configs.py
odundar/openvino_python_samples
02647e14ed9589fdb6f4f1153b3a4e8cffa26681
[ "MIT" ]
25
2019-08-10T16:30:07.000Z
2022-01-27T19:45:41.000Z
openvino_object_detection_configs.py
odundar/openvino_python_samples
02647e14ed9589fdb6f4f1153b3a4e8cffa26681
[ "MIT" ]
null
null
null
openvino_object_detection_configs.py
odundar/openvino_python_samples
02647e14ed9589fdb6f4f1153b3a4e8cffa26681
[ "MIT" ]
9
2019-12-16T07:58:38.000Z
2021-07-30T15:34:43.000Z
# MIT License # # Copyright (c) 2019 Onur Dundar onur.dundar1@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
45.871359
163
0.538335
2,026
18,899
4.881046
0.201876
0.022348
0.024067
0.015573
0.477399
0.448883
0.37658
0.367176
0.34321
0.333704
0
0.023543
0.348219
18,899
411
164
45.982968
0.779266
0.092862
0
0.406143
0
0.010239
0.165186
0.034708
0
0
0.000471
0
0
0
null
null
0
0.020478
null
null
0.098976
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f0c87d06a8c2d8f01bed3b57d309d9bb6b190ab
450
py
Python
servicelog/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
servicelog/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
servicelog/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('crud/<int:machine_id>/<int:servicelog_id>', views.servicelog_crud, name='service_log_crud'), path('crud/<int:machine_id>', views.servicelog_crud, name='service_log_crud'), path('<int:...
37.5
102
0.746667
63
450
5.079365
0.31746
0.1875
0.175
0.1125
0.64375
0.5
0.26875
0.26875
0.26875
0
0
0
0.106667
450
11
103
40.909091
0.79602
0
0
0
0
0
0.304444
0.137778
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f0caa1fe51f30aa8686d13dc91b20fa2b72aaa8
1,185
py
Python
setup.py
blaa/barySSH
068172c3425eeb92dfe37f9440e053023d3ddcb9
[ "MIT" ]
5
2016-02-25T07:17:32.000Z
2016-11-21T08:24:15.000Z
setup.py
blaa/barySSH
068172c3425eeb92dfe37f9440e053023d3ddcb9
[ "MIT" ]
5
2016-02-26T09:21:57.000Z
2018-03-01T15:01:11.000Z
setup.py
blaa/barySSH
068172c3425eeb92dfe37f9440e053023d3ddcb9
[ "MIT" ]
3
2016-02-26T09:18:37.000Z
2016-04-27T06:35:21.000Z
#!/usr/bin/env python # coding: utf-8 from setuptools import setup from setuptools.extension import Extension try: from Cython.Build import cythonize USE_CYTHON=True except ImportError: print print print "You need Cython to compile this project" print raise USE_CYTHON=False cythoni...
25.212766
67
0.601688
136
1,185
5.198529
0.705882
0.03819
0
0
0
0
0
0
0
0
0
0.01524
0.280169
1,185
46
68
25.76087
0.813599
0.028692
0
0.075
0
0
0.374238
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f0cdad26e9b5d53635a4cf7a74ecbc2a77b6e3f
467
py
Python
src/structures/abc.py
Galsor/KBNPathfinder
74a5538a242193368d4d08dc064ea63d0ba4792c
[ "MIT" ]
null
null
null
src/structures/abc.py
Galsor/KBNPathfinder
74a5538a242193368d4d08dc064ea63d0ba4792c
[ "MIT" ]
null
null
null
src/structures/abc.py
Galsor/KBNPathfinder
74a5538a242193368d4d08dc064ea63d0ba4792c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Dict, List, Type from src.structures.edge import Edge from src.structures.node import Node class BaseKBNGraph(ABC): nodes: Dict[int, Type[Node]] neighborhood: Dict[int, List[int]] edges: Dict[int, Type[Edge]] @abstractmethod def build_egdes(...
23.35
69
0.67666
63
467
4.936508
0.444444
0.090032
0.106109
0.096463
0.205788
0.205788
0
0
0
0
0
0
0.205567
467
19
70
24.578947
0.838275
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f1389859a84565cdf7ddde7e6cc6b9a99366347
2,456
py
Python
app/yamltest.py
benshurts/Pysoma
e3806b7578e475933ea394662e32af78be4ca8a6
[ "MIT" ]
null
null
null
app/yamltest.py
benshurts/Pysoma
e3806b7578e475933ea394662e32af78be4ca8a6
[ "MIT" ]
null
null
null
app/yamltest.py
benshurts/Pysoma
e3806b7578e475933ea394662e32af78be4ca8a6
[ "MIT" ]
null
null
null
import os import sys import pathlib import yaml import pprint import json import ruamel.yaml # try: # from yaml import CLoader as Loader, CDumper as Dumper # except ImportError: # from yaml import Loader, Dumper if getattr(sys, 'frozen', False): import sys, os # If the application is run as a b...
27.909091
77
0.640879
347
2,456
4.371758
0.351585
0.00791
0.00791
0.013843
0.034278
0
0
0
0
0
0
0.001057
0.229235
2,456
88
78
27.909091
0.800317
0.611971
0
0
0
0
0.093541
0
0
0
0
0
0
1
0.083333
false
0.041667
0.333333
0
0.458333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f15af05df2ad834d72dc76ac97831bc107d0046
2,017
py
Python
quickcert/interfaces/__init__.py
dedickinson/hub-util-tls
cff25cf45455f97c5654110b7b4ad903380b9d0e
[ "BSD-2-Clause" ]
null
null
null
quickcert/interfaces/__init__.py
dedickinson/hub-util-tls
cff25cf45455f97c5654110b7b4ad903380b9d0e
[ "BSD-2-Clause" ]
4
2020-03-24T16:58:15.000Z
2021-06-01T23:28:02.000Z
quickcert/interfaces/__init__.py
dedickinson/hub-util-tls
cff25cf45455f97c5654110b7b4ad903380b9d0e
[ "BSD-2-Clause" ]
null
null
null
""" Interfaces ---------- .. currentmodule::quickcert.interfaces Keys ~~~~ .. autoclass:: PrivateKey :members: .. autoclass:: PublicKey :members: .. autoclass:: KeyMinter :members: .. autoclass:: KeyStore :members: Certificates ~~~~~~~~~~~~ .. autoclass:: Certificate :members: .. autoclass...
20.17
84
0.635102
169
2,017
7.573965
0.426036
0.1375
0.03125
0
0
0
0
0
0
0
0
0.001341
0.260783
2,017
99
85
20.373737
0.857143
0.603371
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.133333
false
0.466667
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f18c289048e1d91f260667c9db3be0fc232d0d0
515
py
Python
config.py
gusewser/ttrn
38c3106a9496a54d59ad2675bd44ce28d29d8bb0
[ "MIT" ]
null
null
null
config.py
gusewser/ttrn
38c3106a9496a54d59ad2675bd44ce28d29d8bb0
[ "MIT" ]
null
null
null
config.py
gusewser/ttrn
38c3106a9496a54d59ad2675bd44ce28d29d8bb0
[ "MIT" ]
null
null
null
from typing import List from pydantic import BaseSettings, Field class ListOfStrField(List[str]): @classmethod def __get_validators__(cls): yield cls.validate @classmethod def validate(cls, v: str) -> List[str]: return v.split(',') class Config(BaseSettings): TOKEN: str GROU...
19.807692
43
0.683495
65
515
5.184615
0.584615
0.071217
0.094955
0.10089
0
0
0
0
0
0
0
0.017677
0.231068
515
25
44
20.6
0.833333
0
0
0.111111
0
0
0.001942
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.055556
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f27d73365642d95fc9725a733a40bef78a25248
343
py
Python
code_examples/chapter4/invalid/literals.py
trungnghiahoang96/RobustPython
dafb95d801dff2c8ff7856ba46d3c052d54e0033
[ "MIT" ]
39
2020-12-01T20:52:13.000Z
2022-03-19T00:56:12.000Z
code_examples/chapter4/invalid/literals.py
trungnghiahoang96/RobustPython
dafb95d801dff2c8ff7856ba46d3c052d54e0033
[ "MIT" ]
null
null
null
code_examples/chapter4/invalid/literals.py
trungnghiahoang96/RobustPython
dafb95d801dff2c8ff7856ba46d3c052d54e0033
[ "MIT" ]
10
2021-05-18T18:29:32.000Z
2022-02-26T13:54:06.000Z
from dataclasses import dataclass from typing import Literal @dataclass class Error: error_code: Literal[1,2,3,4,5] disposed_of: bool @dataclass class Snack: name: Literal["Pretzel", "Hot Dog"] condiments: set[Literal["Mustard", "Ketchup"]] Error(0, False) Snack("Not Valid", set()) Snack("Pretzel", ...
20.176471
50
0.693878
46
343
5.130435
0.673913
0.118644
0
0
0
0
0
0
0
0
0
0.02069
0.154519
343
16
51
21.4375
0.793103
0
0
0.153846
0
0
0.166181
0
0
0
0
0
0
1
0
true
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0f2a3ff4bf47a04f29f128889b9e7e76b4e7e74d
4,637
py
Python
timeflow/trainer/automated_training_monitor.py
zach-nervana/TimeFlow
c1ea2e1d2583907ab7775f189541af87f8de9d53
[ "MIT" ]
76
2016-11-22T14:09:10.000Z
2020-09-23T19:02:19.000Z
timeflow/trainer/automated_training_monitor.py
genesiscrew/TensorFlow-Predictor
d129172b064d9e73e9118ac7164eb826a1263100
[ "MIT" ]
1
2017-08-17T18:43:01.000Z
2017-08-17T18:43:01.000Z
timeflow/trainer/automated_training_monitor.py
genesiscrew/TensorFlow-Predictor
d129172b064d9e73e9118ac7164eb826a1263100
[ "MIT" ]
26
2017-03-09T02:41:07.000Z
2021-11-17T09:46:52.000Z
import tensorflow as tf __all__ = ['AutomatedTrainingMonitor'] class AutomatedTrainingMonitor: def __init__(self, input_var, output_var, training_input, training_output, train, cost, sess, training_steps=100, validation_input=None, validation_output=None, early_...
38.966387
110
0.600173
522
4,637
5.047893
0.187739
0.040987
0.054269
0.032258
0.244402
0.205693
0.187476
0.16926
0.16926
0.16926
0
0.003245
0.335346
4,637
118
111
39.29661
0.85172
0
0
0.263889
0
0
0.020833
0.007246
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f3b96fc80240396a8521bbaae42ff7835fbc80d
278
py
Python
marka.py
Nkromin/raspomonitor
70f8c8475476f243bb68cb7d5c306a623b442592
[ "Apache-2.0" ]
3
2019-05-02T16:55:39.000Z
2019-11-04T09:32:09.000Z
marka.py
Nkromin/raspomonitor
70f8c8475476f243bb68cb7d5c306a623b442592
[ "Apache-2.0" ]
2
2019-05-02T16:48:24.000Z
2019-05-03T14:56:13.000Z
marka.py
Nkromin/raspomonitor
70f8c8475476f243bb68cb7d5c306a623b442592
[ "Apache-2.0" ]
3
2019-05-02T16:55:52.000Z
2020-08-20T14:33:29.000Z
'''The Driver code to execute the search_in_thecollection.py''' import os s = "test" s1 = s+'.jpg' os.system("raspistill -o "+s1+" -t 3000") #Taking Single Image from RaspberryPI Camera print("Identifying face within collection") os.system("python3 search_index_face.py "+s1)
27.8
86
0.73741
43
278
4.674419
0.767442
0.079602
0
0
0
0
0
0
0
0
0
0.032922
0.125899
278
9
87
30.888889
0.794239
0.363309
0
0
0
0
0.550296
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f406e6d0fa90f8fc9bf7f2e9f4fc89edff6390c
530
py
Python
postcodeinfo/wsgi.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/wsgi.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
null
null
null
postcodeinfo/wsgi.py
UKHomeOffice/postcodeinfo
f268a6b6d6d7ac55cb2fb307e98275348e30a287
[ "MIT" ]
1
2021-04-11T09:12:19.000Z
2021-04-11T09:12:19.000Z
""" WSGI config for postcodeinfo project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os from os.path import abspath, dirname from sys import path from django.core.wsgi im...
25.238095
78
0.796226
75
530
5.466667
0.613333
0.04878
0.087805
0
0
0
0
0
0
0
0
0
0.10566
530
20
79
26.5
0.864979
0.411321
0
0
0
0
0.141447
0.141447
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f483f6da9b352bf948567cdddbd6efb61b00f69
6,252
py
Python
forecast/utils/edit_helpers.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
3
2020-01-05T16:46:42.000Z
2021-08-02T08:08:39.000Z
forecast/utils/edit_helpers.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
30
2019-11-28T15:16:35.000Z
2021-08-16T14:49:58.000Z
forecast/utils/edit_helpers.py
uktrade/fadmin2
0f774400fb816c9ca30e30b25ae542135966e185
[ "MIT" ]
null
null
null
import logging from decimal import Decimal, InvalidOperation from django.conf import settings from core.utils.generic_helpers import ( check_empty, get_current_financial_year, ) from forecast.models import ( FinancialCode, FinancialPeriod, ForecastMonthlyFigure, ) class CannotFindMonthlyFigureE...
32.226804
88
0.639955
661
6,252
5.750378
0.263238
0.044199
0.040516
0.052092
0.266246
0.265456
0.212839
0.163378
0.116548
0.069192
0
0.009409
0.285988
6,252
193
89
32.393782
0.84207
0.024792
0
0.184397
0
0
0.147266
0.004104
0
0
0
0.005181
0
1
0.028369
false
0.06383
0.035461
0
0.163121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f484870020a73e7e1f76a439ca56efd337d5184
2,303
py
Python
custom_components/whistle/config_flow.py
nicholasrobinson/home-assistant-whistle
47b563b1d5ad0e76c2b7e53b5c2bfac8479bafc7
[ "MIT" ]
4
2021-07-26T18:41:51.000Z
2022-03-23T16:16:05.000Z
custom_components/whistle/config_flow.py
nicholasrobinson/home-assistant-whistle
47b563b1d5ad0e76c2b7e53b5c2bfac8479bafc7
[ "MIT" ]
5
2021-10-01T13:24:21.000Z
2022-03-19T22:56:26.000Z
custom_components/whistle/config_flow.py
nicholasrobinson/home-assistant-whistle
47b563b1d5ad0e76c2b7e53b5c2bfac8479bafc7
[ "MIT" ]
1
2022-02-21T06:34:28.000Z
2022-02-21T06:34:28.000Z
"""Config flow for Whistle component""" import logging import voluptuous as vol from pywhistle import Client from homeassistant.helpers import aiohttp_client from homeassistant import config_entries from homeassistant.core import callback from homeassistant.const import ( CONF_PASSWORD, CONF_USERNAME ) from .co...
28.7875
79
0.653495
265
2,303
5.392453
0.339623
0.037789
0.027292
0.025192
0
0
0
0
0
0
0
0.000587
0.26053
2,303
79
80
29.151899
0.83852
0.052974
0
0
0
0
0.044202
0
0
0
0
0
0
1
0.036364
false
0.109091
0.145455
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f550daa234f0456b59f310413f190e9ec432861
2,017
py
Python
tests/bugs/core_4566_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_4566_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_4566_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_4566 # title: Incorrect size of the output parameter/argument when execute block, procedure or function use system field in metadata charset # decription: # tracker_id: CORE-4566 # min_versions: ['3.0'] # versions: 3.0 # qmid: None import pytest from fi...
26.194805
142
0.61527
270
2,017
4.381481
0.388889
0.047337
0.05579
0.038039
0.247675
0.176669
0.157227
0.062553
0.062553
0
0
0.031915
0.300942
2,017
76
143
26.539474
0.807092
0.153198
0
0.269231
0
0.019231
0.709906
0.070165
0
0
0
0
0.019231
1
0.019231
false
0
0.038462
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f599592d2d321c47b2117da4d5ec7d7a65c8c5e
281
py
Python
models/image/generate_model_img.py
K0v7/Aprendizado-de-libras
194ee41604028933369cbeb681ef1ca3b4f6d2ed
[ "MIT" ]
1
2021-10-05T01:50:00.000Z
2021-10-05T01:50:00.000Z
models/image/generate_model_img.py
K0v7/Aprendizado-de-libras
194ee41604028933369cbeb681ef1ca3b4f6d2ed
[ "MIT" ]
null
null
null
models/image/generate_model_img.py
K0v7/Aprendizado-de-libras
194ee41604028933369cbeb681ef1ca3b4f6d2ed
[ "MIT" ]
null
null
null
from keras.utils import to_categorical, plot_model from keras.models import load_model import sys model = sys.argv[1] model = load_model(model) model_name = sys.argv[2] plot_model(model, to_file=model_name+'.png', show_shapes=True) print('[INFO] Summary: ') model.summary()
16.529412
62
0.758007
45
281
4.533333
0.511111
0.147059
0
0
0
0
0
0
0
0
0
0.008097
0.120996
281
16
63
17.5625
0.817814
0
0
0
0
0
0.071942
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0f5d744968a230ae44bf25b7087d4e2cd9c41f3e
1,295
py
Python
src/brouwers/migration/admin.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
6
2015-03-03T13:23:07.000Z
2021-12-19T18:12:41.000Z
src/brouwers/migration/admin.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
95
2015-02-07T00:55:39.000Z
2022-02-08T20:22:05.000Z
src/brouwers/migration/admin.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
2
2016-03-22T16:53:26.000Z
2019-02-09T22:46:04.000Z
from django.contrib import admin from .models import AlbumMigration, AlbumUserMigration, PhotoMigration, UserMigration @admin.register(UserMigration) class UserMigrationAdmin(admin.ModelAdmin): list_display = ("__str__", "username", "username_clean", "email", "hash", "url") list_editable = ("username", "emai...
35
85
0.715058
130
1,295
6.784615
0.384615
0.062358
0.086168
0.117914
0.267574
0.097506
0.097506
0
0
0
0
0
0.135135
1,295
36
86
35.972222
0.7875
0
0
0.153846
0
0
0.228571
0.016988
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.807692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f5e63e584012e568f5c20dd6499830e3e20dd87
2,943
py
Python
usb-test/board_test.py
w1xm/quantar-interface
bb057431088b7f1af9c21b9462b4fd712706d521
[ "MIT" ]
1
2021-02-11T03:53:29.000Z
2021-02-11T03:53:29.000Z
usb-test/board_test.py
w1xm/quantar-interface
bb057431088b7f1af9c21b9462b4fd712706d521
[ "MIT" ]
null
null
null
usb-test/board_test.py
w1xm/quantar-interface
bb057431088b7f1af9c21b9462b4fd712706d521
[ "MIT" ]
null
null
null
""" CLI test routines for CM119 GPIO pins Tristan Honscheid KD8YHB 6 Dec 2020 """ import click import time from cm119_gpio import CM119_IO, CM119_USB_VID, CM119_USB_PID @click.group() @click.option("--vid", default=hex(CM119_USB_VID), help="USB Vendor ID as hex string (opt.)") @click.option("--pid", default=hex(CM...
28.028571
108
0.603806
425
2,943
4.087059
0.390588
0.051813
0.036845
0.043754
0.192861
0.178469
0.056419
0.056419
0.056419
0.041451
0
0.022645
0.249745
2,943
104
109
28.298077
0.76404
0.174312
0
0.3
0
0
0.185433
0
0
0
0
0
0
1
0.071429
false
0.071429
0.042857
0
0.157143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f61695edffbfc59b761e6b60ec2e6276792b209
1,157
py
Python
main.py
camchambers/api-tester
aae3eb71906e4f90777702bd9465f57e16b3f8cf
[ "MIT" ]
null
null
null
main.py
camchambers/api-tester
aae3eb71906e4f90777702bd9465f57e16b3f8cf
[ "MIT" ]
null
null
null
main.py
camchambers/api-tester
aae3eb71906e4f90777702bd9465f57e16b3f8cf
[ "MIT" ]
null
null
null
import api_tester as at import sys def main(): host = "http://localhost:54321" headers = { 'content-type': 'application/json', 'Accept-Charset': 'UTF-8', 'X-API-Key': "<api-key-here>" } apiTests = { at.GetTest(404,'constituents/000000'), at.GetTest(404,'non-ex...
28.219512
58
0.632671
132
1,157
5.424242
0.424242
0.138268
0.100559
0.167598
0.502793
0.117318
0.117318
0.117318
0
0
0
0.108287
0.217805
1,157
40
59
28.925
0.682873
0
0
0.064516
0
0
0.338807
0.215212
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.096774
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f66e5de79327b9f699c74d33eec9ae7740d9669
4,584
py
Python
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/elasticloadbalancingv2/listener.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class Listener(pulumi.CustomResource)...
44.504854
324
0.677138
580
4,584
5.094828
0.243103
0.040609
0.035533
0.030457
0.440609
0.419628
0.392893
0.349239
0.271404
0.271404
0
0.003938
0.224476
4,584
102
325
44.941176
0.827286
0.281195
0
0
1
0
0.197265
0.018235
0
0
0
0
0
1
0.061224
false
0
0.102041
0.040816
0.367347
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f6ae31bfc97ee99aba6625d3e987ec017b0a6a0
390
py
Python
tests/chem/magpie_python/utility/test_EqualSumCombinations.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
108
2018-03-23T20:06:03.000Z
2022-01-06T19:32:46.000Z
tests/chem/magpie_python/utility/test_EqualSumCombinations.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
18
2019-08-09T21:16:14.000Z
2022-02-14T21:52:06.000Z
tests/chem/magpie_python/utility/test_EqualSumCombinations.py
crazysal/chemml
300ed183c623fc8762ed2343e48c9e2ac5102c0f
[ "BSD-3-Clause" ]
28
2018-04-28T17:07:33.000Z
2022-02-28T07:22:56.000Z
import unittest from chemml.chem.magpie_python.utility.EqualSumCombinations import EqualSumCombinations class testEqualSumCombinations(unittest.TestCase): def test_get_combinations(self): x = EqualSumCombinations(2, 2) self.assertTrue(len(x.get_combinations(2, 2)) == 3) x = EqualSumCombinat...
43.333333
87
0.735897
46
390
6.130435
0.5
0.159574
0.156028
0.12766
0.241135
0.241135
0.241135
0
0
0
0
0.030488
0.158974
390
9
88
43.333333
0.829268
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.125
false
0
0.25
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f6aec74504b593bf2d5b1c9d6919487fe879c39
3,472
py
Python
unnecessary/pyFFctrl.py
tkumata/RemoveBitmapFont
9f3721b6f8edbe1154f130692251f3d8e7d321d5
[ "MIT" ]
6
2019-03-12T09:22:32.000Z
2021-06-17T05:03:15.000Z
unnecessary/pyFFctrl.py
tkumata/RemoveBitmapFont
9f3721b6f8edbe1154f130692251f3d8e7d321d5
[ "MIT" ]
1
2019-03-12T10:23:41.000Z
2021-06-18T06:40:40.000Z
unnecessary/pyFFctrl.py
tkumata/RemoveBitmapFont
9f3721b6f8edbe1154f130692251f3d8e7d321d5
[ "MIT" ]
1
2020-06-20T14:21:58.000Z
2020-06-20T14:21:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Usage: python %s step{1|3} font-file-name prefix # # argv[1] ... step1 or step3 # argv[2] ... font file name # argv[3] ... temporary file prefix # # eg. python pyFFctrl.py step1 meiryo.ttc rbf-tmp-ttf import sys import glob import fontforge fontforge.setPrefs('Coverag...
29.675214
136
0.523329
368
3,472
4.899457
0.402174
0.017748
0.019967
0.017748
0.085413
0.085413
0.039933
0.039933
0.039933
0.039933
0
0.018301
0.338998
3,472
116
137
29.931034
0.765577
0.282546
0
0.068966
0
0
0.17448
0.008969
0
0
0
0
0
0
null
null
0.017241
0.051724
null
null
0.086207
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0f6e397de30e94b9f691a2835ec00a4a35d9fbd5
8,149
py
Python
mazerunner/samples/deploy_to_linux.py
ekmixon/mazerunner_sdk_python
8350fa0f0b39b17e9758e1ee1b2371d1d8049d22
[ "BSD-3-Clause" ]
8
2017-04-03T08:36:16.000Z
2022-03-03T15:54:36.000Z
mazerunner/samples/deploy_to_linux.py
Cymmetria/mazerunner_sdk_python
8350fa0f0b39b17e9758e1ee1b2371d1d8049d22
[ "BSD-3-Clause" ]
3
2017-07-02T10:38:44.000Z
2022-03-29T21:54:27.000Z
mazerunner/samples/deploy_to_linux.py
ekmixon/mazerunner_sdk_python
8350fa0f0b39b17e9758e1ee1b2371d1d8049d22
[ "BSD-3-Clause" ]
5
2017-06-27T09:14:14.000Z
2021-06-24T17:51:40.000Z
""" This sample script deploys (install/uninstall) a specific Deployment Group on linux endpoint[s] supplied by the user. A unique endpoint can be provided from the command line, or use a csv file to deploy on multiple endpoints. """ import tempfile import mazerunner import paramiko import ntpath import argparse import...
37.902326
116
0.615781
1,031
8,149
4.71969
0.206596
0.055487
0.03843
0.036169
0.150843
0.134196
0.109125
0.036991
0.036991
0.019318
0
0.002561
0.281384
8,149
214
117
38.079439
0.828381
0.213155
0
0.124031
0
0
0.205337
0
0
0
0
0
0
1
0.046512
false
0.069767
0.054264
0
0.124031
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0f7084abb7dca692b31abef21f7f56bb98d5c4be
1,003
py
Python
lib/wibbler.py
ikea-lisp-code/firemix
a4e2af316fa3ec7e847bc892256eee71c1d5619c
[ "MIT" ]
2
2018-10-04T18:54:33.000Z
2019-08-10T22:33:16.000Z
lib/wibbler.py
ikea-lisp-code/firemix
a4e2af316fa3ec7e847bc892256eee71c1d5619c
[ "MIT" ]
null
null
null
lib/wibbler.py
ikea-lisp-code/firemix
a4e2af316fa3ec7e847bc892256eee71c1d5619c
[ "MIT" ]
null
null
null
import numpy class Wibbler: """ This manages a value that wanders chaotically within a range """ def __init__(self, data): self._acceleration = data[2] self._velocity = 0 self._min = data[0] self._max = data[1] def update(self, dt, value): self._velocit...
27.108108
81
0.522433
105
1,003
4.704762
0.32381
0.218623
0.137652
0.115385
0.41498
0.325911
0.325911
0.238866
0.238866
0
0
0.022581
0.381854
1,003
37
82
27.108108
0.774194
0.059821
0
0.176471
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.294118
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f7c2486547d790a3ce30ab5f1d64bd434714122
5,477
py
Python
funcoes.py
pMeH/Off
6e14417970c46d1a554b8dd10fef91751c50e83d
[ "Apache-2.0" ]
1
2017-05-17T22:49:05.000Z
2017-05-17T22:49:05.000Z
funcoes.py
pMeH/Off
6e14417970c46d1a554b8dd10fef91751c50e83d
[ "Apache-2.0" ]
null
null
null
funcoes.py
pMeH/Off
6e14417970c46d1a554b8dd10fef91751c50e83d
[ "Apache-2.0" ]
null
null
null
import os import time from datetime import datetime import winsound import random # Função começo def comeco(): print(""". . . ,_ | ,-. ,-. |- . ,-. | . |_ ,-. | | | `-. | | | | | | | |-' `--' `-' `-' `' ' ' ' `--' ' | `-' Available Region...
28.675393
65
0.361512
656
5,477
4.599085
0.230183
0.090156
0.112032
0.087504
0.406364
0.404375
0.404375
0.400729
0.400729
0.263507
0
0.025595
0.293774
5,477
190
66
28.826316
0.485522
0.024101
0
0.490798
0
0
0.389472
0.20202
0
0
0
0
0
1
0.03681
false
0
0.030675
0
0.079755
0.122699
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f8b6343e613ad86d3b5e89551b5ffade213e027
9,094
py
Python
faculty/clients/environment.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/environment.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/environment.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Faculty Science Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
29.816393
79
0.678579
940
9,094
6.451064
0.207447
0.057388
0.025396
0.034631
0.49192
0.433377
0.389677
0.346966
0.318602
0.292546
0
0.002755
0.201781
9,094
304
80
29.914474
0.832622
0.075324
0
0.359447
0
0.004608
0.100167
0.031839
0
0
0
0
0
1
0.124424
false
0
0.02765
0.064516
0.525346
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0f923716fbb795ee58ed80a053906afa6cbcb9df
770
py
Python
app/utils/rand.py
jamiejamiebobamie/tictactoe_backend
c80e987e6cddc604656d3feef89fe057471c356b
[ "MIT" ]
null
null
null
app/utils/rand.py
jamiejamiebobamie/tictactoe_backend
c80e987e6cddc604656d3feef89fe057471c356b
[ "MIT" ]
null
null
null
app/utils/rand.py
jamiejamiebobamie/tictactoe_backend
c80e987e6cddc604656d3feef89fe057471c356b
[ "MIT" ]
null
null
null
import random def pick_random_move(board): """Takes in an array_board and returns a random index in that board that contains None.""" possible_moves = get_available_moves(board) number_of_possible_moves = len(possible_moves) if number_of_possible_moves < 1: return -1 random_index_into...
30.8
75
0.685714
100
770
4.96
0.38
0.288306
0.102823
0.127016
0.225806
0.112903
0
0
0
0
0
0.006885
0.245455
770
24
76
32.083333
0.846816
0.192208
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.4
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0f9394268d7144743e5c32bfc1436c86efcd5d1d
8,344
py
Python
py/qaviton/locator.py
qaviton/qaviton
112f1620af36e09031909bd36b7e388df577b75b
[ "Apache-2.0" ]
9
2018-09-06T10:27:55.000Z
2020-01-02T16:50:13.000Z
py/qaviton/locator.py
idanhakimi/qaviton
6ed17e4131c35cae902b95498e60de53e5b05a56
[ "Apache-2.0" ]
6
2019-06-05T09:44:21.000Z
2022-03-11T23:26:41.000Z
py/qaviton/locator.py
idanhakimi/qaviton
6ed17e4131c35cae902b95498e60de53e5b05a56
[ "Apache-2.0" ]
9
2018-09-21T14:47:40.000Z
2021-12-21T01:37:20.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
31.134328
107
0.643576
1,032
8,344
5.081395
0.188953
0.07151
0.04958
0.051869
0.274218
0.184973
0.16476
0.142258
0.107361
0.100114
0
0.002961
0.271453
8,344
267
108
31.250936
0.859681
0.418624
0
0.252336
0
0
0.022679
0.005611
0
0
0
0
0
1
0.233645
false
0.009346
0.037383
0.009346
0.654206
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e17bfb02d98711fe28cbc664ca4fdf0e8e13665
716
py
Python
setup.py
Greenpp/wroc-build
d59a675c5da904b75ff74b4edaadf4cdce9c3418
[ "MIT" ]
null
null
null
setup.py
Greenpp/wroc-build
d59a675c5da904b75ff74b4edaadf4cdce9c3418
[ "MIT" ]
null
null
null
setup.py
Greenpp/wroc-build
d59a675c5da904b75ff74b4edaadf4cdce9c3418
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='wroc-build', description='Building footprint segmentation in Wrocław', version='0.1.0', url='https://github.com/Greenpp/wroc-build', author='Jakub Ciszek', packages=find_packages(), package_data={'wroclaw_building_footprint': ['model/...
26.518519
72
0.599162
69
716
6.115942
0.811594
0.056872
0
0
0
0
0
0
0
0
0
0.007505
0.255587
716
26
73
27.538462
0.78424
0
0
0.08
0
0
0.47486
0.074022
0
0
0
0
0
1
0
true
0
0.04
0
0.04
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7e184c82b3cfe57783c77c0c6d4f2b62e6a435cc
174
py
Python
Iroegbu Chukwuebuka/Phase 1/Python Basic/Day 2/Q4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Iroegbu Chukwuebuka/Phase 1/Python Basic/Day 2/Q4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Iroegbu Chukwuebuka/Phase 1/Python Basic/Day 2/Q4.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
"""Python program which accepts the radius of a circle from the user and compute the area""" import math r = float(input('enter the radius: ')) area = math.pi * r print(area)
34.8
92
0.724138
30
174
4.2
0.733333
0.142857
0
0
0
0
0
0
0
0
0
0
0.166667
174
5
93
34.8
0.868966
0.494253
0
0
0
0
0.216867
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e19c9fa44c66995e44fbec2aeac4519c9ee3630
579
py
Python
tasks/7kyu. Exes and Ohs/xo.py
hidypeople/codewars-python
a542c2969af7a3912b4ff9bd53b96da27b4dadff
[ "MIT" ]
null
null
null
tasks/7kyu. Exes and Ohs/xo.py
hidypeople/codewars-python
a542c2969af7a3912b4ff9bd53b96da27b4dadff
[ "MIT" ]
null
null
null
tasks/7kyu. Exes and Ohs/xo.py
hidypeople/codewars-python
a542c2969af7a3912b4ff9bd53b96da27b4dadff
[ "MIT" ]
null
null
null
# name: Exes and Ohs # url: https://www.codewars.com/kata/55908aad6620c066bc00002a # Check to see if a string has the same amount of 'x's and 'o's. The method # must return a boolean and be case insensitive. The string can contain any char. def xo(s): lowerStr = s.lower() return lowerStr.count('o') == lowerStr....
38.6
87
0.64076
89
579
4.078652
0.617978
0.096419
0.090909
0
0
0
0
0
0
0
0
0.036481
0.195164
579
15
88
38.6
0.742489
0.564767
0
0
0
0
0.144033
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.555556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7e259b0f69153c6349515cdbb421589a0ede4cf4
22,588
py
Python
amazon_cf.py
martyni/amazon
7c28985af3bbdcfdb83e99ebcccde70b843143da
[ "MIT" ]
null
null
null
amazon_cf.py
martyni/amazon
7c28985af3bbdcfdb83e99ebcccde70b843143da
[ "MIT" ]
null
null
null
amazon_cf.py
martyni/amazon
7c28985af3bbdcfdb83e99ebcccde70b843143da
[ "MIT" ]
null
null
null
#!/bin/python from pprint import pprint import json import re import netaddr import os from amazon_client import Cloudformation from helper import ( Resource ) class Environment(object): def exception(self, problem): '''base exception method''' raise BaseExeption(problem) def __init__(se...
37.772575
173
0.478351
1,936
22,588
5.438017
0.176136
0.018807
0.024791
0.032485
0.263108
0.224639
0.169073
0.155965
0.136873
0.126615
0
0.005705
0.417965
22,588
597
174
37.835846
0.795086
0.000531
0
0.328386
0
0
0.137313
0.044158
0
0
0
0
0
0
null
null
0
0.012987
null
null
0.003711
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e2d297a7cec9c4974c315a381c28c5167c7c805
265
py
Python
runsim.py
timothydmorton/coolkoi-radii
de52cc662a9a1f55e4d9bf9c323d116f41647cc7
[ "MIT" ]
null
null
null
runsim.py
timothydmorton/coolkoi-radii
de52cc662a9a1f55e4d9bf9c323d116f41647cc7
[ "MIT" ]
null
null
null
runsim.py
timothydmorton/coolkoi-radii
de52cc662a9a1f55e4d9bf9c323d116f41647cc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import radiusfn as rf import pandas as pd import numpy as np import sys,os,os.path outfilename = 'npps_sims2/results_%s.h5' % sys.argv[1] if os.path.exists(outfilename): exit df = rf.sim_ensemble(N=10) df.to_hdf(outfilename,'table')
15.588235
54
0.728302
47
265
4.021277
0.723404
0.063492
0
0
0
0
0
0
0
0
0
0.022026
0.143396
265
16
55
16.5625
0.810573
0.075472
0
0
0
0
0.119342
0.098765
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7e38ac8be8e6cb0b09b4c7714098be484fa8e517
1,715
py
Python
chapter-3/chapter3/spiders/ch3_18_email.py
beifengle/tutorial-scrapy
7c9046c3eec464e7e098d603c8b0bcd0f79bab31
[ "BSD-2-Clause" ]
null
null
null
chapter-3/chapter3/spiders/ch3_18_email.py
beifengle/tutorial-scrapy
7c9046c3eec464e7e098d603c8b0bcd0f79bab31
[ "BSD-2-Clause" ]
null
null
null
chapter-3/chapter3/spiders/ch3_18_email.py
beifengle/tutorial-scrapy
7c9046c3eec464e7e098d603c8b0bcd0f79bab31
[ "BSD-2-Clause" ]
null
null
null
import scrapy from scrapy.mail import MailSender from scrapy.utils.project import get_project_settings settings = get_project_settings() class Ch318EmailSpider(scrapy.Spider): name = 'ch3.18-email' allowed_domains = ['toscrape.com'] start_urls = ['http://toscrape.com/'] def parse(self, response): ...
43.974359
119
0.553936
162
1,715
5.734568
0.388889
0.18084
0.12056
0.087191
0
0
0
0
0
0
0
0.011188
0.322449
1,715
39
120
43.974359
0.788296
0.374344
0
0
0
0
0.15283
0.029245
0
0
0
0
0
1
0.052632
false
0.052632
0.157895
0
0.473684
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e396b508e9241b1c8bd31db37d244c4bef5e61e
11,041
py
Python
hubblestack/comparators/dict.py
devagupt/hubble
30588a8735f5447576d551c51be51ed59f130a7a
[ "Apache-2.0" ]
null
null
null
hubblestack/comparators/dict.py
devagupt/hubble
30588a8735f5447576d551c51be51ed59f130a7a
[ "Apache-2.0" ]
null
null
null
hubblestack/comparators/dict.py
devagupt/hubble
30588a8735f5447576d551c51be51ed59f130a7a
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ Dictionary type comparator used to match a dictionary input with expected output Comparators are used by Audit module to compare module output with the expected result In FDG-connector, comparators might also be used with FDG Dictionary comparator exposes various commands: - "match" ...
32.473529
116
0.617698
1,377
11,041
4.75236
0.161946
0.050886
0.061889
0.025214
0.5625
0.475245
0.410758
0.38585
0.327781
0.291259
0
0.016861
0.301694
11,041
339
117
32.569322
0.831907
0.499864
0
0.347368
0
0
0.215278
0.025077
0
0
0
0
0
1
0.084211
false
0.073684
0.021053
0
0.252632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e42c32dcbaf88ddf4681092220b07c34836809c
398
py
Python
setup.py
tshauck/Gloo
46a1f362ba0fc2d2715ebd54a486ff214c5a83d9
[ "BSD-3-Clause" ]
9
2016-01-27T17:17:20.000Z
2018-05-30T15:52:44.000Z
setup.py
tshauck/Gloo
46a1f362ba0fc2d2715ebd54a486ff214c5a83d9
[ "BSD-3-Clause" ]
null
null
null
setup.py
tshauck/Gloo
46a1f362ba0fc2d2715ebd54a486ff214c5a83d9
[ "BSD-3-Clause" ]
null
null
null
from distutils.core import setup setup( name='Gloo', version='0.1.2', author='Trent Hauck', author_email='trent@trenthauck.com', packages=['gloo'], scripts=[], url='http://pypi.python.org/pypi/Gloo/', license='LICENSE.txt', description='Project management for data analysis projects....
24.875
65
0.655779
48
398
5.375
0.833333
0
0
0
0
0
0
0
0
0
0
0.009091
0.170854
398
15
66
26.533333
0.772727
0.050251
0
0
0
0
0.381963
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7e4437d10e861c7d38f3e0475a16aa9fffd0abd2
1,165
py
Python
binder/plugins/token_auth/migrations/0001_initial.py
Bilonan/django-binder
d2d9b504a92029a0afc616be81a08f0deddd5b64
[ "MIT" ]
14
2016-08-15T13:08:55.000Z
2021-11-17T11:43:20.000Z
binder/plugins/token_auth/migrations/0001_initial.py
Bilonan/django-binder
d2d9b504a92029a0afc616be81a08f0deddd5b64
[ "MIT" ]
141
2016-08-14T15:36:35.000Z
2022-02-17T08:53:52.000Z
binder/plugins/token_auth/migrations/0001_initial.py
Bilonan/django-binder
d2d9b504a92029a0afc616be81a08f0deddd5b64
[ "MIT" ]
18
2016-10-01T21:30:22.000Z
2022-03-28T10:51:41.000Z
# Generated by Django 2.1 on 2018-08-20 11:45 import binder.plugins.token_auth.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(set...
34.264706
118
0.616309
122
1,165
5.729508
0.54918
0.034335
0.051502
0.062947
0.160229
0
0
0
0
0
0
0.01626
0.260944
1,165
33
119
35.30303
0.795587
0.03691
0
0
1
0
0.097321
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e49cee79ac85fd7c6cfde547d6a85a0452d330e
1,295
py
Python
dbt/adapters/impala/relation.py
cloudera/dbt-impala
e8cd3eea6f0cdff49da043f4c1b49f3d88edf7a2
[ "Apache-2.0" ]
6
2022-03-28T23:14:21.000Z
2022-03-31T03:49:50.000Z
dbt/adapters/impala/relation.py
cloudera/dbt-impala
e8cd3eea6f0cdff49da043f4c1b49f3d88edf7a2
[ "Apache-2.0" ]
1
2022-03-25T20:15:48.000Z
2022-03-25T20:15:48.000Z
dbt/adapters/impala/relation.py
cloudera/dbt-impala
e8cd3eea6f0cdff49da043f4c1b49f3d88edf7a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Cloudera Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
30.116279
74
0.749035
164
1,295
5.896341
0.603659
0.062048
0.026887
0.033092
0.068252
0.068252
0
0
0
0
0
0.007519
0.178378
1,295
42
75
30.833333
0.901316
0.42471
0
0.190476
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0.047619
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7e4a4fe90ed941e8b7d7ec56f186bdee3797f3fa
1,387
py
Python
MachineLearning/TP4/predictNeuralNetwork.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP4/predictNeuralNetwork.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
MachineLearning/TP4/predictNeuralNetwork.py
piwithy/ENSTA_MACHINE_LEARNING
8a58b230f150ca7ceaf340086f15d0d3535d2859
[ "MIT" ]
null
null
null
import numpy as np from sigmoid import sigmoid def predictNeuralNetwork(Theta1, Theta2, X): """ outputs the predicted label of X given the trained weights of a neural network (Theta1, Theta2) """ # Useful values m, _ = X.shape num_labels, _ = Theta2.shape p = np.zeros((m, 1)) # ====...
30.822222
81
0.518385
184
1,387
3.815217
0.456522
0.025641
0.019943
0.034188
0.074074
0
0
0
0
0
0
0.027158
0.256669
1,387
44
82
31.522727
0.653734
0.599135
0
0
0
0
0
0
0
0
0
0.022727
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7e4f1977110ab61e3269d989e33c6ef96c73d85f
1,006
py
Python
pg/generator/views.py
softnotch/password_generator
9cfa02f9ac92c3eb2ed3aa29928dfd1bf00dedb5
[ "MIT" ]
null
null
null
pg/generator/views.py
softnotch/password_generator
9cfa02f9ac92c3eb2ed3aa29928dfd1bf00dedb5
[ "MIT" ]
null
null
null
pg/generator/views.py
softnotch/password_generator
9cfa02f9ac92c3eb2ed3aa29928dfd1bf00dedb5
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse import random # # Create your views here. # def home(request): # return HttpResponse('hello and welcome to this project') # def index(request): # return HttpResponse('<h1>I am trying out another page</h1>') def home(request): return...
23.952381
79
0.681909
114
1,006
6.017544
0.45614
0.075802
0.075802
0.122449
0.233236
0.131195
0
0
0
0
0
0.01451
0.177932
1,006
42
80
23.952381
0.814994
0.186879
0
0
0
0
0.210851
0.092478
0
0
0
0
0
1
0.15
false
0.2
0.15
0.1
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e56769f4313133e2761a7e9b827bdb73508b966
5,375
py
Python
SDG_sample_generate.py
mlahariya/EV-SDG
b9f9d3c69ec4ee26ed082670dc5169da5fbfaa94
[ "MIT" ]
1
2020-11-06T21:39:38.000Z
2020-11-06T21:39:38.000Z
SDG_sample_generate.py
mlahariya/EV-SDG
b9f9d3c69ec4ee26ed082670dc5169da5fbfaa94
[ "MIT" ]
1
2021-10-13T12:26:18.000Z
2021-10-13T12:26:18.000Z
SDG_sample_generate.py
mlahariya/EV-SDG
b9f9d3c69ec4ee26ed082670dc5169da5fbfaa94
[ "MIT" ]
2
2021-02-06T20:03:57.000Z
2021-02-27T14:05:42.000Z
# ---------------------------------------------- ML 20/04/2020 -----------------------------------------------------# # # Generate a sample of EV sessions data. # This file can be used to generate the sample of a data using the saved SDG model. # - User can choose between a default train...
52.184466
140
0.55814
679
5,375
4.316642
0.276878
0.008188
0.008188
0.021836
0.215967
0.142955
0.067895
0.044353
0.044353
0.044353
0
0.005957
0.281674
5,375
102
141
52.696078
0.753173
0.240744
0
0.111111
1
0.013889
0.363233
0.016511
0
0
0
0
0
1
0.013889
false
0
0.097222
0
0.138889
0.138889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e64d0f9a6c0323210e436ceaba9e297cf4a202d
963
py
Python
deployments/migrations/0063_auto_20220413_1438.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
deployments/migrations/0063_auto_20220413_1438.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
deployments/migrations/0063_auto_20220413_1438.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.27 on 2022-04-13 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('deployments', '0062_auto_20220331_1143'), ] operations = [ migrations.AddField( model_name='project', name='reporti...
33.206897
121
0.636552
107
963
5.53271
0.420561
0.091216
0.116554
0.136824
0.694257
0.694257
0.694257
0.694257
0.694257
0.410473
0
0.056944
0.252336
963
28
122
34.392857
0.765278
0.047767
0
0.409091
1
0
0.239344
0.108197
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e6758635d7ab3e0fe3461d4d3772f0a92347e62
1,422
py
Python
FermionicSystem1d.py
alessandro-santini/Tensor-Network
3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e
[ "MIT" ]
null
null
null
FermionicSystem1d.py
alessandro-santini/Tensor-Network
3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e
[ "MIT" ]
null
null
null
FermionicSystem1d.py
alessandro-santini/Tensor-Network
3f3c52d61a7ea3d2ceedb03d08f40ad4d153b56e
[ "MIT" ]
null
null
null
import MPO_class as MPO import numpy as np from ncon import ncon import MPS_class as MPS import tdvp2 def TightBinding(L, t): Ham = MPO.MPO(L,2) # Operator in the local basis cdag = np.array([[0,0],[1,0]]) c = np.array([[0,1],[0,0]]) n = np.array([[0,0],[0,1]]) Id = np.array([[1,0],[0,...
23.311475
53
0.540788
271
1,422
2.811808
0.250923
0.020997
0.015748
0.043307
0.259843
0.2021
0.2021
0.2021
0.2021
0.2021
0
0.077063
0.224332
1,422
61
54
23.311475
0.613781
0.059072
0
0.083333
0
0
0
0
0
0
0
0
0
0
null
null
0
0.104167
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e6ac762fb6a51ec4e2820acc4febdaaf002a5f6
583
py
Python
Prova/18.py
eujonas/Python
6488221a40c2738753dc2b52d3daeeb1764321b8
[ "MIT" ]
2
2021-03-04T21:05:35.000Z
2021-03-06T12:28:13.000Z
Prova/18.py
eujonas/Python
6488221a40c2738753dc2b52d3daeeb1764321b8
[ "MIT" ]
null
null
null
Prova/18.py
eujonas/Python
6488221a40c2738753dc2b52d3daeeb1764321b8
[ "MIT" ]
2
2021-03-05T17:10:28.000Z
2021-03-07T21:38:10.000Z
"""18 - Em campeonato de futebol por pontos corridos, as pontuações funcionam da seguinte forma: 0 pontos por derrota, 1 ponto por empate e 3 pontos por vitória. Construa uma função que receba a quantidade de vitórias, derrotas e empates de um time e retorne a sua pontuação total ao fim do campeonato""" def pontuacao...
36.4375
80
0.723842
100
583
4.22
0.53
0.056872
0.099526
0.113744
0
0
0
0
0
0
0
0.016495
0.168096
583
15
81
38.866667
0.853608
0.511149
0
0
0
0
0.462366
0
0
0
0
0
0
1
0.142857
false
0
0
0.142857
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
7e6b03f717abe7ca3c4708c53a905d53ddcaaf22
1,066
py
Python
Jumphosts/windowstest_with_tunnel.py
thinkahead/DeveloperRecipes
8d89a4879516e17952237278572e61fbd8a907e0
[ "MIT" ]
12
2020-08-26T13:30:07.000Z
2021-09-15T07:23:12.000Z
Jumphosts/windowstest_with_tunnel.py
thinkahead/DeveloperRecipes
8d89a4879516e17952237278572e61fbd8a907e0
[ "MIT" ]
null
null
null
Jumphosts/windowstest_with_tunnel.py
thinkahead/DeveloperRecipes
8d89a4879516e17952237278572e61fbd8a907e0
[ "MIT" ]
9
2020-08-04T00:26:04.000Z
2022-02-09T19:10:57.000Z
from winrm.protocol import Protocol import argparse parser = argparse.ArgumentParser(description='Run command on Windows host') parser.add_argument("--host", required=True) parser.add_argument("--port", default=5985) parser.add_argument("--socksport", default=1234) parser.add_argument("--username", required=True) pars...
33.3125
75
0.755159
147
1,066
5.272109
0.408163
0.08129
0.153548
0.08129
0.156129
0
0
0
0
0
0
0.00925
0.087242
1,066
31
76
34.387097
0.787256
0.028143
0
0
0
0
0.143133
0
0
0
0
0
0
1
0
false
0.076923
0.076923
0
0.076923
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e75224016fd884172f804e3c94ce3e86f525574
3,720
py
Python
test/mock/chimerax/atomic/__init__.py
salilab/rmf_chimerax
c744866f3bc8777a9aae56d9eee5bf2b0fce3419
[ "MIT" ]
null
null
null
test/mock/chimerax/atomic/__init__.py
salilab/rmf_chimerax
c744866f3bc8777a9aae56d9eee5bf2b0fce3419
[ "MIT" ]
null
null
null
test/mock/chimerax/atomic/__init__.py
salilab/rmf_chimerax
c744866f3bc8777a9aae56d9eee5bf2b0fce3419
[ "MIT" ]
null
null
null
import weakref class Pseudobond(object): def __init__(self, atom1, atom2): self.atoms = (atom1, atom2) class PseudobondGroup(object): def __init__(self): self.pseudobonds = [] def new_pseudobond(self, atom1, atom2, cs_id=None): p = Pseudobond(atom1, atom2) self.pseudobon...
24.313725
79
0.635215
451
3,720
4.973392
0.226164
0.034329
0.053946
0.045475
0.165403
0.1177
0.1177
0.093625
0.045475
0.045475
0
0.008379
0.262097
3,720
152
80
24.473684
0.808743
0
0
0.168224
0
0
0.008333
0
0
0
0
0
0
1
0.271028
false
0.037383
0.009346
0.056075
0.53271
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e75f829a02bb4e1d14ef9880282161b6b30a67a
2,275
py
Python
week3/w3_lnn.py
cyruscyliu/diffentropy
58216ce1e24f5d3678ddbe99587a8961737ad4cc
[ "MIT" ]
null
null
null
week3/w3_lnn.py
cyruscyliu/diffentropy
58216ce1e24f5d3678ddbe99587a8961737ad4cc
[ "MIT" ]
null
null
null
week3/w3_lnn.py
cyruscyliu/diffentropy
58216ce1e24f5d3678ddbe99587a8961737ad4cc
[ "MIT" ]
2
2017-08-31T05:16:10.000Z
2018-11-08T18:31:39.000Z
import numpy as np from week3 import lnn, tools import os def f(x): if 0 <= x < 0.25: return float(0) elif 0.25 <= x < 0.5: return 16.0 * (x - 0.25) elif 0.5 <= x < 0.75: return -16.0 * (x - 0.75) elif 0.75 < x <= 1: return float(0) else: raise ValueError('v...
25.561798
73
0.530989
331
2,275
3.592145
0.332326
0.00841
0.007569
0.027754
0.10513
0.066442
0.066442
0.066442
0.066442
0.066442
0
0.059206
0.324396
2,275
88
74
25.852273
0.714379
0.094066
0
0.147541
0
0
0.069926
0.012093
0
0
0
0
0
0
null
null
0
0.04918
null
null
0.098361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e78d7a5256b9b3f888195b1c10133e3aaf16f50
141,163
py
Python
subprojects/molecular_dynamics/GROMACS/simple_bilayer/lipidwrapper_py2.py
0xDBFB7/covidinator
e9c103e5e62bc128169400998df5f5cd13bd8949
[ "MIT" ]
null
null
null
subprojects/molecular_dynamics/GROMACS/simple_bilayer/lipidwrapper_py2.py
0xDBFB7/covidinator
e9c103e5e62bc128169400998df5f5cd13bd8949
[ "MIT" ]
null
null
null
subprojects/molecular_dynamics/GROMACS/simple_bilayer/lipidwrapper_py2.py
0xDBFB7/covidinator
e9c103e5e62bc128169400998df5f5cd13bd8949
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Copyright (c) 2014, Jacob D. Durrant All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of con...
52.633482
929
0.62765
18,391
141,163
4.611549
0.078082
0.015446
0.014338
0.005612
0.441936
0.366261
0.317058
0.281508
0.241407
0.21805
0
0.018269
0.286123
141,163
2,681
930
52.653115
0.823336
0.132896
0
0.219267
0
0.015816
0.145416
0.03336
0
0
0
0
0
0
null
null
0.003595
0.016535
null
null
0.071172
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e79a628faa3f83efa08f787eee193c0b3095bbd
3,598
py
Python
ls_improved/config.py
conao3/ls-Improved
9917565e8817989159241974942e90731d772379
[ "MIT" ]
null
null
null
ls_improved/config.py
conao3/ls-Improved
9917565e8817989159241974942e90731d772379
[ "MIT" ]
null
null
null
ls_improved/config.py
conao3/ls-Improved
9917565e8817989159241974942e90731d772379
[ "MIT" ]
null
null
null
import os class PyColor: """ Standard IO Color Settings. """ RED = '\033[1;31m' GREEN = '\033[1;32m' YELLOW = '\033[33m' BLUE = '\033[1;34m' PURPLE = '\033[1;35m' CYAN = '\033[36m' WHITE = '\033[37m' END = '\033[0m' BOLD = '\038[1m' UNDERLINE = '\033[4m' INVISIBLE = '\0...
38.688172
84
0.494163
382
3,598
4.596859
0.248691
0.244875
0.036446
0.027335
0.27164
0.060934
0
0
0
0
0
0.037272
0.343802
3,598
92
85
39.108696
0.705633
0.030573
0
0
0
0
0.150474
0
0
0
0
0
0
1
0.027027
false
0
0.013514
0.013514
0.283784
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e7b91c3b6c08c5587dcb10c64c1962d240a4259
1,861
py
Python
Faces/convertFaces.py
ctralie/StretchingCycles
4d4c3b8f9df601b367c5a9816b360f2ec3186534
[ "Apache-2.0" ]
null
null
null
Faces/convertFaces.py
ctralie/StretchingCycles
4d4c3b8f9df601b367c5a9816b360f2ec3186534
[ "Apache-2.0" ]
null
null
null
Faces/convertFaces.py
ctralie/StretchingCycles
4d4c3b8f9df601b367c5a9816b360f2ec3186534
[ "Apache-2.0" ]
null
null
null
import os from subprocess import call from sys import argv, exit import numpy as np import scipy.io as sio (STATE_IDLE, STATE_READTEX, STATE_READFACES) = (0, 1, 2) #Extract the texture coordinates and faces from WRL files #in the BU-3DFE dataset def saveTexCoordsAndFaces(filePrefix): fHandle = open("%s.wrl"%filePref...
26.971014
80
0.629769
257
1,861
4.486381
0.36965
0.060711
0.036427
0.029488
0.0451
0.0451
0
0
0
0
0
0.023098
0.209027
1,861
68
81
27.367647
0.76019
0.081139
0
0.037037
0
0
0.102113
0
0
0
0
0
0
0
null
null
0
0.092593
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e7ce1fa9391a28dc17ab467a4bddfa3e0728679
1,438
py
Python
examples/plot_filters.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2022-03-24T23:41:16.000Z
2022-03-24T23:41:16.000Z
docs/_build/html/_downloads/4e69f45a1597295cf3635f075df6947b/plot_filters.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
12
2021-02-24T22:30:52.000Z
2021-11-16T01:51:38.000Z
examples/plot_filters.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2021-09-21T11:37:09.000Z
2021-09-21T11:37:09.000Z
#!/usr/bin/env python """ Filters examples ================ """ import pandas as pd import toto from toto.filters import despike_phasespace3d,lanczos_filter,bandpass_filter import matplotlib.pyplot as plt import numpy as np # Create a panda timeseries of elevation n = 86400 signal = np.random.normal(0, 0.5, n) \ ...
27.132075
76
0.710014
214
1,438
4.686916
0.425234
0.090728
0.031904
0.051844
0.115653
0
0
0
0
0
0
0.061824
0.100139
1,438
52
77
27.653846
0.713292
0.172462
0
0.064516
0
0
0.222032
0
0
0
0
0
0
1
0
false
0.096774
0.16129
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e7ef8f854536ef3b1a49665b36a7b32ace763f4
3,091
py
Python
blenderlib/bpy.app.py
kabuku/blender-python
6e8eee4cd79242bb0a3cd1dd848da04bfe0a9182
[ "MIT" ]
23
2015-04-18T02:37:19.000Z
2021-12-20T23:59:28.000Z
blenderlib/bpy.app.py
kabuku/blender-python
6e8eee4cd79242bb0a3cd1dd848da04bfe0a9182
[ "MIT" ]
null
null
null
blenderlib/bpy.app.py
kabuku/blender-python
6e8eee4cd79242bb0a3cd1dd848da04bfe0a9182
[ "MIT" ]
5
2017-05-06T07:20:40.000Z
2021-11-08T18:35:43.000Z
'''Application Data (bpy.app) This module contains application values that remain unchanged during runtime. ''' debug = None '''Boolean, for debug info (started with --debug / --debug_* matching this attribute name) ''' debug_events = None '''Boolean, for debug info (started with --debug / -...
16.268421
91
0.629893
367
3,091
5.231608
0.419619
0.036458
0.04375
0.059375
0.314063
0.261979
0.228646
0.228646
0.228646
0.228646
0
0.002629
0.261728
3,091
189
92
16.354497
0.838738
0.09835
0
0.0625
0
0
0
0
0
0
0
0
0
1
0.0625
false
0.0625
0
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e81a7bfc3011daab79d1b43985c32121cfc99c7
322
py
Python
pset1/counting-bobs.py
ankgitk/6.001-pset-answers
4b5a51de2983e549ac6150b72db45b7bc2e88459
[ "MIT" ]
null
null
null
pset1/counting-bobs.py
ankgitk/6.001-pset-answers
4b5a51de2983e549ac6150b72db45b7bc2e88459
[ "MIT" ]
null
null
null
pset1/counting-bobs.py
ankgitk/6.001-pset-answers
4b5a51de2983e549ac6150b72db45b7bc2e88459
[ "MIT" ]
null
null
null
s = 'azcbobobegghakl' word = 'bob' found = 0 word_len = len('bob') s_len = len(s) # iterate over chars in s, adding to found if bob is found there for idx in range( s_len ): result = s.find('bob', idx, idx + word_len) if (result > -1): found += 1 print 'Number of times bob occurs is: ' + str(foun...
23
64
0.618012
55
322
3.545455
0.509091
0.071795
0
0
0
0
0
0
0
0
0
0.012448
0.251553
322
14
65
23
0.796681
0.192547
0
0
0
0
0.212355
0
0
0
0
0
0
0
null
null
0
0
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e8a1db0ff48acd6dc9c399a9fb93ed4cafe6134
1,298
py
Python
examples/hinge.py
dataronio/GLRM
58bdb64f1aafeb06eb0a0fbf74e49138f0a19da6
[ "MIT" ]
67
2015-03-26T15:52:15.000Z
2018-09-06T17:41:25.000Z
examples/hinge.py
chrinide/GLRM
58bdb64f1aafeb06eb0a0fbf74e49138f0a19da6
[ "MIT" ]
5
2016-02-17T15:29:48.000Z
2018-08-16T20:01:00.000Z
examples/hinge.py
chrinide/GLRM
58bdb64f1aafeb06eb0a0fbf74e49138f0a19da6
[ "MIT" ]
42
2015-03-10T17:02:11.000Z
2018-10-24T19:59:38.000Z
from glrm.loss import HingeLoss from glrm.reg import NonnegativeReg, QuadraticReg from glrm import GLRM from glrm.util import pplot from glrm.convergence import Convergence from numpy.random import randn, choice, seed from numpy.random import choice from itertools import product from numpy import sign # Generate probl...
31.658537
91
0.701849
218
1,298
4.09633
0.380734
0.026876
0.016797
0.047032
0.078387
0.078387
0
0
0
0
0
0.032668
0.151002
1,298
40
92
32.45
0.777677
0.390601
0
0
0
0
0.022078
0
0
0
0
0
0
1
0
false
0
0.391304
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7e8acab172fdd12b509d2171d22e35fcc501981d
216
py
Python
week01_sorting_algorithms/bubble.py
girafe-ai/msai-algorithms
fc30f16c536028853cfc16351069103ebcca9d66
[ "MIT" ]
9
2021-03-12T06:59:29.000Z
2021-12-21T12:26:58.000Z
week01_sorting_algorithms/bubble.py
girafe-ai/msai-algorithms
fc30f16c536028853cfc16351069103ebcca9d66
[ "MIT" ]
null
null
null
week01_sorting_algorithms/bubble.py
girafe-ai/msai-algorithms
fc30f16c536028853cfc16351069103ebcca9d66
[ "MIT" ]
5
2021-10-30T20:40:23.000Z
2022-02-03T20:26:29.000Z
input() x = list(map(int, input().split())) N = len(x) for i in range(0, N - 1): for j in range(0, N - i - 1): if x[j] > x[j + 1]: x[j], x[j + 1] = x[j + 1], x[j] print(' '.join(map(str, x)))
24
43
0.430556
46
216
2.021739
0.413043
0.129032
0.096774
0.129032
0.16129
0.129032
0.129032
0
0
0
0
0.046667
0.305556
216
8
44
27
0.573333
0
0
0
0
0
0.00463
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e8b9ac41722125754f81f72ef32c68c15f216dc
20,121
py
Python
geometry/line.py
zenolin/Geometry
7078ad12c70e41916efa97e54faa20df2803eb87
[ "MIT" ]
6
2018-08-17T01:44:51.000Z
2018-09-20T02:57:43.000Z
geometry/line.py
zenolin/Geometry
7078ad12c70e41916efa97e54faa20df2803eb87
[ "MIT" ]
null
null
null
geometry/line.py
zenolin/Geometry
7078ad12c70e41916efa97e54faa20df2803eb87
[ "MIT" ]
null
null
null
import math from .settings import pi, PI_HALF, nearly_eq from .point import Point from .basic import GeometryEntity class LinearEntity(GeometryEntity): def __new__(cls, p1, p2=None, **kwargs): if p1 == p2: raise ValueError( "%s.__new__ requires two unique Points." % cls.__nam...
31.537618
96
0.533572
2,456
20,121
4.263436
0.114007
0.012988
0.020055
0.0191
0.419158
0.371884
0.310381
0.26158
0.226148
0.201509
0
0.03317
0.361712
20,121
637
97
31.587127
0.782138
0.146215
0
0.404412
0
0
0.030207
0
0
0
0
0
0
1
0.147059
false
0.004902
0.009804
0.031863
0.507353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7e8bfc1626f784d82cc83e976f8b5058efff1a75
3,759
py
Python
tests/test_rfidsecuritysvc.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/test_rfidsecuritysvc.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/test_rfidsecuritysvc.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
import atexit import os from importlib import import_module from pathlib import Path from pkgutil import iter_modules from connexion.exceptions import OAuthProblem from connexion.resolver import RestyResolver from swagger_ui_bundle import swagger_ui_3_path from rfidsecuritysvc import create_app from rfidsecuritysvc.d...
36.144231
113
0.753924
544
3,759
4.970588
0.325368
0.043269
0.024038
0.017751
0.130178
0
0
0
0
0
0
0.001587
0.162011
3,759
103
114
36.495146
0.856825
0.218409
0
0.031746
0
0
0.121784
0.054202
0
0
0
0
0.52381
1
0.15873
false
0
0.222222
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7e8e32144a2332fffe409aa6ed79ebbda2909d49
2,013
py
Python
38/nolan.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
38/nolan.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
38/nolan.py
DanCowden/PyBites
43aa22b54ee2417756ae6b95145b11e6e485a38f
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET # from OMDB xmlstring = '''<?xml version="1.0" encoding="UTF-8"?> <root response="True"> <movie title="The Prestige" year="2006" rated="PG-13" released="20 Oct 2006" runtime="130 min" genre="Drama, Mystery, Sci-Fi" director="Christopher Nolan" /> <movie title="The Dark Knight" ye...
37.981132
162
0.676602
282
2,013
4.716312
0.400709
0.045113
0.033835
0.06391
0.17594
0.070677
0.070677
0.070677
0
0
0
0.054136
0.183308
2,013
52
163
38.711538
0.754866
0.138102
1
0.058824
0
0.147059
0.528346
0.061368
0
0
0
0
0
1
0.088235
false
0
0.029412
0
0.205882
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e90838b6c6fe45037d2a43add309b18282f5270
1,243
py
Python
runid/runid.py
BarnabasMarkus/runid
82b9c6d50523acbaa295a76abcd4f0eaad5f0d2a
[ "MIT" ]
null
null
null
runid/runid.py
BarnabasMarkus/runid
82b9c6d50523acbaa295a76abcd4f0eaad5f0d2a
[ "MIT" ]
null
null
null
runid/runid.py
BarnabasMarkus/runid
82b9c6d50523acbaa295a76abcd4f0eaad5f0d2a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from joblib import load, dump class RunId(object): def __init__(self, path='runid.stored', runid=None): # Step size is not an input param, # make it instance variable for future flexibility self.__step_size = 1 self.path = path ...
21.807018
69
0.565567
159
1,243
4.213836
0.352201
0.161194
0.053731
0.058209
0.062687
0
0
0
0
0
0
0.004773
0.325825
1,243
56
70
22.196429
0.794749
0.148029
0
0.205882
0
0
0.093067
0.023742
0
0
0
0
0
1
0.264706
false
0
0.029412
0.088235
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e91fc4add719df141deb7d88b581e00335f5ce6
1,267
py
Python
scripts/common/barrier.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
1
2020-04-02T12:56:22.000Z
2020-04-02T12:56:22.000Z
scripts/common/barrier.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
null
null
null
scripts/common/barrier.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #/******************************************************************************* # Copyright (c) 2012 IBM Corp. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # h...
39.59375
86
0.618785
174
1,267
4.45977
0.568966
0.063144
0.07732
0.041237
0.05799
0.05799
0
0
0
0
0
0.015741
0.147593
1,267
32
87
39.59375
0.702778
0.576953
0
0
0
0
0.198473
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e94349513e6880f7d35b20dbd32010870da63ba
2,922
py
Python
app/services/session_manager.py
8by8-org/usvotes
e2af8b2d8b986bf36804bae1c784bc78b54dc412
[ "MIT" ]
10
2018-08-28T13:35:27.000Z
2021-07-17T18:01:04.000Z
app/services/session_manager.py
8by8-org/usvotes
e2af8b2d8b986bf36804bae1c784bc78b54dc412
[ "MIT" ]
253
2018-05-14T14:51:35.000Z
2021-07-23T00:49:04.000Z
app/services/session_manager.py
lukecivantos/flvotes
ace6fbee9d6cfaa9e4e69e266e321d041ad65da4
[ "MIT" ]
5
2019-09-05T15:10:32.000Z
2021-09-30T23:37:04.000Z
from app.services.steps import * from flask import g, current_app class SessionManager(): """ Session manager is responsible for taking in a registrant and current step and then determining which step needs to be performed next. """ # initialize these as None, override them with init method if valid. ...
36.987342
138
0.644764
400
2,922
4.5125
0.245
0.103601
0.074792
0.053186
0.392244
0.289197
0.242659
0.20277
0.171745
0.121884
0
0.000481
0.288159
2,922
78
139
37.461538
0.867308
0.303217
0
0.272727
0
0
0.013021
0
0
0
0
0
0
1
0.159091
false
0
0.045455
0
0.522727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7e9f0530cbe53edebce383189a411717e0aeb77a
627
py
Python
pickle/pickle-reconstructing_object_failed.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
pickle/pickle-reconstructing_object_failed.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
pickle/pickle-reconstructing_object_failed.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # http://pymotw.com/2/pickle/index.html#module-pickle try: import cPickle as pickle except ImportError: import pickle # from pprint import pprint import sys try: filename = sys.argv[1] except IndexError: raise RuntimeError( 'Please specify a fi...
18.441176
71
0.599681
86
627
4.325581
0.651163
0.024194
0
0
0
0
0
0
0
0
0
0.00885
0.279107
627
33
72
19
0.814159
0.212121
0
0.190476
0
0
0.125
0
0
0
0
0
0
0
null
null
0
0.190476
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ea2732e1e16e827b630dd29bd99646782b2b77a
512
py
Python
dev/environment.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
12
2021-12-27T14:40:17.000Z
2022-03-22T20:14:42.000Z
dev/environment.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
dev/environment.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
import os from typing import Any, Dict name: str env: Dict[Any, Any] = dict(os.environ) def set_name(new_name: str) -> None: global name name = new_name def set_env(env_to_set: dict) -> None: global env env.update(env_to_set) def unset_env(env_to_unset: dict) -> None: for k in env_to_unset: ...
17.655172
42
0.628906
86
512
3.534884
0.337209
0.065789
0.072368
0
0
0
0
0
0
0
0
0
0.255859
512
28
43
18.285714
0.7979
0
0
0.105263
0
0
0.056641
0.041016
0
0
0
0
0
1
0.210526
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7ea2a3313f1efcbc7dae2a900e5bc221ecb6098a
4,328
py
Python
instagramAPITest.py
tomLamprecht/PepperNaoInstagram
5e25431b43f8b80931285512c955c1b025fa59e7
[ "Python-2.0", "OLDAP-2.7" ]
1
2021-11-18T21:38:31.000Z
2021-11-18T21:38:31.000Z
instagramAPITest.py
tomLamprecht/PepperNaoInstagram
5e25431b43f8b80931285512c955c1b025fa59e7
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
instagramAPITest.py
tomLamprecht/PepperNaoInstagram
5e25431b43f8b80931285512c955c1b025fa59e7
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
# This Python file uses the following encoding: utf-8 from instagram_private_api import Client, ClientCompatPatch import json import time import urllib import farewells import comments import os import jsonManager def interpretInstaPic(shortcode): os.system('py -3.7 imageRecognition.py --shortcode '+shortcode) ...
30.055556
91
0.709335
565
4,328
5.300885
0.320354
0.016361
0.021703
0.022705
0.225376
0.208681
0.201002
0.159599
0.128214
0.128214
0
0.027034
0.136784
4,328
143
92
30.265734
0.774625
0.224584
0
0.129412
0
0
0.222356
0.030048
0
0
0
0
0
0
null
null
0.035294
0.094118
null
null
0.141176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ea6339de0dd6cb97d856166b9c7d769481f35a1
232
py
Python
Misc/344_ReverseString.py
PsiPhiTheta/LeetCode
b4473d3fdf317012b6224b363306d66a33b07932
[ "Unlicense" ]
1
2018-12-09T21:09:36.000Z
2018-12-09T21:09:36.000Z
Misc/344_ReverseString.py
PsiPhiTheta/LeetCode
b4473d3fdf317012b6224b363306d66a33b07932
[ "Unlicense" ]
null
null
null
Misc/344_ReverseString.py
PsiPhiTheta/LeetCode
b4473d3fdf317012b6224b363306d66a33b07932
[ "Unlicense" ]
1
2018-12-09T21:09:40.000Z
2018-12-09T21:09:40.000Z
class Solution: def reverseString(self, s): """ :type s: str :rtype: str """ output = list(s) output = output[::-1] output = "".join(output) return output
19.333333
32
0.439655
22
232
4.636364
0.636364
0
0
0
0
0
0
0
0
0
0
0.007576
0.431034
232
11
33
21.090909
0.765152
0.103448
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7eb5b4f22caf4b437feb8d7ca9e09dd453259179
268
py
Python
LabSessionsSol/TP91_socket_client.py
zuacubd/course-python-os
86d7d8442d46cff5374be065bdeca08d5269733e
[ "MIT" ]
null
null
null
LabSessionsSol/TP91_socket_client.py
zuacubd/course-python-os
86d7d8442d46cff5374be065bdeca08d5269733e
[ "MIT" ]
null
null
null
LabSessionsSol/TP91_socket_client.py
zuacubd/course-python-os
86d7d8442d46cff5374be065bdeca08d5269733e
[ "MIT" ]
null
null
null
import socket import sys # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect the socket to the port where the server is listening server_address = ('www.irit.fr', 80) sock.connect(server_address) # req = "GET / HTTP/1.0\n\n"
22.333333
62
0.742537
46
268
4.23913
0.652174
0.102564
0
0
0
0
0
0
0
0
0
0.017467
0.145522
268
11
63
24.363636
0.834061
0.410448
0
0
0
0
0.071429
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0e17cce564c79ba5f130122ed6a44695a1d6bc6d
242
py
Python
docs/startdocs.py
philippeitis/justpy
c9c2c0817a80157d83b58dcbde28ec89cbeefbd9
[ "Apache-2.0" ]
1
2020-03-25T07:06:52.000Z
2020-03-25T07:06:52.000Z
docs/startdocs.py
philippeitis/justpy
c9c2c0817a80157d83b58dcbde28ec89cbeefbd9
[ "Apache-2.0" ]
null
null
null
docs/startdocs.py
philippeitis/justpy
c9c2c0817a80157d83b58dcbde28ec89cbeefbd9
[ "Apache-2.0" ]
1
2022-03-28T11:08:28.000Z
2022-03-28T11:08:28.000Z
import http.server import socketserver PORT = 8080 Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), Handler) as httpd: print(f"Serving docs at http://localhost:{PORT}") httpd.serve_forever()
18.615385
58
0.743802
29
242
6.172414
0.689655
0.111732
0
0
0
0
0
0
0
0
0
0.019231
0.140496
242
12
59
20.166667
0.841346
0
0
0
0
0
0.161826
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e1eada10aa88c1b359ef086b160df32465070ae
223
py
Python
solutions/last_factorial_digit.py
edunfelt/kattis-archives
adabe24059e50e41b343af1df7cd14eca68626c5
[ "MIT" ]
null
null
null
solutions/last_factorial_digit.py
edunfelt/kattis-archives
adabe24059e50e41b343af1df7cd14eca68626c5
[ "MIT" ]
null
null
null
solutions/last_factorial_digit.py
edunfelt/kattis-archives
adabe24059e50e41b343af1df7cd14eca68626c5
[ "MIT" ]
null
null
null
t = int(input()) tests = [] def fact(n): if n == 1: return n else: return n * fact(n - 1) while t > 0: n = int(input()) tests.append(fact(n)) t -= 1 for x in tests: print(x % 10)
12.388889
30
0.461883
37
223
2.783784
0.513514
0.145631
0.252427
0
0
0
0
0
0
0
0
0.042857
0.372197
223
18
31
12.388889
0.692857
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.076923
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e20b34b39447ca9ec9c019d0709482dc5100c76
846
py
Python
tutorials/viewing_policies/tutorial_three.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
2
2021-09-22T08:20:12.000Z
2021-11-16T14:20:45.000Z
tutorials/viewing_policies/tutorial_three.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
tutorials/viewing_policies/tutorial_three.py
michaelfeil/CausalWorld
ff866159ef0ee9c407893ae204e93eb98dd68be2
[ "MIT" ]
null
null
null
""" This tutorial shows you how to record a video of a random policy in the world. """ from causal_world.task_generators.task import generate_task import causal_world.viewers.task_viewer as viewer from causal_world.loggers.data_loader import DataLoader def example(): # This tutorial shows how to view a random po...
31.333333
78
0.617021
103
846
4.737864
0.524272
0.112705
0.069672
0
0
0
0
0
0
0
0
0.013817
0.315603
846
26
79
32.538462
0.829016
0.173759
0
0
1
0
0.060781
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e2df7496772622bcea2ffc5e8b579c6b141deb3
3,295
py
Python
algorithms/python/tests.py
pauljxtan/miscellany
e8e424e5bbb646a5796dc0c6617df5a6aa4dc86c
[ "MIT" ]
null
null
null
algorithms/python/tests.py
pauljxtan/miscellany
e8e424e5bbb646a5796dc0c6617df5a6aa4dc86c
[ "MIT" ]
null
null
null
algorithms/python/tests.py
pauljxtan/miscellany
e8e424e5bbb646a5796dc0c6617df5a6aa4dc86c
[ "MIT" ]
null
null
null
import random import unittest import convert import puzzles import search import sort import sums # TODO # more edge cases class Tests(unittest.TestCase): def test_convert(self): # Base-10 to base-n #n = random.randint(1, 16) self.assertEqual(convert.base10_to_basen(42, 2), '101010')...
31.682692
101
0.616995
453
3,295
4.335541
0.242826
0.198574
0.089613
0.114053
0.503564
0.422098
0.289715
0.063646
0.063646
0.063646
0
0.047306
0.262215
3,295
103
102
31.990291
0.760592
0.189074
0
0.113208
0
0
0.011734
0
0
0
0
0.009709
0.490566
1
0.09434
false
0
0.132075
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0e2e99d5eb129e3f59d74bd83998347031f56341
1,165
py
Python
fizzbuzz.py
Fadope1/fizzbuzz
d88d54cdc545e5dc0dfcf432c8705b6808d94a1a
[ "MIT" ]
null
null
null
fizzbuzz.py
Fadope1/fizzbuzz
d88d54cdc545e5dc0dfcf432c8705b6808d94a1a
[ "MIT" ]
null
null
null
fizzbuzz.py
Fadope1/fizzbuzz
d88d54cdc545e5dc0dfcf432c8705b6808d94a1a
[ "MIT" ]
null
null
null
""" Small program that tries to solve the fizzbuzz puzzle Python=3.10 Made by Fabian (Fadope1) """ def standard_fizzbuzz(number: int) -> str: """Most standard way of solving the fizzbuzz puzzle.""" if number%3 == 0 and number%5 == 0: return "fizzbuzz" if number%3 == 0: return "fizz" if number%5 == 0: ...
31.486486
100
0.643777
174
1,165
4.172414
0.396552
0.048209
0.070248
0.041322
0.170799
0.170799
0.090909
0.090909
0.090909
0.090909
0
0.028921
0.228326
1,165
36
101
32.361111
0.778643
0.127039
0
0.117647
0
0
0.166667
0.063433
0
0
0
0
0
0
null
null
0
0
null
null
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e361f8b358ba393b2387b5c6d7baf931552d177
2,141
py
Python
src/circuits/gate.py
trailofbits/mpc-learning
7fa64451f9d6d5a4bb5fe2465762f2734952fc4c
[ "Apache-2.0" ]
19
2019-10-04T14:34:54.000Z
2022-02-25T01:50:16.000Z
src/circuits/gate.py
trailofbits/mpc-learning
7fa64451f9d6d5a4bb5fe2465762f2734952fc4c
[ "Apache-2.0" ]
null
null
null
src/circuits/gate.py
trailofbits/mpc-learning
7fa64451f9d6d5a4bb5fe2465762f2734952fc4c
[ "Apache-2.0" ]
2
2022-02-25T01:50:26.000Z
2022-03-13T18:58:35.000Z
from queue import Queue class Gate(): def __init__(self, id_num, gate_type, input_ids, gate_queue=None, ready=False, const_input=None): self.id_num = id_num self.gate_type = gate_type self.input_ids = input_ids self.inputs = {} for in_id in input_ids: self.inputs...
27.448718
101
0.532929
277
2,141
3.880866
0.169675
0.130233
0.027907
0.052093
0.390698
0.312558
0.277209
0.277209
0.277209
0.277209
0
0.001448
0.354974
2,141
77
102
27.805195
0.776973
0.143391
0
0.377358
0
0
0.005482
0
0
0
0
0
0
1
0.207547
false
0
0.018868
0.075472
0.377358
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0e3e0ed76a1fb6131f35bea547f30916fa8a4a9f
3,702
py
Python
code/models/road_extraction/JointNet_model/modules.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
1
2021-12-20T07:20:25.000Z
2021-12-20T07:20:25.000Z
code/models/road_extraction/JointNet_model/modules.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
code/models/road_extraction/JointNet_model/modules.py
xueruoyao/FCN-pytorch
a5019da3943f47fa4f7baed3640cdbfeae2d677e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.utils.checkpoint as cp class basic_conv(nn.Module): def __init__(self, in_ch, out_ch, group=8, dilation_rate=1, memory_efficient=True): super(basic_conv, self).__init__() self.memory_efficient = memory_efficient self.conv = nn.Conv2d(in_ch, ou...
39.382979
115
0.655051
494
3,702
4.651822
0.226721
0.062663
0.034813
0.048738
0.304178
0.2698
0.2698
0.249782
0.219321
0.219321
0
0.015157
0.251486
3,702
94
116
39.382979
0.814147
0.059157
0
0.226667
0
0
0.010647
0
0
0
0
0.010638
0
1
0.146667
false
0.026667
0.04
0.013333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0e483a2b69572abe7f9457218b85a921148550d6
1,705
py
Python
cars/migrations/0001_initial.py
oldsienna/MerchantSearch
11be6ebc9a874fd4f43390ec75716b7a32628b9c
[ "MIT" ]
null
null
null
cars/migrations/0001_initial.py
oldsienna/MerchantSearch
11be6ebc9a874fd4f43390ec75716b7a32628b9c
[ "MIT" ]
null
null
null
cars/migrations/0001_initial.py
oldsienna/MerchantSearch
11be6ebc9a874fd4f43390ec75716b7a32628b9c
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-16 11:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Manufacturer', fields=[ ...
38.75
150
0.565396
164
1,705
5.719512
0.384146
0.164179
0.076759
0.102345
0.266525
0.266525
0.266525
0.266525
0.266525
0.266525
0
0.022241
0.287977
1,705
43
151
39.651163
0.750412
0.026393
0
0.388889
1
0
0.159831
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e4c4ab026f24c7064508f8ae08827dbc4ac7854
2,231
py
Python
sarenka/backend/api_searcher/search_engines/shodan_engine/wrappers/host_details_wrapper.py
adolabsnet/sarenka
2032aa6ddebfc69b0db551b7793080d17282ced2
[ "MIT" ]
380
2019-12-05T09:37:47.000Z
2022-03-31T09:37:27.000Z
sarenka/backend/api_searcher/search_engines/shodan_engine/wrappers/host_details_wrapper.py
watchmen-coder/sarenka
d7fc0928e4992de3dbb1546137ca6a158e930ba8
[ "MIT" ]
14
2020-09-26T17:49:42.000Z
2022-02-04T18:16:16.000Z
sarenka/backend/api_searcher/search_engines/shodan_engine/wrappers/host_details_wrapper.py
watchmen-coder/sarenka
d7fc0928e4992de3dbb1546137ca6a158e930ba8
[ "MIT" ]
60
2021-01-01T16:25:30.000Z
2022-03-26T18:48:03.000Z
import re class HostDetailsWrapper: """Klasa pomocnicza - wrapper parsujacy dane z serwisu https://www.shodan.io/.""" def __init__(self, ip, host_details): self.__ip = ip self.__data = host_details @property def ip(self): """Atrybut zwracajacy adres ip hosta.""" retur...
30.986111
92
0.533393
242
2,231
4.81405
0.280992
0.066094
0.054077
0.033476
0.148498
0.048069
0.048069
0.048069
0.048069
0
0
0
0.332586
2,231
71
93
31.422535
0.782404
0.152398
0
0.296296
0
0
0.070968
0.019892
0
0
0
0.014085
0
1
0.148148
false
0
0.018519
0.018519
0.314815
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0e4eb4e120e4807ca71829f3bbdc43e15b4b1c3a
4,263
py
Python
public/cgi/TileCache/Caches/Disk.py
pcucurullo/groot
9a445ca9bbbd15b1da866d479e982245542f4389
[ "MIT" ]
null
null
null
public/cgi/TileCache/Caches/Disk.py
pcucurullo/groot
9a445ca9bbbd15b1da866d479e982245542f4389
[ "MIT" ]
null
null
null
public/cgi/TileCache/Caches/Disk.py
pcucurullo/groot
9a445ca9bbbd15b1da866d479e982245542f4389
[ "MIT" ]
null
null
null
# BSD Licensed, Copyright (c) 2006-2010 TileCache Contributors from TileCache.Cache import Cache import sys, os, time, warnings class Disk (Cache): def __init__ (self, base = None, umask = '002', **kwargs): Cache.__init__(self, **kwargs) self.basedir = base self.umask = int(umask, 0) ...
33.833333
78
0.50129
472
4,263
4.476695
0.317797
0.026503
0.023663
0.030289
0.231898
0.150497
0.150497
0.118315
0.088973
0.088973
0
0.025355
0.389397
4,263
125
79
34.104
0.7864
0.079756
0
0.383178
0
0
0.040613
0
0
0
0
0
0
0
null
null
0.018692
0.028037
null
null
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e4f5f6585a3676c7470e1db92ef42fc54fe3502
8,226
py
Python
python/Unimeta/clinica/Trabalho_3/trabalho3.py
alifoliveira/rep-estudos
73ffb7cfe77890f6cca8b5447db332f88454ef7e
[ "MIT" ]
null
null
null
python/Unimeta/clinica/Trabalho_3/trabalho3.py
alifoliveira/rep-estudos
73ffb7cfe77890f6cca8b5447db332f88454ef7e
[ "MIT" ]
null
null
null
python/Unimeta/clinica/Trabalho_3/trabalho3.py
alifoliveira/rep-estudos
73ffb7cfe77890f6cca8b5447db332f88454ef7e
[ "MIT" ]
null
null
null
#coding=utf-8 from tkinter import * from tkinter import messagebox as ms import sqlite3 cont = 0 cont2 = 2 cadt = None listr = None empr = None loged = None photo2 = None logo2 = None def verify(): global loged global cont2 global cont global photo2 global logo2 with sqlite3.connect('registr...
35.921397
121
0.61415
1,167
8,226
4.253642
0.183376
0.044722
0.046334
0.021757
0.394239
0.319098
0.303183
0.229855
0.135778
0.135778
0
0.085277
0.197423
8,226
228
122
36.078947
0.666616
0.001459
0
0.175258
0
0
0.170218
0.002922
0
0
0
0
0
1
0.030928
false
0.051546
0.015464
0
0.046392
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0e509a4411ace2f1d93812a0cd0baacd50e0b92f
1,161
py
Python
app/core/tests/test_admin.py
XiaoyuLiu198/Job-Searching-API
61f374914764e8d3b66f4cc165f8c3c13b861753
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
XiaoyuLiu198/Job-Searching-API
61f374914764e8d3b66f4cc165f8c3c13b861753
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
XiaoyuLiu198/Job-Searching-API
61f374914764e8d3b66f4cc165f8c3c13b861753
[ "MIT" ]
null
null
null
from django.test import TestCase,Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client=Client() self.admin_user=get_user_model().objects.create_superuser( email='admin@jobsearchingapi.com', ...
36.28125
87
0.667528
151
1,161
4.993377
0.377483
0.05305
0.047745
0.04244
0.270557
0.137931
0
0
0
0
0
0.009967
0.222222
1,161
31
88
37.451613
0.825028
0.122308
0
0.08
0
0
0.132207
0.096421
0
0
0
0
0.12
1
0.12
false
0.08
0.12
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0e50d3a0e01d3c3e05979732258a8717e0718294
14,876
py
Python
src/devops_menu_helper/common.py
rubelw/devops_menu
38a8eadb26c5ac90a201fd3af0d09d5165ed8249
[ "Apache-2.0" ]
null
null
null
src/devops_menu_helper/common.py
rubelw/devops_menu
38a8eadb26c5ac90a201fd3af0d09d5165ed8249
[ "Apache-2.0" ]
null
null
null
src/devops_menu_helper/common.py
rubelw/devops_menu
38a8eadb26c5ac90a201fd3af0d09d5165ed8249
[ "Apache-2.0" ]
null
null
null
from os.path import expanduser import re import cStringIO,operator import math import random import sys import inspect import ConfigParser import os import ConfigParser from pathlib import Path from jinja2 import Environment, FileSystemLoader from .pretty import * DEBUG = 0 def select_region(): menu = { ...
28.174242
139
0.548198
1,815
14,876
4.412121
0.192287
0.011364
0.011988
0.012238
0.395355
0.357517
0.345155
0.337413
0.32018
0.32018
0
0.009967
0.305324
14,876
527
140
28.227704
0.764951
0.046182
0
0.466472
0
0
0.096038
0.030677
0
0
0
0
0
0
null
null
0.002915
0.037901
null
null
0.151604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e5186cb95666b750583b8c4ccd39975cfce5835
809
py
Python
Algorithm_Complexity/hash.py
prtx/What-I-learned-in-college
914f6e69beafdf66f53410bc7cd2e5344bf43308
[ "MIT" ]
null
null
null
Algorithm_Complexity/hash.py
prtx/What-I-learned-in-college
914f6e69beafdf66f53410bc7cd2e5344bf43308
[ "MIT" ]
null
null
null
Algorithm_Complexity/hash.py
prtx/What-I-learned-in-college
914f6e69beafdf66f53410bc7cd2e5344bf43308
[ "MIT" ]
null
null
null
#!/usr/bin/python3 class hash_table: def __init__(self,x): self.table = [None] * x def show(self): print self.table def hash_function(self,x): return x%10 def insert(self,x): key = self.hash_function(x) if self.table[key]: self.table[key].append(x) else: self.table[key] = ...
12.640625
41
0.618047
140
809
3.5
0.278571
0.146939
0.146939
0.073469
0.210204
0.210204
0.210204
0.159184
0.159184
0.159184
0
0.029921
0.21508
809
63
42
12.84127
0.741732
0.021014
0
0.210526
0
0
0.017722
0
0
0
0
0
0
0
null
null
0
0
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e525bd33acaaa24ca60876c80f4b334a632e74b
605
py
Python
src/server/Pubmed/ImpactFactorParser.py
ucsd-ccbb/Oncolist
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
[ "MIT" ]
null
null
null
src/server/Pubmed/ImpactFactorParser.py
ucsd-ccbb/Oncolist
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
[ "MIT" ]
null
null
null
src/server/Pubmed/ImpactFactorParser.py
ucsd-ccbb/Oncolist
a3c7ecde6f665a665873e5aa7be5bc3778f5b17e
[ "MIT" ]
null
null
null
__author__ = 'guorongxu' import re #Parsing the impact factor file def parse_impact_factor_file(impact_factor_file): #impact_factor_file = "/Users/guorongxu/Desktop/SearchEngine/pubmed/2014_SCI_IF.txt" journalList = {} with open(impact_factor_file) as fp: lines = fp.readlines() for line...
25.208333
88
0.619835
73
605
4.931507
0.589041
0.166667
0.222222
0.122222
0.294444
0.133333
0
0
0
0
0
0.020089
0.259504
605
23
89
26.304348
0.783482
0.186777
0
0
0
0
0.053061
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.214286
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e56bf2d04092cd3b471fb883467f24bf223dcbd
423
py
Python
codeforces/anirudhak47/1342/C.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/1342/C.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/1342/C.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
for _ in range(int(input())): a,b,q=map(int,input().split()) arr=[] for i in range(q): arr+=[list(map(int,input().split()))] res=0 if a!=b: for j in range(arr[i][0],arr[i][1]+1): if (j%a)%b!=(j%b)%a: res+=1 ...
26.4375
51
0.347518
62
423
2.354839
0.322581
0.143836
0.150685
0.219178
0.178082
0.178082
0
0
0
0
0
0.030303
0.453901
423
16
52
26.4375
0.601732
0
0
0
0
0
0.002445
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e5f266eb3a98a006d9b2c6aa1ebbf98b1ad2d6f
1,702
py
Python
calendly/calendly.py
kevteg/calendly-python
54dd6d38de243926f48d3fb9af17b6e8bd929000
[ "MIT" ]
17
2019-06-13T06:41:13.000Z
2021-07-02T16:29:22.000Z
calendly/calendly.py
kevteg/calendly-python
54dd6d38de243926f48d3fb9af17b6e8bd929000
[ "MIT" ]
3
2019-09-27T15:33:37.000Z
2021-08-04T04:25:48.000Z
calendly/calendly.py
kevteg/calendly-python
54dd6d38de243926f48d3fb9af17b6e8bd929000
[ "MIT" ]
7
2020-01-14T14:23:32.000Z
2022-01-27T00:22:33.000Z
from requests.auth import HTTPBasicAuth from json import JSONDecodeError from calendly.utils.constants import WEBHOOK, ME, ECHO, EVENTS from calendly.utils.requests import CaRequest class Calendly(object): event_types_def = { "canceled": "invitee.canceled", "created": "invitee.created" } ...
29.859649
81
0.641011
199
1,702
5.331658
0.276382
0.093308
0.143261
0.118756
0.145146
0
0
0
0
0
0
0.002335
0.245006
1,702
56
82
30.392857
0.823346
0
0
0.159091
0
0
0.075206
0
0
0
0
0
0
1
0.204545
false
0
0.090909
0
0.522727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0e64c3f77d066447da3d127e03adf7c1b2379aa7
933
py
Python
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
4
2021-12-15T04:39:33.000Z
2022-03-07T09:44:53.000Z
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
2
2022-01-19T14:55:34.000Z
2022-02-01T17:48:12.000Z
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
2
2021-12-15T04:57:39.000Z
2022-01-23T19:11:32.000Z
import re import os def setup_poetry(config): """Entry point of module: setup poetry files and run poetry commands""" update_pyproject_dot_toml(config) #lock_poetry_dependencies() #install_dependencies() def lock_poetry_dependencies_on_docker(): """Create poetry.lock file""" os....
29.15625
76
0.6388
118
933
4.915254
0.449153
0.046552
0.062069
0.075862
0.165517
0
0
0
0
0
0
0
0.21329
933
31
77
30.096774
0.790191
0.178993
0
0
0
0
0.21727
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0e67b85c015d842f15c3e2d6cf41224b8a9b6930
420
py
Python
0278.first_bad_version/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
5
2020-05-23T02:18:26.000Z
2021-07-05T05:36:01.000Z
0278.first_bad_version/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2020-06-10T07:17:24.000Z
2020-07-20T02:21:24.000Z
0278.first_bad_version/solution.py
WZMJ/Algorithms
07f648541d38e24df38bda469665c12df6a50637
[ "MIT" ]
1
2019-04-23T13:01:50.000Z
2019-04-23T13:01:50.000Z
# The isBadVersion API is already defined for you. # @param version, an integer # @return a bool def isBadVersion(version): pass class Solution: def firstBadVersion(self, n): left, right = 0, n while left <= right: mid = (left + right) // 2 if not isBadVersion(mid): ...
21
50
0.530952
49
420
4.55102
0.653061
0.121076
0
0
0
0
0
0
0
0
0
0.015504
0.385714
420
19
51
22.105263
0.848837
0.214286
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0e7051044d9426caaf379816eeac9a51dd3633e9
251
py
Python
file/models.py
loffle/loffle_back
f102d5361ac00abf8fa6e2407e9481222e8201e6
[ "MIT" ]
null
null
null
file/models.py
loffle/loffle_back
f102d5361ac00abf8fa6e2407e9481222e8201e6
[ "MIT" ]
null
null
null
file/models.py
loffle/loffle_back
f102d5361ac00abf8fa6e2407e9481222e8201e6
[ "MIT" ]
null
null
null
from django.db import models class FileType(models.Model): name = models.CharField(max_length=200) class File(models.Model): url = models.URLField() type = models.ForeignKey(FileType, on_delete=models.SET_NULL, null=True, blank=True)
20.916667
88
0.737052
35
251
5.2
0.685714
0.120879
0
0
0
0
0
0
0
0
0
0.014019
0.14741
251
11
89
22.818182
0.836449
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1