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
74fb6a3fa3da896167c7fb6828069fd1cdde4840
249
py
Python
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
pure_func.py
TomHam2021/Python2a_week5
49678f4e57a5ccdfb9b8312e163ed45b61b8eba1
[ "MIT" ]
null
null
null
''' # funtional programming undviker for-loopar men måste inte inehålla rekursiva anrop def fib(n, a=0, b=1): return a if n < 1 else \ b if n < 2 else \ fib(n - 1, b, a + b) print(fib(100)) # Output: 354224848179261915075 '''
19.153846
83
0.610442
40
249
3.8
0.65
0.052632
0
0
0
0
0
0
0
0
0
0.15847
0.26506
249
12
84
20.75
0.672131
0.947791
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
2d0005654c5252f8fe1a1bf0048e42c68ed61045
16,082
py
Python
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
2
2019-11-03T16:37:33.000Z
2020-01-08T19:05:20.000Z
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
8
2019-11-04T02:49:30.000Z
2022-02-10T12:22:15.000Z
ski_conditions/apps/app_scraping/management/commands/do_scraping.py
JKProjects-Org/ski-conditions
e7f9350bb3c290853f49f65e30d495ee0aa3b737
[ "MIT" ]
null
null
null
import json import re import requests from bs4 import BeautifulSoup from django.core.management.base import BaseCommand from ski_conditions.apps.app_scraping.models import SkiResort class AbstractScraper: def scrape(self): pass class AbstractScriptScraper(AbstractScraper): def _common_scrape(self)...
37.751174
109
0.628778
1,876
16,082
5.10661
0.130597
0.043424
0.056785
0.040814
0.714718
0.704593
0.68215
0.672234
0.661169
0.632568
0
0.008227
0.274406
16,082
425
110
37.84
0.812752
0.160179
0
0.588235
0
0.025735
0.186719
0.0232
0
0
0
0.002353
0
1
0.058824
false
0.003676
0.022059
0.011029
0.227941
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2d0f65ea12ba88c4f09486a14c66b101fd4846c7
148
py
Python
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
1
2018-01-26T21:18:12.000Z
2018-01-26T21:18:12.000Z
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
3
2017-12-09T14:49:30.000Z
2017-12-09T14:59:39.000Z
src/020-factorial-digit-sum/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
null
null
null
import math def solve(m): f = math.factorial(m) digit_sum = 0 while f > 0: digit_sum += f % 10 f //= 10 return digit_sum
12.333333
25
0.547297
24
148
3.25
0.541667
0.307692
0
0
0
0
0
0
0
0
0
0.061856
0.344595
148
11
26
13.454545
0.742268
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2d3bab9f16bf5a40e3ec217903602e93ce9b678d
9,435
py
Python
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
1
2020-06-07T00:19:54.000Z
2020-06-07T00:19:54.000Z
Core/DatabaseTools/DatabaseManager/abstractDatabase.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** MOPA An independet project Método de Obtenção da Posição de Atirador ------------------- begin : 2019-01-15 git sha ...
35.205224
83
0.546688
928
9,435
5.547414
0.251078
0.017677
0.030303
0.037296
0.321873
0.286519
0.250583
0.210567
0.206294
0.18648
0
0.00361
0.324642
9,435
267
84
35.337079
0.8043
0.45522
0
0.242424
0
0
0.026708
0
0
0
0
0.003745
0
1
0.242424
false
0.010101
0.040404
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
2d3ece024c6e3b371b3ce91027eb8030eb483366
508
py
Python
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2020/lopez-flores-jorge-luis/Practica1/practica1.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
############Con una función########################## print('Valor de M:') M = int(input()) print('Valor de N:') N = int(input()) def potencia(M, N): resultado=1 for i in range(N): resultado *= M return resultado print(M**N) print(pow(M, N)) print(potencia(M,N)) #########################Con...
17.517241
74
0.494094
73
508
3.438356
0.369863
0.159363
0.191235
0.103586
0.350598
0.350598
0.350598
0.350598
0.350598
0.350598
0
0.004808
0.181102
508
28
75
18.142857
0.598558
0.07874
0
0.444444
0
0
0.144737
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.444444
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
1
0
2
740b5f12a51ad3dfb5a4576acd413d48c9392fc3
439
py
Python
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
769.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
"""769. Max Chunks To Make Sorted""" class Solution(object): def maxChunksToSorted(self, arr): """ :type arr: List[int] :rtype: int """ min_index_for_chunk_end = arr[0] chunks = 0 for i in range(len(arr)): min_index_for_chunk_end = max(min_index_...
24.388889
74
0.548975
58
439
3.87931
0.517241
0.142222
0.195556
0.284444
0.364444
0.195556
0
0
0
0
0
0.020906
0.346241
439
17
75
25.823529
0.763066
0.143508
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
740f425c8945d1c545b1860aad74bb81820a3743
40,565
py
Python
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
2
2017-09-26T14:15:43.000Z
2018-03-19T01:03:28.000Z
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
1
2017-10-21T22:30:39.000Z
2017-10-21T22:30:39.000Z
src/AE_academico/views.py
furthz/Colegio
573e9e4006c0d1cd33190b53da5988fdc0c9ca4c
[ "MIT" ]
9
2017-07-22T16:13:29.000Z
2020-11-12T21:03:36.000Z
import datetime import json import calendar from django.http import HttpResponse from django.shortcuts import render, redirect from django.urls import reverse_lazy, reverse from django.views.generic import FormView from django.views.generic import ListView, CreateView, UpdateView, DeleteView, DetailView from django.vi...
38.305005
155
0.611414
4,076
40,565
5.908243
0.077036
0.030396
0.033884
0.029649
0.737397
0.712898
0.675276
0.655386
0.632173
0.602317
0
0.00436
0.259238
40,565
1,058
156
38.34121
0.797065
0.026525
0
0.659181
0
0
0.115164
0.014462
0
0
0
0
0
1
0.060766
false
0
0.029062
0
0.357992
0.005284
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
74228016d8241f1954f19c1130b86873a1c9adff
311
py
Python
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
1
2015-11-06T02:36:29.000Z
2015-11-06T02:36:29.000Z
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
null
null
null
regtests/calling/keyword.py
idobatter/PythonJS
0161dd5aba6caeaf5b06e74cc8524efd04a36143
[ "BSD-3-Clause" ]
null
null
null
"""keywords""" def f(a, b=None, c=None): return (a+b) * c def f2(**kw): a = 0 for key in kw: a += kw[key] return a def main(): TestError( f(1, b=2, c=3) == 9) ## inorder works in javascript mode TestError( f(1, c=3, b=2) == 9) ## out of order fails in javascript mode TestError( f2(x=1,y=2) == 3 )
20.733333
74
0.572347
63
311
2.825397
0.47619
0.022472
0.123596
0.280899
0
0
0
0
0
0
0
0.057851
0.221865
311
15
75
20.733333
0.677686
0.257235
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0
0.090909
0.454545
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
742f0630007375e4ed1fb342a09ab11f33680542
611
py
Python
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
6
2020-06-05T22:27:20.000Z
2022-03-24T10:25:50.000Z
dashboard/migrations/0030_auto_20171107_1924.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-07 19:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard', '0029_auto_20171017_2329'), ] operations = [ migrations.RenameField( ...
23.5
49
0.603928
65
611
5.353846
0.615385
0.12069
0.149425
0.172414
0.235632
0.235632
0.235632
0
0
0
0
0.075862
0.288052
611
25
50
24.44
0.724138
0.111293
0
0.333333
1
0
0.205556
0.081481
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
742f356276917a64ca8c8ca59a40f2174ed1eff3
707
py
Python
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/doraemon/doraemon/api/ci/filters/ci_taskflow_filter.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
# coding=utf-8 ''' Created on 2016-12-5 @author: Administrator ''' from doraemon.ci.models import CITaskFlow, CIFlowSectionHistory, CITaskFlowHistory from url_filter.filtersets.django import ModelFilterSet class CITaskFlowFilterSet(ModelFilterSet): class Meta(object): model = CITaskFlow fields =...
25.25
85
0.705799
64
707
7.78125
0.59375
0.15261
0.138554
0.174699
0.317269
0
0
0
0
0
0
0.013769
0.178218
707
27
86
26.185185
0.843373
0.082037
0
0.214286
0
0
0.117005
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
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
1
0
0
2
743957d3765da76f1e6b4404e6ebe330d6e23d9d
317
py
Python
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
lnbits/extensions/lndhub/views.py
sidahmedabdelillah/attigoBTC
f121184bab7f4704b54eff6d0ac27afa1ed524ed
[ "MIT" ]
null
null
null
from quart import render_template, g from lnbits.decorators import check_user_exists, validate_uuids from . import lndhub_ext @lndhub_ext.route("/") @validate_uuids(["usr"], required=True) @check_user_exists() async def lndhub_index(): return await render_template("lndhub/index.html", user=g.user)
26.416667
67
0.753943
44
317
5.181818
0.568182
0.122807
0.131579
0
0
0
0
0
0
0
0
0
0.135647
317
11
68
28.818182
0.832117
0
0
0
0
0
0.068627
0
0
0
0
0
0
1
0
true
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
743ac42a3fd4814460f31cd2fc79206de9e65dfa
600
py
Python
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/users/models/deleteduser.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class DeletedUser(models.Model): DELETED_BY_SELF = 1 DELETED_BY_STAFF = 2 DELETED_BY_SYSTEM = 3 DELETED_BY_CHOICES = ( (DELETED_BY_SELF, _("By self")), (DELETED_BY_ST...
27.272727
87
0.7
77
600
5.12987
0.428571
0.205063
0.075949
0
0
0
0
0
0
0
0
0.00625
0.2
600
21
88
28.571429
0.816667
0
0
0
0
0
0.045
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.6875
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
1
0
0
2
743f8e8a60a48a089d0eae27267518b7437b7876
191
py
Python
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
src/python_code/gather_ood_experiments.py
ipmach/Thesis2021
91dbb0eebba64f1fa2c18562e2c9f35f532ef7c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from DataBase_Manager.beta_manager import gather_data import sys experiment_path = sys.argv[1] csv_path = sys.argv[2] gather_data(experiment_path, save_file=csv_path)
23.875
53
0.816754
32
191
4.59375
0.625
0.136054
0.14966
0
0
0
0
0
0
0
0
0.017241
0.089005
191
8
54
23.875
0.827586
0.109948
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7448420490dadf79cbb285def423344210d69da7
254
py
Python
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
1
2019-09-02T01:17:34.000Z
2019-09-02T01:17:34.000Z
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
null
null
null
apps/products/filters.py
ykyk1229/TurtleDove
074ed03396d603a920bc382ee916fc0f3adab6ea
[ "MIT" ]
null
null
null
import django_filters from .models import Product class ProductFilter(django_filters.rest_framework.FilterSet): """ 业务线过滤类 """ pid = django_filters.NumberFilter("pid") class Meta: model = Product fields = ['pid', ]
18.142857
61
0.653543
26
254
6.230769
0.653846
0.240741
0
0
0
0
0
0
0
0
0
0
0.244094
254
13
62
19.538462
0.84375
0.023622
0
0
0
0
0.025862
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.714286
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7467690eb0ac6eea07f7e7a2ad3b657c481f13cd
241
py
Python
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
1
2019-12-06T05:18:38.000Z
2019-12-06T05:18:38.000Z
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
null
null
null
src/__init__.py
Losintech/python-alpha-orm
01e88c5cf21b881dc670d605b353df8ae52eb83c
[ "MIT" ]
null
null
null
from alphaorm.AlphaORM import AlphaORM,AlphaRecord AlphaORM.setup('mysql', { 'host' : 'localhost', 'user' : 'root', 'password' : '', 'database' : 'alphaorm' }) m = AlphaORM.create('python') m.name = 'Alpha' m.age = 10 AlphaORM.store(m)
18.538462
50
0.659751
29
241
5.482759
0.689655
0
0
0
0
0
0
0
0
0
0
0.009662
0.141079
241
13
51
18.538462
0.758454
0
0
0
0
0
0.252066
0
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
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
1
0
0
0
0
0
2
747f4ee04719abc2662ba9a8f13f2719e601fb4b
2,297
py
Python
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
solver.py
cserradag96/nqueens
350dfddb29419560d94f5218e5f2e75d2be9ccf3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- encoding: utf-8 -*- ####################################################################################################################### # DESCRIPTION: ####################################################################################################################### # Solver for N-Que...
40.298246
119
0.252068
108
2,297
5.287037
0.583333
0.042032
0.035026
0
0
0
0
0
0
0
0
0.009882
0.07488
2,297
56
120
41.017857
0.258824
0.129734
0
0
0
0
0.196043
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
747fcc5d8e8611eca8dd7a7d6b6a6a5d0dd6a8da
2,343
py
Python
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/DGS1100-24P-MGMT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DGS1100-24P-MGMT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS1100-24P-MGMT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:30:19 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
80.793103
477
0.788732
236
2,343
7.817797
0.5
0.099729
0.022764
0.027642
0.289431
0.182114
0.182114
0.182114
0.182114
0.182114
0
0.070534
0.080239
2,343
28
478
83.678571
0.785615
0.142552
0
0
0
0
0.283
0.022
0
0
0
0
0
1
0
false
0.055556
0.444444
0
0.722222
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
1
0
0
0
0
2
7488fb87c2da80cc7ce4b43784746c835d6f4aeb
52
py
Python
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
14
2021-12-17T10:38:27.000Z
2022-03-02T01:20:01.000Z
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
2
2022-01-11T13:31:09.000Z
2022-02-03T15:41:43.000Z
test/inventory/mock_inventories/single_host1.py
oddlama/forge
d09b0f309ce7dcda79dc03765473b48732c71845
[ "MIT" ]
2
2022-02-03T15:20:51.000Z
2022-02-03T15:45:11.000Z
inventory_var = "from_inventory" hosts = ["host1"]
13
32
0.711538
6
52
5.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.022222
0.134615
52
3
33
17.333333
0.755556
0
0
0
0
0
0.365385
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7497c1706d2cfdef04eb240c836fa9520fbded1f
10,037
py
Python
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
null
null
null
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
null
null
null
n2nmn-tensorlayer/models_shapes/nmn3_layers.py
jiaqi-xi/Neural-Module-Networks.Tensorlayer
3607e6717473aed51c653cf931dc7d80866b0227
[ "MIT" ]
3
2020-01-12T15:45:44.000Z
2020-01-31T13:07:46.000Z
from __future__ import absolute_import, division, print_function import sys import tensorflow as tf import tensorlayer as tl import numpy as np from tensorflow import convert_to_tensor as to_T sess = tf.Session() tl.layers.initialize_global_variables(sess) def conv_layer(name, bottom, kernel_size, stride, output_dim...
45.622727
115
0.672512
1,295
10,037
4.957529
0.118919
0.040654
0.035981
0.024922
0.72243
0.710903
0.69081
0.659502
0.641745
0.610748
0
0.0093
0.228654
10,037
219
116
45.83105
0.819943
0.125137
0
0.54375
0
0
0.034053
0.005714
0
0
0
0
0
1
0.06875
false
0
0.0375
0
0.175
0.00625
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
74a696dadca46d47b083f0630b23c6f4522f990b
1,237
py
Python
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
redash/handlers/__init__.py
fanhaipeng0403/redash
d0b074e21864b358e898d27fc2c01ebe96d7ba26
[ "BSD-2-Clause" ]
null
null
null
from flask import jsonify # redash __init__.py文件里 # setup_authentication(app) # login_manager.init_app(app) from flask_login import login_required from redash.handlers.api import api from redash.handlers.base import routes from redash.monitor import get_status from redash.permissions import require_super_admin # Ha...
22.490909
108
0.717057
149
1,237
5.724832
0.496644
0.058617
0.03517
0.032825
0.044549
0
0
0
0
0
0
0
0.135004
1,237
54
109
22.907407
0.797196
0.404204
0
0
0
0
0.037481
0
0
0
0
0
0
1
0.157895
false
0
0.368421
0.052632
0.631579
0.052632
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
1
0
0
2
77751b2395c16d4aa8161f9896e4bd62cf296098
1,045
py
Python
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
MDD.py
Asteria-Sun/Some-Short-Programs
df0b1a0f5fc838efbdb88da91ad653026044e23a
[ "Apache-2.0" ]
null
null
null
'''最大回撤计算''' import numpy as np import pandas as pd import datetime #随机趋势+持续上涨的趋势 price = 2 + np.random.randn(21) + np.linspace(0,2,21) #设置日期 date = [datetime.date(2020,12,x) for x in range(2,23)] MDD_df = pd.DataFrame({'date':date,'price':price}) #简单收益率没减1是为了方便连乘 MDD_df['return+1'] = MDD_df['price']/MDD_df['price'].s...
33.709677
85
0.687081
192
1,045
3.473958
0.302083
0.224888
0.247376
0.146927
0.389805
0.389805
0.332834
0.332834
0.185907
0.185907
0
0.027778
0.104306
1,045
30
86
34.833333
0.684829
0.088995
0
0
0
0
0.244681
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7777fe549507b7986267faec6ed4cc83a2313604
288
py
Python
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
Python/Mundo1/TratandoDados/ex008.py
ysabelah/Estudos
aa587f1981324640c93978b3b80fdf3abde10e80
[ "MIT" ]
null
null
null
#Escreva um programa que leia um valor em metros e o exiba convertido em centimetros e milimetros numero = float(input('Digite o número: ')) print('O valor de {} em centímetros é: {}'.format(numero, numero * 100)) print('O valor de {} em milímetros é: {}'.format(numero, numero * 1000))
48
97
0.711806
45
288
4.555556
0.6
0.058537
0.107317
0.126829
0.146341
0
0
0
0
0
0
0.028926
0.159722
288
6
98
48
0.818182
0.333333
0
0
0
0
0.4375
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
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
1
0
2
7784ba485cef29826c9b6771e291504192862a3d
746
py
Python
servers/python/coweb/bot/__init__.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/bot/__init__.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Defines classes for coweb service bots. Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # std lib import json import sys # coweb from .reqack import ReqAckDelegate def run(botClass): ''' Looks on the command line for informati...
26.642857
79
0.676944
102
746
4.911765
0.676471
0.03992
0.051896
0.083832
0
0
0
0
0
0
0
0.022688
0.231903
746
27
80
27.62963
0.851658
0.549598
0
0
0
0
0.094463
0
0
0
0
0
0
1
0.1
false
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
778f222399a540e39a58b6e8b7d53a1fe0cdcdb2
139,019
py
Python
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZXR10-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZXR10-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZXR10-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:48:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
131.896584
12,577
0.780598
16,250
139,019
6.627015
0.090769
0.071539
0.125194
0.01222
0.435253
0.311285
0.251521
0.196742
0.158224
0.13083
0
0.152103
0.079838
139,019
1,053
12,578
132.021842
0.689744
0.002244
0
0.008746
0
0.013605
0.224834
0.0576
0
0
0
0
0
1
0
false
0.000972
0.005831
0
0.05345
0.000972
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
77a0fbf28b7a82846992531063e6db757b73b21f
961
py
Python
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
dk/topdanmark/pythonsampleapplication/calculator.py
ManishGandhiDodda/pythontest
0b803eba8a0f78d63fea92471f0360b9458e258b
[ "MIT" ]
null
null
null
import math """ Class Calculator This class does some simple mathematic operations. """ class Calculator: """Class Calculator""" @staticmethod def addition(a, b): """ addition Takes two numbers and adds them. """ return a + b @staticmethod def subtracti...
16.568966
66
0.5359
102
961
5.029412
0.401961
0.031189
0.116959
0.140351
0.226121
0.226121
0.120858
0
0
0
0
0
0.380853
961
57
67
16.859649
0.862185
0.319459
0
0.294118
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0
0.705882
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
1
0
0
2
77ca100659083b3c68df3e832abc6d77f7424c6b
254
py
Python
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
tests/pygetwindow/pygetwindow.py
JakubAndrysek/pyspacenavigator-app
97e8049b646cd734f37b50fb2a60169a3b0d34f8
[ "MIT" ]
null
null
null
from win32gui import GetWindowText, GetForegroundWindow old = "" while True: new =GetWindowText(GetForegroundWindow()) if old != new: # print(new) if new.lower().find("inkscape")>0: print("OK") old = new
15.875
55
0.586614
26
254
5.730769
0.615385
0.42953
0
0
0
0
0
0
0
0
0
0.016667
0.291339
254
15
56
16.933333
0.811111
0.03937
0
0
0
0
0.041494
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
1
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
2
77f3d071cf3be67ef3b31b8f16f8ea3ddb7f75dc
9,434
py
Python
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
import numpy as np from addict import Dict cfg = Dict() cfg.name = 'tdlmc' cfg.seed = 1113 # random seed cfg.bnn_prior_class = 'DiagonalBNNPrior' cfg.n_data = 200 # number of images to generate cfg.train_vs_val = 'train' cfg.components = ['lens_mass', 'external_shear', 'src_light', 'lens_light', 'agn_light'] cfg.chec...
49.39267
178
0.246555
571
9,434
3.989492
0.345009
0.073749
0.122915
0.13345
0.32309
0.303336
0.276997
0.204565
0.204565
0.075505
0
0.067012
0.693131
9,434
191
179
49.39267
0.719862
0.11713
0
0.552147
1
0
0.037947
0.003012
0
0
0
0
0
1
0
false
0.006135
0.01227
0
0.01227
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
2
77fd511d1f33029866da7ab3ca7352cff624cfec
435
py
Python
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
# Some say that every one year of a human’s life is equivalent to seven years of a dog’s life. # Write a function named dog_years() that has two parameters named name and age. # The function should compute the age in dog years and return the following string: # "{name}, you are {age} years old in dog years" def dog_y...
43.5
95
0.698851
77
435
3.922078
0.519481
0.13245
0.099338
0.086093
0.139073
0.139073
0
0
0
0
0
0.002933
0.216092
435
9
96
48.333333
0.882698
0.691954
0
0
0
0
0.257813
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
ae0070be3b3f3ac59a97d47087604c2b0da1ad24
393
py
Python
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
from spaceone.repository.manager.repository_manager import RepositoryManager class LocalRepositoryManager(RepositoryManager): def register_repository(self, params): """ Args: params: - name - repository_type: local """ # Assume there is ...
24.5625
76
0.628499
35
393
6.942857
0.714286
0.139918
0
0
0
0
0
0
0
0
0
0
0.305344
393
15
77
26.2
0.89011
0.274809
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
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
1
0
0
0
0
1
0
0
2
7add913572dab6aa965813722b95547e25bae2fd
248
py
Python
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
import sys sys.stdin = open("input.txt", "r") sys.stdout = open("output.txt", "w") n, m = map(int, input().split()) n_mas = [0 for i in range(n)] for i in range(m): for j in list(map(int, input().split())): n_mas[j-1] += 1 print(*n_mas)
27.555556
45
0.584677
49
248
2.897959
0.510204
0.084507
0.15493
0.225352
0.28169
0.28169
0
0
0
0
0
0.014851
0.185484
248
9
46
27.555556
0.688119
0
0
0
0
0
0.084337
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7adffba1ca679eea400ec7eeac7d960a50759561
1,019
py
Python
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
1
2021-07-24T21:39:26.000Z
2021-07-24T21:39:26.000Z
cores = {'limpar':'\033[m', 'vermelho':'\033[1;31m','ciano':'\033[1;36m','azul':'\033[1;34m','amarelo':'\033[1;33m','verde':'\033[1;32m'} print('===== Tipo de Triângulo -> Aprimoramento do Desafio 35 =====') print() s1 = float(input('Primeiro segmento: ')) s2 = float(input('Segundo segmento: ')) s3 = float(input('Terc...
48.52381
137
0.618253
148
1,019
4.256757
0.391892
0.104762
0.087302
0.025397
0.180952
0.107937
0.107937
0
0
0
0
0.066975
0.150147
1,019
21
138
48.52381
0.660508
0.100098
0
0.125
0
0
0.627322
0.269945
0
0
0
0
0
1
0
false
0
0
0
0
0.4375
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
1
0
2
7aec73e5242fe246bd53368966dcb8b97fdec44b
862
py
Python
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
26
2015-01-31T23:56:36.000Z
2021-04-10T20:26:11.000Z
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
33
2015-03-18T15:54:01.000Z
2018-03-08T14:28:50.000Z
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
80
2015-01-07T08:54:58.000Z
2020-05-06T21:33:41.000Z
# Copyright (c) 2010-2013, Regents of the University of California. # All rights reserved. # # Released under the BSD 3-Clause license as published at the link below. # https://openwsn.atlassian.net/wiki/display/OW/License import logging log = logging.getLogger('typeRssi') log.setLevel(logging.ERROR) log.addHandler...
27.806452
79
0.552204
87
862
5.333333
0.666667
0.051724
0
0
0
0
0
0
0
0
0
0.014663
0.208817
862
31
80
27.806452
0.665689
0.454756
0
0
0
0
0.065076
0
0
0
0
0
0
1
0.230769
false
0
0.153846
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7af0730950718ad5e375da7065398646acf80fd5
1,005
py
Python
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-03-25T00:21:11.000Z
2022-03-25T00:21:11.000Z
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2021-12-28T18:02:49.000Z
2021-12-28T18:02:49.000Z
from prices import MoneyRange from ...shipping import models from ...shipping.interface import ShippingMethodData from ..channel import ChannelQsContext from ..translations.resolvers import resolve_translation def resolve_shipping_zones(channel_slug): if channel_slug: instances = models.ShippingZone.obje...
32.419355
83
0.774129
116
1,005
6.491379
0.413793
0.116866
0.047809
0.090305
0
0
0
0
0
0
0
0
0.151244
1,005
30
84
33.5
0.882767
0.020896
0
0
0
0
0
0
0
0
0
0.033333
0
1
0.142857
false
0
0.238095
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
7afd789557f9eb88e7608f59a30820ee3bb43296
4,233
py
Python
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
from django.db import models class PersonType(models.Model): type = models.CharField(max_length=45) def __str__(self): return f"{self.type}" class Address(models.Model): city = models.CharField(max_length=45) street = models.CharField(max_length=45) street_number = models.IntegerField()...
30.235714
94
0.697378
517
4,233
5.500967
0.187621
0.063291
0.101266
0.135021
0.492264
0.436006
0.303094
0.285513
0.233826
0.233826
0
0.01295
0.179069
4,233
139
95
30.453237
0.805468
0.008505
0
0.285714
0
0.010204
0.121812
0.005721
0
0
0
0.007194
0
1
0.132653
false
0.010204
0.010204
0.132653
0.897959
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
1
0
0
2
bb037e64dca2ed5aefee607b5004f9b5b50431d4
1,080
py
Python
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
from dearpygui.core import * from dearpygui.simple import * # callback def update(sender, data): uvmin = get_value("uv_min") uvmax = get_value("uv_max") uvminx = uvmin[0] uvminy = uvmin[1] uvmaxx = uvmax[0] uvmaxy = uvmax[1] add_data("TextureCoordinates", [uvminx, uvminy, uvmaxx, uvmaxy])...
36
97
0.685185
141
1,080
4.985816
0.276596
0.344239
0.320057
0.034139
0.423898
0.423898
0.423898
0.423898
0.423898
0.324324
0
0.030668
0.15463
1,080
29
98
37.241379
0.739321
0.007407
0
0.181818
0
0
0.239252
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.136364
0.045455
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb1296c730e04aac4e482709b1a4e2821eed085b
177
py
Python
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
2
2020-11-18T15:10:03.000Z
2020-11-22T08:28:15.000Z
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
null
null
null
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
null
null
null
num = int(input("Enter a number: ")) temp = num reverse = 0 while(temp): reverse = (reverse * 10) + (temp % 10) temp = int(temp / 10) print("Reversed: " + str(reverse))
22.125
42
0.59322
25
177
4.2
0.56
0.114286
0
0
0
0
0
0
0
0
0
0.050725
0.220339
177
8
43
22.125
0.710145
0
0
0
0
0
0.146067
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb1a364dd066752f967226672bd3ed108b79d4bc
239
py
Python
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
from pythonds.trees.binheap import BinHeap # pythonds so we need to use python2.7 to run bh = BinHeap() bh.insert(5) bh.insert(7) bh.insert(3) bh.insert(11) print(bh.delMin()) print(bh.delMin()) print(bh.delMin()) print(bh.delMin())
13.277778
45
0.707113
42
239
4.02381
0.47619
0.189349
0.307692
0.319527
0.307692
0.307692
0.307692
0.307692
0.307692
0
0
0.033654
0.129707
239
17
46
14.058824
0.778846
0.179916
0
0.4
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.4
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bb3e451968927b5f8712e4cdfc255420064f37b9
786
py
Python
src/flute/version.py
antonsynd/flute
4da0b3e0ff9e3fabdcf8aed1d2395dcf62d48211
[ "MIT" ]
1
2020-11-26T03:06:58.000Z
2020-11-26T03:06:58.000Z
src/flute/version.py
antonsynd/flute
4da0b3e0ff9e3fabdcf8aed1d2395dcf62d48211
[ "MIT" ]
null
null
null
src/flute/version.py
antonsynd/flute
4da0b3e0ff9e3fabdcf8aed1d2395dcf62d48211
[ "MIT" ]
null
null
null
""" Decorator to gate some of the tools here on what is available in the FL Studio MIDI Scripting API version. """ import general _fl_midi_scripting_api_version_number = general.getVersion() def require_version(version): def require_version_decorator(f): def require_version_wrapper(*args, **kwargs): ...
30.230769
78
0.647583
88
786
5.431818
0.420455
0.135983
0.167364
0.240586
0.324268
0.324268
0
0
0
0
0
0
0.284987
786
25
79
31.44
0.850534
0.13486
0
0
0
0
0.122024
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
bb41685c8c33dcbafe597ec7414699791810848e
2,888
py
Python
src/models/node.py
Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19
c3532a86640631dcafa4e88d6efb32360f0faf0f
[ "Apache-2.0" ]
1
2021-07-21T13:51:18.000Z
2021-07-21T13:51:18.000Z
src/models/node.py
Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19
c3532a86640631dcafa4e88d6efb32360f0faf0f
[ "Apache-2.0" ]
null
null
null
src/models/node.py
Informatik-HS-KL/BEGGEL-SP-Map-Matcher-WS19
c3532a86640631dcafa4e88d6efb32360f0faf0f
[ "Apache-2.0" ]
null
null
null
""" Description: A Node is basically representing an osm-node. But the class Node also contains useful observer functions, for example to convert the geometry of a Node-Object into several geo-formats, and mutator functions. @date: 10/25/2019 @author: Lukas Felzmann, Sebastian Leilich, Kai Plautz """ from .node_id imp...
22.215385
119
0.496191
315
2,888
4.336508
0.273016
0.087848
0.021962
0.026354
0.142021
0.081991
0
0
0
0
0
0.005577
0.379155
2,888
129
120
22.387597
0.756274
0.235111
0
0.036364
0
0
0.053728
0
0
0
0
0
0
1
0.290909
false
0
0.036364
0.018182
0.563636
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
1
0
0
2
bb44989d1b925d469bd603867f4a7ffaa3d4a4d3
400
py
Python
lang/py/pylib/11/socket/function/gethostbyname_ex.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/11/socket/function/gethostbyname_ex.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/11/socket/function/gethostbyname_ex.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- import socket for host in ['homer','www','www.python.org','nosuchnamenamenameche']: print host try: hostname, aliases, addresses = socket.gethostbyname_ex(host) print' Hostname:',hostname print' Aliases:',aliases print' Addresses:...
25
69
0.63
46
400
5.456522
0.586957
0.063745
0
0
0
0
0
0
0
0
0
0.003257
0.2325
400
15
70
26.666667
0.814332
0.1025
0
0
0
0
0.229692
0.058824
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.545455
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
1
0
2
bb5669ae64601c0a6365ad7e4ed02e95b6e730f0
506
py
Python
tests/builtins/test_dir.py
VeliborKrivokuca/batavia
ecbdc21dc7e002415e6c0ea8654d2b8a8c7a85fa
[ "BSD-3-Clause" ]
1,256
2015-08-09T07:44:02.000Z
2019-03-27T05:41:24.000Z
tests/builtins/test_dir.py
VeliborKrivokuca/batavia
ecbdc21dc7e002415e6c0ea8654d2b8a8c7a85fa
[ "BSD-3-Clause" ]
406
2015-08-12T03:40:29.000Z
2019-02-25T19:26:02.000Z
tests/builtins/test_dir.py
VeliborKrivokuca/batavia
ecbdc21dc7e002415e6c0ea8654d2b8a8c7a85fa
[ "BSD-3-Clause" ]
589
2015-08-10T03:27:31.000Z
2019-03-10T20:58:07.000Z
from ..utils import TranspileTestCase, BuiltinFunctionTestCase class DirTests(TranspileTestCase): pass class BuiltinDirFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): function = "dir" not_implemented = [ 'test_class', ] class BuiltinDirTypeFunctionTests(BuiltinFunctionTestCase,...
22
78
0.715415
44
506
8.136364
0.545455
0.223464
0.100559
0.128492
0
0
0
0
0
0
0
0
0.193676
506
22
79
23
0.877451
0.120553
0
0.307692
0
0
0.102506
0
0
0
0
0
0
1
0
false
0.076923
0.076923
0
0.615385
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
1
0
0
0
0
0
2
2472a45f4c27ad8a50bc1b6d23712affd350c953
4,329
py
Python
RemoteRunner/Controllers/ROS/ROS2Controller.py
StanSwanborn/robot-runner
4b8d294d403326b3027eb43e7f9d2b44276bce2b
[ "MIT" ]
1
2020-01-24T21:02:57.000Z
2020-01-24T21:02:57.000Z
RemoteRunner/Controllers/ROS/ROS2Controller.py
StanSwanborn/robot-runner
4b8d294d403326b3027eb43e7f9d2b44276bce2b
[ "MIT" ]
null
null
null
RemoteRunner/Controllers/ROS/ROS2Controller.py
StanSwanborn/robot-runner
4b8d294d403326b3027eb43e7f9d2b44276bce2b
[ "MIT" ]
1
2020-04-06T14:18:39.000Z
2020-04-06T14:18:39.000Z
import time from pathlib import Path from Procedures.ProcessProcedure import ProcessProcedure from Controllers.ROS.IROSController import IROSController from Procedures.OutputProcedure import OutputProcedure as output ### ========================================================= ### | ...
50.929412
120
0.594364
432
4,329
5.743056
0.340278
0.139057
0.070939
0.093511
0.293833
0.138654
0.050786
0
0
0
0
0.008417
0.28644
4,329
85
121
50.929412
0.794756
0.455532
0
0.073171
0
0
0.191871
0
0
0
0
0.011765
0
1
0.146341
false
0.073171
0.121951
0
0.292683
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
1
0
0
0
0
0
2
248c03c5a5264e6cc191535d9e3e4549482f8114
6,922
py
Python
chromewhip/protocol/domstorage.py
spinda/chromewhip
4c8089441f0767b91840abf6a076e9f65c83bdbc
[ "MIT" ]
97
2017-07-22T13:12:36.000Z
2021-03-20T04:03:27.000Z
chromewhip/protocol/domstorage.py
spinda/chromewhip
4c8089441f0767b91840abf6a076e9f65c83bdbc
[ "MIT" ]
15
2017-07-20T06:33:01.000Z
2020-11-06T15:36:18.000Z
chromewhip/protocol/domstorage.py
spinda/chromewhip
4c8089441f0767b91840abf6a076e9f65c83bdbc
[ "MIT" ]
12
2017-11-30T17:46:53.000Z
2020-10-01T17:57:19.000Z
# noinspection PyPep8 # noinspection PyArgumentList """ AUTO-GENERATED BY `scripts/generate_protocol.py` using `data/browser_protocol.json` and `data/js_protocol.json` as inputs! Please do not modify this file. """ import logging from typing import Any, Optional, Union from chromewhip.helpers import PayloadMixin, Ba...
28.138211
92
0.522103
615
6,922
5.75935
0.196748
0.101637
0.051948
0.030491
0.596556
0.596556
0.581592
0.562959
0.542631
0.542631
0
0.000226
0.361456
6,922
245
93
28.253061
0.801131
0.107917
0
0.718391
1
0
0.087851
0.021252
0
0
0
0
0
1
0.086207
false
0
0.017241
0
0.264368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2494ce1fcebe6e8abe15bb82c463b0e7baad0b3d
597
py
Python
authlib/common/__init__.py
jmrafael/Streamlit-Authentication
208e9d8f116d25d420f41b6d01c13f063052805b
[ "MIT" ]
25
2021-08-25T12:51:14.000Z
2022-03-29T22:56:21.000Z
authlib/common/__init__.py
jmrafael/Streamlit-Authentication
208e9d8f116d25d420f41b6d01c13f063052805b
[ "MIT" ]
6
2021-09-09T23:09:51.000Z
2022-03-11T11:11:23.000Z
authlib/common/__init__.py
jmrafael/Streamlit-Authentication
208e9d8f116d25d420f41b6d01c13f063052805b
[ "MIT" ]
7
2021-09-04T08:06:21.000Z
2022-03-07T23:40:02.000Z
from functools import wraps # Easy inteceptor for tracing def trace_activity(fn, trace=True): @wraps(fn) def wrapper(*args, **kwargs): if trace: print(f'TRACE: calling {fn.__name__}(), positional args: {args}, named args: {kwargs}') return fn(*args, **kwargs) return wrapper # E...
27.136364
99
0.666667
74
597
5.081081
0.472973
0.132979
0.103723
0.151596
0.199468
0.138298
0
0
0
0
0
0
0.221106
597
21
100
28.428571
0.808602
0.070352
0
0.133333
0
0
0.139746
0
0
0
0
0
0
1
0.266667
false
0
0.066667
0
0.6
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
24b03fa844ab8c0271326cc441a68fa308092476
862
py
Python
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
19
2017-06-14T09:44:17.000Z
2022-01-13T10:46:39.000Z
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
63
2017-06-01T12:10:10.000Z
2018-09-10T15:39:06.000Z
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
5
2017-06-20T17:27:14.000Z
2021-03-25T15:36:32.000Z
from picraftzero.log import logger from picraftzero.interfaces.hardware.providers import MotorProvider from picraftzero.utils import constrain from picraftzero.utils import dedupe from picraftzero.thirdparty import piconzero as pz class PiconzeroMotor(MotorProvider): def __init__(self, motor_id): se...
21.55
67
0.646172
108
862
5
0.416667
0.138889
0.081481
0.096296
0
0
0
0
0
0
0
0.028302
0.262181
862
39
68
22.102564
0.820755
0.048724
0
0.086957
0
0
0.020859
0
0
0
0
0.025641
0
1
0.173913
false
0.086957
0.217391
0
0.478261
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
1
0
0
0
0
0
2
24b56efa9d500dcf0b06602f9619ff3fe9fa427e
1,462
py
Python
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models class Industry(models.Model): name = models.CharField(max_length=100) def __unicode__(self): return self.name class Meta: verbose_name_plural = 'Industries' ordering = ['name'] class Location(models.Model): ...
27.074074
68
0.683311
174
1,462
5.545977
0.321839
0.124352
0.149223
0.198964
0.35544
0.273575
0.145078
0.145078
0.145078
0.145078
0
0.024957
0.205198
1,462
53
69
27.584906
0.805508
0
0
0.275
0
0
0.032832
0
0
0
0
0
0
1
0.1
false
0
0.05
0.1
0.9
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
1
0
0
2
24c4ffc155dd53d094b28e7625d2fdd8fac1b525
16,095
py
Python
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
import torch import torchvision.models as models from torch.profiler import profile, record_function, ProfilerActivity from torch.utils.data import DataLoader from torchvision import datasets from torchvision.transforms import ToTensor, Lambda, Compose import matplotlib.pyplot as plt from signal_perceptron import * fro...
42.023499
134
0.555079
1,741
16,095
4.950603
0.118323
0.089105
0.045945
0.038984
0.733728
0.709131
0.696601
0.64207
0.624666
0.612136
0
0.024252
0.167381
16,095
382
135
42.133508
0.618909
0.050885
0
0.579288
0
0
0.132698
0.034855
0
0
0
0
0
1
0.003236
false
0
0.038835
0
0.042071
0.271845
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
24c8d1c38168585d44647b43e92ca82459971f90
1,198
py
Python
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
# languages = [ # ("EL", "EL"), # ("EN", "EN"), # ] # gender = [ # ("", "---"), # ("M", "Άρρεν / Male"), # ("F", "Θήλυ / Female"), # ] # # age = [ # ("", "---"), # ("u17", "-17"), # ("18-25", "18-25"), # ("26-35", "26-35"), # ("36-45", "36-45"), # ("46-54", "46-54"), # (...
22.185185
52
0.413189
98
1,198
5.040816
0.734694
0.016194
0
0
0
0
0
0
0
0
0
0.059158
0.266277
1,198
53
53
22.603774
0.502844
0.911519
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
24cc3e9f8f00bbd38841b1efdedf97cebf49800c
255
py
Python
src/reusable_mongodb_connection/exceptions.py
Corona-Travel/reusable_mongodb_connection
c7555a82bfa01e5eccdec66885c24eadaac9237b
[ "MIT" ]
1
2021-11-12T12:07:39.000Z
2021-11-12T12:07:39.000Z
src/reusable_mongodb_connection/exceptions.py
Corona-Travel/reusable_mongodb_connection
c7555a82bfa01e5eccdec66885c24eadaac9237b
[ "MIT" ]
null
null
null
src/reusable_mongodb_connection/exceptions.py
Corona-Travel/reusable_mongodb_connection
c7555a82bfa01e5eccdec66885c24eadaac9237b
[ "MIT" ]
null
null
null
class ReusableMongodbConnectionError(ValueError): def __init__( self, description: str = "An error occurred in reusable_mongodb_connection", *args, **kwargs ): super().__init__(description, *args, **kwargs)
28.333333
78
0.635294
22
255
6.909091
0.818182
0.131579
0
0
0
0
0
0
0
0
0
0
0.262745
255
8
79
31.875
0.808511
0
0
0
0
0
0.188235
0.105882
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
24ccf2defe0ea32cf2296c83948d69249f022e2d
318
py
Python
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
from flask import redirect, render_template, request from . import main @main.route('/', methods=['GET']) def index(): return render_template("index.html") @main.route('/shutdown') def server_shutdown(): shutdown = request.environ.get('werkzeug.server.shutdown') shutdown() return 'Shutting down...'
24.461538
62
0.704403
38
318
5.815789
0.552632
0.126697
0.199095
0
0
0
0
0
0
0
0
0
0.138365
318
12
63
26.5
0.806569
0
0
0
0
0
0.198113
0.075472
0
0
0
0
0
1
0.2
false
0
0.2
0.1
0.6
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
1
0
0
2
24d41b9984794f90bfe975ad6ef0215df1d22709
226
py
Python
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
#Submitted by thr3sh0ld #Logic: Swap half the length of string with the other half class Solution: def reverseString(self, s: List[str]) -> None: for i in range(len(s)//2): s[i], s[-i-1] = s[-i-1], s[i]
37.666667
58
0.606195
40
226
3.425
0.7
0.058394
0.043796
0.058394
0.058394
0
0
0
0
0
0
0.02907
0.238938
226
6
59
37.666667
0.767442
0.349558
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
0
2
24ff234f920bab09fe239546c8831800ee8f0daa
3,968
py
Python
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
"""Add some sphinx-docutils directives related to lessons. """ # pylint: disable=E701 import os from docutils import nodes from docutils.parsers.rst.directives.admonitions \ import Admonition as AdmonitionDirective from sphinx.util.docutils import SphinxDirective from sphinx.util.logging import getLogger from . im...
34.206897
130
0.681956
460
3,968
5.686957
0.406522
0.058104
0.073395
0.016055
0
0
0
0
0
0
0
0.004526
0.220514
3,968
115
131
34.504348
0.841254
0.327369
0
0
0
0
0.076685
0
0
0
0
0
0
1
0.063492
false
0.126984
0.095238
0
0.539683
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
1
0
0
2
7009af1b31e60c7a799c07d75cb72a9357e77d47
2,135
py
Python
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
9
2022-02-23T10:32:44.000Z
2022-03-27T17:55:43.000Z
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
""" Assign an annotation (and possibly a value) to a variable. """ from _ast import AnnAssign, Name from typing import Optional from src.compiler.Util import Util from src.pyexpressions.abstract.PyExpression import PyExpression from src.pyexpressions.concrete.PyName import PyName from src.pyexpressions.highlevel.PyIde...
35
110
0.671194
265
2,135
5.218868
0.373585
0.040492
0.043384
0.045553
0
0
0
0
0
0
0
0
0.242623
2,135
60
111
35.583333
0.855288
0.219204
0
0.066667
0
0
0.065839
0.031677
0
0
0
0
0
1
0.066667
false
0
0.333333
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
1
0
1
0
0
2
70175e2bdb8d47ee92c2a767d8aea7a4295bf422
935
py
Python
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
import datetime import enum class LogLevel(enum.Enum): ERROR = 0 INFO = 1 DEBUG = 2 class LogManager: def __init__(self, domain_name, log_level=LogLevel.INFO, output_type='text'): self.__domain_name = domain_name self.__output_type = output_type self.__log_level = self.__get_...
31.166667
136
0.627807
122
935
4.418033
0.368852
0.222635
0.077922
0.083488
0.142857
0.142857
0.100186
0
0
0
0
0.004329
0.258824
935
30
137
31.166667
0.773449
0.008556
0
0
0
0.043478
0.12311
0.106911
0
0
0
0
0
1
0.130435
false
0
0.086957
0
0.521739
0.086957
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
1
0
0
2
7019f22f9c05c70055ec9fdf171e0251420fb7a8
1,090
py
Python
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"Command-Line Arguments" ''' The sys module is also where Python makes available the words typed on the command that is used to start a Python script. These words are usually referred to as commandline arguments and show up in sys.argv, a built-in list of strings. ''' import sys print(sys.argv) ''' C:\...\PP4E\S...
32.058824
89
0.718349
172
1,090
4.552326
0.55814
0.076628
0.042146
0.065134
0.213282
0.164751
0.074074
0.074074
0
0
0
0.003348
0.177982
1,090
33
90
33.030303
0.870536
0.020183
0
0
0
0
0.366667
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
7024b9fb216d801eb9ede1d16916c23d924df7a0
508
py
Python
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
3
2019-07-04T05:00:36.000Z
2020-02-09T14:20:35.000Z
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
null
null
null
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
null
null
null
#coding: utf-8 import os import time def get_version_string(dev = False, safe = True): version = ["SDT-"] try: version.append(os.environ['GITLAB_TAG'].replace(".", "")) except: version.append("400") try: version.append(os.environ['CI_COMMIT_SHA'][:8]) except: version.append("M") try: version.append(...
17.517241
59
0.653543
73
508
4.452055
0.479452
0.28
0.147692
0.166154
0.243077
0.166154
0
0
0
0
0
0.016055
0.141732
508
29
60
17.517241
0.729358
0.025591
0
0.272727
0
0
0.092929
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.227273
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
70286ba80aa0dcbcd5927cc49e7eaf9282e97eb5
11,998
py
Python
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
1
2020-06-26T10:37:56.000Z
2020-06-26T10:37:56.000Z
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
null
null
null
examples/virsim/heatmap_PO.py
wedeling/FabUQCampaign
f89ee1a7b72ec1c41d6bf662f1b42acd8065cb32
[ "BSD-3-Clause" ]
2
2020-04-20T12:50:11.000Z
2020-04-24T10:35:13.000Z
""" @author: Federica Gugole __license__= "LGPL" """ import numpy as np import easyvvuq as uq import os import pandas as pd from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib.ticker import ScalarFormatter, NullFormatter plt.rcParams.update({'font.size': 20}) plt.rcParams['figure.f...
44.60223
138
0.699783
2,331
11,998
3.254826
0.095238
0.057203
0.073547
0.088573
0.795571
0.783709
0.743113
0.632925
0.592988
0.561091
0
0.072016
0.108851
11,998
268
139
44.768657
0.63758
0.035923
0
0.176471
0
0
0.091005
0.023278
0
0
0
0
0
1
0
false
0
0.037433
0
0.037433
0.016043
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7030f0982bdae2e9f2824ec5016f8698dc386f6c
496
py
Python
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
omnibot/numeric.py
AunSiro/omnibot
7f95814907c5903c5996c70c22e2342562dedadb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Oct 22 18:21:32 2020 @author: Siro Moreno """ import numpy as np l = 0.2096 L = 0.2096 L_2 = (L + l) / (2 ** 0.5) l_2 = 0.0 r = 0.0667 m = 15.75 I_w = 0.00266 I_z = 0.461 phi_dot_max = 2 * np.pi * 7000 / (49 * 60) psi_dot_max = phi_dot_max * 0.0667 / (2 ** 0.5 * 0.29642) ...
17.714286
63
0.566532
109
496
2.385321
0.440367
0.038462
0.138462
0.053846
0.169231
0.169231
0.169231
0.169231
0.169231
0
0
0.264865
0.254032
496
27
64
18.37037
0.437838
0.16129
0
0.25
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7036e2c26d71d55c8481efe9233c9812c9f0408e
277
py
Python
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
medicalboard/users/forms.py
japrogramer/BoardStream
d9d30bf2d873591f3be377e14885fc70e26a74b8
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django import forms from django.contrib.auth import get_user_model from .models import Follow # Follow = apps.get_model('Users', 'Follow') class FollowForm(forms.ModelForm): class Meta: exclude = set() model = Follow
17.3125
46
0.711191
37
277
5.243243
0.513514
0.154639
0
0
0
0
0
0
0
0
0
0
0.205776
277
15
47
18.466667
0.881818
0.151625
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
70813d4b3c14a6bf03e7e3ca20a7dd8dc96c4b00
1,859
py
Python
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
2
2017-11-10T18:06:36.000Z
2018-01-25T13:53:10.000Z
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
app/user/views.py
spark8103/deploy
7a99c5fcb11a93429814d2a519dca5ea3f99ea3a
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import render_template, redirect, request, url_for, flash, current_app from flask_login import login_user, logout_user, login_required, UserMixin from . import user from .forms import LoginForm from .. import login_manager from config import Config import time users = Config.USER_LIST clas...
24.786667
103
0.661646
241
1,859
4.991701
0.307054
0.05985
0.0399
0.04655
0.275977
0.244389
0.244389
0.244389
0.209476
0.209476
0
0.000696
0.227542
1,859
75
104
24.786667
0.837047
0.006993
0
0.385965
0
0
0.097019
0
0
0
0
0
0
0
null
null
0.070175
0.122807
null
null
0.017544
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
1
0
0
0
0
0
2
7084f8adc7a1f6ea7b5b0235bc00bc3a8d6d415b
3,138
py
Python
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
tests/template.py
NehaKeshan/nanomine-graph
d3ebd2415aad95d481bfbde12c279d6176af93ed
[ "MIT" ]
null
null
null
from . import ingest_tester from whyis_test_case import WhyisTestCase class IngestTestSetup(WhyisTestCase): @classmethod def setUpClass(cls): print("Setting Up Class") cls.maxDiff = None cls.expected_data = ingest_tester.autoparse(cls.file_under_test) def setUp(self): inge...
33.031579
73
0.688655
376
3,138
5.457447
0.305851
0.111111
0.132554
0.155945
0.241228
0.098441
0.025341
0
0
0
0
0
0.226259
3,138
94
74
33.382979
0.84514
0.061823
0
0
0
0
0.068484
0
0
0
0
0.010638
0.030769
1
0.292308
false
0
0.030769
0
0.369231
0.061538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
7087b1595e41533f5047a1198773514a488662fd
11,862
py
Python
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
Autonomous Car Locator.py
thedrgman/Autonomous-Car-Locator
d21c72d1d110e9f959cfd4d59f454f9c4193f06d
[ "BSD-3-Clause" ]
null
null
null
""" Autonomous Car Locator This is a program that helps autonomous cars to find out the location and direction of other autonomous cars. It is all based on what is provided by the car and from what the car detects. By David Gameiro """ import random def locator(): cars = [ { "speed" ...
45.623077
121
0.42986
1,236
11,862
4.078479
0.136731
0.019044
0.044436
0.033327
0.52807
0.48542
0.441579
0.412021
0.369768
0.336441
0
0.012459
0.43163
11,862
259
122
45.799228
0.735242
0.114062
0
0.488789
0
0.008969
0.283737
0
0
0
0
0
0
1
0.044843
false
0.080717
0.004484
0
0.076233
0.44843
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
1
0
2
7090b5633b08f50dcfd4327962f33bf944fbe670
237
py
Python
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
LeetCode/lc0137-Single Number II.py
rahulbakshee/cp
0299de012e5d09bb13636f4fdcc9481da1fbc54f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/single-number-ii/ class Solution: def singleNumber(self, nums: List[int]) -> int: sum_nums = sum(nums) sum_set = sum(set(nums)) * 3 return (sum_set - sum_nums) // 2
26.333333
51
0.586498
32
237
4.21875
0.625
0.155556
0.148148
0
0
0
0
0
0
0
0
0.011561
0.270042
237
8
52
29.625
0.768786
0.198312
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
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
1
0
0
2
70a079756e35eca1c02df3f616492a74895b5e66
3,785
py
Python
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
makepip/makepip.py
ao/makepip
6552aa2161e69b63d0564c03b2f36a3f1cd90a34
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from pathlib import Path home = str(Path.home()) import datetime now = datetime.datetime.now() def main(): print("Please enter the following questions to generate your new Pip!") name = input("Pip name: ") description = input("Description: ") author_name = input("Author name: "...
27.035714
123
0.674769
552
3,785
4.547101
0.36413
0.03506
0.016733
0.023904
0.078884
0.02988
0
0
0
0
0
0.001616
0.182563
3,785
139
124
27.230216
0.809632
0.005284
0
0.109091
1
0.009091
0.673751
0.049681
0
0
0
0
0
1
0.009091
false
0
0.045455
0
0.072727
0.018182
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
560b81c62a615cdb5ce98cccdf4071f843bedca3
315
py
Python
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
2
2020-06-12T11:11:14.000Z
2020-07-16T08:15:53.000Z
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
setup.py
dkasak/pymodoro
fb17cb29f9473727d3607c14da59b12a9b63d02a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pymodoro', version='0.4', packages=['pymodoro'], package_data={'pymodoro': ['data/*']}, entry_points={ "console_scripts": [ "pymodoro = pymodoro.pymodoro:main", "pymodoroi3 = pymodoro.pymodoroi3:main" ] }, )
21
51
0.565079
28
315
6.25
0.642857
0.182857
0
0
0
0
0
0
0
0
0
0.017544
0.27619
315
14
52
22.5
0.75
0
0
0
0
0
0.374603
0.146032
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
561183bf158e6122876d8d2dc908ce0fd0c44f33
541
py
Python
tests/test_gui/test_components/test_copy_button.py
ryan-lingle/node-launcher
4f1f7087a28d76f5b8153adac548d09b0558f6d5
[ "MIT" ]
249
2019-02-01T17:17:09.000Z
2022-03-18T21:26:41.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
299
2019-02-02T02:01:02.000Z
2022-02-21T05:13:20.000Z
tests/test_gui/test_components/test_copy_button.py
justinmichael3x/node-launcher
5a2a646b01803fe284fa18bee99c13c7cbf04498
[ "MIT" ]
49
2019-02-11T14:46:40.000Z
2022-02-20T04:05:14.000Z
import pytest from PySide2.QtCore import Qt from PySide2.QtGui import QClipboard from PySide2.QtTest import QTest from node_launcher.gui.components.copy_button import CopyButton @pytest.fixture def copy_button() -> CopyButton: copy_button = CopyButton(button_text='Test Me', copy_text='copy_this') return copy...
28.473684
74
0.768946
71
541
5.676056
0.450704
0.173697
0.148883
0
0
0
0
0
0
0
0
0.006466
0.142329
541
18
75
30.055556
0.862069
0
0
0
0
0
0.046211
0
0
0
0
0
0.076923
1
0.153846
false
0
0.384615
0
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
56192f9c7a8a841e4444c9e8024df8a56b978917
4,881
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Util/Introspector.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # Copyright (C) 2006 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser Ge...
35.889706
93
0.69453
674
4,881
5.002967
0.382789
0.022835
0.017794
0.011566
0.116548
0.090154
0.056346
0.035587
0.035587
0.035587
0
0.006455
0.206515
4,881
135
94
36.155556
0.864188
0.186642
0
0
0
0
0.314735
0
0
0
0
0
0
0
null
null
0.058824
0.176471
null
null
0.235294
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
1
0
0
0
0
0
2
5619839185e18406d5f02290ccde9ac7b3a514d6
119
py
Python
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2022-02-21T11:55:39.000Z
2022-02-21T11:55:39.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
7
2022-02-05T09:04:20.000Z
2022-02-06T15:31:28.000Z
oimdp/__init__.py
OpenITI/oimdp
9cb0dfb298b90d85f08e248633369c0c3c494c65
[ "MIT" ]
1
2021-07-09T06:23:26.000Z
2021-07-09T06:23:26.000Z
from .parser import parser def parse(text): return parser(text) __all__ = [ 'parse' ] __version__ = '1.1.0'
9.916667
26
0.638655
16
119
4.25
0.6875
0
0
0
0
0
0
0
0
0
0
0.032609
0.226891
119
11
27
10.818182
0.706522
0
0
0
0
0
0.084034
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
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
1
0
0
0
2
5641f0fd6f31eed051b1b8fdfd70047f7ef7c686
463
py
Python
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
1
2020-10-15T06:42:34.000Z
2020-10-15T06:42:34.000Z
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
lib/blockchain/jmcorgan.py
FuzzyBearBTC/counterpartyd
0733463249b71901daba5d73c7b30a334860bb0a
[ "MIT" ]
null
null
null
''' http://insight.bitpay.com/ ''' import logging import requests import time from lib import config, exceptions, util bitcoin_rpc_session = None def check(): return True def searchrawtransactions(address): unconfirmed = util.unconfirmed_transactions(address) rawtransactions = util.rpc('searchrawtransac...
23.15
81
0.742981
53
463
6.433962
0.660377
0.164223
0
0
0
0
0
0
0
0
0
0.025641
0.157667
463
19
82
24.368421
0.848718
0.056156
0
0
0
0
0.079254
0.048951
0
0
0
0
0
1
0.166667
false
0
0.333333
0.083333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
564e73deb5725930bc5cf0b682535387843bd361
2,032
py
Python
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
5
2017-03-30T08:31:14.000Z
2020-09-17T07:35:45.000Z
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/gribfile.py
weathersource/grib_api
24e3bb60800b6488103c0b85293f4fe9b3be77c4
[ "ECL-2.0", "Apache-2.0" ]
6
2017-07-30T14:42:12.000Z
2020-09-23T20:37:43.000Z
""" ``GribFile`` class that implements a GRIB file that closes itself and its messages when it is no longer needed. Author: Daniel Lee, DWD, 2014 """ import gribapi from gribmessage import GribMessage class GribFile(file): """ A GRIB file handle meant for use in a context manager. Individual messages c...
30.787879
79
0.614173
257
2,032
4.719844
0.428016
0.079143
0.034625
0.031327
0.046167
0
0
0
0
0
0
0.003477
0.292323
2,032
65
80
31.261538
0.840056
0.541831
0
0.083333
0
0
0.00119
0
0
0
0
0
0
1
0.291667
false
0
0.083333
0.083333
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5651a5988f1a40d8d84c86f66a6de01ecbb914b9
361
py
Python
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
3
2015-08-06T00:05:06.000Z
2017-01-16T15:59:41.000Z
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
fabfile.py
ptigas/antihoax
0e12ade67a9feee54061eac2d43eaccab3924e6a
[ "MIT" ]
null
null
null
from fabric.api import * env.user = 'ptigas' env.hosts = ['hocus.io'] def deploy(): with cd('repos/hocus'): run('git pull') with cd('repos/hocus/webapp'): run('composer install') with cd('repos/hocus'): run('rsync -rv --exclude=vendor webapp/* ~/Sites/hocus.io/') run('cp -r ~/Sites/hocus.io/settings....
22.5625
79
0.65097
55
361
4.272727
0.563636
0.119149
0.140426
0.204255
0.161702
0
0
0
0
0
0
0
0.138504
361
15
80
24.066667
0.755627
0
0
0.181818
0
0.090909
0.556787
0.174515
0
0
0
0
0
1
0.090909
true
0
0.090909
0
0.181818
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
565251327ee0a8f38bb41a346c65b4fe497ff914
949
py
Python
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
1
2020-12-19T06:42:54.000Z
2020-12-19T06:42:54.000Z
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
src/logics/entityIndexerLogic.py
mdmuidulalam/little-search-navigator-indexer
025539aa3a1a403f516f45c6a8601d237895ae3e
[ "MIT" ]
null
null
null
from src.helpers.staticHelper import StaticHelper from src.routes.interfaces.iEntityIndexerLogic import IEntityIndexerLogic from src.logics.interfaces.iIndexingAlgorithm import IIndexingAlgorithm from src.logics.interfaces.iEntityData import IEntityData class EntityIndexerLogic(IEntityIndexerLogic): def __init__(s...
43.136364
87
0.758693
80
949
8.95
0.3625
0.146648
0.036313
0.064246
0
0
0
0
0
0
0
0.002481
0.150685
949
21
88
45.190476
0.885856
0.211802
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
5655be4e2b47674fc1874d360bbc03ea8fef9a3b
377
py
Python
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
4
2022-01-14T12:31:33.000Z
2022-01-28T10:25:44.000Z
hostel/models.py
Web-Team-IITI-Gymkhana/gymkhana_server
67f4eba9dc0a55de04b3006ffeb5f608086b89ce
[ "MIT" ]
null
null
null
from server.connection import Base from sqlalchemy import Column, String from sqlalchemy.dialects.postgresql import UUID class Hostel(Base): __tablename__ = "hostel" id = Column(UUID(as_uuid=True), primary_key=True) name = Column(String(255), nullable=False) description = Column(String(255), nullable=...
26.928571
53
0.732095
48
377
5.541667
0.583333
0.135338
0.112782
0.172932
0.210526
0
0
0
0
0
0
0.019231
0.172414
377
13
54
29
0.833333
0
0
0
0
0
0.015915
0
0
0
0
0
0
1
0.1
false
0
0.3
0.1
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
5659bca9797572b75efd680fe7b26dc41264ab05
892
py
Python
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
setup.py
truveris/arrow
1624fd20d296bff197ea6a08385e1d234220484c
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='arrow', version='0.4.4', description='Better dates and times for Python', url='http://crsmithdev.com/arrow', author='Chris Smith', author_email="crsmithdev@gmail.com", license='Apache...
27.875
70
0.610987
95
892
5.694737
0.642105
0.140481
0.184843
0.096118
0
0
0
0
0
0
0
0.020958
0.251121
892
31
71
28.774194
0.788922
0
0
0
0
0
0.510662
0
0
0
0
0
0
1
0
true
0
0.103448
0
0.103448
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
565dfbf75306a316f72db1f51facc9031f0feace
3,184
py
Python
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
src/the_teleop/TheTeleop.py
NuenoB/TheTeleop
57e3f745d391743fac408fb44bf20ffad945aa19
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import os import rospy import rospkg from readbag import restore from qt_gui.plugin import Plugin from python_qt_binding.QtCore import Qt from python_qt_binding import loadUi from python_qt_binding.QtGui import QFileDialog, QGraphicsView, QIcon, QWidget from PyQt4 import QtGui, QtCore from exam...
31.524752
107
0.737123
442
3,184
5.160633
0.452489
0.048224
0.015783
0.024989
0.067514
0.040333
0.040333
0
0
0
0
0.001895
0.171482
3,184
100
108
31.84
0.862775
0.436558
0
0.0625
0
0
0.053947
0
0
0
0
0.01
0
0
null
null
0.0625
0.25
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
566d5c200e2aef246e18708df545abf4a5788862
1,233
py
Python
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
1
2021-09-17T12:54:56.000Z
2021-09-17T12:54:56.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
42
2021-08-20T14:09:48.000Z
2021-09-25T12:51:04.000Z
backend/app/snowflake.py
GJCav/wy-rsv
705c1d97bbf1d2d8e29ef113928644236e4d8c60
[ "MIT" ]
2
2021-08-21T15:37:53.000Z
2021-09-17T12:54:59.000Z
import threading import time def _stamp(): return int(time.time()*1000) _base = int(time.mktime(time.strptime('2020-1-1', '%Y-%m-%d'))*1000) class Snowflake(): def __init__(self, machine: int = 0): self.machine = machine & 0b11111 self._mutex = threading.Lock() self._lstTime = _stamp...
22.833333
68
0.514193
151
1,233
4.019868
0.350993
0.09061
0.105437
0.098847
0.082372
0.082372
0
0
0
0
0
0.066667
0.343066
1,233
53
69
23.264151
0.682716
0.073804
0
0.117647
0
0
0.014235
0
0
0
0
0
0
1
0.205882
false
0
0.058824
0.117647
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
56700bfa5388728c85765f29f5c4e7e6f06cee4a
962
py
Python
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
apps/userprofile/forms.py
amirahanisadlin/LearnDjangoVue
a9dd2f2123601b17668f08f593ece9bf8d27856c
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=50, required=True) last_name = forms.CharField(max_length=50, required=True) email = forms.EmailField(max_l...
43.727273
91
0.674636
115
962
5.495652
0.330435
0.094937
0.151899
0.199367
0.420886
0.375
0.129747
0.129747
0
0
0
0.013699
0.165281
962
22
91
43.727273
0.77335
0
0
0
0
0
0.166147
0
0
0
0
0
0
1
0.055556
false
0.166667
0.166667
0
0.5
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
1
0
0
0
0
0
2
5670f35e40b02807226db734417e790c3490e50a
779
py
Python
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] simple prime streaming.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
# see https://www.codewars.com/kata/5a908da30025e995880000e3/solutions/python from TestFunction import Test def prime_series(number): is_prime = lambda number: all( number%i != 0 for i in range(2, int(number**.5)+1) ) ret = '' for n in range(2, number): if is_prime(n) == True: ret += str(n) re...
29.961538
85
0.679076
127
779
4.070866
0.496063
0.154739
0.247582
0.324952
0
0
0
0
0
0
0
0.16042
0.143774
779
25
86
31.16
0.614693
0.096277
0
0
0
0
0.071225
0
0
0
0
0
0.4
1
0.1
false
0
0.05
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
567114ba199318d542e09eb261fb42b250b3ecc5
707
py
Python
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2016-03-26T19:30:38.000Z
2016-03-26T19:30:38.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
1
2018-05-25T13:30:46.000Z
2018-05-25T13:30:46.000Z
tests/benchmarks/gendata.py
simonwittber/fibra
1761ba79cb643b0392bb82d7e80ce9e55bb75275
[ "Unlicense" ]
null
null
null
from pygooglechart import Chart from pygooglechart import SimpleLineChart from pygooglechart import Axis try: import stackless except ImportError: stackless = None import timeit import gc results = dict() RANGE = range(0, 100000, 10000)[1:] if stackless: libs = ["stacklessb", "fibrab", "kamaeliab"] else:...
22.09375
110
0.643564
96
707
4.739583
0.520833
0.112088
0.151648
0
0
0
0
0
0
0
0
0.034234
0.214993
707
31
111
22.806452
0.785586
0
0
0
0
0
0.148725
0.031161
0
0
0
0
0
0
null
null
0
0.32
null
null
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
567c444373e2af7552606978f05a112fd3fb6f08
13,282
bzl
Python
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
14
2021-12-04T11:15:40.000Z
2022-03-01T23:05:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
6
2021-12-13T06:32:16.000Z
2022-02-28T14:44:38.000Z
swc/cli_repositories.bzl
aspect-build/rules_swc
7e5aad0cce6db87e272b1bd2c6537a2cf016d4d6
[ "Apache-2.0" ]
2
2021-12-14T09:35:12.000Z
2021-12-24T16:31:14.000Z
"@generated by @aspect_rules_js//npm/private:npm_translate_lock.bzl from pnpm lock file @aspect_rules_swc@aspect_rules_swc//swc:pnpm-lock.yaml" load("@aspect_rules_js//npm:npm_import.bzl", "npm_import") def npm_repositories(): "Generated npm_import repository rules corresponding to npm packages in @aspect_rules_s...
32.957816
143
0.518973
1,348
13,282
4.898368
0.112018
0.046645
0.055126
0.053309
0.513554
0.476299
0.449038
0.444646
0.429653
0.420869
0
0.093551
0.313507
13,282
402
144
33.039801
0.630621
0.020102
0
0.546174
1
0.005277
0.40393
0.211565
0
0
0
0
0
1
0.002639
true
0
0.063325
0
0.065963
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
1
0
0
0
0
0
0
2
568434517b25ee3fdda6d9fdafd843bc88f238d6
2,591
py
Python
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
833
2016-09-08T13:27:36.000Z
2022-03-27T07:10:48.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
528
2016-05-23T09:17:04.000Z
2022-03-30T12:45:50.000Z
src/e2e_tests/general/test_main_page.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
214
2016-09-08T14:46:41.000Z
2022-03-25T01:04:14.000Z
from common.pages import Page import allure from common.pages import is_displayed, is_enabled, is_disabled from delayed_assert import expect, assert_expectations from allure import severity, severity_level @severity(severity_level.CRITICAL) @allure.title("Check presented elements on main page") def test_home_page(bro...
47.981481
101
0.766113
363
2,591
5.195592
0.168044
0.114528
0.159067
0.201485
0.748144
0.706787
0.660127
0.492047
0.492047
0.397667
0
0
0.145118
2,591
53
102
48.886792
0.851467
0
0
0.45
0
0
0.248358
0
0
0
0
0
0.075
1
0.05
false
0
0.125
0
0.175
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5684408b6c388d68319ade18652fa15a6c742db7
714
py
Python
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
5
2020-04-18T17:23:18.000Z
2021-04-05T04:50:03.000Z
backend/mono-back/User.py
sotapmc/Monologue
d2dcd3ab1fcd67e92b24495ee2472c08f5532741
[ "Apache-2.0" ]
11
2020-04-22T03:40:25.000Z
2021-05-01T02:45:12.000Z
backend/mono-back/User.py
Subilan/Monologue
7f81a933fb123f4d87acc07fa10b845ef13ec56c
[ "Apache-2.0" ]
1
2020-04-22T13:08:21.000Z
2020-04-22T13:08:21.000Z
from werkzeug.security import check_password_hash, generate_password_hash from Database import DBController class UserManager: def __init__(self, username): self.username = username pass def createUser(self, password): db = DBController() cur = db.cursor() args = (self....
32.454545
77
0.634454
81
714
5.469136
0.469136
0.108352
0.090293
0.085779
0.112867
0
0
0
0
0
0
0
0.259104
714
22
78
32.454545
0.837429
0
0
0.210526
1
0
0.124476
0
0
0
0
0
0
1
0.157895
false
0.263158
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
5692c82ddaadcc9854e670c4098765e47d7b4ad7
580
py
Python
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
content/migrations/0025_auto_20200522_1158.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-05-22 16:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('content', '0024_auto_20200430_1225'), ] operations = [ migrations.AlterField( model_name='song', name='last_changed', ...
24.166667
69
0.594828
61
580
5.491803
0.639344
0.119403
0.149254
0.173134
0.40597
0.220896
0
0
0
0
0
0.073171
0.293103
580
23
70
25.217391
0.743902
0.074138
0
0.352941
1
0
0.117757
0.042991
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3b165d213b6fd767dcbf91f3605c40167feda0ae
421
py
Python
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
def kernel_01_hydro(LEN_1D): #! init import numpy as np r = np.random.randn(1) t = np.random.randn(1) q = np.random.randn(1) x = np.zeros(LEN_1D) y = np.random.randn(LEN_1D) zx = np.random.randn(LEN_1D + 11) #! loop for k in range(LEN_1D): x[k] = q + y[k] * (r * zx[k+10...
23.388889
65
0.522565
81
421
2.592593
0.37037
0.166667
0.309524
0.2
0.171429
0
0
0
0
0
0
0.086667
0.287411
421
17
66
24.764706
0.613333
0.052257
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3b1d776e41dc299f7cabc58c3c4496054743240c
310
py
Python
__init__.py
jamespacileo/packaginator
d4b51ae16e0658fade91e1a6c4ce987ee747b053
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
# -*- coding: utf-8 -*- __about__ = """ This project comes with the bare minimum set of applications and templates to get you started. It includes no extra tabs, only the profile and notices tabs are included by default. From here you can add any extra functionality and applications that you would like. """
34.444444
75
0.758065
49
310
4.714286
0.836735
0
0
0
0
0
0
0
0
0
0
0.003922
0.177419
310
8
76
38.75
0.901961
0.067742
0
0
0
0
0.926829
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3b1def38d43dac35f2085935c4181e7f579d703d
209
py
Python
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from base import BaseHandler, LanguageHandler, NullHandler from text import SingleSentenceHandler __all__ = [ "LanguageHandler", "NullHandler", "SingleSentenceHandler", ]
19
58
0.717703
17
209
8.588235
0.705882
0.356164
0
0
0
0
0
0
0
0
0
0.00578
0.172249
209
10
59
20.9
0.83815
0.100478
0
0
0
0
0.252688
0.112903
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3b3016e674b62043a2e132fe78e7e8b49b36eeef
1,231
py
Python
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
import unittest from app import db from app.models import User class TestUser(unittest.TestCase): ''' Class that tests the User class ''' def setUp(self): self.new_user = User(username = "Diana",fullname = "Diana",email = "diana@gmail.com", bio= "A girl", profile_pic_url="imageurl", password =...
34.194444
155
0.676686
163
1,231
4.93865
0.361963
0.095652
0.150311
0.142857
0.242236
0.079503
0
0
0
0
0
0.001016
0.20065
1,231
36
156
34.194444
0.817073
0.025183
0
0.076923
0
0
0.074262
0
0
0
0
0
0.346154
1
0.230769
false
0.230769
0.115385
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
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
3b34ddac11a67c7eb3731fd10bcd57b32d475cfe
660
py
Python
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
3
2019-07-25T01:56:20.000Z
2020-10-02T22:30:36.000Z
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
null
null
null
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
1
2020-04-17T22:10:24.000Z
2020-04-17T22:10:24.000Z
from auxilliary_functions import * def read_file(filename): """ Reads in a file as utf-8. :param filename: Filepath to the file to be read. """ with open(filename, 'r',encoding='utf-8') as file: return file.read() def moralize(input_text, output_format='pydict'): """ Takes input t...
27.5
101
0.7
95
660
4.726316
0.547368
0.080178
0.071269
0
0
0
0
0
0
0
0
0.003839
0.210606
660
23
102
28.695652
0.857965
0.454545
0
0
0
0
0.038339
0
0
0
0
0
0
1
0.285714
false
0
0.142857
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
1
0
0
0
0
1
0
0
2
3b3fd98acac07ed593a7ca205f7cd51abad26fa3
1,585
py
Python
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
2
2018-12-21T12:42:02.000Z
2021-05-12T09:01:22.000Z
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
null
null
null
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
1
2018-12-06T10:12:18.000Z
2018-12-06T10:12:18.000Z
# -*- coding: utf-8 -*- import ast import os import re from setuptools import find_packages, setup setup( name='hailstorms', version='1.0.5', description="Distributed load testing framework", long_description="""Hailstorm is a simplified config based, distributed load testing framework""", classif...
33.020833
102
0.603155
169
1,585
5.60355
0.573965
0.140444
0.184794
0.10982
0
0
0
0
0
0
0
0.031327
0.2347
1,585
47
103
33.723404
0.749382
0.013249
0
0.046512
0
0
0.552851
0.015375
0
0
0
0
0
1
0
true
0
0.093023
0
0.093023
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
3b4b9354311551bc2bc10d92b23b0b7e560e5d2c
510
py
Python
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
3
2020-09-27T02:09:52.000Z
2022-02-25T02:30:24.000Z
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
8
2020-09-24T07:47:14.000Z
2020-10-16T08:48:38.000Z
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
4
2020-09-24T07:41:23.000Z
2020-09-27T02:07:01.000Z
import boto3 import typing import functools from ._bases import BaseMixin from ..utils import logging @functools.lru_cache(maxsize=1) def ssmClient(): return boto3.client('ssm') class ParameterStore(BaseMixin): def __init__(self): super().__init__(name='') @classmethod def get(cls, key: st...
22.173913
75
0.692157
60
510
5.7
0.633333
0
0
0
0
0
0
0
0
0
0
0.007229
0.186275
510
22
76
23.181818
0.816867
0
0
0
0
0
0.088235
0
0
0
0
0
0
1
0.1875
false
0
0.3125
0.0625
0.6875
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
1
0
0
2
3b5ddff9ef42a515de33ea1b93647ccd8e085a02
270
py
Python
sema/gen-arm.py
ychen306/vegen
fb979a9d55f95110cc56ac54b1becf88de5ef6d0
[ "MIT" ]
10
2021-05-27T20:31:36.000Z
2022-02-21T20:48:12.000Z
sema/gen-arm.py
ychen306/intrinsics-semantics
517cc090bdec89b254370cf652752e82de19a3f8
[ "MIT" ]
19
2021-05-27T18:58:02.000Z
2021-05-27T18:58:05.000Z
sema/gen-arm.py
ychen306/vegen
fb979a9d55f95110cc56ac54b1becf88de5ef6d0
[ "MIT" ]
6
2021-06-03T05:41:05.000Z
2021-12-24T09:21:36.000Z
import codegen from arm.insts import arm_insts with open('InstSema.arm.cpp', 'w') as f: codegen.emit_instruction_bindings(arm_insts, 'ArmInsts', f) with open('InstWrappers.arm.c', 'w') as f: f.write('#include <arm_neon.h>\n') codegen.emit_wrappers(arm_insts, f)
27
61
0.72963
45
270
4.222222
0.533333
0.168421
0.042105
0
0
0
0
0
0
0
0
0
0.114815
270
9
62
30
0.794979
0
0
0
0
0
0.248148
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
3b64724299180dfee117b079d18e0e4f7989c571
169
py
Python
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# URI Online Judge CPF = input().split('.') XXX, YYY = CPF[0], CPF[1] ZZZ, DD = CPF[2].split('-')[0], CPF[2].split('-')[1] print(XXX) print(YYY) print(ZZZ) print(DD)
14.083333
52
0.573964
30
169
3.233333
0.466667
0.082474
0.185567
0
0
0
0
0
0
0
0
0.041379
0.142012
169
11
53
15.363636
0.627586
0.094675
0
0
0
0
0.019868
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
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
1
0
2
3b7be34d2eae28558aea122046d2a25855c0c455
3,705
py
Python
tests/simulated_population.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
14
2021-05-03T19:59:58.000Z
2022-03-27T18:58:36.000Z
tests/simulated_population.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
8
2021-06-17T01:13:01.000Z
2022-03-27T18:31:15.000Z
tests/simulated_population.py
survey-methods/samplics
4a0f6ea6168afb74c2ea2c958fb76c7d27dfba83
[ "MIT" ]
2
2020-05-28T20:09:48.000Z
2021-01-19T17:34:22.000Z
import numpy as np population_size = 35000000 admin1_nb = 10 admin1_share = np.array([0.005, 0.020, 0.045, 0.075, 0.095, 0.105, 0.125, 0.130, 0.150, 0.250]) admin1_size = admin1_share * population_size if sum(admin1_share) != 1.000: raise AssertionError("The admin level 1 shares must sum to 1") # admin1 = np.r...
23.449367
96
0.54386
701
3,705
2.737518
0.179743
0.143304
0.057322
0.054195
0.459614
0.406462
0.380406
0.322043
0.322043
0.322043
0
0.258881
0.232659
3,705
157
97
23.598726
0.41611
0.110391
0
0.631579
0
0
0.134551
0
0
0
0
0
0.007519
1
0
false
0
0.007519
0
0.007519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
3b7d46a7d84bbcd253aef586d838c02ab0106a29
449
py
Python
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, CreateView from django.urls import reverse_lazy from .models import Contact class HomeView(TemplateView): template_name = 'page/home.html' class AboutView(TemplateView): template_name = 'page/about.html' class ContactView(CreateView): template_name = 'page...
24.944444
71
0.730512
51
449
6.333333
0.607843
0.111455
0.148607
0.173375
0
0
0
0
0
0
0
0
0.155902
449
17
72
26.411765
0.852243
0
0
0
0
0
0.18931
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
3b809ed3a1a8eaaeae4a3ce0d4bf8bbbdbc290f8
7,421
py
Python
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
trieste/utils/misc.py
SomeoneSerge/trieste
a160d2400a2dc092cac599554d32217840c06e3d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Trieste Contributors # # 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...
28.43295
100
0.62377
979
7,421
4.634321
0.292135
0.007935
0.009698
0.007274
0.090148
0.081772
0.032621
0.01631
0
0
0
0.005554
0.24781
7,421
260
101
28.542308
0.807238
0.44401
0
0.176471
0
0
0.029021
0
0
0
0
0
0.023529
1
0.235294
false
0
0.105882
0.011765
0.588235
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
1
0
0
2
3b88a796d1817b8904a6429803fd5870c9f9d9ef
383
py
Python
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
null
null
null
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
7
2018-11-01T13:10:27.000Z
2018-11-04T16:01:52.000Z
django_example/addresses/management/commands/generate_fake_data.py
JCepedaVillamayor/django-example
b099f51be8cf822546018973299006bcff17d349
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from ...test.factories import AddressFactory class Command(BaseCommand): help = "generates fake users to list in the application" def add_arguments(self, parser): parser.add_argument("n_of_entries", type=int) def handle(self, *args, **options):...
27.357143
60
0.733681
49
383
5.591837
0.755102
0.021898
0.072993
0
0
0
0
0
0
0
0
0
0.164491
383
13
61
29.461538
0.85625
0
0
0
1
0
0.185864
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
3b9cb1b86a1c2543fda4e403d263a899de8dcbf8
529
py
Python
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
160
2015-01-04T03:29:24.000Z
2022-01-30T18:02:50.000Z
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
164
2015-01-15T12:18:28.000Z
2017-06-02T06:49:01.000Z
python/ddf/conf.py
JLLeitschuh/DDF
e4e68315dcec1ed8b287bf1ee73baa88e7e41eba
[ "Apache-2.0" ]
43
2015-01-13T08:35:37.000Z
2021-02-26T02:43:43.000Z
from __future__ import unicode_literals def find_ddf(): import os if 'DDF_HOME' in os.environ: return os.path.abspath(os.environ['DDF_HOME']) path = os.path.abspath(os.path.split(os.path.abspath(__file__))[0] + '/../../') if all([os.path.exists(os.path.join(path, x)) for x in ['core', 'spark'...
27.842105
97
0.671078
83
529
4.084337
0.542169
0.106195
0.115044
0.088496
0
0
0
0
0
0
0
0.009281
0.185255
529
18
98
29.388889
0.777262
0.066163
0
0
0
0
0.219512
0
0
0
0
0.055556
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
3b9f847d0cac6111d1ef645972a3872e4e96abc4
3,896
py
Python
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
13
2015-06-07T09:26:26.000Z
2019-05-01T13:23:38.000Z
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
null
null
null
algospot/submit.py
seirion/code
3b8bf79764107255185061cec33decbc2235d03a
[ "Apache-2.0" ]
4
2016-03-05T06:21:05.000Z
2017-02-17T15:34:18.000Z
# written by falsetru import cookielib import os from contextlib import closing import re import getpass import webbrowser import sys import requests class AlgoSpot(object): login_url = 'https://algospot.com/accounts/login/?next=/' def __init__(self): cookiefile_path = os.path.join(os.path.expandus...
28.647059
122
0.585216
463
3,896
4.784017
0.304536
0.028442
0.028894
0.029797
0.140406
0.088939
0.065914
0.032506
0.032506
0
0
0.003165
0.270021
3,896
135
123
28.859259
0.775668
0.004877
0
0.147826
0
0
0.16671
0.039742
0
0
0
0
0.034783
0
null
null
0.052174
0.069565
null
null
0.034783
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
1
0
0
0
0
0
2
8e64479dc605db78a7e77be2782621351e868958
446
py
Python
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
atlantisbot_api/migrations/0004_auto_20201107_0019.py
johnvictorfs/atlantisbot-api
1a00ae33497b5c5bf51d7bac154e96d4d9ab534b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-11-07 00:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('atlantisbot_api', '0003_auto_20201107_0018'), ] operations = [ migrations.AlterModelTable( name='discordingamename', table=...
20.272727
55
0.58296
41
446
6.243902
0.756098
0.195313
0.226563
0
0
0
0
0
0
0
0
0.104918
0.316144
446
21
56
21.238095
0.734426
0.103139
0
0.4
1
0
0.165829
0.057789
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e71ce111f7ea9dd7c20cea0fda5b54b66380cdd
423
py
Python
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
2
2022-03-04T11:37:44.000Z
2022-03-04T13:53:13.000Z
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
stopwatch/__init__.py
hrishikeshrt/py_stopwatch
8a8dd2f35def2d6ca7f5b6d04f7d7428df9ef3a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 12 21:22:49 2021 @author: Hrishikesh Terdalkar """ ############################################################################### __author__ = """Hrishikesh Terdalkar""" __email__ = 'hrishikeshrt@linuxmail.org' __version__ = '0.0.2' ###########...
22.263158
79
0.43026
34
423
5
0.852941
0.188235
0.294118
0
0
0
0
0
0
0
0
0.044503
0.096927
423
18
80
23.5
0.400524
0.260047
0
0
0
0
0.351724
0.17931
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2