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
769c5246c6e2d8f03d88b36e38534c367e58dc1b
826
py
Python
0x03-caching/base_caching.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
0x03-caching/base_caching.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
0x03-caching/base_caching.py
JoseAVallejo12/holbertonschool-web_back_end
eb514784772352b8e4873d1f648726815ab69592
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ BaseCaching module.""" class BaseCaching(): """ BaseCaching defines: - constants of your caching system - where your data are stored (in a dictionary) """ MAX_ITEMS = 4 def __init__(self): """Initiliaze.""" self.cache_data = {} def print_cache(...
25.030303
80
0.572639
98
826
4.734694
0.469388
0.05819
0.084052
0.081897
0.142241
0.142241
0.142241
0
0
0
0
0.003442
0.29661
826
32
81
25.8125
0.795181
0.289346
0
0
0
0
0.198502
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.5
0.25
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
76a1e87f72a3c729c801e66e6f62bfb09d3af214
1,237
py
Python
src/brouwers/users/migrations/0003_auto_20160226_0852.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
6
2015-03-03T13:23:07.000Z
2021-12-19T18:12:41.000Z
src/brouwers/users/migrations/0003_auto_20160226_0852.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
95
2015-02-07T00:55:39.000Z
2022-02-08T20:22:05.000Z
src/brouwers/users/migrations/0003_auto_20160226_0852.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
2
2016-03-22T16:53:26.000Z
2019-02-09T22:46:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-26 07:52 from __future__ import unicode_literals from django.db import migrations def sync_user_forumuser(apps, schema_editor): """ Synchronizes the unsynchronized users with their forum user. """ User = apps.get_model('users', 'User') ...
31.717949
81
0.640259
151
1,237
5.033113
0.496689
0.094737
0.051316
0.047368
0.082895
0.082895
0.082895
0.082895
0
0
0
0.035359
0.268391
1,237
38
82
32.552632
0.80442
0.149555
0
0
1
0
0.055126
0.022244
0
0
0
0
0
1
0.04
false
0
0.08
0
0.36
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
76a4cae7941c4f5f798925298d93ce58a0d66200
467
py
Python
subscribers/migrations/0005_auto_20181217_1611.py
seanpierce/django-itr
01951612d4d49c328c89487efc83e65908c8ad58
[ "MIT" ]
null
null
null
subscribers/migrations/0005_auto_20181217_1611.py
seanpierce/django-itr
01951612d4d49c328c89487efc83e65908c8ad58
[ "MIT" ]
null
null
null
subscribers/migrations/0005_auto_20181217_1611.py
seanpierce/django-itr
01951612d4d49c328c89487efc83e65908c8ad58
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-17 23:11 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('subscribers', '0004_subscriptionrequest_token'), ] operations = [ migrations.AlterField( model_name='subscriptionreq...
23.35
96
0.642398
50
467
5.92
0.78
0
0
0
0
0
0
0
0
0
0
0.065527
0.248394
467
19
97
24.578947
0.777778
0.09636
0
0
1
0
0.154762
0.071429
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76a7dd52e468e66807e816159c52d251ea26f14a
3,627
py
Python
ArquivosDeDados/Dados.py
RobersonValle/Projeto_ArcadiaQuest
8343e4c6d7ef652cccb04be0d890565fb75b666f
[ "MIT" ]
null
null
null
ArquivosDeDados/Dados.py
RobersonValle/Projeto_ArcadiaQuest
8343e4c6d7ef652cccb04be0d890565fb75b666f
[ "MIT" ]
null
null
null
ArquivosDeDados/Dados.py
RobersonValle/Projeto_ArcadiaQuest
8343e4c6d7ef652cccb04be0d890565fb75b666f
[ "MIT" ]
null
null
null
# dados de ataque # ataque_melee = 3 # ataque_distancia = 2 # ataque_critico = 1 # # dados de defesa # defesa = 1 # defesa_critico = 1 from random import randint #Biblioteca que gera numeros dinâmicos inteiros. class RolaDados: def __init__(self): pass def rolaDados(self, quantidade_de_dados=1): #Fun...
43.178571
127
0.633857
432
3,627
5.157407
0.231481
0.028725
0.029174
0.033662
0.397666
0.36939
0.286355
0.286355
0.286355
0.286355
0
0.010377
0.282603
3,627
84
128
43.178571
0.845888
0.212297
0
0.222222
0
0
0.044107
0
0
0
0
0.011905
0
1
0.111111
false
0.015873
0.015873
0
0.253968
0.031746
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
76a8ad8a3b96bae4029092092b83dc974025a8eb
387
py
Python
main_store/migrations/0008_auto_20201126_1246.py
Melto007/medical_store_project
3d208159c6addc298d9a6351c7c8ef3f8a144916
[ "MIT" ]
null
null
null
main_store/migrations/0008_auto_20201126_1246.py
Melto007/medical_store_project
3d208159c6addc298d9a6351c7c8ef3f8a144916
[ "MIT" ]
null
null
null
main_store/migrations/0008_auto_20201126_1246.py
Melto007/medical_store_project
3d208159c6addc298d9a6351c7c8ef3f8a144916
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-11-26 07:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main_store', '0007_auto_20201126_1230'), ] operations = [ migrations.AlterField( model_name='order', name='status', ...
20.368421
50
0.599483
42
387
5.404762
0.833333
0
0
0
0
0
0
0
0
0
0
0.112319
0.286822
387
18
51
21.5
0.710145
0.116279
0
0
1
0
0.129412
0.067647
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
76adac0403d12bb418820a8be4ed1419eb9a490a
297
py
Python
matt_site/matt_site/urls.py
hamtamtots/website
1b69aae7d543942ea87cc4d2370f58a3f5977b89
[ "MIT" ]
null
null
null
matt_site/matt_site/urls.py
hamtamtots/website
1b69aae7d543942ea87cc4d2370f58a3f5977b89
[ "MIT" ]
null
null
null
matt_site/matt_site/urls.py
hamtamtots/website
1b69aae7d543942ea87cc4d2370f58a3f5977b89
[ "MIT" ]
null
null
null
""" Definition of urls for matt_site. """ from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = [ url(r'^links/', include('link.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^', include('blog.urls')), ]
19.8
51
0.666667
41
297
4.829268
0.536585
0.060606
0.080808
0
0
0
0
0
0
0
0
0
0.144781
297
14
52
21.214286
0.775591
0
0
0
0
0
0.129412
0
0
0
0
0
0
0
null
null
0
0.25
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
76ae9b772b97074d09b54cb1d5f4efe78ae64187
3,447
py
Python
smmap/scripts/generic_trials.py
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
3
2018-08-20T12:12:43.000Z
2021-06-06T09:43:27.000Z
smmap/scripts/generic_trials.py
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
null
null
null
smmap/scripts/generic_trials.py
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
1
2022-03-31T03:12:23.000Z
2022-03-31T03:12:23.000Z
#!/usr/bin/python from run_trial import * def run_trials(experiment, run_baseline=False, run_UCB=False, run_KFMANB=False, run_KFMANDB=False, generate_screenshots="false", log_prefix=""): if run_baseline: # Note that this is 0 to 25 as range does [start, stop), thus we get 0:4:24 in Matlab speak ...
46.581081
146
0.569771
348
3,447
5.324713
0.235632
0.092283
0.04857
0.075553
0.538586
0.511603
0.445224
0.445224
0.445224
0.412844
0
0.015315
0.355962
3,447
73
147
47.219178
0.819369
0.100087
0
0.508772
1
0
0.066537
0.014212
0
0
0
0
0
1
0.017544
false
0
0.017544
0
0.035088
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
76b2e8a1711f9f56ce7352ecf791a29f31281191
2,595
py
Python
source/python-vsmclient/vsmclient/v1/mdses.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/python-vsmclient/vsmclient/v1/mdses.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/python-vsmclient/vsmclient/v1/mdses.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# Copyright 2014 Intel Corporation, All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
25.95
78
0.578805
323
2,595
4.569659
0.402477
0.04065
0.02981
0.034553
0
0
0
0
0
0
0
0.004396
0.298651
2,595
99
79
26.212121
0.806593
0.339499
0
0
0
0
0.088918
0.014175
0
0
0
0
0
1
0.243902
false
0
0.04878
0.02439
0.487805
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
76b78ce77f2fd11510b0c3ce13dcc6d2e4459e05
416
py
Python
C_Data_resources/solutions/ex1_1c.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
C_Data_resources/solutions/ex1_1c.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
C_Data_resources/solutions/ex1_1c.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
# by usingt he above trick we see that kidney_data.gsms is a dictionary (you can validate this) type(kidney_data.gsms) # a dict is a container of key,value pairs. The values in this case are of the class GEOparse.GEOTypes.GSM # e.g. print(type(list(kidney_data.gsms.values())[0])) ## to get the available methods: f...
26
107
0.742788
74
416
4.121622
0.675676
0.131148
0.183607
0.118033
0.163934
0.163934
0
0
0
0
0
0.005666
0.151442
416
16
108
26
0.858357
0.637019
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
76c3beaa2d94646c3d4c8061b1c259ac0e0aaa3d
350
py
Python
test.py
VarunBabbar/Stroodle
69ccac58d6fe66ca605e5bec7a570a548ba6086a
[ "MIT-0" ]
null
null
null
test.py
VarunBabbar/Stroodle
69ccac58d6fe66ca605e5bec7a570a548ba6086a
[ "MIT-0" ]
null
null
null
test.py
VarunBabbar/Stroodle
69ccac58d6fe66ca605e5bec7a570a548ba6086a
[ "MIT-0" ]
null
null
null
import pygame import time pygame.init() pygame.mixer.init() sounda= pygame.mixer.Sound("European_Dragon_Roaring_and_breathe_fire-daniel-simon_wav.wav") wonka= pygame.mixer.Sound("SCOTT_JOPLIN_The_Entertainer_wav.wav") pygame.mixer.Channel(1).play(wonka) time.sleep(3) pygame.mixer.Channel(0).play(sounda) for i in range(...
25
91
0.794286
55
350
4.872727
0.6
0.205224
0.119403
0
0
0
0
0
0
0
0
0.043077
0.071429
350
13
92
26.923077
0.781538
0
0
0
0
0
0.278736
0.278736
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.090909
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
76c41f75911a4acd8544984ec3fe2fdd7a5916a8
477
py
Python
comments/admin.py
mathemartins/Primenerds
135b7088e8099c9bcae4bdcfb71aa49a44a1d84a
[ "PostgreSQL", "MIT" ]
null
null
null
comments/admin.py
mathemartins/Primenerds
135b7088e8099c9bcae4bdcfb71aa49a44a1d84a
[ "PostgreSQL", "MIT" ]
null
null
null
comments/admin.py
mathemartins/Primenerds
135b7088e8099c9bcae4bdcfb71aa49a44a1d84a
[ "PostgreSQL", "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Comment # customizing the Comment admin in detail class CommentModelAdmin(admin.ModelAdmin): """docstring for CommentModelAdmin""" list_display = ['user', 'content_type', 'timestamp', 'content'] list_display_links = ['content'] list...
28.058824
64
0.754717
55
477
6.418182
0.581818
0.067989
0.084986
0
0
0
0
0
0
0
0
0
0.125786
477
17
65
28.058824
0.846523
0.207547
0
0
0
0
0.19086
0
0
0
0
0
0
1
0
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4f1e2234af5a593a9ff351331e1a0283de7ab121
2,310
py
Python
爬取淘宝商品信息基于selenium框架/taobao.py
13060923171/xianmu
3deb9cdcf4ed1d821043ba1d3947ff35697e4aae
[ "MIT" ]
29
2020-08-02T12:06:10.000Z
2022-03-07T17:51:54.000Z
爬取淘宝商品信息基于selenium框架/taobao.py
13060923171/xianmu
3deb9cdcf4ed1d821043ba1d3947ff35697e4aae
[ "MIT" ]
3
2020-08-16T15:56:47.000Z
2021-11-20T21:49:59.000Z
爬取淘宝商品信息基于selenium框架/taobao.py
13060923171/xianmu
3deb9cdcf4ed1d821043ba1d3947ff35697e4aae
[ "MIT" ]
15
2020-08-16T08:28:08.000Z
2021-09-29T07:17:38.000Z
import requests import re from urllib import parse headers = { "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36", "referer": "https://tb.alicdn.com/snapshot/index.html", 'cookie': 't=884491259d4aed9aac3cd83e5798c433; cna=UU81F...
49.148936
764
0.713853
287
2,310
5.630662
0.595819
0.022277
0.012376
0.014851
0
0
0
0
0
0
0
0.120338
0.129437
2,310
46
765
50.217391
0.683242
0.039394
0
0
0
0.147059
0.576471
0.411765
0
0
0
0
0
1
0.058824
false
0
0.088235
0
0.147059
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f1edbd3fee089e9770cfee7b8a5fa350c896cf5
2,687
py
Python
machineLearning/api/socketServer/src/server.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
machineLearning/api/socketServer/src/server.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
machineLearning/api/socketServer/src/server.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
from dotenv import load_dotenv load_dotenv() import SocketServer, json, logging, redis, os for param in os.environ.keys(): print "%20s %s" % (param,os.environ[param]) r = redis.StrictRedis(host=os.environ['REDIS_SERVICE_HOST'], port=int(os.environ['REDIS_SERVICE_PORT']), db=0) r.set(os.environ.get('ALIAS'), 'PEN...
29.527473
110
0.642352
331
2,687
5.160121
0.398792
0.042155
0.014052
0.030445
0.092506
0.067916
0.067916
0
0
0
0
0.01354
0.230368
2,687
90
111
29.855556
0.812379
0.148121
0
0.163265
0
0
0.137101
0
0
0
0
0
0
0
null
null
0
0.061224
null
null
0.020408
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
4f1ee5048b9306999977dde1e09041646b91c0f8
644
py
Python
win32/rpy3/robjects/tests/testREnvironment.py
PiRSquared17/r-orange
6bc383f1db3c10c59e16b39daffc44df904ce031
[ "Apache-2.0" ]
1
2019-04-15T13:50:30.000Z
2019-04-15T13:50:30.000Z
win32/rpy3/robjects/tests/testREnvironment.py
PiRSquared17/r-orange
6bc383f1db3c10c59e16b39daffc44df904ce031
[ "Apache-2.0" ]
null
null
null
win32/rpy3/robjects/tests/testREnvironment.py
PiRSquared17/r-orange
6bc383f1db3c10c59e16b39daffc44df904ce031
[ "Apache-2.0" ]
1
2016-01-21T23:00:21.000Z
2016-01-21T23:00:21.000Z
import unittest import rpy3.robjects as robjects rinterface = robjects.rinterface import array class REnvironmentTestCase(unittest.TestCase): def testNew(self): env = robjects.REnvironment() self.assertEquals(rinterface.ENVSXP, env.typeof) def testNewValueError(self): self.assertRaises...
25.76
77
0.701863
65
644
6.830769
0.507692
0.135135
0.067568
0.121622
0
0
0
0
0
0
0
0.007722
0.195652
644
24
78
26.833333
0.849421
0
0
0.105263
0
0
0.017081
0
0
0
0
0
0.157895
1
0.210526
false
0
0.157895
0
0.473684
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
4f252e764e81323d770e13f9ca3c14e3b952e861
1,121
py
Python
AICamera/app/src/main/cpp/caffe2/python/ideep/squeeze_op_test.py
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
1
2020-01-10T02:56:03.000Z
2020-01-10T02:56:03.000Z
AICamera/app/src/main/cpp/caffe2/python/ideep/squeeze_op_test.py
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
null
null
null
AICamera/app/src/main/cpp/caffe2/python/ideep/squeeze_op_test.py
blackxer/AICamera
4f0a6a09a2288da2ec7140744b5c2862df114c78
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import hypothesis.strategies as st from hypothesis import given import numpy as np from caffe2.python import core, workspace import caffe2.pytho...
31.138889
74
0.666369
149
1,121
4.751678
0.496644
0.056497
0.090395
0
0
0
0
0
0
0
0
0.016413
0.239072
1,121
35
75
32.028571
0.813599
0
0
0
0
0
0.033149
0
0
0
0
0
0.033333
1
0.033333
false
0
0.366667
0
0.433333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4f254ec7cecb48b12a403b20a539c2f6c9147fe0
434
py
Python
LeetCode/Python/0747. Largest Number At Least Twice of Others.py
rayvantsahni/Competitive-Programming-Codes
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
1
2021-07-05T14:01:36.000Z
2021-07-05T14:01:36.000Z
LeetCode/Python/0747. Largest Number At Least Twice of Others.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
LeetCode/Python/0747. Largest Number At Least Twice of Others.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
class Solution: def dominantIndex(self, nums: List[int]) -> int: max_index = 0 for index, num in enumerate(nums): if num > nums[max_index]: max_index = index for index, num in enumerate(nums): if index == max_index: co...
27.125
52
0.481567
49
434
4.142857
0.428571
0.236453
0.108374
0.128079
0.275862
0.275862
0.275862
0
0
0
0
0.012346
0.440092
434
15
53
28.933333
0.823045
0
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.333333
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
4f2a5f764ac096823150ebed372f7dcfa7d67c31
523
py
Python
cep/cuenta.py
lucf25/cep-python
e3e715c20e4857845776d440d73348dbdc156877
[ "MIT" ]
4
2019-07-31T16:08:16.000Z
2021-12-27T15:41:22.000Z
cep/cuenta.py
lucf25/cep-python
e3e715c20e4857845776d440d73348dbdc156877
[ "MIT" ]
73
2019-07-31T18:14:35.000Z
2022-03-29T14:12:01.000Z
cep/cuenta.py
lucf25/cep-python
e3e715c20e4857845776d440d73348dbdc156877
[ "MIT" ]
8
2019-11-23T01:45:43.000Z
2022-02-17T10:03:28.000Z
from dataclasses import dataclass from lxml import etree @dataclass class Cuenta: nombre: str tipo: str banco: str numero: str rfc: str @classmethod def from_etree(cls, element: etree._Element): cuenta = cls( nombre=element.get('Nombre'), tipo=element.get(...
21.791667
77
0.594646
57
523
5.421053
0.421053
0.194175
0
0
0
0
0
0
0
0
0
0
0.296367
523
23
78
22.73913
0.839674
0
0
0
0
0
0.09369
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4f2a90f9a24810c79897ad8cbd0401cace997063
15,956
py
Python
autohelm/autohelm.py
bfin/autohelm
4e54c54e01c57a8fd9156898fc958b67abfdf4b6
[ "Apache-2.0" ]
null
null
null
autohelm/autohelm.py
bfin/autohelm
4e54c54e01c57a8fd9156898fc958b67abfdf4b6
[ "Apache-2.0" ]
null
null
null
autohelm/autohelm.py
bfin/autohelm
4e54c54e01c57a8fd9156898fc958b67abfdf4b6
[ "Apache-2.0" ]
null
null
null
# -- coding: utf-8 -- # Copyright 2017 Reactive Ops 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 l...
41.989474
150
0.607295
1,893
15,956
4.96355
0.175383
0.031928
0.01341
0.009579
0.175713
0.082801
0.070881
0.057046
0.02831
0.022137
0
0.002757
0.272687
15,956
379
151
42.100264
0.806894
0.046816
0
0.174216
0
0
0.144592
0.001965
0
0
0
0
0
0
null
null
0.003484
0.045296
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
4f2dfd3e28c43a01bfa689c2d1f0198a9abd13d3
2,223
py
Python
spark_auto_mapper_fhir/value_sets/type_restful_interaction.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/type_restful_interaction.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/type_restful_interaction.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
34.2
84
0.722447
242
2,223
6.516529
0.27686
0.053266
0.076094
0.106531
0.471782
0.442613
0.402029
0.402029
0.402029
0.402029
0
0.006941
0.157445
2,223
64
85
34.734375
0.835024
0.152497
0
0
0
0
0.104463
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.944444
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
4f2e19e79fb0babf091862cbdd4ed7b672e3957a
533
py
Python
main.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
2
2020-10-27T19:49:07.000Z
2020-11-04T12:35:15.000Z
main.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
3
2020-11-13T18:57:14.000Z
2022-02-10T01:54:56.000Z
main.py
yohskua/support-ticket-classification
ba26373583c8dc56902b8e9e4ba716f400a730b9
[ "MIT" ]
null
null
null
from typing import Dict, Union from fastapi import FastAPI from pydantic import BaseModel from src.model import load_model, model_predict model, tokenizer = load_model() app = FastAPI() class Ticket(BaseModel): message: str @app.post("/ticket_support_classification") def classify_ticket(ticket: Ticket) -> Di...
23.173913
82
0.727955
66
533
5.742424
0.424242
0.137203
0.08971
0.137203
0
0
0
0
0
0
0
0
0.165103
533
22
83
24.227273
0.851685
0
0
0
0
0
0.110694
0.056285
0
0
0
0
0.066667
1
0.066667
false
0
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
0
0
0
1
0
0
1
4f330dc15c93522838536cae216cf74c17706955
975
py
Python
out_of_range_parameters_DE.py
wanderer-soul92/function-ext-python-wanderer-soul92
4b0ab001bbd1a7a374f61ce523bf561e1068ba05
[ "MIT" ]
null
null
null
out_of_range_parameters_DE.py
wanderer-soul92/function-ext-python-wanderer-soul92
4b0ab001bbd1a7a374f61ce523bf561e1068ba05
[ "MIT" ]
null
null
null
out_of_range_parameters_DE.py
wanderer-soul92/function-ext-python-wanderer-soul92
4b0ab001bbd1a7a374f61ce523bf561e1068ba05
[ "MIT" ]
1
2021-03-10T17:57:03.000Z
2021-03-10T17:57:03.000Z
import Record_warnings_DE import battery_test def get_out_of_range_parameter_DE(BMS_input,out_of_range_parameters,actions_on_parameters): for parameter,value in BMS_input.items() : check_tolerance_range_DE(parameter,value,out_of_range_parameters,actions_on_parameters) return out_of_range_...
46.428571
105
0.771282
127
975
5.440945
0.299213
0.057887
0.115774
0.202605
0.713459
0.629522
0.522431
0.293777
0.293777
0.293777
0
0
0.155897
975
20
106
48.75
0.839611
0
0
0
0
0
0.07518
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f37bfef3634ce993d60501ae155654b73c4dc31
1,917
py
Python
Lib/fontbakery/profiles/hhea.py
paullinnerud/fontbakery
666b3425b14f6c59a43cddf30279ca2fdc6e714e
[ "Apache-2.0" ]
351
2015-01-12T09:27:03.000Z
2022-03-24T14:37:56.000Z
Lib/fontbakery/profiles/hhea.py
paullinnerud/fontbakery
666b3425b14f6c59a43cddf30279ca2fdc6e714e
[ "Apache-2.0" ]
2,308
2015-01-07T10:49:14.000Z
2022-03-31T22:55:21.000Z
Lib/fontbakery/profiles/hhea.py
paullinnerud/fontbakery
666b3425b14f6c59a43cddf30279ca2fdc6e714e
[ "Apache-2.0" ]
89
2015-03-02T17:31:04.000Z
2022-03-16T13:18:59.000Z
from fontbakery.callable import check from fontbakery.status import FAIL, PASS, SKIP, WARN from fontbakery.message import Message # used to inform get_module_profile whether and how to create a profile from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import profile_imports = [ ('....
36.865385
89
0.644757
242
1,917
4.913223
0.338843
0.100925
0.126156
0.111859
0.312868
0.142977
0.099243
0.099243
0.099243
0.099243
0
0.012623
0.256129
1,917
51
90
37.588235
0.821178
0.110068
0
0.162791
0
0
0.27863
0.069067
0
0
0
0
0
1
0.046512
false
0.069767
0.116279
0
0.162791
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
4f38fcb3751489036e1a8d2b92beaf5ffc630165
1,324
py
Python
nce/translator/message_service.py
1NCE-GmbH/blueprint-pycom
42aa9614a73a87ff8e4941d24637279c7b91da45
[ "Apache-2.0" ]
6
2020-07-19T13:01:16.000Z
2022-03-23T07:13:54.000Z
nce/translator/message_service.py
1NCE-GmbH/blueprint-pycom
42aa9614a73a87ff8e4941d24637279c7b91da45
[ "Apache-2.0" ]
null
null
null
nce/translator/message_service.py
1NCE-GmbH/blueprint-pycom
42aa9614a73a87ff8e4941d24637279c7b91da45
[ "Apache-2.0" ]
3
2021-03-11T13:56:16.000Z
2022-01-27T17:29:39.000Z
# -*- coding: utf-8 -*- import ustruct as struct class ValueType: STRING = "string" CHAR = "char" DOUBLE = "double" FLOAT = "float" INT = "int" UINT = "uint" SHORT = "short" BOOLEAN = "boolean" def fill_bytes(byte_array, start, end, value, value_type): if value_type == ValueType....
41.375
82
0.649547
200
1,324
4.21
0.2
0.133017
0.166271
0.216152
0.690024
0.625891
0.549881
0.549881
0.549881
0.549881
0
0.000972
0.22281
1,324
31
83
42.709677
0.817298
0.015861
0
0
0
0
0.037663
0
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.461538
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
4f3fb8a1d9829bd4c28008e5055416bbbb345c82
388
py
Python
submission_form/views/LoginRequiredMessageMixin.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
null
null
null
submission_form/views/LoginRequiredMessageMixin.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
6
2018-02-08T12:26:04.000Z
2018-02-09T06:14:12.000Z
submission_form/views/LoginRequiredMessageMixin.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
null
null
null
# django module from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages # app module # lib class LoginRequiredMessageMixin(LoginRequiredMixin): def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated: messages.error(request, 'このページにアクセスするに...
24.25
57
0.765464
42
388
7.047619
0.666667
0.067568
0.114865
0
0
0
0
0
0
0
0
0
0.136598
388
15
58
25.866667
0.883582
0.072165
0
0
0
0
0.064607
0.064607
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
4f4237a69f4350ac571c09c51c4509c58f53ba8e
375
py
Python
favorProject/favorApp/migrations/0003_auto_20200216_0607.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
2
2020-03-24T05:06:09.000Z
2021-06-15T04:26:51.000Z
favorProject/favorApp/migrations/0003_auto_20200216_0607.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
25
2020-06-06T01:34:05.000Z
2022-03-12T00:20:44.000Z
favorProject/favorApp/migrations/0003_auto_20200216_0607.py
eric-newcomer/favor
0435b8bb211071cc6508d598ee65228c50f91e2f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-02-16 06:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('favorApp', '0002_auto_20200216_0511'), ] operations = [ migrations.AlterField( model_name='favor', name='date', ...
19.736842
48
0.589333
39
375
5.564103
0.846154
0
0
0
0
0
0
0
0
0
0
0.117424
0.296
375
18
49
20.833333
0.704545
0.12
0
0
1
0
0.121951
0.070122
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f42ff53f4ef8c8f4f96ad756da079cc15d656e5
2,510
py
Python
data/css/test.py
LordZagreus/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2017-10-31T22:26:22.000Z
2017-10-31T22:26:22.000Z
data/css/test.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
2
2019-07-05T03:17:18.000Z
2019-07-08T16:15:29.000Z
data/css/test.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2020-10-15T09:03:20.000Z
2020-10-15T09:03:20.000Z
import re properties_by_selector = {} def parse_property(p): # Check for RGB define matches = re.findall( "rgb\(([^)]+?)\)", p ) # Found one? if ( len(matches) > 0 ): # Take the first result, we should only have one anyway... rgb_string = matches[0] return rgb_string ...
20.916667
78
0.586454
321
2,510
4.548287
0.398754
0.036986
0.054795
0.024658
0.023288
0
0
0
0
0
0
0.006656
0.281673
2,510
119
79
21.092437
0.803106
0.387649
0
0.130435
0
0
0.039814
0
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.108696
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
4f4a89e51648fd2ff817ab02f2d293f18b97aa76
2,095
py
Python
tests/test_pandas.py
hmaarrfk/pyjson_tricks
e4e6be125a32bda943924aa78630d51659ac5da3
[ "BSD-3-Clause" ]
null
null
null
tests/test_pandas.py
hmaarrfk/pyjson_tricks
e4e6be125a32bda943924aa78630d51659ac5da3
[ "BSD-3-Clause" ]
null
null
null
tests/test_pandas.py
hmaarrfk/pyjson_tricks
e4e6be125a32bda943924aa78630d51659ac5da3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import OrderedDict from numpy import linspace, isnan from numpy.testing import assert_equal from pandas import DataFrame, Series from json_tricks import dumps, loads from tests.test_bare import nonpdata COLUMNS = OrderedDict(( ('name', ('Alfa', 'Bravo',...
29.507042
101
0.680191
308
2,095
4.561688
0.305195
0.02847
0.042705
0.05694
0.343772
0.343772
0.343772
0.250534
0.250534
0.250534
0
0.015504
0.137947
2,095
70
102
29.928571
0.762458
0.045823
0
0.25
0
0
0.072755
0
0
0
0
0.014286
0.285714
1
0.053571
false
0
0.107143
0
0.160714
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
4f4b21ca70b9d05bd6c1dd177e20d0918c2a6551
4,213
py
Python
regression.py
tokee/covid-19-extrapolate
6c0f3d8948a1ffcac4c7f572d730bfaaff244131
[ "Apache-2.0" ]
null
null
null
regression.py
tokee/covid-19-extrapolate
6c0f3d8948a1ffcac4c7f572d730bfaaff244131
[ "Apache-2.0" ]
null
null
null
regression.py
tokee/covid-19-extrapolate
6c0f3d8948a1ffcac4c7f572d730bfaaff244131
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # https://stackoverflow.com/questions/3433486/how-to-do-exponential-and-logarithmic-curve-fitting-in-python-i-found-only-poly # # Usage: Run the script ./get_data.sh first, then this script # TODO: Make downloading of data part of this script import numpy as np import matplotlib.pyplot as plt...
35.70339
125
0.694042
748
4,213
3.691176
0.251337
0.027164
0.026078
0.026078
0.178921
0.074611
0.045636
0.026078
0.014488
0.014488
0
0.026142
0.137432
4,213
117
126
36.008547
0.733627
0.295514
0
0.028986
0
0
0.103905
0
0
0
0
0.008547
0
1
0.115942
false
0
0.043478
0.101449
0.275362
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
4f4dacc76abc37b45ae6e26380de5236bc771039
331
py
Python
project_euler/Problem26/p26.py
bernardosequeir/CTFfiles
36a6ceba49d9a9019056d3669c5e8f84aa83b618
[ "MIT" ]
null
null
null
project_euler/Problem26/p26.py
bernardosequeir/CTFfiles
36a6ceba49d9a9019056d3669c5e8f84aa83b618
[ "MIT" ]
5
2020-09-23T18:28:25.000Z
2020-09-23T18:28:41.000Z
project_euler/Problem26/p26.py
bernardosequeir/CTFSolutions
503944617cb18826d12ab98fa33fd761e791328a
[ "MIT" ]
null
null
null
def biggest_cycle_before(limit): num = longest = 1 for n in range(3, limit, 2): if n % 5 == 0: continue p = 1 while (10 ** p) % n != 1: p += 1 if p > longest: num, longest = n, p print(num) if __name__ == "__main__": biggest_cycle_...
17.421053
33
0.465257
45
331
3.155556
0.533333
0.169014
0.253521
0
0
0
0
0
0
0
0
0.062176
0.416918
331
18
34
18.388889
0.673575
0
0
0
0
0
0.024169
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
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
4f5f082ee71331338e2ae936c1387ba7701328ac
3,046
py
Python
streaming/python/runtime/remote_call.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
streaming/python/runtime/remote_call.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
streaming/python/runtime/remote_call.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import logging import os import ray import time from enum import Enum from ray.actor import ActorHandle from ray.streaming.generated import remote_call_pb2 from ray.streaming.runtime.command\ import WorkerCommitReport, WorkerRollbackRequest logger = logging.getLogger(__name__) class CallResult: """ Call...
31.729167
75
0.683848
345
3,046
5.805797
0.237681
0.05991
0.045432
0.03994
0.279081
0.198702
0.198702
0.171742
0.171742
0.080879
0
0.009025
0.236047
3,046
95
76
32.063158
0.85174
0.016743
0
0.132353
1
0
0.06782
0
0
0
0
0
0
1
0.102941
false
0
0.117647
0.044118
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4f5f448355f8091fea41dee12aed916e73201309
2,255
py
Python
armi/tests/mockRunLogs.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
1
2020-10-14T15:18:11.000Z
2020-10-14T15:18:11.000Z
armi/tests/mockRunLogs.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/tests/mockRunLogs.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
1
2020-08-26T09:02:06.000Z
2020-08-26T09:02:06.000Z
# Copyright 2019 TerraPower, LLC # # 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 writi...
33.161765
109
0.709978
301
2,255
5.219269
0.48505
0.040102
0.022915
0.034373
0.026735
0
0
0
0
0
0
0.00618
0.210643
2,255
67
110
33.656716
0.876404
0.481596
0
0.071429
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.071429
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4f70036146cd0f0e6f850eb3ca72524d38a7dc36
10,509
py
Python
py/device/device_types.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/device/device_types.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/device/device_types.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
# Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Interfaces, classes and types for Device API.""" from cros.factory.utils import sys_interface from cros.factory.utils import type_utils # Default co...
28.634877
80
0.715196
1,288
10,509
5.804348
0.29736
0.11236
0.139647
0.153558
0.148341
0.067014
0.02595
0.018459
0.018459
0.018459
0
0.000955
0.203064
10,509
366
81
28.713115
0.891701
0.612332
0
0.531746
0
0
0.001425
0
0
0
0
0.005464
0
1
0.325397
false
0
0.015873
0
0.412698
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
4f759d33623cadcffcf1d6a1865c7e32845d01b1
547
py
Python
example/testapp/__init__.py
Ecotrust/rpc4django
5a319bf87bf1a41d4f26d32590bfa22132e8824c
[ "BSD-3-Clause" ]
28
2016-02-06T07:06:47.000Z
2021-04-07T21:07:18.000Z
example/testapp/__init__.py
Ecotrust/rpc4django
5a319bf87bf1a41d4f26d32590bfa22132e8824c
[ "BSD-3-Clause" ]
17
2016-12-22T15:57:03.000Z
2020-10-06T15:22:18.000Z
example/testapp/__init__.py
Ecotrust/rpc4django
5a319bf87bf1a41d4f26d32590bfa22132e8824c
[ "BSD-3-Clause" ]
12
2015-12-28T04:07:25.000Z
2021-03-12T02:12:09.000Z
# -*- coding: utf-8 -*- from rpc4django import rpcmethod from .othermodule import intro, getrequest from .secretmodule import * # imports protected method @rpcmethod(name='rpc4django.mytestmethod',signature=['int', 'int', 'int', 'int']) def mytestmethod(a, b, c): ''' Adds the three parameters together and ret...
22.791667
81
0.625229
65
547
5.261538
0.569231
0.052632
0.052632
0
0
0
0
0
0
0
0
0.009901
0.261426
547
23
82
23.782609
0.836634
0.444241
0
0
0
0
0.141129
0.092742
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4f7b7fedf826bdc8a2065803fa95ee9af053ab0a
201
py
Python
modulo-1/Exercicios/ex006.py
Fneumannt/Curso-Python
ad11463c4da79d94208997f460aea895b278018d
[ "MIT" ]
1
2022-02-16T18:43:41.000Z
2022-02-16T18:43:41.000Z
modulo-1/Exercicios/ex006.py
Fneumannt/Curso-Python
ad11463c4da79d94208997f460aea895b278018d
[ "MIT" ]
null
null
null
modulo-1/Exercicios/ex006.py
Fneumannt/Curso-Python
ad11463c4da79d94208997f460aea895b278018d
[ "MIT" ]
null
null
null
n1 = int(input('Digite um número: ')) dob = n1*2 trip = n1*3 raiz = n1**(0.5) print('O número digitado foi: {} \nO dobro é {} \nO triplo é {} \nSua raiz quadrade é {:.2f}'.format(n1, dob, trip, raiz))
33.5
122
0.61194
37
201
3.324324
0.675676
0
0
0
0
0
0
0
0
0
0
0.060606
0.179104
201
5
123
40.2
0.684848
0
0
0
0
0.2
0.512438
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
4f7cfcb08214c4efc1399ce161502c5a7d921bb3
822
py
Python
meiduo_lianxi/utils/secret.py
Wang-TaoTao/lianxiku
0f58b6859b4dcd4e81d8f7c4f67be68f245811cc
[ "MIT" ]
null
null
null
meiduo_lianxi/utils/secret.py
Wang-TaoTao/lianxiku
0f58b6859b4dcd4e81d8f7c4f67be68f245811cc
[ "MIT" ]
null
null
null
meiduo_lianxi/utils/secret.py
Wang-TaoTao/lianxiku
0f58b6859b4dcd4e81d8f7c4f67be68f245811cc
[ "MIT" ]
null
null
null
# 封装 根据django项目配置的 secret_key 加解密 from django.conf import settings # 使用 TimedJSONWebSignatureSerializer 对象 可以设置有效期 from itsdangerous import TimedJSONWebSignatureSerializer as Serializer class SecretOauth(object): # 加密 def dumps(self, content_dict): # 1.根据 签名(secret_key) 创建序列化对象 serializer = Se...
32.88
88
0.684915
99
822
5.555556
0.505051
0.114545
0.054545
0.058182
0.363636
0.363636
0.363636
0.363636
0.363636
0.363636
0
0.028846
0.240876
822
24
89
34.25
0.852564
0.260341
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
4f7e501190330b1c13172cdb3c25e8828ed58fcb
3,598
py
Python
examples/additional_examples/mixed_energy_force/methane_F.py
t-young31/gap-train
864574abe20cc6072376e7c36ffb2ee1635e74e3
[ "MIT" ]
13
2021-02-16T15:25:27.000Z
2022-01-26T12:09:37.000Z
examples/additional_examples/mixed_energy_force/methane_F.py
duartegroup/gap-train
864574abe20cc6072376e7c36ffb2ee1635e74e3
[ "MIT" ]
5
2021-04-09T16:07:47.000Z
2021-08-05T15:40:50.000Z
examples/additional_examples/mixed_energy_force/methane_F.py
t-young31/gap-train
864574abe20cc6072376e7c36ffb2ee1635e74e3
[ "MIT" ]
3
2021-03-23T16:55:22.000Z
2022-01-03T23:40:28.000Z
import gaptrain as gt import numpy as np import matplotlib.pyplot as plt from autode.wrappers.keywords import GradientKeywords gt.GTConfig.n_cores = 10 # plt.style.use('paper') def generate_dftb_trajectory(): """Generate some configurations to use as reference""" traj = gt.md.run_dftbmd(methane.configuration...
33.009174
95
0.627293
484
3,598
4.450413
0.303719
0.025998
0.03714
0.072423
0.352832
0.291551
0.262767
0.246982
0.246982
0.220984
0
0.023588
0.222346
3,598
108
96
33.314815
0.746247
0.059755
0
0.171053
1
0
0.155562
0.018144
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
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
4f7fefe3d654359652fcdb8927801526cf807a8c
2,208
py
Python
wgmm/wgmm.py
sahibdhanjal/Weighted-Expectation-Maximization
fb9c81e0c436e4ad14761bcd619a661b65ea1623
[ "MIT" ]
null
null
null
wgmm/wgmm.py
sahibdhanjal/Weighted-Expectation-Maximization
fb9c81e0c436e4ad14761bcd619a661b65ea1623
[ "MIT" ]
null
null
null
wgmm/wgmm.py
sahibdhanjal/Weighted-Expectation-Maximization
fb9c81e0c436e4ad14761bcd619a661b65ea1623
[ "MIT" ]
null
null
null
''' Function/API Imports: Expectation Maximization MATLAB API ''' #!/usr/bin/env python # EM imports import sys, os, time import scipy.io as si import numpy as np import wgmm.gpu as wgmm # Matlab inteface imports import matlab.engine ''' Functions: ''' def readEngine(file): try: ...
24.263736
103
0.566576
296
2,208
4.118243
0.347973
0.086136
0.049221
0.052502
0.172272
0.172272
0.131255
0.131255
0.131255
0.131255
0
0.022236
0.287138
2,208
90
104
24.533333
0.752224
0.038496
0
0.189655
0
0
0.090339
0.014099
0
0
0
0
0
0
null
null
0
0.086207
null
null
0.068966
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
4f815a62e6e73200404d72f567627a4d6c13dc4b
1,778
py
Python
snippets/python/storage/get_storage_server_by_id.py
besantp/netbackup-api-code-samples
8900df53c17faeec05379d9fb604fe438d17f8cd
[ "MIT" ]
43
2018-03-18T16:03:34.000Z
2022-03-30T16:30:06.000Z
snippets/python/storage/get_storage_server_by_id.py
besantp/netbackup-api-code-samples
8900df53c17faeec05379d9fb604fe438d17f8cd
[ "MIT" ]
36
2018-02-02T19:20:29.000Z
2022-03-16T17:33:25.000Z
snippets/python/storage/get_storage_server_by_id.py
besantp/netbackup-api-code-samples
8900df53c17faeec05379d9fb604fe438d17f8cd
[ "MIT" ]
44
2018-05-21T06:05:34.000Z
2022-02-18T04:14:46.000Z
import sys import storage import json import texttable as tt protocol = "https" nbmaster = "" username = "" password = "" domainname = "" domaintype = "" port = 1556 def print_usage(): print("Example:") print( "python -W ignore get_storage_server_by_id.py -nbmaster <master_server> -username <usernam...
24.027027
211
0.628234
228
1,778
4.789474
0.280702
0.089744
0.087912
0.049451
0.239011
0.202381
0.096154
0.096154
0
0
0
0.010182
0.226659
1,778
74
212
24.027027
0.784
0
0
0.137931
0
0.017241
0.244519
0.015177
0
0
0
0
0
1
0.034483
false
0.137931
0.068966
0
0.103448
0.189655
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
4f81711346ce792790ac9a35eb1b62dcab9fad34
1,331
py
Python
homecontrol/smart_interfaces/hue/sensor.py
Senth/home-control
a297deb0b89ff164f6fcc17652d48a05285b9938
[ "MIT" ]
null
null
null
homecontrol/smart_interfaces/hue/sensor.py
Senth/home-control
a297deb0b89ff164f6fcc17652d48a05285b9938
[ "MIT" ]
1
2021-11-16T21:17:51.000Z
2021-11-16T21:17:51.000Z
homecontrol/smart_interfaces/hue/sensor.py
Senth/home-control
a297deb0b89ff164f6fcc17652d48a05285b9938
[ "MIT" ]
null
null
null
from __future__ import annotations import time from typing import Any, Dict, List, Optional from .api import Api class Sensor: sensors: List[Sensor] = [] def __init__(self, id: int, name: str, update_interval_seconds: float, log: bool) -> None: self.id = id self._update_interval_seconds = u...
28.934783
94
0.629602
170
1,331
4.676471
0.305882
0.075472
0.10566
0.062893
0.075472
0.075472
0
0
0
0
0
0.001031
0.271225
1,331
45
95
29.577778
0.818557
0
0
0
0
0
0.057851
0
0
0
0
0
0
1
0.205882
false
0
0.117647
0.058824
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
4f81caf2ba7bbfce8c0010500063551d525ff760
630
py
Python
stackstate_checks_dev/stackstate_checks/dev/tooling/commands/validate/__init__.py
CTAC-unixsupport/stackstate-agent-integrations
9ac167e182e69d035a09bedec9bbceb135e2727b
[ "BSD-3-Clause" ]
2
2020-03-10T13:21:37.000Z
2021-04-01T07:52:16.000Z
stackstate_checks_dev/stackstate_checks/dev/tooling/commands/validate/__init__.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
33
2020-02-05T16:18:32.000Z
2022-03-21T14:08:04.000Z
stackstate_checks_dev/stackstate_checks/dev/tooling/commands/validate/__init__.py
DennisLoos/stackstate-agent-integrations
8a8cc1607a8f1b8560e450d15cefa0d8d1227674
[ "BSD-3-Clause" ]
7
2020-03-10T13:21:39.000Z
2021-03-11T07:16:44.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import click from .config import config from .dep import dep from .manifest import manifest from .metadata import metadata from .service_checks import service_checks from .py3 import py3 from ..console import CON...
19.090909
59
0.739683
85
630
5.364706
0.541176
0.085526
0
0
0
0
0
0
0
0
0
0.015717
0.192063
630
32
60
19.6875
0.880157
0.15873
0
0
0
0
0.064639
0
0
0
0
0
0
1
0.041667
false
0.041667
0.333333
0
0.375
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
4f8d52b93cb550b81bc7b24c5b4729535c1db8f2
8,767
py
Python
reinforcement_learning/resources_rl/rl/agent_tabular_ql.py
sairamsubramaniam/data_science_practice
934a2e0357658d4e011d35b1fdd5f925c1c3efef
[ "MIT" ]
null
null
null
reinforcement_learning/resources_rl/rl/agent_tabular_ql.py
sairamsubramaniam/data_science_practice
934a2e0357658d4e011d35b1fdd5f925c1c3efef
[ "MIT" ]
null
null
null
reinforcement_learning/resources_rl/rl/agent_tabular_ql.py
sairamsubramaniam/data_science_practice
934a2e0357658d4e011d35b1fdd5f925c1c3efef
[ "MIT" ]
null
null
null
"""Tabular QL agent""" import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm import framework import utils DEBUG = False GAMMA = 0.5 # discounted factor TRAINING_EP = 0.5 # epsilon-greedy parameter for training TESTING_EP = 0.05 # epsilon-greedy parameter for testing NUM_RUNS = 10 N...
32.712687
113
0.595757
1,087
8,767
4.49494
0.180313
0.0307
0.042571
0.03684
0.465002
0.412607
0.360622
0.305362
0.298199
0.298199
0
0.015279
0.320634
8,767
267
114
32.835206
0.805071
0.354169
0
0.1
0
0
0.031557
0.005003
0
0
0
0.011236
0
1
0.041667
false
0
0.041667
0
0.125
0.008333
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
4f9a178182df2b2f42ef7ee638c40f2bec2a5205
253
py
Python
tests/unit/test_clone.py
RIAPS/butter
17f678043d2ac32e2d98d1a83b55e7e987596729
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_clone.py
RIAPS/butter
17f678043d2ac32e2d98d1a83b55e7e987596729
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_clone.py
RIAPS/butter
17f678043d2ac32e2d98d1a83b55e7e987596729
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from butter.clone import unshare, setns import pytest @pytest.mark.clone def test_setns(mock): m = mock.patch('butter.clone._lib') m = mock.patch('butter.clone._lib.setns') m.return_value = 0 setns(fd=5)
19.461538
45
0.667984
39
253
4.230769
0.589744
0.2
0.121212
0.193939
0.290909
0.290909
0
0
0
0
0
0.009804
0.193676
253
12
46
21.083333
0.79902
0.079051
0
0
0
0
0.172414
0.099138
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
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
4f9a34001295e19b4aa047dffa40e1c54ce07926
1,497
py
Python
setup.py
ShibalIbrahim/Additive-Models-with-Structured-Interactions
8f081ecb6b78546eada5d8d9de89aa297395da2c
[ "MIT" ]
1
2021-08-28T13:27:55.000Z
2021-08-28T13:27:55.000Z
setup.py
ShibalIbrahim/Additive-Models-with-Structured-Interactions
8f081ecb6b78546eada5d8d9de89aa297395da2c
[ "MIT" ]
null
null
null
setup.py
ShibalIbrahim/Additive-Models-with-Structured-Interactions
8f081ecb6b78546eada5d8d9de89aa297395da2c
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages setup(name='SparseGAMsWithInteractions', version='1.0', description='Generalized Additive Models with Interactions under L0 sparsity with/without Strong Hierarchy', author='Shibal Ibrahim', author_email='shibal.ibrahim@gmail.com'...
41.583333
127
0.452238
151
1,497
4.437086
0.543046
0.008955
0.059701
0
0
0
0
0
0
0
0
0.081292
0.400134
1,497
35
128
42.771429
0.664811
0.004676
0
0
0
0.030303
0.407283
0.065408
0
0
0
0
0
1
0
true
0
0.060606
0
0.060606
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
4f9b94cad7f6a53263f0a1ce3db0b9de1112cfa6
1,198
py
Python
src/E044.py
Jexan/ProjectEulerSolutions
1c71dcc2ac4ac09c6bef4b09137d7d4cd2ef2ecd
[ "MIT" ]
null
null
null
src/E044.py
Jexan/ProjectEulerSolutions
1c71dcc2ac4ac09c6bef4b09137d7d4cd2ef2ecd
[ "MIT" ]
null
null
null
src/E044.py
Jexan/ProjectEulerSolutions
1c71dcc2ac4ac09c6bef4b09137d7d4cd2ef2ecd
[ "MIT" ]
null
null
null
# Get the minimal |p_j - p_k| such that p_j, p_k, p_j+p_k + |p_j - p_k| are pentagonal # VERY SLOW (~20s) # # APPROACH: # Generate the pentagonal numbers, check their difference and keep track of the minimal diference. # Once p_(j+1) - p_j > minimal, break, since there will not be a lesser difference. from iterto...
25.489362
100
0.587646
177
1,198
3.841808
0.40678
0.017647
0.017647
0.023529
0.017647
0.017647
0.017647
0.017647
0
0
0
0.017305
0.324708
1,198
47
101
25.489362
0.823239
0.246244
0
0
1
0
0
0
0
0
0
0
0
1
0.096774
false
0
0.096774
0
0.258065
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
4f9bdd0890720ca22db690813551bbf3b64f9bce
6,542
py
Python
tests/unit/app/api/test_validators.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/app/api/test_validators.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/app/api/test_validators.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """tests for api.validators""" from mock import MagicMock from tests.unit import UnitTestCase from app.api.validators import DummyForm, DummyField, Base, password class DummyFormTestCase(UnitTestCase): def test_class(self): self.assertTrue(issubclass(DummyForm, dict)) class Du...
32.068627
100
0.681137
736
6,542
5.872283
0.171196
0.11106
0.083295
0.057844
0.561083
0.460435
0.417399
0.319297
0.231374
0.208237
0
0.007599
0.21553
6,542
203
101
32.226601
0.834567
0.007184
0
0.228346
0
0
0.072893
0
0
0
0
0
0.377953
1
0.11811
false
0.062992
0.086614
0
0.291339
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
4f9c5115eea9fc02185ce1389a6cd321cf213ed5
1,809
py
Python
Repositories/release-demos/0.84/demos/labelling.py
r14r/Streamlit_Working-with_Streamlit
5f79353c2b843564a0e11e3526c8f0dbc73779ea
[ "MIT" ]
null
null
null
Repositories/release-demos/0.84/demos/labelling.py
r14r/Streamlit_Working-with_Streamlit
5f79353c2b843564a0e11e3526c8f0dbc73779ea
[ "MIT" ]
null
null
null
Repositories/release-demos/0.84/demos/labelling.py
r14r/Streamlit_Working-with_Streamlit
5f79353c2b843564a0e11e3526c8f0dbc73779ea
[ "MIT" ]
null
null
null
import os import random import streamlit as st def show(): st.write( """ ## 🐾 Data Labelling This is one for all machine learning fans: Label some images and all of your annotations are preserved in `st.session_state`! """ ) script_path = os.path.dirnam...
29.655738
85
0.593698
228
1,809
4.526316
0.368421
0.156977
0.244186
0.110465
0.369186
0.205426
0.139535
0
0
0
0
0.011628
0.286899
1,809
60
86
30.15
0.784496
0
0
0.090909
0
0.022727
0.151797
0.021685
0
0
0
0
0
1
0.045455
false
0
0.068182
0
0.113636
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
4f9f1ca46f62c173119123f2554975b1a1e3dcf5
1,345
py
Python
tests/sync/test_impressions_count_synchronizer.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
13
2017-03-17T15:15:20.000Z
2022-03-14T22:24:10.000Z
tests/sync/test_impressions_count_synchronizer.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
81
2017-01-12T23:06:48.000Z
2022-02-21T18:20:23.000Z
tests/sync/test_impressions_count_synchronizer.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
14
2017-05-25T10:49:13.000Z
2021-12-27T16:39:20.000Z
"""Split Worker tests.""" import threading import time import pytest from splitio.api.client import HttpResponse from splitio.api import APIException from splitio.engine.impressions import Manager as ImpressionsManager from splitio.engine.impressions import Counter from splitio.sync.impression import ImpressionsCount...
35.394737
82
0.731599
142
1,345
6.802817
0.408451
0.068323
0.043478
0.057971
0.154244
0
0
0
0
0
0
0.029038
0.180669
1,345
37
83
36.351351
0.84755
0.045353
0
0
0
0
0.006284
0
0
0
0
0
0.115385
1
0.038462
false
0
0.346154
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
4fa2e3164deb423ccc635b4dea7d0f525283f4de
824
py
Python
eclcli/network/client.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
eclcli/network/client.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
eclcli/network/client.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
import logging from ecl import connection from eclcli.common import utils LOG = logging.getLogger(__name__) DEFAULT_API_VERSION = '2.0' API_VERSION_OPTION = 'os_network_api_version' API_NAME = "network" API_VERSIONS = { "2.0": "openstack.connection.Connection", "2": "openstack.connection.Connection", } d...
24.235294
57
0.68932
100
824
5.41
0.38
0.166359
0.18854
0.140481
0.081331
0
0
0
0
0
0
0.009077
0.197816
824
33
58
24.969697
0.80938
0.309466
0
0
0
0
0.174688
0.149733
0
0
0
0
0
1
0.117647
false
0
0.235294
0.058824
0.470588
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
4fa9c635c9ea452b2572b72859f25dec627504b3
6,134
py
Python
plugins/modules/tag.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/modules/tag.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/modules/tag.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: tag short_description: Manage Tag objects of Tag description: - Returns the Tags for given filter criteria. - Cre...
24.934959
107
0.650473
715
6,134
5.518881
0.257343
0.140649
0.041054
0.047897
0.383173
0.274962
0.20071
0.20071
0.17334
0.17334
0
0.004932
0.272742
6,134
245
108
25.036735
0.879623
0.026736
0
0.535088
0
0.013158
0.988602
0.046765
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
4fb05b300951c8e09d88672eacba8605f02038fc
968
py
Python
main.py
kste/aeshash
985ee3a8a3e9853580ac1ab745b446c82c97a095
[ "MIT" ]
5
2015-10-09T22:23:50.000Z
2021-02-21T22:10:38.000Z
main.py
kste/aeshash
985ee3a8a3e9853580ac1ab745b446c82c97a095
[ "MIT" ]
null
null
null
main.py
kste/aeshash
985ee3a8a3e9853580ac1ab745b446c82c97a095
[ "MIT" ]
null
null
null
''' Created on Jan 7, 2014 @author: Stefan Koelbl ''' from gost.gost import GOST from attacks import startinthemiddle import rebound import sys import os if __name__ == '__main__': sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) #Precomputations rebound.rebound.computeLinearStepList() rebound....
26.888889
72
0.650826
108
968
5.75
0.453704
0.101449
0.077295
0.048309
0.086957
0.086957
0.086957
0
0
0
0
0.019973
0.224174
968
36
73
26.888889
0.806924
0.015496
0
0
0
0
0.073415
0
0
0
0
0
0
0
null
null
0.043478
0.217391
null
null
0.173913
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
96c706f4adec5703c6e8fae91d41e7b1dc35868a
3,419
py
Python
dolo/numeric/grids.py
iworld1991/dolo
d70ccbe1254c8fc9a4fb8b0f7f2524140deebaf5
[ "BSD-2-Clause" ]
1
2018-12-27T05:32:04.000Z
2018-12-27T05:32:04.000Z
dolo/numeric/grids.py
iworld1991/dolo
d70ccbe1254c8fc9a4fb8b0f7f2524140deebaf5
[ "BSD-2-Clause" ]
null
null
null
dolo/numeric/grids.py
iworld1991/dolo
d70ccbe1254c8fc9a4fb8b0f7f2524140deebaf5
[ "BSD-2-Clause" ]
null
null
null
from functools import reduce from operator import mul from quantecon import cartesian import numpy as np from numpy import zeros def prod(l): return reduce(mul, l, 1.0) from dolo.numeric.misc import mlinspace class Grid: def nodes(self): return self.__nodes__ def n_nodes(self): return self...
23.417808
79
0.606318
489
3,419
4.05726
0.182004
0.040827
0.045363
0.027218
0.247984
0.204637
0.172379
0.145161
0.111895
0.111895
0
0.026909
0.260895
3,419
145
80
23.57931
0.758211
0.001755
0
0.201923
0
0
0.043096
0
0
0
0
0
0
1
0.182692
false
0
0.067308
0.125
0.480769
0.163462
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
96c830ab1ce5c05f278722621969f5b75354f1e8
7,261
py
Python
twistedcaldav/test/test_database.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
462
2016-08-14T17:43:24.000Z
2022-03-17T07:38:16.000Z
twistedcaldav/test/test_database.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
72
2016-09-01T23:19:35.000Z
2020-02-05T02:09:26.000Z
twistedcaldav/test/test_database.py
backwardn/ccs-calendarserver
13c706b985fb728b9aab42dc0fef85aae21921c3
[ "Apache-2.0" ]
171
2016-08-16T03:50:30.000Z
2022-03-26T11:49:55.000Z
## # Copyright (c) 2009-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
31.029915
111
0.584355
772
7,261
5.38601
0.242228
0.03367
0.030784
0.042328
0.469456
0.41847
0.408129
0.374699
0.304954
0.304954
0
0.00573
0.302989
7,261
233
112
31.16309
0.815847
0.083597
0
0.544776
0
0
0.091375
0
0
0
0
0
0.119403
0
null
null
0.029851
0.037313
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
96c83a587a128f4f60c750278f3f00d8dc7c8694
2,370
py
Python
main.py
rDhiaz/password-generator
a650ec2799a09a155a3b82cfd734098dbe9e153a
[ "CNRI-Python" ]
null
null
null
main.py
rDhiaz/password-generator
a650ec2799a09a155a3b82cfd734098dbe9e153a
[ "CNRI-Python" ]
null
null
null
main.py
rDhiaz/password-generator
a650ec2799a09a155a3b82cfd734098dbe9e153a
[ "CNRI-Python" ]
null
null
null
#Password Generator Project import random letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] numbers...
30
270
0.619409
351
2,370
4.088319
0.273504
0.043902
0.027875
0.022997
0.280139
0.24669
0.24669
0.200697
0.200697
0.154704
0
0.016717
0.167089
2,370
78
271
30.384615
0.710233
0.563713
0
0
0
0
0.229209
0
0
0
0
0
0
1
0
false
0.470588
0.058824
0
0.058824
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
0
0
0
1
0
0
0
0
0
1
96c8ddf27bc216070165f224a3325a68014a7947
434
py
Python
Dataset/Leetcode/valid/26/142.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/26/142.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/26/142.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, nums): """ :type nums: List[int] :rtype: int """ i =1 j =len(nums) while i<j : if nums[i]==nums[i-1]: #因为不能使用额外的空间,所以想到的是直接操作列表,pop或remove,亲测使用pop的效率更高 nums.pop(i) ...
21.7
65
0.403226
46
434
3.804348
0.543478
0.034286
0
0
0
0
0
0
0
0
0
0.017544
0.474654
434
19
66
22.842105
0.75
0.156682
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
96d54aed1dcad083154ce409611aa4be33b235a7
1,462
py
Python
tests/test_config.py
l4r-s/carbonate
6026200a97c4b017944dc4e80e35ff88fc6d0a79
[ "MIT" ]
null
null
null
tests/test_config.py
l4r-s/carbonate
6026200a97c4b017944dc4e80e35ff88fc6d0a79
[ "MIT" ]
1
2019-04-26T10:07:02.000Z
2019-04-26T10:07:02.000Z
tests/test_config.py
l4r-s/carbonate
6026200a97c4b017944dc4e80e35ff88fc6d0a79
[ "MIT" ]
1
2019-03-11T15:36:07.000Z
2019-03-11T15:36:07.000Z
import os import pwd import unittest from carbonate import config class ConfigTest(unittest.TestCase): simple_config = "tests/conf/simple.conf" real_config = "tests/conf/realistic.conf" def test_config_replication_factor(self): c = config.Config(self.simple_config) self.assertEqual(c.r...
27.584906
60
0.673735
187
1,462
5.058824
0.245989
0.084567
0.096195
0.125793
0.540169
0.491543
0.303383
0.268499
0.10148
0
0
0.017241
0.206566
1,462
52
61
28.115385
0.798276
0
0
0.205882
0
0
0.089603
0.032148
0
0
0
0
0.205882
1
0.205882
false
0
0.117647
0
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
96e3d546bf341422b82b8a02ba37981043b6d926
4,611
py
Python
scu.py
petertimperman/virtualscu
54161905516ad5bc965d064c5c09df6879397abe
[ "MIT" ]
null
null
null
scu.py
petertimperman/virtualscu
54161905516ad5bc965d064c5c09df6879397abe
[ "MIT" ]
null
null
null
scu.py
petertimperman/virtualscu
54161905516ad5bc965d064c5c09df6879397abe
[ "MIT" ]
null
null
null
from enum import Enum import time import serial from threading class Status(Enum): STOPPED = 'S' JOGGINGFORWARD ='F' JOGGINGREVERSE= 'R' PAUSED = 'P' ERROR = 'E' class ProtcolMessage(Enum): ENQ = chr(133) # <ENQ> in acsii + 128 NULL = chr(128) # <Null>: 0 + 128 ACK = chr(134) # 6 + 128 CR = ...
28.81875
130
0.675992
620
4,611
4.890323
0.240323
0.046174
0.063325
0.060686
0.379288
0.306069
0.263193
0.238127
0.184697
0.184697
0
0.02168
0.19974
4,611
159
131
29
0.8
0.030145
0
0.223776
0
0
0.032728
0
0
0
0
0
0
0
null
null
0
0.020979
null
null
0.034965
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
96e436c6df5efaa6fe44b3101eeb03a680194499
8,154
py
Python
rrtcmp/lqr_rrt.py
Tastalian/avp-rrt-rss-2013
d3d9b50bb582c23a4ee83408b26bcede4d84469e
[ "Apache-2.0" ]
2
2018-08-21T15:25:58.000Z
2019-03-24T02:52:47.000Z
rrtcmp/lqr_rrt.py
Tastalian/avp-rrt-rss-2013
d3d9b50bb582c23a4ee83408b26bcede4d84469e
[ "Apache-2.0" ]
null
null
null
rrtcmp/lqr_rrt.py
Tastalian/avp-rrt-rss-2013
d3d9b50bb582c23a4ee83408b26bcede4d84469e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Stephane Caron <stephane.caron@normalesup.org> # # 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...
34.405063
81
0.557886
1,116
8,154
3.923835
0.233871
0.020781
0.006394
0.010276
0.15209
0.110071
0.084494
0.072163
0.043846
0.043846
0
0.016962
0.334805
8,154
236
82
34.550847
0.790376
0.12546
0
0.104396
0
0
0.042517
0
0
0
0
0.004237
0.021978
0
null
null
0
0.043956
null
null
0.126374
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
96e569dba42af1d3c08859fc4eb356a20790332b
504
py
Python
demo/Mesh1D_demo.py
bond-anton/BDMesh
e72f1ec96828c41274b82ba67fd06b44fa8b511d
[ "Apache-2.0" ]
null
null
null
demo/Mesh1D_demo.py
bond-anton/BDMesh
e72f1ec96828c41274b82ba67fd06b44fa8b511d
[ "Apache-2.0" ]
7
2017-07-21T21:42:55.000Z
2017-08-02T10:14:19.000Z
demo/Mesh1D_demo.py
bond-anton/BDMesh
e72f1ec96828c41274b82ba67fd06b44fa8b511d
[ "Apache-2.0" ]
null
null
null
import numpy as np from BDMesh.Mesh1D import Mesh1D MyMesh = Mesh1D(0.0, 10.0, 0.0, 0.0) print(MyMesh) print(MyMesh.physical_boundary_1) MyMesh.physical_boundary_1 = 2 print(MyMesh.physical_boundary_1) MyMesh2 = Mesh1D(2.0, 10.0, 0.0, 0.0) print(MyMesh) print(MyMesh2) print(MyMesh == MyMesh2) print(MyMesh == 2) ...
19.384615
83
0.755952
87
504
4.264368
0.287356
0.053908
0.048518
0.043127
0.266846
0.12938
0.12938
0.12938
0.12938
0.12938
0
0.084257
0.105159
504
25
84
20.16
0.738359
0
0
0.352941
0
0
0
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.647059
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
96e62e8150e33c4dbbeea41a05b1e8b228e052c4
327
py
Python
rcs_back/takeouts_app/apps.py
e-kondr01/rcs_back
f0f224d01f7051cce9d5feef692216d48cba6f31
[ "MIT" ]
null
null
null
rcs_back/takeouts_app/apps.py
e-kondr01/rcs_back
f0f224d01f7051cce9d5feef692216d48cba6f31
[ "MIT" ]
null
null
null
rcs_back/takeouts_app/apps.py
e-kondr01/rcs_back
f0f224d01f7051cce9d5feef692216d48cba6f31
[ "MIT" ]
1
2021-09-25T19:18:55.000Z
2021-09-25T19:18:55.000Z
from django.apps import AppConfig class TakeoutsAppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'rcs_back.takeouts_app' verbose_name = "Сборы" def ready(self): # pylint: disable=import-outside-toplevel,unused-import from rcs_back.takeouts_app import s...
27.25
63
0.733945
40
327
5.825
0.725
0.060086
0.128755
0.154506
0
0
0
0
0
0
0
0
0.180428
327
11
64
29.727273
0.869403
0.16208
0
0
0
0
0.202206
0.183824
0
0
0
0
0
1
0.142857
false
0
0.285714
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
96f0d739fa61e9d304f7b7abb469dea944a9a070
2,320
py
Python
stock_indicators/indicators/fcb.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
13
2021-11-09T13:16:31.000Z
2022-03-28T00:30:30.000Z
stock_indicators/indicators/fcb.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
162
2021-11-03T15:57:17.000Z
2022-03-30T15:32:20.000Z
stock_indicators/indicators/fcb.py
LeeDongGeon1996/Stock.Indicators.Python
b706d00279a8ab5f2794417ddef1bf45e1c48587
[ "Apache-2.0" ]
5
2021-11-04T13:35:05.000Z
2022-01-06T10:27:38.000Z
from decimal import Decimal from typing import Iterable, Optional, TypeVar from stock_indicators._cslib import CsIndicator from stock_indicators._cstypes import List as CsList from stock_indicators._cstypes import Decimal as CsDecimal from stock_indicators._cstypes import to_pydecimal from stock_indicators.indicators....
34.117647
105
0.72931
284
2,320
5.848592
0.390845
0.081276
0.080072
0.04696
0.298013
0.149308
0.114389
0.060205
0.060205
0
0
0.001065
0.190517
2,320
67
106
34.626866
0.883387
0.40819
0
0.074074
0
0
0.001577
0
0
0
0
0
0
1
0.185185
false
0
0.333333
0.074074
0.703704
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
96f46150a0cabfc1423e640be8b69ad32e86915a
963
py
Python
purgeSlack.py
datamachines/slackPurge
9439977fb316c31da847835a3b8911a8cac235cb
[ "Apache-2.0" ]
null
null
null
purgeSlack.py
datamachines/slackPurge
9439977fb316c31da847835a3b8911a8cac235cb
[ "Apache-2.0" ]
null
null
null
purgeSlack.py
datamachines/slackPurge
9439977fb316c31da847835a3b8911a8cac235cb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import requests import json from datetime import datetime, timedelta import time days_old = 7 cutoffDate = datetime.now() - timedelta(days=days_old) cutoffEpoch = int(cutoffDate.strftime('%s')) token = os.environ['SLACK_TOKEN'] payload = { 'token': token, 'count': 99999 } url = 'https://s...
30.09375
58
0.672897
125
963
5.16
0.488
0.037209
0.04031
0.049612
0.226357
0.16124
0.086822
0
0
0
0
0.010178
0.183801
963
31
59
31.064516
0.810433
0.090343
0
0
0
0
0.147766
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.12
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
96f6425dee8a59ff195a2c71f1b6dcf41c694e43
817
py
Python
homework2.py
zhaoxiaohuijia/spyder1
d3de7e793fd58236ab7789010ff59692acafcd24
[ "Apache-2.0" ]
null
null
null
homework2.py
zhaoxiaohuijia/spyder1
d3de7e793fd58236ab7789010ff59692acafcd24
[ "Apache-2.0" ]
null
null
null
homework2.py
zhaoxiaohuijia/spyder1
d3de7e793fd58236ab7789010ff59692acafcd24
[ "Apache-2.0" ]
null
null
null
import urllib.request url ='https://www.17k.com/chapter/2933095/36699279.html' headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' } request = urllib.request.Request(url=url,headers=headers) response = urllib.request.u...
26.354839
136
0.685435
120
817
4.658333
0.575
0.139535
0.067979
0
0
0
0
0
0
0
0
0.114894
0.137087
817
31
137
26.354839
0.678014
0
0
0.083333
0
0.041667
0.338832
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.208333
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
8c020dcca50fb84ab0e314f5cc1d027b420a7f98
3,582
py
Python
scrape.py
jayrav13/njit-course-scraper
649e948d7821e5f6023ba4d82b72e3b768d6d89e
[ "MIT" ]
3
2015-10-24T05:56:31.000Z
2016-02-04T23:07:26.000Z
scrape.py
jayrav13/njit-course-scraper
649e948d7821e5f6023ba4d82b72e3b768d6d89e
[ "MIT" ]
null
null
null
scrape.py
jayrav13/njit-course-scraper
649e948d7821e5f6023ba4d82b72e3b768d6d89e
[ "MIT" ]
null
null
null
# imports from lxml import html import requests import mysql.connector import time # database setup my_host = "localhost" my_username = "root" my_password = "" my_database = "njit" # establish MySQL connection cnx = mysql.connector.connect(user=my_username, password=my_password,host=my_host,database=my_database) curs...
33.476636
232
0.705472
550
3,582
4.550909
0.354545
0.012785
0.017978
0.022373
0.109868
0.096284
0.069117
0.069117
0.053136
0.053136
0
0.005728
0.171413
3,582
106
233
33.792453
0.837601
0.397543
0
0.115385
0
0.019231
0.231203
0
0
0
0
0
0
0
null
null
0.038462
0.076923
null
null
0.057692
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
8c057e6ef3994ee4a098b5002962b88fe108549a
55,655
py
Python
atlas/prodsys2/deft/deft_handling.py
kiae-grid/panda-bigmon-atlas
babb883430de489e68c774bafe6c5f44f99d9a2d
[ "Apache-2.0" ]
null
null
null
atlas/prodsys2/deft/deft_handling.py
kiae-grid/panda-bigmon-atlas
babb883430de489e68c774bafe6c5f44f99d9a2d
[ "Apache-2.0" ]
null
null
null
atlas/prodsys2/deft/deft_handling.py
kiae-grid/panda-bigmon-atlas
babb883430de489e68c774bafe6c5f44f99d9a2d
[ "Apache-2.0" ]
null
null
null
# A.Klimentov Mar 3, 2014 # # DEFT tasks handling # # Mar 15, 2014. Add json # Mar 19, 2014. Add JEDI Client.py # Mar 20, 2014. Dataset tables synchronization # Ignore tasks and datasets with ID < 4 000 000 # Mar 24, 2014. Requests state update vs Task state # Mar 31, 2014. Add taskinfo into task partit...
38.30351
128
0.590729
7,241
55,655
4.319983
0.085209
0.004603
0.016112
0.015824
0.4512
0.387104
0.344235
0.30258
0.276078
0.251686
0
0.013818
0.288743
55,655
1,452
129
38.32989
0.776405
0.072967
0
0.363244
0
0.001726
0.241894
0.03508
0
0
0
0
0
0
null
null
0.006903
0.017256
null
null
0.099223
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
8c099e6c7ee65f1738940af89f20b016a3b61f86
5,864
py
Python
qubell/api/private/platform.py
chemikadze/contrib-python-qubell-client
6f0d5a371b63c3993274edd478b894c1d873a7b1
[ "Apache-2.0" ]
null
null
null
qubell/api/private/platform.py
chemikadze/contrib-python-qubell-client
6f0d5a371b63c3993274edd478b894c1d873a7b1
[ "Apache-2.0" ]
null
null
null
qubell/api/private/platform.py
chemikadze/contrib-python-qubell-client
6f0d5a371b63c3993274edd478b894c1d873a7b1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Qubell Inc., http://qubell.com # # 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 agr...
37.832258
115
0.665928
695
5,864
5.505036
0.300719
0.026137
0.020387
0.02091
0.176424
0.132514
0.102457
0.08207
0.060115
0.060115
0
0.004057
0.243349
5,864
154
116
38.077922
0.858238
0.325546
0
0.066667
0
0
0.081724
0.006157
0
0
0
0
0.066667
1
0.173333
false
0.08
0.106667
0.013333
0.466667
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
8c0aea0db6b29087a67468d1a3c19a24cb3ac378
401
py
Python
ThumkiStores/migrations/0002_auto_20210501_1411.py
Ashwin-Dev-P/Thumki-Final-Hosting
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
1
2022-01-09T10:23:22.000Z
2022-01-09T10:23:22.000Z
ThumkiStores/migrations/0002_auto_20210501_1411.py
Ashwin-Dev-P/dev-stores
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
null
null
null
ThumkiStores/migrations/0002_auto_20210501_1411.py
Ashwin-Dev-P/dev-stores
fcfe40000b688d419513831ece5400cb32caaa69
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-05-01 08:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ThumkiStores', '0001_initial'), ] operations = [ migrations.AlterField( model_name='dress', name='img', ...
21.105263
75
0.600998
43
401
5.534884
0.860465
0
0
0
0
0
0
0
0
0
0
0.065517
0.276808
401
18
76
22.277778
0.755172
0.112219
0
0
1
0
0.161017
0.070621
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c0e81cd17b6728cda90fe896603a020ffd699d9
677
py
Python
dns_sprockets_lib/validators/nsec3param_origin.py
roeckelein/sprocket
8e7f9acf4d330d7b1005ba7a2ae8b644571f11fb
[ "Apache-2.0" ]
7
2015-09-11T04:08:12.000Z
2021-01-04T21:47:30.000Z
dns_sprockets_lib/validators/nsec3param_origin.py
roeckelein/sprocket
8e7f9acf4d330d7b1005ba7a2ae8b644571f11fb
[ "Apache-2.0" ]
null
null
null
dns_sprockets_lib/validators/nsec3param_origin.py
roeckelein/sprocket
8e7f9acf4d330d7b1005ba7a2ae8b644571f11fb
[ "Apache-2.0" ]
null
null
null
''' nsec3param_origin - Zone test: Nsec3paramOrigin .. Copyright (c) 2015 Neustar, Inc. All rights reserved. .. See COPYRIGHT.txt for full notice. See LICENSE.txt for terms and conditions. ''' import dns_sprockets_lib.validators as validators class Nsec3paramOrigin(validators.ZoneTest): # pylint: disable=too-...
25.074074
80
0.698671
83
677
5.614458
0.722892
0.025751
0.090129
0
0
0
0
0
0
0
0
0.022556
0.21418
677
26
81
26.038462
0.853383
0.443131
0
0
0
0
0.101983
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
8c13b308a82cc506e5b98738c97c1cba256053d6
509
py
Python
mps/__init__.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
2
2015-10-08T22:06:18.000Z
2017-04-30T18:03:41.000Z
mps/__init__.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
null
null
null
mps/__init__.py
Smarties89/mps
c3885329ea9ea52c1d60559658df55ba01b3b612
[ "MIT" ]
null
null
null
from .randstr import randstr from .hdcache import hdcache from .days import all_days, work_days from .eprint import eprint from .deco_logger import deco_logger from .mwt import MemoizeWithTimeout from .errorrecoveryfile import ErrorRecoveryFile from .simplecache import SimpleCache from .of_enumerate import of_enumerat...
23.136364
49
0.748527
57
509
6.438596
0.280702
0.081744
0.059946
0.081744
0
0
0
0
0
0
0
0
0.172888
509
21
50
24.238095
0.871734
0
0
0
0
0
0.196464
0
0
0
0
0
0
1
0
false
0
0.45
0
0.45
0.05
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
8c15f5de3b08dc61506d7c464f6c65155201458b
8,926
py
Python
bin/ufits-OTU_cluster.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
1
2020-05-28T06:47:07.000Z
2020-05-28T06:47:07.000Z
bin/ufits-OTU_cluster.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
null
null
null
bin/ufits-OTU_cluster.py
zhongmicai/ITS_clustering
0177f3fba2570fa18b2aecdfb9737fb18f222ebf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #This script runs USEARCH OTU clustering #written by Jon Palmer nextgenusfs@gmail.com import sys, os, argparse, inspect, shutil currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) import lib.u...
46.248705
163
0.684293
1,265
8,926
4.716206
0.24664
0.027154
0.037714
0.023969
0.259135
0.238686
0.190412
0.173148
0.15756
0.089004
0
0.00864
0.13119
8,926
192
164
46.489583
0.760671
0.099821
0
0.167832
0
0.013986
0.292135
0.035955
0
0
0
0
0
0
null
null
0.027972
0.013986
null
null
0.083916
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
8c24b52f5ad4352218d856750654140314653b51
385
py
Python
src/fastapi_redis_cache/enums.py
HakierGrzonzo/fastapi-redis-cache
1f308bdb8ca18ad59ef2637cf0b00c2d0d331f60
[ "MIT" ]
60
2021-04-25T11:55:10.000Z
2022-03-24T10:03:58.000Z
src/fastapi_redis_cache/enums.py
HakierGrzonzo/fastapi-redis-cache
1f308bdb8ca18ad59ef2637cf0b00c2d0d331f60
[ "MIT" ]
28
2021-04-23T09:27:15.000Z
2022-03-24T18:44:39.000Z
src/fastapi_redis_cache/enums.py
HakierGrzonzo/fastapi-redis-cache
1f308bdb8ca18ad59ef2637cf0b00c2d0d331f60
[ "MIT" ]
7
2021-07-16T19:23:20.000Z
2022-03-30T01:42:48.000Z
from enum import IntEnum class RedisStatus(IntEnum): """Connection status for the redis client.""" NONE = 0 CONNECTED = 1 AUTH_ERROR = 2 CONN_ERROR = 3 class RedisEvent(IntEnum): """Redis client events.""" CONNECT_BEGIN = 1 CONNECT_SUCCESS = 2 CONNECT_FAIL = 3 KEY_ADDED_TO_...
17.5
49
0.65974
53
385
4.528302
0.698113
0.091667
0
0
0
0
0
0
0
0
0
0.035211
0.262338
385
21
50
18.333333
0.809859
0.155844
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
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
8c29acd0c8298f846f7359529a17cdb87f6bb660
4,311
py
Python
main.py
mdarty/antenna
bbfa8d974fa7e9ac62abe9ca8fc9c4a53a7d0466
[ "MIT" ]
null
null
null
main.py
mdarty/antenna
bbfa8d974fa7e9ac62abe9ca8fc9c4a53a7d0466
[ "MIT" ]
null
null
null
main.py
mdarty/antenna
bbfa8d974fa7e9ac62abe9ca8fc9c4a53a7d0466
[ "MIT" ]
null
null
null
#!/usr/bin/python print('importing modules') import random import math import numpy import os import sys from time import sleep from argparse import ArgumentParser from scipy.optimize import fmin_l_bfgs_b as minimize from PyNEC import * import multiprocessing as mp from Queue import Empty import matplotlib as mpl mpl.u...
28.361842
208
0.646254
707
4,311
3.876945
0.241867
0.029551
0.032835
0.035024
0.224371
0.132069
0.115286
0.072236
0.072236
0.072236
0
0.038162
0.167247
4,311
151
209
28.549669
0.725348
0.205521
0
0.018018
0
0
0.058027
0
0
0
0
0
0
0
null
null
0.009009
0.135135
null
null
0.108108
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
8c2bf79afeb4c9bb293561c101942511df3553b6
22,262
py
Python
exostriker/lib/act.py
JonasKemmer/exostriker
f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f
[ "MIT" ]
1
2021-05-31T06:43:22.000Z
2021-05-31T06:43:22.000Z
exostriker/lib/act.py
sai-33/Exostriker
f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f
[ "MIT" ]
null
null
null
exostriker/lib/act.py
sai-33/Exostriker
f59fa51c6bdce3a2ed51d6621fe42bfcd8c2846f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'act.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, Q...
48.186147
124
0.683182
2,726
22,262
5.388481
0.085106
0.055279
0.076724
0.090067
0.514262
0.325277
0.225475
0.20866
0.19484
0.17462
0
0.027149
0.202498
22,262
461
125
48.290672
0.800214
0.012038
0
0.202247
1
0
0.0569
0.003184
0
0
0
0
0
1
0.004494
false
0
0.006742
0
0.013483
0.011236
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
8c3218e706b228f020e3f9276d3b8e31247e921b
559
py
Python
Python3-GUI/QuickStart-wxPython/wxPython_02_App.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-GUI/QuickStart-wxPython/wxPython_02_App.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
Python3-GUI/QuickStart-wxPython/wxPython_02_App.py
anliven/Reading-Code-Learning-Python
a814cab207bbaad6b5c69b9feeb8bf2f459baf2b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import wx class MyFrame(wx.Frame): # 继承wx.Frame类 pass class MyApp(wx.App): # 继承wx.App类 def OnInit(self): # 重写方法 frame = MyFrame(parent=None, id=-1, title="App Demo") # 生成框架窗口 frame.Show() # 显示框架窗口 return True if __name__ == "__main__": ...
19.275862
72
0.57424
71
559
4.408451
0.605634
0.044728
0.108626
0.127796
0.140575
0
0
0
0
0
0
0.004808
0.255814
559
28
73
19.964286
0.747596
0.397138
0
0
0
0
0.056537
0
0
0
0
0
0
1
0.090909
false
0.090909
0.090909
0
0.454545
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
8c3925b5d350de4521817d45dfbe88fc9207433d
10,205
py
Python
Python/multi-callee.py
Ultimatetinycellstuan/soup
178bec386bf152bfcd1c407720703440faa8f173
[ "MIT" ]
null
null
null
Python/multi-callee.py
Ultimatetinycellstuan/soup
178bec386bf152bfcd1c407720703440faa8f173
[ "MIT" ]
null
null
null
Python/multi-callee.py
Ultimatetinycellstuan/soup
178bec386bf152bfcd1c407720703440faa8f173
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Author: Jesse Morgan (morgajel) # Created to emulate code by Justin Faler # Mutified by Cfomodz - Note on this: I adapted this code to my own personal needs. """ This wont be for everyone, but it does open up the possibilities for diferent implementations of Soup. Further note: I am still a...
42.169421
144
0.659579
1,527
10,205
4.298625
0.258022
0.012797
0.013711
0.017063
0.162706
0.137416
0.120506
0.080286
0.066118
0.026051
0
0.020619
0.220578
10,205
241
145
42.344398
0.804627
0
0
0.213333
0
0.013333
0.257858
0.010123
0
0
0
0
0
0
null
null
0
0.02
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
8c3d2226317bd215b8c9d127bba7de481ad37f1c
3,836
py
Python
scripts/ex3-fred-lisp-dilemma.py
ronojoy/pylearn
5fb6777db5893decab98abe1aff6d853a2f4f3ce
[ "MIT" ]
82
2015-05-09T11:12:45.000Z
2021-11-16T11:49:50.000Z
scripts/ex3-fred-lisp-dilemma.py
ronojoy/pylearn
5fb6777db5893decab98abe1aff6d853a2f4f3ce
[ "MIT" ]
2
2015-05-26T22:03:31.000Z
2015-06-10T15:22:35.000Z
scripts/ex3-fred-lisp-dilemma.py
ronojoy/pylearn
5fb6777db5893decab98abe1aff6d853a2f4f3ce
[ "MIT" ]
34
2015-05-09T08:51:29.000Z
2021-04-02T16:22:54.000Z
#This script implements a Bayesian network for Fred's Lisp Dilemma from # Korb and Nicholson's Bayesian Artifician Intelligence. # The problem statement is as follows: # Fred is debugging a LISP program. He just typed an expression to the LISP # interpreter and now it will not respond to any further typing. He can...
39.958333
172
0.681439
580
3,836
4.487931
0.355172
0.005378
0.006147
0.00461
0.148675
0.117557
0.117557
0.117557
0.117557
0.087591
0
0.021463
0.198384
3,836
95
173
40.378947
0.825041
0.547185
0
0.232558
0
0
0.098707
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.046512
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
8c406a55b86c7a51cca59cb7b8754b21b5b80c8a
1,610
py
Python
RecoEcal/EgammaClusterProducers/python/multi5x5SuperClustersWithPreshower_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEcal/EgammaClusterProducers/python/multi5x5SuperClustersWithPreshower_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEcal/EgammaClusterProducers/python/multi5x5SuperClustersWithPreshower_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Preshower cluster producer multi5x5SuperClustersWithPreshower = cms.EDProducer("PreshowerPhiClusterProducer", esStripEnergyCut = cms.double(0.0), esPhiClusterDeltaEta = cm...
67.083333
144
0.456522
66
1,610
11.136364
0.606061
0.04898
0.054422
0.029932
0
0
0
0
0
0
0
0.029304
0.491304
1,610
23
145
70
0.868132
0.050932
0
0
0
0
0.133202
0.088583
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c459da3033a00e2940f822179e39df27daad21f
3,390
py
Python
crossword/tests/test_puzzle_replace_grid.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
1
2020-06-30T06:22:31.000Z
2020-06-30T06:22:31.000Z
crossword/tests/test_puzzle_replace_grid.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
145
2020-06-02T17:33:18.000Z
2020-08-25T03:25:40.000Z
crossword/tests/test_puzzle_replace_grid.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
null
null
null
from unittest import TestCase from crossword import Grid, Puzzle, NumberedCell, Word from crossword.tests import TestPuzzle class TestPuzzleReplaceGrid(TestCase): def test_wrong_size(self): puzzle = TestPuzzle.create_solved_atlantic_puzzle() grid = Grid(5) with self.assertRaises(ValueErr...
38.965517
69
0.543953
518
3,390
3.482625
0.19112
0.216186
0.018293
0.094235
0.395233
0.334812
0.179047
0.081486
0
0
0
0.066247
0.29646
3,390
86
70
39.418605
0.690147
0.016519
0
0.055556
0
0
0.042042
0
0
0
0
0
0.097222
1
0.041667
false
0
0.055556
0
0.111111
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
8c4631ba60f45dae0e46741b63112ba073580538
1,358
py
Python
examples/Kane1985/Chapter2/Ex2.7.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
1
2019-06-27T05:30:36.000Z
2019-06-27T05:30:36.000Z
examples/Kane1985/Chapter2/Ex2.7.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
null
null
null
examples/Kane1985/Chapter2/Ex2.7.py
nouiz/pydy
20c8ca9fc521208ae2144b5b453c14ed4a22a0ec
[ "BSD-3-Clause" ]
1
2016-10-02T13:43:48.000Z
2016-10-02T13:43:48.000Z
#!/usr/bin/env python """Exercise 2.7 from Kane 1985""" from sympy.physics.mechanics import ReferenceFrame, dynamicsymbols, mprint from sympy import solve, pi q1, q2, q3, q4, q5 = dynamicsymbols('q1 q2 q3 q4 q5') q1d, q2d, q3d, q4d, q5d = dynamicsymbols('q1 q2 q3 q4 q5', level=1) ux, uy, uz = dynamicsymbols('ux uy u...
29.521739
74
0.678203
255
1,358
3.415686
0.294118
0.041332
0.041332
0.051665
0.556831
0.495982
0.440873
0.440873
0.367394
0.367394
0
0.053982
0.167894
1,358
45
75
30.177778
0.716814
0.130339
0
0.451613
0
0
0.129804
0
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.419355
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
8c52d49b9eba216fc4b355a70875bfb53e412cb8
2,012
py
Python
12.py
mguenther/advent-of-code-2021
3d01e8c990444b233027ad3533e1434a75e38812
[ "Apache-2.0" ]
null
null
null
12.py
mguenther/advent-of-code-2021
3d01e8c990444b233027ad3533e1434a75e38812
[ "Apache-2.0" ]
null
null
null
12.py
mguenther/advent-of-code-2021
3d01e8c990444b233027ad3533e1434a75e38812
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, deque from typing import Dict, List def to_adjacency_list(filename: str = '12.in') -> Dict[str, List[str]]: E = defaultdict(list) connections = [connection.strip().split('-') for connection in open('12.in', 'r')] for (l, r) in connections: E[l].append(r) ...
36.581818
118
0.647117
262
2,012
4.652672
0.221374
0.137818
0.195242
0.123052
0.677605
0.607055
0.581624
0.528302
0.528302
0.461034
0
0.005309
0.250994
2,012
55
119
36.581818
0.803583
0
0
0.488889
0
0
0.022851
0
0
0
0
0
0
1
0.088889
false
0
0.044444
0.022222
0.222222
0.044444
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
8c5863e1337c11e7119ece87b077d85abb6a2f7e
1,544
py
Python
python_modules/libraries/dagstermill/dagstermill_tests/test_serialization.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
python_modules/libraries/dagstermill/dagstermill_tests/test_serialization.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
python_modules/libraries/dagstermill/dagstermill_tests/test_serialization.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
import pytest from dagster import Any, String, usable_as_dagster_type from dagster.check import CheckError from dagster.core.types.dagster_type import resolve_dagster_type from dagster.utils import safe_tempfile_path from dagstermill.serialize import read_value, write_value def test_scalar(): with safe_tempfile_p...
28.592593
80
0.632124
180
1,544
5.077778
0.261111
0.156455
0.177243
0.201313
0.513129
0.387309
0.384026
0.384026
0.384026
0.384026
0
0.003581
0.276554
1,544
53
81
29.132075
0.814682
0
0
0.302326
0
0
0.042098
0
0
0
0
0
0.093023
1
0.116279
false
0
0.139535
0
0.27907
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
8c58a3d7431f0a3e7c197e3d8c1cf368284f233b
4,298
py
Python
simple_account/account/tests.py
kingramx/simple_django_account_app
c306466860af0821fffb625bc39a149db6dedd1b
[ "MIT" ]
1
2020-12-09T11:01:00.000Z
2020-12-09T11:01:00.000Z
simple_account/account/tests.py
kingramx/simple_django_account_app
c306466860af0821fffb625bc39a149db6dedd1b
[ "MIT" ]
null
null
null
simple_account/account/tests.py
kingramx/simple_django_account_app
c306466860af0821fffb625bc39a149db6dedd1b
[ "MIT" ]
null
null
null
from django.test import TestCase from .views import register_view, login_view, logout_view from django.urls import resolve from django.http import HttpRequest from django.contrib.auth.models import User class UserRegisterTest(TestCase): def setUp(self) -> None: # SetUp group of information FIRST s...
42.137255
114
0.69637
512
4,298
5.556641
0.173828
0.067487
0.061863
0.036907
0.685062
0.56696
0.394376
0.394376
0.358524
0.330404
0
0.012023
0.206608
4,298
101
115
42.554455
0.822287
0.067241
0
0.325
0
0
0.13925
0.056
0
0
0
0
0.2125
1
0.1375
false
0.1375
0.0625
0
0.225
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
8c5a332ad9b6e14fe0ad721210e038e30356f321
512
py
Python
airdashladder/users/migrations/0002_customuser_game.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
airdashladder/users/migrations/0002_customuser_game.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
airdashladder/users/migrations/0002_customuser_game.py
prki/airdash-ladder
87de9e1176bf792a0f2101bf2a5ad5b2e4a86ec2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-11 18:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('matchmaking', '0001_initial'), ('users', '0001_initial'), ] operations = [ migrations.AddField( ...
24.380952
115
0.626953
57
512
5.561404
0.649123
0.07571
0.088328
0.138801
0
0
0
0
0
0
0
0.059432
0.244141
512
20
116
25.6
0.75969
0.087891
0
0
1
0
0.150538
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
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
8c5a8ca3f62a2146ab618dab34fe4b96b87a09c2
252
py
Python
yatube/posts/utils.py
loverfish/yatube
199e846e118515e193138d6e435d46b545a81619
[ "BSD-3-Clause" ]
null
null
null
yatube/posts/utils.py
loverfish/yatube
199e846e118515e193138d6e435d46b545a81619
[ "BSD-3-Clause" ]
null
null
null
yatube/posts/utils.py
loverfish/yatube
199e846e118515e193138d6e435d46b545a81619
[ "BSD-3-Clause" ]
null
null
null
from django.core.paginator import Paginator def post_paginator(request, post_list, count=10): paginator = Paginator(post_list, count) page_number = request.GET.get('page') page = paginator.get_page(page_number) return page, paginator
28
49
0.75
34
252
5.382353
0.441176
0.087432
0.142077
0
0
0
0
0
0
0
0
0.00939
0.154762
252
8
50
31.5
0.849765
0
0
0
0
0
0.015873
0
0
0
0
0
0
1
0.166667
false
0
0.166667
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
8c5b02a22732823e1085967db2cb2f600f52316f
1,555
py
Python
tools/generateData_test.py
Hemankita/refarch-kc-container-ms
c2e85eacabe8a194782835b04f3410c2d7956a9b
[ "Apache-2.0" ]
null
null
null
tools/generateData_test.py
Hemankita/refarch-kc-container-ms
c2e85eacabe8a194782835b04f3410c2d7956a9b
[ "Apache-2.0" ]
null
null
null
tools/generateData_test.py
Hemankita/refarch-kc-container-ms
c2e85eacabe8a194782835b04f3410c2d7956a9b
[ "Apache-2.0" ]
null
null
null
import csv import json from random import gauss import random import datetime import numpy as np containerData = [] def buildJSON(csvfile): with open(csvfile) as csvfile: dataReader = csv.DictReader(csvfile) for row in dataReader: x = json.dumps(row) containerData.append(x) ...
36.162791
189
0.661736
229
1,555
4.41048
0.384279
0.048515
0.031683
0.035644
0.281188
0.19604
0.118812
0.118812
0.118812
0.118812
0
0.066303
0.175563
1,555
42
190
37.02381
0.721529
0.011576
0
0.064516
0
0
0.156454
0.091265
0
0
0
0
0
0
null
null
0
0.193548
null
null
0.032258
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
8c5b59c7eb917946959ac04920ea7bdbbf7099a8
1,797
py
Python
bage_utils/ssh_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
60
2017-04-26T04:43:45.000Z
2021-11-08T13:01:11.000Z
bage_utils/ssh_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
null
null
null
bage_utils/ssh_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
17
2017-05-21T17:27:20.000Z
2021-01-16T22:35:44.000Z
import traceback import warnings import paramiko warnings.filterwarnings("ignore") class SshUtil(object): """ - Connect remote by SSH and run specific command. - See also `bage_util.SellUtil` """ def __init__(self, hostname, username=None, password=None, port=22, log=None): self.client ...
28.983871
102
0.567613
198
1,797
4.944444
0.414141
0.102145
0.018386
0.026558
0.243105
0.243105
0.243105
0.243105
0.243105
0.243105
0
0.002477
0.326099
1,797
61
103
29.459016
0.805946
0.194769
0
0.3
0
0
0.017569
0
0
0
0
0
0
1
0.125
false
0.075
0.1
0
0.275
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
8c5d973f7d9c4dc4175b419802410a93a609ceb9
2,861
py
Python
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
2
2020-12-30T15:26:10.000Z
2021-04-21T15:37:45.000Z
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
null
null
null
hsv_tool.py
Forkxz/Running-Robot
b2bb25f15423762bc06a6483f0ee1ecae4e93813
[ "MIT" ]
null
null
null
import cv2 as cv class Hsv_change: #hsv 调试 def __init__(self): self.i1 = 0 self.i2 = 0 self.i3 = 0 self.i4 = 0 self.i5 = 0 self.i6 = 0 pass def onChange(self,a, b, hsv): if a == 1: self.i1 = b elif a == 2: self...
37.644737
107
0.54841
396
2,861
3.888889
0.204545
0.051948
0.062338
0.109091
0.688312
0.688312
0.641558
0.641558
0.641558
0.641558
0
0.061386
0.293953
2,861
75
108
38.146667
0.70099
0.032856
0
0.42623
0
0
0.052574
0
0
0
0
0
0.016393
1
0.065574
false
0.016393
0.016393
0
0.098361
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8c64221a4d79ef3a5f2f1faa5ffe334356f3aa65
1,198
py
Python
types_of_variables.py
manumonforte/introduction_python
a8aff7abf4ba5b8e572c5021ba14f53d2f4790cb
[ "MIT" ]
null
null
null
types_of_variables.py
manumonforte/introduction_python
a8aff7abf4ba5b8e572c5021ba14f53d2f4790cb
[ "MIT" ]
null
null
null
types_of_variables.py
manumonforte/introduction_python
a8aff7abf4ba5b8e572c5021ba14f53d2f4790cb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 2 09:34:42 2018 @author: Manu TYPES OF VARIABLES """ #***********STRINGS******************* #%% #Use formate in order to crate a template name= "Manuel" city= "Avila (Spain)" template = "I'm {}, I live in {}".format(name,city) print(template) #%...
15.763158
77
0.538397
166
1,198
3.885542
0.439759
0.074419
0.027907
0.043411
0.055814
0
0
0
0
0
0
0.061053
0.207012
1,198
75
78
15.973333
0.617895
0.297997
0
0.064516
0
0
0.27957
0
0
0
0
0
0
1
0
false
0
0
0
0
0.548387
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
4fb501b5b5bd0ddff5321d7cf73c46ef6610e5c6
3,786
py
Python
vmock/tests/test_matchers.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
1
2015-07-04T05:57:45.000Z
2015-07-04T05:57:45.000Z
vmock/tests/test_matchers.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
vmock/tests/test_matchers.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
"""VMock library matchers tests. """ import re import unittest from vmock import matchers class TestVmockMatchers(unittest.TestCase): def test_regex_match(self): regex_match = matchers.regex_match(re.compile('^[ab]sdf$')) self.assertTrue(regex_match.compare('asdf')) self.assertFalse(reg...
35.716981
71
0.647649
498
3,786
4.718876
0.11245
0.146809
0.081702
0.068085
0.604681
0.480851
0.385957
0.360426
0.360426
0.324681
0
0.029048
0.208928
3,786
105
72
36.057143
0.755593
0.00766
0
0.096386
0
0
0.027467
0
0
0
0
0
0.554217
1
0.180723
false
0
0.036145
0
0.228916
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
4fba474ced9361b22935e126690f4e2714bd8d0e
4,120
py
Python
examples/args/train.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
null
null
null
examples/args/train.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
22
2022-03-13T06:42:11.000Z
2022-03-31T05:42:37.000Z
examples/args/train.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
null
null
null
from arekit.contrib.networks.enum_input_types import ModelInputType, ModelInputTypeService from examples.args.base import BaseArg class BagsPerMinibatchArg(BaseArg): def __init__(self): pass @staticmethod def read_argument(args): return args.bags_per_minibatch @staticmethod def...
28.219178
90
0.527184
348
4,120
6.022989
0.198276
0.100191
0.036737
0.050095
0.552958
0.524332
0.432252
0.432252
0.432252
0.402672
0
0
0.379612
4,120
145
91
28.413793
0.820031
0
0
0.598131
0
0
0.091284
0
0
0
0
0
0.056075
1
0.196262
false
0.065421
0.018692
0.065421
0.35514
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
4fbcd7d43176ba16c6631ec395baa131d753049f
8,494
py
Python
sdk/python/pulumi_google_native/healthcare/v1beta1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'AttributeDefinitionCategory', 'AuditLogConfigLogType', 'ConsentState', 'FhirStoreVersion', 'Goo...
33.440945
424
0.688839
1,009
8,494
5.721506
0.288404
0.013338
0.016629
0.017322
0.255673
0.214793
0.210289
0.188464
0.188464
0.180149
0
0.006065
0.22357
8,494
253
425
33.573123
0.869295
0.178597
0
0.119403
1
0
0.311712
0.175135
0
0
0
0
0
1
0
false
0
0.014925
0
0.80597
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
4fbd3fad23da74962d4a30922def7074e9f089c3
834
py
Python
main.py
ngrabbs/pico_data_log
95ff5e7c94af892bd3601720b3dee2cda772cc14
[ "MIT" ]
null
null
null
main.py
ngrabbs/pico_data_log
95ff5e7c94af892bd3601720b3dee2cda772cc14
[ "MIT" ]
null
null
null
main.py
ngrabbs/pico_data_log
95ff5e7c94af892bd3601720b3dee2cda772cc14
[ "MIT" ]
null
null
null
import time import board import busio import digitalio from read_sensors import read_sensors from sensor_data import sensor_data from logger import logger, init_logger from init_sensors import init_sensors #led = digitalio.DigitalInOut(board.GP25) #led.switch_to_output() #init bus i2c0 = busio.I2C(scl=board.GP5, sda=...
26.0625
54
0.77458
127
834
4.811024
0.346457
0.0982
0.042553
0
0
0
0
0
0
0
0
0.01676
0.141487
834
31
55
26.903226
0.836592
0.110312
0
0
0
0
0.014925
0
0
0
0
0
0
1
0
false
0
0.347826
0
0.347826
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
4fbe6f2f6db7778864790f4a079e296804522db7
438
py
Python
JIT/migrations/0005_auto_20200617_1723.py
Archikins/jumpintotech
85549c5d8746bd68d028e7966480f4e9de066c8b
[ "MIT" ]
null
null
null
JIT/migrations/0005_auto_20200617_1723.py
Archikins/jumpintotech
85549c5d8746bd68d028e7966480f4e9de066c8b
[ "MIT" ]
3
2021-03-30T14:08:27.000Z
2021-06-04T23:48:08.000Z
JIT/migrations/0005_auto_20200617_1723.py
Archikins/jumpintotech
85549c5d8746bd68d028e7966480f4e9de066c8b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-06-17 17:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('JIT', '0004_auto_20200617_1653'), ] operations = [ migrations.AlterField( model_name='proyecto', name='category', ...
23.052632
102
0.621005
47
438
5.680851
0.808511
0
0
0
0
0
0
0
0
0
0
0.095385
0.257991
438
18
103
24.333333
0.726154
0.10274
0
0
1
0
0.171356
0.058824
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4fc3d4ff350841a64c1a4e0708e5d8ec24c9d883
10,089
py
Python
yt/frontends/openPMD/data_structures.py
danielgrassinger/yt_new_frontend
5f91d2fb8721c4c5da0af543a6256ed979cd9fc9
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/openPMD/data_structures.py
danielgrassinger/yt_new_frontend
5f91d2fb8721c4c5da0af543a6256ed979cd9fc9
[ "BSD-3-Clause-Clear" ]
1
2016-04-05T22:30:14.000Z
2016-04-05T22:30:14.000Z
yt/frontends/openPMD/data_structures.py
danielgrassinger/yt_new_frontend
5f91d2fb8721c4c5da0af543a6256ed979cd9fc9
[ "BSD-3-Clause-Clear" ]
1
2020-12-05T05:51:09.000Z
2020-12-05T05:51:09.000Z
""" OpenPMD data structures """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # Copyright (c) 2015, Daniel Grassinger (HZDR) # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distr...
38.215909
132
0.657548
1,352
10,089
4.764053
0.240385
0.029033
0.031672
0.020494
0.233815
0.174507
0.102313
0.059929
0.049992
0.049992
0
0.018238
0.23372
10,089
263
133
38.361217
0.814901
0.37972
0
0.161765
0
0
0.046337
0.003426
0
0
0
0.003802
0
0
null
null
0.014706
0.058824
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
4fcfd9945206707a423eb7de7edfa8595d7df3ec
355
py
Python
tests/rv_test.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
tests/rv_test.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
tests/rv_test.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
from probs import Event, P, RandomVariable def test_event() -> None: a = Event(0.5) b = Event(0.6) assert str(a) == "Event(p=0.5)" assert P(a & b) == 0.3 assert P(a | b) == 0.8 def test_random_variable() -> None: r = RandomVariable() assert isinstance(r + 5, RandomVariable) assert i...
20.882353
46
0.605634
55
355
3.854545
0.418182
0.056604
0.075472
0.084906
0.396226
0
0
0
0
0
0
0.048327
0.242254
355
16
47
22.1875
0.739777
0
0
0
0
0
0.033803
0
0
0
0
0
0.454545
1
0.181818
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
4fd18a35602593b3625415d189cb6b482fc9410a
29,259
py
Python
corehq/apps/users/bulkupload.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/users/bulkupload.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/users/bulkupload.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
import logging import uuid from django import forms from django.conf import settings from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.utils.translation import ugettext as _ from couchdbkit.exceptions import ( BulkSaveError, MultipleResultsFound, ...
37.130711
130
0.595885
3,316
29,259
5.009952
0.138721
0.017878
0.00927
0.006742
0.198098
0.133329
0.078071
0.073497
0.048035
0.03407
0
0.00141
0.321371
29,259
787
131
37.177891
0.835264
0.05424
0
0.196774
0
0
0.095126
0
0
0
0
0.001271
0.001613
1
0.062903
false
0.056452
0.046774
0.008065
0.164516
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
4fdee08b3b1948e317da215f6ccc5b7bf6b6d819
4,853
py
Python
tests/flytekit/unit/common_tests/types/test_blobs.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/common_tests/types/test_blobs.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
1
2021-02-05T02:57:25.000Z
2021-02-05T02:57:25.000Z
tests/flytekit/unit/common_tests/types/test_blobs.py
nuclyde-io/flytekit
a4c990f0492e5f7245b5f2f7bb137c54684a3826
[ "Apache-2.0" ]
null
null
null
from flytekit.common.types import blobs from flytekit.common.types.impl import blobs as blob_impl from flytekit.models import literals as _literal_models from flytekit.models.core import types as _core_types from flytekit.sdk import test_utils def test_blob_instantiator(): b = blobs.BlobInstantiator.create_at_kno...
34.913669
116
0.661034
627
4,853
4.977671
0.106858
0.067286
0.080743
0.060878
0.728933
0.693368
0.656841
0.656841
0.561359
0.538289
0
0.008421
0.216979
4,853
138
117
35.166667
0.812895
0
0
0.509091
0
0
0.033381
0
0.018182
0
0
0
0.563636
1
0.090909
false
0
0.045455
0
0.136364
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
4fdf93bb29310f85e461d74b73db400835c2bd21
727
py
Python
mc/navigation/GoIcon.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-04-29T05:36:44.000Z
2021-04-29T05:36:44.000Z
mc/navigation/GoIcon.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2020-03-28T17:43:18.000Z
2020-03-28T17:43:18.000Z
mc/navigation/GoIcon.py
zy-sunshine/falkon-pyqt5
bc2b60aa21c9b136439bd57a11f391d68c736f99
[ "MIT" ]
1
2021-01-15T20:09:24.000Z
2021-01-15T20:09:24.000Z
from mc.tools.ClickableLabel import ClickableLabel from PyQt5.Qt import Qt class GoIcon(ClickableLabel): def __init__(self, parent=None): super().__init__(parent) self.setObjectName('locationbar-goicon') self.setCursor(Qt.PointingHandCursor) self.setFocusProxy(parent) # private...
25.964286
50
0.629986
65
727
6.923077
0.492308
0.048889
0.062222
0.084444
0.186667
0.186667
0
0
0
0
0
0.001894
0.273728
727
27
51
26.925926
0.850379
0.213205
0
0.153846
0
0
0.034549
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0
0.461538
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
4fe8a18b6db5b6d0316db442d24f0df088479a05
2,059
py
Python
thelma/repositories/rdb/mappers/isorequest.py
fogathmann/TheLMA
ac330a0005da4fea2f1387da9ff9938611ad1481
[ "MIT" ]
1
2020-07-12T22:47:58.000Z
2020-07-12T22:47:58.000Z
thelma/repositories/rdb/mappers/isorequest.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
null
null
null
thelma/repositories/rdb/mappers/isorequest.py
papagr/TheLMA
d2dc7a478ee5d24ccf3cc680888e712d482321d0
[ "MIT" ]
1
2020-07-12T22:40:36.000Z
2020-07-12T22:40:36.000Z
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. ISO request mapper. """ from sqlalchemy.orm import column_property from sqlalchemy.orm import relationship from everest.repositories.rdb.utils import mapper...
42.020408
80
0.633317
205
2,059
6.102439
0.443902
0.08793
0.06235
0.05036
0.189448
0.047962
0
0
0
0
0
0.002801
0.306459
2,059
48
81
42.895833
0.873249
0.118018
0
0.055556
0
0
0.065826
0.02633
0
0
0
0.020833
0
1
0.027778
false
0
0.25
0
0.305556
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
4fe8bdaf39d9614198a09aeea3c6ca943554587c
140
py
Python
jagger/jagger/constants.py
arruda/magic_it_up
251a5cbd1fdebcea5a0150eec1367fd58b0da2d3
[ "MIT" ]
null
null
null
jagger/jagger/constants.py
arruda/magic_it_up
251a5cbd1fdebcea5a0150eec1367fd58b0da2d3
[ "MIT" ]
null
null
null
jagger/jagger/constants.py
arruda/magic_it_up
251a5cbd1fdebcea5a0150eec1367fd58b0da2d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- MSG_DATE_SEP = ">>>:" END_MSG = "THEEND" ALLOWED_KEYS = [ 'q', 'e', 's', 'z', 'c', '', ]
9.333333
23
0.371429
16
140
3
0.9375
0
0
0
0
0
0
0
0
0
0
0.01087
0.342857
140
14
24
10
0.51087
0.15
0
0
0
0
0.128205
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
4feb343a92349e561a34bf69da5b5183e340508e
2,727
py
Python
00_Code/03_Pramp/01_Time_Planner.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/03_Pramp/01_Time_Planner.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/03_Pramp/01_Time_Planner.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is of duration dur. If there is no common time slot that satisfies the duration requirement, return null. Time is given in a U...
34.961538
382
0.649432
464
2,727
3.821121
0.293103
0.027073
0.01692
0.025381
0.222786
0.174281
0.132544
0.097575
0.097575
0.097575
0
0.105118
0.20462
2,727
78
383
34.961538
0.710466
0.809681
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1