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
9c26d711887f84da99433b770df53c3bffc460c4
1,067
py
Python
Python/Vowel-Substring/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Vowel-Substring/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Vowel-Substring/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'findSubstring' function below. # # The function is expected to return a STRING. # The function accepts following parameters: # 1. STRING s # 2. INTEGER k # def isVowel(x): if(x=="a" or x=='e' or x=='i' or x=='o' or x=='...
20.519231
118
0.626992
167
1,067
3.904192
0.413174
0.096626
0.046012
0.027607
0.082822
0.082822
0.082822
0
0
0
0
0.008717
0.247423
1,067
51
119
20.921569
0.803238
0.181818
0
0
0
0
0.023175
0
0
0
0
0.019608
0
1
0.103448
false
0
0.172414
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9c2c850b8212d47e83a1fb645622cfcbef2e844f
7,385
py
Python
python/tink/jwt/_raw_jwt.py
cuonglm/tink
df5fa42e45b4d43aac6c3506ceba2956b79a62b8
[ "Apache-2.0" ]
null
null
null
python/tink/jwt/_raw_jwt.py
cuonglm/tink
df5fa42e45b4d43aac6c3506ceba2956b79a62b8
[ "Apache-2.0" ]
null
null
null
python/tink/jwt/_raw_jwt.py
cuonglm/tink
df5fa42e45b4d43aac6c3506ceba2956b79a62b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.189815
80
0.677319
997
7,385
4.811434
0.198596
0.057328
0.02981
0.05837
0.211799
0.150302
0.143215
0.07734
0.047947
0.015843
0
0.005703
0.21652
7,385
215
81
34.348837
0.823367
0.133785
0
0.10596
0
0
0.075287
0
0
0
0
0.004651
0
1
0.192053
false
0
0.046358
0.112583
0.410596
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
9c2cdfaea02de247b5a0a427743330312fb34eb8
16,904
py
Python
dialogue-engine/test/programytest/config/file/test_json.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/test/programytest/config/file/test_json.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/test/programytest/config/file/test_json.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
31.245841
129
0.562885
1,520
16,904
6.094079
0.290132
0.02375
0.022455
0.039296
0.336716
0.316852
0.272698
0.246249
0.246249
0.244305
0
0.01316
0.29425
16,904
540
130
31.303704
0.763286
0.062825
0
0.262525
0
0.004008
0.731906
0.142857
0
0
0
0
0.08016
1
0.014028
false
0.006012
0.01002
0
0.026052
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c2e7f928242ca7ff6d49135cef52a68297eec05
3,484
py
Python
pincer/objects/message/sticker.py
mjneff2/Pincer
a11bc3e4bad319fdf927d913c58c933576ec7c99
[ "MIT" ]
null
null
null
pincer/objects/message/sticker.py
mjneff2/Pincer
a11bc3e4bad319fdf927d913c58c933576ec7c99
[ "MIT" ]
null
null
null
pincer/objects/message/sticker.py
mjneff2/Pincer
a11bc3e4bad319fdf927d913c58c933576ec7c99
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. from __future__ import annotations from dataclasses import dataclass from enum import IntEnum from typing import List, Optional, TYPE_CHECKING from ...utils.api_object import APIObject from ...utils.types import MISSING...
21.506173
72
0.661022
447
3,484
5.091723
0.272931
0.057118
0.052724
0.044815
0.147627
0.137522
0.077768
0.077768
0.077768
0.077768
0
0.003597
0.28186
3,484
161
73
21.639752
0.906075
0.557118
0
0.255814
0
0
0
0
0
0
0
0
0
1
0
false
0
0.186047
0
0.906977
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
9c2fcf2ba9545bbf4f412026ea905a2899fef624
2,511
py
Python
regenesis/modelgen.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
16
2015-04-09T14:40:53.000Z
2021-07-13T15:03:35.000Z
regenesis/modelgen.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
1
2018-06-25T07:51:18.000Z
2018-06-25T07:51:18.000Z
regenesis/modelgen.py
crijke/regenesis
e53a0c6302aa458ff9ae95f573d5594351e5434c
[ "MIT" ]
3
2015-12-20T18:24:21.000Z
2018-06-24T16:57:25.000Z
import json from regenesis.queries import get_cubes, get_all_dimensions, get_dimensions from pprint import pprint def generate_dimensions(): dimensions = [] for dimension in get_all_dimensions(): pprint (dimension) if dimension.get('measure_type').startswith('W-'): continue ...
30.253012
78
0.502589
250
2,511
4.84
0.248
0.052893
0.033058
0.038017
0.117355
0.052893
0.052893
0
0
0
0
0.000619
0.35683
2,511
82
79
30.621951
0.748607
0
0
0.085714
1
0
0.172112
0.009562
0
0
0
0
0
1
0.042857
false
0
0.042857
0
0.128571
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c3934843ce267b0dc897db0634f69b0dfaade62
280
py
Python
Data_Structures/2d_array_ds.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
4
2018-04-19T20:32:54.000Z
2020-04-21T12:28:00.000Z
Data_Structures/2d_array_ds.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
Data_Structures/2d_array_ds.py
csixteen/HackerRank
3ef6fa48599341f481b9e266c69df2d449a7b313
[ "MIT" ]
null
null
null
matrix = [list(map(int, input().split())) for _ in range(6)] max_sum = None for i in range(4): for j in range(4): s = sum(matrix[i][j:j+3]) + matrix[i+1][j+1] + sum(matrix[i+2][j:j+3]) if max_sum is None or s > max_sum: max_sum = s print(max_sum)
28
78
0.557143
57
280
2.631579
0.421053
0.2
0.106667
0
0
0
0
0
0
0
0
0.038278
0.253571
280
9
79
31.111111
0.679426
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c464f3f464935bc0cc2e17b41fede6128938835
1,200
py
Python
async_sched/client/__init__.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
1
2020-10-19T13:36:20.000Z
2020-10-19T13:36:20.000Z
async_sched/client/__init__.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
null
null
null
async_sched/client/__init__.py
justengel/async_sched
f980722d51d15025522b2265426b0188ff368418
[ "MIT" ]
null
null
null
from async_sched.client import quit_server as module_quit from async_sched.client import request_schedules as module_request from async_sched.client import run_command as module_run from async_sched.client import schedule_command as module_schedule from async_sched.client import stop_schedule as module_stop from async_...
52.173913
113
0.785
164
1,200
5.341463
0.207317
0.079909
0.127854
0.136986
0.60274
0.424658
0.424658
0.424658
0.424658
0.424658
0
0.008637
0.131667
1,200
22
114
54.545455
0.832054
0.119167
0
0
0
0
0.263757
0.042695
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9c48342a450b3888ddd355595c9462c4c225a106
2,880
py
Python
account_processing.py
amitjoshi9627/Playong
d54a8db05ae5035e122b8bc8d84c849f25483005
[ "MIT" ]
4
2019-04-22T15:16:45.000Z
2020-01-17T12:57:09.000Z
account_processing.py
amitjoshi9627/Playong
d54a8db05ae5035e122b8bc8d84c849f25483005
[ "MIT" ]
null
null
null
account_processing.py
amitjoshi9627/Playong
d54a8db05ae5035e122b8bc8d84c849f25483005
[ "MIT" ]
null
null
null
from selenium.webdriver import Firefox from selenium.webdriver.firefox.options import Options import getpass import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from utils import * def login_user(browser, email='', password=''): print('Redir...
32.359551
110
0.682986
370
2,880
5.140541
0.345946
0.05205
0.085174
0.094637
0.247108
0.233964
0.219769
0.138801
0.138801
0.138801
0
0.006061
0.197917
2,880
88
111
32.727273
0.817316
0.056597
0
0.092308
0
0.015385
0.254982
0.047232
0
0
0
0
0
1
0.107692
false
0.153846
0.107692
0.015385
0.276923
0.107692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9c49c6272ae1b539badcabd74a81163ceda4090b
1,104
py
Python
Mundo 3/teste.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
1
2021-03-10T21:53:38.000Z
2021-03-10T21:53:38.000Z
Mundo 3/teste.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
Mundo 3/teste.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
pessoas = {'nomes': "Rafael","sexo":"macho alfa","idade":19} print(f"o {pessoas['nomes']} que se considera um {pessoas['sexo']} possui {pessoas['idade']}") print(pessoas.keys()) print(pessoas.values()) print(pessoas.items()) for c in pessoas.keys(): print(c) for c in pessoas.values(): print(c) for c, j in pe...
23
125
0.638587
173
1,104
4.075145
0.393064
0.085106
0.039716
0.017021
0.008511
0
0
0
0
0
0
0.012917
0.158514
1,104
47
126
23.489362
0.745963
0
0
0.121212
0
0.060606
0.416667
0.038043
0
0
0
0
0
1
0
false
0
0
0
0
0.424242
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9c4cf09ffcfa4dd9bf0d914e9750a3f14e039df3
605
py
Python
examples/basic/findQSpark.py
myriadrf/pyLMS7002M
b866deea1f05dba44c9ed1a1a4666352b811b66b
[ "Apache-2.0" ]
46
2016-11-29T05:10:36.000Z
2021-10-31T19:27:46.000Z
examples/basic/findQSpark.py
myriadrf/pyLMS7002M
b866deea1f05dba44c9ed1a1a4666352b811b66b
[ "Apache-2.0" ]
2
2017-04-15T21:36:01.000Z
2017-06-08T09:44:26.000Z
examples/basic/findQSpark.py
myriadrf/pyLMS7002M
b866deea1f05dba44c9ed1a1a4666352b811b66b
[ "Apache-2.0" ]
16
2016-11-28T20:47:55.000Z
2021-04-07T01:48:20.000Z
from pyLMS7002M import * print("Searching for QSpark...") try: QSpark = QSpark() except: print("QSpark not found") exit(1) print("\QSpark info:") QSpark.printInfo() # print the QSpark board info # QSpark.LMS7002_Reset() # reset the LMS7002M lms700...
31.842105
80
0.528926
64
605
4.984375
0.46875
0.068966
0
0
0
0
0
0
0
0
0
0.083756
0.34876
605
18
81
33.611111
0.725888
0.231405
0
0
0
0
0.272926
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.533333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
9c5b28789209abf7074e8e365fb1d2e93079992e
2,109
py
Python
tests/test_bindiff.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
tests/test_bindiff.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
tests/test_bindiff.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import nose import angr import logging l = logging.getLogger("angr.tests.test_bindiff") import os test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'binaries', 'tests') # todo make a better test def test_bindiff_x86_64(): binary_path_1 = os.path.join(test_location, 'x86_64', '...
39.055556
106
0.719772
282
2,109
5.099291
0.315603
0.056328
0.09388
0.05911
0.305981
0.243394
0.109875
0.109875
0
0
0
0.058758
0.152679
2,109
53
107
39.792453
0.745943
0.07302
0
0
0
0
0.074435
0.022587
0
0
0.049281
0.018868
0.230769
1
0.051282
false
0
0.128205
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
9c5f1cf8cb3617f22a594d7ff47f26bbe868fb45
326
py
Python
01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 06/01 Tuplas/1.2 Desempacotamento de parametros em funcoes/ex01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
# Desempacotamento de parametros em funcoes # somando valores de uma tupla def soma(*num): soma = 0 print('Tupla: {}' .format(num)) for i in num: soma += i return soma # Programa principal print('Resultado: {}\n' .format(soma(1, 2))) print('Resultado: {}\n' .format(soma(1, 2, 3, 4, 5, 6, 7, 8,...
23.285714
65
0.604294
50
326
3.94
0.64
0.071066
0.152284
0.213198
0.274112
0.274112
0.274112
0
0
0
0
0.047431
0.223926
326
13
66
25.076923
0.731225
0.273006
0
0
0
0
0.167382
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.375
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9c6a899bfa0fce8fa48384ca11c89371d3bdbbc4
10,449
py
Python
tests/test_decorators.py
stephenfin/django-rest-framework
9d001cd84c1239d708b1528587c183ef30e38c31
[ "BSD-3-Clause" ]
1
2019-01-11T13:56:41.000Z
2019-01-11T13:56:41.000Z
tests/test_decorators.py
stephenfin/django-rest-framework
9d001cd84c1239d708b1528587c183ef30e38c31
[ "BSD-3-Clause" ]
null
null
null
tests/test_decorators.py
stephenfin/django-rest-framework
9d001cd84c1239d708b1528587c183ef30e38c31
[ "BSD-3-Clause" ]
1
2019-06-29T12:46:16.000Z
2019-06-29T12:46:16.000Z
from __future__ import unicode_literals import pytest from django.test import TestCase from rest_framework import status from rest_framework.authentication import BasicAuthentication from rest_framework.decorators import ( action, api_view, authentication_classes, detail_route, list_route, parser_classes, per...
31.954128
92
0.624175
1,112
10,449
5.68705
0.181655
0.036528
0.030993
0.039532
0.509013
0.438014
0.397849
0.338393
0.290006
0.242568
0
0.005996
0.281749
10,449
326
93
32.052147
0.836642
0.066226
0
0.491304
0
0
0.088562
0.004667
0
0
0
0
0.165217
1
0.217391
false
0.004348
0.06087
0.03913
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
9c6c043e7e279ee40586854016feb8a49ecc6e3c
661
py
Python
tamilmorse/morse_encode.py
CRE2525/open-tamil
ffc02509f7b8a6a17644c85799a475a8ba623954
[ "MIT" ]
1
2021-08-03T19:35:18.000Z
2021-08-03T19:35:18.000Z
tamilmorse/morse_encode.py
CRE2525/open-tamil
ffc02509f7b8a6a17644c85799a475a8ba623954
[ "MIT" ]
null
null
null
tamilmorse/morse_encode.py
CRE2525/open-tamil
ffc02509f7b8a6a17644c85799a475a8ba623954
[ "MIT" ]
null
null
null
## -*- coding: utf-8 -*- #(C) 2018 Muthiah Annamalai # This file is part of Open-Tamil project # You may use or distribute this file under terms of MIT license import codecs import json import tamil import sys import os #e.g. python morse_encode.py கலைஞர் CURRDIR = os.path.dirname(os.path.realpath(__file__)) def enco...
30.045455
95
0.688351
113
661
3.911504
0.637168
0.027149
0
0
0
0
0
0
0
0
0
0.016129
0.155825
661
21
96
31.47619
0.772401
0.278366
0
0
0
0
0.102128
0.048936
0
0
0
0
0
1
0.076923
false
0
0.384615
0
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
0
0
0
1
0
0
0
0
1
9c6edb66b25f5b7d6f691984d70d7a69bf328bdb
469
py
Python
pyRasp.py
ToninoTarsi/pyRasp
a46bb1dc38c7547b60e24189ecf34310da770042
[ "MIT" ]
null
null
null
pyRasp.py
ToninoTarsi/pyRasp
a46bb1dc38c7547b60e24189ecf34310da770042
[ "MIT" ]
null
null
null
pyRasp.py
ToninoTarsi/pyRasp
a46bb1dc38c7547b60e24189ecf34310da770042
[ "MIT" ]
null
null
null
# pyRasp # Copyright (c) Tonino Tarsi 2020. Licensed under MIT. # requirement : # Python 3 # pip install pyyaml # pip install request # pip install f90nml from downloadGFSA import downloadGFSA from prepare_wps import prepare_wps from ungrib import ungrib from metgrid import metgrid from prepare_wrf import prepare_w...
16.75
54
0.784648
66
469
5.484848
0.424242
0.082873
0
0
0
0
0
0
0
0
0
0.017722
0.157783
469
27
55
17.37037
0.898734
0.302772
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9c8366ee191973d219cc50c6458365ebe9053724
376
py
Python
Backjoon/1929.py
hanjungwoo1/CodingTest
0112488d04dd53cea1c869439341fb602e699f2a
[ "MIT" ]
3
2022-03-29T04:56:50.000Z
2022-03-30T08:06:42.000Z
Backjoon/1929.py
hanjungwoo1/CodingTest
0112488d04dd53cea1c869439341fb602e699f2a
[ "MIT" ]
null
null
null
Backjoon/1929.py
hanjungwoo1/CodingTest
0112488d04dd53cea1c869439341fb602e699f2a
[ "MIT" ]
null
null
null
""" 입력 예시 3 16 출력 예시 3 5 7 11 13 """ import math left, right = map(int, input().split()) array = [True for i in range(right+1)] array[1] = 0 for i in range(2, int(math.sqrt(right)) + 1): if array[i] == True: j = 2 while i * j <= right: array[i * j] = False j += 1 for i in...
13.925926
45
0.505319
68
376
2.794118
0.470588
0.063158
0.094737
0.173684
0.147368
0
0
0
0
0
0
0.071713
0.332447
376
27
46
13.925926
0.685259
0.077128
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92bbcd24bf10bc66f379878a7b6917a00a8a96a4
2,698
py
Python
layerserver/migrations/0001_initial.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
5
2018-06-07T12:54:35.000Z
2022-01-14T10:38:38.000Z
layerserver/migrations/0001_initial.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
140
2018-06-18T10:27:28.000Z
2022-03-23T09:53:15.000Z
layerserver/migrations/0001_initial.py
aroiginfraplan/giscube-admin
b7f3131b0186f847f3902df97f982cb288b16a49
[ "BSD-3-Clause" ]
1
2021-04-13T11:20:54.000Z
2021-04-13T11:20:54.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-04-26 09:14 import colorfield.fields from django.db import migrations, models import django.db.models.deletion import giscube.utils class Migration(migrations.Migration): initial = True dependencies = [ ('giscube', '0002_update'), ]...
52.901961
182
0.610823
293
2,698
5.494881
0.392491
0.083851
0.048447
0.063354
0.201863
0.178261
0.114286
0.114286
0.054658
0
0
0.02743
0.2298
2,698
50
183
53.96
0.747353
0.025575
0
0
1
0
0.153085
0
0
0
0
0
0
1
0
false
0
0.097561
0
0.195122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92bdca03049e78f08b91682f83e48976672f9a1b
456
py
Python
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
null
null
null
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
2
2021-11-24T18:20:00.000Z
2021-11-24T18:31:55.000Z
utils/get_season_things_price.py
vogelfenx/storagebot
64ab07b068bf645d7cdf5bb1cd5db91c0e2a9228
[ "MIT" ]
4
2021-11-24T16:40:28.000Z
2021-11-28T10:40:57.000Z
def get_season_things_price(thing, amount, price): if thing == 'wheel': wheel_price = price[thing]['month'] * amount return f'Стоимость составит {wheel_price}/месяц' else: other_thing_price_week = price[thing]['week'] * amount other_thing_price_month = price[thing]['month'] * a...
41.454545
75
0.662281
59
456
4.830508
0.355932
0.140351
0.210526
0.147368
0.315789
0.315789
0.315789
0.315789
0
0
0
0
0.219298
456
11
76
41.454545
0.800562
0
0
0
0
0
0.326039
0.107221
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92c32d549db39666405ca82ccd8b1e761fbef653
455
py
Python
dashboard/urls.py
EdisonBr/MockDados
c625cba7b93a8f31609549241c5aa71932e26b2d
[ "MIT" ]
null
null
null
dashboard/urls.py
EdisonBr/MockDados
c625cba7b93a8f31609549241c5aa71932e26b2d
[ "MIT" ]
4
2021-03-30T13:49:39.000Z
2021-06-10T19:40:02.000Z
dashboard/urls.py
smart320/MockDados
c625cba7b93a8f31609549241c5aa71932e26b2d
[ "MIT" ]
1
2020-07-27T02:08:29.000Z
2020-07-27T02:08:29.000Z
from django.urls import path, re_path from django.views.generic.base import TemplateView from .views import dashboard_cost, dashboard_energy, MotorDataListView app_name = 'dashboard' urlpatterns = [ path('', MotorDataListView.as_view(), name='dashboard_custom'), #path('', dashboard_custom, name='dashboar...
28.4375
71
0.745055
53
455
6.169811
0.377358
0.198777
0.116208
0.140673
0
0
0
0
0
0
0
0
0.127473
455
15
72
30.333333
0.823678
0.114286
0
0
0
0
0.1625
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
92c83bb936e6892d8eb39bcbfcb76fe95e1f5577
1,281
py
Python
docker/autoconfig.py
misc0110/bepasty-server
662179671220d680fed57aa90894ffebf57dd4c7
[ "BSD-2-Clause" ]
null
null
null
docker/autoconfig.py
misc0110/bepasty-server
662179671220d680fed57aa90894ffebf57dd4c7
[ "BSD-2-Clause" ]
null
null
null
docker/autoconfig.py
misc0110/bepasty-server
662179671220d680fed57aa90894ffebf57dd4c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import os import sys SITENAME = os.environ.get("BEPASTY_SITENAME", None) if SITENAME is None: print("\n\nEnvironment variable BEPASTY_SITENAME must be set.") sys.exit(1) SECRET_KEY = os.environ.get("BEPASTY_SECRET_KEY", None) if SECRET_KEY is None: print("\n\nEnvironment variable BEPAST...
30.5
87
0.753318
193
1,281
4.715026
0.295337
0.079121
0.105495
0.167033
0.358242
0.32967
0.235165
0.107692
0.107692
0.107692
0
0.018767
0.126464
1,281
41
88
31.243902
0.794459
0.01249
0
0.258065
0
0
0.344937
0.175633
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.129032
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92cab9ec692aa8897ecccca29c25b34c478b66a7
8,798
py
Python
qiskit_metal/_gui/elements_ui.py
sarafs1926/qiskit-metal
cf2ce8125ebe8f21b6d1b85362466fd57db2cada
[ "Apache-2.0" ]
1
2022-01-27T07:11:49.000Z
2022-01-27T07:11:49.000Z
qiskit_metal/_gui/elements_ui.py
sarafs1926/qiskit-metal
cf2ce8125ebe8f21b6d1b85362466fd57db2cada
[ "Apache-2.0" ]
null
null
null
qiskit_metal/_gui/elements_ui.py
sarafs1926/qiskit-metal
cf2ce8125ebe8f21b6d1b85362466fd57db2cada
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './elements_ui.ui', # licensing of './elements_ui.ui' applies. # # Created: Wed Jun 16 14:29:03 2021 # by: pyside2-uic running on PySide2 5.13.2 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui...
49.988636
100
0.639236
780
8,798
7.111538
0.234615
0.034072
0.037858
0.059492
0.356589
0.248783
0.172345
0.13611
0.13611
0.119704
0
0.01458
0.26722
8,798
175
101
50.274286
0.84582
0.030461
0
0.221519
1
0.006329
0.072879
0.009154
0
0
0
0
0
1
0.012658
false
0
0.012658
0
0.031646
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92cf711f3ee4d4acd21a60efb873e479a2b9db00
447
py
Python
sparkdq/outliers/params/KSigmaParams.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
1
2021-02-08T07:49:54.000Z
2021-02-08T07:49:54.000Z
sparkdq/outliers/params/KSigmaParams.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
null
null
null
sparkdq/outliers/params/KSigmaParams.py
PasaLab/SparkDQ
16d50210747ef7de03cf36d689ce26ff7445f63a
[ "Apache-2.0" ]
null
null
null
import json from sparkdq.outliers.params.OutlierSolverParams import OutlierSolverParams from sparkdq.outliers.OutlierSolver import OutlierSolver class KSigmaParams(OutlierSolverParams): def __init__(self, deviation=1.5): self.deviation = deviation def model(self): return OutlierSolver.kSigm...
23.526316
75
0.736018
48
447
6.708333
0.479167
0.068323
0.118012
0
0
0
0
0
0
0
0
0.00551
0.187919
447
18
76
24.833333
0.881543
0
0
0
0
0
0.020134
0
0
0
0
0
0
1
0.25
false
0
0.25
0.083333
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
0
0
0
0
1
92d2be755f1c0894c43d329732b414de4bf31ab2
195
py
Python
atcoder/abc132A_fifty_fifty.py
uninhm/kyopro
bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3
[ "BSD-3-Clause" ]
31
2020-05-13T01:07:55.000Z
2021-07-13T07:53:26.000Z
atcoder/abc132A_fifty_fifty.py
uninhm/kyopro
bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3
[ "BSD-3-Clause" ]
10
2020-05-20T07:22:09.000Z
2021-07-19T03:52:13.000Z
atcoder/abc132A_fifty_fifty.py
uninhm/kyopro
bf6ed9cbf6a5e46cde0291f7aa9d91a8ddf1f5a3
[ "BSD-3-Clause" ]
14
2020-05-11T05:58:36.000Z
2021-12-07T03:20:43.000Z
# Vicfred # https://atcoder.jp/contests/abc132/tasks/abc132_a # implementation S = list(input()) if len(set(S)) == 2: if S.count(S[0]) == 2: print("Yes") quit() print("No")
16.25
51
0.574359
29
195
3.827586
0.758621
0
0
0
0
0
0
0
0
0
0
0.058824
0.215385
195
11
52
17.727273
0.666667
0.369231
0
0
0
0
0.042373
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92d5a318d2e721b05edd8c4dc433e4875c24b448
6,318
py
Python
visual_perception/Detection/yolov4/__init__.py
SSusantAchary/Visual-Perception
b81ffe69ab85e9afb7ee6eece43ac83c8f292285
[ "MIT" ]
null
null
null
visual_perception/Detection/yolov4/__init__.py
SSusantAchary/Visual-Perception
b81ffe69ab85e9afb7ee6eece43ac83c8f292285
[ "MIT" ]
null
null
null
visual_perception/Detection/yolov4/__init__.py
SSusantAchary/Visual-Perception
b81ffe69ab85e9afb7ee6eece43ac83c8f292285
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Susant Achary <sache.meet@yahoo.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
43.875
141
0.608895
843
6,318
4.447212
0.40688
0.03841
0.032009
0.020272
0.546279
0.546279
0.546279
0.546279
0.546279
0.546279
0
0.040675
0.268439
6,318
144
142
43.875
0.770446
0.186451
0
0.787879
0
0
0.133502
0
0
0
0
0
0
1
0.060606
false
0
0.030303
0
0.131313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92d6916cbd5aa31c26daff18d295d7d026f17d82
517
py
Python
server/mqtt/handler.py
rishab-rb/MyIOTMap
e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa
[ "MIT" ]
1
2018-10-08T06:11:20.000Z
2018-10-08T06:11:20.000Z
server/mqtt/handler.py
rishab-rb/MyIOTMap
e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa
[ "MIT" ]
null
null
null
server/mqtt/handler.py
rishab-rb/MyIOTMap
e27a73b58cd3a9aba558ebacfb2bf8b6ef4761aa
[ "MIT" ]
2
2018-07-30T08:18:22.000Z
2018-10-11T08:04:58.000Z
import paho.client as mqtt HOST = 'localhost' PORT = 1883 class MQTTConnector: def __init__(self, host, port): host = host port = port client = mqtt.Client() def connect(): self.client.connect(self.host, self.port, 60) def run(self): self.client.loop_...
19.884615
61
0.609284
59
517
5.050847
0.40678
0.07047
0.110738
0.100671
0
0
0
0
0
0
0
0.016086
0.27853
517
26
62
19.884615
0.782842
0
0
0
0
0
0.017375
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
92e1c91fec4c34f39e9e2622024fad4489b61749
5,279
py
Python
scripts/C189/C189Checkin.py
xiaopowanyi/py_scripts
29f240800eefd6e0f91fd098c35ac3c451172ff8
[ "MIT" ]
2
2020-11-14T05:42:49.000Z
2020-11-14T05:43:13.000Z
scripts/C189/C189Checkin.py
J220541674/py_scripts
2b72e23041392a2e5f0a7305d7e9802054978384
[ "MIT" ]
null
null
null
scripts/C189/C189Checkin.py
J220541674/py_scripts
2b72e23041392a2e5f0a7305d7e9802054978384
[ "MIT" ]
null
null
null
import requests, time, re, rsa, json, base64 from urllib import parse s = requests.Session() username = "" password = "" if(username == "" or password == ""): username = input("账号:") password = input("密码:") def main(): login(username, password) rand = str(round(time.time()*1000)) surl = f'https:...
37.707143
305
0.586664
683
5,279
4.481698
0.311859
0.017968
0.026135
0.021562
0.352499
0.32179
0.282914
0.273767
0.273767
0.273767
0
0.07761
0.23603
5,279
139
306
37.978417
0.681379
0
0
0.24
0
0.072
0.385111
0.043758
0
0
0
0
0
1
0.048
false
0.056
0.016
0.016
0.104
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
92e459320d22b81d1d537a46bdb22eb8751da72d
6,218
py
Python
sympy/assumptions/assume.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2020-07-27T16:36:27.000Z
2020-12-29T22:28:37.000Z
sympy/assumptions/assume.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2020-08-18T15:21:59.000Z
2020-08-18T19:35:29.000Z
sympy/assumptions/assume.py
shivangdubey/sympy
bd3ddd4c71d439c8b623f69a02274dd8a8a82198
[ "BSD-3-Clause" ]
2
2021-01-08T23:03:23.000Z
2021-01-13T18:57:02.000Z
import inspect from sympy.core.cache import cacheit from sympy.core.singleton import S from sympy.core.sympify import _sympify from sympy.logic.boolalg import Boolean from sympy.utilities.source import get_class from contextlib import contextmanager class AssumptionsContext(set): """Set representing assumptions. ...
26.686695
81
0.587488
733
6,218
4.818554
0.271487
0.038222
0.017837
0.01812
0.180634
0.107588
0.069649
0.048698
0.048698
0.02718
0
0.002776
0.30476
6,218
232
82
26.801724
0.814249
0.362335
0
0.138614
0
0
0.013363
0
0
0
0
0
0
1
0.19802
false
0
0.079208
0.089109
0.524752
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
92e5ae34177c1ed1dca21481a52e063cdd40f997
5,794
py
Python
distancematrix/tests/consumer/test_distance_matrix.py
IDLabResearch/seriesdistancematrix
c0e666d036f24184511e766cee9fdfa55f41df97
[ "MIT" ]
12
2019-11-22T14:34:51.000Z
2021-05-04T19:23:55.000Z
distancematrix/tests/consumer/test_distance_matrix.py
predict-idlab/seriesdistancematrix
c0e666d036f24184511e766cee9fdfa55f41df97
[ "MIT" ]
1
2020-04-28T07:59:03.000Z
2020-04-28T07:59:03.000Z
distancematrix/tests/consumer/test_distance_matrix.py
IDLabResearch/seriesdistancematrix
c0e666d036f24184511e766cee9fdfa55f41df97
[ "MIT" ]
3
2020-03-02T12:39:00.000Z
2021-03-22T13:36:25.000Z
import numpy as np from unittest import TestCase import numpy.testing as npt from distancematrix.util import diag_indices_of from distancematrix.consumer.distance_matrix import DistanceMatrix class TestContextualMatrixProfile(TestCase): def setUp(self): self.dist_matrix = np.array([ [8.67, 1...
42.602941
104
0.608733
1,002
5,794
3.367265
0.136727
0.104327
0.182573
0.057795
0.705691
0.64019
0.606995
0.593657
0.524896
0.487552
0
0.132737
0.227649
5,794
135
105
42.918519
0.621229
0
0
0.490196
0
0
0
0
0
0
0
0
0.127451
1
0.078431
false
0
0.04902
0
0.137255
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92e9c5118907200831bee6234267cd344285472f
1,457
py
Python
agsadmin/sharing_admin/community/groups/Group.py
christopherblanchfield/agsadmin
989cb3795aacf285ccf74ee51b0de26bf2f48bc3
[ "BSD-3-Clause" ]
2
2015-12-07T05:53:29.000Z
2020-09-13T18:12:15.000Z
agsadmin/sharing_admin/community/groups/Group.py
christopherblanchfield/agsadmin
989cb3795aacf285ccf74ee51b0de26bf2f48bc3
[ "BSD-3-Clause" ]
4
2015-03-09T05:59:14.000Z
2018-01-09T00:12:56.000Z
agsadmin/sharing_admin/community/groups/Group.py
christopherblanchfield/agsadmin
989cb3795aacf285ccf74ee51b0de26bf2f48bc3
[ "BSD-3-Clause" ]
5
2015-03-09T01:05:24.000Z
2019-09-09T23:01:21.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str, super, zip) from ...._utils import send_session_request from ..._PortalEndpointBase import Por...
33.883721
117
0.683596
169
1,457
5.544379
0.455621
0.093917
0.145144
0.046958
0.072572
0.072572
0
0
0
0
0
0.001754
0.21757
1,457
43
118
33.883721
0.820175
0.042553
0
0.08
0
0
0.039288
0
0
0
0
0
0
1
0.2
false
0
0.2
0.08
0.6
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
92ea3eda1c775e0583e47210352c08da3ae6793c
3,995
py
Python
amy/workshops/migrations/0191_auto_20190809_0936.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
53
2015-01-10T17:39:19.000Z
2019-06-12T17:36:34.000Z
amy/workshops/migrations/0191_auto_20190809_0936.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
1,176
2015-01-02T06:32:47.000Z
2019-06-18T11:57:47.000Z
amy/workshops/migrations/0191_auto_20190809_0936.py
code-review-doctor/amy
268c1a199510457891459f3ddd73fcce7fe2b974
[ "MIT" ]
44
2015-01-03T15:08:56.000Z
2019-06-09T05:33:08.000Z
# Generated by Django 2.1.7 on 2019-08-09 09:36 from django.db import migrations, models def migrate_public_event(apps, schema_editor): """Migrate options previously with no contents (displayed as "Other:") to a new contents ("other"). The field containing these options is in CommonRequest abstract model...
71.339286
949
0.702378
460
3,995
6.006522
0.406522
0.035831
0.036193
0.041983
0.163952
0.14658
0.049946
0.049946
0
0
0
0.016688
0.205006
3,995
55
950
72.636364
0.853275
0.076596
0
0.365854
1
0.097561
0.550859
0.043905
0
0
0
0
0
1
0.02439
false
0
0.02439
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92ec1a79aa56994e71f763b1fea1ca3f88478806
1,278
py
Python
pix2pix/Discriminator.py
yubin1219/GAN
8345095f9816e548c968492efbe92b427b0e06a3
[ "MIT" ]
null
null
null
pix2pix/Discriminator.py
yubin1219/GAN
8345095f9816e548c968492efbe92b427b0e06a3
[ "MIT" ]
null
null
null
pix2pix/Discriminator.py
yubin1219/GAN
8345095f9816e548c968492efbe92b427b0e06a3
[ "MIT" ]
1
2021-09-17T01:28:50.000Z
2021-09-17T01:28:50.000Z
import torch import torch.nn as nn class Discriminator(nn.Module): def __init__(self, input_nc, ndf=64, norm_layer=nn.BatchNorm2d, use_sigmoid=False) : super(Discriminator, self).__init__() self.conv1 = nn.Sequential( nn.Conv2d(input_nc, ndf, kernel_size=4, stride=2, padding=1), nn.LeakyReLU(0.2,...
29.045455
86
0.58216
191
1,278
3.780105
0.230366
0.099723
0.116343
0.166205
0.569252
0.450139
0.365651
0.365651
0.3241
0.3241
0
0.062433
0.273083
1,278
43
87
29.72093
0.714747
0
0
0.15
0
0
0
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92f10be0db1bfd9a43f5256577f3d2fdfd1c920b
13,185
py
Python
marvel_world/views.py
xiaoranppp/si664-final
f5545c04452fd674ddf1d078444e79ea58385e7e
[ "MIT" ]
null
null
null
marvel_world/views.py
xiaoranppp/si664-final
f5545c04452fd674ddf1d078444e79ea58385e7e
[ "MIT" ]
1
2018-11-25T21:07:37.000Z
2018-11-25T21:07:37.000Z
marvel_world/views.py
xiaoranppp/si664-final
f5545c04452fd674ddf1d078444e79ea58385e7e
[ "MIT" ]
1
2018-12-21T12:06:03.000Z
2018-12-21T12:06:03.000Z
from django.shortcuts import render,redirect from django.http import HttpResponse,HttpResponseRedirect from django.views import generic from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from .models import Character,Comic,Power,CharacterPower,CharacterComic f...
31.618705
154
0.754873
1,668
13,185
5.741007
0.106715
0.031015
0.037594
0.048037
0.763784
0.688596
0.620301
0.581349
0.545113
0.443713
0
0.001668
0.135836
13,185
417
155
31.618705
0.838775
0.154115
0
0.633898
0
0
0.137825
0.067381
0
0
0
0.002398
0
1
0.084746
false
0
0.033898
0.044068
0.511864
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
92f1aa0fa9769c9eeef09b7c084da22948285538
267
py
Python
src/rpi/fwd.py
au-chrismor/selfdrive
31325dd7a173bbb16a13e3de4c9598aab0a50632
[ "BSD-3-Clause" ]
null
null
null
src/rpi/fwd.py
au-chrismor/selfdrive
31325dd7a173bbb16a13e3de4c9598aab0a50632
[ "BSD-3-Clause" ]
6
2018-03-15T05:23:55.000Z
2018-10-26T10:28:47.000Z
src/rpi/fwd.py
au-chrismor/selfdrive
31325dd7a173bbb16a13e3de4c9598aab0a50632
[ "BSD-3-Clause" ]
null
null
null
"""Set-up and execute the main loop""" import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) #Right motor input A GPIO.setup(18,GPIO.OUT) #Right motor input B GPIO.setup(23,GPIO.OUT) GPIO.output(18,GPIO.HIGH) GPIO.output(23,GPIO.LOW)
16.6875
38
0.749064
49
267
4.081633
0.571429
0.1
0.15
0
0
0
0
0
0
0
0
0.033755
0.11236
267
15
39
17.8
0.810127
0.265918
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
92f3155f2bddf2f3a6336a7c75d33f3d299e7e91
931
py
Python
util/get_from_db.py
Abel-Huang/simple-image-classifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
4
2017-05-17T08:01:38.000Z
2018-07-22T11:13:55.000Z
util/get_from_db.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
util/get_from_db.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
import pymysql # 连接配置信息 config = { 'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'password': '', 'db': 'classdata', 'charset': 'utf8', 'cursorclass': pymysql.cursors.DictCursor, } def get_summary_db(unitag): # 创建连接 conn = pymysql.connect(**config) cur = conn.cursor() ...
20.23913
54
0.541353
100
931
5
0.44
0.024
0.048
0.064
0.692
0.692
0.692
0.692
0.692
0.692
0
0.017433
0.322234
931
45
55
20.688889
0.77496
0.077336
0
0.5625
0
0
0.166078
0
0
0
0
0
0
1
0.0625
false
0.03125
0.03125
0
0.15625
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
92f638d897dda2bf328a3077b43f492f38f39bb7
1,412
py
Python
jduck/robot.py
luutp/jduck
3c60a79c926bb9452777cddbebe28982273068a6
[ "Apache-2.0" ]
null
null
null
jduck/robot.py
luutp/jduck
3c60a79c926bb9452777cddbebe28982273068a6
[ "Apache-2.0" ]
null
null
null
jduck/robot.py
luutp/jduck
3c60a79c926bb9452777cddbebe28982273068a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ jduck.py Description: Author: luutp Contact: luubot2207@gmail.com Created on: 2021/02/27 """ # Utilities # %% # ================================IMPORT PACKAGES==================================== # Utilities from traitlets.config.configurable import SingletonConfigur...
25.214286
85
0.61119
167
1,412
4.922156
0.353293
0.087591
0.126521
0.103406
0.40146
0.296837
0.245742
0.245742
0.245742
0.245742
0
0.028547
0.181303
1,412
55
86
25.672727
0.682526
0.23796
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.269231
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
92f8d1944416ddff1cb95f31ed4c8d93f364c956
5,193
py
Python
src/nebulo/gql/alias.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
76
2020-04-03T01:21:47.000Z
2021-12-06T02:54:53.000Z
src/nebulo/gql/alias.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
7
2020-04-06T04:44:10.000Z
2021-05-17T12:38:15.000Z
src/nebulo/gql/alias.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
2
2020-10-23T10:25:16.000Z
2020-10-28T14:16:57.000Z
# pylint: disable=missing-class-docstring,invalid-name import typing from graphql.language import ( InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, ) from graphql.type import ( GraphQLArgument, GraphQLBoolean, GraphQLEnumType, ...
25.965
101
0.706913
457
5,193
7.868709
0.26477
0.062291
0.042547
0.017519
0.385984
0.371246
0.362347
0.342325
0.313404
0.313404
0
0
0.220104
5,193
199
102
26.095477
0.887901
0.044676
0
0.43871
0
0
0.004036
0
0
0
0
0
0
1
0.019355
false
0.083871
0.051613
0
0.212903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
92fca9c0141bc42e92af9526839fedc292014b9b
292
py
Python
suda/1121/12.py
tusikalanse/acm-icpc
20150f42752b85e286d812e716bb32ae1fa3db70
[ "MIT" ]
2
2021-06-09T12:27:07.000Z
2021-06-11T12:02:03.000Z
suda/1121/12.py
tusikalanse/acm-icpc
20150f42752b85e286d812e716bb32ae1fa3db70
[ "MIT" ]
1
2021-09-08T12:00:05.000Z
2021-09-08T14:52:30.000Z
suda/1121/12.py
tusikalanse/acm-icpc
20150f42752b85e286d812e716bb32ae1fa3db70
[ "MIT" ]
null
null
null
for _ in range(int(input())): x, y = list(map(int, input().split())) flag = 1 for i in range(x, y + 1): n = i * i + i + 41 for j in range(2, n): if j * j > n: break if n % j == 0: flag = 0 break if flag == 0: break if flag: print("OK") else: print("Sorry")
17.176471
39
0.489726
55
292
2.581818
0.436364
0.147887
0.140845
0.169014
0.197183
0
0
0
0
0
0
0.040609
0.325342
292
17
40
17.176471
0.680203
0
0
0.176471
0
0
0.023891
0
0
0
0
0
0
1
0
false
0
0
0
0
0.117647
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13027944554eb9d8705c77a8073c891a250b3842
1,853
py
Python
ally/instrument.py
platformmaster9/PyAlly
55400e0835ae3ac5b3cf58e0e8214c6244aeb149
[ "MIT" ]
null
null
null
ally/instrument.py
platformmaster9/PyAlly
55400e0835ae3ac5b3cf58e0e8214c6244aeb149
[ "MIT" ]
null
null
null
ally/instrument.py
platformmaster9/PyAlly
55400e0835ae3ac5b3cf58e0e8214c6244aeb149
[ "MIT" ]
null
null
null
from . import utils ################################################# """ INSTRUMENT """ ################################################# def Instrument(symbol): symbol = str(symbol).upper() return { '__symbol' : symbol, 'Sym' : symbol, 'SecTyp' : 'CS', ...
29.412698
70
0.399352
148
1,853
4.736486
0.283784
0.119829
0.154066
0.199715
0.562054
0.513552
0.513552
0.513552
0.513552
0.513552
0
0.010228
0.314085
1,853
63
71
29.412698
0.541306
0.028602
0
0.36
0
0
0.141781
0
0
0
0
0
0
1
0.1
false
0
0.02
0.04
0.22
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1302b2f57e10ec891cc57b121da1cf9b5593731f
432
py
Python
airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
airbyte-integrations/connectors/source-yahoo-finance-price/integration_tests/acceptance.py
onaio/airbyte
38302e82a25f1b66742c3febfbff0668556920f2
[ "MIT" ]
1
2020-09-15T06:10:01.000Z
2020-09-15T06:10:01.000Z
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # import pytest pytest_plugins = ("source_acceptance_test.plugin",) @pytest.fixture(scope="session", autouse=True) def connector_setup(): """This fixture is a placeholder for external resources that acceptance test might require.""" # TODO: setup t...
25.411765
98
0.738426
55
432
5.727273
0.8
0.088889
0
0
0
0
0
0
0
0
0
0.011142
0.168981
432
16
99
27
0.866295
0.585648
0
0
0
0
0.213018
0.171598
0
0
0
0.0625
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
130613c0dd1daf7edf4aa6e30bb0303b2984e2ce
4,862
py
Python
hail/python/test/hailtop/utils/test_utils.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
hail/python/test/hailtop/utils/test_utils.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
hail/python/test/hailtop/utils/test_utils.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
from hailtop.utils import (partition, url_basename, url_join, url_scheme, url_and_params, parse_docker_image_reference) def test_partition_zero_empty(): assert list(partition(0, [])) == [] def test_partition_even_small(): assert list(partition(3, range(3))) == [range(0, 1), range(...
37.689922
113
0.644385
741
4,862
4.118758
0.098516
0.114679
0.06291
0.068152
0.732962
0.678244
0.647772
0.609109
0.486894
0.486894
0
0.04725
0.177293
4,862
128
114
37.984375
0.71575
0
0
0.366337
0
0
0.317153
0.145825
0
0
0
0
0.772277
1
0.09901
false
0
0.009901
0
0.108911
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
131342de18ae50cff3d8d09f0b5c640ef367d9c5
997
py
Python
tests/test_dcd_api.py
sadamek/pyIMX
52af15e656b400f0812f16cf31d9bf6edbe631ad
[ "BSD-3-Clause" ]
null
null
null
tests/test_dcd_api.py
sadamek/pyIMX
52af15e656b400f0812f16cf31d9bf6edbe631ad
[ "BSD-3-Clause" ]
null
null
null
tests/test_dcd_api.py
sadamek/pyIMX
52af15e656b400f0812f16cf31d9bf6edbe631ad
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-2018 Martin Olejar # # SPDX-License-Identifier: BSD-3-Clause # The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution # or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText import os import pytest from imx import img # Used Directories DAT...
22.155556
105
0.691073
162
997
4.092593
0.450617
0.054299
0.045249
0.042232
0.271493
0.271493
0.271493
0.129713
0.129713
0.129713
0
0.01875
0.197593
997
44
106
22.659091
0.81
0.316951
0
0.3
0
0
0.046269
0
0
0
0
0
0.2
1
0.2
false
0.1
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1313abf2371aefa93bced19321156374195a59c5
9,387
py
Python
recentjson.py
nydailynews/feedutils
8cb18b26ebf70033df420f3fece8c2cac363f918
[ "MIT" ]
null
null
null
recentjson.py
nydailynews/feedutils
8cb18b26ebf70033df420f3fece8c2cac363f918
[ "MIT" ]
1
2017-07-11T17:37:50.000Z
2017-07-11T17:37:50.000Z
recentjson.py
nydailynews/feedutils
8cb18b26ebf70033df420f3fece8c2cac363f918
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Return recent items from a json feed. Recent means "In the last X days." import os import doctest import json import urllib2 import argparse import types import gzip from datetime import datetime, timedelta from time import mktime class RecentJson: """ Methods for in...
40.813043
186
0.520081
1,124
9,387
4.262456
0.237544
0.024838
0.016907
0.023377
0.34043
0.307034
0.281987
0.270298
0.214569
0.210812
0
0.025517
0.319484
9,387
229
187
40.991266
0.724483
0.063386
0
0.116129
0
0.012903
0.17826
0.0245
0
0
0
0
0
0
null
null
0.006452
0.058065
null
null
0.058065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1317d06f323723e4a4f4ac9a34fb6dfc7aa40fb0
1,146
py
Python
website/migrations/0084_auto_20210215_1401.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
null
null
null
website/migrations/0084_auto_20210215_1401.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
1
2022-01-23T21:08:12.000Z
2022-01-23T21:08:12.000Z
website/migrations/0084_auto_20210215_1401.py
czhu1217/cmimc-online
5ef49ceec0bb86d8ae120a6ecfd723532e277821
[ "MIT" ]
1
2021-10-17T17:11:42.000Z
2021-10-17T17:11:42.000Z
# Generated by Django 3.1.6 on 2021-02-15 19:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0083_remove_aisubmission_code'), ] operations = [ migrations.AddField( model_name='e...
33.705882
150
0.604712
120
1,146
5.65
0.541667
0.047198
0.061947
0.097345
0.19174
0.19174
0
0
0
0
0
0.027316
0.265271
1,146
33
151
34.727273
0.77791
0.039267
0
0.259259
1
0
0.11647
0.026388
0
0
0
0
0
1
0
false
0
0.074074
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
131a0e5ecdfc260b3827d4c50aa8606f1a20747d
3,054
py
Python
getUniformSmiles.py
OpenEye-Contrib/Molecular-List-Logic
82caf41f7d8b94e7448d8e839bdbc0620a8666d7
[ "BSD-3-Clause" ]
2
2016-01-21T19:50:12.000Z
2021-04-10T13:27:40.000Z
getUniformSmiles.py
OpenEye-Contrib/Molecular-List-Logic
82caf41f7d8b94e7448d8e839bdbc0620a8666d7
[ "BSD-3-Clause" ]
null
null
null
getUniformSmiles.py
OpenEye-Contrib/Molecular-List-Logic
82caf41f7d8b94e7448d8e839bdbc0620a8666d7
[ "BSD-3-Clause" ]
null
null
null
#!/opt/az/psf/python/2.7/bin/python from openeye.oechem import * import cgi #creates a list of smiles of the syntax [smiles|molId,smiles|molId] def process_smiles(smiles): smiles = smiles.split('\n') mol = OEGraphMol() smiles_list=[] for line in smiles: if len(line.rstrip())>0: lin...
30.237624
90
0.586444
367
3,054
4.762943
0.33515
0.045767
0.043478
0.052632
0.146453
0.132723
0.132723
0.132723
0.114416
0.114416
0
0.00268
0.266863
3,054
100
91
30.54
0.778026
0.141781
0
0.1625
0
0
0.117196
0.022214
0
0
0
0
0
0
null
null
0
0.025
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1321da1b77c6741566badad243b4f02ccf184f31
2,510
py
Python
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
1
2019-07-22T03:43:49.000Z
2019-07-22T03:43:49.000Z
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2018, Arun Saha <arunksaha@gmail.com> # import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as md import datetime as dt import sys import os # Open the file, read the string contents into a list, # and return the list. def GetLinesListFromFile(filename): with open(filename) as f: ...
28.202247
78
0.712749
335
2,510
5.304478
0.507463
0.054024
0.005065
0.006753
0.032639
0.032639
0.032639
0.028137
0.028137
0
0
0.031784
0.160159
2,510
88
79
28.522727
0.811195
0.359761
0
0
0
0
0.057631
0
0
0
0
0
0.020833
0
null
null
0
0.125
null
null
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1324d01927785e4ef25103f8dd91f9cf2502dddb
722
py
Python
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
null
null
null
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T12:06:59.000Z
2022-02-07T12:06:59.000Z
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T02:38:04.000Z
2022-02-07T02:38:04.000Z
from dotenv import load_dotenv load_dotenv() import sys import os import re import json import psycopg2 from meme_classifier.images import process_image path = sys.argv[1] data = json.load(open(os.path.join(path, 'result.json'), 'r')) chat_id = data['id'] conn = psycopg2.connect(os.getenv('POSTGRES_CREDENTIALS')) ...
26.740741
140
0.67036
108
722
4.361111
0.462963
0.076433
0.042463
0.059448
0.191083
0.11465
0
0
0
0
0
0.005076
0.18144
722
26
141
27.769231
0.791878
0
0
0
0
0.05
0.228532
0
0
0
0
0
0
1
0
false
0
0.35
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
13275a03cfbb8b9a14ddc59598aea372c23ea6fb
6,461
py
Python
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
""" setup earthquake depth relocation directory """ import obspy import sh import numpy as np import click from os.path import join from glob import glob import copy def generate_new_cmtsolution_files(cmts_dir, generated_cmts_dir, depth_perturbation_list): cmt_names = glob(join(cmts_dir, "*")) for cmt_file i...
45.181818
207
0.625445
933
6,461
4.068596
0.165059
0.084826
0.107218
0.047418
0.571391
0.505269
0.463119
0.384089
0.318757
0.292413
0
0.006389
0.224733
6,461
142
208
45.5
0.751447
0.112676
0
0.126316
1
0
0.193514
0
0
0
0
0
0
1
0.042105
false
0
0.073684
0
0.115789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
132ba0fc5dd29581ad43ebacaf74b8069bf64ef6
5,072
py
Python
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-08-10T12:08:31.000Z
2021-08-10T12:08:31.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-04-30T05:38:44.000Z
2020-04-30T05:38:44.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-06-15T01:50:59.000Z
2020-06-15T01:50:59.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2017 Nest Labs, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
29.317919
123
0.636632
649
5,072
4.731895
0.292758
0.049495
0.035819
0.041029
0.11169
0.100619
0.100619
0.074569
0.050798
0.029306
0
0.005316
0.258281
5,072
172
124
29.488372
0.811005
0.168967
0
0.054945
0
0
0.149287
0
0
0
0
0
0
0
null
null
0
0.087912
null
null
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
132bada4fd58d52bb6e1891b67b8d0c493944002
6,243
py
Python
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
import turtle as t import math class circTrigo: def __init__(self): self.raio = 0 self.grau = 0 self.seno = 0 self.cosseno = 0 self.tangente = 0 self.quadrante = 0 self.tema = '' t.bgcolor("black") t.pencolor("white") def seta(s...
30.014423
149
0.492712
775
6,243
3.963871
0.125161
0.125
0.078125
0.045573
0.665039
0.611979
0.586263
0.574544
0.538411
0.514648
0
0.043052
0.378664
6,243
207
150
30.15942
0.748904
0.049175
0
0.708791
0
0
0.015198
0
0
0
0
0
0
1
0.054945
false
0
0.010989
0
0.071429
0.082418
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1335675a9f3e2654ba5bacc0a704284147b3d912
2,518
py
Python
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
3
2020-10-07T18:28:12.000Z
2020-10-09T15:24:53.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
15
2020-10-09T15:23:03.000Z
2020-10-29T04:34:17.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
null
null
null
from ssf import SSF ssf = SSF(errors='raise') def test_get_set_days(): dn = ssf.get_day_names() assert isinstance(dn, tuple) assert dn == (('Mon', 'Monday'), ('Tue', 'Tuesday'), ('Wed', 'Wednesday'), ('Thu', 'Thursday'), ('Fri', 'Friday'), ('Sat',...
31.475
100
0.496029
349
2,518
3.501433
0.332378
0.10311
0.135025
0.10311
0.355155
0.319149
0.220949
0.209493
0.162029
0.085106
0
0.074849
0.278396
2,518
79
101
31.873418
0.597689
0.01946
0
0.246154
0
0
0.208283
0
0
0
0
0
0.4
1
0.046154
false
0.061538
0.015385
0
0.061538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
133cca4be64ff28929df70bc44eae2ffd26907ef
5,889
py
Python
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
3
2020-11-11T11:28:47.000Z
2022-03-16T11:27:39.000Z
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
null
null
null
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
1
2021-01-05T15:01:06.000Z
2021-01-05T15:01:06.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from paste import constants from tests.mixins import SnippetListTestCaseMixin from tests.utils import constant, create_snippet, create_user class SnippetListTestCase(SnippetListTestCaseMixin, ...
37.993548
78
0.652742
725
5,889
5.158621
0.204138
0.076203
0.098396
0.064973
0.468984
0.371658
0.286096
0.263102
0.245455
0.234225
0
0.013559
0.248599
5,889
154
79
38.24026
0.831638
0.255561
0
0.22093
0
0
0.062805
0.005621
0
0
0
0
0.244186
1
0.209302
false
0
0.081395
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
133e3e1f16ff977c264f6c6b6c2854d7503259d9
1,082
py
Python
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
# python3 from itertools import permutations def max_dot_product_naive(first_sequence, second_sequence): assert len(first_sequence) == len(second_sequence) assert len(first_sequence) <= 10 ** 3 assert all(0 <= f <= 10 ** 5 for f in first_sequence) assert all(0 <= s <= 10 ** 5 for s in second_sequence...
30.914286
97
0.675601
158
1,082
4.386076
0.272152
0.18759
0.11544
0.132756
0.513709
0.455988
0.455988
0.455988
0.455988
0.455988
0
0.027875
0.204251
1,082
34
98
31.823529
0.777003
0.00647
0
0.347826
0
0
0.007456
0
0
0
0
0
0.391304
0
null
null
0
0.043478
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1359a8c4afe9581f59876f936fb68313f28865c1
1,028
py
Python
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-08 19:56 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations def noop(*args, **kwargs): pass def _convert_emailed_to_array_field(apps, schema_editor): BillingRecord = apps.get_model...
27.783784
80
0.689689
117
1,028
5.760684
0.529915
0.106825
0.066766
0.062315
0.077151
0
0
0
0
0
0
0.041312
0.199416
1,028
36
81
28.555556
0.777643
0.067121
0
0
1
0
0.088912
0.024059
0
0
0
0
0
1
0.086957
false
0.043478
0.130435
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
136018fcec6b4476406646ec76b683c9bf3950c1
1,148
py
Python
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import time from rover import Robot from connections import Connections class Rover(Robot, Connections): def __init__( self, config, bt_flag = 0, xbox_flag = 0, unix_flag = 0 ): self.bt_flag = bt_flag self.xbox_flag = xbox_flag self.unix_flag =...
19.457627
110
0.674216
160
1,148
4.63125
0.3625
0.040486
0.048583
0.059379
0.110661
0.075574
0.075574
0
0
0
0
0.006787
0.229965
1,148
58
111
19.793103
0.831448
0
0
0.232558
0
0
0.077526
0
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.069767
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1368b793b823b3bd0b461ed385d6e6b6434e1e68
3,455
py
Python
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-24T17:54:51.000Z
2021-03-24T17:54:51.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
18
2021-03-08T13:38:37.000Z
2022-02-14T15:06:28.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-25T13:37:02.000Z
2021-03-25T13:37:02.000Z
import docker from dockerfile_generator import render import os import json from tqdm import tqdm from typing import Union, Any, Optional def build_image(repo_url: str, tag: str, path: str) -> None: """ build_image builds the image with the given tag """ client = docker.from_env() print(f"Buildin...
32.28972
108
0.636758
473
3,455
4.528541
0.312896
0.03268
0.023343
0.024276
0.143324
0.080299
0.056956
0.056956
0.030812
0.030812
0
0.009292
0.252388
3,455
106
109
32.59434
0.819977
0.176845
0
0.189189
0
0
0.112388
0.017235
0
0
0
0
0
1
0.067568
false
0.054054
0.081081
0
0.243243
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1369857b721c52701d49ebb99393f03d4c246712
569
py
Python
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
3
2015-08-04T20:53:41.000Z
2020-02-14T22:58:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
103
2015-01-15T14:21:00.000Z
2022-03-31T19:14:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
4
2016-02-22T16:48:20.000Z
2021-01-08T17:13:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-25 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): """Updates ImageField syntax for later version. """ dependencies = [ ('appliance_catalog', '0014_auto_...
24.73913
86
0.644991
62
569
5.709677
0.790323
0.090395
0
0
0
0
0
0
0
0
0
0.078522
0.239016
569
22
87
25.863636
0.73903
0.210896
0
0
1
0
0.196833
0.106335
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
136a5b3d51a58e910193de0d1a2f38a488d4801a
1,435
py
Python
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
1
2021-09-23T22:04:09.000Z
2021-09-23T22:04:09.000Z
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
"""Retrieve and request tweets from the DS API""" import requests import spacy from .models import DB, Tweet, User nlp = spacy.load("my_model") def vectorize_tweet(tweet_text): return nlp(tweet_text).vector # Add and updates tweets def add_or_update_user(username): """Adds and updates the user with twiter ...
25.175439
78
0.608362
196
1,435
4.311224
0.413265
0.049704
0.04497
0.033136
0
0
0
0
0
0
0
0.000965
0.278049
1,435
56
79
25.625
0.814672
0.225087
0
0
0
0
0.123959
0
0
0
0
0.017857
0
1
0.074074
false
0
0.111111
0.037037
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
136b5475110947f42e139d24c848b375d4d0e140
2,144
py
Python
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
from mumodo.mumodoIO import open_intervalframe_from_textgrid import numpy from deep_disfluency.utils.accuracy import wer final_file = open('wer_test.text', "w") ranges1 = [line.strip() for line in open( "/media/data/jh/simple_rnn_disf/rnn_disf_detection/data/disfluency_detection/swda_divisions_disfluency_detectio...
36.965517
158
0.619403
286
2,144
4.451049
0.304196
0.043991
0.027494
0.047133
0.383346
0.362922
0.362922
0.328358
0.328358
0.328358
0
0.0116
0.236007
2,144
57
159
37.614035
0.765568
0.097481
0
0.173913
0
0
0.326594
0.285122
0
0
0
0
0
0
null
null
0
0.065217
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
0
0
0
0
0
1
136b8fe5a8aa80e827bc10eb9537bdf94b4fdc81
1,541
py
Python
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
13
2020-08-30T10:52:29.000Z
2021-08-18T12:20:39.000Z
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
null
null
null
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
1
2021-06-07T04:01:37.000Z
2021-06-07T04:01:37.000Z
from dataclasses import dataclass from dataclasses import field from time import time from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Tuple @dataclass class NewUser: """Deals with the commands the user is currently ...
22.661765
81
0.668397
215
1,541
4.632558
0.353488
0.048193
0.096386
0.056225
0.196787
0.196787
0.160643
0.160643
0.160643
0.160643
0
0
0.21804
1,541
67
82
23
0.826556
0.176509
0
0.386364
0
0
0.162641
0
0
0
0
0
0
1
0.090909
false
0
0.204545
0.090909
0.886364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
136bbda00809274a9f8b16997fd9b06b349771f8
3,754
py
Python
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
5
2015-09-23T10:05:29.000Z
2016-04-07T17:08:38.000Z
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
from .document_summary import definition as document_summary_definition from .organization_summary import definition as organization_summmary_definition definition = { "where": "?subj a foaf:Person .", "fields": { "name": { "where": "?subj rdfs:label ?obj ." }, #Contact info...
33.221239
80
0.34017
245
3,754
5.155102
0.261224
0.135392
0.061758
0.047506
0.304038
0.186857
0.186857
0.136184
0.136184
0.136184
0
0.01627
0.541556
3,754
112
81
33.517857
0.717606
0.003197
0
0.363636
0
0
0.546378
0
0
0
0
0
0
1
0
false
0
0.018182
0
0.018182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1377f0cfac03b437ee48b39fc8008df7e5dd358b
4,720
py
Python
docs/updatedoc.py
JukeboxPipeline/jukedj
d4159961c819c26792a278981ee68106ee15f3f3
[ "BSD-3-Clause" ]
2
2015-01-22T17:39:05.000Z
2015-02-09T16:47:15.000Z
docs/updatedoc.py
JukeboxPipeline/jukedj
d4159961c819c26792a278981ee68106ee15f3f3
[ "BSD-3-Clause" ]
3
2020-02-12T00:24:58.000Z
2021-06-10T20:05:03.000Z
docs/updatedoc.py
JukeboxPipeline/jukeboxmaya
c8d6318d53cdb5493453c4a6b65ef75bdb2d5f2c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Builds the documentaion. First it runs gendoc to create rst files for the source code. Then it runs sphinx make. .. Warning:: This will delete the content of the output directory first! So you might loose data. You can use updatedoc.py -nod. Usage, just call:: updatedoc.py -h "...
35.488722
115
0.613559
594
4,720
4.828283
0.314815
0.014644
0.029637
0.014644
0.154812
0.154812
0.106695
0.079498
0.079498
0.079498
0
0.002636
0.276695
4,720
133
116
35.488722
0.837434
0.004237
0
0.105263
0
0
0.116201
0
0
0
0
0
0.013158
0
null
null
0.013158
0.065789
null
null
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1379138cdd6c153ab5075c9fd6e443c52181da72
4,618
py
Python
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
1
2022-01-20T16:30:04.000Z
2022-01-20T16:30:04.000Z
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
13
2022-01-07T14:07:15.000Z
2022-01-29T19:42:48.000Z
BridgeOptimizer/scriptBuilder/ScriptBuilderBoundaryConditions.py
manuel1618/bridgeOptimizer
273bbf27b2c6273e4aaca55debbd9a10bebf7042
[ "MIT" ]
null
null
null
import os from typing import List, Tuple from BridgeOptimizer.datastructure.hypermesh.LoadCollector import LoadCollector from BridgeOptimizer.datastructure.hypermesh.LoadStep import LoadStep from BridgeOptimizer.datastructure.hypermesh.Force import Force from BridgeOptimizer.datastructure.hypermesh.SPC import SPC cla...
47.122449
159
0.622347
546
4,618
5.053114
0.20696
0.115622
0.135556
0.117434
0.39942
0.336716
0.30917
0.295397
0.286336
0.185212
0
0.036947
0.290819
4,618
97
160
47.608247
0.805496
0.090732
0
0.264706
0
0.029412
0.318204
0.055097
0
0
0
0.010309
0
1
0.044118
false
0.014706
0.088235
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
137f6361d1e175bc555153af22f77e79ad507096
369
py
Python
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
dataset/dataset.py
TeamOfProfGuo/few_shot_baseline
f9ac87b9d309fc417589350d3ce61d3612e2be91
[ "MIT" ]
null
null
null
import os DEFAULT_ROOT = './materials' datasets_dt = {} def register(name): def decorator(cls): datasets_dt[name] = cls return cls return decorator def make(name, **kwargs): if kwargs.get('root_path') is None: kwargs['root_path'] = os.path.join(DEFAULT_ROOT, name) dataset =...
17.571429
62
0.642276
48
369
4.791667
0.458333
0.130435
0.121739
0
0
0
0
0
0
0
0
0
0.233062
369
20
63
18.45
0.812721
0
0
0
0
0
0.078804
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
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
0
0
0
1
13836c2a14bcd63d7cbfba39a7fecc1ae843d691
7,087
py
Python
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
gbl1124/hfrd
327d7c1e18704d2e31a2649b40ae1d90353ebe24
[ "Apache-2.0" ]
5
2019-08-02T20:53:57.000Z
2021-06-25T05:16:46.000Z
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
null
null
null
backend/jenkins/pipelines/ansible/utils/testplan_gen.py
anandbanik/hfrd
7bc1f13bfc9c7d902aec0363d27b089ef68c7eec
[ "Apache-2.0" ]
14
2019-07-01T01:40:50.000Z
2020-03-24T06:14:32.000Z
#!/usr/bin/python import yaml import os import ast import sys from collections import OrderedDict curr_dir = os.getcwd() work_dir = sys.argv[1] network_type = sys.argv[2] testplan_dict = {} testplan_dict["name"] = "System performance test" testplan_dict["description"] = "This test is to create as much chaincode com...
39.372222
102
0.719769
813
7,087
6.04305
0.200492
0.061062
0.034602
0.042133
0.337065
0.220029
0.158559
0.125585
0.104824
0.072461
0
0.005958
0.147453
7,087
179
103
39.592179
0.807183
0.083251
0
0.115108
0
0
0.217935
0.020374
0
0
0
0
0
0
null
null
0
0.035971
null
null
0.064748
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1383ec6b114d686bf9cab5e588bcd0ec41143a37
1,033
py
Python
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
null
null
null
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
1
2019-02-25T09:52:31.000Z
2019-02-25T09:52:31.000Z
dblib/test_lib.py
cyber-fighters/dblib
9743122a55bc265f7551dd9283f381678b2703e4
[ "MIT" ]
null
null
null
"""Collection of tests.""" import pytest import dblib.lib f0 = dblib.lib.Finding('CD spook', 'my_PC', 'The CD drive is missing.') f1 = dblib.lib.Finding('Unplugged', 'my_PC', 'The power cord is unplugged.') f2 = dblib.lib.Finding('Monitor switched off', 'my_PC', 'The monitor is switched off.') def test_add_remove(...
23.477273
87
0.629235
158
1,033
4.075949
0.303797
0.170807
0.102484
0.177019
0.414596
0.414596
0.276398
0.228261
0.127329
0.127329
0
0.028786
0.226525
1,033
43
88
24.023256
0.777222
0.078412
0
0.433333
0
0
0.141176
0
0
0
0
0
0.366667
1
0.066667
false
0
0.066667
0
0.133333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
138922f3a893ab484911754fbdc916b94b521606
1,341
py
Python
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2016-07-09T00:05:56.000Z
2016-07-09T00:05:56.000Z
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
4
2022-03-10T09:13:31.000Z
2022-03-30T16:15:01.000Z
tests/input_files/full_sm_UFO/function_library.py
valassi/mg5amc_test
2e04f23353051f64e1604b23105fe3faabd32869
[ "NCSA" ]
1
2016-07-09T00:06:15.000Z
2016-07-09T00:06:15.000Z
# This file is part of the UFO. # # This file contains definitions for functions that # are extensions of the cmath library, and correspond # either to functions that are in cmath, but inconvenient # to access from there (e.g. z.conjugate()), # or functions that are simply not defined. # # from __future__ import absol...
23.946429
57
0.57047
149
1,341
5.033557
0.469799
0.112
0.186667
0.084
0.069333
0
0
0
0
0
0
0.010549
0.293065
1,341
55
58
24.381818
0.780591
0.251305
0
0.269231
0
0
0.166329
0.024341
0
0
0
0
0
1
0
false
0
0.115385
0
0.115385
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
138ad53bc75698fb0a04af0266ae508da388a981
6,057
py
Python
nevergrad/parametrization/utils.py
mehrdad-shokri/nevergrad
7b68b00c158bf60544bc45997560edf733fb5812
[ "MIT" ]
2
2021-04-13T12:14:46.000Z
2021-07-07T14:37:50.000Z
nevergrad/parametrization/utils.py
OregonWebSells/nevergrad
c2b2a0efdca29830ccc9182d8a7ba4d8695f698d
[ "MIT" ]
1
2020-09-25T10:45:06.000Z
2020-09-25T11:51:13.000Z
nevergrad/parametrization/utils.py
OregonWebSells/nevergrad
c2b2a0efdca29830ccc9182d8a7ba4d8695f698d
[ "MIT" ]
1
2021-04-07T10:34:20.000Z
2021-04-07T10:34:20.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys import shutil import tempfile import subprocess import typing as tp from pathlib import Path from ne...
38.826923
133
0.639591
744
6,057
5.106183
0.34543
0.014741
0.008687
0.011056
0.052645
0.043169
0.017373
0
0
0
0
0.000453
0.270596
6,057
155
134
39.077419
0.859439
0.297177
0
0.023256
0
0
0.061914
0.00814
0
0
0
0.012903
0.023256
1
0.093023
false
0
0.093023
0
0.302326
0.034884
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
138b01aa9774bbead45a8dac1264c5149cf9f912
568
py
Python
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
18
2020-04-13T03:14:06.000Z
2022-03-09T18:54:41.000Z
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
null
null
null
Section 20/2.Document-transfer_files.py
airbornum/-Complete-Python-Scripting-for-Automation
bc053444f8786259086269ca1713bdb10144dd74
[ "MIT" ]
22
2020-04-29T21:12:42.000Z
2022-03-17T18:19:54.000Z
import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname='54.165.97.91',username='ec2-user',password='paramiko123',port=22) sftp_client=ssh.open_sftp() #sftp_client.get('/home/ec2-user/paramiko_download.txt','paramiko_downloaded_file.txt') #sftp_c...
43.692308
88
0.769366
84
568
4.988095
0.535714
0.167064
0.078759
0.081146
0
0
0
0
0
0
0
0.033272
0.047535
568
13
89
43.692308
0.74122
0.399648
0
0
0
0
0.245399
0.09816
0
0
0
0
0
1
0
false
0.125
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
139756e066bb02143bb1f17cfc6e0e0c48ac0c56
20,000
py
Python
tests/hwsim/test_ap_open.py
waittrue/wireless
3c64f015dc62aec4da0b696f45cc4bcf41594c5d
[ "Unlicense" ]
1
2016-04-22T19:32:57.000Z
2016-04-22T19:32:57.000Z
tests/hwsim/test_ap_open.py
Acidburn0zzz/third_party-hostap
0542463c4de76fde6e8164f75b3a52ce0ddd8087
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_open.py
Acidburn0zzz/third_party-hostap
0542463c4de76fde6e8164f75b3a52ce0ddd8087
[ "Unlicense" ]
null
null
null
# Open mode AP tests # Copyright (c) 2014, Qualcomm Atheros, Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import struct import subprocess import time import os import hostapd import hwsim_utils from tshark impo...
41.237113
124
0.6295
2,856
20,000
4.25
0.134454
0.029
0.029659
0.033366
0.642116
0.600923
0.546383
0.518619
0.464492
0.401219
0
0.036791
0.21855
20,000
484
125
41.322314
0.739843
0.0455
0
0.478149
0
0.007712
0.225531
0.030219
0
0
0
0
0
0
null
null
0.002571
0.025707
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
13996a1a6227b5d37ae0ca02175dbff81af29e2d
29,063
py
Python
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
1
2015-07-10T06:14:29.000Z
2015-07-10T06:14:29.000Z
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
2
2016-01-10T04:27:12.000Z
2016-01-10T10:47:57.000Z
src/mushme.py
MuShMe/MuShMe
dbc9b940c827039016d7917d535882b47d7d8e5b
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from src import app import os import shutil from flask import Flask, render_template, session, request, flash, url_for, redirect from Forms import ContactForm, LoginForm, editForm, ReportForm, CommentForm, searchForm, AddPlaylist from flask.ext.mail import Message, Mail fro...
42.181422
251
0.600282
3,498
29,063
4.89251
0.104917
0.07152
0.072923
0.080986
0.569242
0.53354
0.5
0.45156
0.43853
0.412703
0
0.009727
0.250077
29,063
688
252
42.242733
0.775499
0.015036
0
0.456747
0
0.00692
0.272136
0.035271
0
0
0
0
0
0
null
null
0.012111
0.034602
null
null
0.019031
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
139af14f3890b6a5fdebd9bc833f815258ac26c3
1,433
py
Python
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
10
2020-03-26T01:08:10.000Z
2021-12-04T13:02:10.000Z
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
25
2020-06-08T14:52:28.000Z
2022-03-08T02:30:54.000Z
tests/adv/test_pop_sfrd.py
jlashner/ares
6df2b676ded6bd59082a531641cb1dadd475c8a8
[ "MIT" ]
8
2020-03-24T14:11:25.000Z
2021-11-06T06:32:59.000Z
""" test_pop_models.py Author: Jordan Mirocha Affiliation: UCLA Created on: Fri Jul 15 15:23:11 PDT 2016 Description: """ import ares import matplotlib.pyplot as pl PB = ares.util.ParameterBundle def test(): # Create a simple population pars_1 = PB('pop:fcoll') + PB('sed:bpass') pop_fcoll = ares.po...
25.589286
75
0.669923
203
1,433
4.502463
0.413793
0.078775
0.04814
0.135667
0.282276
0.203501
0.203501
0.203501
0.203501
0.203501
0
0.046007
0.196092
1,433
55
76
26.054545
0.747396
0.432659
0
0
0
0
0.183081
0
0
0
0
0
0.052632
1
0.052632
false
0.052632
0.105263
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
139b92054f917712ecbfacdc663b9fc7eea6103f
6,010
py
Python
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
core/self6dpp/tools/ycbv/ycbv_pbr_so_mlBCE_Double_3_merge_train_real_uw_init_results_with_refined_poses_to_json.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
import os.path as osp import sys import numpy as np import mmcv from tqdm import tqdm from functools import cmp_to_key cur_dir = osp.dirname(osp.abspath(__file__)) PROJ_ROOT = osp.normpath(osp.join(cur_dir, "../../../../")) sys.path.insert(0, PROJ_ROOT) from lib.pysixd import inout, misc from lib.utils.bbox_utils impo...
52.719298
146
0.708985
906
6,010
4.248344
0.342163
0.051442
0.062873
0.114575
0.277734
0.075864
0.016108
0
0
0
0
0.141502
0.175707
6,010
113
147
53.185841
0.635446
0.100166
0
0
0
0
0.540305
0.456352
0
0
0
0
0.020202
1
0
false
0
0.090909
0
0.090909
0.050505
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
139bcb633d3c2b224334dad0ddfc97013f3a8ff8
918
py
Python
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
12
2018-09-06T06:14:59.000Z
2021-04-18T06:30:44.000Z
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
null
null
null
tests/test_app/rest_app/rest_app/services/account_service.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
2
2019-09-08T22:01:26.000Z
2020-08-03T07:23:29.000Z
from flask import abort from guniflask.context import service from ..config.jwt_config import jwt_manager @service class AccountService: accounts = { 'root': { 'authorities': ['role_admin'], 'password': '123456', } } def login(self, username: str, password: str): ...
27.818182
102
0.59695
91
918
5.945055
0.395604
0.110906
0.110906
0.05915
0.110906
0.110906
0.110906
0
0
0
0
0.018576
0.296296
918
32
103
28.6875
0.818885
0
0
0.148148
0
0
0.117647
0
0
0
0
0
0
1
0.074074
false
0.111111
0.111111
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
139ed5391c8324e35fd54e409887ff876db4d1d0
239
py
Python
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
2
2022-02-03T07:35:46.000Z
2022-02-03T16:12:25.000Z
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
2
2022-03-05T02:31:38.000Z
2022-03-05T21:26:42.000Z
noo/impl/utils/__init__.py
nooproject/noo
238711c55faeb1226a4e5339cd587a312c4babac
[ "MIT" ]
1
2022-03-05T01:40:29.000Z
2022-03-05T01:40:29.000Z
from .echo import echo, set_quiet from .errors import NooException, cancel from .store import STORE, FileStore, Store __all__ = ( "FileStore", "NooException", "Store", "STORE", "cancel", "echo", "set_quiet", )
17.071429
42
0.635983
26
239
5.615385
0.423077
0.09589
0.164384
0
0
0
0
0
0
0
0
0
0.23431
239
13
43
18.384615
0.797814
0
0
0
0
0
0.209205
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
139f98ba0220830de5e89cabcde17bead64e5fb5
625
py
Python
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
13
2018-12-11T00:34:09.000Z
2022-03-22T20:41:04.000Z
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
13
2018-06-15T19:42:06.000Z
2020-12-18T22:20:02.000Z
setup.py
ooreilly/mydocstring
077cebfb86575914d343bd3291b9e6c5e8beef94
[ "MIT" ]
5
2018-06-16T07:45:49.000Z
2020-12-12T07:12:00.000Z
from setuptools import setup setup(name='mydocstring', version='0.2.7', description="""A tool for extracting and converting Google-style docstrings to plain-text, markdown, and JSON.""", url='http://github.com/ooreilly/mydocstring', author="Ossian O'Reilly", license='MIT', pa...
32.894737
84
0.6048
63
625
5.904762
0.857143
0
0
0
0
0
0
0
0
0
0
0.006424
0.2528
625
18
85
34.722222
0.79015
0
0
0
0
0
0.4592
0.1072
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
13a92427a8cdec440aec42402a7483f2303b73a6
10,075
py
Python
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
json_to_relation/mysqldb.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
# Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
40.461847
757
0.60794
1,195
10,075
5.121339
0.314644
0.032026
0.019608
0.02549
0.186438
0.156373
0.128758
0.112909
0.112909
0.096242
0
0.006105
0.300943
10,075
248
758
40.625
0.862843
0.504218
0
0.431373
0
0.019608
0.104526
0
0
0
0
0
0
1
0.098039
false
0.068627
0.039216
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13a95b957fe3881893fa91e63fed84b8224215f9
611
py
Python
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
29
2017-11-12T08:54:03.000Z
2022-03-04T21:12:00.000Z
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
2
2019-03-01T05:56:52.000Z
2021-05-17T00:18:01.000Z
tools/xkeydump.py
treys/crypto-key-derivation
789900bd73160db9a0d406c7c7f00f5f299aff73
[ "MIT" ]
9
2018-04-10T08:40:25.000Z
2021-12-29T16:04:48.000Z
#!./venv/bin/python from lib.mbp32 import XKey from lib.utils import one_line_from_stdin xkey = XKey.from_xkey(one_line_from_stdin()) print(xkey) print("Version:", xkey.version) print("Depth:", xkey.depth) print("Parent FP:", xkey.parent_fp.hex()) print("Child number:", xkey.child_number_with_tick()) print("Chain cod...
32.157895
63
0.721768
97
611
4.350515
0.360825
0.094787
0.07109
0.075829
0.104265
0
0
0
0
0
0
0.003546
0.076923
611
18
64
33.944444
0.744681
0.02946
0
0
0
0
0.162162
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.733333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
13aa5a46812a4881dac4a4f78ba8019d3b73841d
616
py
Python
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
57
2019-12-20T09:28:29.000Z
2022-03-28T02:38:48.000Z
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
6
2020-06-06T16:39:35.000Z
2021-01-21T01:19:52.000Z
examples/compute_angular_resolution.py
meder411/Tangent-Images
6def4d7b8797110e54f7faa2435973771d9e9722
[ "BSD-3-Clause" ]
16
2019-12-21T08:19:33.000Z
2022-03-28T02:38:49.000Z
from spherical_distortion.util import * sample_order = 9 # Input resolution to examine def ang_fov(s): print('Spherical Resolution:', s) for b in range(s): dim = tangent_image_dim(b, s) # Pixel dimension of tangent image corners = tangent_image_corners(b, s) # Corners of each tangent image ...
36.235294
77
0.625
90
616
4.066667
0.422222
0.163934
0.103825
0
0
0
0
0
0
0
0
0.002183
0.256494
616
17
78
36.235294
0.796943
0.146104
0
0
0
0
0.183556
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.142857
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
13abd087d6a8034a9d1a9da08f2dab574fb7be66
51,194
py
Python
polymath/srdfg/base.py
he-actlab/polymath
9b7937d0ddf7452f6cc74ee90d05f8c6acef737e
[ "Apache-2.0" ]
15
2021-05-09T05:46:04.000Z
2022-03-06T20:46:32.000Z
polymath/srdfg/base.py
he-actlab/polymath
9b7937d0ddf7452f6cc74ee90d05f8c6acef737e
[ "Apache-2.0" ]
null
null
null
polymath/srdfg/base.py
he-actlab/polymath
9b7937d0ddf7452f6cc74ee90d05f8c6acef737e
[ "Apache-2.0" ]
4
2021-08-24T07:46:29.000Z
2022-03-05T18:23:07.000Z
from polymath import UNSET_SHAPE, DEFAULT_SHAPES import builtins import operator from collections import OrderedDict, Mapping, Sequence, deque import functools from numbers import Integral, Rational, Real import contextlib import traceback import uuid import numpy as np import importlib from .graph import Graph from ....
35.725052
158
0.607239
6,433
51,194
4.613866
0.0813
0.050942
0.049055
0.038947
0.487214
0.429905
0.399717
0.387554
0.363633
0.352481
0
0.004223
0.282963
51,194
1,432
159
35.75
0.804348
0.13777
0
0.37013
0
0.002165
0.063779
0.005614
0
0
0
0.003492
0.002165
1
0.187229
false
0
0.016234
0.126623
0.398268
0.001082
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
13b9386ce9cd9ff6be8dca6211a1ab2dc6917f81
7,340
py
Python
BaseTools/Source/Python/GenFds/CapsuleData.py
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
6
2020-01-10T05:16:15.000Z
2022-01-06T17:41:58.000Z
BaseTools/Source/Python/GenFds/CapsuleData.py
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
null
null
null
BaseTools/Source/Python/GenFds/CapsuleData.py
James992927108/uEFI_Edk2_Practice
2cac7618dfee10bfa5104a2e167c85425fde0100
[ "BSD-2-Clause" ]
3
2018-04-21T07:59:33.000Z
2018-04-23T02:06:01.000Z
## @file # generate capsule # # Copyright (c) 2007-2017, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found a...
29.837398
143
0.568665
735
7,340
5.627211
0.282993
0.027079
0.034816
0.052224
0.330513
0.249758
0.249033
0.240329
0.240329
0.240329
0
0.021798
0.343733
7,340
245
144
29.959184
0.836828
0.308311
0
0.333333
1
0
0.010379
0
0
0
0.003256
0
0
1
0.113821
false
0.01626
0.056911
0.01626
0.292683
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13bb8f895f0b886cb437c77e5bc0bd429007f636
2,193
py
Python
esque_wire/protocol/structs/api/elect_preferred_leaders_response.py
real-digital/esque-wire
eb02c49f38b89ad5e5d25aad15fb4ad795e52807
[ "MIT" ]
null
null
null
esque_wire/protocol/structs/api/elect_preferred_leaders_response.py
real-digital/esque-wire
eb02c49f38b89ad5e5d25aad15fb4ad795e52807
[ "MIT" ]
7
2019-11-26T08:19:49.000Z
2021-03-15T14:27:47.000Z
esque_wire/protocol/structs/api/elect_preferred_leaders_response.py
real-digital/esque-wire
eb02c49f38b89ad5e5d25aad15fb4ad795e52807
[ "MIT" ]
null
null
null
from typing import ClassVar, List, Optional from ...constants import ApiKey, ErrorCode from ..base import ResponseData class PartitionResult: partition_id: int error_code: ErrorCode error_message: Optional[str] def __init__(self, partition_id: int, error_code: ErrorCode, error_message: Optional[str...
36.55
112
0.690378
257
2,193
5.645914
0.29572
0.053067
0.057891
0.047553
0.290145
0.257753
0.199862
0.164025
0.164025
0.07581
0
0
0.248518
2,193
59
113
37.169492
0.880461
0.401277
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.708333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
13bc25bc6434cc017d92bbc47c055999ff8c038c
3,181
py
Python
tests/stack_test.py
arthurlogilab/py_zipkin
8e733506c399967ea74c56b99a9a421e1bb1736a
[ "Apache-2.0" ]
225
2016-09-16T17:57:51.000Z
2022-02-12T22:15:32.000Z
tests/stack_test.py
arthurlogilab/py_zipkin
8e733506c399967ea74c56b99a9a421e1bb1736a
[ "Apache-2.0" ]
156
2016-09-17T03:50:04.000Z
2021-03-17T23:19:40.000Z
tests/stack_test.py
arthurlogilab/py_zipkin
8e733506c399967ea74c56b99a9a421e1bb1736a
[ "Apache-2.0" ]
53
2016-09-20T18:34:08.000Z
2021-08-31T06:14:03.000Z
import mock import pytest import py_zipkin.storage @pytest.fixture(autouse=True, scope="module") def create_zipkin_attrs(): # The following tests all expect _thread_local.zipkin_attrs to exist: if it # doesn't, mock.patch will fail. py_zipkin.storage.ThreadLocalStack().get() def test_get_zipkin_attrs_r...
34.576087
83
0.727759
449
3,181
4.775056
0.184855
0.089552
0.16791
0.14459
0.704291
0.640392
0.508862
0.385728
0.385728
0.362407
0
0.000366
0.142094
3,181
91
84
34.956044
0.785269
0.055014
0
0.241379
0
0
0.041972
0
0
0
0
0
0.327586
1
0.224138
false
0.017241
0.051724
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
13c4fe2bf0cd10d5be8344221103967c7cea77fd
12,883
py
Python
windows/winobject/network.py
marpie/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2018-11-15T11:15:56.000Z
2018-11-15T11:15:56.000Z
windows/winobject/network.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
null
null
null
windows/winobject/network.py
killvxk/PythonForWindows
b253bc5873e7d97087ed22f2753b51fc6880ec18
[ "BSD-3-Clause" ]
1
2020-12-25T12:59:10.000Z
2020-12-25T12:59:10.000Z
import windows import ctypes import socket import struct from windows import winproxy import windows.generated_def as gdef from windows.com import interfaces as cominterfaces from windows.generated_def.winstructs import * from windows.generated_def.windef import * class TCP4Connection(MIB_TCPROW_OWNER_PID): """A...
28.756696
134
0.623613
1,492
12,883
5.175603
0.164879
0.047009
0.03108
0.022792
0.478244
0.402745
0.347967
0.29798
0.249806
0.192696
0
0.009764
0.268649
12,883
447
135
28.821029
0.809807
0.195607
0
0.416667
1
0.003968
0.037181
0.010188
0
0
0
0
0
1
0.174603
false
0.007937
0.035714
0.007937
0.460317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13c5d0054209f9afb389d03f1764cab446c01a96
742
py
Python
src/messages.py
Ewpratten/chat
4cc8461e442b6530b7874f234b1a2261f3db8456
[ "MIT" ]
null
null
null
src/messages.py
Ewpratten/chat
4cc8461e442b6530b7874f234b1a2261f3db8456
[ "MIT" ]
null
null
null
src/messages.py
Ewpratten/chat
4cc8461e442b6530b7874f234b1a2261f3db8456
[ "MIT" ]
null
null
null
greeting = """ --------------- BEGIN SESSION --------------- You have connected to a chat server. Welcome! :: About Chat is a small piece of server software written by Evan Pratten to allow people to talk to eachother from any computer as long as it has an internet connection. (Even an arduino!). Check out the proje...
32.26087
45
0.690027
114
742
4.491228
0.719298
0.011719
0
0
0
0
0
0
0
0
0
0
0.165768
742
23
46
32.26087
0.827141
0
0
0
0
0
0.975774
0.060565
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13c974d988a5a072e9adfbe93d6a9ef5022a8ab3
1,712
py
Python
source/dump_query_results.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/dump_query_results.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/dump_query_results.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import os import mysql.connector as mysql metrics_mysql_password = os.environ['METRICS_MYSQL_PWD'] sql_host = os.environ['SQL_HOST'] metrics = os.environ['QUERY_ON'] def dump_query_results(): """ This is a simple SQL table dump of a given query so we can supply users with custom ...
33.568627
164
0.675234
242
1,712
4.603306
0.512397
0.056553
0.02693
0.023339
0.055655
0.055655
0.055655
0.055655
0
0
0
0.003817
0.234813
1,712
50
165
34.24
0.846565
0.28271
0
0.066667
0
0.033333
0.261163
0.090143
0
0
0
0
0
1
0.033333
false
0.066667
0.066667
0
0.133333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13cbb884947e5c5ee43f164c1fde11e81811776b
4,399
py
Python
osaka/storage/sftp.py
riverma/osaka
f9ed386936500303c629d7213d91215085bcf346
[ "Apache-2.0" ]
2
2018-05-08T03:13:49.000Z
2022-02-09T08:48:06.000Z
osaka/storage/sftp.py
riverma/osaka
f9ed386936500303c629d7213d91215085bcf346
[ "Apache-2.0" ]
6
2019-02-06T19:12:09.000Z
2022-02-08T04:29:49.000Z
osaka/storage/sftp.py
riverma/osaka
f9ed386936500303c629d7213d91215085bcf346
[ "Apache-2.0" ]
12
2018-04-08T12:58:29.000Z
2022-03-31T18:35:53.000Z
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import int from future import standard_library standard_library.install_aliases() import os import os.path import stat import urllib.parse import paramiko...
30.130137
90
0.562855
519
4,399
4.703276
0.310212
0.02458
0.032773
0.027038
0.119623
0.082343
0
0
0
0
0
0.001745
0.348716
4,399
145
91
30.337931
0.850262
0.246874
0
0.17284
0
0
0.034852
0
0
0
0
0
0
1
0.098765
false
0.074074
0.160494
0
0.308642
0.049383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13ce074cf333bc82bde9c49d1dbfefb77ad96d57
715
py
Python
kindler/solver/optimizer.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
kindler/solver/optimizer.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
kindler/solver/optimizer.py
mingruimingrui/kindler
8a9c2278b607a167b0ce827b218e54949a1120e7
[ "MIT" ]
null
null
null
import torch def make_sgd_optimizer( model, base_lr=0.001, bias_lr_factor=2.0, momentum=0.9, weight_decay=0.0005, weight_decay_bias=0.0, ): params = [] for key, value in model.named_parameters(): if not value.requires_grad: continue param_lr = base_lr ...
22.34375
67
0.601399
91
715
4.417582
0.384615
0.218905
0.119403
0.064677
0.134328
0
0
0
0
0
0
0.030426
0.31049
715
31
68
23.064516
0.78499
0
0
0
0
0
0.033566
0
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13d25057738843cced8f3d82852dabf41375fb9a
754
py
Python
redshift_upload/base_utilities.py
douglassimonsen/redshift_upload
e549c770538f022c0b90a983ca056f3e9c16c643
[ "MIT" ]
null
null
null
redshift_upload/base_utilities.py
douglassimonsen/redshift_upload
e549c770538f022c0b90a983ca056f3e9c16c643
[ "MIT" ]
1
2022-03-12T03:50:55.000Z
2022-03-12T03:50:55.000Z
redshift_upload/base_utilities.py
douglassimonsen/redshift_upload
e549c770538f022c0b90a983ca056f3e9c16c643
[ "MIT" ]
null
null
null
import inspect import os from pathlib import Path class change_directory: """ A class for changing the working directory using a "with" statement. It takes the directory to change to as an argument. If no directory is given, it takes the directory of the file from which this function was call...
30.16
98
0.624668
102
754
4.421569
0.529412
0.046563
0.066519
0.084257
0.084257
0
0
0
0
0
0
0.003704
0.28382
754
24
99
31.416667
0.831481
0.307692
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
13d5b4c27424ce3f3958c70f0a0828815649d42f
2,971
py
Python
homeassistant/components/zha/core/channels/lighting.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/zha/core/channels/lighting.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/zha/core/channels/lighting.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Lighting channels module for Zigbee Home Automation.""" from __future__ import annotations from contextlib import suppress from zigpy.zcl.clusters import lighting from .. import registries from ..const import REPORT_CONFIG_DEFAULT from .base import ClientChannel, ZigbeeChannel @registries.ZIGBEE_CHANNEL_REGISTR...
33.382022
76
0.693369
352
2,971
5.613636
0.238636
0.050607
0.068826
0.07085
0.44332
0.313765
0.20749
0.148785
0.148785
0.069838
0
0.006313
0.200269
2,971
88
77
33.761364
0.825337
0.169976
0
0.137931
0
0
0.124324
0.038254
0
0
0.00499
0
0
1
0.137931
false
0
0.103448
0
0.586207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
13d760267b20f874fc4b087de72759e81f401445
6,123
py
Python
servicedirectory/src/sd-api/users/tests/tests_serializers.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/users/tests/tests_serializers.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/users/tests/tests_serializers.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
''' (c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights Reserved. The copyright to the software program(s) is property of Telefonica I+D. The program(s) may be used and or copied only with the express written consent of Telefonica I+D or in accordance with the terms and conditions stipulated in t...
52.784483
114
0.6634
654
6,123
6.022936
0.19419
0.081239
0.106118
0.116781
0.693069
0.687992
0.669713
0.648388
0.606245
0.567149
0
0.003606
0.230116
6,123
115
115
53.243478
0.83199
0.136534
0
0.421687
0
0
0.16926
0
0
0
0
0
0.240964
1
0.13253
false
0.144578
0.060241
0
0.204819
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13d7896d6d799cba6c0e766504d5f3eea5f2e531
3,124
py
Python
Web/notifyXAPI/app/src/users/views.py
abs0lut3pwn4g3/RootersCTF2019-challenges
397a6fad0b03e55541df06e5103172ae850cd4e5
[ "MIT" ]
14
2019-10-13T07:38:04.000Z
2022-02-13T09:03:50.000Z
Web/notifyXAPI/app/src/users/views.py
abs0lut3pwn4g3/RootersCTF2019-challenges
397a6fad0b03e55541df06e5103172ae850cd4e5
[ "MIT" ]
1
2019-10-13T07:35:13.000Z
2019-10-13T08:22:48.000Z
Web/notifyXAPI/app/src/users/views.py
abs0lut3pwn4g3/RootersCTF2019-challenges
397a6fad0b03e55541df06e5103172ae850cd4e5
[ "MIT" ]
4
2019-10-13T08:21:43.000Z
2022-01-09T16:39:33.000Z
''' User views ''' from datetime import timedelta from flask import request, jsonify, make_response, redirect, json, render_template from flask_jwt_extended import (create_access_token, jwt_required) from flask_restful import Resource from flask_login import login_user, current_user from sqlalchemy.exc import Integrit...
40.571429
124
0.588348
336
3,124
5.354167
0.28869
0.073374
0.100056
0.097276
0.367982
0.31851
0.264591
0.223457
0.190106
0.190106
0
0.018165
0.295134
3,124
77
125
40.571429
0.798819
0.003201
0
0.274194
0
0
0.08336
0
0
0
0
0
0
1
0.048387
false
0.064516
0.145161
0.016129
0.451613
0.016129
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13ded3828a8c037ea4aa78b91386fb78512809eb
326
py
Python
tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py
mbargull/conda-build
ebc56f48196774301863fecbe98a32a7ded6eb7e
[ "BSD-3-Clause" ]
null
null
null
tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py
mbargull/conda-build
ebc56f48196774301863fecbe98a32a7ded6eb7e
[ "BSD-3-Clause" ]
null
null
null
tests/test-recipes/metadata/ignore_some_prefix_files/run_test.py
mbargull/conda-build
ebc56f48196774301863fecbe98a32a7ded6eb7e
[ "BSD-3-Clause" ]
null
null
null
import os pkgs = os.path.join(os.environ["ROOT"], "pkgs") info_dir = os.path.join(pkgs, "conda-build-test-ignore-some-prefix-files-1.0-0", "info") has_prefix_file = os.path.join(info_dir, "has_prefix") print(info_dir) assert os.path.isfile(has_prefix_file) with open(has_prefix_file) as f: assert "test2" not in f.r...
32.6
88
0.733129
60
326
3.816667
0.516667
0.104803
0.131004
0
0
0
0
0
0
0
0
0.013605
0.09816
326
9
89
36.222222
0.765306
0
0
0
0
0
0.226994
0.144172
0
0
0
0
0.25
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13e067146d5c409e953e8fe9a97ca674f7b0976f
2,217
py
Python
ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/backend/src/ymir_controller/controller/utils/invoker_mapping.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
from controller.invoker import ( invoker_cmd_branch_checkout, invoker_cmd_branch_commit, invoker_cmd_branch_create, invoker_cmd_branch_delete, invoker_cmd_branch_list, invoker_cmd_evaluate, invoker_cmd_filter, invoker_cmd_gpu_info, invoker_cmd_inference, invoker_cmd_init, inv...
43.470588
87
0.834461
284
2,217
5.929577
0.204225
0.243468
0.146675
0.045131
0.273159
0.179335
0
0
0
0
0
0.011705
0.113667
2,217
50
88
44.34
0.845293
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
13e10f247a53a809b100dc05b97804f51f30b05a
463
py
Python
server/form/mongo.py
SRM-IST-KTR/ossmosis
06e375dfdd67f91286ffbcb13e04b6543585d8ad
[ "MIT" ]
6
2021-07-04T07:59:17.000Z
2021-07-04T14:41:00.000Z
server/form/mongo.py
SRM-IST-KTR/ossmosis
06e375dfdd67f91286ffbcb13e04b6543585d8ad
[ "MIT" ]
null
null
null
server/form/mongo.py
SRM-IST-KTR/ossmosis
06e375dfdd67f91286ffbcb13e04b6543585d8ad
[ "MIT" ]
1
2022-02-15T13:31:46.000Z
2022-02-15T13:31:46.000Z
import os from pymongo import MongoClient from dotenv import load_dotenv def database_entry(data): try: load_dotenv() mongo_string = os.getenv('MONGODB_AUTH_URI') client = MongoClient(mongo_string) database = client[os.getenv('MONGODB_DB')] col = database['users'] c...
21.045455
52
0.637149
56
463
4.964286
0.642857
0.071942
0.107914
0
0
0
0
0
0
0
0
0
0.278618
463
21
53
22.047619
0.832335
0
0
0
0
0
0.084233
0
0
0
0
0
0
1
0.058824
false
0.058824
0.176471
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13e58721f5e2c382c66ef605548dfd06ad0e1f44
1,363
py
Python
utils/stg/min_jerk_traj.py
dgerod/more-dmps
4dc886a138f289532b2672537f91ff857448ad27
[ "BSD-2-Clause" ]
7
2017-12-23T13:43:33.000Z
2021-08-21T14:50:55.000Z
utils/stg/min_jerk_traj.py
dgerod/more-dmps
4dc886a138f289532b2672537f91ff857448ad27
[ "BSD-2-Clause" ]
1
2016-08-21T05:05:32.000Z
2016-08-21T05:05:32.000Z
utils/stg/min_jerk_traj.py
dgerod/more-dmps
4dc886a138f289532b2672537f91ff857448ad27
[ "BSD-2-Clause" ]
2
2018-02-11T02:01:32.000Z
2019-09-16T01:43:43.000Z
''' Created on 25.07.2012 @author: karl ''' def trajectory(start, goal, duration, delta_t): traj = [] # inital values t, td, tdd = start, 0, 0 for i in range(int(2 * duration / delta_t)): try: t, td, tdd = _min_jerk_step(t, td, tdd, goal, duration - i * delta_t, delta_t) except: break ...
24.781818
96
0.533382
253
1,363
2.826087
0.391304
0.025175
0.05035
0.033566
0.072727
0.072727
0.072727
0.072727
0.072727
0
0
0.10625
0.295671
1,363
54
97
25.240741
0.638542
0.186354
0
0
0
0
0.068053
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
13e74a7f98e6571f4fc714e2743e38c7eafbf58e
2,607
py
Python
orthoexon/tests/test_util.py
jessicalettes/orthoexon
463ad1908364c602cf75dbddb0b16a42f4100a36
[ "BSD-3-Clause" ]
null
null
null
orthoexon/tests/test_util.py
jessicalettes/orthoexon
463ad1908364c602cf75dbddb0b16a42f4100a36
[ "BSD-3-Clause" ]
null
null
null
orthoexon/tests/test_util.py
jessicalettes/orthoexon
463ad1908364c602cf75dbddb0b16a42f4100a36
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_orthoexon ---------------------------------- Tests for `orthoexon` module. """ import os import pytest @pytest.fixture def exon_id_with_quotes(): return "'ENSE00001229068.1'" @pytest.fixture def exon_id(): return "ENSE00001229068.1" def test_separate_...
23.917431
86
0.678558
287
2,607
5.965157
0.275261
0.028037
0.079439
0.107477
0.478388
0.271028
0.204439
0.158879
0.136682
0.079439
0
0.048434
0.215957
2,607
109
87
23.917431
0.789139
0.221327
0
0.327273
0
0
0.117588
0.057798
0
0
0
0
0.090909
1
0.2
false
0
0.145455
0.109091
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
13efdb45818b7da3afae845201256a86d37c940d
4,302
py
Python
Lib/test/libregrtest/utils.py
oskomorokhov/cpython
c0e11a3ceb9427e09db4224f394c7789bf6deec5
[ "0BSD" ]
5
2017-08-25T04:31:30.000Z
2022-03-22T15:01:56.000Z
Lib/test/libregrtest/utils.py
oskomorokhov/cpython
c0e11a3ceb9427e09db4224f394c7789bf6deec5
[ "0BSD" ]
20
2021-03-25T12:52:42.000Z
2022-03-01T02:02:03.000Z
Lib/test/libregrtest/utils.py
oskomorokhov/cpython
c0e11a3ceb9427e09db4224f394c7789bf6deec5
[ "0BSD" ]
3
2020-04-13T14:41:31.000Z
2022-03-02T18:56:32.000Z
import math import os.path import sys import textwrap from test import support def format_duration(seconds): ms = math.ceil(seconds * 1e3) seconds, ms = divmod(ms, 1000) minutes, seconds = divmod(seconds, 60) hours, minutes = divmod(minutes, 60) parts = [] if hours: parts.append('%s h...
22.761905
75
0.600418
510
4,302
4.933333
0.35098
0.051669
0.085851
0.104928
0.022258
0
0
0
0
0
0
0.009015
0.303812
4,302
188
76
22.882979
0.831052
0.125291
0
0.381295
0
0
0.051701
0
0
0
0
0
0
1
0.057554
false
0.086331
0.035971
0
0.129496
0.035971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
13f954a55ebaa879400311cfe5c32a3993b29137
12,933
py
Python
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
1
2015-11-08T12:59:27.000Z
2015-11-08T12:59:27.000Z
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
null
null
null
test/test_rimuhosting.py
shenoyn/libcloud
bd902992a658b6a99193d69323e051ffa7388253
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # libcloud.org licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not...
45.22028
380
0.540478
1,377
12,933
4.819898
0.28976
0.029381
0.01808
0.021697
0.446738
0.410125
0.361911
0.339009
0.309779
0.309779
0
0.050881
0.341993
12,933
285
381
45.378947
0.729025
0.067115
0
0.387755
0
0.036735
0.757244
0.111831
0
0
0
0
0.053061
1
0.053061
false
0.004082
0.020408
0
0.106122
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b913259774170b0ae117752589cf379fac40286c
4,139
py
Python
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
easyidp/core/tests/test_class_reconsproject.py
HowcanoeWang/EasyIDP
0d0a0df1287e3c15cda17e8e4cdcbe05f21f7272
[ "MIT" ]
null
null
null
import os import numpy as np import pytest import easyidp from easyidp.core.objects import ReconsProject, Points from easyidp.io import metashape module_path = os.path.join(easyidp.__path__[0], "io/tests") def test_init_reconsproject(): attempt1 = ReconsProject("agisoft") assert attempt1.software == "metash...
42.234694
112
0.723846
535
4,139
5.297196
0.293458
0.012703
0.047636
0.063514
0.452717
0.41602
0.357798
0.290049
0.269584
0.162315
0
0.222932
0.167673
4,139
97
113
42.670103
0.59971
0.033341
0
0.126984
0
0
0.033801
0.015023
0
0
0
0
0.174603
1
0.063492
false
0
0.095238
0
0.15873
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b915eeed88fbfbe46318454fd21bc9db43d6d639
6,023
py
Python
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
null
null
null
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
null
null
null
utils/utils_bbox.py
MasoonZhang/FasterRConvMixer
a7a17d00f716a28a5b301088053e00840c222524
[ "MIT" ]
1
2022-03-14T05:29:42.000Z
2022-03-14T05:29:42.000Z
import numpy as np import torch from torch.nn import functional as F from torchvision.ops import nms def loc2bbox(src_bbox, loc): if src_bbox.size()[0] == 0: return torch.zeros((0, 4), dtype=loc.dtype) src_width = torch.unsqueeze(src_bbox[:, 2] - src_bbox[:, 0], -1) src_height = torch.unsqueez...
45.628788
136
0.381205
601
6,023
3.567388
0.21797
0.025187
0.020989
0.039179
0.157183
0.102612
0.059701
0.041978
0
0
0
0.028913
0.305164
6,023
131
137
45.977099
0.483393
0.267309
0
0
0
0
0
0
0
0
0
0
0
1
0.053333
false
0
0.053333
0
0.173333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1