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
ba1ef5d24ccbf2a971832aa246a86c2ee1b37525
176
py
Python
removecaractere.py
DiegoMGouveia/validadordecnpj
c982911cf00ba5c3202d4501a52c6d6e27d15c3a
[ "CC0-1.0" ]
null
null
null
removecaractere.py
DiegoMGouveia/validadordecnpj
c982911cf00ba5c3202d4501a52c6d6e27d15c3a
[ "CC0-1.0" ]
null
null
null
removecaractere.py
DiegoMGouveia/validadordecnpj
c982911cf00ba5c3202d4501a52c6d6e27d15c3a
[ "CC0-1.0" ]
null
null
null
def removcaract(cnpj): documento = [] for x in cnpj: if x.isnumeric(): documento.append(x) documento = ''.join(documento) return documento
19.555556
34
0.579545
19
176
5.368421
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.306818
176
8
35
22
0.836066
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ba1fb220aa59dba58d3443a661c782258ca19b13
54
py
Python
src/python/WMCore/DQMCat/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/DQMCat/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/DQMCat/__init__.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _DQMCat_ """ __all__ = []
6.75
21
0.555556
6
54
4
1
0
0
0
0
0
0
0
0
0
0
0
0.185185
54
7
22
7.714286
0.545455
0.537037
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ba26069bf439820986a841df4e9fba10364c2283
583
py
Python
python/API_test/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/API_test/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
python/API_test/test.py
GG-yuki/bugs
aabd576e9e57012a3390007af890b7c6ab6cdda8
[ "MIT" ]
null
null
null
# import numpy as np # import matplotlib.pyplot as plt # # def f(t): # return np.exp(-t) * np.cos(2*np.pi*t) # # t1 = np.arange(0.0, 5.0, 0.1) # t2 = np.arange(0.0, 5.0, 0.02) # # plt.figure("2suplot") # plt.subplot(211) # plt.plot(t1, f(t1), 'bo', t2, f(t2), 'k') # # plt.subplot(212) # plt.plot(t2, np.cos(2*np.pi*...
21.592593
43
0.572899
110
583
2.963636
0.363636
0.02454
0.055215
0.07362
0.570552
0.539877
0.539877
0.460123
0.460123
0.460123
0
0.095142
0.152659
583
27
44
21.592593
0.564777
0.795883
0
0
0
0
0.229167
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
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
1
0
2
e83b2680f00ceeb1442b4300ebb740aea12fe54c
1,372
py
Python
tests/test_providers/test_food.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
2,619
2017-07-18T13:25:46.000Z
2022-03-31T17:52:53.000Z
tests/test_providers/test_food.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
947
2017-07-15T18:32:12.000Z
2022-03-28T10:04:15.000Z
tests/test_providers/test_food.py
chinghwayu/mimesis
3afcda8e68ee2f6feb61a5c7ca663328909828fa
[ "MIT" ]
328
2017-07-18T01:11:12.000Z
2022-03-30T09:20:48.000Z
# -*- coding: utf-8 -*- import re import pytest from mimesis import Food from . import patterns class TestFood(object): def test_str(self, food): assert re.match(patterns.DATA_PROVIDER_STR_REGEX, str(food)) def test_vegetable(self, food): result = food.vegetable() assert result in f...
23.655172
68
0.617347
180
1,372
4.6
0.216667
0.092995
0.084541
0.108696
0.310386
0.062802
0
0
0
0
0
0.022505
0.255102
1,372
57
69
24.070175
0.787671
0.015306
0
0.102564
0
0
0.025204
0
0
0
0
0
0.282051
1
0.333333
false
0
0.102564
0.051282
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
e842075d02d5122efe26798a667e10eb60633e5d
22,017
py
Python
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_DeferredFogAdded.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
1
2022-03-28T08:06:58.000Z
2022-03-28T08:06:58.000Z
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_DeferredFogAdded.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Atom/tests/hydra_AtomEditorComponents_DeferredFogAdded.py
BreakerOfThings/o3de
f4c59f868c726470ec910623facd836047d059c3
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ class Tests: deferred_fog_creation = ( "Deferred Fog Entity successfully created", "P0: De...
51.441589
116
0.703774
2,641
22,017
5.634229
0.093147
0.127151
0.099462
0.136089
0.804839
0.716801
0.641196
0.565255
0.521169
0.480578
0
0.014071
0.231775
22,017
427
117
51.562061
0.865673
0.212699
0
0.210145
0
0
0.230774
0.006253
0
0
0
0
0.01087
1
0.003623
false
0
0.021739
0
0.155797
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
e86b6d9c3698570962ab3ef870fc56b4ef2f8095
2,336
py
Python
setup.py
InsightSoftwareConsortium/ITKGenericLabelInterpolator
d804834d5af635241cb92ab0ef2197d6e4f4e50c
[ "Apache-2.0" ]
3
2019-09-09T03:16:26.000Z
2020-05-21T15:19:51.000Z
setup.py
InsightSoftwareConsortium/ITKGenericLabelInterpolator
d804834d5af635241cb92ab0ef2197d6e4f4e50c
[ "Apache-2.0" ]
12
2016-10-14T15:44:48.000Z
2020-06-17T02:33:46.000Z
setup.py
InsightSoftwareConsortium/ITKGenericLabelInterpolator
d804834d5af635241cb92ab0ef2197d6e4f4e50c
[ "Apache-2.0" ]
5
2018-01-17T15:08:24.000Z
2020-05-18T19:26:18.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from os import sys try: from skbuild import setup except ImportError: print('scikit-build is required to build from source.', file=sys.stderr) print('Please run:', file=sys.stderr) print('', file=sys.stderr) print(' python -m pip instal...
40.982456
97
0.627997
234
2,336
6.226496
0.58547
0.051476
0.026767
0.037062
0.096088
0.096088
0.096088
0
0
0
0
0.012622
0.253853
2,336
56
98
41.714286
0.823293
0.00899
0
0
0
0
0.603978
0.062689
0
0
0
0
0
1
0
true
0
0.075472
0
0.075472
0.09434
0
0
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
1
0
0
0
0
0
0
2
e86eac78d1bfe7828b2d429f638b50510a0cf862
366
py
Python
OOP/first_steps_in_OOP_excercise/cup.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
2
2022-03-05T13:17:12.000Z
2022-03-05T13:17:16.000Z
first_steps_in_OOP_excercise/cup.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
first_steps_in_OOP_excercise/cup.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
class Cup: def __init__(self,size,quantity): self.size = size self.quantity = quantity def status(self): return self.size-self.quantity def fill(self, quantity): if self.quantity<=self.status(): self.quantity+=quantity cup = Cup(100, 50) print(cup.status()) ...
17.428571
40
0.617486
49
366
4.530612
0.326531
0.27027
0.144144
0
0
0
0
0
0
0
0
0.032609
0.245902
366
20
41
18.3
0.771739
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0
0.071429
0.357143
0.142857
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
e87da2084cf844776c8fc20cab98cfd12d1d9d68
1,454
py
Python
apps/accounts/views.py
Chamane/django-starter-project
11ee773c3d105826d9d9b8ee492bb57252c2e75c
[ "MIT" ]
1
2019-10-20T05:11:33.000Z
2019-10-20T05:11:33.000Z
apps/accounts/views.py
Chamane/django-skeleton
11ee773c3d105826d9d9b8ee492bb57252c2e75c
[ "MIT" ]
4
2021-06-08T20:30:10.000Z
2022-03-12T00:02:36.000Z
apps/accounts/views.py
Chamane/django-foundation
11ee773c3d105826d9d9b8ee492bb57252c2e75c
[ "MIT" ]
1
2020-08-12T10:49:25.000Z
2020-08-12T10:49:25.000Z
from django.shortcuts import render, redirect from django.contrib.auth import login as auth_login, authenticate, get_user_model from django.urls import reverse from .forms import LoginForm, RegisterForm def login(request): # if request is a HTTP POST try to pull out the relevant information if request.method ...
33.813953
81
0.634801
165
1,454
5.442424
0.351515
0.070156
0.035635
0.042316
0.064588
0
0
0
0
0
0
0
0.269601
1,454
42
82
34.619048
0.845574
0.175378
0
0.148148
0
0
0.07479
0.018487
0
0
0
0.02381
0
1
0.074074
false
0.074074
0.148148
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
e898946db1164b75a4ff3727c9d47e0cde0c12ab
1,969
py
Python
oo2/modelo.py
DuduMontezuma/curso_python_poo
2163649741d14dfa1b7fb410f131971abb3858fe
[ "MIT" ]
null
null
null
oo2/modelo.py
DuduMontezuma/curso_python_poo
2163649741d14dfa1b7fb410f131971abb3858fe
[ "MIT" ]
null
null
null
oo2/modelo.py
DuduMontezuma/curso_python_poo
2163649741d14dfa1b7fb410f131971abb3858fe
[ "MIT" ]
null
null
null
class Programa: def __init__(self, nome, ano): self._nome = nome.title() self.ano = ano self._likes = 0 @property def likes(self): return self._likes def dar_like(self): self._likes += 1 @property def nome(self): return self._nome @nome.se...
22.632184
94
0.656171
257
1,969
4.70428
0.225681
0.072787
0.053763
0.078577
0.290323
0.236559
0.172043
0.172043
0.131514
0.131514
0
0.017544
0.218385
1,969
86
95
22.895349
0.768031
0
0
0.278689
0
0.032787
0.159472
0.014728
0
0
0
0
0
1
0.229508
false
0
0
0.131148
0.42623
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
e8bf5045e9ca64b173db4de3074c8f6695d4a027
898
py
Python
reconsec.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
1
2020-05-02T17:14:46.000Z
2020-05-02T17:14:46.000Z
reconsec.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
null
null
null
reconsec.py
Corshine-Official/Eztools
9278ef4916172505895071c4fc82ee68f4b92e18
[ "MIT" ]
null
null
null
##Author: CORSHINE ################################################## ## / ___/ _ \| _ \/ ___|| | | |_ _| \ | | ____|## ##| | | | | | |_) \___ \| |_| || || \| | _| ## ##| |__| |_| | _ < ___) | _ || || |\ | |___ ## ## \____\___/|_| \_\____/|_| |_|___|_| \_|_____|## ##############################################...
27.212121
67
0.494432
86
898
4.395349
0.476744
0.092593
0.063492
0.068783
0
0
0
0
0
0
0
0.007833
0.146993
898
32
68
28.0625
0.48564
0.232739
0
0
0
0
0.219684
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.411765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
e8d42944bf85008756e6f87a53f4073b97be7f98
244
py
Python
leetcode/python/504_base_7.py
VVKot/leetcode-solutions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
4
2019-04-22T11:57:36.000Z
2019-10-29T09:12:56.000Z
leetcode/python/504_base_7.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
leetcode/python/504_base_7.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
class Solution: def convertToBase7(self, num: int) -> str: result = '' n = abs(num) while n: n, curr = divmod(n, 7) result = str(curr) + result return '-' * (num < 0) + result or '0'
24.4
46
0.463115
29
244
3.896552
0.62069
0
0
0
0
0
0
0
0
0
0
0.027211
0.397541
244
9
47
27.111111
0.741497
0
0
0
0
0
0.008197
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
2ce19310597369332c9e74b49bd510aea31275cc
434
py
Python
test/test_file.py
dawoodkhan82/Maniac-Bot-Test
536a37f9bde5ba97bf8b7ec450ec24dae33ab6cd
[ "0BSD" ]
null
null
null
test/test_file.py
dawoodkhan82/Maniac-Bot-Test
536a37f9bde5ba97bf8b7ec450ec24dae33ab6cd
[ "0BSD" ]
null
null
null
test/test_file.py
dawoodkhan82/Maniac-Bot-Test
536a37f9bde5ba97bf8b7ec450ec24dae33ab6cd
[ "0BSD" ]
null
null
null
""" test: """ def sum_function(a, b, c): """ returns sum of a and b :param a: array :param b: integer :return: sum of a and b change """ c = a return c def average_function(a, b): """ returns the average of the squares of a and b :param a: integer :param b: inte...
14
49
0.525346
71
434
3.169014
0.295775
0.053333
0.106667
0.124444
0.173333
0.115556
0
0
0
0
0
0.010676
0.352535
434
30
50
14.466667
0.790036
0.467742
0
0.375
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.125
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
2ce886f7acef4d60af3f9bc82c962bf6389e0074
1,590
py
Python
python/lib/Lib/site-packages/django/views/static.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-03-10T03:34:14.000Z
2020-06-09T22:53:32.000Z
python/lib/Lib/site-packages/django/views/static.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
null
null
null
python/lib/Lib/site-packages/django/views/static.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
1
2018-10-03T12:35:06.000Z
2018-10-03T12:35:06.000Z
""" Views and functions for serving static files. These are only to be used during development, and SHOULD NOT be used in a production setting. """ import mimetypes import os import posixpath import re import stat import urllib import warnings from email.Utils import parsedate_tz, mktime_tz from django.template impor...
37.857143
98
0.740881
220
1,590
5.281818
0.504545
0.043029
0.030981
0.041308
0.068847
0
0
0
0
0
0
0.002285
0.174214
1,590
41
99
38.780488
0.882711
0.415094
0
0
0
0
0.133106
0.076223
0
0
0
0
0
1
0.052632
false
0
0.684211
0
0.789474
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
2ce8c5d6bfb3409043fe9182f3a832f5b173e331
220
py
Python
test/util.py
pyrige/greedypacker
ca6a302af2b0275a52df91be01831c87ee428aa2
[ "Apache-2.0" ]
108
2017-11-04T02:26:44.000Z
2021-09-19T01:27:37.000Z
test/util.py
pyrige/greedypacker
ca6a302af2b0275a52df91be01831c87ee428aa2
[ "Apache-2.0" ]
10
2018-05-31T08:08:47.000Z
2021-06-01T22:02:19.000Z
test/util.py
pyrige/greedypacker
ca6a302af2b0275a52df91be01831c87ee428aa2
[ "Apache-2.0" ]
24
2017-12-01T04:22:09.000Z
2021-11-02T07:37:49.000Z
import sys import contextlib @contextlib.contextmanager def stdout_redirect(stringIO): sys.stdout = stringIO try: yield stringIO finally: sys.stdout = sys.__stdout__ stringIO.seek(0)
18.333333
35
0.681818
24
220
6.041667
0.541667
0.186207
0.234483
0
0
0
0
0
0
0
0
0.006061
0.25
220
11
36
20
0.872727
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
1
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
2
2cf099bfde81fc69bf5322d331fa296b309dfadf
95
py
Python
day09/test05.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
day09/test05.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
day09/test05.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
import wx; app = wx.App(); frame = wx.Frame(None,0,'wxPython'); frame.Show(); app.MainLoop();
13.571429
36
0.642105
15
95
4.066667
0.6
0.163934
0
0
0
0
0
0
0
0
0
0.011905
0.115789
95
6
37
15.833333
0.714286
0
0
0
0
0
0.084211
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa08e7120d71853d269a946a4c5a5a461272fdb7
2,466
py
Python
syncstream/webtools.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
syncstream/webtools.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
syncstream/webtools.py
cainmagi/sync-stream
8d50bd2c9f13071b057dd2583b80f63229f89b0e
[ "MIT" ]
null
null
null
#!python # -*- coding: UTF-8 -*- ''' ################################################################ # Tools used for web connections and services. # @ Sync-stream # Produced by # Yuchen Jin @ cainmagi@gmail.com, # yjin4@uh.edu. # Requirements: (Pay attention to version) # python 3.6+ # fasteners 0.16...
29.710843
105
0.643552
301
2,466
5.033223
0.352159
0.033003
0.034323
0.027723
0.444224
0.444224
0.444224
0.444224
0.350495
0.29505
0
0.007776
0.217762
2,466
82
106
30.073171
0.777605
0.428629
0
0.147059
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0.088235
0.058824
0.558824
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
fa097d090d49a098699f5d92400d2487139dd4c9
153
py
Python
emgen/storage/config.py
emgenio/emgen-site
76b958390fe9e81245e0b6af2dd7de63bf5dc857
[ "Artistic-2.0" ]
null
null
null
emgen/storage/config.py
emgenio/emgen-site
76b958390fe9e81245e0b6af2dd7de63bf5dc857
[ "Artistic-2.0" ]
null
null
null
emgen/storage/config.py
emgenio/emgen-site
76b958390fe9e81245e0b6af2dd7de63bf5dc857
[ "Artistic-2.0" ]
null
null
null
STORAGE_DSN="mongodb://mongo/emgenstore" STORAGE_DB="emgenstore" TTL=14400 #db.log_events.createIndex( { "createdAt": 1 }, { expireAfterSeconds: 3600 } )
38.25
78
0.75817
18
153
6.277778
0.833333
0
0
0
0
0
0
0
0
0
0
0.070922
0.078431
153
4
78
38.25
0.730496
0.503268
0
0
0
0
0.473684
0.342105
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa0d712343974ab9859f38111ecfd7a47a070be1
223
py
Python
check_eda.py
rblcoder/Analyzing-open-data-edd-ca
04dc0df7606eadd3a71317847237397b98aeabe1
[ "Apache-2.0" ]
null
null
null
check_eda.py
rblcoder/Analyzing-open-data-edd-ca
04dc0df7606eadd3a71317847237397b98aeabe1
[ "Apache-2.0" ]
null
null
null
check_eda.py
rblcoder/Analyzing-open-data-edd-ca
04dc0df7606eadd3a71317847237397b98aeabe1
[ "Apache-2.0" ]
null
null
null
from utils import eda, eda_plotting import ipywidgets as widgets import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt def check1(): eda_iv = eda_plotting.Eda_Plotting() check1()
20.272727
40
0.789238
36
223
4.777778
0.555556
0.19186
0
0
0
0
0
0
0
0
0
0.010695
0.161435
223
11
41
20.272727
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.666667
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
fa13bc00e8286199880821e6c04e099ce857be14
347
py
Python
examples/mnist_efficientnet/mnist_efficientnet/network.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
1
2020-09-03T08:19:46.000Z
2020-09-03T08:19:46.000Z
examples/mnist_efficientnet/mnist_efficientnet/network.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
null
null
null
examples/mnist_efficientnet/mnist_efficientnet/network.py
ar90n/kkt
e772860b20231e067973478350a4f0edb8bf5db1
[ "Apache-2.0" ]
null
null
null
import timm import torch import torch.nn as nn class Network(nn.Module): def __init__(self): super(Network, self).__init__() self.net = timm.create_model("efficientnet_b0", num_classes=10) def forward(self, x): return self.net(x) def extract_result(net_out): return (torch.max(ne...
20.411765
71
0.67147
52
347
4.211538
0.576923
0.100457
0
0
0
0
0
0
0
0
0
0.017986
0.198847
347
16
72
21.6875
0.769784
0
0
0
0
0
0.043228
0
0
0
0
0
0
1
0.272727
false
0
0.272727
0.181818
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
fa24c06f6cb71d0d132ad5eaf12a37f9f961d403
3,896
py
Python
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.shortcuts import render, HttpResponse from .models import Reporter, Article from datetime import date def single_create(request): # 测试用例-1: 创建一条维表数据和一条主表数据. # 1. 创建维表数据. # INSERT INTO `manytoonefield_reporter` (`first_name`, `last_name`, `email`) # VALUES ('John', 'Smith', 'john@example.co...
42.813187
118
0.630903
416
3,896
5.71875
0.204327
0.229508
0.070618
0.091215
0.656578
0.656578
0.638083
0.613703
0.591005
0.591005
0
0.021398
0.23229
3,896
90
119
43.288889
0.773989
0.611653
0
0.24
0
0
0.108276
0
0
0
0
0.011111
0
1
0.08
false
0
0.12
0
0.28
0.2
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
1
0
0
0
0
0
0
0
0
0
0
2
fa3f5463140c204c3bff9a9b399127aa2571317e
604
py
Python
corehq/motech/repeaters/migrations/0004_attempt_strings.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/repeaters/migrations/0004_attempt_strings.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/repeaters/migrations/0004_attempt_strings.py
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 2.2.19 on 2021-04-10 14:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('repeaters', '0003_migrate_connectionsettings'), ] operations = [ migrations.AlterField( model_name='sqlrepeatrecordattempt', ...
25.166667
59
0.602649
54
604
6.666667
0.62963
0.111111
0.138889
0.161111
0.505556
0.505556
0
0
0
0
0
0.046083
0.281457
604
23
60
26.26087
0.78341
0.076159
0
0.470588
1
0
0.179856
0.134892
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa3facbe147c10169ce12c2ef4fdeb7436c59421
601
py
Python
errorScreen.py
Heliodex/HybridOS
27024daa336159d6a300b3463e8a0cbd98dee93e
[ "Unlicense" ]
2
2021-03-19T02:39:18.000Z
2021-07-31T18:05:28.000Z
errorScreen.py
HelioDex/HybridOS
4cf2fba325f18a86b7b0e744dbf5cf2cf7271d61
[ "Unlicense" ]
null
null
null
errorScreen.py
HelioDex/HybridOS
4cf2fba325f18a86b7b0e744dbf5cf2cf7271d61
[ "Unlicense" ]
null
null
null
def error(): from colorama import Fore from os import system system("clear") print(Fore.BLUE + """ A problem has occured and HybridOS needs to shut down. We will shut down and display the error when you press enter. We're sorry if we caused any inconvenience. == TEST BEGIN == { T0cgPSBUcnVlCk1PRCA9I...
16.243243
62
0.758735
68
601
6.705882
0.808824
0.035088
0
0
0
0
0
0
0
0
0
0.04878
0.181364
601
37
63
16.243243
0.878049
0
0
0
0
0
0.800664
0.292359
0
0
0
0
0
1
0.045455
true
0
0.090909
0
0.136364
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
fa4de4dcfaefaff226e9de2f8d35f31a08f4c8e9
66,216
py
Python
analyze/check_analyze.py
JunboLu/CP2K_kit
0950f37f253c3f90d6a0539c57f1be1045e7317d
[ "Apache-2.0" ]
16
2021-04-19T03:40:32.000Z
2022-02-21T12:53:33.000Z
analyze/check_analyze.py
JunboLu/CP2K_kit
0950f37f253c3f90d6a0539c57f1be1045e7317d
[ "Apache-2.0" ]
null
null
null
analyze/check_analyze.py
JunboLu/CP2K_kit
0950f37f253c3f90d6a0539c57f1be1045e7317d
[ "Apache-2.0" ]
2
2021-11-28T02:55:31.000Z
2022-02-21T12:54:52.000Z
#! /use/env/bin python import os import copy from collections import OrderedDict from CP2K_kit.tools import data_op from CP2K_kit.tools import log_info from CP2K_kit.tools import traj_info def check_step(init_step, end_step, start_frame_id, end_frame_id): ''' check_step: check the input step Args: init_st...
40.400244
146
0.677978
10,353
66,216
4.012267
0.023375
0.032018
0.045259
0.067888
0.823299
0.727894
0.647705
0.568911
0.513204
0.477527
0
0.005909
0.200042
66,216
1,638
147
40.424908
0.77829
0.047859
0
0.453344
0
0.002333
0.320304
0.079403
0
0
0
0
0
1
0.010109
false
0.008554
0.004666
0
0.027994
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa4fcf11c3e0d7848affc502abed9001f5ba7a11
276
py
Python
probability/measure/algebra/borel.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
probability/measure/algebra/borel.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
probability/measure/algebra/borel.py
jedhsu/probability
cd94726315cd6d9e537925cdd2f13cf7911dbb92
[ "Apache-2.0" ]
null
null
null
# just do power set for now. ez __all__ = ["BorelAlgebra"] from .sigma import SigmaAlgebra # this step is not super explicitly necessary as long as you handle the borel mechanism implicitly class BorelAlgebra(SigmalAlgebra): symbol = "B" class BorelSpace: pass
17.25
98
0.742754
37
276
5.432432
0.918919
0
0
0
0
0
0
0
0
0
0
0
0.199275
276
15
99
18.4
0.909502
0.456522
0
0
0
0
0.088435
0
0
0
0
0
0
1
0
false
0.166667
0.166667
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
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
fa5083b2cae596caa53eabcc4d2defeeab957579
362
py
Python
copulas/multivariate/__init__.py
pvk-developer/Copulas
4de54e946ecb1e2bf831874e6a00a7d04d302804
[ "MIT" ]
71
2018-06-20T12:07:34.000Z
2020-01-03T21:43:01.000Z
copulas/multivariate/__init__.py
Hooddi/Copulas
86dc1304fe4ffb51302fc37801d7f18c4ab4d88d
[ "MIT" ]
75
2018-06-20T09:46:07.000Z
2019-12-23T15:04:19.000Z
copulas/multivariate/__init__.py
Hooddi/Copulas
86dc1304fe4ffb51302fc37801d7f18c4ab4d88d
[ "MIT" ]
25
2018-06-24T18:01:11.000Z
2020-01-02T14:30:09.000Z
"""Multivariate copulas module.""" from copulas.multivariate.base import Multivariate from copulas.multivariate.gaussian import GaussianMultivariate from copulas.multivariate.tree import Tree, TreeTypes from copulas.multivariate.vine import VineCopula __all__ = ( 'Multivariate', 'GaussianMultivariate', 'V...
24.133333
62
0.767956
34
362
8.058824
0.382353
0.160584
0.335766
0
0
0
0
0
0
0
0
0
0.140884
362
14
63
25.857143
0.881029
0.077348
0
0
0
0
0.167683
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
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
1
0
0
0
0
2
fa583b36546ffd32a550057f809cc32efb9ae476
3,929
py
Python
venv/Include/Tuple.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
1
2021-06-03T11:34:15.000Z
2021-06-03T11:34:15.000Z
venv/Include/Tuple.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
venv/Include/Tuple.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from enum import Enum import math import sys EPSILON = 0.00001 def isEqual(a, b): return True if abs(a - b) < EPSILON else False # Tuple types enum class TupleTypes(Enum): VECTOR = 0 POINT = 1 # Tuple struct # Implement tuple as numpy array of 4 elements with properties...
31.943089
145
0.576992
569
3,929
3.852373
0.140598
0.034215
0.082117
0.043796
0.458029
0.410584
0.373175
0.359489
0.341241
0.284215
0
0.00566
0.280478
3,929
122
146
32.204918
0.769721
0.040468
0
0.162791
0
0
0.017273
0
0
0
0
0
0
1
0.325581
false
0
0.046512
0.27907
0.744186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
fa6dbab6702b162536c6542a80ba754c79e3c51e
4,065
py
Python
scripts/clean_dataset.py
bonaventuredossou/fakenews_detection
062d4348ab76860a48f745cda883db8ab416c250
[ "MIT" ]
null
null
null
scripts/clean_dataset.py
bonaventuredossou/fakenews_detection
062d4348ab76860a48f745cda883db8ab416c250
[ "MIT" ]
null
null
null
scripts/clean_dataset.py
bonaventuredossou/fakenews_detection
062d4348ab76860a48f745cda883db8ab416c250
[ "MIT" ]
1
2022-01-10T02:45:30.000Z
2022-01-10T02:45:30.000Z
# Bonaventure F. P. Dossou - MSc in Data Engineering # Project: RL Approach in Fake News Detection # Task at hand in this script: Clean a (.csv) dataframe (dataset) # imports import pandas as pd import string import re from nltk import word_tokenize from nltk.corpus import stopwords # from geograpy import places true...
35.043103
95
0.647724
567
4,065
4.54321
0.268078
0.201087
0.163043
0.243401
0.480978
0.356755
0.233307
0.233307
0.193323
0.163043
0
0.002074
0.169742
4,065
116
96
35.043103
0.760889
0.147847
0
0.153846
0
0
0.171848
0.018768
0
0
0
0
0
1
0.038462
false
0
0.064103
0.012821
0.141026
0.153846
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa7022cd3a8c7679fcdb3a3b88b0a0f8f90cf327
628
py
Python
AzureConnect.py
BK-Uni-Projects/IoT_Python
7eda60d83ae2d184555f4be5f59e23c8e0bcc2d4
[ "MIT" ]
null
null
null
AzureConnect.py
BK-Uni-Projects/IoT_Python
7eda60d83ae2d184555f4be5f59e23c8e0bcc2d4
[ "MIT" ]
null
null
null
AzureConnect.py
BK-Uni-Projects/IoT_Python
7eda60d83ae2d184555f4be5f59e23c8e0bcc2d4
[ "MIT" ]
null
null
null
import requests import json def mysensor(sensor): senseid = {"sensorid": sensor} return senseid def AddData(id, type, value): payload = {"sensorid":id, "sensortype":type, "value":value} return payload def getSensorData(reqsensor): RespGet = requests.get(MainURL+GetURL, params=mysensor(reqsensor)) ...
23.259259
94
0.737261
67
628
6.910448
0.522388
0.038877
0.12527
0
0
0
0
0
0
0
0
0
0.14172
628
26
95
24.153846
0.858998
0
0
0
0
0
0.20903
0.075251
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5625
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
3afa9521abc326b66cde24e738f4278d45952338
946
py
Python
src/modax/training/losses/.ipynb_checkpoints/utils-checkpoint.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
2
2021-12-10T14:36:37.000Z
2022-02-10T11:47:03.000Z
src/modax/training/losses/.ipynb_checkpoints/utils-checkpoint.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
null
null
null
src/modax/training/losses/.ipynb_checkpoints/utils-checkpoint.py
GJBoth/modax
c7e1c128d4dd48b776f8ec4fa724c2e4b6e13c82
[ "MIT" ]
2
2020-12-22T14:49:13.000Z
2021-04-09T08:52:08.000Z
import jax import jax.numpy as jnp from jax.scipy.stats import norm def mse(y_pred, y): """Helper fuction to calculate MSE. """ def squared_error(y, y_pred): return jnp.inner(y - y_pred, y - y_pred) return jnp.mean(jax.vmap(squared_error)(y, y_pred), axis=0) def normal_LL(x, mu, tau): ...
25.567568
82
0.613108
162
946
3.5
0.401235
0.044092
0.042328
0.049383
0.10582
0
0
0
0
0
0
0.022567
0.250529
946
36
83
26.277778
0.777151
0.2537
0
0
0
0
0
0
0
0
0
0
0
1
0.263158
false
0
0.157895
0.052632
0.684211
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
d704cb054c560656e280923fda0403a0e8c5ab58
598
py
Python
tests/test_datasets.py
v715/popcon
b0874d68c0051cae6971710521a4031c16c54b12
[ "Apache-2.0" ]
1
2020-08-06T17:49:26.000Z
2020-08-06T17:49:26.000Z
tests/test_datasets.py
v715/popcon
b0874d68c0051cae6971710521a4031c16c54b12
[ "Apache-2.0" ]
null
null
null
tests/test_datasets.py
v715/popcon
b0874d68c0051cae6971710521a4031c16c54b12
[ "Apache-2.0" ]
null
null
null
import pytest from popcon.datasets import load_mice def test_mice(): # Load the mouse dataset mice = load_mice() # Split population by genotype _, btbr = mice.multigraph.query("genotype == 'BTBR'") _, b6 = mice.multigraph.query("genotype == 'B6'") _, cast = mice.multigraph.query("genotype =...
28.47619
62
0.635452
76
598
4.907895
0.460526
0.187668
0.203753
0.289544
0
0
0
0
0
0
0
0.042017
0.204013
598
20
63
29.9
0.741597
0.085284
0
0
0
0
0.128676
0
0
0
0
0
0.333333
1
0.083333
false
0
0.166667
0
0.25
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d713b3463e8b0d9c675736b4c1100aa9e514d3c9
2,183
py
Python
tests/test_compress.py
elkinsd/couchapp
944797b03e4dfb2a5fbd0b5710568104e3775b31
[ "Apache-2.0" ]
224
2015-01-03T13:35:56.000Z
2022-02-13T14:27:17.000Z
tests/test_compress.py
elkinsd/couchapp
944797b03e4dfb2a5fbd0b5710568104e3775b31
[ "Apache-2.0" ]
79
2015-03-11T15:28:00.000Z
2022-02-17T13:53:46.000Z
tests/test_compress.py
elkinsd/couchapp
944797b03e4dfb2a5fbd0b5710568104e3775b31
[ "Apache-2.0" ]
56
2015-01-03T13:37:22.000Z
2022-01-11T08:33:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. import unittest2 as unittest import mock import os class CompressTest(unittest.TestCase): def test_compress_js(self): from couchapp....
38.298246
105
0.640861
259
2,183
5.173745
0.343629
0.035821
0.058209
0.047015
0.504478
0.481343
0.407463
0.407463
0.407463
0.407463
0
0.001218
0.247824
2,183
56
106
38.982143
0.81486
0.094824
0
0.358974
0
0
0.2
0.085787
0
0
0
0
0.076923
1
0.128205
false
0
0.435897
0
0.641026
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
d71c31b14c19cfcb4d90c252a380c9ffe98fe7af
8,517
py
Python
src/the_tale/the_tale/game/bills/tests/test_road_change.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/bills/tests/test_road_change.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/bills/tests/test_road_change.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class RoadChangeTests(helpers.BaseTestPrototypes): def setUp(self): super().setUp() self.new_path = 'rddr' self.old_road = roads_logic.road_between_places(self.place1, self.place2) self.assertNotEqual(self.new_path, self.old_road.path)...
49.807018
127
0.581073
985
8,517
4.751269
0.122843
0.083761
0.1
0.103205
0.782051
0.738675
0.709615
0.675641
0.628205
0.563675
0
0.01627
0.31443
8,517
170
128
50.1
0.785237
0
0
0.373984
0
0
0.090535
0.058126
0
0
0
0
0.325203
1
0.105691
false
0
0.01626
0
0.130081
0
0
0
0
null
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d71cb68f9bdc1071b4aafeec40b87a85c10fe5e7
383
py
Python
custom_layers/pad_layer.py
bobenxia/Centripetal-SGD
e33350464504085a641a2a969d3c06e3d5cc4765
[ "Apache-2.0" ]
767
2019-10-08T01:32:47.000Z
2022-03-27T14:39:44.000Z
custom_layers/pad_layer.py
ShawnDing1994/ACNet
9586a269d7065805aafb8f1d69d425e84cec55f1
[ "MIT" ]
48
2019-11-04T12:05:15.000Z
2021-11-28T06:50:30.000Z
custom_layers/pad_layer.py
ShawnDing1994/ACNet
9586a269d7065805aafb8f1d69d425e84cec55f1
[ "MIT" ]
140
2019-10-29T07:49:24.000Z
2022-03-27T13:01:22.000Z
import torch.nn as nn import torch.nn.functional as F class PadLayer(nn.Module): # E.g., (-1, 0) means this layer should crop the first and last rows of the feature map. And (0, -1) crops the first and last columns def __init__(self, pad): super(PadLayer, self).__init__() self.pad = pad ...
31.916667
139
0.644909
63
383
3.793651
0.571429
0.087866
0.108787
0.125523
0
0
0
0
0
0
0
0.017182
0.240209
383
12
140
31.916667
0.804124
0.342037
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d721feae5478cacb7636788cfeec491dc6623a53
711
py
Python
groundstation/broadcast_discoverer.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
26
2015-06-18T20:17:07.000Z
2019-09-26T09:55:35.000Z
groundstation/broadcast_discoverer.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
null
null
null
groundstation/broadcast_discoverer.py
richo/groundstation
7ed48dd355051ee6b71164fc801e3893c09d11db
[ "MIT" ]
5
2015-07-20T01:52:47.000Z
2017-01-08T09:54:07.000Z
import socket from sockets.broadcast_socket import BroadcastSocket import logger log = logger.getLogger(__name__) class BroadcastDiscoverer(BroadcastSocket): def __init__(self, port): super(BroadcastDiscoverer, self).__init__() self.socket.bind(('0.0.0.0', port)) def __del__(self): "...
23.7
60
0.673699
81
711
5.654321
0.481481
0.069869
0.0131
0
0
0
0
0
0
0
0
0.007273
0.226442
711
29
61
24.517241
0.825455
0.151899
0
0
0
0
0.159155
0
0
0
0
0
0
1
0.238095
false
0
0.142857
0
0.52381
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
d722485ae10f9a522da2ef41afd138479c7a923b
219
py
Python
falkon/ooc_ops/__init__.py
fwilliams/falkon
26deb0aeeaa867ac370b9316bdfa4f4a1160b3e6
[ "MIT" ]
1
2021-11-10T16:50:53.000Z
2021-11-10T16:50:53.000Z
falkon/ooc_ops/__init__.py
fwilliams/falkon
26deb0aeeaa867ac370b9316bdfa4f4a1160b3e6
[ "MIT" ]
null
null
null
falkon/ooc_ops/__init__.py
fwilliams/falkon
26deb0aeeaa867ac370b9316bdfa4f4a1160b3e6
[ "MIT" ]
null
null
null
try: from .ooc_lauum import gpu_lauum from .ooc_potrf import gpu_cholesky except (OSError, ModuleNotFoundError): # No GPU gpu_lauum = None gpu_cholesky = None __all__ = ("gpu_lauum", "gpu_cholesky")
24.333333
39
0.712329
29
219
4.965517
0.482759
0.166667
0
0
0
0
0
0
0
0
0
0
0.205479
219
9
40
24.333333
0.827586
0.027397
0
0
0
0
0.099057
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d7389fa33af8ef8bf4ec941edbc596f33da32e3b
1,569
py
Python
gap.py
BakaBBQ/gap
b133cb0d57a04d8750d66e5c46125fe7d9edc4bf
[ "MIT" ]
null
null
null
gap.py
BakaBBQ/gap
b133cb0d57a04d8750d66e5c46125fe7d9edc4bf
[ "MIT" ]
null
null
null
gap.py
BakaBBQ/gap
b133cb0d57a04d8750d66e5c46125fe7d9edc4bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import urllib import urllib2 import argparse import spur import os parser = argparse.ArgumentParser(description="retrieve a file from a server") parser.add_argument('server', metavar='server', help='server in favor of user@host') parser.add_argument('file_url', metavar='file_url') parser.add_ar...
28.527273
138
0.681326
220
1,569
4.781818
0.354545
0.023764
0.064639
0.047529
0.119772
0.119772
0.119772
0.119772
0.119772
0.119772
0
0.00304
0.161249
1,569
54
139
29.055556
0.796353
0.071383
0
0.153846
0
0
0.21404
0.048864
0
0
0
0
0
0
null
null
0.102564
0.153846
null
null
0.128205
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
d739ec32c1366663f8e0014aff0d0aab644da947
611
py
Python
src/server/master/master_manager/change_password.py
dpaola2/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
15
2015-02-14T02:39:04.000Z
2021-12-13T14:17:15.000Z
src/server/master/master_manager/change_password.py
ojengwa/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
null
null
null
src/server/master/master_manager/change_password.py
ojengwa/djangy
4b10e681cb49e5c16aba4429dfbfadfd9b512463
[ "NCSA" ]
11
2015-08-07T11:47:02.000Z
2021-04-29T08:08:24.000Z
import sys from hashlib import md5 from management_database import User def hash_password(email, password): return md5("%s:%s" % (email, password)).hexdigest() def main(email, password): try: user = User.get_by_email(email) user.passwd = hash_password(email, password) user.save() e...
25.458333
71
0.646481
82
611
4.634146
0.487805
0.171053
0.089474
0.131579
0
0
0
0
0
0
0
0.010593
0.227496
611
23
72
26.565217
0.794492
0
0
0
0
0
0.145663
0
0
0
0
0
0
0
null
null
0.368421
0.157895
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
d74c61016501e6ac4b0e3407fce3c76d6a388c16
90
py
Python
output/models/ms_data/regex/myanmar_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/myanmar_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/myanmar_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.myanmar_xsd.myanmar import Doc __all__ = [ "Doc", ]
15
63
0.722222
13
90
4.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.155556
90
5
64
18
0.776316
0
0
0
0
0
0.033333
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d77fe952058c784f76973734ce34ffc2765b9d43
117
py
Python
aiourlshortener/__init__.py
das7pad/aiourlshortener
457e6ceb2d2674a60dbca455e214b52c0a3ed484
[ "MIT" ]
3
2018-02-02T07:08:59.000Z
2021-01-23T17:01:19.000Z
aiourlshortener/__init__.py
das7pad/aiourlshortener
457e6ceb2d2674a60dbca455e214b52c0a3ed484
[ "MIT" ]
7
2018-01-28T15:38:55.000Z
2018-03-31T12:34:44.000Z
aiourlshortener/__init__.py
das7pad/aiourlshortener
457e6ceb2d2674a60dbca455e214b52c0a3ed484
[ "MIT" ]
1
2018-01-27T13:21:13.000Z
2018-01-27T13:21:13.000Z
from .shorteners import Shortener, Shorteners __version__ = '0.0.3' __author__ = 'Chirag Patel' __license__ = 'MIT'
19.5
45
0.752137
14
117
5.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0.029703
0.136752
117
5
46
23.4
0.722772
0
0
0
0
0
0.17094
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d78b711b403b547eedf363063cb0c6ac808aa5f2
135
py
Python
output/models/ms_data/identity_constraint/id_g001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/identity_constraint/id_g001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/identity_constraint/id_g001_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.identity_constraint.id_g001_xsd.id_g001 import ( Root, Uid, ) __all__ = [ "Root", "Uid", ]
13.5
75
0.644444
18
135
4.333333
0.777778
0.153846
0
0
0
0
0
0
0
0
0
0.057143
0.222222
135
9
76
15
0.685714
0
0
0
0
0
0.051852
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d79167e89e926007816c6a460257c0bed5504a94
5,829
py
Python
tests/test_distance.py
rionbr/distanceclosure
f773af27e11112fc2a71fe7eaed7f56d8835ed9d
[ "MIT" ]
9
2016-02-12T22:09:47.000Z
2022-02-17T17:02:37.000Z
tests/test_distance.py
rionbr/distanceclosure
f773af27e11112fc2a71fe7eaed7f56d8835ed9d
[ "MIT" ]
3
2022-01-13T15:09:35.000Z
2022-02-14T13:50:28.000Z
tests/test_distance.py
rionbr/distanceclosure
f773af27e11112fc2a71fe7eaed7f56d8835ed9d
[ "MIT" ]
3
2017-10-27T16:42:41.000Z
2022-01-20T08:54:51.000Z
from distanceclosure.distance import pairwise_proximity, _jaccard_coef_scipy, _jaccard_coef_binary, _jaccard_coef_set, _jaccard_coef_weighted_numpy import numpy as np from scipy.sparse import csr_matrix B = np.array([ [1, 1, 1, 1], [1, 1, 1, 0], [1, 1, 0, 0], [1, 0, 0, 0], ]) N = np.array([ [2, 3,...
32.383333
147
0.587236
921
5,829
3.579805
0.071661
0.022445
0.121322
0.06976
0.786473
0.733394
0.677889
0.670306
0.636639
0.613285
0
0.111807
0.232802
5,829
179
148
32.564246
0.625447
0.184594
0
0.6
0
0
0.02207
0
0
0
0
0
0.107692
1
0.123077
false
0
0.023077
0.015385
0.161538
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad11fd7e89e6fdb4e2f78714134c097905da987e
1,124
py
Python
testes/teste_pontos.py
nanapereira/python-introducao
092fdf775c680149df3e329d832b7c4d120b19be
[ "MIT" ]
null
null
null
testes/teste_pontos.py
nanapereira/python-introducao
092fdf775c680149df3e329d832b7c4d120b19be
[ "MIT" ]
null
null
null
testes/teste_pontos.py
nanapereira/python-introducao
092fdf775c680149df3e329d832b7c4d120b19be
[ "MIT" ]
null
null
null
import unittest def remove_pontos(palavra): resultado = palavra.split('.') return "".join(resultado) def adiciona_pontos(palavra): resultado = list(palavra) return ".".join(resultado) class RemovePontosTest(unittest.TestCase): def test_com_pontos(self): esperado = "teste" resultad...
28.820513
52
0.661032
133
1,124
5.383459
0.323308
0.048883
0.125698
0.223464
0.375698
0.361732
0.307263
0.307263
0.184358
0.184358
0
0
0.215302
1,124
39
53
28.820513
0.811791
0
0
0.290323
0
0
0.079111
0
0
0
0
0
0.16129
1
0.225806
false
0
0.032258
0
0.387097
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
ad1bfb7a43f3d893acaa48b26237faea58b95632
644
py
Python
{{cookiecutter.project_slug}}/run.py
bwrsandman/cookiecutter-tornado
94f9ce23de3f65c84bd20ca1bff3f775ae8880b2
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/run.py
bwrsandman/cookiecutter-tornado
94f9ce23de3f65c84bd20ca1bff3f775ae8880b2
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/run.py
bwrsandman/cookiecutter-tornado
94f9ce23de3f65c84bd20ca1bff3f775ae8880b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Basic run script""" import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web import tornado.autoreload from tornado.options import options import tornado.web from settings import settings from {{ cookiecutter.project_slug }}.urls impor...
20.125
72
0.73913
78
644
5.858974
0.5
0.170678
0.087527
0.100656
0
0
0
0
0
0
0
0.001815
0.14441
644
31
73
20.774194
0.827586
0.065217
0
0.111111
0
0
0.013841
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
ad20020ffdc1081bd8832fee449e6a1bc337c282
471
py
Python
login.py
nishthapant/cgi-lab
3fed251f8b62e6e307f3fc7836e1a1a0c8caf861
[ "Apache-2.0" ]
null
null
null
login.py
nishthapant/cgi-lab
3fed251f8b62e6e307f3fc7836e1a1a0c8caf861
[ "Apache-2.0" ]
null
null
null
login.py
nishthapant/cgi-lab
3fed251f8b62e6e307f3fc7836e1a1a0c8caf861
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import cgi, cgitb import secret from templates import secret_page # instance of FieldStorage form = cgi.FieldStorage() # get data from fields username = form.getvalue('username') password = form.getvalue('password') if(username == secret.username and password == secret.password): print("Se...
31.4
121
0.745223
66
471
5.287879
0.515152
0.137536
0
0
0
0
0
0
0
0
0
0.002404
0.116773
471
15
122
31.4
0.836538
0.142251
0
0
0
0.111111
0.251244
0.134328
0
0
0
0
0
1
0
false
0.444444
0.333333
0
0.333333
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
0
0
0
1
1
0
0
0
0
2
ad2d0a2470fb330580fcc10da01db5d19640c734
775
py
Python
data.py
gsel9/ConvOpt02953
78ee69b1b857a24fb3effdb6283ec2b5e013c33e
[ "MIT" ]
null
null
null
data.py
gsel9/ConvOpt02953
78ee69b1b857a24fb3effdb6283ec2b5e013c33e
[ "MIT" ]
null
null
null
data.py
gsel9/ConvOpt02953
78ee69b1b857a24fb3effdb6283ec2b5e013c33e
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.stats import bernoulli def eval_loss(M, M_hat): return np.linalg.norm(M - M_hat) ** 2 / np.linalg.norm(M) ** 2 def mask_matrix(m=200, n=20, prob_masked=0.5, seed=42): """ Generate a binary mask for m users and n movies. Note that 1 de...
22.794118
75
0.64129
137
775
3.576642
0.481752
0.065306
0.020408
0.053061
0.130612
0.077551
0
0
0
0
0
0.038851
0.236129
775
33
76
23.484848
0.788851
0.300645
0
0.153846
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.230769
0.076923
0.692308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ad31ea07ac42dffdd82b4812a5ba7cad9eae68cf
54
py
Python
lines/__init__.py
AlexTaguchi/lines
d091d52350d0bedc3c8af0aa5438b6a1da95151d
[ "MIT" ]
null
null
null
lines/__init__.py
AlexTaguchi/lines
d091d52350d0bedc3c8af0aa5438b6a1da95151d
[ "MIT" ]
null
null
null
lines/__init__.py
AlexTaguchi/lines
d091d52350d0bedc3c8af0aa5438b6a1da95151d
[ "MIT" ]
null
null
null
__all__ = ['Lines', 'Segment', 'Point'] version = 0.1
18
39
0.611111
7
54
4.142857
1
0
0
0
0
0
0
0
0
0
0
0.043478
0.148148
54
2
40
27
0.586957
0
0
0
0
0
0.314815
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad45adb3476ffe351aba1b2cf066867c4bbeaa29
232
py
Python
saleor/core/utils/date_time.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
1,392
2021-10-06T15:54:28.000Z
2022-03-31T20:50:55.000Z
saleor/core/utils/date_time.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
888
2021-10-06T10:48:54.000Z
2022-03-31T11:00:30.000Z
saleor/core/utils/date_time.py
eanknd/saleor
08aa724176be00d7aaf654f14e9ae99dd4327f97
[ "CC-BY-4.0" ]
538
2021-10-07T16:21:27.000Z
2022-03-31T22:58:57.000Z
from datetime import datetime import pytz def convert_to_utc_date_time(date): """Convert date into utc date time.""" if date is None: return return datetime.combine(date, datetime.min.time(), tzinfo=pytz.UTC)
21.090909
71
0.706897
34
232
4.705882
0.529412
0.175
0.1375
0
0
0
0
0
0
0
0
0
0.198276
232
10
72
23.2
0.860215
0.137931
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ad4bb834c7ac1f8085f612a3214ab44b6466cca2
546
py
Python
pyedflib/data/_readers.py
dthkao/pyedflib
0f787fc1202b84a6f30d098296acf72666eaeeb4
[ "BSD-2-Clause" ]
7
2018-11-07T14:40:13.000Z
2019-11-03T20:38:52.000Z
pyedflib/data/_readers.py
dthkao/pyedflib
0f787fc1202b84a6f30d098296acf72666eaeeb4
[ "BSD-2-Clause" ]
null
null
null
pyedflib/data/_readers.py
dthkao/pyedflib
0f787fc1202b84a6f30d098296acf72666eaeeb4
[ "BSD-2-Clause" ]
1
2019-06-02T07:50:41.000Z
2019-06-02T07:50:41.000Z
import os import numpy as np import pyedflib def test_generator(): """ Get an sample EDF-file Parameters ---------- None Returns ------- f : EdfReader object object containing the handle to the file Examples -------- >>> import pyedflib.data >>> f = pyedflib....
16.545455
73
0.571429
65
546
4.646154
0.569231
0.129139
0
0
0
0
0
0
0
0
0
0.005102
0.282051
546
32
74
17.0625
0.765306
0.5
0
0
0
0
0.091837
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
ad5c23841d93fc85b5c13254ebddc0e6601f78eb
196
py
Python
settings.py
stshrewsburyDev/raspberrypi_status_website
282498cb89ddc3c1a9c6538500b7bab5f3ab26f7
[ "MIT" ]
null
null
null
settings.py
stshrewsburyDev/raspberrypi_status_website
282498cb89ddc3c1a9c6538500b7bab5f3ab26f7
[ "MIT" ]
null
null
null
settings.py
stshrewsburyDev/raspberrypi_status_website
282498cb89ddc3c1a9c6538500b7bab5f3ab26f7
[ "MIT" ]
null
null
null
from os.path import join, dirname from dotenv import load_dotenv # Get .env file path path = join(dirname(__file__), ".env") # Load .env vars and delete path variable load_dotenv(path) del path
19.6
41
0.755102
32
196
4.4375
0.5
0.15493
0
0
0
0
0
0
0
0
0
0
0.158163
196
9
42
21.777778
0.860606
0.295918
0
0
0
0
0.02963
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ad5f1ec88a7313c3654db98f06bb05369b2fe550
662
py
Python
generate_config.py
shawn-bluce/server_tag
9d99ec44803c550046418d6d440b7e96ce3a74a4
[ "MIT" ]
16
2020-08-19T15:16:55.000Z
2020-12-02T06:01:37.000Z
generate_config.py
shawn-bluce/server_tag
9d99ec44803c550046418d6d440b7e96ce3a74a4
[ "MIT" ]
1
2020-08-30T04:51:27.000Z
2021-02-17T14:46:39.000Z
generate_config.py
shawn-bluce/server_tag
9d99ec44803c550046418d6d440b7e96ce3a74a4
[ "MIT" ]
1
2020-08-24T11:07:05.000Z
2020-08-24T11:07:05.000Z
#!/usr/bin/env python3 # generate template file config.json, when it not exists. # run this command: `python3 generate_config.py` import os import json from utils import color_text from settings import config_file_name from template_config import config as template_config if __name__ == '__main__': file_content ...
33.1
96
0.73565
95
662
4.842105
0.473684
0.108696
0.152174
0.086957
0
0
0
0
0
0
0
0.007207
0.161631
662
19
97
34.842105
0.821622
0.187311
0
0
1
0
0.145794
0
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ad6189192d0343724fb83243fe236fb1261af574
1,151
py
Python
ansible_runner/tests/test_filter_ansibleprojects.py
smk4664/nautobot-plugin-ansible-runner
14e3c57e9d4b21abe9bf81484fc3e26114fc7056
[ "Apache-2.0" ]
null
null
null
ansible_runner/tests/test_filter_ansibleprojects.py
smk4664/nautobot-plugin-ansible-runner
14e3c57e9d4b21abe9bf81484fc3e26114fc7056
[ "Apache-2.0" ]
null
null
null
ansible_runner/tests/test_filter_ansibleprojects.py
smk4664/nautobot-plugin-ansible-runner
14e3c57e9d4b21abe9bf81484fc3e26114fc7056
[ "Apache-2.0" ]
null
null
null
"""Test AnsibleProjects Filter.""" from django.test import TestCase from ansible_runner import filters from ansible_runner import models from ansible_runner.tests import fixtures class AnsibleProjectsFilterTestCase(TestCase): """AnsibleProjects Filter Test Case.""" queryset = models.AnsibleProjects.objects.a...
34.878788
77
0.691573
134
1,151
5.850746
0.350746
0.044643
0.065051
0.09949
0.366071
0.366071
0.304847
0.304847
0.304847
0.237245
0
0.003219
0.190269
1,151
32
78
35.96875
0.837983
0.220678
0
0.105263
0
0
0.032333
0
0
0
0
0
0.157895
1
0.210526
false
0
0.210526
0
0.578947
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
ad64d77e24b1cc4b06e2178562d1de481f016083
30,055
py
Python
tests/features/test_plinkio.py
cnr-ibba/SMARTER-database
837f7d514c33e458ad0e39e26784c761df29e004
[ "MIT" ]
null
null
null
tests/features/test_plinkio.py
cnr-ibba/SMARTER-database
837f7d514c33e458ad0e39e26784c761df29e004
[ "MIT" ]
44
2021-05-25T16:00:34.000Z
2022-03-12T01:12:45.000Z
tests/features/test_plinkio.py
cnr-ibba/SMARTER-database
837f7d514c33e458ad0e39e26784c761df29e004
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 9 17:42:03 2021 @author: Paolo Cozzi <paolo.cozzi@ibba.cnr.it> """ import types import unittest import pathlib import tempfile from copy import deepcopy from src.features.smarterdb import ( VariantSheep, Location, Breed, Dataset, SampleSheep,...
33.173289
79
0.611745
3,347
30,055
5.383926
0.106961
0.068979
0.019145
0.009378
0.749445
0.709767
0.695228
0.683574
0.672253
0.639789
0
0.011316
0.291366
30,055
905
80
33.209945
0.834773
0.170388
0
0.642722
0
0
0.059445
0.009592
0
0
0
0
0.221172
1
0.081285
false
0
0.041588
0
0.141777
0.00189
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad818906801685ab3f1a9a9809e540bf3af04839
1,637
py
Python
sklearn/gaussian_process/tests/_mini_sequence_kernel.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
sklearn/gaussian_process/tests/_mini_sequence_kernel.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
sklearn/gaussian_process/tests/_mini_sequence_kernel.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
from sklearn.gaussian_process.kernels import Kernel, Hyperparameter from sklearn.gaussian_process.kernels import GenericKernelMixin from sklearn.gaussian_process.kernels import StationaryKernelMixin import numpy as np from sklearn.base import clone class MiniSeqKernel(GenericKernelMixin, StationaryKernelMixin, Kernel...
32.098039
86
0.637141
226
1,637
4.455752
0.278761
0.178749
0.109235
0.027805
0.328699
0.260179
0.125124
0.125124
0.125124
0.083416
0
0.022632
0.271228
1,637
50
87
32.74
0.821459
0.046426
0
0
0
0
0.016872
0
0
0
0
0
0
1
0.194444
false
0
0.138889
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
ad85fccfc5759ceb3c3b82da18eb50b3ebeb4483
1,576
py
Python
setup.py
vvanholl/estop
d82537014e545cd154ef4f8686dbe557f8cc99d7
[ "Apache-2.0" ]
9
2018-10-02T11:37:46.000Z
2019-08-26T04:22:24.000Z
setup.py
vvanholl/estop
d82537014e545cd154ef4f8686dbe557f8cc99d7
[ "Apache-2.0" ]
null
null
null
setup.py
vvanholl/estop
d82537014e545cd154ef4f8686dbe557f8cc99d7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages with open('VERSION') as version_file: version = version_file.read() with open('README.rst') as readme_file: long_description = readme_file.read() with open('requirements.txt') as requirements_file: install_requires = requirements_file.rea...
30.307692
60
0.670051
171
1,576
6.087719
0.438596
0.182517
0.240154
0.199808
0.051873
0
0
0
0
0
0
0.015625
0.187817
1,576
51
61
30.901961
0.797656
0.01269
0
0
0
0
0.51254
0.014148
0
0
0
0
0
1
0
false
0
0.023256
0
0.023256
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad8eb06c4b7702a0f38236141b9ecfe474b64c86
5,233
py
Python
solution/LP_MDS.py
Pro7ech/CryptoChallenge
6ba33e2c9479ce2cefc36c6e0d0b45ddca05dfc9
[ "Apache-2.0" ]
4
2021-01-11T13:02:12.000Z
2022-01-01T13:45:53.000Z
solution/LP_MDS.py
Pro7ech/CryptoChallenge
6ba33e2c9479ce2cefc36c6e0d0b45ddca05dfc9
[ "Apache-2.0" ]
null
null
null
solution/LP_MDS.py
Pro7ech/CryptoChallenge
6ba33e2c9479ce2cefc36c6e0d0b45ddca05dfc9
[ "Apache-2.0" ]
null
null
null
from random import randrange # Precomputed parity S-BOX from 0 to 255 P = [0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1, 1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0, 1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0, 0,1,1,0,1,0,0,1,1,0,0,1,0,1,...
23.786364
77
0.411236
1,012
5,233
2.120553
0.118577
0.079217
0.060112
0.080149
0.530755
0.423579
0.423579
0.423579
0.423579
0.423579
0
0.287556
0.407223
5,233
219
78
23.894977
0.404255
0.077776
0
0.469512
0
0
0.001543
0
0
0
0.001763
0
0
1
0.054878
false
0
0.006098
0.006098
0.109756
0.006098
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad9479590c17eb2a528c60aa5a52ebaceddfe0da
36,853
py
Python
pysnmp/SMON2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/SMON2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/SMON2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SMON2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SMON2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:59:43 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...
130.684397
6,612
0.775324
3,899
36,853
7.328289
0.074891
0.012319
0.014384
0.019179
0.407308
0.368565
0.285129
0.258776
0.243342
0.237637
0
0.073163
0.080211
36,853
281
6,613
131.149466
0.769773
0.008466
0
0
0
0
0.102896
0.023651
0
0
0
0
0
1
0
false
0
0.032847
0
0.032847
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad9a70fef5b367a97d03392ad628fb8575a45853
31,137
py
Python
tensorlayer/googlenet.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
tensorlayer/googlenet.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
tensorlayer/googlenet.py
yellowei/AI
594826348dfdfdde523622bb037ff6800b7b2367
[ "MIT" ]
null
null
null
""" GoogLeNet. Applying 'GoogLeNet' to Oxford's 17 Category Flower Dataset classification task. References: - Szegedy, Christian, et al. Going deeper with convolutions. - 17 Category Flower Dataset. Maria-Elena Nilsback and Andrew Zisserman. Links: - [GoogLeNet Paper](http://www.cv-foundation.org/openac...
60.343023
170
0.381026
2,955
31,137
3.723858
0.075127
0.046529
0.035987
0.059978
0.795165
0.715649
0.658488
0.598328
0.506997
0.495002
0
0.109657
0.531394
31,137
516
171
60.343023
0.644507
0.026464
0
0.555785
0
0
0.060441
0.019905
0
0
0
0
0
1
0.008264
false
0
0.014463
0
0.033058
0.008264
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
a8de9a4d1a76af0c606999504bb3f8bc1cc7ddbd
868
py
Python
club/middleware.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
1
2021-04-12T13:38:41.000Z
2021-04-12T13:38:41.000Z
club/middleware.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
null
null
null
club/middleware.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
null
null
null
from django.shortcuts import render from auth.helpers import authorized_user_with_session from club.exceptions import ClubException def me(get_response): def middleware(request): request.me, request.my_session = authorized_user_with_session(request) response = get_response(request) retu...
25.529412
78
0.657834
89
868
6.168539
0.41573
0.120219
0.081967
0.091075
0.116576
0
0
0
0
0
0
0.004732
0.269585
868
33
79
26.30303
0.861199
0
0
0.086957
0
0
0.025346
0
0
0
0
0
0
1
0.217391
false
0
0.130435
0
0.565217
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
a8e38ded37ea0162533cc3250c84122b3d0b316f
600
py
Python
applications/qa/search.py
aliyun/alibabacloud-AnalyticDB-python-demo-AI
84ac16aea20841561375cff982d4eb7e2fd2fb04
[ "MIT" ]
42
2020-06-28T03:51:14.000Z
2021-10-22T03:04:11.000Z
applications/qa/search.py
aliyun/alibabacloud-AnalyticDB-python-demo-AI-
84ac16aea20841561375cff982d4eb7e2fd2fb04
[ "MIT" ]
9
2020-07-13T10:53:51.000Z
2022-03-12T00:45:59.000Z
applications/qa/search.py
aliyun/alibabacloud-AnalyticDB-python-demo-AI-
84ac16aea20841561375cff982d4eb7e2fd2fb04
[ "MIT" ]
8
2020-06-28T05:50:30.000Z
2022-02-11T06:41:19.000Z
# coding: utf-8 import requests import json import base64 import os import random import uuid import multiprocessing import traceback def search(q, url): try: data = { 'question': q } response = requests.post(url, data) for r in json.loads(response.con...
22.222222
67
0.61
86
600
4.186047
0.511628
0.033333
0.033333
0.038889
0.077778
0.077778
0.077778
0
0
0
0
0.049327
0.256667
600
26
68
23.076923
0.757848
0.021667
0
0
0
0
0.184615
0
0
0
0
0
0
0
null
null
0
0.347826
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
a8ec7e2486df413a0bcdcab5a1da0476776ad5e5
5,867
py
Python
cellular-automata/cellular_automata/automata_recorder.py
enthought/ets-examples
3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a
[ "Apache-2.0", "BSD-3-Clause" ]
3
2017-07-22T11:04:20.000Z
2018-10-01T15:30:16.000Z
cellular-automata/cellular_automata/automata_recorder.py
enthought/ets-examples
3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a
[ "Apache-2.0", "BSD-3-Clause" ]
11
2018-01-18T17:06:59.000Z
2019-12-17T12:08:42.000Z
cellular-automata/cellular_automata/automata_recorder.py
enthought/ets-examples
3b2894bfe25c9f57f76996bd5818d1f0cdc77e8a
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-12-28T14:15:15.000Z
2018-12-28T14:15:15.000Z
# Copyright (c) 2017, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only # under the conditions described in the aforementioned license. The license # is also available online at http://www.ent...
32.960674
82
0.605761
708
5,867
4.970339
0.298023
0.011367
0.017903
0.02046
0.151748
0.128161
0.104859
0.097187
0.097187
0.097187
0
0.002923
0.241861
5,867
177
83
33.146893
0.788219
0.618885
0
0.115385
0
0
0.011985
0
0
0
0
0
0
1
0.211538
false
0
0.076923
0.019231
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d103f2911af32ac4be2501dfd6e7d61b700508dc
295
py
Python
fermentor/src/WebService/FermentorsWebService.py
vortexau/OpenBrew-Py
c6ab11ed5bc45fc2776ffbfc140bf3a6113c9445
[ "Beerware" ]
1
2015-11-23T11:25:03.000Z
2015-11-23T11:25:03.000Z
fermentor/src/WebService/FermentorsWebService.py
vortexau/OpenBrew-Py
c6ab11ed5bc45fc2776ffbfc140bf3a6113c9445
[ "Beerware" ]
null
null
null
fermentor/src/WebService/FermentorsWebService.py
vortexau/OpenBrew-Py
c6ab11ed5bc45fc2776ffbfc140bf3a6113c9445
[ "Beerware" ]
null
null
null
import cherrypy class FermentorsWebService: def __init__(self, dbconn): self.dbconn = dbconn @cherrypy.expose @cherrypy.tools.accept(media='application/json') @cherrypy.tools.json_out() def index(self, fermentor=0): return 'Data for fermentor', fermentor
21.071429
52
0.688136
33
295
6
0.636364
0.10101
0
0
0
0
0
0
0
0
0
0.004274
0.20678
295
13
53
22.692308
0.84188
0
0
0
0
0
0.115646
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d1103caab3a22733b2f1fc56312a71ece7fa4617
281
py
Python
main.py
daniilpeshkov/OPI_labs
42ab08def8195c6ff76f845d783aa13ef10158fb
[ "MIT" ]
null
null
null
main.py
daniilpeshkov/OPI_labs
42ab08def8195c6ff76f845d783aa13ef10158fb
[ "MIT" ]
1
2022-03-30T12:49:33.000Z
2022-03-30T13:00:00.000Z
main.py
daniilpeshkov/OPI_labs
42ab08def8195c6ff76f845d783aa13ef10158fb
[ "MIT" ]
null
null
null
import requests import time def get_usd_exchange(): data = requests.get('https://www.cbr-xml-daily.ru/daily_json.js').json() return float(data['Valute']['USD']['Value']) def main(): print('Курс доллара:', get_usd_exchange() ) if __name__ == '__main__': main()
18.733333
76
0.658363
39
281
4.410256
0.666667
0.069767
0.162791
0
0
0
0
0
0
0
0
0
0.153025
281
14
77
20.071429
0.722689
0
0
0
0
0
0.274021
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d1311da645ec9e5a43667e92b197fce085cbb3b1
2,680
py
Python
braille_experience/braille_translators/mapBrailleToAlpha.py
firekim2/testserver
0ebd7be0e254fa825dad8be314fbfcb7b03f7a30
[ "MIT" ]
null
null
null
braille_experience/braille_translators/mapBrailleToAlpha.py
firekim2/testserver
0ebd7be0e254fa825dad8be314fbfcb7b03f7a30
[ "MIT" ]
null
null
null
braille_experience/braille_translators/mapBrailleToAlpha.py
firekim2/testserver
0ebd7be0e254fa825dad8be314fbfcb7b03f7a30
[ "MIT" ]
null
null
null
# Contains dictionaries that map braille to English letters. letters = {chr(10241): 'a', chr(10243): 'b', chr(10249): 'c', chr(10265): 'd', chr(10257): 'e', chr(10251): 'f', chr(10267): 'g', chr(10259): 'h', chr(10250): '...
31.162791
61
0.326493
240
2,680
3.645833
0.516667
0.027429
0
0
0
0
0
0
0
0
0
0.297317
0.485448
2,680
85
62
31.529412
0.337201
0.021642
0
0
0
0
0.063511
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d13745c8ebc99cb12665ec5074d1140a16727787
346
py
Python
tds/request/sql_batch.py
by46/geek
04b08d0dff80c524bd471ead3fe524423eebf123
[ "MIT" ]
null
null
null
tds/request/sql_batch.py
by46/geek
04b08d0dff80c524bd471ead3fe524423eebf123
[ "MIT" ]
null
null
null
tds/request/sql_batch.py
by46/geek
04b08d0dff80c524bd471ead3fe524423eebf123
[ "MIT" ]
null
null
null
from io import BytesIO from tds.tokens import SQLBatchStream from .base import Request class SQLBatchRequest(Request): def __init__(self, buf): """ :param BytesIO buf: """ super(SQLBatchRequest, self).__init__() self.stream = stream = SQLBatchStream() ...
21.625
48
0.615607
34
346
6.029412
0.558824
0.078049
0
0
0
0
0
0
0
0
0
0
0.294798
346
15
49
23.066667
0.840164
0.054913
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d14d2f478c64d7d2310b6766069f4de62f52485f
54
py
Python
src/tensor/tensor/shape/__init__.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/tensor/shape/__init__.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
src/tensor/tensor/shape/__init__.py
jedhsu/tensor
3b2fe21029fa7c50b034190e77d79d1a94ea5e8f
[ "Apache-2.0" ]
null
null
null
from ._shape import Shape __all__ = [ "Shape", ]
9
25
0.611111
6
54
4.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.259259
54
5
26
10.8
0.7
0
0
0
0
0
0.092593
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d173091ef1fe16743c30cf15562c759ebcada11a
2,205
py
Python
personal/models.py
JamesMutahi/personal-gallery
05ddec214c397cfdd16e5b029c315690cc4e9257
[ "MIT" ]
1
2019-07-18T11:03:08.000Z
2019-07-18T11:03:08.000Z
personal/models.py
JamesMutahi/personal-gallery
05ddec214c397cfdd16e5b029c315690cc4e9257
[ "MIT" ]
1
2021-06-10T21:44:49.000Z
2021-06-10T21:44:49.000Z
personal/models.py
JamesMutahi/personal-gallery
05ddec214c397cfdd16e5b029c315690cc4e9257
[ "MIT" ]
3
2019-08-26T07:00:05.000Z
2020-10-09T11:22:23.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models Deafult_desc = '''Lorem ipsum dolor sit amet, agam probatus indoctum cu quo. Est eu quod rationibus, nam platonem sententiae no. Eu mel vero oporteat elaboraret.''' class Category(models.Model): Name = models.CharField(...
25.056818
86
0.661678
271
2,205
5.202952
0.357934
0.028369
0.040426
0.046809
0.133333
0.055319
0.055319
0
0
0
0
0.004756
0.237188
2,205
87
87
25.344828
0.833532
0.020862
0
0.206349
0
0
0.083024
0
0
0
0
0
0
1
0.206349
false
0
0.031746
0.047619
0.539683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
66faccf952a064caf3fc48f3ca13aedaf3e49932
212
py
Python
setup.py
MalteHB/stedsans
73c2bc9fe77038c80e196d2bb1d91e38c8f02e4f
[ "Apache-2.0" ]
2
2021-06-07T04:22:42.000Z
2021-06-07T06:46:10.000Z
setup.py
MalteHB/stedsans
73c2bc9fe77038c80e196d2bb1d91e38c8f02e4f
[ "Apache-2.0" ]
null
null
null
setup.py
MalteHB/stedsans
73c2bc9fe77038c80e196d2bb1d91e38c8f02e4f
[ "Apache-2.0" ]
null
null
null
import setuptools with open("requirements.txt", encoding='utf-8') as f: requirements = f.read() setuptools.setup( install_requires=requirements, keywords="Geospatial Analysis NLP Danish English", )
21.2
54
0.735849
25
212
6.2
0.84
0
0
0
0
0
0
0
0
0
0
0.005556
0.150943
212
9
55
23.555556
0.855556
0
0
0
0
0
0.278302
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f01c352df4624444a8fea82fcaa3e2a1fb58a3f
99
py
Python
Aug - Dec 2021 JOC Course/Week 5/New Week 5 Programming Assignment 2.py
Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python
e4bd830ef7a3f171a14a88f94df626c766a7649b
[ "MIT" ]
29
2021-01-25T16:13:17.000Z
2022-03-23T16:34:06.000Z
Aug - Dec 2021 JOC Course/Week 5/New Week 5 Programming Assignment 2.py
Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python
e4bd830ef7a3f171a14a88f94df626c766a7649b
[ "MIT" ]
12
2021-02-11T13:47:07.000Z
2021-10-10T04:26:45.000Z
Aug - Dec 2021 JOC Course/Week 5/New Week 5 Programming Assignment 2.py
Slow-Rain/NPTEL-The-Joy-of-Computing-using-Python
e4bd830ef7a3f171a14a88f94df626c766a7649b
[ "MIT" ]
30
2021-02-10T05:54:31.000Z
2022-02-25T11:24:36.000Z
lst = [int(x) for x in input().split()] k = int(input()) lst.sort() print(lst[-k], end="")
14.142857
40
0.515152
17
99
3
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.212121
99
7
41
14.142857
0.653846
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f04a8f3b4b121d4cb8248675c3d35cf8402c50d
148
py
Python
BOJ2559.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
2
2019-03-05T15:42:46.000Z
2019-07-24T15:52:36.000Z
BOJ2559.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
BOJ2559.py
INYEONGKIM/BOJ
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
[ "MIT" ]
null
null
null
n,k=map(int,input().split());a=[int(i) for i in input().split()];m=sum(a[:k]);s=m for i in range(k,n): s+=(a[i]-a[i-k]) if s>m:m=s print(m)
24.666667
81
0.527027
39
148
2
0.410256
0.25641
0.153846
0
0
0
0
0
0
0
0
0
0.141892
148
5
82
29.6
0.614173
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f1b1ef095407f7b2c83d4abc6cd4dc671eb3f2c
1,349
py
Python
code/descriptor_track/train_eval/preprocess/make_external_simpt_debug.py
seungkee/2nd-place-solution-to-facebook-image-similarity-matching-track
716667bf416239f448e4ea2730a2cc5146536719
[ "Apache-2.0" ]
13
2021-12-07T17:15:10.000Z
2022-02-23T08:45:58.000Z
code/descriptor_track/train_eval/preprocess/make_external_simpt_debug.py
seungkee/2nd-place-solution-to-facebook-image-similarity-matching-track
716667bf416239f448e4ea2730a2cc5146536719
[ "Apache-2.0" ]
2
2021-12-16T14:33:10.000Z
2021-12-28T07:15:33.000Z
code/descriptor_track/train_eval/preprocess/make_external_simpt_debug.py
seungkee/2nd-place-solution-to-facebook-image-similarity-matching-track
716667bf416239f448e4ea2730a2cc5146536719
[ "Apache-2.0" ]
4
2021-12-08T07:52:28.000Z
2022-03-29T05:50:38.000Z
import torch from tqdm import tqdm import os import numpy as np train_features=torch.load('train_features.pt') n = len(list(np.load('/facebook/data/images/train_imlist.npy'))) print(n) os.makedirs('/siim/sim_pt_256', exist_ok=True) for i in tqdm(range(n)): a=torch.mm(train_features[i:i+1],train_features.t()) to...
48.178571
127
0.683469
244
1,349
3.659836
0.233607
0.174692
0.033595
0.055991
0.701008
0.701008
0.611422
0.611422
0.611422
0.611422
0
0.067545
0.100074
1,349
27
128
49.962963
0.66804
0
0
0.384615
0
0
0.171238
0.028169
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.038462
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f2dd70f3a13a641369f0d289155bb97f0366583
455
py
Python
quantity/digger/widgets/qtwidgets/techwidget.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
null
null
null
quantity/digger/widgets/qtwidgets/techwidget.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
null
null
null
quantity/digger/widgets/qtwidgets/techwidget.py
wyjcpu/quantity
a53126a430f12b5bac81a52b2fe749cc497faf36
[ "MIT" ]
1
2021-05-11T09:33:59.000Z
2021-05-11T09:33:59.000Z
# -*- coding: utf-8 -*- from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg from quantity.digger.widgets.mplotwidgets.widgets import MultiWidgets import matplotlib.pyplot as plt class TechWidget(MultiWidgets, FigureCanvasQTAgg): def __init__(self, parent=None, *args): self.fig = plt.figure() ...
35
69
0.740659
51
455
6.352941
0.568627
0.074074
0.074074
0.092593
0
0
0
0
0
0
0
0.005208
0.156044
455
12
70
37.916667
0.838542
0.046154
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
0
0.555556
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
0f2f421bc7034f1c189702148daf7d137eb011eb
707
py
Python
scripts/addons/render_batcher/helper.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/render_batcher/helper.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/render_batcher/helper.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import bpy, os, shutil, stat def create_folder_if_neeed(path): if not os.path.exists(path): os.makedirs(path) def delete_folder_if_exist(path): if os.path.exists(path): shutil.rmtree(path, onerror=file_acces_handler) def file_acces_handler(func, path, exc_info): print('Handling Error for file ' , path) ...
27.192308
63
0.722772
112
707
4.366071
0.535714
0.03272
0.02863
0.06544
0
0
0
0
0
0
0
0.001721
0.178218
707
25
64
28.28
0.839931
0.132956
0
0
0
0
0.045977
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0.117647
0.470588
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
0f2f92cec8069a2ac369d54a8a325970f90747a5
731
py
Python
src/myblog/tests/test_views.py
kangheeyong/TEST-sanic-blog
cfd9993868de8675133324ebd410fcafa41adc19
[ "MIT" ]
null
null
null
src/myblog/tests/test_views.py
kangheeyong/TEST-sanic-blog
cfd9993868de8675133324ebd410fcafa41adc19
[ "MIT" ]
null
null
null
src/myblog/tests/test_views.py
kangheeyong/TEST-sanic-blog
cfd9993868de8675133324ebd410fcafa41adc19
[ "MIT" ]
null
null
null
from .. import app def test_url_for(): assert app.url_for('index') == '/' assert app.url_for('about') == '/about' assert app.url_for('static', filename='layout.css', name='css') == '/css/layout.css' assert app.url_for('static', filename='default.png', name='profile_imgs') == '/profile_imgs/default.png...
27.074074
108
0.670315
98
731
4.846939
0.255102
0.063158
0.101053
0.126316
0.534737
0.534737
0.412632
0.341053
0.341053
0.341053
0
0.02451
0.162791
731
26
109
28.115385
0.751634
0
0
0.266667
0
0
0.208791
0.068681
0
0
0
0
0.533333
1
0.133333
true
0
0.066667
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
1
0
0
1
0
0
0
0
0
0
2
0f4865755087766deb6030c1567368a888b5b5f2
24,407
py
Python
feedbag/day2/2.passwords.py
chadnetzer/advent2020
b992eb202ff9dd5cc353914a136337412c8bd074
[ "MIT" ]
null
null
null
feedbag/day2/2.passwords.py
chadnetzer/advent2020
b992eb202ff9dd5cc353914a136337412c8bd074
[ "MIT" ]
1
2020-12-06T07:51:48.000Z
2020-12-08T05:03:11.000Z
feedbag/day2/2.passwords.py
chadnetzer/advent2020
b992eb202ff9dd5cc353914a136337412c8bd074
[ "MIT" ]
8
2020-12-01T21:29:21.000Z
2020-12-09T23:55:15.000Z
#original sample data #policy = [ #"1-3 a: abcde", #"1-3 b: cdefg", #"2-9 c: ccccccccc" #] # Given puzzle data policy = [ "3-5 f: fgfff", "6-20 n: qlzsnnnndwnlhwnxhvjn", "6-7 j: jjjjjwrj", "8-10 g: gggggggggg", "5-6 t: ttttttft", "6-11 h: khmchszhmzm", "4-6 q: qqbjqqqj", "6-8 j: gtkwwjjj", "13-14 w: lwgwrwczwwhkww", "...
23.765336
59
0.663007
4,079
24,407
3.966413
0.261829
0.004821
0.000927
0.002349
0.006304
0.006304
0.006304
0.006304
0.006304
0.006304
0
0.128891
0.128693
24,407
1,026
60
23.788499
0.631901
0.003974
0
0.001969
0
0
0.81734
0
0
0
0
0
0
0
null
null
0.004921
0
null
null
0.000984
0
0
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
1
0
0
0
0
0
0
0
0
2
0f5166632f87139e788fa82b75befacc268c0b0f
3,129
py
Python
Pandas_test/test1.py
Grade-pan/python-base
bcb69052a6e9299dee45b91468e30b1305d82db3
[ "MulanPSL-1.0" ]
3
2021-12-05T02:57:21.000Z
2022-01-02T01:23:41.000Z
Pandas_test/test1.py
Grade-pan/python-base
bcb69052a6e9299dee45b91468e30b1305d82db3
[ "MulanPSL-1.0" ]
null
null
null
Pandas_test/test1.py
Grade-pan/python-base
bcb69052a6e9299dee45b91468e30b1305d82db3
[ "MulanPSL-1.0" ]
null
null
null
import pandas as pd import numpy as np # s = pd.Series([1, 2, 3, np.nan], index=['A', 'B', 'C', 'D']) # print(s) # dates = pd.date_range('20191029', periods=5) # print(dates) # df = pd.DataFrame(np.random.rand(5, 5), columns=['a', 'b', 'c', 'd', 'e']) # print(df) # df1 = pd.DataFrame({ # 'A': 1, # 'B': pd.date...
35.556818
115
0.569831
475
3,129
3.724211
0.364211
0.063313
0.011871
0.009045
0.224421
0.166761
0.14528
0.109666
0.01922
0
0
0.064783
0.151486
3,129
87
116
35.965517
0.601507
0.886545
0
0
0
0
0.209924
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
0f58e88aaabefc0b08a28dda07a7046980d8c0bd
262
py
Python
src/iert_news/migrations/0005_auto_20190211_1640.py
MetricsGroup/IERT-Webapp
9e43f1775767412898f9340b9cc84196eb4abfdb
[ "MIT" ]
3
2019-04-25T11:19:22.000Z
2020-05-10T20:41:12.000Z
src/iert_news/migrations/0005_auto_20190211_1640.py
MetricsGroup/IERT-Webapp
9e43f1775767412898f9340b9cc84196eb4abfdb
[ "MIT" ]
5
2020-06-17T05:16:27.000Z
2022-01-13T02:15:56.000Z
src/iert_news/migrations/0005_auto_20190211_1640.py
MetricsGroup/IERT-Webapp
9e43f1775767412898f9340b9cc84196eb4abfdb
[ "MIT" ]
3
2020-06-13T10:40:27.000Z
2021-10-13T15:45:50.000Z
# Generated by Django 2.1.5 on 2019-02-11 16:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [("iert_news", "0004_auto_20190211_1631")] operations = [migrations.RenameModel(old_name="news", new_name="new")]
23.818182
74
0.736641
37
262
5.054054
0.810811
0
0
0
0
0
0
0
0
0
0
0.136564
0.133588
262
10
75
26.2
0.687225
0.171756
0
0
1
0
0.181395
0.106977
0
0
0
0
0
1
0
false
0
0.25
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
0f78901716c866eb2c049c99786575c2fe82ea8b
1,172
py
Python
setup.py
andrewdodd/docopt_uc
2540ce6121c37f59e2c82cd5dfc59f50784f40cb
[ "MIT" ]
6
2019-08-25T16:14:41.000Z
2022-01-24T02:24:19.000Z
setup.py
andrewdodd/docopt_uc
2540ce6121c37f59e2c82cd5dfc59f50784f40cb
[ "MIT" ]
null
null
null
setup.py
andrewdodd/docopt_uc
2540ce6121c37f59e2c82cd5dfc59f50784f40cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name="docopt-uc", description="A docopt library suitable for microcontrollers.", license="MIT", version="1.0.2", author="Andrew Dodd", author_email="andrew.john.dodd@gmail.com", maintainer="And...
33.485714
67
0.612628
128
1,172
5.507813
0.585938
0.056738
0.177305
0.184397
0.153191
0.076596
0
0
0
0
0
0.016322
0.21587
1,172
34
68
34.470588
0.750816
0.035836
0
0
0
0
0.510638
0.067376
0
0
0
0
0
1
0
true
0
0.033333
0
0.033333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
7e1f2dd8db4f77b587d25ee0a26186e9bb8f397a
418
py
Python
appserver/datetimefield/admin.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/datetimefield/admin.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
null
null
null
appserver/datetimefield/admin.py
sinag/SWE574-Horuscope
9725dd356cbfd19f0ce88d4a208c872be765bd88
[ "MIT" ]
1
2020-08-07T12:54:51.000Z
2020-08-07T12:54:51.000Z
from django.contrib import admin from datetimefield.models import DateTimeField class DateTimeFieldAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['instance', 'property', 'value']}), ] list_display = ('id', 'instance', 'property', 'value') list_filter = ['instance', 'property'] ...
26.125
62
0.686603
39
418
7.282051
0.589744
0.225352
0.15493
0.176056
0
0
0
0
0
0
0
0
0.162679
418
15
63
27.866667
0.811429
0
0
0
0
0
0.196172
0
0
0
0
0
0
1
0
false
0
0.2
0
0.7
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7e254c7c7fbd33244e8e6021609ebce5b6dca24b
654
py
Python
supriya/ugens/Dbufwr.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dbufwr.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dbufwr.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.DUGen import DUGen class Dbufwr(DUGen): """ A buffer-writing demand-rate UGen. :: >>> dbufwr = supriya.ugens.Dbufwr( ... buffer_id=0, ... source=0, ... loop=1, ... phase=0, ...
19.818182
76
0.547401
65
654
5.307692
0.476923
0.017391
0.052174
0
0
0
0
0
0
0
0
0.026258
0.301223
654
32
77
20.4375
0.728665
0.344037
0
0
0
0
0.097297
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7e2a07fc37e09f74448ba47450f84919292d9d08
360
py
Python
creational/prototype.py
kimgea/design_patterns
def656f50c4f26e25f8a0d2920041c2f002dc2d0
[ "MIT" ]
null
null
null
creational/prototype.py
kimgea/design_patterns
def656f50c4f26e25f8a0d2920041c2f002dc2d0
[ "MIT" ]
null
null
null
creational/prototype.py
kimgea/design_patterns
def656f50c4f26e25f8a0d2920041c2f002dc2d0
[ "MIT" ]
null
null
null
""" Lol, only need to use copy.deepcopy in python """ import copy class A(object): def __init__(self,text="test"): self.text = text def __str__(self): return self.text def clone(self): return copy.deepcopy(self) a = A("test2") b = copy.deepcopy(a) c = ...
13.846154
49
0.558333
51
360
3.784314
0.490196
0.186529
0
0
0
0
0
0
0
0
0
0.004
0.305556
360
26
50
13.846154
0.768
0.125
0
0
0
0
0.029605
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.142857
0.5
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
7e2da4166b578747734c00a74db2a1363372b6bd
1,985
py
Python
com/wy/study/S_Test.py
mygodness100/Python
bc3f979156d5de5e698371cc23885323cbc32d9d
[ "Apache-2.0" ]
null
null
null
com/wy/study/S_Test.py
mygodness100/Python
bc3f979156d5de5e698371cc23885323cbc32d9d
[ "Apache-2.0" ]
null
null
null
com/wy/study/S_Test.py
mygodness100/Python
bc3f979156d5de5e698371cc23885323cbc32d9d
[ "Apache-2.0" ]
null
null
null
""" Created on 2018�?5�?13�? @author: wanyang twisted框架暂不支持python3,只是还没修改�?,现在是否支持,可查官网,类似于httpclient 数据结构:frozenset(不可变集�?),双向队列(队列),单项队列(�?) 当执行某故意python文件的时�?,可以直接在该文件中取得__name__,入口文件的__name__就是__main__的字符串, 若是被其他py文件调用,则__name__就是被调用文件的完整路径�? 深浅拷贝:深拷贝就是重新开辟一块内存放入新的变�?,浅拷贝就是都有原变量的地�? ...
25.779221
75
0.711335
257
1,985
5.447471
0.661479
0.005714
0.02
0.012857
0.024286
0
0
0
0
0
0.022166
0.018278
0.145592
1,985
76
76
26.118421
0.78125
0.831738
0
0
0
0
0.162939
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.266667
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7e5a52d8c0a3d15fabe0b6b863a2f4eae377fcd8
4,001
py
Python
test/test_links_generator.py
cuamckuu/tg-inviter
80b8d4664d1e2628b46ac1a6d58f8495c408d4b4
[ "MIT" ]
20
2020-08-24T19:11:38.000Z
2022-03-17T19:24:50.000Z
test/test_links_generator.py
bequirky12/tg-inviter
5cad1bc1afce101be03a2cee805931e77b7f6842
[ "MIT" ]
null
null
null
test/test_links_generator.py
bequirky12/tg-inviter
5cad1bc1afce101be03a2cee805931e77b7f6842
[ "MIT" ]
8
2021-02-05T11:51:21.000Z
2022-03-22T08:48:44.000Z
import unittest from tginviter import generate_invite_link, get_random_token, \ generate_joinchat_link class TestLinksGeneration(unittest.TestCase): @classmethod def setUpClass(cls): cls.bot_name = "test_bot" cls.token = get_random_token() def test_keywords_param_only(self): ...
33.90678
85
0.658585
511
4,001
4.919765
0.121331
0.072395
0.109387
0.166269
0.728719
0.684964
0.616945
0.57677
0.506762
0.494431
0
0.005128
0.220195
4,001
117
86
34.196581
0.800641
0
0
0.26506
1
0
0.12072
0.013497
0
0
0
0
0.253012
1
0.13253
false
0
0.024096
0
0.168675
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7e677acbbb11f5ed4eec843f7cf6ab3defcf50c6
1,583
py
Python
VGOS/make_ready_message.py
varenius/oso
eda6247b55796b3e82be6214acd55daf81676836
[ "MIT" ]
null
null
null
VGOS/make_ready_message.py
varenius/oso
eda6247b55796b3e82be6214acd55daf81676836
[ "MIT" ]
null
null
null
VGOS/make_ready_message.py
varenius/oso
eda6247b55796b3e82be6214acd55daf81676836
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys logfile = "/usr2/log/"+sys.argv[1]+".log" lines = [] for line in open(logfile): lines.append(line) def get_lines(log,pattern,nlines): revlog = list(reversed(log)) ans = [] # Loop through logfile backwards to find the latest entry for i,d in enumerate(revlog): ...
21.391892
61
0.67151
254
1,583
4.066929
0.326772
0.116167
0.176186
0.100678
0.168441
0
0
0
0
0
0
0.054096
0.182565
1,583
73
62
21.684932
0.744204
0.048642
0
0.166667
0
0
0.175532
0
0
0
0
0
0
0
null
null
0
0.016667
null
null
0.516667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
7e7e4fdebc925dc06d87c1a0fb80f0ae90da5a87
15,495
py
Python
nibbler/tests/test_nibbler.py
rrodakowski/nibbler
833b82b6eee3a118808886a8165def519dbab04f
[ "MIT" ]
null
null
null
nibbler/tests/test_nibbler.py
rrodakowski/nibbler
833b82b6eee3a118808886a8165def519dbab04f
[ "MIT" ]
null
null
null
nibbler/tests/test_nibbler.py
rrodakowski/nibbler
833b82b6eee3a118808886a8165def519dbab04f
[ "MIT" ]
null
null
null
# python3 library import unittest from unittest.mock import Mock, patch import logging # dependency imports import feedparser from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # nibbler imports from nibbler.nibbler import NibblerConfig from nibbler.nibbler import HTMLNormalizer #from...
56.345455
491
0.68009
2,167
15,495
4.76096
0.155053
0.030532
0.020936
0.027915
0.717166
0.674809
0.661045
0.640012
0.633518
0.633518
0
0.043848
0.17283
15,495
274
492
56.551095
0.761099
0.028783
0
0.570175
0
0.188596
0.665181
0.110786
0
0
0
0
0.096491
1
0.096491
false
0.017544
0.039474
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7e7f51520c0ad9de41b4c59131f95b28303ac34a
1,542
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/TCP_Systems/FortuneCookie_ServerClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/TCP_Systems/FortuneCookie_ServerClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Examples/TCP_Systems/FortuneCookie_ServerClient.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
36.714286
109
0.738651
193
1,542
5.901554
0.595855
0.052678
0.015803
0.028095
0
0
0
0
0
0
0
0.018839
0.139429
1,542
41
110
37.609756
0.839488
0.629702
0
0
0
0
0.016514
0
0
0
0
0
0
1
0
false
0
0.545455
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
0
1
0
1
0
0
2
7eac2cdbbfc7e81bb6e3f6db4a35a537f92f27b4
28,193
py
Python
python/sandbox/property.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
6
2020-04-19T11:26:18.000Z
2021-06-21T18:42:51.000Z
python/sandbox/property.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
31
2020-04-21T17:24:39.000Z
2020-08-27T15:59:12.000Z
python/sandbox/property.py
geometer/sandbox
373ec96e69df76744a19b51f7caa865cbc6b58cd
[ "Apache-2.0" ]
null
null
null
from enum import Enum, auto import itertools from .figure import Figure, Circle from .scene import Scene from .util import Comment, divide, normalize_number, keys_for_triangle class Property: def __init__(self, property_key, point_set): self.implications = [] self.property_key = property_key ...
31.713161
178
0.604654
3,036
28,193
5.442358
0.09025
0.039944
0.021304
0.047207
0.557768
0.502088
0.450039
0.409066
0.367851
0.349513
0
0.023331
0.264179
28,193
888
179
31.748874
0.77315
0.042954
0
0.5117
0
0.00936
0.102099
0.010988
0
0
0
0.001126
0.014041
1
0.224649
false
0
0.0078
0.145086
0.461778
0.00312
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
7eb2db3dec520e7305b4a8da4402eff2e207cc78
310
py
Python
hpc-historias-clinicas/inter_consultas/templatetags/inter_consultas_tags.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/inter_consultas/templatetags/inter_consultas_tags.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
hpc-historias-clinicas/inter_consultas/templatetags/inter_consultas_tags.py
btenaglia/hpc-historias-clinicas
649d8660381381b1c591667760c122d73071d5ec
[ "BSD-3-Clause" ]
null
null
null
from django import template from ..models import InterConsultas register = template.Library() @register.simple_tag def total_inter_consultas(historia_id): """ Devuelve el total de inter consultas para una historia clinica """ return InterConsultas.objects.filter(historia=historia_id).count()
28.181818
70
0.774194
38
310
6.184211
0.684211
0.119149
0
0
0
0
0
0
0
0
0
0
0.145161
310
11
70
28.181818
0.886792
0.2
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0e1bbb0df00b6e82654050d4532839d24b905f49
1,956
py
Python
pyrrigate/controllers.py
hstefan/pyrrigate
8e83a401b88044a51e4dfdc74500c3f93552a1a3
[ "MIT" ]
1
2017-05-19T03:41:14.000Z
2017-05-19T03:41:14.000Z
pyrrigate/controllers.py
hstefan/pyrrigate
8e83a401b88044a51e4dfdc74500c3f93552a1a3
[ "MIT" ]
null
null
null
pyrrigate/controllers.py
hstefan/pyrrigate
8e83a401b88044a51e4dfdc74500c3f93552a1a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import abc import logging try: import wiringpi except ModuleNotFoundError: logging.warning('wiringpi is not installed! This should only be used with --use-dummy-gpio.') from pyrrigate.PyrrigateConfig_pb2 import ControllerConf class Controller(metaclass=abc.ABCMe...
31.047619
97
0.680982
222
1,956
5.86036
0.400901
0.064566
0.061491
0.046118
0.216756
0.147579
0.066103
0.066103
0
0
0
0.001965
0.219325
1,956
62
98
31.548387
0.850033
0.06544
0
0.355556
0
0
0.093956
0
0
0
0
0.016129
0.022222
1
0.222222
false
0
0.088889
0
0.377778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
0
0
0
2
0e359457160d6667e3a0621da01b28b0e49843f4
4,186
py
Python
library/pyvim_umount_cd.py
Rthur/alt-pyvim
9d4dc8be79949972ae80c5ee79ffbc4d70aacb54
[ "Apache-2.0" ]
null
null
null
library/pyvim_umount_cd.py
Rthur/alt-pyvim
9d4dc8be79949972ae80c5ee79ffbc4d70aacb54
[ "Apache-2.0" ]
null
null
null
library/pyvim_umount_cd.py
Rthur/alt-pyvim
9d4dc8be79949972ae80c5ee79ffbc4d70aacb54
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python DOCUMENTATION = ''' --- author: Arthur Reyes module: pyvim_umount_cd description: - unmount an iso on Virtual Machine version_added: "0.1" requirements: - pyVim notes: - This module disables SSL Security and warnings for invalid certificates. - Tested with Ansible 2.0.1.0 options: host: ...
28.868966
93
0.701147
522
4,186
5.557471
0.3659
0.037229
0.026543
0.02344
0.085143
0.034471
0.034471
0.034471
0
0
0
0.005325
0.192547
4,186
144
94
29.069444
0.852959
0.011706
0
0.114754
0
0
0.343009
0.020077
0
0
0
0
0
0
null
null
0.065574
0.07377
null
null
0.008197
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
0e36cdaf39db8bd29d0f785719fbaa8ca3114a95
1,480
py
Python
stdplugins/follow.py
PratikGoswamiPM/BotHub
d02f9773418d2651d85e6cc3d797e78a3afef325
[ "Apache-2.0" ]
1
2021-07-18T06:57:27.000Z
2021-07-18T06:57:27.000Z
stdplugins/follow.py
PratikGoswamiPM/BotHub
d02f9773418d2651d85e6cc3d797e78a3afef325
[ "Apache-2.0" ]
null
null
null
stdplugins/follow.py
PratikGoswamiPM/BotHub
d02f9773418d2651d85e6cc3d797e78a3afef325
[ "Apache-2.0" ]
null
null
null
""" Userbot module for getting information about the social media. """ from asyncio import create_subprocess_shell as asyncrunapp from asyncio.subprocess import PIPE as asyncPIPE from platform import python_version, uname from shutil import which from os import remove from telethon import version from random import ra...
36.097561
96
0.618243
187
1,480
4.818182
0.44385
0.017758
0.023307
0.043285
0.09101
0.09101
0.09101
0.073252
0.073252
0.073252
0
0.017437
0.225
1,480
40
97
37
0.768091
0
0
0.066667
0
0.033333
0.338364
0
0
0
0
0
0
0
null
null
0
0.566667
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
0e3c2c0f177e307b955c9b1a44dda9edb96e7f53
551
py
Python
gpt2_bot/__init__.py
chenyaoBOYqu/albino
8c43893b8d8dc3f92a01c2a6f8f66f2bd123b333
[ "CC0-1.0" ]
8
2020-06-30T20:16:14.000Z
2021-01-26T00:51:27.000Z
gpt2_bot/__init__.py
chenyaoBOYqu/albino
8c43893b8d8dc3f92a01c2a6f8f66f2bd123b333
[ "CC0-1.0" ]
null
null
null
gpt2_bot/__init__.py
chenyaoBOYqu/albino
8c43893b8d8dc3f92a01c2a6f8f66f2bd123b333
[ "CC0-1.0" ]
3
2020-09-02T23:03:04.000Z
2021-03-21T23:47:46.000Z
import gpt2_bot.irc, gpt2_bot.commands, gpt2_bot.gpt2 def assemble_bot(config_path): ircbot = gpt2_bot.irc.IRCBot(config_path) ircbot.register_command("ping", gpt2_bot.commands.ping_command) ircbot.register_command("ignore", gpt2_bot.commands.ignore_command) ircbot.register_command("unignore", gpt2_b...
34.4375
81
0.789474
74
551
5.567568
0.256757
0.169903
0.218447
0.271845
0
0
0
0
0
0
0
0.02439
0.107078
551
15
82
36.733333
0.813008
0
0
0
0
0
0.059891
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e484b20f678e870513027b30be016da2c77c8b9
11,218
py
Python
insights/tests/client/test_archive.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
insights/tests/client/test_archive.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
insights/tests/client/test_archive.py
TZ3070/insights-core
13f4fc6bfcb89d76f0255c6259902360a298d619
[ "Apache-2.0" ]
null
null
null
from insights.client.archive import InsightsArchive from mock.mock import patch, Mock, call from unittest import TestCase from pytest import raises test_timestamp = '000000' test_hostname = 'testhostname' test_archive_name = 'insights-testhostname-000000' test_archive_dir = '/var/tmp/test/insights-testhostname-000000...
46.937238
112
0.698431
1,410
11,218
5.312057
0.097163
0.098798
0.123364
0.149266
0.769426
0.717356
0.688518
0.661415
0.646462
0.615354
0
0.005798
0.200571
11,218
238
113
47.134454
0.829393
0.143698
0
0.590361
0
0
0.245616
0.226369
0
0
0
0
0.277108
1
0.084337
false
0
0.024096
0
0.114458
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e5a1ff8837a7f80b75f3c34fcfe94fefd792abd
778
py
Python
proxyid/exceptions.py
felipepaes/proxyid
122112f5495c5075765c1dd5669fd34be5f2de3a
[ "BSD-2-Clause" ]
null
null
null
proxyid/exceptions.py
felipepaes/proxyid
122112f5495c5075765c1dd5669fd34be5f2de3a
[ "BSD-2-Clause" ]
null
null
null
proxyid/exceptions.py
felipepaes/proxyid
122112f5495c5075765c1dd5669fd34be5f2de3a
[ "BSD-2-Clause" ]
null
null
null
from typing import Union class UnkownProxiedValueError(Exception): """Exception for unkown values given to be decoded""" def __init__(self, value: str): self.value = value def __str__(self) -> str: return (f"Proxied value {self.value} is unkown. " "The value is wrong or w...
28.814815
74
0.623393
95
778
4.936842
0.494737
0.134328
0.070362
0.06823
0.115139
0.115139
0.115139
0
0
0
0
0
0.27892
778
26
75
29.923077
0.836007
0.106684
0
0.25
0
0
0.277778
0.030702
0
0
0
0
0
1
0.25
false
0
0.0625
0.0625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0e94b7f304aadae2a7fece27e15ff19ea3cef175
1,006
py
Python
poetry/utils/toml_file.py
radek-sprta/poetry
c57e1ddfd50da4e4ec60c3c27152811e07bdba2a
[ "MIT" ]
null
null
null
poetry/utils/toml_file.py
radek-sprta/poetry
c57e1ddfd50da4e4ec60c3c27152811e07bdba2a
[ "MIT" ]
null
null
null
poetry/utils/toml_file.py
radek-sprta/poetry
c57e1ddfd50da4e4ec60c3c27152811e07bdba2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytoml as toml from poetry.toml import dumps from poetry.toml import loads from poetry.toml import TOMLFile from ._compat import Path class TomlFile: def __init__(self, path): self._path = Path(path) @property def path(self): return self._path def rea...
23.952381
61
0.575547
133
1,006
4.240602
0.323308
0.085106
0.074468
0.106383
0.12766
0
0
0
0
0
0
0.004219
0.293241
1,006
41
62
24.536585
0.78903
0.080517
0
0
0
0
0.011957
0
0
0
0
0
0
1
0.214286
false
0
0.178571
0.071429
0.607143
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
0ea17ccfe6e690af5fcca0d6e2be9635465f9c66
2,502
py
Python
termicoder/models/Judge.py
diveshuttam/termicoder_beta
fe8f8dcaf1696630380c803d404cc370278b2e77
[ "MIT" ]
null
null
null
termicoder/models/Judge.py
diveshuttam/termicoder_beta
fe8f8dcaf1696630380c803d404cc370278b2e77
[ "MIT" ]
null
null
null
termicoder/models/Judge.py
diveshuttam/termicoder_beta
fe8f8dcaf1696630380c803d404cc370278b2e77
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # ABC is the AbstractBaseClass in python from abc import ABC, abstractmethod # Judge is an abstract class to be subclassed and implemented # by Judge developers. # Judge class kind of doubles up for login-logout as well as a Factory # for the contest and problem classes for...
30.888889
79
0.682254
337
2,502
4.95549
0.311573
0.122156
0.113174
0.086228
0.338922
0.28024
0.28024
0.173653
0.173653
0.150898
0
0.000548
0.270983
2,502
80
80
31.275
0.915022
0.527578
0
0.605263
0
0
0
0
0
0
0
0
0
1
0.315789
false
0.289474
0.026316
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
7eb7ce4862b50c32cfc7e1509cea7e7c1c736b99
612
py
Python
tests/utils.py
SmartDataAnalytics/KEEN-Model-Zoo
11856a2828c0010e8955a555730c7ba1a009399e
[ "MIT" ]
2
2020-03-01T08:45:49.000Z
2020-03-11T02:40:39.000Z
tests/utils.py
SmartDataAnalytics/KEEN-Model-Zoo
11856a2828c0010e8955a555730c7ba1a009399e
[ "MIT" ]
null
null
null
tests/utils.py
SmartDataAnalytics/KEEN-Model-Zoo
11856a2828c0010e8955a555730c7ba1a009399e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utilities for test cases.""" import json import os import torch from pykeen.kge_models import get_kge_model from torch.nn import Module def load_model(model_directory: str) -> Module: """Load trained KGE model.""" # Load configuration file with open(os.path.join(model_direct...
24.48
72
0.728758
90
612
4.711111
0.422222
0.113208
0.141509
0.089623
0.113208
0
0
0
0
0
0
0.001949
0.161765
612
24
73
25.5
0.824561
0.156863
0
0
0
0
0.069444
0
0
0
0
0
0
1
0.083333
false
0
0.416667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7ec9bd3b77169671912625d50d256d936158668c
4,635
py
Python
backend/models.py
aj212/group-expense-manager
001c0d413b24a4eb124a0a6d540a2b81654bc01a
[ "MIT" ]
2
2020-05-03T15:12:01.000Z
2021-05-17T14:11:25.000Z
backend/models.py
aj212/group-expense-manager
001c0d413b24a4eb124a0a6d540a2b81654bc01a
[ "MIT" ]
5
2020-09-06T18:37:23.000Z
2022-02-18T06:52:08.000Z
backend/models.py
akashvermaofskt/group-expense-manager
001c0d413b24a4eb124a0a6d540a2b81654bc01a
[ "MIT" ]
4
2019-08-06T10:44:20.000Z
2021-08-23T17:37:54.000Z
from sqlalchemy import Column,Integer,String, DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine from passlib.apps import custom_app_context as pwd_context import random, string from itsdangerous import(TimedJSONWeb...
34.849624
103
0.654585
529
4,635
5.553875
0.238185
0.088496
0.043567
0.065351
0.422737
0.391763
0.36998
0.332539
0.273996
0.273996
0
0.008547
0.242718
4,635
132
104
35.113636
0.82849
0.051133
0
0.266667
0
0
0.051504
0.004786
0
0
0
0
0
1
0.114286
false
0.057143
0.07619
0.047619
0.590476
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
7ecb31f73d3266cb79c9e59df821ed3f9582be9a
1,389
py
Python
tempest/services/compute/v3/xml/version_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/v3/xml/version_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/v3/xml/version_client.py
BeenzSyed/tempest
7a64ee1216d844f6b99928b53f5c665b84cb8719
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 NEC Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
36.552632
79
0.673146
178
1,389
5.123596
0.595506
0.065789
0.028509
0.035088
0.085526
0.085526
0.085526
0
0
0
0
0.010638
0.25558
1,389
37
80
37.540541
0.871373
0.432685
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0.125
0.1875
0
0.5625
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
7ed0ea9fc79c14ad82d0621372bfaf4de4ad04da
729
py
Python
conjur/resource.py
jdumas/conjur-api-python3
96e438765d580722357a070507305feafcb59d2a
[ "Apache-2.0" ]
16
2019-05-17T15:34:59.000Z
2021-11-08T10:30:21.000Z
conjur/resource.py
jdumas/conjur-api-python3
96e438765d580722357a070507305feafcb59d2a
[ "Apache-2.0" ]
301
2019-05-07T18:27:10.000Z
2022-01-26T13:03:49.000Z
conjur/resource.py
jdumas/conjur-api-python3
96e438765d580722357a070507305feafcb59d2a
[ "Apache-2.0" ]
10
2019-07-30T17:00:13.000Z
2022-01-20T17:00:34.000Z
# -*- coding: utf-8 -*- """ Resource module """ # pylint: disable=too-few-public-methods class Resource: """ Used for representing Conjur resources """ def __init__(self, type_:type, name:str): self.type = type_ self.name = name def full_id(self): """ Method for bu...
24.3
90
0.585734
91
729
4.527473
0.494505
0.097087
0.058252
0
0
0
0
0
0
0
0
0.001898
0.277092
729
29
91
25.137931
0.779886
0.366255
0
0
0
0
0.170918
0.058673
0
0
0
0
0
1
0.4
false
0
0
0.1
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7ed1e1c13fe9f63fc269a82e6ba0d76bf3493edb
5,131
py
Python
winregeditor.py
U-23/UinstallTool
d2066a583c15666e6f377ae63cc613b4c96663e2
[ "MIT" ]
1
2019-08-07T08:32:11.000Z
2019-08-07T08:32:11.000Z
winregeditor.py
U-23/UinstallTool
d2066a583c15666e6f377ae63cc613b4c96663e2
[ "MIT" ]
3
2021-03-19T02:36:27.000Z
2022-01-13T01:30:07.000Z
winregeditor.py
U-23/UinstallTool
d2066a583c15666e6f377ae63cc613b4c96663e2
[ "MIT" ]
null
null
null
import winreg import re # 注册表操作 class winregeditor: dicList = {} def orderDict(self, numkey, DisplayName, DisplayIcon,UninstallString,KeyPath,InstallLocation): self.dicList[numkey] = {'DisplayName': DisplayName, 'DisplayIcon': DisplayIcon,'UninstallString':UninstallString,'KeyPath':KeyPath,'InstallLoc...
50.80198
173
0.536348
449
5,131
6
0.200445
0.020787
0.032665
0.0683
0.713808
0.705271
0.654788
0.618411
0.590943
0.590943
0
0.009259
0.368544
5,131
101
174
50.80198
0.822222
0.02748
0
0.604651
0
0.011628
0.093976
0.033133
0
0
0
0
0
1
0.023256
false
0.05814
0.023256
0
0.093023
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2