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
f5301087690900f18790595cf080153f91b40dd0
954
py
Python
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
motivation_quote/app.py
lukas-weiss/motivation-quote
90c73342a71f6a8f8b5339b5d080d19ac67083b7
[ "MIT" ]
null
null
null
import json import os.path import logging import csv from random import randint logger = logging.getLogger() logger.setLevel(logging.INFO) def get_quote(file): if os.path.exists(file): with open(file) as csvfile: quotes = list(csv.reader(csvfile, delimiter=';')) max_quotes = len(quo...
25.105263
61
0.603774
116
954
4.810345
0.456897
0.089606
0.069892
0.0681
0
0
0
0
0
0
0
0.010264
0.285115
954
37
62
25.783784
0.807918
0.037736
0
0
0
0
0.050218
0
0
0
0
0
0
1
0.0625
false
0
0.15625
0
0.28125
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
f531e1bea64fba94ad609a7c42aeb9cf4d1498ca
3,142
py
Python
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
tools/extract_textline.py
bitcoder-17/scale-digits-recognition
b75c658ffdc830784ae4be9c007909e4c8f1d695
[ "MIT" ]
null
null
null
from pathlib import Path import cv2 import json import math import numpy as np from argparse import ArgumentParser def distance(p1, p2): return math.sqrt((p2[0] - p1[0])**2 + (p2[1] - p1[1])**2) def order_points(points): pts = {} for x1, y1 in points: count_x_larger = 0 count_x_smaller =...
33.073684
85
0.54965
433
3,142
3.806005
0.263279
0.025485
0.031553
0.031553
0.182039
0.182039
0.182039
0.120146
0.120146
0.120146
0
0.031496
0.312858
3,142
94
86
33.425532
0.73182
0
0
0.076923
0
0
0.06429
0
0
0
0
0
0
1
0.038462
false
0
0.076923
0.012821
0.153846
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
f536be230ab9f47d327f6fa5a8e54f230ab096d9
1,745
py
Python
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
chatServer/server.py
RobbeBryssinck/chatApplication
628ab6acb2b19d26d3e5c064cbea14747041f43e
[ "MIT" ]
null
null
null
import socket import sys import os import optparse from threading import * def createServer(ip, port): # create a TCP socket sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # bind the socket to the port server_address = (ip, port) print("starting up on {} port {}".format(*server_address)) sck.bind(ser...
19.606742
91
0.676218
240
1,745
4.85
0.429167
0.015464
0.041237
0.02921
0.042955
0
0
0
0
0
0
0.008415
0.182808
1,745
88
92
19.829545
0.807854
0.115186
0
0.150943
0
0
0.132334
0
0
0
0
0
0
1
0.075472
false
0
0.09434
0
0.188679
0.09434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f537b763bb0939c0d65ba5d32dd7d3fcdadbcca3
1,502
py
Python
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
tests/test_utils_bytes.py
cwichel/embutils
188d86d84637088bafef188b3312078048934113
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: ascii -*- """ Byte utilities testing. :date: 2021 :author: Christian Wiche :contact: cwichel@gmail.com :license: The MIT License (MIT) """ import unittest from embutils.utils import bitmask, reverse_bits, reverse_bytes # -->> Definitions <<------------------ # -->> Tes...
23.107692
63
0.581891
159
1,502
5.308176
0.427673
0.052133
0.033175
0.035545
0.298578
0.260664
0.260664
0
0
0
0
0.092593
0.280959
1,502
64
64
23.46875
0.688889
0.345539
0
0
0
0
0.009081
0
0
0
0.043133
0
0.3
1
0.15
false
0
0.1
0
0.3
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
f53d0274845ff18a273019ee23bb400432511d7c
588
py
Python
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
4
2021-09-04T04:02:57.000Z
2021-12-27T13:27:26.000Z
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
1
2021-09-10T07:40:36.000Z
2022-01-02T06:23:12.000Z
utils/tool.py
yongleex/SBCC
40f8e67e446fc14fc82ea87f82ee841d62520c71
[ "MIT" ]
1
2021-09-10T07:36:29.000Z
2021-09-10T07:36:29.000Z
import numpy as np from scipy.ndimage import maximum_filter class AttrDict(dict): __setattr__ = dict.__setitem__ __getattr__ = dict.__getitem__ def signal2noise(r_map): """ Compute the signal-to-noise ratio of correlation plane. w*h*c""" r = r_map.copy() max_r = maximum_filter(r_map, (5,5,1)...
18.375
63
0.612245
95
588
3.452632
0.547368
0.04878
0.030488
0
0
0
0
0
0
0
0
0.039648
0.227891
588
31
64
18.967742
0.682819
0.103742
0
0
0
0
0.015564
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f53f1078d0ccf6010a2d5acd1664c6d7881e41c8
8,584
py
Python
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
1
2020-12-16T07:18:00.000Z
2020-12-16T07:18:00.000Z
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
null
null
null
bjtunlp/train.py
bigbosskai/bjtunlp
58d8ca53fa1d99df2f47f10a0780619c4cdba22f
[ "MIT" ]
1
2022-03-12T16:41:32.000Z
2022-03-12T16:41:32.000Z
import os import time import argparse from tqdm import tqdm import torch from torch import optim from torch import nn from fastNLP import BucketSampler from fastNLP import logger from fastNLP import DataSetIter from fastNLP import Tester from fastNLP import cache_results from bjtunlp.models import BertParser from b...
48.224719
203
0.65028
1,128
8,584
4.750887
0.215426
0.031722
0.041239
0.017914
0.234372
0.168688
0.125023
0.115693
0.115693
0.115693
0
0.015115
0.229264
8,584
177
204
48.497175
0.794891
0.005009
0
0
0
0.019231
0.242882
0.040187
0
0
0
0
0
1
0.012821
false
0
0.121795
0
0.141026
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
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
f53f3f14419ce7e5f5fb052bfc8906e374ee8971
7,978
py
Python
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
23
2021-05-17T09:24:24.000Z
2022-01-29T18:40:44.000Z
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
2
2021-05-17T16:15:12.000Z
2021-07-20T09:11:22.000Z
archived/functions/sync_elasticache/redis/LR_sync_redis_model_reuse.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
3
2021-05-17T09:31:53.000Z
2021-12-02T16:29:59.000Z
import time import torch from torch.autograd import Variable from torch.utils.data.sampler import SubsetRandomSampler from archived.elasticache import redis_init from archived.s3.get_object import get_object from archived.old_model import LogisticRegression from data_loader.libsvm_dataset import DenseDatas...
44.322222
120
0.587741
918
7,978
4.876906
0.227669
0.023453
0.046683
0.033505
0.29551
0.261782
0.173554
0.112799
0.112799
0.097387
0
0.008867
0.307345
7,978
179
121
44.569832
0.801303
0.083354
0
0.11811
0
0
0.093768
0.006377
0
0
0
0
0
1
0.007874
false
0
0.062992
0
0.070866
0.149606
0
0
0
null
0
0
0
0
0
0
0
0
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
f5401cd673d6e1e3eddd77c34fed0869702ad889
2,346
py
Python
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/manipulators/team_manipulator.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from typing import List from backend.common.cache_clearing import get_affected_queries from backend.common.manipulators.manipulator_base import ManipulatorBase from backend.common.models.cached_model import TAffectedReferences from backend.common.models.team import Team class TeamManipulator(ManipulatorBase[Team]): ...
37.238095
101
0.656436
280
2,346
5.246429
0.346429
0.038121
0.066712
0.061266
0.208305
0.19401
0.19401
0.19401
0.19401
0
0
0
0.272379
2,346
62
102
37.83871
0.860574
0.047741
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.208333
0.041667
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
f5450958d50c031030e18504e081e98ce995e8e8
3,680
py
Python
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
8
2020-06-12T12:49:19.000Z
2021-04-27T12:10:49.000Z
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
null
null
null
measures/over_under_exposure_measure/over_under_exposure_measure.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
5
2020-04-18T11:30:47.000Z
2022-03-04T07:05:21.000Z
# MIT License # # Copyright (c) 2020 HENSOLDT # # 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, pub...
41.818182
137
0.741848
548
3,680
4.844891
0.406934
0.031638
0.031638
0.021092
0.165348
0.152919
0.112241
0.089642
0.032392
0
0
0.01485
0.194837
3,680
87
138
42.298851
0.881201
0.655978
0
0
0
0
0.035333
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.26087
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f54590a9d9506eac6f07374f1bb10c88ce804b14
2,567
py
Python
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
tests/test_cascade.py
mathDR/jax-pilco
c6c75cd8d43ba894d8f1da2cf6b7c0eea5e43527
[ "BSD-3-Clause" ]
null
null
null
from pilco.models.pilco import PILCO import jax.numpy as jnp import numpy as np import objax import os import oct2py import logging oc = oct2py.Oct2Py(logger=oct2py.get_log()) oc.logger = oct2py.get_log("new_log") oc.logger.setLevel(logging.INFO) dir_path = os.path.dirname(os.path.realpath("__file__")) + "/tests/Matla...
27.602151
86
0.638878
389
2,567
4.138817
0.359897
0.040994
0.055901
0.026087
0.261491
0.180124
0.109317
0.068323
0.068323
0.068323
0
0.023606
0.224386
2,567
92
87
27.902174
0.785033
0.1418
0
0.029412
0
0
0.018704
0
0
0
0
0
0.029412
1
0.014706
false
0
0.102941
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
f547d48b9bf65696e52de1543f4c4b442a9e0501
2,042
py
Python
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
272
2015-02-11T16:26:39.000Z
2022-03-31T08:47:33.000Z
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
254
2015-02-11T01:12:35.000Z
2021-04-22T22:14:20.000Z
python/general-python/create-replica-and-download/createReplicaAndDownload.py
claudeshyaka-esri/developer-support
016940d74f92a78f362900ab5329aa88c27d0a43
[ "Apache-2.0" ]
211
2015-02-10T00:09:07.000Z
2022-02-24T12:27:40.000Z
import urllib, urllib2, json, time, os username = "username" #CHANGE password = "password" #CHANGE replicaURL = "feature service url/FeatureServer/createReplica" #CHANGE replicaLayers = [0] ...
34.610169
85
0.642018
203
2,042
6.448276
0.463054
0.068755
0.064171
0.055004
0.157372
0.157372
0.082506
0
0
0
0
0.006888
0.217924
2,042
58
86
35.206897
0.812774
0.014691
0
0.117647
0
0
0.261086
0.028401
0
0
0
0
0
1
0.019608
false
0.039216
0.019608
0
0.058824
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
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
f54e716dfa472cc32b79479172fc0cb1532d563d
1,028
py
Python
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
setup.py
henryk/byro-cnss
77cc4d34a521879f9f225b473964b7384db306b1
[ "Apache-2.0" ]
null
null
null
import os from distutils.command.build import build from django.core import management from setuptools import find_packages, setup try: with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f: long_description = f.read() except: long_description = '' class CustomBuild...
23.363636
92
0.696498
127
1,028
5.496063
0.622047
0.08596
0
0
0
0
0
0
0
0
0
0.005848
0.168288
1,028
43
93
23.906977
0.810526
0
0
0
0
0
0.263619
0.033074
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f54f18f6eb1da6e577537fa0c7b336cc4d1057b5
2,181
py
Python
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
2
2021-10-19T13:55:11.000Z
2021-11-11T11:26:05.000Z
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
2
2021-11-10T20:22:35.000Z
2022-02-10T04:44:40.000Z
utils/tensor_utils_test.py
zhuchen03/federated
6bbcdcb856759aa29daa9a510e7d5f34f6915010
[ "Apache-2.0" ]
1
2021-03-09T09:48:56.000Z
2021-03-09T09:48:56.000Z
# Copyright 2018, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
32.552239
79
0.64099
318
2,181
4.261006
0.367925
0.023616
0.019926
0.01476
0.37786
0.368266
0.339483
0.278967
0.253875
0.253875
0
0.030806
0.226043
2,181
66
80
33.045455
0.771919
0.262265
0
0.285714
0
0
0.065204
0
0
0
0
0
0.142857
1
0.071429
false
0
0.071429
0
0.166667
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
f54f50b36cac1b6f41d6778991e01f0570bbafab
3,426
py
Python
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
autonmap/__main__.py
zeziba/AUTONMAP
50a2ae5f0731bc919ccb8978c619d1432b447286
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging.handlers import sys from sys import argv, modules from os.path import join from autonmap import cron_scheduler from autonmap import launch_client from autonmap import launch_server from autonmap.server import server_config as sconfig """ This module allows autonmap to interact w...
35.6875
98
0.537069
376
3,426
4.787234
0.343085
0.033333
0.026667
0.037778
0.205556
0.181111
0.09
0.09
0.09
0.09
0
0.008441
0.342966
3,426
95
99
36.063158
0.791204
0.025102
0
0.166667
0
0
0.151032
0.020013
0
0
0
0
0
1
0.055556
false
0.027778
0.111111
0
0.180556
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
f54ff4d5dcb3a333a55f6c56d21b89f6d29ae597
6,166
py
Python
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
src/logic_gradient.py
Einzberg/BattlesnakeFun
4276144c3ccfab66e7c9df4717681e305861f76a
[ "MIT" ]
null
null
null
# import random # from typing import List, Dict import numpy as np # import matplotlib.pyplot as plt def get_info() -> dict: """ This controls your Battlesnake appearance and author permissions. For customization options, see https://docs.battlesnake.com/references/personalization TIP: If you open you...
28.155251
105
0.509569
787
6,166
3.875476
0.236341
0.026557
0.020656
0.019672
0.342623
0.308197
0.224918
0.217049
0.198689
0.198689
0
0.043478
0.306195
6,166
218
106
28.284404
0.669472
0.111255
0
0.39779
0
0
0.142463
0.016013
0
0
0
0.004587
0
1
0.044199
false
0
0.005525
0
0.082873
0.01105
0
0
0
null
0
0
0
0
0
0
0
0
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
f5538c72ced0bc74b5e82bee2c3ce5f0a35952cd
11,836
py
Python
nuclear/help/help.py
igrek51/glue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
4
2019-07-04T20:41:06.000Z
2020-04-23T18:17:33.000Z
nuclear/help/help.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
null
null
null
nuclear/help/help.py
igrek51/cliglue
6726ba977a21e58b354a5c97f68639f84184be7a
[ "MIT" ]
null
null
null
import os import sys from dataclasses import dataclass, field from typing import List, Set, Optional from nuclear.builder.rule import PrimaryOptionRule, ParameterRule, FlagRule, CliRule, SubcommandRule, \ PositionalArgumentRule, ManyArgumentsRule, DictionaryRule, ValueRule from nuclear.parser.context import RunCon...
35.22619
119
0.710037
1,447
11,836
5.508639
0.124395
0.020073
0.016058
0.008155
0.304981
0.233973
0.176766
0.144524
0.12558
0.12558
0
0.000518
0.184099
11,836
335
120
35.331343
0.824894
0.008026
0
0.141667
0
0
0.039278
0.001874
0
0
0
0
0
1
0.154167
false
0
0.045833
0.041667
0.416667
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f553c00e89c0f5a71a1f1863c8dfb6394c78b550
1,997
py
Python
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
17
2017-06-27T04:14:42.000Z
2022-03-07T03:37:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/Cyclops-VFX
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2017-06-14T04:17:51.000Z
2018-08-23T20:12:44.000Z
Apps/Engines/Nuke/NukeTools_1.01/Python/LookAt.py
geoffroygivry/CyclopsVFX-Unity
6ab9ab122b6c3e6200e90d49a0c2bf774e53d985
[ "MIT" ]
2
2019-03-18T06:18:33.000Z
2019-08-14T21:07:53.000Z
#The MIT License (MIT) # #Copyright (c) 2015 Geoffroy Givry # #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, m...
46.44186
263
0.725588
288
1,997
5.03125
0.475694
0.060732
0.030366
0.045549
0.10766
0.078675
0.078675
0.078675
0.078675
0.078675
0
0.010837
0.168252
1,997
43
264
46.44186
0.861529
0.530796
0
0
0
0.133333
0.417143
0.336
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.133333
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
f5553f600d9e51ffdced6978931c7ede4d5b363d
7,458
py
Python
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
src/extract_features.py
AymericBebert/MusicLearning
8fbc931330029baa8ae9cfcfa20c79e41b5eca8f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding:utf-8-*- """ This module is used to extract features from the data """ import numpy as np from scipy.fftpack import fft from scipy.fftpack.realtransforms import dct import python_speech_features eps = 0.00000001 def file_length(soundParams): """Returns the file length, in sec...
34.850467
121
0.616519
972
7,458
4.659465
0.248971
0.022963
0.018547
0.021197
0.210863
0.163612
0.121881
0.093619
0.071097
0.048134
0
0.027274
0.252749
7,458
213
122
35.014085
0.785394
0.349021
0
0.018519
0
0
0.015241
0
0
0
0
0
0
1
0.111111
false
0
0.037037
0
0.268519
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
f5592d87345b5a481da2afaed4ea4665c57dc09d
2,435
py
Python
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
187
2015-09-21T15:08:57.000Z
2017-07-31T08:01:22.000Z
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
1,533
2015-09-15T23:49:33.000Z
2017-08-01T08:52:00.000Z
tools/blender/io_export_curve.py
waskosky/patches
f80a33eb6fd029b905aca55894ec7a7526b89042
[ "MIT" ]
52
2015-10-11T10:42:50.000Z
2017-07-16T22:31:42.000Z
# Part of the Engi-WebGL suite. from bpy.props import * from bpy_extras.io_utils import ExportHelper from mathutils import * from functools import reduce import os, sys, os.path, bpy, bmesh, math, struct, base64, itertools bl_info = { 'name': 'Curve Export (.json)', 'author': 'Lasse Nielsen', 'version': (0, 2), '...
24.59596
85
0.657906
334
2,435
4.664671
0.416168
0.023107
0.048139
0.057766
0.089859
0.089859
0.05905
0.05905
0
0
0
0.009425
0.172074
2,435
98
86
24.846939
0.763393
0.085832
0
0.060606
0
0
0.17027
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0.015152
0.378788
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
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
f55a03a501c8713245dc76b3760e3ffdd100d23e
1,857
py
Python
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
1,847
2020-03-24T19:01:42.000Z
2022-03-31T13:18:57.000Z
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
1,100
2020-03-24T19:41:13.000Z
2022-03-31T14:27:09.000Z
third_party/conan/recipes/libprotobuf-mutator/conanfile.py
tufeigunchu/orbit
407354cf7c9159ff7e3177c603a6850b95509e3a
[ "BSD-2-Clause" ]
228
2020-03-25T05:32:08.000Z
2022-03-31T11:27:39.000Z
from conans import ConanFile, CMake, tools class LibprotobufMutatorConan(ConanFile): name = "libprotobuf-mutator" version = "20200506" license = "Apache-2.0" settings = "os", "compiler", "build_type", "arch" generators = "cmake" exports_sources = "patches/*", build_requires = "protoc_insta...
36.411765
82
0.622509
221
1,857
5.081448
0.411765
0.066785
0.067676
0.061443
0.186109
0.106857
0.048085
0
0
0
0
0.016563
0.219709
1,857
50
83
37.14
0.758454
0
0
0
0
0
0.217555
0.084006
0
0
0
0
0
1
0.142857
false
0
0.02381
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f55c8c9f40e1cf4319ff4ee1c9422d7c3883f725
524
py
Python
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
animation/common.py
codyly/locomotion-by-mann
89139466829ef7802bf645f865e335d4cda444e4
[ "MIT" ]
null
null
null
import numpy as np VEC_FORWARD = np.array([0, 0, 1]) VEC_UP = np.array([0, 1, 0]) VEC_RIGHT = np.array([1, 0, 0]) STYLE_NOMOVE = np.array([1, 0, 0, 0, 0, 0]) STYLE_TROT = np.array([0, 1, 0, 0, 0, 0]) STYLE_JUMP = np.array([0, 0, 1, 0, 0, 0]) STYLE_SIT = np.array([0, 0, 0, 1, 0, 0]) STYLE_STAND = np.array([0...
23.818182
54
0.593511
106
524
2.792453
0.311321
0.148649
0.121622
0.081081
0.398649
0.074324
0
0
0
0
0
0.118644
0.211832
524
21
55
24.952381
0.598063
0
0
0
0
0
0.06163
0.06163
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
f55e3e29a41fea6104e2a766525f7a160ac34c13
5,900
py
Python
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
Kinematic/forward.py
DDDong2666/tum-adlr-ws20-02
2e439886e0287777589cd276d614fd03bea4ed0c
[ "MIT" ]
null
null
null
import numpy as np from Optimizer.path import get_x_substeps from Kinematic import frames, chain as kc def initialize_frames(shape, robot, mode='hm'): return frames.initialize_frames(shape=shape + (robot.n_frames,), n_dim=robot.n_dim, mode=mode) def initialize_frames_jac(shape, robot, mode='hm'): f = initi...
33.908046
132
0.597119
919
5,900
3.545158
0.162133
0.039288
0.01504
0.014733
0.499079
0.40884
0.372621
0.305095
0.26949
0.232044
0
0.021622
0.247458
5,900
173
133
34.104046
0.712162
0.134068
0
0.141304
0
0
0.001596
0
0
0
0
0
0
1
0.184783
false
0
0.032609
0.054348
0.402174
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
f560897ff46b99cf1a7890d1251f2fa26c8a2e3a
977
py
Python
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
dnslookup.py
r1nzler/dnslookup
74613614b694602244582bfd555ffd8a5dea8bff
[ "MIT" ]
null
null
null
import dns.resolver import dns.ipv4 import argparse parser = argparse.ArgumentParser() parser.add_argument('-l', "--list", help="List of dns names you want IP's for") parser.add_argument('-o', "--output", help="Output file to save list") args = parser.parse_args() ip_list = [...] subs = open(args.list, 'r', newline='...
27.914286
79
0.518936
126
977
3.968254
0.452381
0.048
0.078
0
0
0
0
0
0
0
0
0.003096
0.338792
977
34
80
28.735294
0.770898
0.0348
0
0
0
0
0.105319
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
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
f5609c24bd958aa1dc8093dff8643942d2269130
8,416
py
Python
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:52:50.000Z
2021-03-03T06:52:50.000Z
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-05T09:36:50.000Z
2021-03-08T12:02:53.000Z
eval/report.py
DBCobra/CobraBench
d48697248948decc206cfba0a6e40fea8a772ff9
[ "MIT" ]
1
2021-03-03T06:57:02.000Z
2021-03-03T06:57:02.000Z
import pandas import numpy as np import math import os import sys import re from utils import * DIR_PATH = os.path.dirname(os.path.realpath(__file__)) percentiles = [ 10, 25, 50, 75, 90, 95, 99, 99.9 ] DATA_FOLDER = DIR_PATH + '/data' def getResult(trial_string, thread, client_num=2): print("thread: {}".format(t...
33.52988
110
0.557153
1,067
8,416
4.182755
0.182755
0.056688
0.016133
0.016133
0.434013
0.38203
0.348868
0.337665
0.313018
0.313018
0
0.017935
0.291112
8,416
250
111
33.664
0.730137
0.028042
0
0.358209
0
0
0.096403
0.007096
0.014925
0
0
0
0
1
0.034826
false
0
0.034826
0
0.114428
0.079602
0
0
0
null
0
0
0
0
0
0
0
0
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
f560efe52fd0d8fc1e6638e6bf52578a71fd2927
1,821
py
Python
platypush/backend/foursquare.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
228
2018-01-30T11:17:09.000Z
2022-03-24T11:22:26.000Z
platypush/backend/foursquare.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
167
2017-12-11T19:35:38.000Z
2022-03-27T14:45:30.000Z
platypush/backend/foursquare/__init__.py
BlackLight/runbullet
8d26c8634d2677b4402f0a21b9ab8244b44640db
[ "MIT" ]
16
2018-05-03T07:31:56.000Z
2021-12-05T19:27:37.000Z
from typing import Optional from platypush.backend import Backend from platypush.context import get_plugin from platypush.message.event.foursquare import FoursquareCheckinEvent class FoursquareBackend(Backend): """ This backend polls for new check-ins on the user's Foursquare account and triggers an event wh...
34.358491
115
0.697968
229
1,821
5.235808
0.366812
0.105088
0.119266
0.127606
0.100083
0.080067
0
0
0
0
0
0.005563
0.210324
1,821
52
116
35.019231
0.828234
0.250412
0
0.083333
0
0
0.073563
0.02682
0
0
0
0
0
1
0.125
false
0
0.166667
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f560ffe95556ccc11b3d6d39837b76f47f81ba08
2,980
py
Python
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
src/data/make_dataset.py
karsti11/caffe_bar_sales_analysis
f7001bbf2d09c1ceeb8aef35322652a8495949ed
[ "MIT" ]
null
null
null
import os import time import pandas as pd from src.utils import get_project_root from src.data.item_names_replacement import REPLACE_DICT1, REPLACE_DICT1 YEARS = [str(x) for x in list(range(2013,2021))] ROOT_DIR = get_project_root() def string_to_float(number): #Custom function for converting 'sales_value' colum...
40.27027
125
0.632215
412
2,980
4.262136
0.322816
0.102506
0.062642
0.04328
0.249431
0.216401
0.207859
0.177107
0.177107
0.177107
0
0.021343
0.245302
2,980
74
126
40.27027
0.759449
0.137248
0
0.12
0
0
0.13568
0.016218
0
0
0
0
0
1
0.08
false
0
0.1
0
0.28
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f565e620ce2b4fec57d532c3907bb966211865f1
5,858
py
Python
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5181631/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import os, time, random from collections import defaultdict from System import Console, ConsoleColor, ConsoleKey from System.Threading import Thread, ThreadStart class Screen(object): red = ConsoleColor.Red; green = ConsoleColor.Green; blue = ConsoleColor.Blue;black = ConsoleColor.Black dimension = (21,39) ...
59.171717
177
0.669
787
5,858
4.740788
0.205845
0.050121
0.048244
0.033503
0.187617
0.132672
0.106674
0.0922
0.056821
0.056821
0
0.026788
0.209799
5,858
99
178
59.171717
0.779218
0.044725
0
0.087912
0
0
0.007688
0
0
0
0.003576
0
0
1
0.186813
false
0
0.043956
0.010989
0.43956
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
f56710ff85a90ed722496b29dbe8a6afdffc8f9d
2,291
py
Python
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
neural_structured_learning/tools/graph_builder.py
eustomaqua/neural-structured-learning
e63a9e7ef435caaf6d70c04b6529e830bf47239d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.19403
80
0.717154
334
2,291
4.757485
0.48503
0.03776
0.030208
0.020138
0.06545
0.06545
0.06545
0.06545
0.06545
0.06545
0
0.011438
0.198603
2,291
66
81
34.712121
0.854031
0.430816
0
0.066667
0
0
0.136743
0.022965
0
0
0
0
0
1
0.033333
false
0
0.233333
0
0.266667
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
f56a3c3291794639e68ab580cfe7cfde7175ba0c
11,672
py
Python
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
main/dataset.py
MarcSerraPeralta/rec-flows
d05c3eca944f2228cffa575698ee5b010e83f167
[ "MIT" ]
null
null
null
import torch from torch.utils import data import sys from sklearn.utils import shuffle import numpy as np import argparse import matplotlib.pyplot as plt class UserSet(data.Dataset): def __init__(self, path, tsplit, idim=100, seed=0, Nsongs=180198, pc_split=0.1, tag2vector_path=""): """ path : str path + fn...
36.936709
199
0.706306
1,731
11,672
4.60312
0.125361
0.035894
0.011295
0.015813
0.554342
0.53627
0.515813
0.500753
0.417043
0.40989
0
0.020367
0.146076
11,672
315
200
37.053968
0.779071
0.10598
0
0.432432
0
0
0.123779
0.004886
0
0
0
0
0
1
0.063063
false
0
0.031532
0.022523
0.171171
0.067568
0
0
0
null
0
0
0
0
0
0
0
0
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
f56aef37015ae46f5772b8eb36d680a12e113fe7
892
py
Python
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
back/LocationParser.py
DimaYurchenko/postdata-hackathon-app
f688491b27db991946fd104102a7912c1b104ea4
[ "MIT" ]
null
null
null
import json from typing import List from LocationObject import LocationObject def parse(file_path: str) -> List[LocationObject]: with open(file_path, "r") as file: data = json.loads(file.read().replace("\n", "")) locations: List[LocationObject] = [] for object in data: city = ...
27.030303
89
0.602018
88
892
6.079545
0.477273
0.029907
0
0
0
0
0
0
0
0
0
0
0.298206
892
32
90
27.875
0.854633
0.034753
0
0
0
0
0.060606
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
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
f56b9c719e339cbfa0c390fd236dda0208636e27
7,786
py
Python
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
null
null
null
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
16
2020-09-05T16:03:40.000Z
2022-03-19T17:42:05.000Z
nfp/servicos/controles/controle_execucao.py
FranciscoACLima/Robo_NFP_Selenium
7702854f94355fee8d78a4c04fc134cf099db5f0
[ "MIT" ]
null
null
null
import os from datetime import datetime from sqlalchemy.orm import sessionmaker import nfp.servicos.model as tables from nfp import CONEXAO class ControleExecucao(object): uri = '' tarefa = None tarefa_nova = False engine = CONEXAO def configurar_base_de_dados(self): self.DBSession = ses...
32.041152
96
0.595171
852
7,786
5.278169
0.183099
0.042695
0.048922
0.021348
0.500778
0.480987
0.448521
0.409162
0.38648
0.320881
0
0.00037
0.305934
7,786
242
97
32.173554
0.831791
0.058053
0
0.509901
0
0
0.034158
0.003143
0
0
0
0
0
1
0.084158
false
0.009901
0.024752
0
0.242574
0.014851
0
0
0
null
0
0
0
0
0
0
0
0
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
f56e6fbda99325c6509cd93be29f620a11819e74
2,887
py
Python
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
app.py
PrismaPhonic/PetFinder-Exercise
a4d2c6293873299f9d6632158bca837a830fac98
[ "MIT" ]
null
null
null
"""Adoption application.""" from flask import Flask, request, redirect, render_template from models import db, connect_db, Pets from wtforms import StringField, IntegerField, TextAreaField, BooleanField from wtforms.validators import DataRequired,InputRequired,AnyOf,URL, NumberRange from flask_wtf import FlaskForm fro...
29.459184
114
0.66505
362
2,887
5.146409
0.303867
0.042941
0.030596
0.022544
0.180354
0.085883
0.060118
0.060118
0.060118
0
0
0.003886
0.197783
2,887
97
115
29.762887
0.800518
0.078282
0
0.16129
0
0
0.137262
0.020152
0
0
0
0
0
1
0.048387
false
0
0.112903
0
0.403226
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
f56f1c7317138379cc46e4bc9738fe0615922706
17,810
py
Python
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
69
2019-02-25T00:17:53.000Z
2022-03-31T17:26:48.000Z
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
68
2018-07-20T09:01:01.000Z
2022-03-31T16:28:36.000Z
pyrolite/util/resampling.py
bomtuckle/pyrolite
c0af0ade14ff26b4e9fdd5a033b27e73df085c55
[ "BSD-3-Clause" ]
24
2018-10-02T04:32:10.000Z
2021-11-10T08:24:17.000Z
""" Utilities for (weighted) bootstrap resampling applied to geoscientific point-data. """ import numpy as np import pandas as pd from .meta import subkwargs from .spatial import great_circle_distance, _get_sqare_grid_segment_indicies from .log import Handle logger = Handle(__name__) try: import sklea...
40.022472
131
0.614935
2,161
17,810
4.961592
0.216104
0.013057
0.012684
0.006995
0.181309
0.13822
0.100634
0.079276
0.042529
0.035068
0
0.006952
0.289276
17,810
444
132
40.112613
0.840101
0.488995
0
0.204082
0
0
0.039005
0
0
0
0
0.002252
0
1
0.030612
false
0.005102
0.035714
0.005102
0.102041
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
f570043bcd7ec43faf876327124a5a21c6d01798
1,809
py
Python
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
src/examples/stimuli-representation.py
cwardell97/learn-hippo-1
90280c614fb94aea82a60c2ed071db8068a37d5c
[ "MIT" ]
null
null
null
import numpy as np import seaborn as sns import matplotlib.pyplot as plt from task import SequenceLearning sns.set(style='white', palette='colorblind', context='poster') np.random.seed(0) '''how to use''' # init n_param, n_branch = 16, 4 pad_len = 0 n_parts = 2 n_samples = 256 p_rm_ob_enc = 0 p_rm_ob_rcl = 0 n_rm_fixe...
28.265625
74
0.666667
331
1,809
3.425982
0.347432
0.063492
0.04321
0.057319
0.092593
0.067901
0.067901
0.049383
0
0
0
0.026631
0.169707
1,809
63
75
28.714286
0.728362
0.016584
0
0
0
0
0.159261
0.017311
0
0
0
0
0
1
0
false
0
0.078431
0
0.078431
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
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
f571719391b271f64aa33623e91452b85398b280
704
py
Python
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
null
null
null
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
1
2021-06-13T18:08:50.000Z
2021-06-13T18:08:50.000Z
eventbusk/exceptions.py
Airbase/eventbusk
704d50a4c9c1f7d332dba93ee04ab07afa59d216
[ "BSD-3-Clause" ]
null
null
null
""" Custom exceptions """ from __future__ import annotations __all__ = [ "AlreadyRegistered", "ConsumerError", "EventBusError", "UnknownEvent", ] class EventBusError(Exception): """ Base of exceptions raised by the bus. """ class UnknownEvent(EventBusError): """ Raised when an r...
16.761905
79
0.661932
71
704
6.450704
0.535211
0.165939
0.048035
0.10917
0
0
0
0
0
0
0
0
0.238636
704
41
80
17.170732
0.854478
0.382102
0
0
0
0
0.15625
0
0
0
0
0
0
1
0
false
0
0.083333
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
f572b933b1b5aed70aca3d4ac6ade4a2e8fe1e58
9,580
py
Python
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
11
2020-11-01T11:35:30.000Z
2022-03-30T02:19:52.000Z
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
8
2020-12-13T12:17:38.000Z
2021-12-21T21:04:27.000Z
sparse_ct/example/dgr_example.py
mozanunal/SparseCT
97d7f06c0414f934c7fa36023adcf9fe4c071eaf
[ "MIT" ]
null
null
null
from sparse_ct.tool import plot_grid from sparse_ct.data import image_to_sparse_sinogram from sparse_ct.reconstructor_2d import ( IRadonReconstructor, SartReconstructor, SartTVReconstructor, DgrReconstructor, SartBM3DReconstructor) import logging logging.basicConfig( filename='dgr_example_32_...
38.167331
93
0.423173
1,101
9,580
3.333333
0.131698
0.069482
0.029428
0.034332
0.571662
0.5297
0.528338
0.528338
0.435967
0.394823
0
0.113128
0.482359
9,580
250
94
38.32
0.626941
0
0
0.537445
0
0
0.106934
0.066416
0
0
0
0
0
1
0.004405
false
0
0.017621
0
0.022026
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
f5738865aace2f3446a95a35c7f51b460031ae67
1,607
py
Python
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
03. Advanced (Nested) Conditional Statements/P09 Fruit Shop #.py
KrisBestTech/Python-Basics
10bd961bf16d15ddb94bbea53327b4fc5bfdba4c
[ "MIT" ]
null
null
null
fruit = str(input()) day_of_the_week = str(input()) quantity = float(input()) price = 0 if fruit == 'banana' or \ fruit == 'apple' or \ fruit == 'orange' or \ fruit == 'grapefruit' or \ fruit == 'kiwi' or \ fruit == 'pineapple' or \ fruit == 'grapes': if day_of_the_...
21.716216
71
0.47542
184
1,607
4
0.255435
0.146739
0.086957
0.130435
0.516304
0.111413
0.111413
0.111413
0.111413
0
0
0.044103
0.393279
1,607
73
72
22.013699
0.710769
0
0
0.461538
0
0
0.144368
0
0
0
0
0
0
1
0
false
0
0
0
0
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
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
f573e98c3617ee161a5bc2f46171d1b7f2905fc3
1,368
py
Python
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
trajectories/tests/test_DTW.py
donsheehy/geomcps
b4ef5dbf0fed21927485b01580b724272f84d9ed
[ "MIT" ]
null
null
null
import unittest from trajectories.dynamic_time_warper import * from trajectories.trajectory import Trajectory from trajectories.point import Point class TestDTW(unittest.TestCase): def test_1D_DTW(self): t1 = [1,2,2,10,2,1] t2 = [3,3,5,5,2] self.assertEqual(45, dtw(t1, t2, -1, metricI)) ...
33.365854
93
0.54386
195
1,368
3.74359
0.215385
0.164384
0.093151
0.087671
0.490411
0.490411
0.490411
0.424658
0.353425
0.353425
0
0.106046
0.262427
1,368
40
94
34.2
0.617443
0
0
0.388889
0
0
0.005848
0
0
0
0
0
0.222222
1
0.083333
false
0
0.111111
0
0.222222
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
f5792851b55e8b741f344366679574e04969bc93
1,022
py
Python
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
1
2022-02-08T19:35:22.000Z
2022-02-08T19:35:22.000Z
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
null
null
null
backend/repositories/bookmark_repository.py
heshikirihasebe/fastapi-instagram-clone
7bc265a62160171c5c5c1b2f18b3c86833cb64e7
[ "MIT" ]
null
null
null
import datetime from ..databases.postgresql import session from ..models.bookmark_model import Bookmark # Select one async def select_one(user_id: int, post_id: int): bookmark = session.query(Bookmark).filter(Bookmark.user_id == user_id, Bookmark.post_id == post_id).first() return bookmark # Insert async def ...
31.9375
116
0.720157
143
1,022
4.937063
0.258741
0.110482
0.056657
0.067989
0.405099
0.311615
0.286119
0.223796
0.223796
0.223796
0
0
0.167319
1,022
31
117
32.967742
0.829612
0.040117
0
0.26087
0
0
0
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.217391
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
f57b07d03e45e8f7fc9d99adb6fc72590a4d7edd
3,326
py
Python
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
D3_cgi/support/uman.py
slzjw26/learn_Pthon
9c4053ec1ea4c32a01fa2658499d8e53a4a532f3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # User management application # """ 六、用python写一个cgi程序,功能如下: 1. 查询用户 (get) 2. 创建用户 (post) 3. 修改用户 (post) 4. 删除用户 (post) 要点: 1. 通过变量 REQUEST_METHOD 来判断是get还是post 2. 通过变量 QUERY_STRING 来判断是创建还是修改还是删除 3. 通过subprocess.getoutput, 或者os.system 来运行shell命令 4. 相关命令如下: ...
27.262295
77
0.591401
422
3,326
4.575829
0.334123
0.069912
0.068876
0.047644
0.179182
0.179182
0.179182
0.156396
0.086484
0.059037
0
0.013638
0.250451
3,326
121
78
27.487603
0.760931
0.164762
0
0.141026
0
0
0.192963
0
0
0
0
0
0
1
0.051282
false
0.025641
0.038462
0
0.205128
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f57c524ea058c9eaac99f335f5d9b80e94762f25
2,024
py
Python
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
chmm_files/chmm_gen.py
IvanTyulyandin/Lin_alg_Viterbi
0359c33ed67f8748cd51e8852555ea2fa35b9365
[ "Apache-2.0" ]
null
null
null
import random # Parameters states_num: int = 900 trans_per_state: int = 3 transitions_num: int = trans_per_state * states_num num_non_zero_start_probs: int = 2 emit_range: int = 20 file_name: str = "random_" + \ str(states_num) + "_" + str(transitions_num) + "_" + \ str(emit_range) + "_" + str(num_non_zero_st...
32.126984
77
0.64081
289
2,024
4.211073
0.273356
0.059162
0.044371
0.061627
0.211175
0.082991
0.047658
0.047658
0
0
0
0.009766
0.241107
2,024
62
78
32.645161
0.782552
0.148221
0
0
0
0
0.019837
0
0
0
0
0
0
1
0.02439
false
0
0.02439
0
0.073171
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
f580e360a82ba7dad75ab77286f0111cf9d43ab3
392
py
Python
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
new_server.py
19bcs2410/flask_updated-web-chat
c72644a2b1feb2c6ba3b6c1c8d0ec53817e6d05e
[ "MIT" ]
null
null
null
import socketio import socketio sio = socketio.Client() @sio.event def connect(): print('connection established') @sio.event def my_message(data): print('message received with ', data) sio.emit('my response', {'response': 'my response'}) @sio.event def disconnect(): print('disconne...
17.818182
57
0.660714
47
392
5.489362
0.531915
0.093023
0.127907
0
0
0
0
0
0
0
0
0.012658
0.193878
392
21
58
18.666667
0.803797
0
0
0.333333
0
0
0.320755
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.333333
0.2
0
0
0
null
0
0
0
0
0
0
0
0
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
f5869e041f8cfc604cdaeae8bc529488e18f09e4
3,812
py
Python
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
103
2015-03-28T14:32:44.000Z
2021-03-31T08:20:24.000Z
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
6
2016-05-17T13:31:56.000Z
2020-11-13T17:19:19.000Z
zarr-dataset/test_anime_faces.py
tinon224/experiments
cbe066fb9eec20f290eaff5bb19131616af61bee
[ "MIT" ]
106
2015-05-10T14:29:06.000Z
2021-07-13T08:19:19.000Z
import os import zarr import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from torch.utils.data import Dataset from tqdm import tqdm, trange class FaceDataset(Dataset): def __init__(self, path, transforms=None): self.path = path self.keys = (...
33.147826
88
0.597587
485
3,812
4.564948
0.294845
0.020325
0.012195
0.01626
0.248419
0.195122
0.169828
0.143631
0.107498
0.072267
0
0.027646
0.278856
3,812
114
89
33.438596
0.777737
0
0
0.12766
0
0
0.035414
0.013641
0
0
0
0
0.010638
1
0.06383
false
0
0.085106
0.010638
0.202128
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
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
f586db857714c3a406cc8d011335a90b361a86d4
1,066
py
Python
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
null
null
null
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
2
2021-03-31T19:47:28.000Z
2021-06-08T20:39:41.000Z
pepper/spiders/pepper.py
Guilehm/dr-pepper-crawler
0cc02f8b9bf9a739cb1644d4ef4c0c566428f6a2
[ "MIT" ]
null
null
null
import os import scrapy from pepper.items import PepperItem class PepperSpider(scrapy.Spider): name = 'pepper' start_urls = ['https://blog.drpepper.com.br'] def parse(self, response): images = response.xpath( './/img[contains(@class,"size-full")]' ) images += respons...
28.052632
93
0.541276
113
1,066
5.044248
0.513274
0.091228
0.1
0.115789
0.175439
0.122807
0
0
0
0
0
0.001339
0.29925
1,066
37
94
28.810811
0.761714
0
0
0.068966
0
0
0.231707
0.167917
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.241379
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
f5885ba233a8e2203989f8de45355db074bbea32
4,334
py
Python
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
5
2015-03-12T00:36:33.000Z
2022-02-24T16:41:25.000Z
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
133
2016-02-03T23:54:45.000Z
2022-03-30T21:33:58.000Z
spotseeker_server/test/search/uw_noise_level.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
6
2015-01-07T23:21:15.000Z
2017-12-07T08:26:33.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from django.test.client import Client from django.test.utils import override_settings import simplejson as json from spotseeker_server.models import Spot, SpotExtendedInfo from spotseeker_server.org_...
42.910891
79
0.682972
527
4,334
5.358634
0.220114
0.037181
0.027266
0.03966
0.415368
0.360836
0.342422
0.342422
0.330737
0.330737
0
0.002384
0.225658
4,334
100
80
43.34
0.839094
0.171435
0
0.185714
0
0
0.07631
0.028474
0
0
0
0
0.114286
1
0.171429
false
0
0.085714
0.014286
0.314286
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
f58db2e3a8108081fdad6ca36c2b07a1f84d614d
1,476
py
Python
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
1
2021-06-30T10:34:38.000Z
2021-06-30T10:34:38.000Z
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
null
null
null
_03_AttributesAndMethodsLab/_02_Integer.py
Andrey-V-Georgiev/PythonOOP
73aabdccace5ce7183c39e2f5674f7e17475b1cc
[ "MIT" ]
null
null
null
from math import floor class Integer: def __init__(self, value): self.value = value @classmethod def from_float(cls, float_value): if isinstance(float_value, float): return cls(floor(float_value)) else: return 'value is not a float' @classmethod d...
25.448276
89
0.554201
185
1,476
4.254054
0.378378
0.045743
0.068615
0.043202
0.041931
0.041931
0
0
0
0
0
0.025484
0.335366
1,476
57
90
25.894737
0.776758
0
0
0.272727
0
0
0.063008
0
0
0
0
0
0
1
0.136364
false
0.022727
0.022727
0.022727
0.386364
0.068182
0
0
0
null
0
0
0
0
0
0
0
0
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
f58e82435946520f98ad569c02443f0eda8332d6
1,988
py
Python
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
6
2017-04-06T02:55:16.000Z
2020-01-27T05:14:12.000Z
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
13
2016-09-12T14:24:22.000Z
2021-10-22T01:19:43.000Z
bot/finance.py
kianhean/ShiokBot
948417ead579d7476350592f0a960c2c0ea8b757
[ "BSD-2-Clause" ]
1
2016-09-12T14:01:49.000Z
2016-09-12T14:01:49.000Z
import json from urllib.request import urlopen import requests from bs4 import BeautifulSoup def get_sti(): # https://github.com/hongtaocai/googlefinance return '<a href="https://chart.finance.yahoo.com/t?s=%5eSTI&lang=en-SG&region=SG&width=300&height=180" >' def get_fx(): url = 'https://eservices.mas....
33.694915
153
0.639336
311
1,988
3.932476
0.379421
0.107931
0.098119
0.139002
0
0
0
0
0
0
0
0.059291
0.177062
1,988
58
154
34.275862
0.688264
0.040241
0
0.05
0
0.05
0.291645
0
0
0
0
0
0
1
0.075
false
0
0.1
0.025
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f5931d77f9a036d1b90d5e9b889749394d2eff5e
1,124
py
Python
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
1
2021-05-31T09:40:19.000Z
2021-05-31T09:40:19.000Z
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
1
2021-06-30T14:35:22.000Z
2021-06-30T14:35:22.000Z
pipeline/filterstories.py
Xirider/BookGen
6eaffa936aea3215944dbfbf7ec92398b6e44587
[ "MIT" ]
null
null
null
from joblib import Memory cachedir = "cache" memory = Memory(cachedir, verbose=10) # @memory.cache def filter_ff_stories(books, max_rating, min_words, max_words, min_chapters, max_chapters, max_books): print("filtering ff stories") ratings = {"K":1, "K+":2, "T":3, "M":4, "MA":5 } rating_number = ratings...
25.545455
102
0.572954
133
1,124
4.699248
0.413534
0.0704
0.0416
0.048
0
0
0
0
0
0
0
0.015152
0.295374
1,124
44
103
25.545455
0.77399
0.011566
0
0.142857
0
0
0.085586
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.107143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
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
f594558a69e840af8885fc68a994d40b44b65eaf
1,169
py
Python
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
src/data/CIFAR10_utils.py
namanwahi/Transfer-Learning
93b9f664fd727a93e0b09b859a20d863602ec743
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms from torch.utils.data.sampler import SubsetRandomSampler from torch.utils.data import DataLoader import os path = os.path.abspath(__file__) dir_path = os.path.dirname(path) resnet_18_default = 224 def _get_dataset(resize=resnet_18_default): ...
33.4
107
0.718563
151
1,169
5.390728
0.437086
0.014742
0.018428
0.02457
0.117936
0.117936
0.117936
0.014742
0.014742
0.014742
0
0.033333
0.153122
1,169
34
108
34.382353
0.788889
0.044482
0
0
0
0
0.035874
0
0
0
0
0
0
1
0.115385
false
0
0.230769
0.038462
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
f5970041908938ed814405d6c8377946dc2070bf
3,680
py
Python
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
SVHN/svhn.py
Tenant/Densenet-Tensorflow
27dca5a3f1a18ae070a8a6387c8a36b2a4be197e
[ "MIT" ]
null
null
null
from scipy import io import numpy as np import random import tensorflow as tf class_num = 10 image_size = 32 img_channels = 3 def OneHot(label,n_classes): label=np.array(label).reshape(-1) label=np.eye(n_classes)[label] return label def prepare_data(): classes = 10 data1 = io.loadmat('./data/...
32.857143
108
0.6
534
3,680
3.902622
0.170412
0.048944
0.020154
0.042226
0.144434
0.018234
0
0
0
0
0
0.04681
0.216304
3,680
112
109
32.857143
0.675798
0.045924
0
0.075949
0
0
0.04675
0.018529
0
0
0
0
0
1
0.075949
false
0
0.050633
0
0.202532
0.025316
0
0
0
null
0
0
0
0
0
0
0
0
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
f5a27b850295f14cce9d9e2cff15b6524fbbecf8
4,562
py
Python
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
1
2022-01-18T09:53:34.000Z
2022-01-18T09:53:34.000Z
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
null
null
null
cogs/automod.py
ZeroTwo36/midna
f78591baacdd32386d9155cb7728de7384016361
[ "MIT" ]
null
null
null
import discord as nextcord import asyncio from discord.ext import commands import json import time import typing def log(*,text): ... class AutoMod(commands.Cog): def __init__(self,bot): self.bot=bot self._cd = commands.CooldownMapping.from_cooldown(5, 5, commands.BucketType.membe...
38.016667
153
0.622534
583
4,562
4.806175
0.283019
0.053533
0.044968
0.057816
0.450749
0.411492
0.377587
0.377587
0.287652
0.287652
0
0.003257
0.259754
4,562
119
154
38.336134
0.826177
0.010083
0
0.355556
0
0
0.17627
0
0
0
0
0
0
1
0.044444
false
0
0.066667
0
0.133333
0.011111
0
0
0
null
0
0
0
0
0
0
0
0
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
f5a40afb92b821bdbd1bca8cea58ac0b9702d2e6
960
py
Python
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
task07.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
# Adam # A program that reads in a text # file and outputs the number of e's it contains # The program takes the filename from # an argument on the command line. # I found information on this website: # https://www.sanfoundry.com/python-program-read-file-counts-number/ #fname = input("Enter file name: ") #l = input(...
20.869565
68
0.558333
143
960
3.748252
0.447552
0.014925
0.05597
0.070896
0.395522
0.309701
0.309701
0.309701
0.309701
0.309701
0
0.006211
0.329167
960
45
69
21.333333
0.826087
0.596875
0
0
0
0
0.052342
0
0
0
0
0
0
1
0
false
0
0
0
0
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
f5a59287ceaf7b3b0006e335abd2aae06f9ad302
3,936
py
Python
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
texext/tests/test_tinypages.py
effigies/texext
545ecf3715ab43bfb95859861fbb17af1fef512d
[ "BSD-2-Clause" ]
null
null
null
""" Tests for tinypages build using sphinx extensions """ from os.path import (join as pjoin, dirname, isdir) import sphinx SPHINX_ge_1p5 = sphinx.version_info[:2] >= (1, 5) from sphinxtesters import PageBuilder HERE = dirname(__file__) PAGES = pjoin(HERE, 'tinypages') from texext.tests.test_plotdirective import f...
37.485714
71
0.54497
430
3,936
4.85814
0.386047
0.038775
0.028722
0.022978
0.154141
0.101484
0.067018
0
0
0
0
0.01037
0.314024
3,936
104
72
37.846154
0.763333
0.055132
0
0.206897
0
0
0.401295
0.057713
0
0
0
0
0.045977
1
0.034483
false
0
0.057471
0
0.126437
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
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
f5a8efb033fff75dd7f358a028f0ce20386e8ec9
3,708
py
Python
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
1
2021-04-07T14:25:01.000Z
2021-04-07T14:25:01.000Z
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
5
2021-03-30T14:08:53.000Z
2021-09-22T19:29:42.000Z
core.py
marcolcl/django-toolkit
f425cccb6f55f3afce4326e7e79770e5c36c9646
[ "MIT" ]
null
null
null
import logging from django.core.exceptions import ObjectDoesNotExist from django.db import transaction from django.http import HttpRequest from rest_framework.exceptions import NotFound from rest_framework.test import APIRequestFactory from rest_framework.views import exception_handler, APIView from typing import List,...
33.107143
128
0.702805
462
3,708
5.502165
0.365801
0.035799
0.033438
0.030685
0.049567
0
0
0
0
0
0
0.005189
0.220334
3,708
111
129
33.405405
0.874092
0.423948
0
0
0
0
0.028813
0
0
0
0
0
0
1
0.061224
false
0.020408
0.163265
0
0.306122
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
f5aa196ccf6037cd4fcdad669c9f9252c8778f6e
436
py
Python
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/past/past201912_f.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
S = input() arr = [] now = [] counter = 0 for s in S: now.append(s.lower()) if s.isupper(): if counter == 0: counter += 1 else: arr.append(''.join(now)) now = [] counter = 0 arr.sort() for word in arr: for i, s in enumerate(word): if i ...
19.818182
40
0.428899
59
436
3.169492
0.40678
0.128342
0.117647
0
0
0
0
0
0
0
0
0.023077
0.40367
436
21
41
20.761905
0.696154
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
190f3d0f2aa0d41a590c2d4d36fe77e3833762f3
2,171
py
Python
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
1
2020-10-14T23:02:04.000Z
2020-10-14T23:02:04.000Z
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
9
2020-11-07T23:33:28.000Z
2021-12-13T09:22:07.000Z
setup.py
biodatageeks/pysequila
2fb3b83f008e6b7f874648ea02e7ca307d8519d3
[ "Apache-2.0" ]
1
2020-11-07T22:35:40.000Z
2020-11-07T22:35:40.000Z
# -*- coding: utf-8 -*- """setup.py""" import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand class Tox(TestCommand): user_options = [('tox-args=', 'a', 'Arguments to pass to tox')] def initialize_options(self): TestCommand.initialize_options(self) ...
28.194805
76
0.64947
247
2,171
5.582996
0.493927
0.068891
0.090645
0.037708
0
0
0
0
0
0
0
0.008182
0.211884
2,171
76
77
28.565789
0.797779
0.014279
0
0
0
0
0.305061
0.009841
0
0
0
0
0
1
0.067797
false
0.016949
0.101695
0
0.220339
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
1911d18a99f00abe9dd822c30eace393500445cb
7,785
py
Python
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
1
2019-10-21T18:19:12.000Z
2019-10-21T18:19:12.000Z
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
null
null
null
tictactoe.py
smrsassa/tic-tac-toe-pygame
36f738fb94a3a138ef2aa21d409558e3d1680526
[ "MIT" ]
null
null
null
import pygame import random from time import sleep white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) green = (0, 255, 0) blue = (0, 0, 255) pygame.init() largura = 320 altura = 320 fundo = pygame.display.set_mode((largura, altura)) pygame.display.set_caption("TicTacToe") def texto(msg, cor, tam, x, y): ...
31.26506
116
0.491715
1,032
7,785
3.699612
0.119186
0.096647
0.044526
0.012572
0.608172
0.536407
0.452331
0.322944
0.295443
0.248298
0
0.111527
0.382659
7,785
248
117
31.391129
0.682896
0
0
0.451327
0
0
0.008092
0
0
0
0
0
0
1
0.022124
false
0
0.013274
0
0.035398
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
191359000d3e32159cc42150dd476b64da855e66
5,794
py
Python
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
2
2015-03-16T21:18:27.000Z
2017-10-09T19:59:24.000Z
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
pyec/distribution/bayes/parser.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
""" Copyright (C) 2012 Alan J Lockett 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, distribute,...
43.893939
460
0.576458
688
5,794
4.848837
0.287791
0.042866
0.041367
0.041966
0.158873
0.107614
0.056954
0.056954
0.056954
0.020384
0
0.008017
0.28961
5,794
132
461
43.893939
0.802478
0.197791
0
0.097826
0
0
0.028067
0
0
0
0
0
0
1
0.032609
false
0
0.032609
0
0.108696
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
191840622ba4f376a7f93c8724514c6d2f52d3bb
1,393
py
Python
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
6
2021-03-30T13:09:41.000Z
2021-09-08T01:50:42.000Z
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import Location,Category,Image def index(request): '''Main view function for the start page''' images = Image.get_images() template = loader.get_template('index.html') context = { ...
30.955556
67
0.65542
153
1,393
5.875817
0.30719
0.03337
0.05673
0.083426
0.173526
0.173526
0.173526
0
0
0
0
0
0.233309
1,393
44
68
31.659091
0.84176
0.08112
0
0.257143
0
0
0.114715
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.314286
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
1918493233bb0f6b63771c2685165671159e3808
509
py
Python
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
x = (input("enters hours")) y = (input("enters rate")) def compute_pay(hours, rate): """The try block ensures that the user enters a value between from 0-1 otherwise an error message pops up""" try: hours = float(x) rate = float(y) if hours <= 40: pay= float(hours * rate...
23.136364
63
0.563851
71
509
4.014085
0.535211
0.077193
0
0
0
0
0
0
0
0
0
0.028818
0.318271
509
21
64
24.238095
0.792507
0.200393
0
0
0
0
0.090452
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.2
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
1918ecc1cb7ed0d73d2876e4710c8c0ffca95358
557
py
Python
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
1
2021-09-19T13:33:33.000Z
2021-09-19T13:33:33.000Z
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
import phonenumbers from phonenumbers import geocoder, carrier def get_information_about_number(phone_numbers): number = phonenumbers.parse(phone_numbers, "en") phone_location = geocoder.description_for_number(number, "en") phone_carrier = carrier.name_for_number(number, "en") print("The Locat...
39.785714
125
0.732496
69
557
5.565217
0.449275
0.09375
0.098958
0.130208
0
0
0
0
0
0
0
0
0.174147
557
14
126
39.785714
0.834783
0
0
0
0
0
0.201835
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
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
191b02340ae1fb3a92d5b7d4ecfd3b82e78caed3
3,494
py
Python
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
8
2019-06-04T16:21:07.000Z
2021-09-05T07:24:20.000Z
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
null
null
null
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
1
2019-06-21T14:37:18.000Z
2019-06-21T14:37:18.000Z
# TODO: 1. Add indicator that node should be run by python # line above indicates that python is responsible for running this node import os import csv import rospy import numpy as np import pygame from utilities import pipline import cv2 from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Im...
30.920354
121
0.642244
450
3,494
4.891111
0.388889
0.020445
0.022717
0.040891
0.122672
0.101772
0.080872
0.080872
0.040891
0
0
0.010922
0.292501
3,494
113
122
30.920354
0.87945
0.360904
0
0.068966
0
0
0.066667
0
0
0
0
0.00885
0
1
0.103448
false
0.017241
0.155172
0
0.293103
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
191ea83d06729e5bde9055413df2bd0a44ff8fe7
2,669
py
Python
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
import logging import os import json import requests try: from alerta.plugins import app # alerta >= 5.0 except ImportError: from alerta.app import app # alerta < 5.0 from alerta.plugins import PluginBase LOG = logging.getLogger('alerta.plugins.beacon') BEACON_HEADERS = { 'Content-Type': 'applicati...
35.118421
104
0.573248
291
2,669
5.092784
0.381443
0.032389
0.05668
0.040486
0.064103
0
0
0
0
0
0
0.024285
0.305732
2,669
75
105
35.586667
0.775499
0.067066
0
0.122807
0
0
0.18101
0.008485
0
0
0
0
0
1
0.070175
false
0
0.140351
0.035088
0.280702
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
192369f557f40b35dc6e1a446089e36a7716438d
488
py
Python
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
from sqlalchemy import ( Column, Integer, String, DateTime, ) from .models import Base class RewardManagerTransaction(Base): __tablename__ = "reward_manager_txs" signature = Column(String, nullable=False, primary_key=True) slot = Column(Integer, nullable=False) created_at = Column(DateT...
25.684211
64
0.719262
54
488
6.240741
0.537037
0.115727
0
0
0
0
0
0
0
0
0
0
0.170082
488
19
65
25.684211
0.832099
0
0
0
0
0
0.03681
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0.055556
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
1924e772ac06a1b05910f40c7a40911d19ba34ea
2,326
py
Python
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
3
2020-04-10T16:47:25.000Z
2020-05-17T14:44:47.000Z
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
null
null
null
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
1
2020-04-12T09:38:22.000Z
2020-04-12T09:38:22.000Z
from nonebot import on_command, CommandSession,permission as perm import asyncio import traceback from helper import getlogger,msgSendToBot,CQsessionToStr,data_read,data_save from module.roll import match_roll logger = getlogger(__name__) __plugin_name__ = 'ROLL骰' __plugin_usage__ = r""" roll命令 """ #预处理 def headdeal(se...
32.305556
87
0.602322
282
2,326
4.812057
0.407801
0.097273
0.025792
0.01916
0.179808
0.140015
0.06927
0
0
0
0
0.024144
0.234308
2,326
72
88
32.305556
0.737788
0.019347
0
0.095238
0
0
0.138779
0.02152
0.015873
0
0
0
0
1
0.015873
false
0
0.079365
0
0.190476
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
192a9867b561e4cc653889667cda0bafef034b8e
4,706
py
Python
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
# coding:utf-8 import re from Helper.common import * class APIUsagePatternSearcher: def __init__(self, OPTIONS, custom_args, numOfRecs): self.OPTIONS = OPTIONS self.custom_args = custom_args self.numOfRecs = numOfRecs def searchAPIUsagePatterns(self): # Collect in allProjects ...
35.923664
116
0.563536
444
4,706
5.891892
0.279279
0.030581
0.03211
0.020642
0.196865
0.177752
0.177752
0.177752
0.177752
0.177752
0
0.005175
0.342966
4,706
130
117
36.2
0.84088
0.112622
0
0.306818
0
0
0.038989
0.005054
0
0
0
0
0
1
0.068182
false
0
0.022727
0
0.147727
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
192b90d17689e6aeda21369042966d2de1a7f460
335
py
Python
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
while True : n = int(input()) if n == 0 : break else : arr = input().split() check = True for i in range(n) : if int(arr[int(arr[i]) - 1]) != i + 1 : check = False if check : print('ambiguous') else : print('...
23.928571
51
0.402985
39
335
3.461538
0.538462
0.088889
0
0
0
0
0
0
0
0
0
0.01676
0.465672
335
14
52
23.928571
0.73743
0
0
0.142857
0
0
0.065476
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
192bad6eff2c66e4ca11db59cd7ea795ca554716
2,140
py
Python
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
1
2021-12-19T14:59:31.000Z
2021-12-19T14:59:31.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
3
2021-09-16T20:47:58.000Z
2021-12-19T02:45:59.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
null
null
null
"""Add-On functions for speech interface.""" from __future__ import annotations from typing import TYPE_CHECKING, List from voiceassistant.addons.create import Addon, CoreAttribute, addon_begin, addon_end from voiceassistant.exceptions import IntegrationError from .base import Integration if TYPE_CHECKING: fro...
24.883721
98
0.700935
255
2,140
5.686275
0.368627
0.086897
0.075862
0.066207
0.246897
0.146207
0
0
0
0
0
0.006463
0.204673
2,140
85
99
25.176471
0.845476
0.101869
0
0.18
0
0
0.053305
0
0
0
0
0
0
1
0.12
false
0.02
0.18
0
0.44
0.02
0
0
0
null
0
0
0
0
0
0
0
0
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
192bfb70b6700b39e9f6c097fb207ffc155ff246
4,602
py
Python
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
1
2018-07-14T07:09:23.000Z
2018-07-14T07:09:23.000Z
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
from math import cos, sin import numpy as np import tensorflow as tf from .....simulator import Agent # from simulator import Agent tf.set_random_seed(1234) class TensorflowNoveltyDetector(Agent): def execute(self, action): raise NotImplementedError() def __init__(self, world, learning=True, x=0.0,...
37.112903
100
0.634941
562
4,602
4.948399
0.197509
0.053937
0.046746
0.035958
0.401654
0.377202
0.356706
0.307084
0.276879
0.248112
0
0.008331
0.269665
4,602
123
101
37.414634
0.819101
0.005867
0
0.326733
0
0
0.013995
0
0
0
0
0
0
1
0.118812
false
0.009901
0.039604
0.009901
0.19802
0.009901
0
0
0
null
0
0
0
0
0
0
0
0
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
192c65ff044acb45e1b0a8921920efeebef0c02a
4,093
py
Python
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
10
2015-11-19T12:39:50.000Z
2021-02-21T20:15:29.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
109
2015-06-15T05:03:33.000Z
2018-01-14T10:18:48.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
8
2015-07-29T04:18:27.000Z
2018-11-02T17:15:40.000Z
from __future__ import print_function import os import sys from errno import ENOENT from os.path import dirname, abspath, join, isdir from setuptools import setup, find_packages from distutils.command.upload import upload from pywincffi import __version__ try: WindowsError except NameError: WindowsError = ...
31.728682
79
0.583435
424
4,093
5.528302
0.476415
0.025597
0.042662
0.013652
0.045222
0.045222
0.027304
0.027304
0.027304
0
0
0.004912
0.303689
4,093
128
80
31.976563
0.817544
0.07916
0
0.08
0
0
0.219317
0.013607
0
0
0
0
0
1
0.01
false
0
0.09
0
0.11
0.03
0
0
0
null
0
0
0
0
0
0
0
0
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
192f1d7e5401a66f3ca654feee18cca382797d01
2,941
py
Python
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
import random from helpers import Leaf, Rect, RoomList from renderer import MapRenderer from typing import List, Any class BSPTree: def __init__(self): self.level: List = [] self.room: object = None self._leafs: List = [] self.MAX_LEAF_SIZE: int = 32 self.ROOM_MAX_SIZE: int...
35.011905
82
0.550493
398
2,941
3.899497
0.298995
0.05799
0.045103
0.049613
0.132732
0.055412
0.055412
0.055412
0.055412
0.055412
0
0.037988
0.33764
2,941
83
83
35.433735
0.758727
0.112547
0
0.033898
0
0
0.002309
0
0
0
0
0
0
1
0.101695
false
0
0.067797
0
0.20339
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
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
19340df43351011be81d21c8afe59df9e5f9d483
1,821
py
Python
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Filename: maxSonarTTY.py # Reads serial data from Maxbotix ultrasonic rangefinders # Gracefully handles most common serial data glitches # Use as an importable module with "import MaxSonarTTY" # Returns an integer value representing distance to target in millimeters from time import time from ser...
33.109091
84
0.556837
186
1,821
5.430108
0.553763
0.079208
0
0
0
0
0
0
0
0
0
0.012965
0.364635
1,821
54
85
33.722222
0.859983
0.253707
0
0.228571
0
0
0.048399
0
0
0
0
0
0
1
0.057143
false
0
0.057143
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1935e935a94ea899193f63cf6a01d898e2f578ec
2,577
py
Python
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
15
2015-12-14T19:07:28.000Z
2022-02-28T13:32:11.000Z
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
null
null
null
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
4
2017-02-08T10:49:55.000Z
2019-03-19T18:47:46.000Z
import sys import os import io import gzip import mock import tempfile import lumbermill.utils.DictUtils as DictUtils from tests.ModuleBaseTestCase import ModuleBaseTestCase from lumbermill.output import File class TestFile(ModuleBaseTestCase): def setUp(self): super(TestFile, self).setUp(File.File(mock...
37.347826
128
0.629414
299
2,577
5.244147
0.324415
0.102041
0.107143
0.040816
0.451531
0.369898
0.369898
0.369898
0.335459
0.335459
0
0.003203
0.273186
2,577
69
129
37.347826
0.833956
0
0
0.305085
0
0
0.11249
0.017067
0
0
0
0
0.050847
1
0.101695
false
0
0.152542
0
0.305085
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
19368974491b6add6e004f6c293a6ac67a000708
4,517
py
Python
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import pickle import time import sys from safe_gpu.safe_gpu import GPUOwner from pero_ocr.decoding import confusion_networks from pero_ocr.decoding.decoding_itf import prepare_dense_logits, construct_lm, get_ocr_charset, BLANK_SYMBOL import pero_ocr.decoding.decoders as decoder...
34.480916
150
0.651317
611
4,517
4.621931
0.276596
0.044618
0.084278
0.03364
0.190864
0.093484
0.093484
0.052408
0.030453
0
0
0.003977
0.220722
4,517
130
151
34.746154
0.798295
0.004649
0
0.12
0
0
0.169967
0
0
0
0
0
0
1
0.05
false
0
0.09
0
0.18
0.01
0
0
0
null
0
0
0
0
0
0
0
0
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
1936ec832cd585d63cf22975d9e0473abed83035
1,608
py
Python
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
5
2020-07-15T09:01:42.000Z
2020-09-28T08:45:21.000Z
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
""" An in-memory content store with exact matching""" import time from PiCN.Packets import Content, Name from PiCN.Layers.ICNLayer.ContentStore import BaseContentStore, ContentStoreEntry class ContentStoreMemoryExact(BaseContentStore): """ A in memory Content Store using exact matching""" def __init__(self...
34.212766
83
0.65796
196
1,608
5.168367
0.285714
0.069102
0.0385
0.050346
0.090819
0.041461
0
0
0
0
0
0.001676
0.258085
1,608
46
84
34.956522
0.847443
0.085199
0
0.058824
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.088235
0
0.382353
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
193ab624d131e849acb875b0bc59e01faf091e1d
279
py
Python
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
2
2018-02-06T06:24:03.000Z
2018-03-20T03:32:13.000Z
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
32
2017-02-21T20:01:43.000Z
2020-02-08T21:52:16.000Z
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
6
2017-03-21T21:16:40.000Z
2020-02-08T20:46:20.000Z
from django_slack_oauth.models import SlackOAuthRequest def register_token(request, api_data): SlackOAuthRequest.objects.create( associated_user=request.user, access_token=api_data.pop('access_token'), extras=api_data ) return request, api_data
27.9
55
0.749104
34
279
5.852941
0.617647
0.140704
0.140704
0
0
0
0
0
0
0
0
0
0.175627
279
10
56
27.9
0.865217
0
0
0
0
0
0.042857
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
193cb661b098c4c5b452e6a65209cb9479f364c3
4,326
py
Python
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
import os from get_git.utils import make_request GH_URL = 'https://api.github.com/graphql' TOKEN=os.environ.get('GH_API_TOKEN') class GithubClient: def __init__(self, username): self.username = username def get_user(self): query = """ {user(login:"%s") { starredRepos...
35.170732
100
0.487286
350
4,326
5.837143
0.211429
0.0744
0.082232
0.096916
0.52325
0.441997
0.441997
0.408223
0.33676
0.33676
0
0.006998
0.405455
4,326
122
101
35.459016
0.787325
0
0
0.4
0
0
0.596625
0.035599
0
0
0
0
0
1
0.072727
false
0
0.018182
0
0.172727
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
193eb2395e6afc892c407dab660196002686ac81
15,517
py
Python
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
from __future__ import division, print_function, unicode_literals from config import * __all__ = ['Map', 'Vertex', 'Edge', 'State'] class State: FREE = 0 CLOSED = 1 MANDATORY = 2 OPTIONAL = 3 class Square: def __init__(self): self._has_card = False @property ...
32.875
98
0.569827
1,980
15,517
4.198485
0.049495
0.057019
0.02887
0.036569
0.654276
0.549621
0.463491
0.371587
0.261037
0.248767
0
0.007443
0.333312
15,517
471
99
32.944798
0.796133
0.00638
0
0.400517
0
0
0.001205
0
0
0
0
0
0
1
0.191214
false
0
0.005168
0.095607
0.374677
0.002584
0
0
0
null
0
0
0
0
0
0
0
0
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
194088485187df0c1ce817432f67940ecca472cb
1,035
py
Python
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
139
2016-02-18T02:31:04.000Z
2022-02-18T10:38:06.000Z
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
8
2016-04-18T08:10:44.000Z
2020-12-30T08:49:33.000Z
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
50
2016-05-21T01:17:23.000Z
2022-02-18T01:27:41.000Z
import numpy as np import scipy.stats def EI(predictor, training, test, fmax=None): fmean = predictor.get_post_fmean(training, test) fcov = predictor.get_post_fcov(training, test) fstd = np.sqrt(fcov) if fmax is None: fmax = np.max(predictor.get_post_fmean(training, training)) temp1 = (f...
24.069767
67
0.656039
142
1,035
4.683099
0.28169
0.144361
0.168421
0.126316
0.526316
0.526316
0.526316
0.526316
0.526316
0.526316
0
0.011321
0.231884
1,035
42
68
24.642857
0.825157
0
0
0.433333
0
0
0
0
0
0
0
0
0
1
0.1
false
0.033333
0.066667
0
0.266667
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
19414c412df3d7fe628fab1103ed1b978f8a57d8
1,528
py
Python
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
2
2019-06-28T20:08:56.000Z
2021-03-30T15:24:10.000Z
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
null
null
null
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np LOCAL_DIR = '/tmp/' def main(**kwargs): # Retrieve acampus from Xcom ti = kwargs["ti"] source = ti.xcom_pull( task_ids="report_init_task") campus_name = source["campus"] # Read data file to create a data frame df = pd.read_csv(LOCAL_DIR + camp...
27.781818
78
0.621073
198
1,528
4.631313
0.479798
0.043621
0.023991
0.037077
0.058888
0.058888
0
0
0
0
0
0.005978
0.233639
1,528
54
79
28.296296
0.777114
0.176047
0
0
0
0
0.216974
0.045637
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.107143
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
1941b9b85d89dbfd9a868d046110eb8fc8e84d5a
1,401
py
Python
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
null
null
null
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
21
2020-01-29T22:03:54.000Z
2020-07-29T17:55:44.000Z
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
null
null
null
""" Holds an OrgChecker object that runs checks at the organization level (instead of at the item level) """ class OrgChecker: """ An OrgChecker runs checks at the org level, as opposed to the item level. For example, checking whether there are any items with the same title. To use, instantiate and t...
29.808511
117
0.628837
180
1,401
4.722222
0.388889
0.082353
0.056471
0.081176
0.063529
0
0
0
0
0
0
0.001007
0.291221
1,401
46
118
30.456522
0.854985
0.403283
0
0
0
0
0.034621
0.034621
0
0
0
0
0
1
0.157895
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
1941f729283db4adc38960fd6ecd423a78269f4b
994
py
Python
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from datetime import datetime import sys def create_blog_post(title=""): file_date = datetime.now().strftime("%Y-%m-%d") file_name = file_date + "---" + title.replace(" ", "-") + ".md" print(file_name) try: file = open("content/posts/" + file_name, "x") except FileExists...
26.157895
80
0.573441
120
994
4.558333
0.541667
0.054845
0.076782
0
0
0
0
0
0
0
0
0.005249
0.2334
994
37
81
26.864865
0.712598
0.017103
0
0
0
0
0.347336
0
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.096774
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
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
194306ac920374768433626240e00df6f0b039ac
1,436
py
Python
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2017 The Procyon Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
29.306122
74
0.664345
194
1,436
4.917526
0.530928
0.062893
0.044025
0.04717
0
0
0
0
0
0
0
0.012658
0.229805
1,436
48
75
29.916667
0.84991
0.673398
0
0.352941
0
0
0.071588
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1943cab210caf1760efe3b398e0efc3f17bdc7ab
693
py
Python
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
from allennlp.common import Registrable import torch class Criterion(torch.nn.Module, Registrable): """ A `Criterion` is a `Module` that ... """ def __init__(self, reduction: str = 'mean', verbose: bool = False,) -> None: super().__init__() self.redu...
23.896552
51
0.572872
69
693
5.565217
0.536232
0.041667
0.088542
0
0
0
0
0
0
0
0
0
0.31746
693
28
52
24.75
0.811839
0.125541
0
0.117647
0
0
0.018644
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.294118
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
1945a3089e1f6313c2cc75593bf5a6b3e3eaea61
4,767
py
Python
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
14
2021-09-15T02:49:18.000Z
2022-03-15T06:00:54.000Z
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
11
2021-09-17T03:17:07.000Z
2022-02-08T03:12:41.000Z
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
2
2021-11-06T19:22:29.000Z
2022-03-24T11:56:11.000Z
import torch import os from torch import Tensor import torch.nn as nn from fairseq import options, utils, checkpoint_utils from fairseq.dataclass import ChoiceEnum, FairseqDataclass from fairseq.models import ( transformer, FairseqLanguageModel, register_model, register_model_architecture, FairseqEn...
42.5625
102
0.680092
540
4,767
5.688889
0.209259
0.041667
0.041667
0.030924
0.374349
0.244466
0.178385
0.122396
0.122396
0.122396
0
0.008071
0.246276
4,767
111
103
42.945946
0.846925
0.016782
0
0.171717
0
0.010101
0.10831
0.033753
0
0
0
0
0
1
0.050505
false
0
0.090909
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
1946122a44cafe21fe0a3f27b222402b8e3d88b9
6,345
py
Python
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
null
null
null
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
1
2020-03-24T18:20:15.000Z
2020-03-25T22:56:06.000Z
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
null
null
null
from .ensembl import Ensembl from .util import is_ensembl_id ########## ## Exon ## ########## def get_exons(feature, feature_type): exons = [] for exon_id in get_exon_ids(feature, feature_type): exons.append(_query(exon_id, "exon", Ensembl().data.exon_by_id)) return exons def get_exon_ids(featur...
35.446927
96
0.695035
859
6,345
4.759022
0.083818
0.191047
0.149706
0.063601
0.710861
0.652887
0.565802
0.536937
0.475049
0.364726
0
0.00058
0.18424
6,345
178
97
35.646067
0.789219
0.040032
0
0.297521
0
0
0.105503
0
0
0
0
0
0
1
0.132231
false
0
0.016529
0.008264
0.380165
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
194675cce0a60e3494b3def09e1010cda20f0f00
1,113
py
Python
MiGRIDS/InputHandler/readAllTimeSeries.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
8
2019-02-18T14:18:55.000Z
2022-03-04T12:34:24.000Z
MiGRIDS/InputHandler/readAllTimeSeries.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2018-09-01T00:30:19.000Z
2018-09-01T01:09:50.000Z
MiGRIDS/InputHandler/readAllTimeSeries.py
acep-uaf/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2019-06-10T19:49:22.000Z
2021-05-08T08:42:57.000Z
from MiGRIDS.InputHandler.readCsv import readCsv def readAllTimeSeries(inputDict): ''' Cycles through a list of files in the AVEC format and imports them into a single dataframe. :param inputDict: :return: pandas.DataFrame with data from all input files. ''' df = None for i in range(len(inp...
33.727273
95
0.591195
132
1,113
4.977273
0.522727
0.082192
0.057839
0
0
0
0
0
0
0
0
0.010724
0.329739
1,113
32
96
34.78125
0.869973
0.340521
0
0
0
0
0.055477
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.166667
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
19476d50e68179e3181c58bfc67d757bccf5c292
6,191
py
Python
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Kemal Kurniawan from typing import Optional import math from einops import rearrange from torch import BoolTensor, Tensor from crf import DepTreeCRF, LinearCRF def compute_aatrn_loss( scores: Tensor, aa_mask: BoolTensor, mask: Optional[BoolTensor] = None, projective: bool = Fal...
37.295181
95
0.709255
876
6,191
4.769406
0.139269
0.03686
0.015318
0.034466
0.689086
0.664433
0.606032
0.574677
0.453088
0.432504
0
0.011621
0.19383
6,191
165
96
37.521212
0.825486
0.139557
0
0.363636
0
0
0.070877
0
0
0
0
0
0.045455
1
0.072727
false
0
0.045455
0
0.209091
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
194979bac6f323e9a28bd3fab05ed2877e60ddea
605
py
Python
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
1
2022-02-03T23:07:20.000Z
2022-02-03T23:07:20.000Z
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
null
null
null
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
null
null
null
import os import json import logging cwd = os.getcwd() list_enemy = [file for file in os.listdir(cwd) if '.json' in file[-5:]] for enemy in list_enemy: try: with open(cwd + '\\' + enemy, 'r') as f: enemy_txt = f.read() enemy_txt = enemy_txt.replace('offsetx','offsetX')....
26.304348
194
0.591736
77
605
4.558442
0.428571
0.11396
0.062678
0.091168
0
0
0
0
0
0
0
0.002188
0.244628
605
22
195
27.5
0.765864
0
0
0
0
0
0.196694
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
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
195261959efe1d29efc067b8292d053eeea3aa60
1,639
py
Python
Chapter05/non-model-view_code.py
trappn/Mastering-GUI-Programming-with-Python
14392c06dd3b9cf655420d09853bce6bfe8fe16d
[ "MIT" ]
138
2018-12-06T15:48:07.000Z
2022-03-28T12:23:12.000Z
Chapter05/non-model-view_code.py
thema27/Mastering-GUI-Programming-with-Python
66f33ff6c07b7e22a396a982a5502bd93c20d785
[ "MIT" ]
16
2019-11-21T08:17:42.000Z
2020-08-19T06:56:48.000Z
Chapter05/non-model-view_code.py
thema27/Mastering-GUI-Programming-with-Python
66f33ff6c07b7e22a396a982a5502bd93c20d785
[ "MIT" ]
116
2018-12-08T18:13:02.000Z
2022-03-22T14:30:57.000Z
import sys from os import path from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc class MainWindow(qtw.QMainWindow): def __init__(self): """MainWindow constructor. This widget will be our main window. We'll define all the UI components in h...
27.779661
60
0.583282
191
1,639
4.921466
0.513089
0.051064
0.047872
0.073404
0
0
0
0
0
0
0
0.002686
0.318487
1,639
58
61
28.258621
0.838854
0.147651
0
0
0
0
0.060895
0
0
0
0
0
0
1
0.05
false
0
0.125
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
1953a970695d2673fad8c3f0a83d3f344f3fbfa4
5,647
py
Python
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
9
2018-07-30T20:12:47.000Z
2021-02-05T17:02:04.000Z
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
14
2020-01-28T22:38:58.000Z
2022-02-10T00:11:21.000Z
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
3
2018-08-08T14:52:53.000Z
2021-01-23T18:00:05.000Z
import numpy as np import scipy as sp import scipy.stats import matplotlib.pyplot as plt class GaussianMixture1D: def __init__(self, mixture_probs, means, stds): self.num_mixtures = len(mixture_probs) self.mixture_probs = mixture_probs self.means = means self.stds = stds def s...
38.155405
168
0.64583
899
5,647
3.684093
0.150167
0.084541
0.092995
0.084541
0.452899
0.422705
0.384662
0.306763
0.28744
0.270531
0
0.015242
0.233221
5,647
147
169
38.414966
0.749654
0.019834
0
0.243478
0
0
0.042134
0.007957
0
0
0
0
0
1
0.069565
false
0
0.034783
0.008696
0.165217
0.017391
0
0
0
null
0
0
0
0
0
0
0
0
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
19556d177fed4def9f6818303c33e5aa562c38b8
904
py
Python
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # author: hpf # create time: 2020/7/16 21:33 # file: shell_sort.py # IDE: PyCharm # 希尔排序(Shell Sort)是插入排序的一种。也称缩小增量排序,是直接插入排序算法的一种更高效的改进版本。 # 希尔排序是非稳定排序算法。该方法因DL.Shell于1959年提出而得名。 希尔排序是把记录按下标的一定增量分组, # 对每组使用直接插入排序算法排序;随着增量逐渐减少,每组包含的关键词越来越多,当增量减至1时,整个文件恰被分成一组,算法便终止。 def shell_sort(alist): n...
21.52381
67
0.535398
112
904
4.223214
0.625
0.07611
0.069767
0.07611
0.095137
0
0
0
0
0
0
0.064784
0.334071
904
42
68
21.52381
0.72093
0.390487
0
0.111111
0
0
0.014953
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.055556
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
1956211e1137a8ec3efab729e58887fd70b0e317
7,307
py
Python
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
1
2018-06-12T12:00:33.000Z
2018-06-12T12:00:33.000Z
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
null
null
null
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
null
null
null
# Completely silly exercises, in real life use: # Python lists: https://docs.python.org/3/tutorial/datastructures.html import unittest import logging logging.basicConfig(level=logging.INFO) # - DoublyLinkedListNode class. class DoublyLinkedListNode: value = None previousNode = None nextNode = None ...
26.765568
72
0.596141
801
7,307
5.319601
0.154806
0.080028
0.118751
0.036142
0.547524
0.47172
0.437691
0.411406
0.37057
0.306736
0
0.012621
0.306008
7,307
272
73
26.863971
0.827647
0.11359
0
0.505682
0
0
0.002339
0
0
0
0
0
0.051136
1
0.136364
false
0
0.011364
0.011364
0.267045
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
195cbcd5dccdd7c73a9db51970b9798eb35a32b9
466
py
Python
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
#Guess program n=18 a=0 y = 1 print("Number of guesses is limited to only 4 times") while a<=3: z=int(input("Enter your choice=")) if z>n: print("Please less your number") a+=1 elif z<n: print("Please increase your number") a += 1 else: print("You win") ...
16.642857
64
0.555794
76
466
3.407895
0.539474
0.015444
0.11583
0.100386
0
0
0
0
0
0
0
0.034375
0.313305
466
27
65
17.259259
0.775
0.027897
0
0.1
0
0
0.412027
0
0
0
0
0
0
1
0
false
0
0
0
0
0.35
0
0
0
null
0
0
0
0
0
0
0
0
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
195cc099346d6a0faa355accfa24ab213925cda9
8,019
py
Python
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
59
2015-03-25T21:29:06.000Z
2022-01-17T22:48:05.000Z
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
11
2015-07-07T07:10:42.000Z
2021-11-21T12:47:42.000Z
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
19
2015-07-13T06:44:44.000Z
2022-02-05T03:09:27.000Z
""" .. module:: soundsystem :Platform: Unix, Windows :Synopsis: Sound system """ import os import pygame import events import ai class SoundSystem(object): """Render system. :Attributes: - *evManager*: event manager - *world*: game world - *screen*: game screen """ ...
43.819672
111
0.60419
959
8,019
4.790407
0.148071
0.036569
0.04963
0.078363
0.623422
0.535263
0.428603
0.415107
0.386156
0.328907
0
0.007389
0.308018
8,019
183
112
43.819672
0.820508
0.07981
0
0.344828
0
0
0.034091
0
0
0
0
0
0
1
0.02069
false
0.006897
0.027586
0
0.062069
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
195d27bed09f6f47effd9b2ab9128a9b8b6d2db2
2,227
py
Python
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- import django import os import sys import datetime import random import time os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings' django.setup() from web.other.models import BilibiliPlay from .helper import bulk_create def test_once_get(): start = time.time() for i in range(0, 1000...
26.511905
186
0.606646
287
2,227
4.508711
0.236934
0.123648
0.162287
0.120556
0.646832
0.611283
0.595054
0.55796
0.493045
0.443586
0
0.017857
0.245622
2,227
83
187
26.831325
0.752381
0.033678
0
0.421053
0
0
0.130123
0.01127
0
0
0
0
0
1
0.070175
false
0
0.140351
0
0.210526
0.070175
0
0
0
null
0
0
0
0
0
0
0
0
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
195f3150d0257121a8dd90bf3f90e35c01b0fa1c
1,921
py
Python
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
import json from django.urls import reverse from misago.acl.testutils import override_acl from misago.categories.models import Category from misago.threads import testutils from misago.users.testutils import AuthenticatedUserTestCase class ThreadPollApiTestCase(AuthenticatedUserTestCase): def setUp(self): ...
30.015625
93
0.605934
228
1,921
4.947368
0.289474
0.031915
0.039894
0.031915
0.31383
0.31383
0.267731
0.148936
0.083333
0.083333
0
0.005764
0.27746
1,921
63
94
30.492063
0.806916
0
0
0.122449
0
0
0.135867
0.042686
0
0
0
0
0
1
0.102041
false
0
0.122449
0.040816
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
196317379bcca4ea114372256f94af6d980d0618
9,717
py
Python
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
import os import re import time import demisto_client from demisto_client.demisto_api.rest import ApiException from demisto_sdk.commands.common.tools import LOG_COLORS, get_yaml, print_color from demisto_sdk.commands.upload.uploader import Uploader SUCCESS_RETURN_CODE = 0 ERROR_RETURN_CODE = 1 ENTRY_TYPE_ERROR = 4 ...
41.348936
115
0.653185
1,281
9,717
4.675254
0.18345
0.122224
0.03974
0.033395
0.251461
0.112373
0.061279
0.039907
0
0
0
0.001973
0.269631
9,717
234
116
41.525641
0.841905
0.184522
0
0.130435
0
0
0.152725
0.030729
0
0
0
0
0
1
0.101449
false
0.007246
0.050725
0
0.23913
0.123188
0
0
0
null
0
0
0
0
0
0
0
0
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
19646d9adaadbd2e2fc9af7b3104bea3fb1c2bae
1,030
py
Python
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
7
2020-12-15T13:25:43.000Z
2021-08-31T14:35:06.000Z
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
2
2020-11-12T12:46:28.000Z
2021-12-21T07:26:28.000Z
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from flycs_sdk.entities import Entity from flycs_sdk.pipelines import Pipeline, PipelineKind from flycs_sdk.transformations import Transformation # Define your transformation SQL query using jinja template for the table name and define the list of table on which this transforma...
27.105263
154
0.694175
139
1,030
5.05036
0.446043
0.049858
0.021368
0.02849
0.02849
0
0
0
0
0
0
0.029343
0.172816
1,030
37
155
27.837838
0.794601
0.233981
0
0.071429
0
0
0.194904
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
1965469fd09240b19440049eb433930a5143a25d
13,252
py
Python
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
import torch.nn.functional as F import torch.nn as nn import torch import torchvision.transforms.functional as VF from PIL import Image import numpy as np import os from os.path import join from collections import Counter # device = torch.device("cuda" if torch.cuda.is_available() else "cpu") import math from ct...
34.066838
145
0.60821
1,873
13,252
4.111052
0.180993
0.024026
0.056364
0.035325
0.522078
0.410779
0.327662
0.296883
0.28
0.25961
0
0.046904
0.235813
13,252
389
146
34.066838
0.712353
0.555916
0
0.025
0
0
0.054653
0.017461
0
0
0
0
0
1
0.075
false
0
0.1
0
0.225
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