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
42b27e1114addb6efa22983ea1b8536333e5b90e
3,096
py
Python
datar/forcats/misc.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/forcats/misc.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/forcats/misc.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Provides other helper functions for factors""" from typing import Any, Iterable import numpy from pandas import Categorical, DataFrame from pipda import register_verb from pipda.utils import CallingEnvs from ..core.types import ForcatsRegType, ForcatsType, is_null, is_scalar from ..core.utils import Array from ..co...
25.377049
78
0.622739
393
3,096
4.687023
0.300254
0.065147
0.136808
0.152009
0.295874
0.259501
0.238871
0.211726
0.157438
0.061889
0
0.0036
0.2823
3,096
121
79
25.586777
0.825383
0.194121
0
0.175676
0
0
0.018821
0
0
0
0
0
0
1
0.040541
false
0
0.175676
0
0.256757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42b603082633608e2a31d1e0d368cdcfc8b30d98
6,585
py
Python
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-06-27T11:26:29.000Z
2019-06-27T11:26:29.000Z
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
qucumber/utils/training_statistics.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 PIQuIL - All Rights Reserved # 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. The ASF licenses this file # to you under the Apache Licens...
39.431138
88
0.603037
909
6,585
4.244224
0.213421
0.050804
0.034215
0.039658
0.450233
0.399171
0.361586
0.333593
0.289787
0.289787
0
0.011578
0.291724
6,585
166
89
39.668675
0.815609
0.3918
0
0.184783
0
0
0.000525
0
0
0
0
0
0
1
0.032609
false
0
0.032609
0
0.097826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42b7e07ad45d9d0be2cad9161c36276cb3b1762f
1,433
py
Python
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
14.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
import copy def next10(i): # start condition board = [3, 7] elves = [0, 1] found = False # while (len(board) < i + 10): while (not found): to_add = board[elves[0]] + board[elves[1]] if (to_add < 10): board.append(to_add) if (board[-1*len(i):] == i): ...
31.844444
66
0.491975
244
1,433
2.848361
0.159836
0.046043
0.077698
0.086331
0.2
0.133813
0.116547
0.089209
0.089209
0.089209
0
0.142582
0.275646
1,433
44
67
32.568182
0.526975
0.316818
0
0.148148
0
0
0
0
0
0
0
0
0.148148
1
0.037037
false
0
0.037037
0
0.111111
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42b83fe05de3f7690454c9ae7844d6d5c0896fb0
892
py
Python
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
rpc inv matriz/ServerRPC.py
Aldair47x/DISTRIBUIDOS-UTP
182f143b3a5d73744f78eb4fe1428cbca22387c2
[ "MIT" ]
null
null
null
import xmlrpclib from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler import numpy as np from io import StringIO from numpy.linalg import inv from scipy.linalg import * # Restrict to a particular path. class RequestHandler(SimpleXMLRPCRequestHandler): ...
27.030303
59
0.734305
96
892
6.770833
0.604167
0.067692
0.086154
0
0
0
0
0
0
0
0
0.012228
0.174888
892
33
60
27.030303
0.870924
0.079596
0
0
0
0
0.06743
0
0
0
0
0
0
1
0.041667
false
0
0.291667
0
0.458333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42ba676a4b1855f63fba242958ff64fc7b10d468
1,524
py
Python
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
damq/api/management/commands/check_settings.py
zhanghui9700/clouddam
18c7c7578fb727bcab50737b51b8fb5c09070b48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from smtplib import SMTPException from django.conf import settings from django.core.management import BaseCommand from django.core.mail import send_mail class Command(BaseCommand): def _log(self, tag, result): label = self.style.ERROR("XXX") if result: ...
30.48
84
0.57874
177
1,524
4.847458
0.429379
0.041958
0.052448
0.04662
0.216783
0.174825
0.174825
0
0
0
0
0.005479
0.281496
1,524
49
85
31.102041
0.778082
0.021654
0
0.111111
0
0
0.176629
0
0
0
0
0
0
1
0.111111
false
0
0.138889
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42ba9ea7e400e5ef293ccdc589dfbbce586a2405
4,113
py
Python
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
358
2016-02-24T01:36:55.000Z
2022-02-20T00:10:22.000Z
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
5
2016-02-24T22:50:25.000Z
2017-01-30T07:58:00.000Z
sidomo/sidomo.py
noajshu/sdpm
b70825d9017eb0c2c6b6389345cccbcbd52cf669
[ "Unlicense" ]
27
2016-02-24T13:40:22.000Z
2021-06-30T12:04:41.000Z
"""Manages the lifecycle of a docker container. Use via the with statement: with Container(some_image) as c: for line in c.run("some_command"): print line """ import docker import click, os # sets the docker host from your environment variables client = docker.Client( **docker.utils.kwargs_from_env(a...
33.713115
125
0.623389
529
4,113
4.765595
0.344045
0.025783
0.02975
0.007933
0.0238
0.0238
0.0238
0.0238
0
0
0
0.006219
0.257233
4,113
121
126
33.991736
0.818985
0.242645
0
0.070423
0
0
0.111516
0
0
0
0
0
0.028169
1
0.070423
false
0
0.028169
0
0.126761
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42bb4531b3deb62a4952ce2f40bb5fa396ce9810
4,321
py
Python
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
scripts/utils/prepare_data.py
Harshs27/mGLAD
f85d5a7cb2091a4528c762dc550d8c9b35d190b1
[ "MIT" ]
null
null
null
import networkx as nx import numpy as np from sklearn import covariance import torch def convertToTorch(data, req_grad=False, use_cuda=False): """Convert data from numpy to torch variable, if the req_grad flag is on then the gradient calculation is turned on. """ if not torch.is_tensor(data): d...
33.757813
78
0.649618
611
4,321
4.479542
0.288052
0.037998
0.013153
0.02046
0.162221
0.135185
0.111071
0.111071
0.056997
0.028498
0
0.005919
0.257116
4,321
128
79
33.757813
0.846729
0.449664
0
0.081967
0
0
0.0191
0
0
0
0
0
0
1
0.081967
false
0
0.065574
0
0.229508
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42bc62f46cb6d0412a2527cc37f497de098a673f
1,475
py
Python
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
1
2020-08-28T20:29:23.000Z
2020-08-28T20:29:23.000Z
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
null
null
null
Exercicios/multplica_matriz.py
eduardodarocha/Introducao_Ciencia_da_Computacao_com_Python_Parte_2_Coursera
b5b9198e16b4b67894b85766eb521ae96010accf
[ "MIT" ]
null
null
null
def multiplica_matrizes(m1, m2): '''Minha solução para multiplicação de matrizes''' matriz = [] cont = 0 b1 = 0 for t in range(len(m1)): # números de linhas mat1 linhanova = [] for t1 in range(len(m2[0])): #números de colunas mat2 while cont < len(m2): #a1...
28.921569
70
0.492203
222
1,475
3.171171
0.265766
0.049716
0.046875
0.025568
0.071023
0.071023
0.028409
0
0
0
0
0.091
0.322034
1,475
51
71
28.921569
0.613
0.288136
0
0
0
0
0
0
0
0
0
0
0.034483
1
0.068966
false
0
0
0
0.137931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42c012688f03cf2033f2ea77e4e8d937fb973de4
996
py
Python
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
16
2018-01-17T06:03:23.000Z
2021-11-08T18:54:20.000Z
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
36
2018-03-16T15:17:58.000Z
2022-03-18T17:54:49.000Z
bifacialvf/tests/test_vf.py
shirubana/bifacialvf
7cd1c4c658bb7a68f0815b2bd1a6d5c492ca7300
[ "BSD-3-Clause" ]
15
2018-01-11T09:11:13.000Z
2022-03-21T11:37:42.000Z
""" Tests of the view factors module """ import pytest import numpy as np from bifacialvf.vf import getSkyConfigurationFactors from bifacialvf.tests import ( SKY_BETA160_C05_D1, SKY_BETA20_C05_D1, SKY_BETA20_C0_D1, SKY_BETA160_C0_D1, SKY_BETA160_C1_D1, SKY_BETA20_C1_D1, SKY_BETA20_C1_D0, SKY_BETA160_C1_D0, ...
39.84
79
0.715863
170
996
3.835294
0.288235
0.153374
0.079755
0.064417
0.042945
0
0
0
0
0
0
0.191847
0.162651
996
24
80
41.5
0.589928
0.09739
0
0
0
0
0.031963
0
0
0
0
0
0.0625
1
0.0625
false
0
0.25
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42c0646e767e46f559cbd944cee5d0ed57e7deeb
732
py
Python
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
test_horovod.py
lu-wang-dl/test-horovod
0b1699057fe03f84bbea46c3e63197a6c9e21c14
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source import horovod.tensorflow.keras as hvd def run_training_horovod(): # Horovod: initialize Horovod. hvd.init() import os print(os.environ.get('PYTHONPATH')) print(os.environ.get('PYTHONHOME')) print(f"Rank is: {hvd.rank()}") print(f"Size is: {hvd.size()}") # COMM...
24.4
89
0.715847
91
732
5.648352
0.494505
0.064202
0.105058
0.066148
0.51751
0.51751
0.51751
0.51751
0.51751
0.51751
0
0
0.132514
732
29
90
25.241379
0.809449
0.20765
0
0.285714
0
0
0.119089
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.357143
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42c3250899086a2d423b9d8448bed7aa2e3d35b4
1,832
py
Python
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
1
2022-03-05T04:20:46.000Z
2022-03-05T04:20:46.000Z
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
null
null
null
datasets.py
Liuhongzhi2018/Car_detection
f32fea9c348c691ccc30b9804a4f3fa32732bbae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 10:11:09 2020 @author: NAT """ import torch from torch.utils.data import Dataset import json import os from PIL import Image from utils import transform class VOCDataset(Dataset): def __init__(self, DataFolder, split): """ DataFol...
33.309091
105
0.543668
203
1,832
4.79803
0.374384
0.055441
0.033881
0.030801
0.221766
0.158111
0.158111
0.158111
0
0
0
0.010879
0.347707
1,832
55
106
33.309091
0.804184
0.120633
0
0
0
0
0.068966
0
0
0
0
0
0.066667
1
0.1
false
0
0.2
0.033333
0.4
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42c34955df6c0e7aa377ac0cc57e813a5826e6fa
7,564
py
Python
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
17
2019-03-08T15:33:46.000Z
2021-11-02T18:22:47.000Z
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
8
2018-12-23T21:17:36.000Z
2019-12-10T13:52:13.000Z
roles/gitlab_runner/filter_plugins/from_toml.py
wikimedia/operations-gitlab-ansible
f6433674ff812ea6e07ee192ff6fd848ba252aaa
[ "MIT" ]
12
2019-01-26T15:00:32.000Z
2022-03-15T08:04:17.000Z
#!/usr/bin/python DOCUMENTATION = ''' --- module: to_toml, from_toml version_added: "2.8" short_description: Converts Python data to TOML and TOML to Python data. author: - "Samy Coenen (contact@samycoenen.be)" ''' import datetime import sys from collections import OrderedDict #pip3 install python-toml def to_to...
22.714715
77
0.504098
1,003
7,564
3.633101
0.175474
0.032656
0.037047
0.027991
0.283205
0.227497
0.19786
0.127058
0.087267
0.087267
0
0.015513
0.335272
7,564
333
78
22.714715
0.709228
0.020888
0
0.229437
0
0.004329
0.079422
0.008259
0.008658
0
0
0
0
1
0.121212
false
0.021645
0.012987
0.030303
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42c37f3f064078bde91e95903b77950bc9bd114f
414
py
Python
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC190/D.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
def divisor(n: int): divisors = [] for integer in range(1, int(n**0.5)+1): if not n % integer: divisors.append(integer) divisors.append(n//integer) divisors.sort() return divisors n = int(input()) divisors = divisor(2*n) answer = 0 for integer in divisors: pair = 2*...
21.789474
43
0.562802
59
414
3.949153
0.389831
0.103004
0.103004
0
0
0
0
0
0
0
0
0.044983
0.301932
414
19
44
21.789474
0.761246
0
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
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
0
0
0
0
0
1
0
42c55d5c799cf1af35cb63cb32b363a33a23a6ae
862
py
Python
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
TV/models/episode.py
viswas163/Parse-bot
881df2767cc5bdf88ff5dcc451a97c2ed96fc073
[ "MIT" ]
null
null
null
from mongoengine import Document, IntField, StringField, FloatField, connect from pymongo import UpdateOne class Episode(Document): title = StringField(required=True) show = StringField(required=True) rating = FloatField(required=True) votes = IntField(required=True) def bulk_upsert(episodes): bu...
29.724138
93
0.611369
85
862
6.082353
0.552941
0.092843
0.088975
0
0
0
0
0
0
0
0
0
0.293503
862
29
93
29.724138
0.848933
0
0
0
0
0
0.019699
0
0
0
0
0
0
1
0.041667
false
0.041667
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42caa75d97d78a5da176444b0c283b314888e8e5
4,161
py
Python
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
BasicReport.py
nikneural/Report
414b08c157ef14345372fd5b84f134eb7c911fe4
[ "MIT" ]
null
null
null
import subprocess import docx.table import pandas as pd from docx import Document from docx.enum.text import WD_PARAGRAPH_ALIGNMENT from docx.oxml import OxmlElement from docx.oxml import ns from docx.oxml.ns import qn from docx.shared import Inches, Pt from docx.table import _Cell from docx2pdf import convert class...
32.76378
77
0.59553
485
4,161
4.954639
0.286598
0.05618
0.014981
0.022472
0.177278
0.177278
0.151477
0.151477
0.114856
0.114856
0
0.007901
0.300409
4,161
126
78
33.02381
0.817588
0.048786
0
0.191919
0
0
0.043875
0
0
0
0
0
0.010101
1
0.121212
false
0.010101
0.111111
0.010101
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42cd0e4c33a465776d2f55cc4beb83f4edfc71a6
4,568
py
Python
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
main.py
meaug/indoor_air_quality_dht22_sgp30
a746a9955903de1f7ce5e5d84493f860c1fd0b16
[ "MIT" ]
null
null
null
from network import WLAN import urequests as requests # from ubidots tutorial https://help.ubidots.com/en/articles/961994-connect-any-pycom-board-to-ubidots-using-wi-fi-over-http from machine import I2C import adafruit_sgp30 # from https://github.com/alexmrqt/micropython-sgp30 from machine import Pin from dht import DH...
31.722222
153
0.668345
630
4,568
4.749206
0.353968
0.008021
0.022727
0.012032
0.102273
0.086898
0.070856
0.03008
0.03008
0.03008
0
0.046512
0.218695
4,568
143
154
31.944056
0.791818
0.240587
0
0.212766
0
0
0.14846
0
0
0
0
0
0
1
0.021277
false
0.031915
0.085106
0
0.138298
0.117021
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42cd2ea8378c0d8edecc4b1ef21bb286fd030c27
5,278
py
Python
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/get_imu_data.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
1
2021-09-04T10:27:30.000Z
2021-09-04T10:27:30.000Z
# coding:UTF-8 import queue import serial import time import threading ACCData = [0.0] * 8 GYROData = [0.0] * 8 AngleData = [0.0] * 8 FrameState = 0 # 通过0x后面的值判断属于哪一种情况 Bytenum = 0 # 读取到这一段的第几位 CheckSum = 0 # 求和校验位 a = [0.0] * 3 w = [0.0] * 3 Angle = [0.0] * 3 count=0 start_time = time.time() interval=0.01 def ...
26.656566
122
0.48939
669
5,278
3.718984
0.22571
0.016077
0.025322
0.019293
0.18127
0.116158
0.060289
0.060289
0.060289
0.043408
0
0.079708
0.403372
5,278
198
123
26.656566
0.710384
0.082228
0
0.220126
0
0
0.006901
0
0
0
0.005855
0
0
1
0.044025
false
0
0.025157
0
0.09434
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42cdb0ad159342fdea9a675f50b583e29f8c7d2a
3,082
py
Python
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
test/test_utils.py
dilettacal/nmt_seq2seq_evo
1de7647fb50445d17aa0eab8f300fdcbe6b8145e
[ "MIT" ]
null
null
null
import os import unittest from torchtext.data import Field, Iterator from project.utils.utils_metrics import AverageMeter from project.utils.utils_logging import Logger from project.utils.datasets import Seq2SeqDataset data_dir = os.path.join(".", "test", "test_data") class TestIOUtils(unittest.TestCase): def ...
36.690476
110
0.621999
390
3,082
4.797436
0.276923
0.044896
0.089792
0.037413
0.270978
0.270978
0.270978
0.235703
0.174773
0.174773
0
0.013605
0.236859
3,082
84
111
36.690476
0.781888
0
0
0.239437
0
0
0.060655
0
0
0
0
0
0.309859
1
0.070423
false
0
0.084507
0
0.169014
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42d1f1c104a654530b6968dd6b6bff5cdf01c509
2,156
py
Python
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
5
2021-09-07T13:33:45.000Z
2022-02-12T18:56:45.000Z
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
null
null
null
networks/cifar_net.py
DQle38/Fair-Feature-Distillation-for-Visual-Recognition
f0f98728f36528218bf19dce9a26d6ee1ba96e58
[ "MIT" ]
4
2021-09-25T06:56:38.000Z
2022-03-24T18:06:08.000Z
import torch import torch.nn as nn import numpy as np class Net(nn.Module): def __init__(self, num_classes=10): super().__init__() self.conv1 = nn.Conv2d(3, 32, kernel_size=3, padding=1) s = compute_conv_output_size(32, 3, padding=1) # 32 self.conv2 = nn.Conv2d(32, 32, kernel_siz...
35.933333
101
0.574212
333
2,156
3.582583
0.243243
0.080469
0.090528
0.123219
0.317687
0.264878
0.264878
0.264878
0.264878
0.264878
0
0.092978
0.286642
2,156
59
102
36.542373
0.682705
0.022263
0
0.204082
0
0
0
0
0
0
0
0
0
1
0.061224
false
0
0.061224
0.020408
0.22449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42d4aca626e7056c3cd312d444ec2606808efc07
1,207
py
Python
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem654.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 654. Maximum Binary Tree Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: The root is the maximum number in the array. The left subtree is the maximum tree constructed from left part subarray divided by the maximum number. The right sub...
30.948718
105
0.666114
173
1,207
4.554913
0.358382
0.076142
0.045685
0.048223
0.30203
0.30203
0.190355
0
0
0
0
0.009019
0.26512
1,207
38
106
31.763158
0.879369
0.43662
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42d54535865b205f51d1935bf40792c7ce95c829
5,189
py
Python
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
44
2015-11-18T07:45:11.000Z
2022-03-30T06:32:18.000Z
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
110
2016-08-01T06:45:13.000Z
2021-11-30T18:45:36.000Z
pparser.py
deadsurgeon42/StarryPy3k
9291e5a7ca97004675a4868165ce5690c111c492
[ "WTFPL" ]
32
2015-01-31T09:54:38.000Z
2022-03-31T06:12:21.000Z
import asyncio import traceback from configuration_manager import ConfigurationManager from data_parser import * parse_map = { 0: ProtocolRequest, 1: ProtocolResponse, 2: ServerDisconnect, 3: ConnectSuccess, 4: ConnectFailure, 5: HandshakeChallenge, 6: ChatReceived, 7: None, 8: Non...
27.167539
79
0.578724
605
5,189
4.86281
0.401653
0.040789
0.025833
0.024473
0.141061
0.103671
0.092794
0.068321
0.068321
0.068321
0
0.037607
0.323569
5,189
190
80
27.310526
0.80057
0.262478
0
0.09375
0
0
0.038117
0
0
0
0
0
0
1
0.054688
false
0
0.03125
0
0.132813
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42d72c0c58e56c65e8f873c5b25c452eaaf9e7cc
3,032
py
Python
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
deploy/testData.py
yaoguxiao/insightface
731f9ec7503cda3a5f3433525aa57709a78b2118
[ "MIT" ]
null
null
null
import sys import os import mxnet as mx import argparse sys.path.append(os.path.join(os.getcwd(), "../src/common")) sys.path.append(os.path.join(os.getcwd(), "../src/eval")) import verification def argParser(): parser = argparse.ArgumentParser(description='test network') parser.add_argument('--model', default=...
41.534247
125
0.632256
407
3,032
4.594595
0.29484
0.041176
0.054545
0.032086
0.405882
0.374332
0.261497
0.261497
0.261497
0.225134
0
0.029786
0.169525
3,032
73
126
41.534247
0.712867
0.240765
0
0.058824
0
0
0.189934
0.054705
0
0
0
0
0
1
0.058824
false
0
0.098039
0
0.235294
0.196078
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42dc77f7900d79cb250ea17552132e0f738917bd
4,482
py
Python
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
1
2022-01-19T01:40:04.000Z
2022-01-19T01:40:04.000Z
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
test/test_plugin_spontit.py
NiNiyas/apprise
8d96e95acd7cb89f082685ae161bd0e268203f0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
37.663866
79
0.629407
573
4,482
4.891798
0.366492
0.012843
0.015697
0.027471
0.281127
0.236889
0.236889
0.211916
0.197289
0.171602
0
0.025865
0.232262
4,482
118
80
37.983051
0.788724
0.499554
0
0.6
0
0
0.258494
0.109275
0
0
0
0
0
1
0.016667
false
0
0.066667
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42dc9cb1aa466dc4d81d1303416d9c0741104c68
2,751
py
Python
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
img_striper.py
tacensi/image_striper
d361c5c4b7e9b8588b50d8f992b90d14fd64d4f0
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse import textwrap import math from PIL import Image parser = argparse.ArgumentParser( prog='img_striper.py', formatter_class=argparse.RawDescriptionHelpFormatter, description=textwrap.dedent('''\ Image striper This is a simple program to make stripes ...
25.472222
67
0.607779
400
2,751
4.045
0.34
0.038937
0.044499
0.033375
0.290482
0.226205
0.179234
0.179234
0.179234
0.179234
0
0.035696
0.287168
2,751
107
68
25.71028
0.789393
0.14104
0
0.085714
0
0
0.212857
0
0
0
0
0
0
1
0
false
0
0.057143
0
0.057143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42dcb97d77131e74ecfe71c62c27b3b22cca853a
7,590
py
Python
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
null
null
null
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
1
2019-05-03T07:54:57.000Z
2019-05-03T07:54:57.000Z
ds/web/views.py
brainmorsel/python-dhcp-sprout
c8da1b19558e404fdfef24304e1996c696fc13b1
[ "MIT" ]
null
null
null
import datetime from aiohttp import web from aiohttp_jinja2 import template import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg import psycopg2 from ds import db from . import forms @template('index.jinja2') async def index(request): return {} @template('profile_list.jinja2') async def pr...
35.633803
113
0.548221
941
7,590
4.274176
0.134963
0.046992
0.06365
0.024615
0.673794
0.606663
0.564147
0.490055
0.453257
0.453257
0
0.004625
0.316337
7,590
212
114
35.801887
0.770476
0
0
0.516304
0
0
0.067852
0.004743
0
0
0
0
0
1
0.005435
false
0
0.043478
0.005435
0.130435
0.005435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e0044ddc8db8684b032fa92b309e589628c115
6,123
py
Python
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
1
2021-02-19T01:45:49.000Z
2021-02-19T01:45:49.000Z
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
null
null
null
etsyapi/__init__.py
DempDemp/etsyapi
995250d2f76dcac7edf3b2404bfbce1df732765e
[ "BSD-3-Clause" ]
2
2016-04-10T21:28:05.000Z
2019-09-20T19:51:37.000Z
import six import json import logging import requests from requests_oauthlib import OAuth1 if six.PY3: from urllib.parse import parse_qs from urllib.parse import urlencode else: from urlparse import parse_qs from urllib import urlencode log = logging.getLogger(__name__) class EtsyError(Exception): ...
36.230769
112
0.594806
721
6,123
4.882108
0.260749
0.068182
0.054545
0.020455
0.252841
0.182955
0.144318
0.130682
0.107386
0.107386
0
0.006828
0.306386
6,123
168
113
36.446429
0.821992
0.194349
0
0.160377
0
0
0.090812
0
0
0
0
0
0
1
0.09434
false
0
0.084906
0.009434
0.283019
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e109eb76a25424069247c9b529582b0044ded2
2,996
py
Python
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
2
2021-10-05T10:04:56.000Z
2021-10-13T18:31:35.000Z
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
14
2021-09-01T12:30:59.000Z
2022-02-14T18:53:44.000Z
SatTrack/tle.py
ed-ortizm/satellite-tracking
9eb2b4a7f31b43035a425d8e2e51044f2e80712d
[ "MIT" ]
null
null
null
import datetime import os import re import sys import urllib from SatTrack.superclasses import FileDirectory ############################################################################### # CONSTANTS TLE_URL = f"https://celestrak.com/NORAD/elements/supplemental" ######################################################...
32.215054
79
0.496996
302
2,996
4.754967
0.354305
0.048747
0.062674
0.016713
0.132312
0.0961
0.068245
0.068245
0.068245
0
0
0.015351
0.238985
2,996
92
80
32.565217
0.614474
0.261015
0
0
0
0
0.163599
0.103613
0
0
0
0
0
1
0.121212
false
0
0.181818
0
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e13e620ce8965d49cd0e6e2ae37165c0735674
21,970
py
Python
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
13
2021-09-21T11:07:33.000Z
2022-03-25T08:46:46.000Z
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
2
2021-09-25T15:45:19.000Z
2021-12-10T15:57:35.000Z
vinfo/dataset.py
john-hewitt/conditional-probing
bebc90aa0c910395e2370910409076a945279fe0
[ "Apache-2.0" ]
2
2021-09-27T01:21:49.000Z
2021-09-28T06:08:19.000Z
import os import h5py import torch import torch.nn as nn from torch.utils.data import Dataset, IterableDataset, DataLoader import Levenshtein as levenshtein from tqdm import tqdm from yaml import YAMLObject from transformers import AutoTokenizer, AutoModel from allennlp.modules.elmo import batch_to_ids from utils im...
40.238095
188
0.697679
2,940
21,970
4.962925
0.12483
0.014187
0.005757
0.006785
0.478514
0.395175
0.306833
0.275992
0.191968
0.161469
0
0.005634
0.200182
21,970
545
189
40.311927
0.824721
0.180337
0
0.213483
0
0
0.039842
0
0
0
0
0
0
1
0.081461
false
0
0.030899
0.008427
0.219101
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e6a0854dc4ea36c5a33692e83aa3d38c0f49cc
2,505
py
Python
function/python/brightics/function/statistics/test/correlation_test.py
parkjh80/studio
6d8d8384272e5e1b2838b12e5557272a19408e89
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/statistics/test/correlation_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/statistics/test/correlation_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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 ...
41.065574
155
0.683433
332
2,505
5.012048
0.427711
0.054087
0.090144
0.100962
0.280048
0.280048
0.195913
0.076923
0
0
0
0.102615
0.190818
2,505
60
156
41.75
0.718303
0.229142
0
0
0
0
0.122995
0.015508
0
0
0
0
0.3125
1
0.125
false
0
0.1875
0
0.34375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e77bb6f8a615aa18b12b83385ee014877a332f
340
py
Python
fdp/__init__.py
cffbots/fairdatapoint
6142b31408b5746d1a7e9f59e61735b7ad8bfde9
[ "Apache-2.0" ]
9
2020-03-27T12:58:51.000Z
2021-01-21T16:22:46.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
26
2016-05-26T22:22:34.000Z
2020-02-13T07:12:37.000Z
fdp/__init__.py
MaastrichtU-IDS/fairdatapoint
f9f38903a629acbdb74a6a20014ac424cc3d3206
[ "Apache-2.0" ]
4
2020-06-09T18:37:33.000Z
2020-12-16T08:05:01.000Z
# -*- coding: utf-8 -*- import logging from .__version__ import __version__ logging.getLogger(__name__).addHandler(logging.NullHandler()) __author__ = "Rajaram Kaliyaperumal, Arnold Kuzniar, Cunliang Geng, Carlos Martinez-Ortiz" __email__ = 'c.martinez@esciencecenter.nl' __status__ = 'beta' __license__ = 'Apache Li...
26.153846
90
0.770588
38
340
6.157895
0.815789
0
0
0
0
0
0
0
0
0
0
0.009934
0.111765
340
12
91
28.333333
0.764901
0.061765
0
0
0
0
0.422713
0.088328
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42e8e15830841aa965ec225fd7e1715fe1c14fdd
60,795
py
Python
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
fluids/flow_meter.py
rddaz2013/fluids
acde6a6edc2110c152c59341574739b24a2f1bad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2018 Caleb Bell <Caleb.Andrew.Bell@gmail.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 ...
35.407688
108
0.607385
8,839
60,795
4.097409
0.115058
0.016153
0.014413
0.017616
0.660104
0.61946
0.588425
0.569429
0.547036
0.533313
0
0.092302
0.278625
60,795
1,716
109
35.428322
0.733514
0.653952
0
0.314516
0
0
0.069344
0.029807
0
0
0
0
0
1
0.080645
false
0
0.018817
0
0.188172
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42eb0db02ed2cdde4c36688526176ef0796f32f2
1,370
py
Python
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
163
2021-03-06T12:01:06.000Z
2022-03-01T22:52:36.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
61
2021-03-06T07:00:39.000Z
2021-04-13T10:25:58.000Z
git_plan/cli/commands/delete.py
synek/git-plan
4cf5429348a71fb5ea8110272fb89d20bfa38c38
[ "MIT" ]
9
2021-03-07T17:52:57.000Z
2021-10-18T21:35:23.000Z
"""Delete command Author: Rory Byrne <rory@rory.bio> """ from typing import Any from git_plan.cli.commands.command import Command from git_plan.service.plan import PlanService from git_plan.util.decorators import requires_initialized, requires_git_repository @requires_initialized @requires_git_repository class Dele...
31.136364
92
0.687591
173
1,370
5.196532
0.404624
0.097887
0.066741
0.066741
0.088988
0
0
0
0
0
0
0
0.210219
1,370
43
93
31.860465
0.830869
0.070073
0
0.074074
0
0
0.158313
0.027049
0
0
0
0
0.037037
1
0.111111
false
0
0.148148
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
0
0
0
0
0
1
0
42ef38196b7af8975b40694b6eb1954f2a48845e
1,926
py
Python
vision_module.py
seongdong2/GRADUATION
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
2
2021-09-19T13:52:05.000Z
2021-10-04T01:09:21.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
1
2021-10-14T06:19:44.000Z
2021-10-14T06:19:44.000Z
vision_module.py
seongdong2/graduation
c38b13a2dd82a58bdba7673916408daa0d9b471e
[ "Unlicense" ]
null
null
null
import numpy as np import cv2 CLASSES = ["background", "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", "pottedplant", "sheep", "sofa", "train", "tvmonitor"] net = cv2.dnn.readNetFromCaffe( ...
30.571429
106
0.555556
261
1,926
3.961686
0.413793
0.01354
0.011605
0.015474
0.073501
0.038685
0
0
0
0
0
0.038771
0.290239
1,926
63
107
30.571429
0.71763
0
0
0
0
0
0.101713
0.032174
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.159091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42efd3e55b344db382180d65f36b45d066baab96
618
py
Python
riccipy/metrics/lewis_papapetrou.py
cjayross/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
4
2019-08-17T04:28:06.000Z
2021-01-02T15:19:18.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
3
2019-08-02T04:07:43.000Z
2020-06-18T07:49:38.000Z
riccipy/metrics/lewis_papapetrou.py
grdbii/riccipy
2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846
[ "MIT" ]
null
null
null
""" Name: Lewis Papapetrou References: Ernst, Phys. Rev., v167, p1175, (1968) Coordinates: Cartesian """ from sympy import Function, Rational, exp, symbols, zeros coords = symbols("t x y z", real=True) variables = () functions = symbols("k r s w", cls=Function) t, x, y, z = coords k, r, s, w = functions metric = zeros...
30.9
77
0.553398
121
618
2.826446
0.330579
0.087719
0.061404
0.070175
0.181287
0.181287
0.105263
0.105263
0.105263
0.105263
0
0.060852
0.202265
618
19
78
32.526316
0.63286
0.15534
0
0
0
0
0.027237
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42f8e8791025cfd39e8878d6744a088d9902c8a3
1,206
py
Python
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
test/variable_type.py
bourne7/demo-python
0c4dd12475bcada4e5826b7117bd4c4bdcedfd9f
[ "MIT" ]
null
null
null
def do_loop(): print('Being Invoked.') # * 表示参数为 元组 def fun1(*args): # 相当于 def fun1(1,2,3) ==> args 就相当于(1,2,3) for a in args: print(a) # ** 表示参数为 字典 def fun2(**args): # 相当于 def fun2({a:1,b:2,c:3}) ==>args 就相当于{a:1,b:2,c:3} for k, v in args: print(k, ":", v) # Python3 的六个标准数据类型 def...
19.451613
74
0.543118
195
1,206
3.230769
0.405128
0.066667
0.02381
0.012698
0.07619
0.019048
0
0
0
0
0
0.07545
0.263682
1,206
61
75
19.770492
0.634009
0.20398
0
0.057143
0
0
0.127637
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42f979541235624972aa7beb6b4040036e613c33
951
py
Python
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
scrapystsytem/spiders/doubanmoviespider.py
mezhou887/ScrapySystem2017
888ac42bba36b541845244596db1644e332bf291
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from scrapystsytem.misc.commonspider import CommonSpider from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor as sle logger = logging.getLogger(__name__) class DoubanMovieSpider(CommonSpider): name = "doubanmovie" allowed_domains = ["douban...
31.7
89
0.648791
110
951
5.418182
0.581818
0.060403
0.050336
0
0
0
0
0
0
0
0
0.006614
0.205047
951
30
90
31.7
0.781746
0.022082
0
0
0
0
0.261572
0.024758
0
0
0
0
0
1
0.041667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42fe26b4d9e2cf96a145d2ebd3a33d07d37ab54e
2,476
py
Python
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
1
2021-12-01T17:43:38.000Z
2021-12-01T17:43:38.000Z
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
09/09b.py
thejoeejoee/aoc-2021
1ae7650aea42b5fbb60e891687cf7bc84c81bd66
[ "MIT" ]
null
null
null
#!/bin/env python3 import operator from _operator import attrgetter, itemgetter from collections import defaultdict, Counter from functools import reduce, partial from itertools import chain from aocd import get_data EMPTY = type('EMPTY', (int,), dict(__repr__=(f := lambda s: 'EMPTY'), __str__=f))(10) def windowed(...
26.340426
91
0.560582
330
2,476
4.090909
0.363636
0.017778
0.023704
0.014815
0.056296
0
0
0
0
0
0
0.013618
0.317851
2,476
93
92
26.623656
0.785672
0.061389
0
0.061538
0
0
0.007759
0
0
0
0
0
0
1
0.076923
false
0
0.092308
0.015385
0.2
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42ff0390633d326bb027aa10d5b16efa20802940
1,343
py
Python
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
null
null
null
tests/test_window.py
yogeshkumarpilli/detectron2
f4f276dc8239b2c5a1bbbf6ed234acd25c75a522
[ "Apache-2.0" ]
3
2021-12-17T04:28:02.000Z
2022-02-22T18:18:03.000Z
from detectron2.engine import DefaultPredictor from detectron2.data import MetadataCatalog from detectron2.config import get_cfg from detectron2.utils.visualizer import ColorMode, Visualizer from detectron2 import model_zoo import cv2 import numpy as np import requests # Load an image res = requests.get("h...
37.305556
191
0.737156
181
1,343
5.320442
0.546961
0.07269
0.022845
0.037383
0
0
0
0
0
0
0
0.053136
0.145197
1,343
36
192
37.305556
0.785714
0.050633
0
0
0
0.035714
0.193522
0.035628
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
42ff644535c1107deafd0fab424dd9161db0897b
9,920
py
Python
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
28
2020-11-05T16:04:51.000Z
2021-02-16T22:58:10.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
43
2020-11-06T19:21:39.000Z
2021-02-25T19:04:42.000Z
hydra/cli.py
albertoa/hydra
8161e75829e4e76cb91ce516bbf03c258a87ce9e
[ "Apache-2.0" ]
4
2020-11-06T08:54:57.000Z
2021-01-18T03:26:00.000Z
import os import yaml import json import click import hydra.utils.constants as const from hydra.utils.git import check_repo from hydra.utils.utils import dict_to_string, inflate_options from hydra.cloud.local_platform import LocalPlatform from hydra.cloud.fast_local_platform import FastLocalPlatform from hydra.cloud.go...
44.684685
200
0.674698
1,328
9,920
4.745482
0.13253
0.082513
0.04443
0.049508
0.544906
0.501269
0.471279
0.445255
0.43034
0.391622
0
0.001327
0.240323
9,920
221
201
44.886878
0.834926
0.025
0
0.209302
0
0
0.15668
0.016351
0
0
0
0
0
1
0.011628
false
0.046512
0.069767
0
0.087209
0.017442
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e0596f60ea2aacca4a2e542940c06bbc4f394b7
25,458
py
Python
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
utils/dataset_utils.py
Daipuwei/YOLO-tf2
1b2e7133c99507573f419c8a367a8dba4abeae5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/9/18 下午11:23 # @Author : DaiPuWei # @Email : 771830171@qq.com # @File : dataset_utils.py # @Software: PyCharm """ 这是YOLO模型数据集 """ import cv2 import numpy as np from PIL import Image from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from utils.model_utils import...
39.902821
112
0.439351
2,953
25,458
3.60955
0.122249
0.021109
0.006567
0.014448
0.453138
0.406136
0.366545
0.331363
0.302749
0.289145
0
0.049403
0.371867
25,458
638
113
39.902821
0.61716
0.168081
0
0.391198
0
0
0.009059
0
0
0
0
0
0.002445
1
0.026895
false
0
0.01467
0.002445
0.06846
0.002445
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e080db2602e0c90c09249fc8d6eeaeabeabd005
750
py
Python
caesar_cipher.py
DomirScire/Basic_Ciphers
7425b306f8d0ce9ceb5ba3a59e73a52892bee5ca
[ "MIT" ]
1
2021-03-31T23:29:00.000Z
2021-03-31T23:29:00.000Z
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
caesar_cipher.py
DomirScire/Ciphers_Py
127c82b14c9bd5595f924bc267b6bf238f654c22
[ "MIT" ]
null
null
null
import string def caesar_cipher(text, shift, decrypt=False): if not text.isascii() or not text.isalpha(): raise ValueError("Text must be ASCII and contain no numbers.") lowercase = string.ascii_lowercase uppercase = string.ascii_uppercase result = "" if decrypt: shift = shift * -1...
27.777778
70
0.630667
84
750
5.47619
0.5
0.078261
0.065217
0
0
0
0
0
0
0
0
0.016275
0.262667
750
26
71
28.846154
0.815552
0
0
0
0
0
0.128
0.061333
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e0977041deef6fa7bf74e2fadd3b0a89bcf73e3
6,953
py
Python
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
1
2018-02-18T15:51:57.000Z
2018-02-18T15:51:57.000Z
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
hume/hume/app.py
megacorpincorporated/HOME
0eb8009b028fabf64abb03acc0a081b2b8207eb0
[ "MIT" ]
null
null
null
import json import logging from app.abc import StartError from app.device import DeviceApp, DeviceMessage from app.device.models import Device from app.hint import HintApp from app.hint.defs import HintMessage from util.storage import DataStore LOGGER = logging.getLogger(__name__) class Hume: def __init__(self...
38.414365
78
0.576154
790
6,953
4.93038
0.23038
0.04878
0.050064
0.021823
0.278049
0.167394
0.154557
0.102696
0.086264
0.086264
0
0.002182
0.341004
6,953
180
79
38.627778
0.847883
0.129009
0
0.155738
0
0
0.163348
0
0
0
0
0
0
1
0.04918
false
0
0.065574
0
0.122951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e0c62be30176a8297c1bf84eb84e82bffd0d9ee
3,281
py
Python
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
scripts/generate_demo_requests.py
onedata/onezone-gui-plugin-ecrin
2bf38b0994d1c0bf8148b1b8c5990bcf0aa4a62b
[ "MIT" ]
null
null
null
# # Author: Michał Borzęcki # # This script creates empty files with study and data object metadata in # specified space and Oneprovider. It uses JSON files located in directories # `studies_dir` (= studies) and `data_object_dir` (= data_objects). Positional # arguments: # 1. Oneprovider location (IP address or domain...
33.824742
102
0.643401
431
3,281
4.786543
0.357309
0.042656
0.032962
0.014542
0.329132
0.245274
0.245274
0.245274
0.228793
0.197286
0
0.020698
0.204816
3,281
96
103
34.177083
0.770027
0.255105
0
0.338235
0
0
0.198102
0.066859
0
0
0
0
0
1
0
false
0
0.073529
0
0.073529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e0cbccdccc4307ec0cd8efe2c3cb65f9c612951
1,925
py
Python
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
backend/routes/user.py
mradzikowski/flask-trackerproductivity
029103b80e21b6c64801816fe8dc27585317cb02
[ "MIT" ]
null
null
null
from flask import jsonify, request import backend.services.user as user_services from . import bp @bp.route('/user', methods=['POST', 'GET']) def create_user(): if request.method == "POST": data_json = request.json body, status = user_services.create_user(data_json) elif request.method == "G...
27.112676
81
0.628052
250
1,925
4.664
0.196
0.154374
0.096055
0.150943
0.531732
0.504288
0.480274
0.403087
0.403087
0.389365
0
0.01222
0.234805
1,925
70
82
27.5
0.779362
0
0
0.403846
0
0
0.089964
0.015081
0
0
0
0
0
1
0.096154
false
0
0.057692
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e0db8ed1374b74b17dc4c64dad644332a33ce07
7,205
py
Python
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
src/modu/editable/datatypes/date.py
philchristensen/modu
795f3bc413956b98522ac514dafe35cbab0d57a3
[ "MIT" ]
null
null
null
# modu # Copyright (c) 2006-2010 Phil Christensen # http://modu.bubblehouse.org # # # See LICENSE for details """ Datatypes for managing stringlike data. """ import time, datetime from zope.interface import implements from modu.editable import IDatatype, define from modu.util import form, tags, date from modu.persi...
28.82
106
0.658015
988
7,205
4.673077
0.194332
0.047
0.02924
0.040936
0.455491
0.390513
0.34178
0.292831
0.261209
0.214425
0
0.0042
0.173907
7,205
249
107
28.935743
0.771505
0.084663
0
0.346369
0
0
0.17821
0.038308
0
0
0
0
0
1
0.03352
false
0
0.03352
0
0.178771
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e11fb05adb494991b86d4b22a22f936a7c8a876
1,908
py
Python
cactusbot/commands/magic/alias.py
CactusBot/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
23
2016-02-16T05:09:11.000Z
2016-09-20T14:22:51.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
190
2016-09-30T05:31:59.000Z
2018-12-22T08:46:49.000Z
cactusbot/commands/magic/alias.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
16
2016-10-09T16:51:48.000Z
2017-10-25T05:29:10.000Z
"""Alias command.""" from . import Command from ...packets import MessagePacket class Alias(Command): """Alias command.""" COMMAND = "alias" @Command.command(role="moderator") async def add(self, alias: "?command", command: "?command", *_: False, raw: "packet"): """Add a n...
32.338983
78
0.545597
191
1,908
5.387435
0.319372
0.116618
0.073858
0.061224
0.2138
0.137998
0
0
0
0
0
0.013544
0.303459
1,908
58
79
32.896552
0.760722
0.015199
0
0.15
0
0
0.162934
0
0
0
0
0
0
1
0
false
0
0.05
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e13a8102a55ae649fda3dcfedbae946ebff32c0
2,828
py
Python
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
explorer/util.py
brianhouse/rlab
4d878abd2299fd340a645ebd8b92a68c2b48f41e
[ "MIT" ]
null
null
null
import numpy as np def combine(signal_x, signal_y): return np.stack((signal_x, signal_y), axis=-1) def normalize(signal, minimum=None, maximum=None): """Normalize a signal to the range 0, 1. Uses the minimum and maximum observed in the data unless explicitly passed.""" signal = np.array(signal).astype('fl...
40.985507
132
0.597242
391
2,828
4.232737
0.340153
0.043505
0.042296
0.03142
0.101511
0.09426
0.09426
0.09426
0.049547
0
0
0.014141
0.299859
2,828
69
133
40.985507
0.821717
0.220297
0
0.142857
0
0
0.008353
0
0
0
0
0
0.017857
1
0.089286
false
0
0.017857
0.017857
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e14c71363bc33135f20b63aec47306b9531737a
2,839
py
Python
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
17
2022-03-06T05:06:14.000Z
2022-03-31T00:25:06.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
6
2022-03-27T18:18:40.000Z
2022-03-31T17:35:34.000Z
dooly/converters/kobart_utils.py
jinmang2/DOOLY
961c7b43b06dffa98dc8a39e72e417502e89470c
[ "Apache-2.0" ]
1
2022-03-31T13:07:41.000Z
2022-03-31T13:07:41.000Z
import os import sys import hashlib import importlib def is_available_boto3(): return importlib.util.find_spec("boto3") if is_available_boto3(): import boto3 from botocore import UNSIGNED from botocore.client import Config else: raise ModuleNotFoundError("Please install boto3 with: `pip install ...
31.898876
80
0.610426
352
2,839
4.71875
0.34375
0.062613
0.036123
0.042143
0.145695
0.124022
0.124022
0.124022
0.124022
0.077062
0
0.015429
0.269461
2,839
88
81
32.261364
0.784957
0.010215
0
0.082192
0
0
0.074786
0
0
0
0
0
0.013699
1
0.082192
false
0
0.109589
0.013699
0.273973
0.027397
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e15e9506e9a75c167124e23e066dc0069217190
1,565
py
Python
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
9
2020-06-17T17:33:05.000Z
2022-03-30T17:32:05.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
28
2020-06-16T18:32:08.000Z
2020-11-12T17:51:20.000Z
tests/uv/util/test_env.py
hartikainen/uv-metrics
7b47b8ce1dff5fc41cdd540f816ea41a0cd27c21
[ "ECL-2.0", "Apache-2.0" ]
4
2020-08-07T20:05:49.000Z
2021-10-21T01:43:00.000Z
#!/usr/bin/python # # Copyright 2020 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 ag...
29.528302
78
0.705431
235
1,565
4.587234
0.548936
0.055659
0.055659
0.029685
0.064935
0.064935
0
0
0
0
0
0.006245
0.18147
1,565
52
79
30.096154
0.835285
0.513099
0
0
0
0
0.253711
0.041835
0
0
0
0
0.210526
1
0.105263
false
0
0.105263
0.052632
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e1651dd40e1ae6c43644b4a77456f4eb701c53a
1,054
py
Python
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
models/fleet.py
gnydick/qairon
e67af1f88ac6c614ae33adc4f42ab2ec3cc5b257
[ "MIT" ]
null
null
null
from sqlalchemy import * from sqlalchemy.orm import relationship from db import db class Fleet(db.Model): __tablename__ = "fleet" id = Column(String, primary_key=True) deployment_target_id = Column(String, ForeignKey('deployment_target.id')) fleet_type_id = Column(String, ForeignKey('fleet_type.id'))...
30.114286
89
0.736243
129
1,054
5.682171
0.387597
0.081855
0.076398
0.065484
0.076398
0.076398
0
0
0
0
0
0.003319
0.142315
1,054
34
90
31
0.807522
0
0
0
0
0
0.133776
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0.043478
0.826087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e1773f3e2177f91fdf46e022af55af83edbbcb5
1,568
py
Python
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
26
2019-02-04T04:55:09.000Z
2021-09-22T14:58:46.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
2
2019-05-07T16:33:09.000Z
2021-02-13T18:25:35.000Z
logs/followup_email.py
vreyespue/Movie_Bot
192c74be62afcfda77a0984ff4da3014226c3432
[ "Apache-2.0" ]
27
2018-12-10T12:13:50.000Z
2020-10-11T17:43:22.000Z
################################################################### ######## Follow up email ############# ################################################################### """ followup_email.py This is special use case code written to assist bot developers. It consolidates to...
26.133333
122
0.646684
201
1,568
5.00995
0.557214
0.044687
0.051639
0
0
0
0
0
0
0
0
0.001497
0.147959
1,568
60
123
26.133333
0.752246
0.169643
0
0
0
0.028571
0.284192
0
0
0
0
0
0
1
0
false
0
0.228571
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e1b6e602b092d059fb5b4b96bb130aa002770f4
1,213
py
Python
wiwo/sender.py
CoreSecurity/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
76
2015-08-01T23:24:43.000Z
2018-07-02T11:13:16.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
1
2016-01-28T22:11:17.000Z
2016-02-03T22:14:46.000Z
wiwo/sender.py
6e726d/wiwo
44bd44b8ebea7e33105a7f4dac6480493cbb9623
[ "Apache-1.1" ]
27
2015-08-11T07:24:42.000Z
2018-10-05T11:09:54.000Z
#!/usr/bin/env python # -*- coding: iso-8859-15 -*- # # Copyright 2003-2015 CORE Security Technologies # # 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/LIC...
28.880952
74
0.678483
164
1,213
4.95122
0.664634
0.073892
0.03202
0.039409
0
0
0
0
0
0
0
0.029979
0.230008
1,213
41
75
29.585366
0.8394
0.587799
0
0
0
0
0.008772
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e201007363380e4d643bfc71a7961525d34bdc2
4,073
py
Python
email_scrapper/readers/gmail_reader.py
datmellow/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
2
2018-01-07T23:12:28.000Z
2018-01-10T00:58:17.000Z
email_scrapper/readers/gmail_reader.py
LucasCoderT/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
null
null
null
email_scrapper/readers/gmail_reader.py
LucasCoderT/email-scrapper
614e99a4b33f3a0d3d85d5eb9c359818991673a6
[ "MIT" ]
1
2019-12-09T17:01:08.000Z
2019-12-09T17:01:08.000Z
import base64 import datetime import email import logging import os import typing from email.message import Message from googleapiclient import errors from email_scrapper.models import Stores from email_scrapper.readers.base_reader import BaseReader logger = logging.getLogger(__name__) class GmailReader(BaseReader...
41.141414
117
0.615762
456
4,073
5.302632
0.335526
0.01737
0.016543
0.029777
0.163772
0.150538
0.126551
0.096774
0.096774
0.096774
0
0.002758
0.287749
4,073
98
118
41.561224
0.830748
0.076848
0
0.089552
0
0
0.088211
0.019786
0
0
0
0
0
1
0.089552
false
0
0.208955
0.029851
0.38806
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2255b8f77a18ad6776515831039d97cfa15e3a
748
py
Python
Advanced_algorithm/oj_test/test04.py
mndream/MyOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
1
2018-12-27T08:06:38.000Z
2018-12-27T08:06:38.000Z
Advanced_algorithm/oj_test/test04.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
Advanced_algorithm/oj_test/test04.py
mndream/MyPythonOJ
ee92fb657475d998e6c201f222cb20bcbc2bfd64
[ "Apache-2.0" ]
null
null
null
''' A+B for Input-Output Practice (IV) 描述 Your task is to Calculate the sum of some integers. 输入 Input contains multiple test cases. Each test case contains a integer N, and then N integers follow in the same line. A test case starting with 0 terminates the input and this test case is not to be processed. 输出 For each g...
24.933333
91
0.669786
142
748
3.507042
0.528169
0.048193
0.012048
0.016064
0.02008
0
0
0
0
0
0
0.037037
0.241979
748
30
92
24.933333
0.84127
0.705882
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e22c62fbf96771a37ae5b157b23776e81cda2c5
2,421
py
Python
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
4
2022-03-06T17:57:24.000Z
2022-03-24T04:26:32.000Z
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
null
null
null
pre-processing/obtain_audio_spectrogram.py
GeWu-Lab/OGM-GE_CVPR2022
08b3f2498dd3e89f57fe9a12b5bf0c162eba1fbf
[ "MIT" ]
1
2022-03-31T08:12:15.000Z
2022-03-31T08:12:15.000Z
import multiprocessing import os import os.path import pickle import librosa import numpy as np from scipy import signal def audio_extract(path, audio_name, audio_path, sr=16000): save_path = path samples, samplerate = librosa.load(audio_path) resamples = np.tile(samples, 10)[:160000] resamples[resam...
28.482353
106
0.646014
312
2,421
4.807692
0.391026
0.036
0.043333
0.034
0.098667
0.070667
0.04
0
0
0
0
0.020868
0.247831
2,421
84
107
28.821429
0.802856
0.072284
0
0.033333
0
0
0.056747
0.035299
0
0
0
0
0.016667
1
0.05
false
0
0.116667
0
0.183333
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
0
0
0
0
0
1
0
6e237945177ee47426cc1fcc873291dbba403f32
3,317
py
Python
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
src/protean/core/event_handler.py
mpsiva89/protean
315fa56da3f64178bbbf0edf1995af46d5eb3da7
[ "BSD-3-Clause" ]
null
null
null
import inspect import logging from protean.container import Element, OptionsMixin from protean.core.event import BaseEvent from protean.exceptions import IncorrectUsageError from protean.utils import DomainObjects, derive_element_class, fully_qualified_name from protean.utils.mixins import HandlerMixin logger = loggi...
36.855556
114
0.619234
363
3,317
5.38292
0.319559
0.06653
0.053736
0.052201
0.136643
0.085977
0
0
0
0
0
0.001306
0.307507
3,317
89
115
37.269663
0.849369
0.177872
0
0.032787
0
0
0.082288
0.008856
0
0
0
0
0
1
0.04918
false
0
0.114754
0
0.262295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e246664f07a32e8eef7dfd24b7f3cda19fa9734
7,508
py
Python
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
read_prepare_data.py
jlu-ilr-hydro/IPCC-Repots-Focus-Overview
bf631975eb6c3ea2cf2f8fe9382e3361ad700a6e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 17 10:12:26 2021 @author: Florian Jehn """ import os import pandas as pd import numpy as np def read_ipcc_counts_temp(): """reads all counts of temperatures for all reports and makes on df""" files = os.listdir(os.getcwd()+os.sep+"Results"+ os.sep + "temperature...
48.128205
300
0.683404
1,187
7,508
4.002527
0.20219
0.088402
0.027784
0.055567
0.419491
0.320354
0.211534
0.175752
0.112608
0.099137
0
0.03261
0.183138
7,508
155
301
48.43871
0.737323
0.13439
0
0.110092
0
0
0.41668
0.297962
0
0
0
0
0
1
0.091743
false
0
0.027523
0
0.201835
0.009174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2666a6e406e4ebd7fe6e6904bdb4696b8d2f47
404
py
Python
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
has33.py
CombatPompano81/Python-Snippets-Galore
c2fb9c6ebef0477895749db9f2aa0f87132a72d6
[ "Apache-2.0" ]
null
null
null
# main function def has33(nums): # iterates through the list and tries to find two 3s next to each other for i in range(0, len(nums) - 1): # if indice i has a 3 and the indice next to it has a 3, print true if nums[i] == 3 and nums[i + 1] == 3: return print('True') return prin...
22.444444
75
0.569307
76
404
3.026316
0.460526
0.043478
0.043478
0
0
0
0
0
0
0
0
0.108014
0.289604
404
17
76
23.764706
0.69338
0.368812
0
0
0
0
0.035857
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2726ca9cbe233a3e8bac00017eecef8153cd91
17,692
py
Python
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
4
2017-10-10T14:47:16.000Z
2022-01-14T05:57:50.000Z
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
1
2022-01-11T21:11:12.000Z
2022-01-12T08:22:34.000Z
survos2/frontend/plugins/objects.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
2
2018-03-06T06:31:29.000Z
2019-03-04T03:33:18.000Z
from survos2.config import Config import numpy as np from numpy.lib.function_base import flip from qtpy import QtWidgets from qtpy.QtWidgets import QPushButton, QRadioButton from survos2.frontend.components.base import * from survos2.frontend.components.entity import ( SmallVolWidget, TableWidget, setup_en...
37.562633
111
0.603154
1,938
17,692
5.312694
0.155831
0.024476
0.017677
0.013986
0.395105
0.299242
0.246989
0.225622
0.18075
0.174145
0
0.010387
0.287135
17,692
470
112
37.642553
0.805978
0.009552
0
0.239583
0
0
0.091179
0.007422
0
0
0
0
0
1
0.052083
false
0
0.049479
0
0.127604
0.018229
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e28319339ecb10a654afec47c04531f1e4fc2e5
5,459
py
Python
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
6
2020-11-24T15:55:35.000Z
2021-12-31T11:52:56.000Z
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-24T15:46:15.000Z
2020-11-24T15:46:15.000Z
tests/benchmark/preprocess_img/preproc.py
mpascucci/AST-image-processing
54111e874237f0c146760d514eea96131177878a
[ "ECL-2.0", "Apache-2.0" ]
3
2021-02-04T10:08:43.000Z
2022-02-21T02:00:47.000Z
from tqdm import tqdm import os import glob import pickle import numpy as np from imageio import imread, imwrite import astimp from multiprocessing import Pool, cpu_count from functools import partial class ErrorInPreproc(Exception): pass class Dataset(): """Datasets consisting of several files in a given in...
31.923977
98
0.596263
703
5,459
4.499289
0.257468
0.02466
0.022763
0.017072
0.067341
0.036674
0.018337
0.018337
0.018337
0.018337
0
0.00283
0.287965
5,459
170
99
32.111765
0.810908
0.14325
0
0.078261
0
0
0.073446
0
0
0
0
0
0.008696
1
0.069565
false
0.008696
0.078261
0.008696
0.234783
0.008696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e28b70b57732d2994e0b212e99122e11d61d96f
1,024
py
Python
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
src/main.py
Evelkos/PAM-and-CLARA
26fbb8d2d4a7924ce1d0d504c4b23bac38238c69
[ "MIT" ]
null
null
null
from clustering_algorithms import CLARA, PAM, get_initial_points from data_loaders import load_data from timer import Timer from visualizers import plot_data # FILENAME = "datasets/artificial/sizes3.arff" FILENAME = "datasets/artificial/zelnik4.arff" # FILENAME = "datasets/artificial/xclara.arff" # FILENAME = "dataset...
30.117647
88
0.709961
133
1,024
5.233083
0.323308
0.094828
0.112069
0.086207
0.106322
0.106322
0.106322
0
0
0
0
0.002296
0.149414
1,024
33
89
31.030303
0.796785
0.22168
0
0
0
0
0.154235
0.040455
0
0
0
0
0
1
0.1
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
0
0
0
0
0
0
0
0
0
0
1
0
6e2a9766e0a79f77304a55be682d4bc167bde209
4,459
py
Python
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
src/utils.py
zimonitrome/AbstractionNet
a037b696ccac015936d60026cb1ac4ebafc68371
[ "MIT" ]
null
null
null
import torch from einops import rearrange import svgwrite ########################################### # Normalization / Standardization functions ########################################### def normalize_functional(tensor: torch.Tensor, mean: list, std: list): """ Standardizes tensor in the channel dimension...
36.54918
113
0.589146
637
4,459
3.99529
0.241758
0.016503
0.016503
0.00943
0.267584
0.262868
0.179961
0.179961
0.140668
0.121022
0
0.019009
0.22135
4,459
122
114
36.54918
0.713998
0.389549
0
0.095238
0
0
0.032188
0
0
0
0
0.008197
0
1
0.190476
false
0
0.071429
0
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2c7487821c1b466bfeb152a868353bd01ba3f7
3,742
py
Python
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
CellMQ.py
edjuaro/cell-migration-quantification
b6479cc8525a1ac8bdaf0abfc66dec57de0be21e
[ "MIT" ]
null
null
null
import cv2 import numpy as np from skimage import draw from skimage import io # Read image im_in = cv2.imread("analyses/MDA231_stopper_1_c3.tif", cv2.IMREAD_GRAYSCALE); # Threshold. # Set values equal to or above 220 to 0. # Set values below 220 to 255. th, im_th = cv2.threshold(im_in, 20, 255, cv2.THRESH_BINARY_...
27.925373
120
0.69829
601
3,742
4.231281
0.264559
0.034605
0.056233
0.060165
0.395596
0.289422
0.204876
0.127802
0.070783
0.070783
0
0.046671
0.141101
3,742
134
121
27.925373
0.744555
0.70791
0
0
0
0
0.056352
0.032787
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2d9335521cea1ce24ba509b262882641d75542
1,344
py
Python
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
test/unit/messages/bloxroute/test_txs_message.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from bxcommon.test_utils.abstract_test_case import AbstractTestCase from bxcommon.messages.bloxroute.txs_message import TxsMessage from bxcommon.models.transaction_info import TransactionInfo from bxcommon.test_utils import helpers from bxcommon.utils.object_hash import Sha256Hash class TxsMessageTests(AbstractTestCa...
38.4
110
0.738095
164
1,344
5.780488
0.317073
0.088608
0.151899
0.126582
0.369198
0.341772
0.237342
0.237342
0.237342
0
0
0.032316
0.171131
1,344
34
111
39.529412
0.818671
0
0
0
0
0
0
0
0
0
0
0
0.26087
1
0.043478
false
0
0.217391
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e2fe086028f0377c018ceee95df734b7ae1f811
986
py
Python
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
1
2021-01-16T20:39:41.000Z
2021-01-16T20:39:41.000Z
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
null
null
null
BLAST/make_fasta.py
cdiaza/bootcamp
2fda661a44930f70ac8ef15218cc99d099fc4019
[ "MIT" ]
1
2021-01-16T20:31:17.000Z
2021-01-16T20:31:17.000Z
import random def format_fasta(title, sequence): """ This formats a fasta sequence Input: title - String - Title of the sequence sequence - String - Actual sequence Output: String - Fully formatted fasta sequence """ fasta_width = 70 # Number of characters in one line n...
29.878788
81
0.631846
134
986
4.567164
0.447761
0.065359
0.052288
0.078431
0
0
0
0
0
0
0
0.01238
0.262677
986
32
82
30.8125
0.829436
0.337728
0
0
0
0
0.119281
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e330bec332cbcb5e47190df3547281fe5168a28
903
py
Python
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
87
2021-04-14T09:51:30.000Z
2022-03-24T10:38:41.000Z
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
3
2021-06-27T18:06:11.000Z
2022-03-24T19:56:38.000Z
tests/test_echo_server_contextvar.py
rednafi/think-async
3642afc0d8661b10affd953ce3b239f3e6b3009b
[ "MIT" ]
4
2021-05-12T01:36:14.000Z
2022-01-28T04:06:12.000Z
from unittest.mock import Mock, patch import pytest import patterns.echo_server_contextvar as main @patch.object(main, "client_addr_var", Mock()) def test_render_goodbye(capsys): # Call 'render_goodbye' goodbye_string = main.render_goodbye() print(goodbye_string) # Assert. out, err = capsys.re...
25.8
77
0.743079
123
903
5.170732
0.430894
0.069182
0.084906
0.132075
0.125786
0.125786
0
0
0
0
0
0.014342
0.150609
903
34
78
26.558824
0.814863
0.059801
0
0
0
0
0.164692
0.114929
0
0
0
0
0.210526
1
0.052632
false
0
0.157895
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e3355f7d36e6d39cee7c23d5acd90666f7629a8
693
py
Python
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
1
2017-09-15T13:27:09.000Z
2017-09-15T14:43:28.000Z
test.py
riquedev/SSLProxies24Feed
93ab23a6794ae7f40002eb464a9c443afe44db86
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Autor: rique_dev (rique_dev@hotmail.com) from SSLProxies24.Feed import Feed from SSLProxies24.Check import CheckProxy import time import gc # Recupera a listagem prx = Feed().PROXY_LIST # Inicia classe chk = CheckProxy() # Começa validação chk.validatelist(prx) # At...
19.25
84
0.730159
93
693
5.408602
0.602151
0.047714
0.075547
0
0
0
0
0
0
0
0
0.012987
0.111111
693
36
85
19.25
0.803571
0.249639
0
0
0
0
0.119141
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e33da3d320ddccf5c2863568bc4b5fb0505e125
577
py
Python
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
euler.py
user3719431/tna_lab1
183c34d927c39f502fea7d6a81f2945104d7b75b
[ "MIT" ]
null
null
null
import math as m def yakobi(a, n, k): if a < 0: k *= pow(-1, (n - 1) // 2) yakobi(-a, n, k) if a % 2 == 0: k *= (-1) ** ((pow(n, 2) - 1) / 8) yakobi(a / 2, n, k) if a == 1: return k if a < n: k *= pow(-1, ((n - 1)(a - 1)) / 4) yakobi(n % a, a, k) ...
24.041667
60
0.363951
99
577
2.111111
0.262626
0.038278
0.076555
0.07177
0.492823
0.425837
0.239234
0.239234
0.239234
0
0
0.067278
0.433276
577
24
61
24.041667
0.571865
0
0
0.1
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.05
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e34180a8de5ed1a630ffd86a9a830130bbd1076
3,787
py
Python
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
src/b2d/hud_b2d.py
VgTajdd/neuroevolver
248c96b25ad936e15cfffc7a4223926db83ad540
[ "MIT" ]
null
null
null
## ========================================================================= ## ## Copyright (c) 2019 Agustin Durand Diaz. ## ## This code is licensed under the MIT license. ## ## hud_b2d.py ...
44.034884
108
0.520201
393
3,787
4.880407
0.24173
0.067779
0.045881
0.079249
0.658498
0.647028
0.577164
0.553702
0.553702
0.553702
0
0.066743
0.311592
3,787
86
109
44.034884
0.668968
0.098495
0
0.528571
0
0
0.064087
0
0
0
0
0
0
1
0.142857
false
0
0.057143
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e358277ee18f33ce73fddfacb850dc985cb0977
1,958
py
Python
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
grblc/search/gcn/parser/combine.py
youngsm/adsgrb
a89b56b371888deb67788a9f5a91300b281784a6
[ "MIT" ]
null
null
null
def get_final_txt(grb, tables, sentences, output_path): """ Combine the data from [grb]_final_sentences.txt and [grb]_final_tables.txt. If a piece of data in tables and another piece in sentecnes are originially from the same GCN. Put them in the same GCN in [grb]_final.txt. """ # Avoid modifyi...
36.943396
88
0.550051
262
1,958
4.026718
0.278626
0.018957
0.056872
0.03981
0.267299
0.214218
0.045498
0
0
0
0
0.002135
0.282431
1,958
52
89
37.653846
0.748754
0.353422
0
0.173913
0
0
0.283049
0.188159
0.043478
0
0
0
0
1
0.043478
false
0
0
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e35f3a7bd64997a4e302cd1d8e7454d8298b774
972
py
Python
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/headband.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
from solid import * from solid.utils import * import util from util import * from math import pi def headband(r1=64.0, r2=85.0, t=3.0, w=12.0): combe = right(r1-t/2)(linear_extrude(1)(square([1,1], center=True) + left(0.5)(circle(d=1)))) combe_spacing = 3.0 # mm combe_count = pi*r1/combe_spacing c...
31.354839
123
0.588477
152
972
3.618421
0.421053
0.072727
0.047273
0.050909
0.141818
0.141818
0.141818
0.141818
0.141818
0.141818
0
0.07537
0.235597
972
30
124
32.4
0.664872
0.002058
0
0
0
0
0.016529
0
0
0
0
0
0
1
0.125
false
0
0.208333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e364089d40bdc8f90fe2c5aa5081ef11b937f59
3,482
py
Python
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
160
2015-02-25T15:56:37.000Z
2022-03-14T23:51:23.000Z
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
137
2015-12-18T17:39:31.000Z
2022-02-04T20:50:53.000Z
climlab/dynamics/meridional_advection_diffusion.py
nfeldl/climlab
2cabb49e2c3f54c1795f24338ef5ee44e49fc7e7
[ "BSD-3-Clause", "MIT" ]
54
2015-04-28T05:57:39.000Z
2022-02-17T08:15:11.000Z
r"""General solver of the 1D meridional advection-diffusion equation on the sphere: .. math:: \frac{\partial}{\partial t} \psi(\phi,t) &= -\frac{1}{a \cos\phi} \frac{\partial}{\partial \phi} \left[ \cos\phi ~ F(\phi,t) \right] \\ F &= U(\phi) \psi(\phi) -\frac{K(\phi)}{a} ~ \frac{\partial \psi}{\partial \phi}...
42.463415
143
0.661401
473
3,482
4.754757
0.365751
0.024011
0.040018
0.028012
0.169409
0.114718
0.114718
0.066696
0.066696
0
0
0.005117
0.214245
3,482
81
144
42.987654
0.816886
0.605112
0
0.352941
0
0
0.002234
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e397c403213c314186ad9c8dc4d66123671cfea
620
py
Python
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
Day14/main.py
dloibl/AOC2021
80672a7ee8ebc1a7970c155e4e15e0ed2351e085
[ "MIT" ]
null
null
null
data = open("input.txt", "r").readlines() polymer = data[0] pair_insertion = {} for line in data[2:]: [token, replacement] = line.strip().split(" -> ") pair_insertion[token] = replacement result = [i for i in polymer.strip()] for step in range(0, 10): next = [] for i, si in enumerate(result): ...
23.846154
63
0.596774
90
620
4.066667
0.477778
0.142077
0.065574
0
0
0
0
0
0
0
0
0.016985
0.240323
620
25
64
24.8
0.760085
0
0
0.111111
0
0
0.059677
0
0
0
0
0
0
1
0
false
0
0
0
0
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e399f9876b8a0c8affd85f404dc546dcab1961f
1,199
py
Python
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
raster/migrations/0006_auto_20141016_0522.py
bpneumann/django-raster
74daf9d396f2332a2cd83723b7330e6b10d73b1c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('raster', '0005_auto_20141014_0955'), ] operations = [ migrations.AddField( model_name='rastertile', ...
31.552632
236
0.539616
131
1,199
4.793893
0.419847
0.057325
0.121019
0.146497
0.457006
0.457006
0.39172
0.39172
0.324841
0.324841
0
0.084827
0.301918
1,199
37
237
32.405405
0.665472
0.017515
0
0.548387
0
0
0.07568
0.019558
0
0
0
0
0
1
0
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e3b1af1bee45ddc7a412b33a2fead806c9ec302
1,765
py
Python
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
djangorecipebook/templating.py
tkhyn/djangorecipebook
2cbb3d46631630e2c7a3c511b504de2088aac115
[ "MIT" ]
null
null
null
""" Carry out template-based replacements in project files """ import os import sys from string import Template def replace_name(path, mapping): """ Handles replacement strings in the file or directory name """ # look for replacement strings in filename f_split = list(os.path.spli...
25.214286
77
0.607932
224
1,765
4.691964
0.370536
0.028544
0.076118
0.041865
0.211227
0.159848
0.159848
0
0
0
0
0.002408
0.294051
1,765
69
78
25.57971
0.841091
0.204533
0
0
0
0
0.043444
0
0
0
0
0
0
1
0.102564
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e3c23f713b7a54ba361ed5b6913012fed253e5e
1,747
py
Python
toHash.py
ElTarget/-
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
1
2022-02-22T02:39:52.000Z
2022-02-22T02:39:52.000Z
toHash.py
ElTarget/-
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
1
2022-03-08T04:46:17.000Z
2022-03-08T04:46:17.000Z
toHash.py
ElTarget/get_malware_bazaar
fcf774386514a7f070be25d643be7bbf1a92af1e
[ "MIT" ]
null
null
null
import hashlib import os # 生成字符串的MD5值 def str2md5(content=None): if not content: return '' md5gen = hashlib.md5() md5gen.update(content.encode()) return md5gen.hexdigest() # 生成字符串的SHA256值 def str2sha256(content=None): if not content: return '' sha256gen = hashlib.sha256() ...
23.293333
46
0.567258
192
1,747
5.09375
0.25
0.110429
0.06953
0.07771
0.604294
0.522495
0.377301
0.377301
0.377301
0.205521
0
0.054514
0.327991
1,747
74
47
23.608108
0.778535
0.019462
0
0.534483
0
0
0.004684
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0
0.275862
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e3ec2b42c30f989802844d030b6a4725567d1ae
442
py
Python
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
4
2019-02-15T01:35:17.000Z
2020-07-08T17:47:33.000Z
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
1
2019-05-24T21:00:37.000Z
2019-05-24T21:00:37.000Z
config.py
benperove/oneliner.sh
0c6eb25f2dd32cdd5cc275ef5849b5e12c76e9db
[ "Apache-2.0" ]
1
2020-04-10T08:03:16.000Z
2020-04-10T08:03:16.000Z
import os #github login SITE = 'https://api.github.com' CALLBACK = 'https://oneliner.sh/oauth2' AUTHORIZE_URL = 'https://github.com/login/oauth/authorize' TOKEN_URL = 'https://github.com/login/oauth/access_token' SCOPE = 'user' #redis config REDIS_HOST = os.environ['REDIS_HOST'] #REDIS_HOST = ...
26
61
0.68552
59
442
4.966102
0.627119
0.09215
0.095563
0.116041
0.1843
0.1843
0
0
0
0
0
0.016484
0.176471
442
16
62
27.625
0.788462
0.115385
0
0
0
0
0.418605
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e4153ef83e21bf087ec6ed89dceeb002c6fc185
319
py
Python
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
27
2018-05-21T14:28:10.000Z
2021-12-31T03:12:35.000Z
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
1
2018-11-19T19:07:47.000Z
2018-11-19T19:07:47.000Z
examples/pybullet/examples/signedDistanceField.py
frk2/bullet3
225d823e4dc3f952c6c39920c3f87390383e0602
[ "Zlib" ]
13
2019-11-08T12:48:44.000Z
2022-01-04T04:13:33.000Z
import pybullet as p import pybullet import time p.connect(p.GUI) p.loadURDF("toys/concave_box.urdf") p.setGravity(0,0,-10) for i in range (10): p.loadURDF("sphere_1cm.urdf",[i*0.02,0,0.5]) p.loadURDF("duck_vhacd.urdf") timeStep = 1./240. p.setTimeStep(timeStep) while (1): p.stepSimulation() time.sleep(timeStep)
21.266667
45
0.727273
57
319
4.017544
0.561404
0.117904
0
0
0
0
0
0
0
0
0
0.0625
0.097179
319
15
46
21.266667
0.732639
0
0
0
0
0
0.159375
0.065625
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e415d21c97c8bf5b7c0199061ba4f235f80c0f3
2,472
py
Python
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
null
null
null
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
2
2021-10-04T08:22:40.000Z
2021-10-05T13:30:02.000Z
Old/TitleTable.py
StephanM87/Sofie-Herrmann-Praktikum
3fa7e715061e35aade8eb93756c30ebf10971059
[ "MIT" ]
null
null
null
from pylatex import Document, Tabular, Section, NoEscape, Command, MultiRow from Old.BioCatHubDatenmodell import DataModel first_name = "some firstname" last_name = "some lastname" e_mail = "some@adress.com" institution = "some institution" vessel_type = "some vessel" volume = int(42) vol_unit = "mol/l" add_attributes...
34.333333
76
0.552589
277
2,472
4.743682
0.33935
0.073059
0.059361
0.054795
0.275495
0.255708
0.097412
0
0
0
0
0.012995
0.315129
2,472
71
77
34.816901
0.762552
0
0
0.180328
0
0
0.114887
0
0
0
0
0
0
1
0.032787
false
0
0.032787
0
0.081967
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e41787cb64edb79c7312a9c056163a1f57400e3
535
py
Python
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
Lab2/la2_4.py
ThomCruz/ImageAnalysisLab
6a524696ecf4aab96336931d22ead8e8c9ec9e30
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib.pyplot as plt pic = cv2.imread('image2.png',0) #pic = imageio.imread('img/parrot.jpg') gray = lambda rgb : np.dot(rgb[... , :3] , [0.299 , 0.587, 0.114]) gray = gray(pic) ''' log transform -> s = c*log(1+r) So, we calculate constant c to estimate s -> c = (L-1)/log(1+|...
20.576923
67
0.637383
96
535
3.489583
0.541667
0.047761
0.035821
0
0
0
0
0
0
0
0
0.059603
0.153271
535
25
68
21.4
0.679912
0.071028
0
0
0
0
0.044156
0
0
0
0
0
0
1
0.083333
false
0
0.25
0.083333
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e45ae2f0c35533b4360de6c8858cfc005287327
4,100
py
Python
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
metafilter/model/__init__.py
exhuma/metafilter
dfbc01877a3020f7fe58b9fda3e14ed073684f25
[ "BSD-3-Clause" ]
null
null
null
from ConfigParser import SafeConfigParser from cStringIO import StringIO import sqlalchemy from sqlalchemy import create_engine from sqlalchemy import MetaData from sqlalchemy.orm import sessionmaker from os.path import sep from hashlib import md5 from datetime import datetime, timedelta import re import logging impo...
26.973684
83
0.621463
528
4,100
4.748106
0.354167
0.02513
0.025927
0.01436
0.033506
0.019146
0.019146
0.019146
0
0
0
0.008286
0.264146
4,100
151
84
27.152318
0.822672
0.135122
0
0.073395
0
0
0.115745
0
0
0
0
0
0
1
0.082569
false
0
0.155963
0
0.357798
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e46d398600e4b5a657c138522f24f0eef1938e9
3,067
py
Python
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T21:18:16.000Z
2020-03-13T16:45:57.000Z
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-02-28T12:42:52.000Z
2020-03-16T03:49:09.000Z
manager/base.py
monocleface/viewer
8ab47a9e846bd2716fe0208c34f33565513fc3f6
[ "Apache-2.0" ]
6
2020-03-05T13:04:25.000Z
2020-03-13T16:46:03.000Z
from pathlib import Path from typing import Union import yaml class Config(object): """Basic Config Class""" def __init__(self, cfg_yaml_path:str, root:str=".", data_path:str="./data"): r""" Configuration of Settings Args: root: root path of project, default="." ...
29.209524
103
0.538637
369
3,067
4.355014
0.330623
0.034848
0.034225
0.017424
0.092097
0.047293
0.047293
0.047293
0.047293
0
0
0.004557
0.356048
3,067
104
104
29.490385
0.793418
0.345615
0
0.093023
0
0
0.141081
0
0
0
0
0
0
1
0.162791
false
0
0.069767
0.023256
0.302326
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e486d2de9698c2208f5c29100b107e8de344209
307
py
Python
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
2
2021-07-22T23:26:54.000Z
2021-07-22T23:27:27.000Z
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
null
null
null
007 - Intro List Comprehension.py/016 - Maior.py
rodrigoviannini/meus_Primeiros_Codigos
828dec1c4ce06889efd491145e631c30a45e858f
[ "MIT" ]
null
null
null
""" List Comprehension Aninhada OBJ: Encontrar o maior ou os maiores números de uma lista e imprimir outra lista """ listaGenerica = [1, 2, 3, 4, 1, 2, 3, 4, 10, 10, 10, 5, 3, -4] listaMaior = [x for x in listaGenerica if not False in [True if x >= y else False for y in listaGenerica]] print(listaMaior)
30.7
106
0.693811
55
307
3.872727
0.636364
0.028169
0.028169
0.037559
0
0
0
0
0
0
0
0.069106
0.198697
307
10
107
30.7
0.796748
0.351792
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e487df26dabde97ea3f1c6bd9a631bd068d4b7f
357
py
Python
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
thehardway/practice3.py
sunquan9301/pythonLearn
f10760a4e32c3ac267e39d835c08f45800d081b6
[ "Apache-2.0" ]
null
null
null
def main(): # age = input("How old are you?") # print("I am %s year old" % age) file = open("demo1") lines = file.readlines() print("lines",lines) for i in range(len(lines)): print(lines[i]) file.close() c,d = addOne(1,2) print(c,d) def addOne(a,b): return a+1, b+1 i...
17
37
0.535014
56
357
3.267857
0.589286
0.10929
0
0
0
0
0
0
0
0
0
0.019531
0.282913
357
20
38
17.85
0.695313
0.176471
0
0
0
0
0.061856
0
0
0
0
0
0
1
0.153846
false
0
0
0.076923
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e4b454f9d9a661e964992d4f53efcc35fd88de8
651
py
Python
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
ipt/td1/3.3-nbracines.py
lucas8/MPSI
edefa2155071910d95633acf87b9f3a9d34f67d3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 def nbracines(a, b, c): if a == 0: print("Le coefficient dominant est nul, ce n'est pas un trinome !") return d = b*b - 4*a*c k = 2 if abs(d) < 1e-10: k = 1 d = 0 elif d < 0: k = 0 print("Le polynome " + str(a) + "X^2 + " + str(b) + "X ...
28.304348
140
0.537634
108
651
3.240741
0.435185
0.111429
0.137143
0.068571
0.165714
0
0
0
0
0
0
0.047312
0.285714
651
22
141
29.590909
0.705376
0.026114
0
0
0
0
0.375
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e52fb33dd28eee7b106bc48ba5c34f08261ca0b
2,309
py
Python
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
5
2020-07-20T11:05:07.000Z
2022-03-11T15:51:52.000Z
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
""" Main command line interface to the pynorare package. """ import sys import pathlib import contextlib from cldfcatalog import Config, Catalog from clldutils.clilib import register_subcommands, get_parser_and_subparsers, ParserError, PathType from clldutils.loglib import Logging from pyconcepticon import Concepticon...
32.985714
99
0.644435
285
2,309
5.105263
0.350877
0.049485
0.080412
0.030241
0.047423
0.034364
0
0
0
0
0
0.003499
0.257254
2,309
69
100
33.463768
0.844898
0.129926
0
0.203704
0
0
0.085384
0.014063
0
0
0
0
0
1
0.018519
false
0
0.166667
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6e53df58b8e50b1065505ed5b573aa01243270d1
12,263
py
Python
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
1
2021-02-28T15:22:43.000Z
2021-02-28T15:22:43.000Z
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
import os import cv2 import time import argparse import torch import warnings import numpy as np from detector import build_detector from deep_sort import build_tracker from utils.draw import draw_boxes from utils.parser import get_config from utils.log import get_logger from utils.io import write_results from numpy ...
42.432526
149
0.572698
1,567
12,263
4.30568
0.273133
0.0249
0.030236
0.014229
0.249444
0.24233
0.21165
0.17845
0.129835
0.110271
0
0.020654
0.297236
12,263
288
150
42.579861
0.762242
0.157466
0
0.181818
0
0
0.058271
0.005092
0
0
0
0
0.017045
1
0.0625
false
0
0.079545
0.005682
0.204545
0.017045
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
280906641aae735ca1d3dbc649fdb86d59c81472
1,172
py
Python
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
1
2021-09-11T03:28:45.000Z
2021-09-11T03:28:45.000Z
import numpy as onp import casadi as cas def array(object, dtype=None): try: a = onp.array(object, dtype=dtype) if a.dtype == "O": raise Exception return a except (AttributeError, Exception): # If this occurs, it needs to be a CasADi type. # First, determine the dim...
25.478261
89
0.529863
139
1,172
4.453237
0.446043
0.035541
0.051696
0
0
0
0
0
0
0
0
0.00561
0.391638
1,172
45
90
26.044444
0.862553
0.266212
0
0.129032
0
0
0.001209
0
0
0
0
0
0
1
0.096774
false
0
0.064516
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
280b7ce2e2cb3f65d56ba5e4705455b1cbb3bb0e
3,283
py
Python
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
""" Payin API """ from dataclasses import dataclass from typing import Union from api_payin_model import ( PayinAdjustPaymentRequest, PayinCancelRequest, PayinCancelResponse, PayinCaptureRequest, PayinCaptureResponse, PayinMandateRequest, PayinMandateResponse, PayinOrderDetailsRequest,...
32.186275
82
0.687786
276
3,283
8.155797
0.271739
0.053754
0.083074
0.074634
0.175922
0.086628
0.057308
0.057308
0
0
0
0
0.208955
3,283
101
83
32.504951
0.866769
0.114834
0
0
0
0
0.078576
0.014799
0
0
0
0
0
1
0.15493
false
0
0.070423
0
0.394366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
280c4e3ff6e2c8be5af4beb5882bf9b9cd5ee1c7
3,626
py
Python
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
1
2020-07-15T16:16:20.000Z
2020-07-15T16:16:20.000Z
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
null
null
null
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
1
2020-06-01T01:15:29.000Z
2020-06-01T01:15:29.000Z
#!/usr/bin/env python """ Copyright 2020 Zhao HG 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, ...
40.741573
99
0.660232
490
3,626
4.822449
0.344898
0.144308
0.066018
0.044012
0.274228
0.253491
0.243335
0.195514
0.195514
0.11934
0
0.00978
0.210425
3,626
88
100
41.204545
0.815578
0.294264
0
0.285714
0
0
0.386907
0.137593
0
0
0
0
0.017857
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
280cef3837d316af797287a2c5c707f3a00a10c1
3,676
py
Python
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request from twilio.twiml.voice_response import VoiceResponse, Gather import datetime import os import json import http.client app = Flask(__name__) allowUntil = datetime.datetime.now() # Fetch env vars whitelisted_numbers = os.environ['WHITELISTED_NUMBERS'].split(",") # Numbers allowed to d...
33.418182
121
0.639554
469
3,676
4.908316
0.360341
0.027368
0.045178
0.050391
0.148566
0.132059
0.108601
0.037359
0.037359
0
0
0.0074
0.227965
3,676
109
122
33.724771
0.803735
0.178727
0
0.171429
0
0
0.212152
0
0
0
0
0
0
1
0.085714
false
0
0.085714
0
0.285714
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2810be0978f433319136f58db93ce028bbbb9a9c
8,151
py
Python
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
30
2019-03-14T08:24:34.000Z
2022-03-09T06:05:44.000Z
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
78
2019-02-07T22:14:48.000Z
2022-03-09T05:59:18.000Z
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
11
2019-03-02T01:20:06.000Z
2022-03-25T07:25:46.000Z
from bert_hierarchy_extractor.datasets.train_dataset import TrainHierarchyExtractionDataset from bert_hierarchy_extractor.datasets.utils import cudafy from bert_hierarchy_extractor.logging.utils import log_metrics import numpy as np from torch.utils.data import DataLoader from transformers import AdamW, get_linear_sche...
39.567961
104
0.585818
909
8,151
5.036304
0.220022
0.024028
0.02097
0.017038
0.211228
0.133246
0.103102
0.103102
0.08519
0.08519
0
0.011881
0.328794
8,151
205
105
39.760976
0.824895
0.10514
0
0.164706
0
0
0.033114
0.002934
0
0
0
0.004878
0
1
0.023529
false
0
0.058824
0
0.1
0.076471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28137bb29b2acdc147558b677e97f5e615bea160
2,900
py
Python
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
import cv2 import os import sqlite3 import dlib import re,time from playsound import playsound import pyttsx3 cam = cv2.VideoCapture(0) cam.set(3, 640) # set video width cam.set(4, 480) # set video height face_detector = cv2.CascadeClassifier('C:/Users/ACER/Desktop/PROJECT ALL RESOURCE/PROJECT ALL RESOURCE/F...
43.283582
182
0.686207
412
2,900
4.803398
0.456311
0.024255
0.036382
0.01718
0.175846
0.175846
0.141486
0.141486
0.141486
0.141486
0
0.024979
0.185517
2,900
66
183
43.939394
0.81287
0.206897
0
0.137931
0
0.051724
0.368967
0.087506
0
0
0.001804
0
0
1
0
false
0
0.12069
0
0.12069
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2814df1e327e7a389483fc7f28c047ef76e86e37
8,753
py
Python
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
null
null
null
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
null
null
null
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
1
2020-05-18T10:05:24.000Z
2020-05-18T10:05:24.000Z
import multiprocessing as mp # mp.set_start_method('spawn') import math import os import pickle import random from glob import glob from os import path import albumentations as alb import cv2 import numpy as np import skimage import torch import imageio from albumentations.pytorch import ToTensorV2 from skimage.color...
30.498258
109
0.595224
1,134
8,753
4.409171
0.207231
0.012
0.022
0.0256
0.3316
0.2814
0.2614
0.2546
0.2546
0.2546
0
0.033967
0.266766
8,753
286
110
30.604895
0.745092
0.31395
0
0.161765
0
0
0.03956
0.007439
0
0
0
0
0
1
0.022059
false
0
0.183824
0.007353
0.227941
0.022059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
281720b5fdc07905c3eb03b6c213540b162d5693
1,109
py
Python
tests/config/test_project.py
gaborbernat/toxn
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
4
2018-04-15T15:12:32.000Z
2019-06-03T12:41:06.000Z
tests/config/test_project.py
gaborbernat/tox3
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
3
2018-03-15T11:06:30.000Z
2018-04-15T15:17:29.000Z
tests/config/test_project.py
gaborbernat/tox3
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
1
2019-09-25T19:53:09.000Z
2019-09-25T19:53:09.000Z
from io import StringIO from pathlib import Path import pytest from toxn.config import from_toml @pytest.mark.asyncio async def test_load_from_io(): content = StringIO(""" [build-system] requires = ['setuptools >= 38.2.4'] build-backend = 'setuptools:build_meta' [tool.toxn] default_tasks = ['py36'] """) ...
25.790698
59
0.6844
144
1,109
5.138889
0.298611
0.097297
0.108108
0.113514
0.675676
0.675676
0.675676
0.675676
0.575676
0.575676
0
0.02603
0.16862
1,109
42
60
26.404762
0.776573
0
0
0.588235
0
0
0.35257
0.079351
0
0
0
0
0.235294
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2820ef5bc2fdcf7913515a4a45ac8b19c189a6ce
1,340
py
Python
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
row = [-1, -1, -1, 0, 0, 1, 1, 1] col = [-1, 0, 1, -1, 1, -1, 0, 1] def isValid(x, y, mat): return 0 <= x < len(mat) and 0 <= y < len(mat[0]) def findMaxLength(mat, x, y, previous): if not isValid(x, y, mat) or chr(ord(previous) + 1) != mat[x][y]: return 0 max_len = 0 for k in ran...
20.30303
85
0.435075
200
1,340
2.835
0.27
0.084656
0.021164
0.014109
0.326279
0.292769
0.292769
0.292769
0.292769
0.292769
0
0.032143
0.373134
1,340
66
86
20.30303
0.642857
0
0
0.285714
0
0
0.08806
0
0
0
0
0
0
1
0.085714
false
0
0
0.028571
0.228571
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28226ec9ea67dad00950fa1852a66dbf14540c2c
4,653
py
Python
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
__all__ = ('get_session_list', 'get_animal_list', 'get_event', 'get_tag_pattern', 'get_pattern_animalList', 'get_current_animals') import datetime import logging from .. import Root from .. import File from .. import Profile from ..Profile import EventProfile from...
33.47482
119
0.663873
514
4,653
5.877432
0.223735
0.032771
0.027805
0.029791
0.309169
0.282688
0.266799
0.200265
0.127772
0.127772
0
0.009445
0.249087
4,653
138
120
33.717391
0.85518
0.148077
0
0.225806
0
0
0.029275
0.005699
0
0
0
0
0
1
0.064516
false
0.032258
0.075269
0
0.215054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
282403dbaa1f17f6e0d6f80a9faabdc5990009bd
10,747
py
Python
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
from random import choice from copy import deepcopy from game_data import GameData from agents import Agent import numpy as np import random import pickle import pandas as pd class IsaacAgent(Agent): def __init__(self, max_time=2, max_depth=300): self.max_time = max_time self.max_depth = max_dept...
33.902208
199
0.499209
1,472
10,747
3.460598
0.110734
0.027091
0.031213
0.032195
0.557126
0.522968
0.476835
0.461327
0.439537
0.437966
0
0.052933
0.365404
10,747
317
200
33.902208
0.693988
0.215967
0
0.357576
0
0
0.008225
0
0
0
0
0
0
1
0.090909
false
0
0.048485
0.030303
0.272727
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2826bae5797a9d9d95a636c0a99581f2619ca237
5,872
py
Python
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
from pyteal import * ADMIN_KEY = Bytes("admin") WHITELISTED_KEY = Bytes("whitelisted") REQUESTS_BALANCE_KEY = Bytes("requests_balance") MAX_BUY_AMOUNT = Int(1000000000) MIN_BUY_AMOUNT = Int(10000000) REQUESTS_SELLER = Addr("N5ICVTFKS7RJJHGWWM5QXG2L3BV3GEF6N37D2ZF73O4PCBZCXP4HV3K7CY") MARKET_EXCHANGE_NOTE = Bytes("alg...
35.161677
111
0.547854
630
5,872
4.91746
0.263492
0.032279
0.075533
0.046482
0.353777
0.286959
0.212395
0.20142
0.171724
0.100387
0
0.026601
0.340599
5,872
166
112
35.373494
0.773502
0.146628
0
0.355072
0
0
0.04989
0.028652
0
0
0
0
0.043478
1
0.014493
false
0
0.007246
0
0.036232
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
28271eebbca12a80c721021d335930842259d168
20,198
py
Python
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
""" Support for Shelly smart home devices. For more details about this component, please refer to the documentation at https://home-assistant.io/components/shelly/ """ # pylint: disable=broad-except, bare-except, invalid-name, import-error from datetime import timedelta import logging import time import as...
36.003565
87
0.576839
2,383
20,198
4.591272
0.11582
0.019834
0.030162
0.011882
0.387625
0.319441
0.272736
0.254913
0.230235
0.211772
0
0.001977
0.323695
20,198
560
88
36.067857
0.798975
0.130458
0
0.26615
0
0
0.045417
0
0
0
0
0.001786
0
1
0.074935
false
0.010336
0.043928
0.005168
0.196382
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0