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
393f1dae7f66e2378ca21c870e8999d47cde8d9f
3,868
py
Python
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
agenda = { 'João': '86988102987', } # (C)RUD def criar(): # ler o nome nome = input('Nome: ') # ler o telefone e adiciona em uma lista telefonica telefone = [input("Número de telefone: ")] # empacota nome e telefone com uma variável lista = (nome, telefone) # adiciona o aluno ao dicioá...
29.082707
83
0.572389
493
3,868
4.470588
0.320487
0.038113
0.039927
0.047187
0.128403
0.063521
0.038113
0.038113
0.038113
0.038113
0
0.018059
0.312823
3,868
132
84
29.30303
0.811136
0.259049
0
0.144578
0
0
0.283245
0
0
0
0
0.007576
0
1
0.084337
false
0.012048
0
0
0.108434
0.228916
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3942c26296f00630ee50c69c002e490850562b67
14,568
py
Python
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class ArenaPvP1x1Test(utils_testcase.TestCase, pvp_helpers.PvPTestsMixin): def setUp(self): super(ArenaPvP1x1Test, self).setUp() game_logic.create_test_map() self.account_1 = self.accounts_factory.create_account() self.account_2 = self....
45.102167
162
0.737095
2,105
14,568
4.729691
0.078385
0.037164
0.091402
0.130575
0.845621
0.791784
0.71826
0.662616
0.598734
0.538971
0
0.032624
0.164676
14,568
322
163
45.242236
0.785521
0.009747
0
0.402715
0
0
0.036061
0.027739
0
0
0
0
0.339367
1
0.108597
false
0
0.00905
0
0.122172
0
0
0
0
null
0
0
0
1
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
3
3945918df30a9ed54072945849738662d8767f6a
461
py
Python
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
from functools import wraps def debug(func): msg = func.__qualname__ @wraps(func) def wrapper(*args, **kwargs): print(msg) return func(*args, **kwargs) return wrapper @debug def add(x, y): """ Función que suma dos números """ return x + y @debug def sub(x, y): r...
14.40625
36
0.566161
75
461
3.426667
0.426667
0.062257
0.124514
0.151751
0.241245
0.140078
0.140078
0
0
0
0
0.027439
0.288503
461
32
37
14.40625
0.756098
0.060738
0
0.16
0
0
0
0
0
0
0
0
0
1
0.24
false
0
0.04
0.12
0.52
0.04
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
1
0
0
3
3945df9845ecf9ada82d2ae164bf467f497ebb1b
1,918
py
Python
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
null
null
null
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
4
2021-06-05T00:11:13.000Z
2022-01-13T03:47:17.000Z
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
1
2021-04-20T18:05:56.000Z
2021-04-20T18:05:56.000Z
from rest_framework import generics, views, viewsets from rest_framework.decorators import api_view from rest_framework.parsers import FileUploadParser from rest_framework.response import Response from rest_framework import status from django.http import Http404 from openpyxl import load_workbook, Workbook from openpyx...
33.068966
72
0.792492
238
1,918
6.273109
0.323529
0.06564
0.09645
0.075017
0.35499
0.313463
0.313463
0.313463
0.313463
0.313463
0
0.010676
0.120959
1,918
57
73
33.649123
0.874852
0.027633
0
0.26087
0
0
0
0
0
0
0
0
0
1
0.130435
false
0
0.26087
0
0.608696
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
39464a019cb985cdafeee6f4d457d7fc18ed469a
377
py
Python
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('MyAPI', views.ApprovalsView) urlpatterns = [ path('api/', include(router.urls)), path('status/', views.approvereject), path('form/', views.cxcontact, name='cxform')...
31.416667
53
0.71618
44
377
6.113636
0.590909
0
0
0
0
0
0
0
0
0
0
0.009119
0.127321
377
12
54
31.416667
0.808511
0
0
0
0
0
0.10582
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39497691ceabd3784d606785b4a899f237208ed4
38,631
py
Python
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
292
2015-01-27T03:31:51.000Z
2022-03-26T07:00:05.000Z
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
94
2015-04-18T23:03:00.000Z
2022-03-28T17:24:55.000Z
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
200
2015-01-13T03:55:47.000Z
2022-03-29T12:38:56.000Z
''' formulaGenerator generates XBRL formula linkbases for a subset of the Sphinx language. (c) Copyright 2013 Mark V Systems Limited, California US, All rights reserved. Mark V copyright applies to this software, which is licensed according to the terms of Arelle(r). Sphinx is a Rules Language for XBRL described by...
46.543373
125
0.551422
3,540
38,631
5.971186
0.19548
0.025499
0.023418
0.031223
0.359306
0.317674
0.277604
0.255843
0.232472
0.22022
0
0.025503
0.317905
38,631
829
126
46.599517
0.776698
0.176102
0
0.286899
1
0.028192
0.267817
0.018575
0
0
0
0
0.059701
1
0.054726
false
0.004975
0.016584
0.004975
0.101161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3949804a27d13ac40bfeeab53fe441faa29640de
2,900
py
Python
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
796
2019-10-19T19:58:12.000Z
2022-03-22T14:02:37.000Z
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
224
2019-10-19T17:45:12.000Z
2022-03-24T20:46:29.000Z
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
33
2019-10-22T21:17:09.000Z
2021-12-23T06:08:26.000Z
from datetime import timedelta from django.core.management.base import BaseCommand from django.utils import timezone from audits.factories import ( AuditFactory, AuditResultsFactory, AuditStatusHistoryFactory, ) from audits.models import Audit, AuditResults from core.factories import AdminFactory, UserFact...
42.647059
84
0.704483
286
2,900
7.083916
0.318182
0.051333
0.05923
0.067127
0.272458
0.146101
0.146101
0
0
0
0
0.012265
0.212759
2,900
67
85
43.283582
0.875164
0.054828
0
0
0
0
0.016807
0
0
0
0
0
0
1
0.018182
false
0
0.145455
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3949fe35326199497ec243fad616b2c474910cea
409
py
Python
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
"""n = int(input("Enter ThE number :")) temp = n new = 0 while temp > 0: d = temp % 10 new = new * 10 + d temp = temp //10 if n == new: print("Number is palindrome") else: print("Number is not palindrome") #print(palindrome(101)) """ var1=str(input("Enter the sequence")) x=var1[::-1] if(var1==x):...
17.782609
42
0.599022
65
409
3.769231
0.4
0.081633
0.106122
0
0
0
0
0
0
0
0
0.047619
0.229829
409
22
43
18.590909
0.730159
0.608802
0
0
0
0
0.470588
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
1
0
394a8e23225b11ac893797de835089f91e2b99ae
368
py
Python
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
3
2020-03-23T04:31:14.000Z
2021-01-17T09:03:09.000Z
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
null
null
null
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
3
2018-03-28T20:53:27.000Z
2020-04-27T07:03:02.000Z
#!/usr/bin/env python import math erato = [True]*150 primes = [] for i in xrange(2, 150): if erato[i]: if i % 4 == 1: primes.append(i) j = i + i while j < 150: erato[j] = False j += i print primes print len(primes) print 2**len(primes) mul = 1 for p in p...
16.727273
28
0.516304
60
368
3.166667
0.466667
0.021053
0
0
0
0
0
0
0
0
0
0.062241
0.345109
368
21
29
17.52381
0.726141
0.054348
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
394ab9998819718496fb6f7b44cc4fce8aaac5ee
2,869
py
Python
pysnmp-with-texts/TOS-SMI.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/TOS-SMI.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/TOS-SMI.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 TOS-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TOS-SMI # Produced by pysmi-0.3.4 at Wed May 1 15:24:00 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:15)...
102.464286
505
0.758801
350
2,869
6.214286
0.411429
0.01931
0.025747
0.032184
0.346207
0.255172
0.255172
0.250115
0.250115
0.227126
0
0.087375
0.094458
2,869
27
506
106.259259
0.749808
0.107354
0
0
0
0.052632
0.369514
0.02547
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
394ae53df762a37668f92d5a8c275bd8a607f470
7,493
py
Python
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
36.730392
113
0.577472
962
7,493
4.366944
0.246362
0.009998
0.033325
0.046656
0.418234
0.310878
0.248274
0.195192
0.195192
0.166627
0
0.052632
0.244361
7,493
203
114
36.91133
0.689332
0.117309
0
0.201342
0
0.006711
0.197482
0.022296
0
0
0
0
0.161074
1
0.067114
false
0
0.073826
0
0.187919
0.006711
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
394b500f95084d103ffa03aaf2953feafa9712f2
2,354
py
Python
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
class Translation(object): START_TEXT = """Hello <i><b>{}</b></i>, I Can rename ✍ with custom thumbnail and upload as video/file Type /help for more details.""" DOWNLOAD_START_VIDEO = "Downloading Video to my server.....📥" DOWNLOAD_START = "Downloading File to my server.....📥" UPLOAD_START_VIDEO = "Up...
69.235294
200
0.723025
370
2,354
4.497297
0.372973
0.063101
0.057091
0.0625
0.294471
0.231971
0.199519
0.126202
0.126202
0.069712
0
0.005035
0.15633
2,354
33
201
71.333333
0.818731
0
0
0
0
0.151515
0.70051
0.043331
0
0
0
0
0
1
0
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
394c0a95f80ca6b5a6459e883027f6e8484a36c9
116
py
Python
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from django.core import serializers serializers.register_serializer('json', 'djmoney.serializers')
19.333333
62
0.801724
14
116
6.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.009434
0.086207
116
5
63
23.2
0.858491
0.103448
0
0
0
0
0.22549
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
394deac2c0648e3ff3bc3f9137803ed2f4273593
409
py
Python
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
import sys class RedirectStdoutTo: def __init__(self, out_new): self.out_new = out_new def __enter__(self): self.out_old = sys.stdout sys.stdout = self.out_new def __exit__(self, *args): sys.stdout = self.out_old print('A') with open('../resource/txt/output/out.log', mo...
20.45
108
0.638142
60
409
4.016667
0.516667
0.145228
0.124481
0.13278
0
0
0
0
0
0
0
0.003115
0.215159
409
19
109
21.526316
0.747664
0
0
0
0
0
0.095355
0.07335
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
394e6287c45dd4b169b78862df54b129511b5346
1,495
py
Python
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
import pyparsing as pp def act_comment(token): print("comment: " + str(token)) def act_keyword(token): print("keyword: " + str(token)) def act_sc(token): print("semicolon: " + str(token)) def act_parser_start(token): print("parser_start: " + str(token)) def act_parser_end(token): print("parser_end: " + s...
19.166667
69
0.646154
181
1,495
5.149171
0.21547
0.082618
0.04721
0.060086
0.255365
0.148069
0.10515
0.10515
0
0
0
0.014548
0.126421
1,495
77
70
19.415584
0.699081
0
0
0
0
0
0.17449
0
0
0
0
0
0
1
0.147059
false
0
0.029412
0
0.176471
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
394ecf34ca7686c2864f4d097b99dc46fa95d1e2
1,537
py
Python
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
304
2021-11-05T13:13:08.000Z
2022-03-27T17:53:37.000Z
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
62
2021-11-02T15:59:16.000Z
2022-03-31T18:23:15.000Z
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
26
2021-11-09T09:01:04.000Z
2022-02-25T15:57:22.000Z
# Copyright 2021-2022 NVIDIA Corporation # # 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 ...
27.945455
77
0.62069
260
1,537
3.634615
0.5
0.063492
0.012698
0.031746
0.10582
0.074074
0.074074
0.074074
0.059259
0.059259
0
0.088586
0.236174
1,537
54
78
28.462963
0.716354
0.58946
0
0
0
0
0.013223
0
0
0
0
0
0.117647
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
39512081e501bea95e39139b8a09e836d559e349
61
py
Python
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
9
2021-10-31T22:03:00.000Z
2022-03-27T19:40:40.000Z
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
null
null
null
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
null
null
null
from typing import Any, Dict DictStrAny = Dict[str, Any]
15.25
29
0.704918
9
61
4.777778
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.213115
61
3
30
20.333333
0.895833
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
39514311e1de0c6b9b8fe2b0f0b8804f4d55eecd
1,005
py
Python
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
1
2022-03-13T19:27:50.000Z
2022-03-13T19:27:50.000Z
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
# Copyright (C) 2017 TU Dresden # Licensed under the ISC license (see LICENSE.txt) # # Authors: Christian Menard import logging from hydra.utils import to_absolute_path from .convert import convert from .parse import parse from mocasin.common.platform import Platform log = logging.getLogger(__name__) class MapsP...
28.714286
66
0.664677
118
1,005
5.40678
0.483051
0.070533
0.043887
0.090909
0
0
0
0
0
0
0
0.005236
0.239801
1,005
34
67
29.558824
0.829843
0.103483
0
0
0
0
0.159598
0
0
0
0
0
0
1
0.043478
false
0
0.217391
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3952128fa2c00ebcf9dc48dfa06c1ee5269ac448
866
py
Python
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
BeanWei/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
84
2019-02-22T08:19:52.000Z
2022-02-08T03:36:32.000Z
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
16
2019-09-06T10:25:40.000Z
2022-02-12T06:37:41.000Z
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
61
2019-03-20T02:29:23.000Z
2021-07-09T08:14:25.000Z
# Generated by Django 2.0.2 on 2019-02-24 03:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trade', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='shoppingcart', ...
29.862069
121
0.613164
90
866
5.788889
0.466667
0.06142
0.080614
0.126679
0.364683
0.364683
0.364683
0.364683
0.364683
0.364683
0
0.029457
0.255196
866
28
122
30.928571
0.778295
0.051963
0
0.409091
1
0
0.15873
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3952324dfb1c3711021424481c4d89c71b0f8d7a
2,020
py
Python
autoelective/captcha/classifier.py
12f23eddde/PKUAutoElective
1a7094ea14a90fb23a3bd33d013bf5a46127394f
[ "MIT" ]
24
2019-09-13T11:58:32.000Z
2022-02-22T02:38:25.000Z
autoelective/captcha/classifier.py
yzy-pku/PKUAutoElective
309f8472fc5ba751d46373ea51fa72e1aa3148b0
[ "MIT" ]
5
2020-09-21T16:23:20.000Z
2022-01-13T01:37:13.000Z
autoelective/captcha/classifier.py
yzy-pku/PKUAutoElective
309f8472fc5ba751d46373ea51fa72e1aa3148b0
[ "MIT" ]
5
2019-09-20T15:36:54.000Z
2021-09-10T14:32:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: classifier.py # modified: 2019-09-08 __all__ = ["KNN","SVM","RandomForest"] import os import re from sklearn.neighbors.classification import KNeighborsClassifier from sklearn.svm import SVC from sklearn.ensemble.forest import RandomForestClassifier from sklea...
24.047619
80
0.630198
247
2,020
4.94332
0.412955
0.05733
0.031122
0.03276
0
0
0
0
0
0
0
0.009721
0.236139
2,020
84
81
24.047619
0.781594
0.043564
0
0
0
0
0.105236
0.053396
0
0
0
0
0
1
0.071429
false
0
0.160714
0.017857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
395356aa8466e0891ace69c5be1b3f0fde3e4501
1,077
py
Python
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
44
2015-02-11T14:27:24.000Z
2021-07-30T20:51:38.000Z
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
2
2015-10-02T11:47:41.000Z
2018-02-02T09:45:46.000Z
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
21
2015-03-18T21:46:30.000Z
2021-07-30T20:51:42.000Z
import numpy as np import sys import timeit from pykalman import KalmanFilter N = int(sys.argv[1]) random_state = np.random.RandomState(0) transition_matrix = [[1, 0.01], [-0.01, 1]] transition_offset = [0.0,0.0] observation_matrix = [1.0,0] observation_offset = [0.0] transition_covariance = 1e-10*np.eye(2) observatio...
35.9
128
0.785515
158
1,077
5.101266
0.297468
0.019851
0.011166
0.057072
0.054591
0
0
0
0
0
0
0.055271
0.092851
1,077
29
129
37.137931
0.769703
0
0
0
0
0
0.082637
0.046425
0
0
0
0
0
0
null
null
0
0.2
null
null
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1a2f0cb42c5e281612c2dd86f9dc9461dd6f0c31
46
py
Python
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
1
2016-08-17T06:36:03.000Z
2016-08-17T06:36:03.000Z
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
null
null
null
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
null
null
null
""" Compat. layer between LWR and Galaxy. """
11.5
37
0.652174
6
46
5
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
46
3
38
15.333333
0.789474
0.804348
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
1a31cbe01406213bfcaaf90c2882397642fc68d4
3,419
py
Python
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
12
2016-04-01T10:59:14.000Z
2022-01-27T04:05:43.000Z
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
16
2016-03-18T10:44:00.000Z
2019-08-12T05:52:24.000Z
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
2
2016-09-08T11:49:39.000Z
2020-09-09T04:39:15.000Z
# vim: set fenc=utf8 ts=4 sw=4 et : import os import io import json import unittest from shlex import split from .testcase import TestCase from pdml2flow.conf import Conf import pdml2flow TEST_DIR_PDML2FLOW="test/pdml2flow_tests/" TEST_DIR_PDML2FRAME="test/pdml2frame_tests/" class TestSystem(TestCase): def rea...
28.491667
71
0.488154
345
3,419
4.663768
0.295652
0.056557
0.059043
0.052206
0.10317
0.047234
0.047234
0.047234
0.047234
0
0
0.008656
0.425563
3,419
119
72
28.731092
0.810591
0.073706
0
0.230769
0
0
0.038669
0.013629
0
0
0
0
0.065934
1
0.043956
false
0.010989
0.087912
0
0.164835
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a32119c70c0d1383a924bfd29be201dc7093bcb
3,258
py
Python
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
import time, datetime print("Importing OpenShift/Kubernetes packages ...") import kubernetes import ocp_resources import openshift from ocp_resources.node import Node from ocp_resources.machine import Machine from ocp_resources.node import Node from openshift.dynamic import DynamicClient try: client_k8s = Dynam...
28.330435
89
0.664825
396
3,258
5.366162
0.323232
0.029647
0.022588
0.018824
0.170353
0.136471
0.115765
0.059294
0.059294
0.059294
0
0.016969
0.222222
3,258
114
90
28.578947
0.821626
0.025476
0
0.142857
0
0
0.189411
0.012606
0
0
0
0
0
1
0.071429
false
0.02381
0.142857
0.011905
0.285714
0.178571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a3258cf7badd255a9307d5f3956237fbeb82bff
446
py
Python
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'artists' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), url(r'^edit/(?P<pk>\d+)/$', views.UpdateArtist.as_view(), name='edit'), url(r'^create/$',...
37.166667
77
0.625561
66
446
4.136364
0.439394
0.07326
0.18315
0.065934
0
0
0
0
0
0
0
0.005063
0.11435
446
12
78
37.166667
0.686076
0
0
0
0
0
0.225951
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a32a66412ac752dfef1346767dada6ace8dbe66
280
py
Python
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
import socket import struct send_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0) data_bytes = struct.pack("!BBBB", 0, 0, 255, 255) header = struct.pack("!BIIH", 0, 0, 0, len(data_bytes)) message = header + data_bytes send_sock.sendto(message, ("localhost", 42000))
23.333333
63
0.721429
44
280
4.431818
0.477273
0.138462
0
0
0
0
0
0
0
0
0
0.069388
0.125
280
12
64
23.333333
0.726531
0
0
0
0
0
0.067616
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a33590146501a5c20b0ff147ebe8e77a6b706a7
26,634
py
Python
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
null
null
null
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
6
2020-04-05T04:58:15.000Z
2020-04-05T05:39:37.000Z
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import remi import remi.gui as gui from remi.gui import * from threading import Timer import traceback import time import math import epics #from epics import caget, caput, cainfo style_inheritance_dict = {'opacity':'inherit', 'overflow':'inherit', 'background-color':'inherit', 'background-ima...
69.722513
3,039
0.756176
2,524
26,634
7.802694
0.217116
0.015538
0.012288
0.009901
0.277242
0.222301
0.19082
0.178379
0.155987
0.148929
0
0.076584
0.140572
26,634
382
3,040
69.722513
0.783792
0.058346
0
0.285714
0
0.013605
0.470955
0.3842
0
1
0
0
0
1
0.122449
false
0
0.030612
0.027211
0.265306
0.006803
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
2
1a3459ee78d5b57a83665367b43a2ebae445c84e
3,001
py
Python
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
from typing import Dict import pysftp from flask import Blueprint, current_app from paramiko import SSHException from models import Instrument from pkg.case_mover import CaseMover from pkg.google_storage import GoogleStorage from pkg.sftp import SFTP from util.service_logging import log mover = Blueprint("batch", __...
31.925532
83
0.71876
358
3,001
5.818436
0.304469
0.033605
0.015362
0.022084
0.025924
0
0
0
0
0
0
0.00742
0.191603
3,001
93
84
32.268817
0.851195
0
0
0.027778
0
0
0.179607
0.017994
0
0
0
0
0
1
0.083333
false
0.013889
0.125
0
0.305556
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a35308e3e1033d1025ac934d26add8ef584b069
3,156
py
Python
pytjson/_tjson/datatype.py
anupsv/tjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
null
null
null
pytjson/_tjson/datatype.py
anupsv/tjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
3
2017-11-17T12:38:57.000Z
2021-11-15T17:46:44.000Z
pytjson/_tjson/datatype.py
anupsv/pytjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
1
2016-11-15T08:19:17.000Z
2016-11-15T08:19:17.000Z
import re, datetime from Helpers.freezable_list import FrozenDict from pytjson.Exceptions import ParseError class Datatype: # Initializer, will be overriden below TAGS = {} isScalar = re.compile(r'^[a-z0-9]*$') isBin = re.compile('^[01]{8}$') isOnlyNumbers = re.compile('^\-?(0|[1-9][0-9]*)$') i...
26.745763
88
0.596641
372
3,156
4.997312
0.317204
0.064551
0.077461
0.043572
0.058096
0
0
0
0
0
0
0.015604
0.28929
3,156
117
89
26.974359
0.813197
0.040875
0
0.159091
0
0
0.057247
0.008604
0
0
0
0
0
1
0.079545
false
0.022727
0.113636
0.034091
0.488636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a3613dff1cdfc6a420222a030f7083c34976694
864
py
Python
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Challenges-Study-Practice
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
null
null
null
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Challenges-Study-Practice
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
1
2021-06-24T17:39:48.000Z
2021-06-24T17:39:48.000Z
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Study
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
null
null
null
# not working, not sure why (as parts work separately # outside of function) # (User's) Problem # We have: # a string # We need: # is that string a paindrome? yes/no # We must: # boolean output # name of function is # checkPalindrome # Solution (Product) # Strategy 1: # turn string into a list...
24
66
0.664352
124
864
4.548387
0.532258
0.085106
0.058511
0
0
0
0
0
0
0
0
0.001577
0.266204
864
35
67
24.685714
0.888013
0.659722
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a37bfae9bd13611e15a98b21e3b6c87ccdce595
13,296
py
Python
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
29
2018-01-03T18:41:03.000Z
2022-02-03T01:15:46.000Z
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
226
2016-10-05T10:01:12.000Z
2021-07-20T18:47:59.000Z
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
13
2016-10-13T14:55:33.000Z
2022-02-03T01:15:33.000Z
""" /*********************************************************************************/ * The MIT License (MIT) * * * * Copyright (c) 2014 EOX IT Services GmbH ...
47.655914
273
0.571224
1,357
13,296
5.27045
0.23434
0.024329
0.02363
0.015101
0.196309
0.141779
0.119128
0.111437
0.094379
0.061801
0
0.015117
0.338297
13,296
278
274
47.827338
0.797795
0.187801
0
0.17
0
0
0.105317
0.029011
0
0
0
0
0
1
0.005
false
0.02
0.09
0
0.105
0.065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a37c7ba2d228caef670de2aefc502f114329be0
579
py
Python
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
6
2018-08-07T01:58:16.000Z
2020-09-10T14:40:35.000Z
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
1
2018-10-16T20:40:27.000Z
2018-10-17T02:18:05.000Z
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
1
2019-01-17T21:35:47.000Z
2019-01-17T21:35:47.000Z
from __future__ import absolute_import, division, print_function from cfn_model.model.ModelElement import ModelElement class EC2NetworkInterface(ModelElement): """ Ec2 network interface model lement """ def __init__(self, cfn_model): """ Initialize :param cfn_model: ""...
23.16
64
0.637306
54
579
6.462963
0.574074
0.091691
0.063037
0.091691
0
0
0
0
0
0
0
0.00939
0.264249
579
24
65
24.125
0.809859
0.108808
0
0
0
0
0.055914
0.055914
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a37f2bd5fe18531b4032a37a702ab6810656fed
1,125
py
Python
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
244
2018-08-15T22:58:58.000Z
2022-03-12T16:10:39.000Z
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
157
2018-08-29T21:36:47.000Z
2022-02-14T19:30:24.000Z
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
23
2019-04-24T11:09:10.000Z
2022-02-14T15:56:26.000Z
"""Provide mock structures used accross the tests.""" from typing import List, Union class NumpyArray: """Represent a class that mocks a numpy.array and it's behavior on less-then operator.""" def __init__(self, values: List[Union[int, bool]]) -> None: """Initialize with the given values.""" ...
36.290323
96
0.634667
146
1,125
4.753425
0.472603
0.086455
0.056196
0.063401
0.325648
0.325648
0.325648
0.325648
0.325648
0.325648
0
0
0.232889
1,125
30
97
37.5
0.804171
0.312
0
0
0
0
0.141883
0
0
0
0
0
0
1
0.428571
false
0
0.071429
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1a39f0ac1b52e80601d37b28ec8d2bbc57258c03
24,381
py
Python
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
3
2019-06-08T11:48:11.000Z
2021-11-29T19:58:48.000Z
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
null
null
null
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
2
2020-05-15T12:58:17.000Z
2020-08-05T06:13:23.000Z
#!/usr/bin/env python3 # coding: utf8 """ Description: Using fasta files (scaffold/chromosme/contig file, protein file), gff file, annotation tsv file and the species name this script writes a genbank file. The annotation tsv file contains association between gene and annotation (EC number, GO term, Interpro) to add ...
46.617591
162
0.632132
3,052
24,381
4.815858
0.149738
0.054293
0.014152
0.015648
0.326915
0.25432
0.201592
0.165056
0.131923
0.116002
0
0.004492
0.27866
24,381
522
163
46.706897
0.831239
0.234486
0
0.16242
0
0.006369
0.089455
0.005985
0
0
0
0
0
1
0.035032
false
0
0.05414
0
0.11465
0.012739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a3e9d713d8d312ad682cee9b4c6fc31735f9eac
14,362
py
Python
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
33
2015-02-25T11:40:08.000Z
2021-11-12T05:41:09.000Z
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
1
2015-03-07T09:10:20.000Z
2015-03-08T08:32:57.000Z
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
15
2015-04-03T03:48:36.000Z
2021-08-30T08:18:26.000Z
#FLM: Adjust Anchors __copyright__ = __license__ = """ Copyright (c) 2010-2012 Adobe Systems Incorporated. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
34.033175
125
0.694402
2,077
14,362
4.715455
0.181993
0.028589
0.041352
0.040025
0.418215
0.369512
0.35726
0.324382
0.317031
0.261793
0
0.046838
0.171982
14,362
421
126
34.114014
0.776741
0.050272
0
0.325648
0
0
0.163009
0.00367
0
0
0
0
0
1
0.118156
false
0
0
0.005764
0.132565
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a40884f8e3655b3dfc6d99906ed6b026d45047f
661
py
Python
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
3
2020-07-29T10:40:02.000Z
2021-01-02T15:18:00.000Z
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
5
2020-10-01T18:28:39.000Z
2020-10-08T19:17:44.000Z
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
null
null
null
import copy from math import floor from Objects.Object import Object class Repeater(Object): def __init__(self, isVisible, position, content, pixellength, numRepeats=-1, spacing=0): super().__init__(isVisible, position, content) self.numRepeats = numRepeats self.spacing = spacing ...
31.47619
92
0.67171
80
661
5.4125
0.4
0.096998
0.110855
0
0
0
0
0
0
0
0
0.011605
0.217852
661
20
93
33.05
0.825919
0
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a41f91574cc97294c624d878bae98006410b2d3
627
py
Python
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
from django import forms class SearchForm(forms.Form): CHOICES = [ (u'ISBN', u'ISBN'), (u'书名', u'书名'), (u'作者', u'作者') ] search_by = forms.ChoiceField( label='', choices=CHOICES, widget=forms.RadioSelect(), ini...
24.115385
49
0.432217
55
627
4.890909
0.581818
0.033457
0.04461
0
0
0
0
0
0
0
0
0.005602
0.430622
627
26
50
24.115385
0.747899
0
0
0.090909
0
0
0.124204
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a424da371a77f49cafcf1b25908551d82fcf1e6
7,173
py
Python
simpleview_pytorch/resnet.py
isaaccorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
9
2021-04-27T01:15:13.000Z
2022-02-01T11:22:35.000Z
simpleview_pytorch/resnet.py
IsaacCorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
1
2021-05-18T12:24:04.000Z
2021-06-12T05:09:27.000Z
simpleview_pytorch/resnet.py
IsaacCorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
1
2022-02-01T11:22:36.000Z
2022-02-01T11:22:36.000Z
""" Modified from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py Edits: ResNet: - Changed input layer from 3 channel -> 1 channel (depth images) - Divided inplanes, planes, and width_per_group by 4 BasicBlock: - Commented out ValueError triggered by base_width ...
37.554974
107
0.577304
873
7,173
4.61512
0.239404
0.037975
0.037975
0.055845
0.198809
0.174981
0.120129
0.077439
0.04418
0.04418
0
0.033505
0.321762
7,173
190
108
37.752632
0.794656
0.149868
0
0.177778
0
0
0.021466
0.004887
0
0
0
0
0
1
0.051852
false
0
0.02963
0.007407
0.140741
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a428b3cebba37ae0405317bd4d0e2bbdb0b64a7
717
py
Python
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
null
null
null
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
1
2021-11-29T03:38:21.000Z
2021-11-29T03:38:21.000Z
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
13
2021-11-06T03:17:45.000Z
2021-12-02T15:12:54.000Z
# -*- coding: utf-8 -*- """ Author:by 王林清 on 2021/11/2 21:32 FileName:insertMongodb.py in shiyizhonghua_resource Tools:PyCharm python3.8.4 """ from pymongo import MongoClient from util import * if __name__ == '__main__': dir_name = r'./../database_json' paths = get_file_path(dir_name) host = '114.55.236....
26.555556
61
0.608089
85
717
4.941176
0.717647
0.033333
0
0
0
0
0
0
0
0
0
0.062977
0.269177
717
26
62
27.576923
0.73855
0.185495
0
0
0
0
0.13913
0
0
0
0
0
0
1
0
false
0.0625
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1a43a46c11649f880078bee3e46cde206645701e
641
py
Python
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
import unittest import atheris import atheris_libprotobuf_mutator from atheris import fuzz_test_lib from google.protobuf import wrappers_pb2 @atheris.instrument_func def simple_proto_comparison(msg): if msg.value == "abc": raise RuntimeError("Solved") class AtherisLibprotobufMutatorTests(unittest.TestCase): ...
22.892857
57
0.762871
73
641
6.328767
0.60274
0.056277
0.108225
0
0
0
0
0
0
0
0
0.007407
0.157566
641
27
58
23.740741
0.848148
0
0
0
0
0
0.043682
0
0
0
0
0
0
1
0.105263
false
0
0.263158
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a43e33d04e3f0eaf830b974bf544c32498255dc
13,028
py
Python
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
14
2020-06-18T14:14:10.000Z
2021-08-18T01:59:48.000Z
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
null
null
null
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
2
2021-03-23T23:43:36.000Z
2021-05-04T08:35:36.000Z
import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import os import pdb from tqdm import tqdm import argparse import pandas as pd import sys BASE_DIR=os.path.dirname(os.getcwd()) sys.path.append(BASE_DIR) sys.path.append('/home/tam63/geometric-js') import torch import scipy.stats from scipy....
35.595628
130
0.623043
1,914
13,028
4.020899
0.173981
0.040541
0.014293
0.018191
0.436071
0.406055
0.373311
0.371232
0.371232
0.350442
0
0.02011
0.232806
13,028
366
131
35.595628
0.749875
0.209856
0
0.283582
0
0.00995
0.147047
0.079249
0
0
0
0
0.014925
1
0.029851
false
0
0.074627
0
0.129353
0.049751
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a467cffc666f7d4209f357092ce125a04accdd5
1,234
py
Python
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests,datetime top_news = {"world":[],"business":[],"technology":[],"sports":[],"entertainment":[]} def Scraper_news(): new_dic = {} URLS_of_menu = {"world":"http://www.newzcone.com/world/","business":"http://www.newzcone.com/business/","technology":"http://www.newzcone.com/te...
33.351351
275
0.670178
172
1,234
4.668605
0.360465
0.044832
0.0934
0.11208
0.122042
0
0
0
0
0
0
0.006554
0.134522
1,234
36
276
34.277778
0.745318
0
0
0
0
0
0.278994
0
0
0
0
0
0
1
0.029412
false
0
0.058824
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a46d0a115b32d7ff6c6db2d71f59e05c37b173c
2,388
py
Python
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
import telraam_data.query as query import telraam_data.download as download from .utils import get_data_keys import datetime as dt import shutil import pandas as pd import pathlib as pl import random import pytest @pytest.fixture() def one_segment(): all_segments = query.query_active_segments() segment_idx = ...
33.166667
95
0.725712
351
2,388
4.692308
0.327635
0.03643
0.024287
0.03643
0.173042
0.110504
0.03643
0
0
0
0
0.045132
0.174204
2,388
71
96
33.633803
0.790061
0.130235
0
0.04
0
0
0.048839
0
0
0
0
0
0.22
1
0.1
false
0
0.2
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a47a619909d8c68e7ff3f55a7292b76dc36728b
4,544
py
Python
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: abs_task_model.py # time: 1:43 下午 import json import os import pathlib from abc import ABC, abstractmethod from typing import Dict, Any, TYPE_CHECKING, Union import tensorflow as tf import kashgari from kashgari...
38.184874
114
0.665493
551
4,544
5.205082
0.274047
0.040795
0.020921
0.031381
0.222455
0.135983
0.095537
0.095537
0.059275
0.031381
0
0.007426
0.229533
4,544
118
115
38.508475
0.811768
0.166813
0
0.054795
0
0
0.09695
0.017974
0
0
0
0
0
1
0.082192
false
0
0.191781
0
0.328767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a47bdd4053aca36705ed4d58e60c21aacfb2da2
1,915
py
Python
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# coding: utf-8 def write_info(amr): #import fortranformat as ff #nout = amr.nout aexp = amr.aexp h0 = amr.h0 * 1e-2 rhoc = 1.88e-29 boxlen = 1.0 f = open("info_" + str(nout).zfill(5) + ".txt", 'w') for name, val in zip(["ncpu", "ndim", "levelmin", "levelmax", "ngridmax", "ns...
31.393443
111
0.565535
289
1,915
3.650519
0.449827
0.03981
0.019905
0.024645
0.068246
0.03981
0.03981
0
0
0
0
0.053408
0.256919
1,915
60
112
31.916667
0.687983
0.06423
0
0.0625
0
0
0.178687
0
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a48273fcffbd81bf82e527381a62c49f570d938
3,794
py
Python
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, Counter, deque from functools import cache from itertools import product, pairwise from multiprocessing import Pool import math import re non_digits = re.compile('[^0-9]+') def sign(a, b, step=1): return int(math.copysign(step, b-a)) def autorange(a,b, step=1): if a == b:re...
29.410853
82
0.495783
596
3,794
3.010067
0.218121
0.014493
0.01505
0.015608
0.221293
0.17447
0.157191
0.148272
0.148272
0.123746
0
0.048077
0.342119
3,794
128
83
29.640625
0.670673
0.091987
0
0.23301
0
0
0.097955
0.018309
0
0
0
0
0.048544
1
0.058252
false
0.029126
0.058252
0.009709
0.174757
0.009709
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a49cf0573ed943c6db81fa5fa001609a4e4757e
4,773
py
Python
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # coding: utf-8 # __author__ jax777 import os import cgi import json import urllib import hashlib import datetime import tornado.ioloop import tornado.web import traceback from tornado.escape import json_decode from multiprocessing import Process from sqllitedb import * from DnsServer import dns_serv...
27.75
119
0.57511
556
4,773
4.829137
0.27518
0.063315
0.080447
0.057728
0.266667
0.206704
0.141899
0.141899
0.141899
0.099441
0
0.011682
0.282631
4,773
172
120
27.75
0.772488
0.056149
0
0.257576
0
0
0.099087
0.026275
0
0
0
0
0
0
null
null
0.037879
0.121212
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1a4a79766214bce2c54862f0ba91b60a1d34cf35
1,348
py
Python
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ee from landdegradation.util import TEImage from landdegradation.schemas.schemas import BandInfo def download(asset, name, temporal_resolution, start_year, end_year, EXECUTION_ID, logger)...
36.432432
117
0.669881
182
1,348
4.675824
0.362637
0.084606
0.070505
0.079906
0.321974
0.298472
0.298472
0.223267
0.223267
0.094007
0
0.003735
0.20549
1,348
36
118
37.444444
0.79085
0.396884
0
0
0
0
0.06599
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1a4b90bcaa04099413775127fbdb065ea1e2bdcf
1,344
py
Python
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:34.000Z
2021-07-04T11:07:34.000Z
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # 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 appl...
38.4
79
0.72619
191
1,344
5.010471
0.554974
0.062696
0.027168
0.033438
0
0
0
0
0
0
0
0.008326
0.195685
1,344
34
80
39.529412
0.876966
0.466518
0
0
0
0
0.075931
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1a4be22543af73441ad4c9ced85adf6351a9df98
100
py
Python
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
2
2017-07-23T22:06:05.000Z
2020-02-28T07:54:15.000Z
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
1
2020-10-29T19:54:06.000Z
2020-10-29T19:54:06.000Z
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np @pytest.fixture def n(): """Number of arrays""" return 3
11.111111
26
0.65
15
100
4.333333
0.866667
0
0
0
0
0
0
0
0
0
0
0.013158
0.24
100
8
27
12.5
0.842105
0.16
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
1a4c10dd268c18ea7f80bb6c81bca827718cd899
865
py
Python
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
def test_list_labels(man): errors = [] G = man.setGraph("swapi") resp = G.listLabels() print(resp) if len(resp["vertex_labels"]) != 6: errors.append("listLabels returned an unexpected number of vertex labels; %d != 2" % (len(resp["vertex_labels"]))) if sorted(resp["vertex_labels"])...
36.041667
155
0.645087
101
865
5.445545
0.425743
0.109091
0.16
0.218182
0.327273
0.181818
0.181818
0.181818
0
0
0
0.008475
0.181503
865
23
156
37.608696
0.768362
0
0
0
0
0
0.476246
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.071429
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a4c9682da4b81a0f168d8e9419bc7e161393b09
26,025
py
Python
build/releases/release-0.573py3/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
26
2019-02-01T19:12:21.000Z
2022-03-25T04:40:38.000Z
build/releases/release-0.572py3/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
3
2019-10-29T17:49:19.000Z
2022-03-20T21:21:31.000Z
build/releases/release-0.569/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
4
2019-02-02T16:50:48.000Z
2020-10-29T03:10:58.000Z
#!/usr/bin/python # ----------------------------------------------------------------------------- # # Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may o...
44.035533
152
0.621134
3,415
26,025
4.720937
0.157833
0.003163
0.004776
0.006947
0.092979
0.073998
0.053964
0.035852
0.035852
0.025183
0
0.171525
0.238117
26,025
590
153
44.110169
0.641567
0.181979
0
0.106776
0
0.002053
0.062872
0.003351
0
0
0.001699
0
0
1
0.022587
false
0.002053
0.024641
0
0.080082
0.051335
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a4d09aa09e2665f13f249c5708fdd7192001e99
2,409
py
Python
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
22
2019-03-23T21:08:08.000Z
2019-03-25T07:34:58.000Z
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-06 16:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrati...
48.18
227
0.635949
274
2,409
5.452555
0.427007
0.058902
0.040161
0.034137
0.200803
0.200803
0.200803
0.200803
0.200803
0.200803
0
0.014262
0.243254
2,409
49
228
49.163265
0.805266
0.028643
0
0.317073
1
0
0.261874
0
0
0
0
0
0
1
0
false
0
0.097561
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a4e44fa1437f33e3868edd4c85aa17b157bd285
311
py
Python
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
12
2020-04-05T10:01:11.000Z
2022-02-05T08:11:54.000Z
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
null
null
null
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
6
2020-04-03T22:24:34.000Z
2022-01-28T12:22:34.000Z
# https://justhackerthings.com/post/building-a-dark-web-scraper/ import sys def main(): # Disable SSL warnings try: import requests.packages.urllib3 requests.packages.urllib3.disable_warnings() except: pass START = sys.argv[1] if __name__ == "__main__": main()
16.368421
64
0.646302
36
311
5.333333
0.75
0.166667
0.239583
0
0
0
0
0
0
0
0
0.012658
0.237942
311
18
65
17.277778
0.797468
0.266881
0
0
0
0
0.035556
0
0
0
0
0
0
1
0.1
false
0.1
0.2
0
0.3
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
1
0
0
0
0
0
2
1a4f1c919b299942a82c6932d7f00aabeb8479d0
316
py
Python
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
3
2016-04-20T21:24:59.000Z
2021-11-17T10:58:49.000Z
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
from os.path import dirname from ipkg.build import Formula, File class foo(Formula): name = 'foo' version = '1.0' sources = File(dirname(__file__) + '/../../sources/foo-1.0.tar.gz') platform = 'any' def install(self): self.run_cp(['README', self.environment.prefix + '/foo.README'])
21.066667
72
0.626582
43
316
4.488372
0.651163
0.020725
0
0
0
0
0
0
0
0
0
0.015873
0.202532
316
14
73
22.571429
0.75
0
0
0
0
0
0.174051
0.091772
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1a5061fa8eaa75165019221d64224e6c9602ed66
778
py
Python
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python def sum_even_fib(limit): fib_list = [1, 2] even_fib_list = [2] next_fib = fib_list[-1] + fib_list[-2] while(next_fib <= limit): next_fib = fib_list[-1] + fib_list[-2] fib_list.append(next_fib) if next_fib % 2 == 0: even_fib_list.append(next_fi...
21.611111
46
0.618252
131
778
3.282443
0.183206
0.195349
0.139535
0.097674
0.75814
0.595349
0.516279
0.302326
0.195349
0.195349
0
0.038801
0.271208
778
35
47
22.228571
0.719577
0.025707
0
0.583333
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
0
0
0
0
0
0
1
1a52dc51601a35116aee6d656ad33ca1c1841e16
7,660
py
Python
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
1
2021-05-18T14:11:39.000Z
2021-05-18T14:11:39.000Z
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2019 "Neo4j," # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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 L...
33.160173
78
0.607441
978
7,660
4.623722
0.247444
0.050862
0.017691
0.029191
0.353383
0.303184
0.225343
0.194162
0.172932
0.145511
0
0.017749
0.264491
7,660
230
79
33.304348
0.784878
0.179896
0
0.326531
0
0.013605
0.132202
0.006882
0
0
0
0.004348
0.238095
1
0.142857
false
0
0.034014
0
0.176871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a5431d37ebda58e5b218f10d2b25e4f51243a49
1,596
py
Python
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
import pandas as pd from bokeh.plotting import figure from bokeh.sampledata.stocks import AAPL def get_template(): df = pd.DataFrame(AAPL) df['date'] = pd.to_datetime(df['date']) import jinja2 from bokeh.embed import components # IMPORTANT NOTE!! The version of BokehJS loaded in the template sh...
26.163934
92
0.615915
227
1,596
4.303965
0.396476
0.042989
0.079836
0.09826
0.438076
0.438076
0.429887
0.429887
0.429887
0.412487
0
0.033844
0.222431
1,596
60
93
26.6
0.753425
0.072055
0
0.166667
0
0.166667
0.650643
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.194444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a55793e5089f89d8e094d3d19b917c7ca92caad
1,728
py
Python
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
from app.nanoleaf.model import AuroraObject class PanelLayout(AuroraObject): def __init__(self, requester, rhythm): super().__init__(requester) self.rhythm = rhythm @property def orientation(self): """Returns the orientation of the device (0-360)""" return self._requester....
37.565217
100
0.678241
193
1,728
5.968912
0.367876
0.078993
0.104167
0.135417
0.403646
0.341146
0.341146
0.341146
0.294271
0.128472
0
0.008863
0.216435
1,728
46
101
37.565217
0.84195
0.274884
0
0.230769
0
0
0.175127
0.159898
0
0
0
0
0
1
0.269231
false
0
0.038462
0
0.576923
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
1a5c80ab6f0c06783f4d0e9551701ed39a95c25b
3,243
py
Python
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
import tensorflow as tf from sklearn.model_selection import train_test_split import unicodedata import re import io ''' Handles data loading, pre-processing and tokenizing ''' class DataHandler(): ''' Creates a tf.data.Dataset object to feed the network with tensors and in batches X: (tensor) with inpu...
26.153226
101
0.670675
503
3,243
4.178926
0.332008
0.005709
0.015224
0.030447
0.057088
0.057088
0.045671
0.045671
0.045671
0.045671
0
0.006985
0.205365
3,243
123
102
26.365854
0.807916
0.160962
0
0
0
0
0.040213
0
0
0
0
0
0
1
0.179487
false
0
0.128205
0.051282
0.512821
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1a5e520e42f56529133381c93cca81b7e91fe302
4,060
py
Python
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy@gmail.com """ 随机方法 """ import pytest import os from wpy.path import read_dict from wpy.randoms import ( random_str ) from lfsdb import FileStorage from lfsdb.db import FileStorageError from lfsdb.db.errors import FSQueryError from lfsdb.d...
22.065217
82
0.599754
590
4,060
3.913559
0.19661
0.033781
0.052404
0.041143
0.257254
0.216977
0.174101
0.157644
0.104807
0.07709
0
0.014921
0.24064
4,060
183
83
22.185792
0.734025
0.02734
0
0.325581
0
0
0.076239
0
0
0
0
0.005464
0.139535
1
0.093023
false
0
0.077519
0
0.178295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a5fe65ea13d858d4fe548293ae1aefcbe8c803b
865
py
Python
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
import re example = "".join(open("example.txt").readlines()) puzzle = "".join(open("puzzle.txt").readlines()) problem_input = puzzle def parse_group(input: str): votes = input.split("\n") votes_map = dict() for vote in votes: for el in vote: if el not in votes_map: vo...
20.116279
50
0.552601
125
865
3.688
0.312
0.086768
0.071584
0.099783
0.273319
0.273319
0.273319
0.273319
0.273319
0.273319
0
0.008361
0.308671
865
42
51
20.595238
0.762542
0
0
0.322581
0
0
0.05896
0
0
0
0
0
0
1
0.096774
false
0
0.032258
0
0.225806
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a60a5f260cfd69458005fdf8f18f4a31de9980c
1,154
py
Python
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
import asyncio import logging import os import unittest from integration_tests.env_variable_names import SLACK_SDK_TEST_USER_TOKEN from integration_tests.helpers import async_test from slack import WebClient class TestWebClient(unittest.TestCase): """Runs integration tests with real Slack API https://github...
32.055556
118
0.740035
153
1,154
5.320261
0.392157
0.055283
0.047912
0.039312
0.358722
0.307125
0.307125
0.307125
0.307125
0.184275
0
0.009454
0.175043
1,154
35
119
32.971429
0.845588
0.085789
0
0.083333
0
0
0.055769
0.055769
0
0
0
0
0.083333
1
0.125
false
0.041667
0.291667
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6106088407de4e7e1d70c09e88f77cac779b4b
7,199
py
Python
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
14
2021-03-03T20:02:09.000Z
2021-11-10T20:32:22.000Z
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
26
2021-04-30T19:56:06.000Z
2022-01-18T04:40:00.000Z
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
2
2021-04-30T03:12:21.000Z
2022-02-05T12:13:37.000Z
from threading import RLock from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple from triad import to_uuid from tune.concepts.flow import ( Monitor, Trial, TrialDecision, TrialJudge, TrialReport, TrialReportHeap, ) class RungHeap: def __init__(self, n: int): ...
33.640187
87
0.592999
838
7,199
4.836516
0.144391
0.041944
0.026647
0.022206
0.220331
0.175672
0.132248
0.067604
0.067604
0.020232
0
0.002786
0.301986
7,199
213
88
33.798122
0.803781
0.031115
0
0.241379
0
0
0.014066
0
0
0
0
0
0
1
0.149425
false
0
0.022989
0.045977
0.350575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a617a21f77fb7f52b6d11e5c92d2818e85cb8ab
326
py
Python
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
4
2020-09-10T20:36:02.000Z
2021-11-03T17:09:11.000Z
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
null
null
null
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import AbstractUser import markdown from .base import MarkupEngine class Markdown(MarkupEngine): label = "Markdown" extensions = ["extra"] def to_html(self, raw: str, user: AbstractUser) -> str: md = markdown.markdown(raw, extensions=self.extensions) retu...
21.733333
63
0.705521
38
326
6.026316
0.605263
0
0
0
0
0
0
0
0
0
0
0
0.199387
326
14
64
23.285714
0.877395
0
0
0
0
0
0.039877
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.888889
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
1a67fad9931909e49275c4b3f5a5ee8cc9517384
75
py
Python
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
1
2016-10-12T22:49:09.000Z
2016-10-12T22:49:09.000Z
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
1
2016-10-12T22:47:08.000Z
2016-10-12T22:47:08.000Z
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
null
null
null
from .default import dr27_stats_urls urlpatterns = dr27_stats_urls('team')
25
37
0.826667
11
75
5.272727
0.727273
0.310345
0.448276
0
0
0
0
0
0
0
0
0.058824
0.093333
75
3
37
25
0.794118
0
0
0
0
0
0.052632
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1a68ae4c6daaddebc3deeeeee768f2c7fe6d1bdb
1,936
py
Python
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
25
2015-09-24T07:04:45.000Z
2022-02-19T03:31:03.000Z
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
46
2015-05-20T12:48:12.000Z
2022-01-10T10:38:55.000Z
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
13
2015-07-12T09:55:03.000Z
2021-07-02T15:32:12.000Z
# Copyright Jamie Allsop 2015-2015 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # MarkdownToHtmlMethod #--...
29.333333
154
0.547521
216
1,936
4.689815
0.402778
0.039487
0.032577
0.023692
0.100691
0.051333
0
0
0
0
0
0.011339
0.271178
1,936
65
155
29.784615
0.706591
0.192149
0
0.051282
0
0
0.083495
0
0
0
0
0
0
1
0.128205
false
0
0.102564
0
0.384615
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a68c8384b519235047d4e9148d15734f7c8bc80
3,718
py
Python
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
null
null
null
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
null
null
null
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
1
2021-09-29T05:39:41.000Z
2021-09-29T05:39:41.000Z
import re import json import sys import os args = sys.argv if (len(args) < 2): sys.exit(1) path = args[1] if(path[-1:] == "/"): path = path[:-1] result_filedata_list = [] registry_info = {} target_filepath_list = [] target_filepath_list.append('/1/stdout.txt') target_filepath_list.append('/3/stdout.txt') f...
39.553191
84
0.516945
368
3,718
4.964674
0.206522
0.135194
0.078818
0.057471
0.58347
0.528736
0.492611
0.349206
0.269294
0.269294
0
0.008861
0.392953
3,718
93
85
39.978495
0.80062
0
0
0.428571
0
0
0.075599
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6a4b81633f72d324dbf4acc99d2ef2ff1a4ab9
5,603
py
Python
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
13
2019-08-09T08:33:27.000Z
2020-12-21T08:51:33.000Z
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
5
2021-03-19T02:17:23.000Z
2022-03-11T23:53:44.000Z
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
4
2019-11-06T08:02:21.000Z
2021-01-13T20:34:23.000Z
import pickle import os import numpy as np from .utils import make_dataset_images, find_classes from operator import itemgetter import copy class Dataset(object): def __init__(self, name, root_folder, im_size=None, in_memory=False): super(Dataset, self).__init__() self.name = name self.ima...
33.35119
130
0.598786
752
5,603
4.24734
0.168883
0.030056
0.028178
0.035066
0.36819
0.316531
0.285535
0.285535
0.251722
0.224796
0
0.002786
0.295377
5,603
167
131
33.550898
0.806231
0.107799
0
0.087719
0
0
0.008454
0
0
0
0
0.005988
0
1
0.140351
false
0.017544
0.052632
0.04386
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6aa4d0a786d3e399ee18bc2e9e652bb27f3099
1,108
py
Python
video/main.py
ArseniKavalchuk/ffmpeg-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
1
2020-10-23T15:56:31.000Z
2020-10-23T15:56:31.000Z
video/main.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
video/main.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
from video.segment import CodecCopyHLSFormatSegmenter from video.segment import CodecX264HLSFormatSegmenter from video.segment import CodecX264SegmentFormatSegmenter from video.segment import CodecX264ResizeHLSFormatSegmenter from video.snapshot import take_snapshot import os import pathlib import argparse PROJECT_ROO...
38.206897
116
0.758123
146
1,108
5.493151
0.390411
0.044888
0.079801
0.109726
0
0
0
0
0
0
0
0.014553
0.131769
1,108
29
117
38.206897
0.819127
0
0
0
0
0
0.040577
0
0
0
0
0
0
1
0.038462
false
0
0.346154
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
0
0
0
1
0
0
0
0
1
1a6b3b67a196647e34aaaebda16a46305f5a9bec
1,565
py
Python
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
7
2020-08-12T12:04:28.000Z
2021-11-22T15:56:08.000Z
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
1
2021-10-07T08:37:39.000Z
2021-10-08T02:41:39.000Z
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
null
null
null
""" Implement the transformations we need to use to convert a link to an adaptive loss scaled link. """ # NOTE: this file is deprecated import chainer import chainer.links as L import chainer.initializers as I # pylint: disable=unused-wildcard-import from ada_loss.chainer_impl.links import * __all__ = [ "Ada...
24.84127
86
0.623642
169
1,565
5.579882
0.443787
0.041357
0.034995
0.04772
0.282078
0.26299
0.26299
0.26299
0.26299
0.26299
0
0.003559
0.281789
1,565
62
87
25.241935
0.835409
0.120767
0
0.3
0
0
0.074738
0.038117
0
0
0
0
0.05
1
0.075
false
0
0.1
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6c38fe3eac0c9e9490bdee1d1414080a4cb623
2,294
py
Python
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from elasticsearch_dsl import query from elasticsearch_dsl.query import MatchPhrasePrefix, Term, Bool, Match, MatchAll class QueryBuilderStrategy(ABC): def __init__(self, searchInput): self.name = searchInput.get('name') self.region = searchInput.get('region') ...
26.367816
101
0.6068
218
2,294
6.229358
0.215596
0.047128
0.040501
0.081001
0.506627
0.418262
0.37408
0.322533
0.322533
0.28866
0
0
0.294246
2,294
86
102
26.674419
0.838789
0
0
0.545455
0
0
0.028771
0
0
0
0
0
0
1
0.212121
false
0.030303
0.045455
0.045455
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1a6d2886a4a7ffe920b3a6389b89764f7a3428c8
2,002
py
Python
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
null
null
null
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
null
null
null
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
3
2021-12-16T14:14:58.000Z
2022-01-24T10:49:48.000Z
""" The main app where all the routes are initiated here and runs the flask app """ from resources.auth import * from resources.reset import * from resources.userdetails import * from resources.course import * from resources.groups import * from resources.delivery import * from resources.dashboard_api import * from re...
38.5
75
0.766234
278
2,002
5.23741
0.334532
0.181319
0.091346
0.078297
0.227335
0.070055
0.037088
0
0
0
0
0.003254
0.078921
2,002
51
76
39.254902
0.786334
0.053946
0
0
0
0
0.22978
0.132298
0
0
0
0
0
1
0.025
true
0
0.2
0
0.25
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1a6d9e1b1f6a95c204998e268f6dedde3030bfcb
4,451
py
Python
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
from foundations_spec import * from acceptance.api_acceptance_test_case_base import APIAcceptanceTestCaseBase from acceptance.v2beta.jobs_tests_helper_mixin_v2 import JobsTestsHelperMixinV2 class TestArtifactLoading(JobsTestsHelperMixinV2, APIAcceptanceTestCaseBase): url = '/api/v2beta/projects/{_project_name}/...
38.704348
121
0.682768
473
4,451
6.021142
0.230444
0.054073
0.065309
0.073736
0.420646
0.300913
0.268258
0.204354
0.064256
0.064256
0
0.018182
0.221523
4,451
115
122
38.704348
0.803752
0
0
0.139535
0
0
0.184228
0.022692
0
0
0
0
0.034884
1
0.069767
false
0
0.127907
0
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6deb9d77ae7f9dd3a6a89e5e68c8dd4e802884
16,234
py
Python
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
import os, sys, copy import pickle import math import time import numpy as np from typing import Dict, Any, List, Set, Tuple import torch import torch.nn.functional as F from torch import nn from torch.nn.utils.rnn import pad_sequence import torch.nn.utils.rnn as rnn_utils from agent.environment.position import Pos...
44.721763
132
0.620549
2,037
16,234
4.598429
0.136475
0.051671
0.029892
0.03459
0.33223
0.236468
0.180634
0.115192
0.096402
0.07804
0
0.013766
0.284034
16,234
362
133
44.845304
0.792136
0.049526
0
0.21843
0
0
0.059947
0.012665
0
0
0
0
0.006826
1
0.017065
false
0.003413
0.068259
0.003413
0.102389
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6e8546353af8e6a5051dfc50d1bb801c40b2af
2,247
py
Python
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
4,484
2017-12-27T03:28:35.000Z
2021-12-02T14:42:58.000Z
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
549
2017-12-28T07:19:52.000Z
2021-11-05T02:34:20.000Z
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
1,076
2017-12-27T12:25:46.000Z
2021-11-24T09:12:36.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import tensorflow as tf import tensorlayer as tl from tensorlayer import logging from tensorlayer.decorators import deprecated_alias from tensorlayer.layers.core import Layer __all__ = [ 'GaussianNoise', ] class GaussianNoise(Layer): """ The :class:`GaussianNo...
27.072289
114
0.595461
283
2,247
4.583039
0.374558
0.03084
0.012336
0.01542
0
0
0
0
0
0
0
0.01601
0.277259
2,247
82
115
27.402439
0.782635
0.377837
0
0
0
0
0.076507
0.018547
0
0
0
0
0
1
0.1
false
0.025
0.125
0
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a6ed059d7b1feb8a9fc1f37a0a29d603590be28
447
py
Python
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 import abc from aiautomation.testcase.browser import Browser class ScenariosRecovery: """ 场景恢复的基类 """ __metaclass__ = abc.ABCMeta def __init__(self, logger, config): self._browser = None self._logger = logger self._config = config @ab...
17.88
49
0.60179
43
447
6
0.674419
0.077519
0
0
0
0
0
0
0
0
0
0.00641
0.302013
447
24
50
18.625
0.820513
0.158837
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0.090909
0.181818
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
0
0
1
0
0
1
0
0
2
1a700cc75c7db30432b3bee2d9bb6579a2ada503
2,195
py
Python
examples/example_plots.py
lupify/pynverse
b943b49a0a398a00d4e712f492721f3dfa77ed52
[ "MIT" ]
46
2016-10-30T19:59:36.000Z
2022-03-01T10:59:11.000Z
examples/example_plots.py
Phibedy/pynverse
afa62d1f8f59110cced17471e57d7a1b6ab4f1df
[ "MIT" ]
3
2018-04-04T10:50:57.000Z
2021-12-03T16:55:57.000Z
examples/example_plots.py
Phibedy/pynverse
afa62d1f8f59110cced17471e57d7a1b6ab4f1df
[ "MIT" ]
9
2016-12-09T00:32:26.000Z
2022-01-17T12:24:29.000Z
from pynverse import inversefunc, piecewise import numpy as np import matplotlib.pyplot as plt import scipy cube = lambda x: x**3 invcube = inversefunc(cube) invcube_a = lambda x: scipy.special.cbrt(x) square = lambda x: x**2 invsquare = inversefunc(square, domain=0) invsquare_a = lambda x: x**(1/2.) ...
30.486111
102
0.62779
421
2,195
3.232779
0.194774
0.092579
0.052902
0.066128
0.133725
0.099927
0.076414
0.076414
0.076414
0.044085
0
0.109984
0.146697
2,195
72
103
30.486111
0.616658
0
0
0.037736
0
0
0.047059
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.09434
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a70a409960397bfd1f99c4022d1a0d3e8addf9d
174
py
Python
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
def fatorial(num=1): f = 1 for c in range(num, 1, -1): f *= c return f n = int(input('Digite um numero: ')) print(f'O fatorial de {n}: {fatorial(n)}')
15.818182
42
0.528736
31
174
2.967742
0.612903
0.086957
0
0
0
0
0
0
0
0
0
0.032258
0.287356
174
10
43
17.4
0.709677
0
0
0
0
0
0.289017
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a712905e9ec638daa721b6a4b9b79d609dea3fe
686
py
Python
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
81
2017-05-09T13:20:10.000Z
2021-04-11T14:56:24.000Z
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
648
2017-05-09T13:57:07.000Z
2021-04-27T12:44:26.000Z
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
137
2017-05-28T04:11:00.000Z
2021-09-04T17:46:38.000Z
from tests.isolated_testcase import IsolatedTestCase class NevermindTest(IsolatedTestCase): def test_nevermind(self): self.assertCommand('!nevermind', 'I\'m sorry :(') self.assertCommand('!nm', 'I\'m sorry :(') self.assertCommand('!nEverMINd', 'I\'m sorry :(') self.assertCommand('...
42.875
80
0.616618
71
686
5.929577
0.323944
0.32304
0.066508
0.104513
0.453682
0.320665
0.320665
0.320665
0.320665
0.320665
0
0
0.218659
686
15
81
45.733333
0.785448
0
0
0
0
0
0.306122
0
0
0
0
0
0.666667
1
0.083333
false
0
0.083333
0
0.25
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
1
0
0
0
0
0
0
0
0
0
2
1a714779778dd4a1ce1758b9319d7fbb68580ce1
6,017
py
Python
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
#!C:\Python34\scrapper\Scripts # Place url, linking to ad list, with desired search filters here. url_to_scrape = "http://www.kijiji.ca/b-canot-kayak-paddle-board/quebec/kayak/k0c329l9001" # Set the delay in (s) that the programs waits before scraping again. scrape_delay = 600 # 600 = 10 mins # Set filename to stor...
31.668421
114
0.592156
820
6,017
4.236585
0.268293
0.043178
0.052389
0.074842
0.208693
0.123201
0.07369
0.055843
0.042602
0
0
0.007478
0.266578
6,017
189
115
31.835979
0.779742
0.112016
0
0.275168
0
0.006711
0.247043
0
0
0
0
0
0
1
0.040268
false
0.013423
0.053691
0
0.107383
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a721b84f67bae06186b9dfd9e9eef0d47fea1c9
10,303
py
Python
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
1
2017-08-18T01:17:16.000Z
2017-08-18T01:17:16.000Z
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
null
null
null
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse import datetime import json import re import sys from calendar_service import CalendarService from icalendar import Calendar, Event, vDatetime, vText from logger import Logger from oauth2client.client import AccessTokenRefreshError from pytz import reference logger = Logger() ...
34.0033
77
0.510337
1,120
10,303
4.5625
0.203571
0.029354
0.029941
0.013699
0.14501
0.10137
0.10137
0.089237
0.049706
0.023092
0
0.013307
0.372707
10,303
302
78
34.115894
0.777348
0.051441
0
0.179916
0
0
0.120681
0
0
0
0
0
0
0
null
null
0
0.050209
null
null
0.020921
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1a72bf1b8ebe20d868f1d3cc9bd23715f706abbd
13,401
py
Python
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kikimr/public/api/protos/ydb_discovery.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
36.514986
1,078
0.753526
1,617
13,401
5.952381
0.125541
0.043221
0.025143
0.045714
0.638442
0.522597
0.522597
0.510753
0.502857
0.502857
0
0.033101
0.120812
13,401
366
1,079
36.614754
0.783823
0.049549
0
0.640867
1
0.006192
0.201257
0.159686
0
0
0
0
0
1
0
false
0
0.021672
0
0.021672
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1a74249a03f2cae7503b71c858c78b242c87a346
424
py
Python
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
3
2020-10-20T12:12:36.000Z
2021-12-11T19:10:20.000Z
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
null
null
null
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
null
null
null
from unittest.mock import patch from tests.test_rrpproxy_base import TestRRPProxyBase class TestRRPProxyCheckContact(TestRRPProxyBase): @patch('rrpproxy.RRPProxy.call') def test_calls_call_correctly(self, call_mock): response = self.proxy.check_contact('CONTACT-A') call_mock.assert_called_on...
32.615385
78
0.773585
51
424
6.176471
0.588235
0.07619
0.095238
0
0
0
0
0
0
0
0
0
0.134434
424
12
79
35.333333
0.858311
0
0
0
0
0
0.122642
0.051887
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a74a1e8b0ee6169f83c1660ff3489436c1f2d88
209
py
Python
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
''' Script to run a "Hello World" using Python 3.X and Flask. ''' from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, World!" if __name__ == "__main__": app.run()
13.933333
57
0.645933
31
209
3.967742
0.677419
0.162602
0
0
0
0
0
0
0
0
0
0.005882
0.186603
209
14
58
14.928571
0.717647
0.272727
0
0
0
0
0.152778
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1a75d4ccd2e54ea0708b468c31e7fe2bd3fd2f92
310
py
Python
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
import os def parse_mount(volume_spec): # Docker volumes may be "/src:dest:ro" or simply "/src" components = volume_spec.split(':') perm = 'w' # assume write perm if not specified src_path = components[0] # check if ro specified if components[-1] == 'ro': perm = 'r' return (src_path, perm)
25.833333
57
0.664516
47
310
4.276596
0.659574
0.099502
0
0
0
0
0
0
0
0
0
0.008097
0.203226
310
11
58
28.181818
0.805668
0.354839
0
0
0
0
0.02551
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a76a52e6e7d5bdeb177ef8e685d702c16d3b2ac
20,415
py
Python
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
from __future__ import print_function import os, sys if sys.version_info[0] != 3 or sys.version_info[1] < 0: print('Your Python version is too old! Please use Python 3.0 or higher.') sys.exit(1) import hashlib import fnmatch import configparser import argparse import platform os.chdir(os.path.di...
48.262411
235
0.611903
2,035
20,415
6.092875
0.174447
0.03097
0.015082
0.017743
0.151706
0.079684
0.042584
0.037584
0.019356
0.015243
0
0.017927
0.240411
20,415
422
236
48.376777
0.781647
0.072692
0
0.173789
0
0
0.200703
0.025967
0
0
0
0
0
1
0.051282
false
0
0.019943
0
0.111111
0.150997
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a79ab06520a99ff01196eabd99831377f229eee
13,208
py
Python
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
from io import StringIO from cms.constants import TEMPLATE_INHERITANCE_MAGIC from cms.models import Page from cms.models.pluginmodel import CMSPlugin from cms.models.static_placeholder import StaticPlaceholder from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.mod...
43.022801
79
0.619397
1,514
13,208
5.243065
0.171731
0.084656
0.055682
0.039305
0.293777
0.177375
0.128244
0.094482
0.075082
0.075082
0
0.014637
0.275818
13,208
306
80
43.163399
0.815264
0.019534
0
0.116541
0
0
0.116743
0.001623
0
0
0
0.003268
0.199248
1
0.101504
false
0.003759
0.06391
0.007519
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a79eeac88453654638db9192535898ef31080d0
2,499
py
Python
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
6
2016-02-17T15:04:53.000Z
2021-08-20T09:44:10.000Z
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
62
2015-02-04T23:40:55.000Z
2021-02-18T19:56:02.000Z
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
8
2015-11-15T17:26:42.000Z
2020-12-02T06:36:52.000Z
from twisted.python.components import registerAdapter from axiom.attributes import reference from axiom.item import Item from nevow.page import Element from xmantissa.ixmantissa import INavigableElement, INavigableFragment from xmantissa.webnav import Tab from zope.interface import implements, Interface class ISuspend...
32.454545
81
0.683473
234
2,499
7.299145
0.384615
0.02459
0.012295
0.044496
0.11007
0
0
0
0
0
0
0.000527
0.240496
2,499
76
82
32.881579
0.899368
0.088836
0
0.076923
0
0
0.02843
0
0
0
0
0
0
1
0.096154
false
0.019231
0.134615
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
0
0
0
0
0
0
0
1
0
1a7b4acea6211e0f11b6ce0b1340e0ebd3c19df0
1,889
py
Python
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
############################################## # The MIT License (MIT) # Copyright (c) 2019 Kevin Walchko # see LICENSE for full details ############################################## from __future__ import print_function from setuptools import setup from build_utils import BuildCommand from build_utils import Publis...
30.467742
78
0.654314
187
1,889
6.44385
0.545455
0.049793
0.058091
0.082988
0
0
0
0
0
0
0
0.005239
0.191636
1,889
61
79
30.967213
0.78389
0.043939
0
0.039216
0
0
0.353801
0.018713
0
0
0
0
0
1
0
false
0
0.137255
0
0.137255
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a7bf867c1b1bbf1814a6ce1e2bd6f07d0bcafef
9,244
py
Python
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
3
2021-01-18T12:12:01.000Z
2021-01-18T15:10:43.000Z
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
7
2021-03-03T08:35:56.000Z
2021-11-04T08:34:54.000Z
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
1
2021-03-25T11:34:49.000Z
2021-03-25T11:34:49.000Z
# Scientific Library import matplotlib.pyplot as plt import numpy as np import pandas as pd # Standard Library from collections import defaultdict from concurrent.futures import ThreadPoolExecutor from functools import partial from importlib import reload import logging import os from pathlib import Path # Third Part...
23.521628
93
0.545219
1,160
9,244
4.081034
0.235345
0.034854
0.050697
0.053232
0.246092
0.199409
0.134981
0.109421
0.090621
0.068019
0
0.038037
0.343033
9,244
392
94
23.581633
0.741479
0.082756
0
0.293919
0
0
0.103248
0.004742
0
0
0
0
0
1
0.010135
false
0
0.050676
0
0.077703
0.006757
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a7ca17c8fac0cea02df710a8598ac8c259e6344
1,152
py
Python
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
2
2019-05-12T02:57:58.000Z
2021-06-18T08:54:59.000Z
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
null
null
null
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
3
2020-04-13T21:16:07.000Z
2021-03-24T17:52:39.000Z
######################################################################## ## Combo box with string value interface ######################################################################## from PyQt5.QtWidgets import QComboBox from PyQt5.QtCore import pyqtSignal class StringValueComboBox(QComboBox): valueChanged = p...
41.142857
88
0.604167
116
1,152
5.913793
0.534483
0.026239
0
0
0
0
0
0
0
0
0
0.004246
0.182292
1,152
27
89
42.666667
0.723992
0.032118
0
0
0
0
0.049587
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0.052632
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1a7d17cec7b26d8f082204fb03126fadc5b321d1
274
py
Python
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
1
2021-07-14T02:36:43.000Z
2021-07-14T02:36:43.000Z
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
null
null
null
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
1
2021-02-18T11:38:52.000Z
2021-02-18T11:38:52.000Z
import logging from docker_monitor.policy import PolicyCheck logger = logging.getLogger(__name__) class ActiveBuildCheck(PolicyCheck): description = "is actively building" def __call__(self, container): # return self.PASS_FAST return self.PASS
18.266667
45
0.737226
30
274
6.4
0.766667
0.104167
0.145833
0
0
0
0
0
0
0
0
0
0.19708
274
14
46
19.571429
0.872727
0.076642
0
0
0
0
0.079681
0
0
0
0
0
0
1
0.142857
false
0.142857
0.285714
0.142857
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
3
1a7e3e87f84ae18c2e3e70c21079daec01376fa1
2,433
py
Python
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
1
2020-10-07T16:47:07.000Z
2020-10-07T16:47:07.000Z
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
7
2020-10-07T17:42:13.000Z
2020-12-15T00:43:41.000Z
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
1
2020-10-07T16:49:06.000Z
2020-10-07T16:49:06.000Z
import sys from common import TOMBSTONE, Value from binio import kv_iter, kv_writer from typing import List, Optional, Tuple from os import scandir, stat from sstable import SSTable MIN_THRESHOLD = 4 MIN_SIZE = 50000000 class Bucket: def __init__(self): self.min = 0 self.max = 0 self.avg ...
31.192308
86
0.594328
304
2,433
4.641447
0.259868
0.029766
0.031892
0.022679
0.065202
0.065202
0
0
0
0
0
0.00944
0.303329
2,433
77
87
31.597403
0.823009
0
0
0.060606
0
0.015152
0.043157
0
0
0
0
0
0
1
0.136364
false
0.015152
0.090909
0.030303
0.333333
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a7ee06ae12edb30e9d03447739bff0ec37db3b6
8,002
py
Python
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
from mrl.import_all import * from argparse import Namespace import gym import time def make_ddpg_agent(base_config=default_ddpg_config, args=Namespace(env='InvertedPendulum-v2', tb='', parent_folder='/tmp/mrl', ...
35.564444
142
0.622969
1,006
8,002
4.690855
0.137177
0.045772
0.045772
0.050858
0.619411
0.536978
0.506463
0.478491
0.458148
0.458148
0
0.006972
0.265059
8,002
225
143
35.564444
0.795443
0.022744
0
0.362903
0
0
0.062644
0
0
0
0
0
0
1
0.032258
false
0
0.040323
0
0.104839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a80808d8e9e323c40e1bbd90918908a6dd8d9e0
4,036
py
Python
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
2
2016-07-05T05:52:18.000Z
2018-04-14T07:35:36.000Z
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
null
null
null
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
null
null
null
# Note that this will erase your nvidia cache, ~/.nv/ComputeCache This may or may not be an undesirable side-effect for you. For example, cutorch will take 1-2 minutes or so to start after this cache has been emptied. from __future__ import print_function, division import time import string import random import nump...
27.834483
219
0.652131
590
4,036
4.284746
0.291525
0.031646
0.047468
0.047073
0.294304
0.27057
0.200158
0.177215
0.090981
0.090981
0
0.022472
0.206145
4,036
144
220
28.027778
0.766542
0.106789
0
0.180328
0
0
0.379694
0.110153
0
0
0
0
0
1
0.032787
false
0
0.090164
0
0.139344
0.081967
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a80cfa10b9df2618d9406f7d94897169d17a59a
4,827
py
Python
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
1
2018-08-04T21:57:34.000Z
2018-08-04T21:57:34.000Z
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
16
2018-05-21T16:28:10.000Z
2021-03-17T20:15:25.000Z
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
3
2018-02-08T16:45:59.000Z
2018-03-22T15:26:14.000Z
# Copyright 2020 The Johns Hopkins University Applied Physics Laboratory # # 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...
33.061644
117
0.617982
619
4,827
4.720517
0.298869
0.024641
0.027379
0.031485
0.501027
0.501027
0.45859
0.450376
0.442847
0.442847
0
0.004695
0.293971
4,827
145
118
33.289655
0.8527
0.443132
0
0.474576
0
0
0.272293
0.039809
0
0
0
0
0
1
0.050847
false
0.033898
0.033898
0
0.135593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a81385c1aeda3274db449a3e0247ddc02d27f2f
15,454
py
Python
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
12
2018-08-15T15:12:52.000Z
2021-11-21T16:04:52.000Z
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
19
2018-06-04T15:11:01.000Z
2019-10-09T13:16:02.000Z
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
1
2019-04-09T16:23:30.000Z
2019-04-09T16:23:30.000Z
import sublime import sublime_plugin from collections import defaultdict from math import log10, floor, ceil import threading from subprocess import check_output import re import itertools # pass in a variable name and an optional default value # to get what that value is set to in settings def settings(name, default...
32.81104
123
0.631616
2,026
15,454
4.650543
0.132774
0.045001
0.013373
0.014859
0.686691
0.650074
0.624177
0.617173
0.606135
0.597856
0
0.004473
0.262197
15,454
470
124
32.880851
0.821873
0.155623
0
0.625514
0
0
0.047375
0.004878
0
0
0
0
0
1
0.057613
false
0
0.032922
0.004115
0.156379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a8180645e23b18d704d5f3aab84f4eda829d302
507
py
Python
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
1
2018-09-13T08:36:15.000Z
2018-09-13T08:36:15.000Z
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
6
2018-09-13T09:37:32.000Z
2018-09-26T07:54:59.000Z
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
null
null
null
import sys, json, random from rasa_nlu.model import Interpreter from pprint import pprint interpreter = Interpreter.load("models\\current\\nlu") responses_file = sys.argv[1] responses = json.load(open(responses_file)) while True: question = input("> ") response = interpreter.parse(question) pprint(respo...
24.142857
54
0.70217
61
507
5.786885
0.52459
0.073654
0
0
0
0
0
0
0
0
0
0.002375
0.169625
507
20
55
25.35
0.836105
0
0
0.125
0
0
0.063116
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.1875
0.3125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1a823f974ae1e361b95b99be09d1646e08691c04
204
py
Python
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, s): """ :type s: str :rtype: bool """ s = "".join([ch.lower() for ch in s if ch.isalnum()]) return s == s[::-1]
20.4
61
0.426471
27
204
3.222222
0.740741
0
0
0
0
0
0
0
0
0
0
0.008
0.387255
204
9
62
22.666667
0.688
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3