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
ee7d13ac1bfb50aa14e3d432688e96e955f612d9
1,615
py
Python
scripts/python3-shell-job-example.py
pfeilbr/aws-glue-playground
52648d527a03e32ae1cc6e2f9fcf418e0875021e
[ "MIT" ]
null
null
null
scripts/python3-shell-job-example.py
pfeilbr/aws-glue-playground
52648d527a03e32ae1cc6e2f9fcf418e0875021e
[ "MIT" ]
null
null
null
scripts/python3-shell-job-example.py
pfeilbr/aws-glue-playground
52648d527a03e32ae1cc6e2f9fcf418e0875021e
[ "MIT" ]
null
null
null
import datetime import time import boto3 import sys import os import importlib print('sys.argv:\n{}\n\n'.format(sys.argv)) print('os.environ:\n{}\n\n'.format(os.environ)) # only run the following if running in aws glue environment (not availble locally) if 'GLUE_INSTALLATION' in os.environ: aws_glue_utils = impor...
33.645833
82
0.712693
227
1,615
4.735683
0.30837
0.08186
0.084651
0.016744
0.093023
0.053953
0.053953
0
0
0
0
0.009339
0.138081
1,615
47
83
34.361702
0.762931
0.049536
0
0
0
0
0.2394
0.028702
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.257143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ee7f1ffa3ae65649a2137010308390975957d2f4
7,570
py
Python
magentoclient.py
smileinnovation/snips-magento-skill
c8fe2d1615fce688bcad9258560895a5798c03c2
[ "Apache-2.0" ]
null
null
null
magentoclient.py
smileinnovation/snips-magento-skill
c8fe2d1615fce688bcad9258560895a5798c03c2
[ "Apache-2.0" ]
null
null
null
magentoclient.py
smileinnovation/snips-magento-skill
c8fe2d1615fce688bcad9258560895a5798c03c2
[ "Apache-2.0" ]
null
null
null
import requests import time CLIENT_TOKEN_URI = "rest/V1/integration/customer/token" GET_CART_URI = "rest/default/V1/carts/mine" GET_CART_ITEM_URI = "rest/default/V1/carts/mine/items" ADD_TO_CART_URI = "rest/default/V1/carts/mine/items" ME_URI = "rest/default/V1/customers/me" DELETE_ITEM_URI = "rest/default/V1/carts/mi...
36.926829
155
0.634346
897
7,570
5.004459
0.209588
0.03787
0.024059
0.030074
0.363555
0.278458
0.23591
0.185565
0.138784
0.052573
0
0.009434
0.25786
7,570
204
156
37.107843
0.789605
0.113078
0
0.164286
0
0
0.108436
0.071194
0
0
0
0
0
1
0.128571
false
0.035714
0.014286
0.028571
0.278571
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
ee810690b40aba06e4d511080b16348fc6e69b8a
533
py
Python
problem_3/problem_3.py
CaioTeixeira95/Euler
90e98f4110b7e6dc7d36f53eea0b22cf455ac005
[ "MIT" ]
null
null
null
problem_3/problem_3.py
CaioTeixeira95/Euler
90e98f4110b7e6dc7d36f53eea0b22cf455ac005
[ "MIT" ]
null
null
null
problem_3/problem_3.py
CaioTeixeira95/Euler
90e98f4110b7e6dc7d36f53eea0b22cf455ac005
[ "MIT" ]
null
null
null
import math # A function to print all prime factors of # a given number n def prime_factor(n): # Print the number of two's that divide n while n % 2 == 0: n = n / 2 # n must be odd at this point # so a skip of 2 ( i = i + 2) can be used for i in range(3, int(math.sqrt(n)) + 1, 2): ...
20.5
49
0.553471
97
533
3.020619
0.505155
0.020478
0.081911
0.088737
0
0
0
0
0
0
0
0.067449
0.360225
533
25
50
21.32
0.791789
0.474672
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.2
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
ee811e9426fe3dcfed1e5b99abbfc02ac9fd2eea
8,038
py
Python
ppdet/modeling/architectures/centernet.py
ZeHuiGong/AFSM
54af2f072071779789ba0baa4e4270a1403fd0dd
[ "Apache-2.0" ]
27
2020-12-07T10:46:39.000Z
2021-08-01T08:56:33.000Z
ppdet/modeling/architectures/centernet.py
ZeHuiGong/AFSM
54af2f072071779789ba0baa4e4270a1403fd0dd
[ "Apache-2.0" ]
4
2020-12-18T08:06:15.000Z
2021-08-01T02:54:50.000Z
ppdet/modeling/architectures/centernet.py
ZeHuiGong/AFSM
54af2f072071779789ba0baa4e4270a1403fd0dd
[ "Apache-2.0" ]
4
2020-12-18T04:37:42.000Z
2020-12-31T02:08:33.000Z
# AUTHOR: Zehui Gong # DATE: 2020/6/16 from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import OrderedDict import copy from paddle import fluid from paddle.fluid.param_attr import ParamAttr from paddle.fluid.initializer import Xavier, Const...
41.647668
116
0.58323
965
8,038
4.574093
0.219689
0.043498
0.028546
0.054372
0.263706
0.22406
0.181921
0.142501
0.110784
0.083371
0
0.01913
0.291117
8,038
192
117
41.864583
0.755528
0.061707
0
0.063694
0
0
0.107472
0
0
0
0
0
0.006369
1
0.063694
false
0
0.089172
0.012739
0.242038
0.006369
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ee81731e37bb731eaceac3e8565f9dcaff9847fa
55,219
py
Python
layers.py
kiranscaria/keras_layers
1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d
[ "MIT" ]
null
null
null
layers.py
kiranscaria/keras_layers
1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d
[ "MIT" ]
null
null
null
layers.py
kiranscaria/keras_layers
1934c4c7a13bfc0be40b224fe586d1c0ffa9f18d
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.python.keras import backend as K from tensorflow.python.keras.layers import Layer, Lambda from tensorflow.python.keras.layers import InputSpec from tensorflow.python.ops import nn_ops from tensorflow.python.keras import initializers, regularizers, constraints...
39.869314
146
0.559264
6,467
55,219
4.615123
0.090459
0.027139
0.013603
0.011392
0.536521
0.493701
0.456611
0.437513
0.409201
0.392515
0
0.022491
0.335718
55,219
1,384
147
39.898121
0.791173
0.176878
0
0.541758
0
0
0.02182
0.000495
0
0
0
0
0
1
0.079121
false
0
0.008791
0.004396
0.156044
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
ee88b24eca82ddcab181129272a9f62d15dd7605
36,064
py
Python
external/pyvista/python/pyvista/spectra.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2019-04-11T13:35:24.000Z
2019-11-14T06:12:51.000Z
external/pyvista/python/pyvista/spectra.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
null
null
null
external/pyvista/python/pyvista/spectra.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2018-09-20T22:07:43.000Z
2021-01-15T07:13:38.000Z
import matplotlib import matplotlib.pyplot as plt import os import pdb import pickle import copy import scipy.signal import scipy.interpolate import numpy as np from astropy.modeling import models, fitting from astropy.nddata import CCDData, StdDevUncertainty from astropy.io import ascii, fits from astropy.convolution ...
41.357798
143
0.519188
4,870
36,064
3.830185
0.113347
0.010293
0.01544
0.008256
0.413499
0.348362
0.293894
0.261298
0.230955
0.188013
0
0.029563
0.33313
36,064
871
144
41.405281
0.746029
0.086957
0
0.284058
0
0.004348
0.061174
0.00289
0
0
0
0
0
1
0.036232
false
0.005797
0.024638
0
0.085507
0.046377
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ee8a8f31356455e4042f8f9fd8906eb324b18cec
3,165
py
Python
countries/models.py
Valuehorizon/valuehorizon-countries
04398f518ef5977cf4ccd2c2bffd7955d6a6e095
[ "MIT" ]
3
2015-05-27T17:11:28.000Z
2016-07-08T18:01:28.000Z
countries/models.py
Valuehorizon/valuehorizon-countries
04398f518ef5977cf4ccd2c2bffd7955d6a6e095
[ "MIT" ]
5
2020-02-11T22:27:18.000Z
2021-12-13T19:40:25.000Z
countries/models.py
Valuehorizon/valuehorizon-countries
04398f518ef5977cf4ccd2c2bffd7955d6a6e095
[ "MIT" ]
null
null
null
from django.db import models from forex.models import Currency class Country(models.Model): """ Represents a country, such as the US, or Mexico. """ name = models.CharField(max_length=255, blank=True, null=True, help_text="Official Country name (ISO Full name)") currency = models.ManyToManyField(...
31.969697
133
0.663507
389
3,165
5.231362
0.282776
0.081081
0.079607
0.106143
0.418673
0.329238
0.281572
0.246192
0.205897
0.102211
0
0.016888
0.214218
3,165
98
134
32.295918
0.801367
0.078041
0
0.327869
0
0
0.17216
0
0
0
0
0
0
1
0.065574
false
0
0.032787
0.065574
0.655738
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
ee8bfc979ac28197031d9f486d5e391436cd294c
920
py
Python
export.py
philtgun/mediaeval-emothemes-explorer
647fe527b719a9be72265f2855d890823c70e8ab
[ "MIT" ]
1
2021-11-25T08:08:33.000Z
2021-11-25T08:08:33.000Z
export.py
philtgun/mediaeval-emothemes-explorer
647fe527b719a9be72265f2855d890823c70e8ab
[ "MIT" ]
null
null
null
export.py
philtgun/mediaeval-emothemes-explorer
647fe527b719a9be72265f2855d890823c70e8ab
[ "MIT" ]
null
null
null
import argparse from pathlib import Path import json import seaborn as sns import matplotlib.pyplot as plt from matplotlib import rcParams def main(input_file: Path, output_file: Path) -> None: with input_file.open('r') as fp: data = json.load(fp) plt.figure(figsize=(20, 13)) rcParams['font.fami...
32.857143
119
0.695652
132
920
4.69697
0.545455
0.048387
0.054839
0
0
0
0
0
0
0
0
0.011628
0.158696
920
27
120
34.074074
0.789406
0.017391
0
0
0
0
0.16408
0
0
0
0
0
0
1
0.047619
false
0
0.285714
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ee8f0359e2f8322c643b0be99995a5abb3f922f2
3,436
py
Python
tests/test_cascade_call.py
xyloon/ptrait
88186f77feaf921c44633b1693fed1e124f99c76
[ "MIT" ]
null
null
null
tests/test_cascade_call.py
xyloon/ptrait
88186f77feaf921c44633b1693fed1e124f99c76
[ "MIT" ]
1
2019-04-20T08:22:04.000Z
2019-04-20T08:22:04.000Z
tests/test_cascade_call.py
xyloon/ptrait
88186f77feaf921c44633b1693fed1e124f99c76
[ "MIT" ]
null
null
null
from ptrait import TraitExtends import copy from pytest_assertutil import assert_equal class IntfA: @classmethod @TraitExtends.mark def a_classmethodA(cls, *args, **kwargs): kwa = copy.deepcopy(kwargs) kwa['a'] = kwargs.get('a', 0) + 1 return args, kwa @classmethod @Trait...
21.746835
49
0.568102
399
3,436
4.744361
0.112782
0.114105
0.120444
0.126783
0.690438
0.657686
0.586371
0.586371
0.586371
0.586371
0
0.013387
0.282596
3,436
157
50
21.88535
0.754564
0
0
0.661157
0
0
0.009604
0
0
0
0
0
0.082645
1
0.173554
false
0.008264
0.024793
0
0.322314
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
c988bda85797c24c33439e544dc67c890a456828
7,220
py
Python
life_line_chart/GedcomParsing.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
life_line_chart/GedcomParsing.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
life_line_chart/GedcomParsing.py
mustaqimM/life_line_chart
a9bbbbdeb5568aa0cc3b3b585337a3d655f4b2d6
[ "MIT" ]
null
null
null
import datetime import re import os import logging import json _months = [ "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" ] _precision = [ 'ABT', 'CAL', 'EST', 'AFT', 'BEF' ] _date_expr = re.compile('(?:(' + '|'....
31.666667
138
0.570083
920
7,220
4.207609
0.181522
0.0558
0.080599
0.068199
0.382847
0.251356
0.215707
0.097649
0.079049
0.0248
0
0.018804
0.307618
7,220
227
139
31.806167
0.755551
0.071053
0
0.091892
0
0
0.116276
0
0
0
0
0.004405
0
1
0.016216
false
0.005405
0.027027
0
0.059459
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
c98a4eea5dbbc32238c561ae29365092efd245e1
4,020
py
Python
lib/HimalayanDownloader.py
oldfatcrab/Himalayan
8b879036dd33c406b48306f560f9df85c989908b
[ "MIT" ]
null
null
null
lib/HimalayanDownloader.py
oldfatcrab/Himalayan
8b879036dd33c406b48306f560f9df85c989908b
[ "MIT" ]
null
null
null
lib/HimalayanDownloader.py
oldfatcrab/Himalayan
8b879036dd33c406b48306f560f9df85c989908b
[ "MIT" ]
null
null
null
from HTMLParser import HTMLParser import json from os import makedirs from os.path import abspath, dirname, exists, join, normpath import pycurl import Queue import re import requests import tempfile import urllib2 class HimalayanDownloader: def __init__(self, eBookUrl, logger): self._logger = logger ...
39.029126
95
0.573632
410
4,020
5.487805
0.341463
0.048889
0.033333
0.017778
0
0
0
0
0
0
0
0.007813
0.299502
4,020
102
96
39.411765
0.791193
0
0
0.063158
0
0
0.085096
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.189474
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
c98cba25f4d6645c123d4fc4d2170d2512dffa18
820
py
Python
dl/state.py
eric-erki/Prometheus
def07745ebcbe08ebb2fbba124bd07873edc8c9c
[ "MIT" ]
null
null
null
dl/state.py
eric-erki/Prometheus
def07745ebcbe08ebb2fbba124bd07873edc8c9c
[ "MIT" ]
null
null
null
dl/state.py
eric-erki/Prometheus
def07745ebcbe08ebb2fbba124bd07873edc8c9c
[ "MIT" ]
null
null
null
from collections import defaultdict from prometheus.utils.misc import FrozenClass class RunnerState(FrozenClass): """ An object that is used to pass internal state during train/valid/infer. """ def __init__(self, **kwargs): # data self.device = None self.input = None s...
22.777778
75
0.570732
96
820
4.78125
0.5625
0.104575
0.061002
0.095861
0
0
0
0
0
0
0
0.009294
0.343902
820
35
76
23.428571
0.843866
0.121951
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.095238
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
c991092ab3a5e6ba800ee09dfef81c31b1bd3d3c
1,262
py
Python
t2t_bert/pretrain_finetuning/test_green_sample.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/pretrain_finetuning/test_green_sample.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/pretrain_finetuning/test_green_sample.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
#-*- coding: utf-8 -*- import requests import numpy as np import json import concurrent.futures import codecs with codecs.open('./test_1.txt', 'r', 'utf-8') as frobj: input1 = frobj.read().strip() with codecs.open('./candidate_1.txt', 'r', 'utf-8') as frobj: candidate1 = frobj.read().strip() with codecs.open('./t...
25.755102
107
0.698891
169
1,262
5.065089
0.420118
0.023364
0.065421
0.037383
0.247664
0.247664
0.231308
0.226636
0.226636
0.226636
0
0.045662
0.13233
1,262
48
108
26.291667
0.736073
0.01664
0
0.111111
0
0
0.23629
0.045161
0
0
0
0
0
1
0.055556
false
0
0.138889
0
0.25
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c993d47a6ac0a9f61ec7fa06b4e0b59229dbea51
527
py
Python
tests/resources/greeting_resoource.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
tests/resources/greeting_resoource.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
tests/resources/greeting_resoource.py
NoeCruzMW/zpy-flask-msc
9c2fdcc7e7bdbe3eed4522bfc68afcc00ad5994a
[ "MIT" ]
null
null
null
from zpy.api.resource import ZResource, HTTP_METHODS class GreetingResource(ZResource): blocked_methods = [ HTTP_METHODS.POST, HTTP_METHODS.DELETE, HTTP_METHODS.PATCH, HTTP_METHODS.PUT, ] def __init__(self, **kwargs) -> None: super().__init__() def get(self):...
23.954545
71
0.601518
60
527
5.016667
0.65
0.182724
0
0
0
0
0
0
0
0
0
0
0.28463
527
21
72
25.095238
0.798408
0
0
0
0
0
0.037951
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.4375
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
c998cff8c1a24f25ddb54c9444ec21d5f87c9ecc
1,762
py
Python
brainforest/s_create_inputs.py
binello7/swisssmartfarming
40eef7b1726bc47d320ab12507479d836592138b
[ "MIT" ]
2
2020-08-03T10:05:14.000Z
2021-03-30T13:18:39.000Z
brainforest/s_create_inputs.py
binello7/swisssmartfarming
40eef7b1726bc47d320ab12507479d836592138b
[ "MIT" ]
6
2021-03-19T12:41:16.000Z
2021-09-26T21:21:40.000Z
brainforest/s_create_inputs.py
binello7/swisssmartfarming
40eef7b1726bc47d320ab12507479d836592138b
[ "MIT" ]
3
2020-05-13T23:57:04.000Z
2020-06-18T09:37:17.000Z
from data_interface import Dataset, Data_Interface from utils import functions as ufunc import geopandas as gpd import matplotlib.pyplot as plt import numpy as np import os import rasterio as rio import rasterio.mask as riom import shapely from IPython import embed import sys sys.path.append('/home/seba/Projects/swis...
28.885246
95
0.746311
257
1,762
4.875486
0.33463
0.043097
0.062251
0.09577
0.269753
0.237829
0.237829
0.237829
0.237829
0.164405
0
0.041885
0.132804
1,762
60
96
29.366667
0.778141
0.15437
0
0
0
0
0.32861
0.30027
0
0
0
0
0
1
0
false
0
0.275
0
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c99a5abd3c9530802736be82134167242a054f72
574
py
Python
profiles_api/views.py
Vinutha2905/Python_RestAPI
4c185d37d32c3b5f00154f4be1b4ad0d2fab6d66
[ "MIT" ]
null
null
null
profiles_api/views.py
Vinutha2905/Python_RestAPI
4c185d37d32c3b5f00154f4be1b4ad0d2fab6d66
[ "MIT" ]
null
null
null
profiles_api/views.py
Vinutha2905/Python_RestAPI
4c185d37d32c3b5f00154f4be1b4ad0d2fab6d66
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response class HelloApiView(APIView): """TEST API VIEW""" def get(self, request, format=None): """Returns a list of API features""" an_apiview=[ 'Uses HTTP methods as function (get,post, put, delete, patc...
31.888889
74
0.642857
72
574
5.055556
0.736111
0.074176
0.093407
0
0
0
0
0
0
0
0
0
0.264808
574
17
75
33.764706
0.862559
0.076655
0
0
0
0
0.39499
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c99e1e3eaa5ae563327d390c5f49ea33d97c4ae8
911
py
Python
forumdb.py
fatih-iver/Intro-to-Relational-Databases
28528132378436d6dd1f1bdec96d1e7e285b4e4d
[ "MIT" ]
null
null
null
forumdb.py
fatih-iver/Intro-to-Relational-Databases
28528132378436d6dd1f1bdec96d1e7e285b4e4d
[ "MIT" ]
null
null
null
forumdb.py
fatih-iver/Intro-to-Relational-Databases
28528132378436d6dd1f1bdec96d1e7e285b4e4d
[ "MIT" ]
null
null
null
# "Database code" for the DB Forum. import psycopg2 import bleach DNAME = "forum" #POSTS = [("This is the first post.", datetime.datetime.now())] def get_posts(): """Return all posts from the 'database', most recent first.""" db = psycopg2.connect(database=DNAME) c = db.cursor() c.execute("select content,...
24.621622
71
0.675082
130
911
4.7
0.392308
0.072013
0.062193
0.055646
0.533552
0.533552
0.533552
0.533552
0.533552
0.533552
0
0.003968
0.170143
911
36
72
25.305556
0.804233
0.485181
0
0.375
0
0
0.18931
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9a08b6c821aa60ac0ac2219e490a38ed9d96387
19,553
py
Python
src/apps/Door.py
sdunlap-afit/hilics
ae06113365817e4240fe894d3dfd784991c78102
[ "Apache-2.0" ]
2
2019-09-27T15:45:46.000Z
2021-07-28T15:02:21.000Z
src/apps/Door.py
sdunlap-afit/hilics
ae06113365817e4240fe894d3dfd784991c78102
[ "Apache-2.0" ]
3
2020-09-25T13:40:56.000Z
2020-11-03T20:38:32.000Z
src/apps/Door.py
sdunlap-afit/hilics
ae06113365817e4240fe894d3dfd784991c78102
[ "Apache-2.0" ]
2
2020-05-29T16:58:55.000Z
2021-04-27T23:52:17.000Z
#!/usr/bin/env python3 # # IP: HILICS # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
28.012894
138
0.646499
3,018
19,553
4.054672
0.10603
0.080902
0.060145
0.054915
0.626706
0.588461
0.520879
0.476342
0.423143
0.39781
0
0.033263
0.205084
19,553
697
139
28.053085
0.754037
0.066384
0
0.259947
0
0
0.034856
0.002375
0
0
0
0
0
1
0.066313
false
0
0.026525
0
0.098143
0.005305
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9a1e099a815ae4cb966de4d518a0c2e63b69ddd
1,925
py
Python
java/run.py
foxtrotzulu94/LanguageBenchmarkGame
29c92c47c860d426409047a8408eaa52284a0cff
[ "MIT" ]
null
null
null
java/run.py
foxtrotzulu94/LanguageBenchmarkGame
29c92c47c860d426409047a8408eaa52284a0cff
[ "MIT" ]
null
null
null
java/run.py
foxtrotzulu94/LanguageBenchmarkGame
29c92c47c860d426409047a8408eaa52284a0cff
[ "MIT" ]
null
null
null
#!/usr/bin/env python output_name = './build/libs/java.jar' def setup(): import os, datetime, subprocess if os.path.exists(os.path.join(os.getcwd(), "setup.log")): print("'setup.log' exists. Java implementation setup correctly") return print("Watch for Errors - Requires Java SDK and Runti...
34.375
117
0.61974
249
1,925
4.722892
0.457831
0.02551
0.020408
0.066327
0.123299
0.123299
0.123299
0.081633
0
0
0
0.002716
0.234805
1,925
55
118
35
0.795655
0.083117
0
0.105263
0
0
0.261092
0.011945
0
0
0
0
0.026316
1
0.078947
false
0
0.105263
0
0.210526
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9a91a5cf9ffb0b7d6c657ce1005cb03ff51c2eb
1,784
py
Python
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
26
2021-06-23T00:58:25.000Z
2022-03-29T19:41:18.000Z
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
null
null
null
src/scse/modules/customer/demo_newsvendor_poisson_customer_order.py
bellmast/supply-chain-simulation-environment
af797c1d057e216184727fdd934ebd372d90f4d5
[ "Apache-2.0" ]
13
2021-06-23T09:16:38.000Z
2022-03-22T20:01:19.000Z
""" An agent representing the (retail) customer behavior following a Poisson distribution for demand. """ import networkx as nx from scse.api.module import Agent import numpy as np import logging logger = logging.getLogger(__name__) class PoissonCustomerOrder(Agent): _DEFAULT_MAX_MEAN = 10 def __init__(self...
35.68
98
0.623318
198
1,784
5.353535
0.469697
0.039623
0.059434
0.082075
0
0
0
0
0
0
0
0.003152
0.288677
1,784
49
99
36.408163
0.832151
0.178812
0
0
0
0
0.102406
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0.029412
0.352941
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
c9ab0ef6affb1be12f6d367b89eb7c08b1fd954b
2,340
py
Python
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
4
2021-03-23T21:12:57.000Z
2021-07-03T16:22:01.000Z
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
null
null
null
time_to_get_rewards.py
GJuceviciute/MineRL-2020
095ca6598b6a58120dcc5dcee05c995fc58d540a
[ "MIT" ]
null
null
null
import numpy as np import os from utils import MINERL_DATA_ROOT, CUMULATIVE_REWARDS import sys import pandas def time_to_rewards(data_set, trajectory): """ Takes a data_set and a trajectory, and returns times (in ticks) to achieve each cumulative reward (from the last cumulative reward, not from...
34.925373
117
0.624359
330
2,340
4.269697
0.251515
0.044713
0.034067
0.031228
0.185947
0.156139
0.100781
0.100781
0.056778
0.039745
0
0.009692
0.250427
2,340
66
118
35.454545
0.793615
0.132051
0
0
0
0
0.091568
0.011381
0
0
0
0
0
1
0.041667
false
0
0.104167
0
0.166667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9abcbc9f24259365718e0b6fb124db1e9b1a358
30,988
py
Python
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
gsflow_prep/gsflow_model_prep.py
dgketchum/MT_RSense
0048c1ccb1ff6e48bd630edd477f95ae29fea06d
[ "Apache-2.0" ]
null
null
null
import os import json from copy import copy from subprocess import call, Popen, PIPE, STDOUT import time import numpy as np import pandas as pd from pyproj import Transformer import rasterio import fiona from affine import Affine from shapely.geometry import shape from scipy.ndimage.morphology import binary_erosion fr...
41.932341
108
0.538499
3,479
30,988
4.586663
0.169589
0.034468
0.014915
0.021307
0.297111
0.243216
0.191891
0.144137
0.110484
0.084978
0
0.016017
0.343197
30,988
738
109
41.98916
0.767995
0.027398
0
0.119643
0
0
0.075126
0.004153
0
0
0
0
0
1
0.033929
false
0.001786
0.051786
0
0.094643
0.003571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9af346978608c3c30e9cd43ee6263e02cda79fe
5,695
py
Python
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
26
2015-02-23T16:37:31.000Z
2020-07-02T08:37:41.000Z
openstack_dashboard/dashboards/admin/rbac_policies/views.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
39.275862
78
0.657419
692
5,695
5.16763
0.239884
0.072707
0.042785
0.02349
0.321309
0.227349
0.183725
0.150727
0.032998
0.032998
0
0.000948
0.258999
5,695
144
79
39.548611
0.846446
0.097278
0
0.1875
0
0
0.149571
0.052457
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.464286
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
c9b0a85450199612c6bc6f56c812cbb9f71f501d
3,585
py
Python
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
4
2020-01-04T13:15:02.000Z
2021-07-21T07:50:02.000Z
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
legacy/text_classification/utils.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
3
2019-10-31T07:18:49.000Z
2020-01-13T03:18:39.000Z
import logging import os import argparse from collections import defaultdict logger = logging.getLogger("paddle") logger.setLevel(logging.INFO) def parse_train_cmd(): parser = argparse.ArgumentParser( description="PaddlePaddle text classification example.") parser.add_argument( "--nn_type", ...
33.194444
80
0.577406
456
3,585
4.425439
0.309211
0.035679
0.067393
0.050545
0.453915
0.416254
0.416254
0.416254
0.399405
0.362735
0
0.004444
0.309623
3,585
107
81
33.504673
0.810909
0
0
0.37234
0
0
0.298466
0
0
0
0
0
0
1
0.042553
false
0.031915
0.042553
0.021277
0.117021
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
c9b413225370fcaafee9296e6fca98be93952f44
2,188
py
Python
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
cards/views.py
KrTG/CardLabeling
8d267cf5d2dcc936005850a8f791115b3f716c92
[ "Apache-2.0" ]
null
null
null
from .models import Card from .helpers import fetch_unidentified, populate_db from django.shortcuts import render, redirect from django.http import Http404, HttpResponse import json def index(request): next = fetch_unidentified() if next: return redirect('card', card_num=next) else: retur...
30.388889
64
0.55713
241
2,188
4.958506
0.26971
0.05272
0.046862
0.030126
0.182427
0.135565
0.135565
0.135565
0.083682
0
0
0.006826
0.330439
2,188
71
65
30.816901
0.808874
0
0
0.285714
0
0
0.100548
0
0
0
0
0
0
1
0.071429
false
0
0.089286
0
0.321429
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9b43f16dd23711b256eacbc743cd82a999578fd
2,439
py
Python
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
13
2016-03-14T14:58:04.000Z
2020-11-03T22:48:59.000Z
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
5
2015-10-30T12:34:16.000Z
2017-10-27T04:55:07.000Z
cptm/experiment_calculate_perplexity.py
egpbos/cptm
c5f310858c341040b4afd166cf628aeee6845159
[ "Apache-2.0" ]
3
2016-03-03T10:49:05.000Z
2018-02-03T14:36:59.000Z
"""Calculate opinion perplexity for different numbers of topics Calclulate opinion perplexity for the test set as described in [Fang et al. 2012] section 5.1.1. This script should be run after experiment_number_of_topics.py. Usage: python cptm/experiment_calculate_perplexity.py /path/to/experiment.json. """ import p...
33.410959
79
0.727347
321
2,439
5.398754
0.389408
0.025967
0.012118
0.01558
0.175995
0.110791
0.051933
0
0
0
0
0.006305
0.154572
2,439
72
80
33.875
0.834142
0.166052
0
0
0
0
0.14321
0.010864
0
0
0
0
0
1
0.022222
false
0
0.111111
0
0.155556
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
c9b5574ee7cafcbc4a7c1273ed0bb1bc35434615
819
py
Python
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
Eulers method.py
pramotharun/Numerical-Methods-with-Python
bd5676bcc4ac5defd13608728df2387b5fdcdfcb
[ "MIT" ]
null
null
null
#Eulers method import numpy as np def dy(ynew,xnew,y,x,h): dyvalue = y-x return dyvalue #Note: change the derivative function based on question!!!!!! Example: y-x y0 = 0.5 #float(input"what is the y(0)?") h = 0.1 #float(input"h?") x_final = 0.3 #float(input"x_final") #initiating input variables x = 0 y ...
19.5
76
0.543346
129
819
3.356589
0.418605
0.018476
0.046189
0.050808
0.060046
0.060046
0
0
0
0
0
0.026144
0.252747
819
41
77
19.97561
0.681373
0.304029
0
0.071429
0
0
0.090373
0
0
0
0
0
0
1
0.035714
false
0
0.035714
0
0.107143
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9b764a791904b90c564bbc7b72661cf5b307b36
18,896
py
Python
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
modules/network_dictionary_builder.py
shartzog/CovidCNN
68bafe185c53f98b896ee01fdcf99f828f251036
[ "MIT" ]
null
null
null
""" Contains Net and NetDictionary class for creating a random collection of CNN structures or loading a previously created collection. """ from __future__ import division, print_function from random import random import os.path import torch from torch import nn from torch import optim from torch.nn import functional...
48.953368
116
0.556467
2,157
18,896
4.651368
0.164117
0.007575
0.015947
0.009568
0.26971
0.224559
0.1516
0.102063
0.094488
0.08193
0
0.012007
0.338855
18,896
386
117
48.953368
0.791083
0.232536
0
0.166667
0
0.003876
0.152856
0.029101
0
0
0
0
0
1
0.050388
false
0
0.065891
0
0.155039
0.01938
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9b7d5c05e7bdbe4c159664bc93dea9d1f8df223
1,917
py
Python
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
10
2018-06-10T17:54:57.000Z
2022-02-07T19:37:07.000Z
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
10
2018-06-10T18:46:07.000Z
2021-05-13T13:01:22.000Z
src/vmshepherd/app.py
DreamLab/VmShepherd
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
[ "Apache-2.0" ]
3
2019-07-18T14:10:10.000Z
2022-02-07T19:37:08.000Z
import asyncio import logging import os from vmshepherd.drivers import Drivers from vmshepherd.http import WebServer from vmshepherd.utils import gen_id, prefix_logging from vmshepherd.worker import Worker class VmShepherd: def __init__(self, config): self.config = config self.root_dir = os.path....
32.491525
96
0.639019
226
1,917
5.238938
0.30531
0.118243
0.087838
0.033784
0.052365
0
0
0
0
0
0
0.001394
0.251435
1,917
58
97
33.051724
0.823693
0
0
0
0
0
0.061033
0
0
0
0
0
0
1
0.0625
false
0
0.145833
0
0.229167
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
c9b84e52e79d954ea22decc10bdcb695a3cc56e1
1,762
py
Python
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
1
2020-04-29T20:44:44.000Z
2020-04-29T20:44:44.000Z
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
10
2019-06-22T11:18:55.000Z
2019-09-03T13:26:47.000Z
opsdroid/connector/slack/events.py
himanshu1root/opsdroid
26699c5e7cc014a0d3ab74baf66fbadce939ab73
[ "Apache-2.0" ]
1
2019-06-11T22:30:49.000Z
2019-06-11T22:30:49.000Z
"""Classes to describe different kinds of Slack specific event.""" import json from opsdroid.events import Message class Blocks(Message): """A blocks object. Slack uses blocks to add advenced interactivity and formatting to messages. https://api.slack.com/messaging/interactivity Blocks are provided...
39.155556
79
0.648127
224
1,762
5.044643
0.441964
0.044248
0.031858
0.026549
0.204425
0.204425
0.204425
0.204425
0.204425
0.125664
0
0
0.296254
1,762
44
80
40.045455
0.91129
0.76277
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9b95e3837c6ec2e9141c7cfae3e53054b21d5b5
3,449
py
Python
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
src/train.py
SYHPARK/MalConv-keras
2b68ba82e2201290130bed6d58f5725b17a87867
[ "MIT" ]
null
null
null
from os.path import join import argparse import pickle import warnings import pandas as pd from keras.callbacks import ModelCheckpoint, EarlyStopping from keras.models import load_model import utils from malconv import Malconv from preprocess import preprocess warnings.filterwarnings("ignore") parser = argparse.Argu...
40.104651
116
0.684836
477
3,449
4.740042
0.278826
0.047766
0.090226
0.02521
0.070765
0.05042
0.05042
0.05042
0.05042
0.05042
0
0.014396
0.174253
3,449
85
117
40.576471
0.779494
0.028704
0
0
0
0
0.178582
0
0
0
0
0
0
1
0.015385
false
0
0.153846
0
0.184615
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9bc28a5d5d38a212f5e0f03eba96a2a3f217595
1,870
py
Python
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
unittesting.py
slobbishbody/routegetter
b6c279c1734530fd2aec08da9317575b66150092
[ "MIT" ]
null
null
null
'''We will test all routegetter methods in this test suite''' from os.path import join, abspath, sep import unittest import logging import routesparser from faker import Faker LOG_FILE = join(sep.join(sep.split(abspath(__file__))[:-1]), 'log', 'testing', 'testing.log') class RoutesGetterTests(unittest.TestCase): ...
33.392857
93
0.673797
222
1,870
5.509009
0.378378
0.028618
0.02453
0.044154
0.260016
0.242028
0.106296
0.106296
0.106296
0.106296
0
0.007458
0.21123
1,870
55
94
34
0.821695
0.057219
0
0.146341
0
0
0.086187
0
0
0
0
0
0.073171
1
0.146341
false
0
0.121951
0
0.317073
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
c9bc5072826fedfaeb9d7bc762e8a4e79ddf3354
961
py
Python
side8/k8s/operator/utils.py
side8/k8s-operator
4097d91c39596993fcd21c2e9158796f83f7ea6f
[ "Apache-2.0" ]
29
2017-12-12T04:51:47.000Z
2021-12-16T13:33:30.000Z
side8/k8s/operator/utils.py
side8/k8s-operator
4097d91c39596993fcd21c2e9158796f83f7ea6f
[ "Apache-2.0" ]
18
2017-11-16T17:57:59.000Z
2018-01-30T11:05:29.000Z
side8/k8s/operator/utils.py
side8/k8s-operator
4097d91c39596993fcd21c2e9158796f83f7ea6f
[ "Apache-2.0" ]
6
2018-10-01T16:37:45.000Z
2021-05-07T02:34:44.000Z
def parse(o, prefix=""): def flatten(lis): new_lis = [] for item in lis: if isinstance(item, list): new_lis.extend(flatten(item)) else: new_lis.append(item) return new_lis try: return { "str": lambda: (prefix, o...
41.782609
136
0.522373
115
961
4.243478
0.356522
0.04918
0.057377
0.061475
0.356557
0.356557
0.245902
0.245902
0.245902
0.245902
0
0.002963
0.297607
961
22
137
43.681818
0.72
0
0
0
0
0
0.07076
0
0
0
0
0
0
1
0.095238
false
0
0
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
c9bca9a508473ab1f3f0748890578a6eb5bddb04
710
py
Python
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
setup.py
thetongs/hello_world
5c2ab413cd104ed6d8a5640ee6fd3476d0f1e846
[ "MIT" ]
null
null
null
from setuptools import setup VERSION = '0.0.4' DESCRIPTION = 'Hello world checking' # Setting up setup( name="hello_world", version=VERSION, author="Kishan Tongrao", author_email="kishan.tongs@gmail.com", description=DESCRIPTION, long_description_content_type="text/markdown", ...
28.4
52
0.625352
70
710
6.214286
0.742857
0.068966
0
0
0
0
0
0
0
0
0
0.009416
0.252113
710
25
53
28.4
0.809793
0.014085
0
0
0
0
0.438519
0.032593
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
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
c9c93db3dbc0d8e8af8b81d596af15d7ca55058b
2,228
py
Python
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/medias/hooks.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
import logging import magic import os from cms.medias.utils import get_file_type_size from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from . import settings as app_settings from . utils import to_webp logger = logging.getLogger(__name__) FILETYPE_IMAGE = getattr(sett...
32.289855
91
0.609964
271
2,228
4.756458
0.332103
0.093871
0.069822
0.04422
0.035687
0
0
0
0
0
0
0.003193
0.297127
2,228
68
92
32.764706
0.819923
0.041741
0
0
0
0
0.09526
0.011262
0
0
0
0
0
1
0.058824
false
0
0.156863
0
0.254902
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
c9cba2d718dc17bd9bd34864d1e448f3f16a9751
8,840
py
Python
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
tests/thumbor.py
hurbcom/libthumbor
8362f08071ed1ce345be59713825844808873a80
[ "MIT" ]
null
null
null
# encoding: utf-8 import base64 import hashlib import hmac import re import six from six.moves.urllib.parse import quote from Crypto.Cipher import AES class Url(object): unsafe_or_hash = r'(?:(?:(?P<unsafe>unsafe)|(?P<hash>[^/]{28,}?))/)?' debug = '(?:(?P<debug>debug)/)?' meta = '(?:(?P<meta>meta)/)?' ...
30.801394
119
0.508145
972
8,840
4.447531
0.144033
0.050891
0.03331
0.016655
0.174185
0.141106
0.117511
0.103632
0.076336
0.054129
0
0.008764
0.354638
8,840
286
120
30.909091
0.748992
0.015385
0
0.135965
0
0.013158
0.126581
0.057714
0
0
0
0
0
1
0.048246
false
0
0.030702
0.004386
0.201754
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
c9d237ae48e81118b5aaea91722859235e40aa06
1,599
py
Python
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
7
2015-01-22T14:32:55.000Z
2021-07-14T02:54:42.000Z
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
null
null
null
flaskrst/modules/tags.py
jarus/flask-rst
05b6a817f5986d6f6a4552d16a133deb8859ce3e
[ "BSD-3-Clause" ]
2
2016-03-14T01:06:13.000Z
2016-04-15T13:26:54.000Z
# -*- coding: utf-8 -*- """ flask-rst.modules.tags ~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2011 by Christoph Heer. :license: BSD, see LICENSE for more details. """ from math import log from flask import Blueprint, render_template from jinja2 import Markup from flaskrst.modules.blog import posts d...
26.213115
72
0.605378
225
1,599
4.124444
0.28
0.060345
0.051724
0.051724
0.201509
0.185345
0.163793
0.163793
0.163793
0.163793
0
0.011814
0.258912
1,599
61
73
26.213115
0.771308
0.09631
0
0.136364
0
0
0.066291
0.01481
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.340909
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
c9d8ca7a24eddf8714bfa4046edd0feee39e2a38
1,283
py
Python
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
13
2019-03-29T13:39:36.000Z
2021-09-07T11:15:45.000Z
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
1
2019-12-14T21:12:17.000Z
2019-12-14T21:12:17.000Z
lib/core/network.py
lck1201/seq2seq-3Dpose
3f45cc0f001ac5d25705834541d55938bf1907b6
[ "MIT" ]
null
null
null
import mxnet as mx from mxnet import nd from mxnet import gluon from mxnet.gluon import nn, rnn from config import config nJoints = config.NETWORK.nJoints class MyLSTM(gluon.Block): def __init__(self, cfg, **kwargs): super(MyLSTM, self).__init__(**kwargs) self.hidden_dim = cfg.NETWORK.hidden_dim ...
36.657143
87
0.639127
165
1,283
4.806061
0.369697
0.045397
0.04918
0.047919
0.100883
0.100883
0.100883
0.100883
0
0
0
0.01367
0.258769
1,283
35
88
36.657143
0.820189
0.021044
0
0
0
0
0.012759
0
0
0
0
0
0
1
0.1
false
0
0.166667
0.033333
0.366667
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
c9da6ebaaad2c77b2b6e79ec9dbb080561fa3b98
1,138
py
Python
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
day10/day10.py
ecly/a
73642e7edae484984430492ca9b62bd52b315a50
[ "MIT" ]
null
null
null
import sys def print_lights(lights): x = [x for x,y in lights.keys()] y = [y for x,y in lights.keys()] minx, maxx = min(x), max(x) miny, maxy = min(y), max(y) if maxy - miny < 18: result = [] for y in range(miny, maxy+1): for x in range(minx, maxx+1): re...
23.708333
78
0.516696
164
1,138
3.52439
0.310976
0.027682
0.025952
0.051903
0.093426
0.058824
0
0
0
0
0
0.015424
0.316344
1,138
47
79
24.212766
0.727506
0
0
0
0
0
0.024605
0
0
0
0
0
0
1
0.114286
false
0
0.028571
0.028571
0.257143
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9dbe4020052218bd87d8a5c72620da1aa4c792c
1,850
py
Python
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
fuzzystring.py
ZackDev/fuzzystring
70d5e55f8cf90bcebdb491ba26baa3e05d479189
[ "MIT" ]
null
null
null
import re import random import string import os supported_types = ['a', 'n', 's'] count_types = [] def fuzzyfy(types, length): # check type and length parameters for validity try: int(length) except Exception: return None if types == '' or types == "": return None elif ...
22.02381
78
0.571351
230
1,850
4.486957
0.330435
0.127907
0.05814
0.069767
0.158915
0.158915
0.060078
0
0
0
0
0.017081
0.303784
1,850
83
79
22.289157
0.784161
0.074054
0
0.258065
0
0
0.030445
0
0
0
0
0
0
1
0.048387
false
0
0.064516
0
0.241935
0.193548
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9e2dcad41a62fabe6d852cdc47cfde976426a83
1,510
py
Python
modules/drop.py
a-wing/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
80
2015-01-02T23:23:19.000Z
2021-11-02T16:03:07.000Z
modules/drop.py
Y-H-T/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
1
2016-04-13T15:44:23.000Z
2016-04-13T15:44:23.000Z
modules/drop.py
Y-H-T/mavelous
eef41c096cc282bb3acd33a747146a88d2bd1eee
[ "MIT" ]
63
2015-01-03T19:35:39.000Z
2022-02-08T17:15:44.000Z
#!/usr/bin/env python ''' simple bottle drop module''' import time mpstate = None hold_pwm = 983 release_pwm = 1776 drop_channel = 5 drop_time = 2.0 class drop_state(object): def __init__(self): self.waiting = False self.start_drop = 0 def name(): '''return module name''' return "drop" ...
26.491228
92
0.660265
204
1,510
4.676471
0.362745
0.075472
0.100629
0.072327
0.220126
0.069182
0
0
0
0
0
0.015113
0.211258
1,510
56
93
26.964286
0.785894
0.121192
0
0.052632
0
0
0.113178
0
0
0
0
0
0
1
0.184211
false
0
0.026316
0
0.289474
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9e532019c14012309cd048823903e390b14f730
3,767
py
Python
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
217
2020-01-07T20:25:46.000Z
2022-03-29T06:09:58.000Z
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
16
2020-02-10T12:40:23.000Z
2022-02-26T13:01:55.000Z
retropie/influx-retropie.py
Epaphus/personal-influxdb
6357bc8a1b362280b0ce79674ddd8e804573f2a9
[ "Apache-2.0" ]
34
2020-01-15T15:42:20.000Z
2022-02-22T17:29:15.000Z
#!/usr/bin/python3 # Copyright (C) 2020 Sam Steele # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.297101
123
0.689673
487
3,767
5.301848
0.418891
0.046476
0.027111
0.012393
0.149497
0.10457
0.072812
0.072812
0.072812
0.072812
0
0.008267
0.165118
3,767
137
124
27.49635
0.812719
0.182373
0
0.264151
0
0
0.236542
0.017618
0.009434
0
0
0
0
1
0
false
0.018868
0.04717
0
0.04717
0.04717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9e56f5f70dd474993a40687a674f32c37bed1cb
7,470
py
Python
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
null
null
null
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
1
2022-01-03T20:07:31.000Z
2022-01-04T18:45:21.000Z
molecule.py
Ved-P/molecule
9727a9e7f8c0412feee27bbe034a1540cff7534e
[ "MIT" ]
null
null
null
# Molecule # # This program takes in a molecular formula and creates a Lewis diagram and a 3D # model of the molecule as the output. # # Author: Ved Pradhan # Since: December 31, 2021 import json import matplotlib.pyplot as plt import sys import math # Opens the JSON file for use. with open("elements.json", "r", enc...
30.995851
107
0.58822
1,064
7,470
4.016917
0.225564
0.005147
0.009827
0.010295
0.142957
0.118858
0.049602
0.049602
0.049602
0.049602
0
0.030967
0.291031
7,470
240
108
31.125
0.776057
0.148728
0
0.147208
0
0
0.09378
0.019735
0
0
0
0
0
1
0.060914
false
0
0.020305
0.005076
0.121827
0.035533
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9e7b5a8abbdd10976c1ff71d253777d5ecde531
9,185
py
Python
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
31
2020-07-01T06:40:16.000Z
2022-03-30T18:49:02.000Z
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
2
2020-11-02T06:21:23.000Z
2021-06-02T00:31:06.000Z
app/transaction/attendence.py
rrsk/hiwayPay
c84b7581475164751f64540a521b803bdf08a9fb
[ "MIT" ]
13
2020-07-02T07:06:05.000Z
2022-03-15T11:34:41.000Z
from flask import Blueprint from flask import render_template, redirect, url_for, request, session, jsonify from flask_login import login_user, logout_user, current_user from app.transaction import bp from app.transaction.model_att import Attendence, AttendenceSchema , CompanySchema from app.employee.model import Emplo...
38.919492
157
0.507349
968
9,185
4.68905
0.14876
0.014541
0.019828
0.023794
0.567526
0.49306
0.467284
0.430271
0.384666
0.384666
0
0.010528
0.369189
9,185
235
158
39.085106
0.772868
0.05988
0
0.459459
0
0
0.106985
0.009863
0
0
0
0
0
1
0.032432
false
0
0.054054
0.005405
0.172973
0.010811
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9e83e673a43a955f85b17deeccd1c24bc0579dc
3,385
py
Python
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
115
2016-11-21T06:44:19.000Z
2022-01-21T22:21:27.000Z
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
26
2016-11-21T07:31:37.000Z
2019-01-16T14:13:23.000Z
examples/monitor.py
seba-1511/randopt
74cefcc734c6a38418151025b0a4d8b6cb41eb14
[ "Apache-2.0" ]
9
2018-04-02T19:54:20.000Z
2020-02-11T09:12:41.000Z
#!/usr/bin/env python3 """ Usage: python monitor.py randopt_results/simple_example/ """ import sys import os import time import curses import randopt as ro USE_MPL = True USE_CURSES = True try: from terminaltables import AsciiTable, SingleTable except: raise('run pip install terminaltables') try: ...
27.08
80
0.576662
386
3,385
4.935233
0.354922
0.015748
0.060367
0.065092
0.165354
0.113386
0.103937
0
0
0
0
0.018487
0.296898
3,385
124
81
27.298387
0.781933
0.05613
0
0.210526
0
0
0.098994
0
0
0
0
0
0
1
0.021053
false
0
0.073684
0
0.105263
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9ec67e739da8431aa5c39d649a7e5eb15794f15
6,973
py
Python
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
LOG.py
viniciusdc/Protein_structure_SPGm
861672071f2a47b54e4624fc1f69cf3fff0ff356
[ "MIT" ]
null
null
null
from Methods.utils import rmsd, mde from datetime import datetime import logging import json import sys def os_display_call(test_path, main, data, multistart=False): ( filename, num_atom_init, total_atoms_ord, m, prop_dist, convex, fo_non_scaled, fo_...
43.855346
113
0.443711
777
6,973
3.75547
0.191763
0.082248
0.038382
0.046607
0.701851
0.688143
0.623029
0.591501
0.559287
0.559287
0
0.022436
0.284096
6,973
158
114
44.132911
0.562099
0.118027
0
0.446154
0
0.030769
0.385719
0.053472
0
0
0
0
0
1
0.007692
false
0
0.038462
0
0.053846
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
c9f038d1fb5d0607ea396a1c5e9bb4c50b48b589
449
py
Python
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
src/services/sms.py
HutRubberDuck/super-mini-divar
191c2f9a412ef879b52f4a71e0fe74743138ab13
[ "Apache-2.0" ]
null
null
null
from kavenegar import KavenegarAPI, APIException, HTTPException from src.core.settings import OTP_API_KEY def send_sms(phone, message): try: api = KavenegarAPI(OTP_API_KEY) response = api.sms_send({ 'sender': '10008663', 'receptor': phone, 'message': message, ...
23.631579
63
0.605791
49
449
5.428571
0.530612
0.045113
0.067669
0.067669
0
0
0
0
0
0
0
0.025641
0.305122
449
18
64
24.944444
0.826923
0
0
0.133333
0
0
0.064588
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
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
c9f2d64566db5376ed467678309c5e2282462dda
923
py
Python
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2017-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
null
null
null
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2017-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
9
2017-10-31T19:20:05.000Z
2018-06-17T19:08:52.000Z
src/ground/drainbow_mcc/src/drainbow_mcc/emitter/imu.py
granum-space/cansat-2018
4d9db6f2d55c726e11abbb60fd436ec3eafc2373
[ "MIT" ]
1
2018-06-12T11:30:10.000Z
2018-06-12T11:30:10.000Z
import random import logging import time from datetime import timedelta from pymavlink import mavutil _log = logging.getLogger(__name__) def now(): return int(round(time.time()*1000)) def random_scaled_imu_test(url: str, pause: timedelta): connection = mavutil.mavlink_connection(url) mav = connection.m...
23.666667
60
0.612134
109
923
5.009174
0.568807
0.029304
0
0
0
0
0
0
0
0
0
0.019231
0.267606
923
38
61
24.289474
0.788462
0
0
0
0
0
0.061822
0
0
0
0
0
0
1
0.068966
false
0
0.172414
0.034483
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9f4af671dfa98273bbb6368b1d6afc8208adaae
12,548
py
Python
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
53
2020-09-09T06:58:29.000Z
2022-03-08T19:16:12.000Z
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
51
2020-09-09T09:31:27.000Z
2022-01-17T07:12:27.000Z
tests/test_locator.py
somnathrakshit/geograpy3
8a247cc2b164cf48b5ce4e7f9349adfef39e7ea4
[ "Apache-2.0" ]
9
2020-09-09T09:13:03.000Z
2021-12-14T11:04:34.000Z
''' Created on 2020-09-19 @author: wf ''' import os.path import tempfile import unittest from pathlib import Path from lodstorage.storageconfig import StorageConfig import geograpy import getpass from geograpy.locator import Locator, City,CountryManager, Location, LocationContext from collections import Counter from...
34.190736
172
0.582483
1,302
12,548
5.589862
0.307988
0.019786
0.023083
0.021984
0.173124
0.119401
0.083952
0.071036
0.046579
0.046579
0
0.026004
0.313516
12,548
366
173
34.284153
0.818783
0.1354
0
0.194915
0
0
0.167317
0.007898
0
0
0
0
0.067797
1
0.105932
false
0.012712
0.050847
0
0.173729
0.072034
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9fafb5b1dfbe210783fd95968a164f6159dfcac
685
py
Python
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
1
2022-01-19T04:22:21.000Z
2022-01-19T04:22:21.000Z
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
Python/threadingProcess.py
GuruprasadaShridharHegde/Coder-Mansion
14529a6d5d4e674ecaf0c771e9cc428ba34b0a2d
[ "MIT" ]
null
null
null
# example of automatically starting a thread from time import sleep from threading import Thread # custom thread class that automatically starts threads when they are constructed class AutoStartThread(Thread): # constructor def __init__(self, *args, **kwargs): # call the the parent constructor...
27.4
82
0.668613
85
685
5.294118
0.588235
0.044444
0.053333
0
0
0
0
0
0
0
0
0.001957
0.254015
685
25
83
27.4
0.878669
0.421898
0
0
0
0
0.071823
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.416667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9fbf38f83d878c53f0d81d49f3d590917067274
4,332
py
Python
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
10
2017-07-08T12:05:32.000Z
2019-09-22T17:39:12.000Z
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
31
2017-02-24T19:29:51.000Z
2020-11-09T15:58:44.000Z
bin/cora_edit_singletoken.py
comphist/cora
71555df9a520ccab063a8c5eb907feaa1dd88b38
[ "MIT" ]
7
2017-02-27T12:25:55.000Z
2022-01-13T08:55:01.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2015 Marcel Bollmann <bollmann@linguistics.rub.de> # # 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 ...
40.111111
140
0.593029
526
4,332
4.796578
0.385932
0.042806
0.028537
0.013476
0.107808
0.050733
0.030123
0.030123
0.030123
0
0
0.005559
0.29409
4,332
107
141
40.485981
0.81949
0.308172
0
0.130435
0
0.014493
0.167227
0
0
0
0
0
0
1
0.072464
false
0
0.043478
0
0.173913
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c9ff48db97e05614b8ced49da35379affb1221e8
1,851
py
Python
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
3
2021-04-07T08:05:44.000Z
2021-06-25T16:55:56.000Z
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
null
null
null
datasets/utils.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
2
2021-08-19T10:23:32.000Z
2021-12-15T03:26:11.000Z
from typing import Union import matplotlib.pyplot as plt import torch import torchvision def decode_segmap_to_color_image(masks: torch.Tensor, colormap: Union[list, tuple], num_classes: int, ignore_index: int = None, ...
35.596154
81
0.611021
252
1,851
4.376984
0.396825
0.059837
0.038078
0.040798
0.073436
0
0
0
0
0
0
0.019737
0.26094
1,851
51
82
36.294118
0.78655
0.067531
0
0
0
0
0.062137
0
0
0
0
0
0.025
1
0.05
false
0
0.1
0
0.175
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
c9ffd31b49092a967f11f75892dae5ddf2b9ea57
1,373
py
Python
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
1
2022-02-25T15:00:42.000Z
2022-02-25T15:00:42.000Z
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
src/lm_based/translate_start_end.py
vered1986/time_expressions
32d182d7f741eec007141f5ca89c0d419e23a9a7
[ "Apache-2.0" ]
null
null
null
import os import json import logging import argparse from src.common.translate import translate_time_expression_templates, get_client logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) def main(): parser = argparse.Argument...
32.690476
118
0.680991
179
1,373
4.994413
0.430168
0.036913
0.051454
0.071588
0.044743
0
0
0
0
0
0
0
0.191551
1,373
41
119
33.487805
0.805405
0.016023
0
0
0
0
0.201631
0.080059
0
0
0
0
0
1
0.035714
false
0
0.178571
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a001a953fb7ca73d48a5c0947ed5285912738fe8
3,612
py
Python
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
2
2021-05-30T01:05:38.000Z
2021-12-21T21:20:00.000Z
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
null
null
null
socatlord/operations.py
Cervi-Robotics/socatlord
e4d8964cb696c789807d2276698d596dfb68dc2b
[ "MIT" ]
2
2021-05-30T01:05:44.000Z
2021-12-21T21:19:46.000Z
import os import subprocess import sys import time import pkg_resources from satella.coding import silence_excs from satella.coding.sequences import smart_enumerate from satella.files import write_to_file, read_in_file from socatlord.parse_config import parse_etc_socatlord def install_socatlord(verbose: bool = Fals...
36.857143
99
0.622647
476
3,612
4.621849
0.336134
0.036818
0.057273
0.017727
0.204091
0.083182
0.026364
0.026364
0
0
0
0.028361
0.248339
3,612
97
100
37.237113
0.781952
0
0
0.135802
0
0.024691
0.299834
0.037099
0
0
0
0
0
1
0.049383
false
0
0.111111
0
0.160494
0.160494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a002a3319b840c90608c40a67a87ec1a46bcac4f
2,303
py
Python
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
null
null
null
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
31
2018-02-12T22:32:49.000Z
2022-01-06T21:39:44.000Z
src/authutils/oauth2/client/blueprint.py
dvenckusuchgo/authutils
4b43a250f448815f1ea0e7fa22fa0b02c9a2cb1d
[ "Apache-2.0" ]
2
2021-01-05T22:54:28.000Z
2021-11-29T20:57:20.000Z
""" Provide a basic set of endpoints for an application to implement OAuth client functionality. These endpoints assume that the ``current_app`` has already been configured with an OAuth client instance from the ``authlib`` package as follows: .. code-block:: python from authutils.oauth2.client import OAuthClien...
28.7875
84
0.685627
297
2,303
5.185185
0.397306
0.042857
0.036364
0.040909
0.062338
0
0
0
0
0
0
0.007081
0.202779
2,303
79
85
29.151899
0.831699
0.489796
0
0.071429
0
0
0.112903
0
0
0
0
0
0
1
0.107143
false
0
0.178571
0
0.428571
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
a005db92c36fe0ec0c9db64cfb4a8341416d95de
24,671
py
Python
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/csw/dictionary_entry_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import List, Optional from bindings.csw.abstract_general_operation_parameter_ref_type import ( OperationParameterGroup, ) from bindings.csw.actuate_type import ActuateType from bindings.csw.base_unit import BaseUnit from bindings.csw.cartesian_cs import Cartesian...
31.588988
81
0.592963
2,290
24,671
6.287773
0.117031
0.068616
0.08445
0.110216
0.401278
0.268838
0.259115
0.253281
0.162581
0.06299
0
0.002276
0.287747
24,671
780
82
31.629487
0.817152
0.140327
0
0.45827
0
0
0.225957
0.006924
0
0
0
0
0
1
0
false
0.004552
0.091047
0
0.213961
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
a00686acf3a82fe67d9e295e22aaec66f4b36661
2,468
py
Python
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
txt2epub_pdf/console.py
drthomas246/txt2epub-pdf
09d12a61e0d6f66512af7fdf9abfd4b384a5c648
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .package import txt2epub as txt2epub from .package import txt2pdf as txt2pdf import argparse __version__ = "0.1.0" def epub(): parser = argparse.ArgumentParser( prog='txt2epub.exe', description='テキストを電子書籍(epub)化する' ) metadata = parser2m...
37.393939
120
0.657212
295
2,468
5.328814
0.318644
0.080153
0.151399
0.10687
0.207379
0.207379
0.207379
0.062341
0.062341
0
0
0.008721
0.163695
2,468
65
121
37.969231
0.752907
0.017423
0
0.076923
0
0
0.196451
0
0
0
0
0
0
1
0.057692
false
0
0.057692
0
0.134615
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
a00725d52685ae75cf07ae5d77c3ada997c869be
3,150
py
Python
tests/test_fileio_operators.py
ptrthomas/blender_mmd_tools
8b5053b9f2e7391cb9ac1e5114824cbbfd9d80cc
[ "MIT" ]
2
2021-01-22T05:11:50.000Z
2021-02-19T11:58:00.000Z
tests/test_fileio_operators.py
jiastku98/blender_mmd_tools
ac26c55a985d62ae9439a961d27e796444d09069
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
tests/test_fileio_operators.py
yhong3/blender_mmd_tools
53e16a46459328bccc444c84e50f22436e9cbc11
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
import os import shutil import unittest import bpy from mmd_tools.core import pmx from mmd_tools.core.model import Model TESTS_DIR = os.path.dirname(os.path.abspath(__file__)) SAMPLES_DIR = os.path.join(os.path.dirname(TESTS_DIR), 'samples') class TestFileIoOperators(unittest.TestCase): @classmethod def se...
39.873418
108
0.626349
417
3,150
4.558753
0.364508
0.047344
0.031562
0.016833
0.092583
0.049448
0
0
0
0
0
0.000438
0.274921
3,150
78
109
40.384615
0.831874
0.149206
0
0
0
0
0.101472
0
0
0
0
0
0.054545
1
0.054545
false
0
0.127273
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
a00cf121c8cf260456f4a0552e06a0dd6ae84b59
1,070
py
Python
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib-PyTorch
1a4e1c1939a42c30fe32dd8d6aff210e8604e77b
[ "MIT" ]
4
2021-03-29T07:34:21.000Z
2021-04-25T08:25:30.000Z
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib
f96e3a71ae2dbeb44696725ec127ff8f37d4c6e9
[ "MIT" ]
null
null
null
cv_lib/detection/models/__init__.py
zhfeing/deep-learning-lib
f96e3a71ae2dbeb44696725ec127ff8f37d4c6e9
[ "MIT" ]
1
2021-03-30T07:13:31.000Z
2021-03-30T07:13:31.000Z
from functools import partial from typing import Dict import copy from torch.nn import Module from torchvision.models.resnet import * from .ssd_resnet import SSD300_ResNet from .ssd_vgg import SSD300_VGG16 from .backbones import * __REGISTERED_MODELS__ = { "SSD300_ResNet": SSD300_ResNet, "SSD3...
24.883721
63
0.715888
128
1,070
5.59375
0.351563
0.050279
0.050279
0.055866
0
0
0
0
0
0
0
0.027939
0.197196
1,070
42
64
25.47619
0.805588
0
0
0
0
0
0.077897
0
0
0
0
0
0
1
0.1
false
0
0.266667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a0100c7225ae95c3cbbf519ce214f82cef36e0ce
733
py
Python
csr/kernels/mkl/multiply.py
mdekstrand/csr
665ceefff882d7e42db41034246b6ddb1f93e372
[ "MIT" ]
11
2021-02-07T16:37:31.000Z
2022-03-19T15:19:16.000Z
csr/kernels/mkl/multiply.py
mdekstrand/csr
665ceefff882d7e42db41034246b6ddb1f93e372
[ "MIT" ]
25
2021-02-11T22:42:01.000Z
2022-01-27T21:04:31.000Z
csr/kernels/mkl/multiply.py
lenskit/csr
03fde2d8c3cb7eb330028f34765ff2a06f849631
[ "MIT" ]
2
2021-02-07T02:05:04.000Z
2021-06-01T15:23:09.000Z
import numpy as np from numba import njit from ._api import * # noqa: F403 from .handle import mkl_h __all__ = [ 'mult_ab', 'mult_abt' ] @njit(nogil=True) def mult_ab(a_h, b_h): if a_h.H and b_h.H: h = lk_mkl_spmab(a_h.H, b_h.H) else: h = 0 return mkl_h(h, a_h.nrows, b_h.ncols, ...
17.452381
47
0.587995
153
733
2.522876
0.281046
0.072539
0.046632
0.124352
0.450777
0.398964
0.274611
0.274611
0.274611
0.274611
0
0.020716
0.27558
733
41
48
17.878049
0.706215
0.013643
0
0.3
0
0
0.020804
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a01762ca3e759a9a379ad71578ccb40a1edcad3d
738
py
Python
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
contests_atcoder/abc153/abc153_f.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
from bisect import bisect_left, bisect_right from collections import deque, Counter from itertools import combinations, permutations from math import gcd, sin, cos, tan, degrees, radians import sys input = lambda: sys.stdin.readline().rstrip() MOD = 10 ** 9 + 7 INF = float("inf") n, d, a = map(int, input().split()) mo...
23.0625
63
0.624661
113
738
4.00885
0.530973
0.121413
0.092715
0.07064
0
0
0
0
0
0
0
0.021164
0.231707
738
32
64
23.0625
0.777778
0
0
0
0
0
0.00406
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a017a1ab05231fbc634e10328c46e53e752448d8
16,532
py
Python
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
sistema_experto.py
Erubeyy/SistemaExperto-
6194f798fad684eb83635fe85bf3f1a7d70ed2a2
[ "MIT" ]
null
null
null
from tkinter import* from tkinter import font from experta import * raiz = Tk() raiz.title("Sistema experto- Tipos de covid") raiz.config(bg="#f4f7fa") #raiz.resizable(0,0) mi0Frame = Frame(raiz)#, width="1200", height="700") mi0Frame.grid(row=1, column=0) mi0Frame.config(bg="#f4f7fa") mi3Frame = Frame(raiz)#, width=...
43.851459
335
0.687576
2,486
16,532
4.445696
0.095736
0.026059
0.031668
0.034745
0.68232
0.576909
0.525154
0.504705
0.402823
0.332338
0
0.04531
0.108214
16,532
377
336
43.851459
0.704334
0.041979
0
0.15082
0
0
0.136025
0
0
0
0
0
0
1
0.101639
false
0
0.009836
0.006557
0.12459
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
a017aa5f81d90682eeec3d31e4bdb2e999666f4b
6,105
py
Python
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
socket_temperature_connect.py
MeowMeowZi/PPLTestTool
576f28fb20680b1ed33520d92c552ccafc93d716
[ "MIT" ]
null
null
null
import socket import time import shelve preset_command = { 1: ['MB0023,1', 'MI0695,'], 2: ['MB0024,1', 'MI0696,'], 3: ['MB0076,1', 'MI0697,'], 4: ['MB0026,1', 'MI0698,'], } force_command = 'MB0336,1' start_command = 'MB0020,0' stop_command = 'MB0020,1' class Temperature: def __init__(self): ...
30.678392
110
0.552826
740
6,105
4.409459
0.197297
0.051486
0.040454
0.044131
0.350291
0.178057
0.064664
0.050567
0.019001
0
0
0.049157
0.310238
6,105
198
111
30.833333
0.723344
0.106143
0
0.138686
0
0
0.103156
0.015501
0
0
0
0
0
1
0.109489
false
0.007299
0.021898
0
0.160584
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
a0187e302825ea7cb1c14461fb74435494c1cd4b
12,938
py
Python
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
16
2020-03-15T15:33:30.000Z
2021-11-26T21:57:27.000Z
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
11
2019-04-27T19:15:43.000Z
2022-03-11T23:43:08.000Z
wwwdccn/chair_mail/models.py
marvinxu99/dccnsys
8f53728d06b859cace42cc84bc190bc89950d252
[ "MIT" ]
10
2020-03-14T09:25:39.000Z
2022-02-21T16:46:33.000Z
from django.conf import settings from django.core.mail import send_mail from django.db import models from django.db.models import ForeignKey, OneToOneField, TextField, CharField, \ SET_NULL, CASCADE, BooleanField, UniqueConstraint from django.db.models.signals import post_save from django.dispatch import receiver f...
35.157609
83
0.659762
1,489
12,938
5.545332
0.162525
0.043599
0.024706
0.01526
0.45743
0.401114
0.341407
0.312583
0.29587
0.25651
0
0.002569
0.247952
12,938
367
84
35.253406
0.846043
0.09646
0
0.358885
0
0
0.159488
0.00576
0
0
0
0
0
1
0.052265
false
0
0.04878
0.017422
0.320557
0.003484
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a01dc69fc961ecf3abcdcc4efc76fa8f20eeb48a
1,753
py
Python
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
translator/model.py
marco-nicola/python-translator
6a559874c9899e52a4cac9c2954dcca6b638f002
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Marco Nicola # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.108696
79
0.718768
220
1,753
5.581818
0.490909
0.045603
0.052932
0.039088
0.15228
0.15228
0.15228
0.120521
0.120521
0.120521
0
0.007714
0.186537
1,753
45
80
38.955556
0.853436
0.312607
0
0.086957
0
0
0.095718
0
0
0
0
0
0
1
0.130435
false
0
0.173913
0
0.391304
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
a021e7c81cd72a8cb8466d95bea774bd4667239f
1,692
py
Python
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
1
2021-05-07T06:26:16.000Z
2021-05-07T06:26:16.000Z
src/api/content_flag.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
import datetime as dt import json from flask_restful import ( Resource, reqparse, ) from flask_security import current_user from marshmallow_sqlalchemy import ModelSchema from .utils import auth_required from .. import db from ..core.utils import log_exception from ..models import ContentFlag class FlagSch...
26.030769
77
0.60461
193
1,692
5.134715
0.414508
0.035318
0.034309
0.038345
0.272452
0.189707
0.072654
0.072654
0.072654
0
0
0.007513
0.291962
1,692
64
78
26.4375
0.8197
0
0
0.08
0
0
0.052009
0
0
0
0
0
0.04
1
0.04
false
0
0.18
0
0.38
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
a0220e4b4dae9e864bc6a43965e05ecf1eb56be9
13,231
py
Python
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-01T08:39:14.000Z
2020-09-01T08:39:14.000Z
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
null
null
null
cgmodsel/utils.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-04T13:35:41.000Z
2020-09-04T13:35:41.000Z
# -*- coding: utf-8 -*- """ Copyright: Frank Nussbaum (frank.nussbaum@uni-jena.de) This file contains various functions used in the module including - sparse norms and shrinkage operators - a stable logsumexp implementation - array printing-method that allows pasting the output into Python code """ import...
33.752551
90
0.542438
1,645
13,231
4.26383
0.210942
0.015968
0.014115
0.015398
0.359139
0.294554
0.258055
0.244226
0.223981
0.201739
0
0.023121
0.307006
13,231
391
91
33.838875
0.741848
0.340791
0
0.331522
0
0
0.030249
0
0
0
0
0.005115
0.005435
1
0.076087
false
0
0.027174
0
0.179348
0.027174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e428e1c353f9ae16acebfc45bfab7a9a4bd2704
2,081
py
Python
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
1
2019-07-12T02:21:24.000Z
2019-07-12T02:21:24.000Z
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
null
null
null
ssd/modeling/head/ssd_head.py
tkhe/ssd-family
a797ec36fda59549aff54419c105813c33d8cdd3
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from ssd.modeling.anchor import make_anchor_generator from ssd.utils import bbox from .inference import make_post_processor from .loss import make_loss_evaluator from .predictor import make_ssd_predictor class SSDHead(nn.Module): def __init__(self, cfg, in_ch...
35.87931
96
0.675156
266
2,081
4.954887
0.285714
0.054628
0.059181
0.07739
0.10091
0
0
0
0
0
0
0.003824
0.246036
2,081
57
97
36.508772
0.836201
0
0
0
0
0
0
0
0
0
0
0
0
1
0.081633
false
0
0.142857
0
0.326531
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
4e42bcb647690572f850059e2f35498edac0af13
415
py
Python
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
find_max_occurence_simple.py
swatmantis/my-pyscripts
e16af5879b101c30e34e82727292849d1d33f440
[ "Apache-2.0" ]
null
null
null
"""Find max element""" #!/usr/bin/env python3 """Find max element""" import random from collections import Counter List = [random.randrange(1, 15) for num in range(10)] def most_frequent(List): occurence_count = Counter(List) return occurence_count.most_common() frequent_number, frequency = most_frequent(Lis...
27.666667
88
0.742169
57
415
5.280702
0.614035
0.139535
0.093023
0
0
0
0
0
0
0
0
0.019284
0.125301
415
14
89
29.642857
0.809917
0.091566
0
0
0
0
0.223496
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e4b385ebb874ffc51cb3af951c49e948dbf2c97
1,659
py
Python
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.SportsDevil/lib/dialogs/dialogProgress.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
# -*- coding: utf-8 -*- import xbmcgui class DialogProgress: def __init__(self): self.dlg = xbmcgui.DialogProgress() self.__reset__() def __reset__(self): self.head = '' self.firstline = '' self.secondline = None self.thirdline = None self.percent = 0 ...
28.603448
90
0.603978
174
1,659
5.666667
0.16092
0.156187
0.086207
0.136917
0.718053
0.686613
0.663286
0.610548
0.492901
0.423935
0
0.001721
0.299578
1,659
58
91
28.603448
0.846816
0.012658
0
0.454545
0
0
0
0
0
0
0
0
0
1
0.136364
false
0
0.022727
0.022727
0.204545
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
4e4b7d98eca7eba2d20b079df0bbd0eb0b4e7a32
3,828
py
Python
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
3
2015-05-25T10:56:21.000Z
2021-11-27T17:25:26.000Z
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
1
2021-11-27T17:24:21.000Z
2021-11-27T17:24:21.000Z
bitbake/lib/bb/manifest.py
KDAB/OpenEmbedded-Archos
a525c5629a57ccb8656c22fe5528ce264003f9d8
[ "MIT" ]
2
2016-08-13T08:40:48.000Z
2021-03-26T03:01:03.000Z
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- # # Copyright (C) 2003, 2004 Chris Larson # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. #...
26.4
112
0.544148
475
3,828
4.36
0.353684
0.026557
0.018831
0.027523
0.16562
0.106229
0.056977
0.028006
0.028006
0.028006
0
0.011214
0.324451
3,828
144
113
26.583333
0.789637
0.204545
0
0.308411
0
0
0.119669
0.031074
0
0
0
0
0
1
0.046729
false
0.009346
0.037383
0
0.196262
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
4e4e48bf1020755d5adf17a1c4aa85cf738609d6
23,209
py
Python
riglib/bmi/robot_arms.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
7
2015-08-25T00:28:49.000Z
2020-04-14T22:58:51.000Z
riglib/bmi/robot_arms.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
89
2020-08-03T16:54:08.000Z
2022-03-09T19:56:19.000Z
riglib/bmi/robot_arms.py
sgowda/brain-python-interface
708e2a5229d0496a8ce9de32bda66f0925d366d9
[ "Apache-2.0" ]
4
2016-10-05T17:54:26.000Z
2020-08-06T15:37:09.000Z
''' Classes implementing various kinematic chains. This module is perhaps mis-located as it does not have a direct BMI role but rather contains code which is useful in supporting BMI control of kinematic chains. This code depends on the 'robot' module (https://github.com/sgowda/robotics_toolbox) ''' import numpy as np...
32.190014
138
0.561463
2,814
23,209
4.437811
0.160625
0.044923
0.035394
0.01065
0.275064
0.186339
0.120035
0.10418
0.092969
0.087524
0
0.014482
0.330561
23,209
721
139
32.190014
0.789277
0.270283
0
0.149502
0
0
0.022224
0
0
0
0
0
0.006645
1
0.10299
false
0
0.023256
0
0.245847
0.013289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e4e7f677ab2a0f132b93e4b1dfb1c29e362f6de
3,622
py
Python
src/utils/tilemap.py
Magicalbat/Metroidvania-Month-15
a0a30fb3f531a597ced69bf76568ef26e5e88019
[ "MIT" ]
null
null
null
src/utils/tilemap.py
Magicalbat/Metroidvania-Month-15
a0a30fb3f531a597ced69bf76568ef26e5e88019
[ "MIT" ]
null
null
null
src/utils/tilemap.py
Magicalbat/Metroidvania-Month-15
a0a30fb3f531a597ced69bf76568ef26e5e88019
[ "MIT" ]
null
null
null
import pygame from pygame.math import Vector2 import json, math class Tilemap: def __init__(self, tileSize, imgs, chunkSize=8): self.tileSize = tileSize self.imgs = imgs self.drawTiles = [] self.chunks = {} self.chunkSize = chunkSize def toChunkScale(self, p): ...
38.126316
90
0.549144
446
3,622
4.441704
0.213004
0.066633
0.040384
0.063099
0.13478
0.062595
0.046441
0.046441
0.046441
0.046441
0
0.021044
0.31778
3,622
95
91
38.126316
0.780656
0
0
0.025316
0
0
0.009937
0
0
0
0
0
0
1
0.126582
false
0
0.037975
0.050633
0.265823
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
4e508c95181eba9329a23ec0f597dadfe33c7e09
7,295
py
Python
src/dsnt/util.py
anibali/dsnt-pose2d
f453331a6b120f02948336555b996ac0d95bf4be
[ "Apache-2.0" ]
12
2018-10-18T06:41:00.000Z
2021-07-31T08:19:41.000Z
src/dsnt/util.py
anibali/dsnt-pose2d
f453331a6b120f02948336555b996ac0d95bf4be
[ "Apache-2.0" ]
2
2019-07-15T13:36:08.000Z
2020-03-09T04:39:08.000Z
src/dsnt/util.py
anibali/dsnt-pose2d
f453331a6b120f02948336555b996ac0d95bf4be
[ "Apache-2.0" ]
5
2019-01-08T01:32:18.000Z
2020-08-04T07:42:12.000Z
""" Miscellaneous utility functions. """ import random import time from contextlib import contextmanager import math import numpy as np import torch from PIL.ImageDraw import Draw # Joints to connect for visualisation, giving the effect of drawing a # basic "skeleton" of the pose. BONES = { 'right_lower_leg': (0...
31.042553
92
0.615216
1,060
7,295
4.09717
0.25566
0.02694
0.011513
0.017269
0.120424
0.078747
0.018881
0
0
0
0
0.032413
0.259904
7,295
234
93
31.175214
0.771995
0.246059
0
0.056738
0
0
0.058616
0
0
0
0
0
0.007092
1
0.070922
false
0
0.049645
0
0.170213
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
4e5750ff5296717b749da87c576b380ec5a0ca38
1,818
py
Python
kedro/extras/decorators/retry_node.py
hfwittmann/kedro
b0d4fcd8f19b49a7916d78fd09daeb6209a7b6c6
[ "Apache-2.0" ]
1
2021-11-25T12:33:13.000Z
2021-11-25T12:33:13.000Z
kedro/extras/decorators/retry_node.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
kedro/extras/decorators/retry_node.py
MerelTheisenQB/kedro
1eaa2e0fa5d80f96e18ea60b9f3d6e6efc161827
[ "Apache-2.0" ]
null
null
null
""" This module contains the retry decorator, which can be used as ``Node`` decorators to retry nodes. See ``kedro.pipeline.node.decorate`` """ import logging from functools import wraps from time import sleep from typing import Callable, Type def retry( exceptions: Type[Exception] = Exception, n_times: int = 1,...
30.3
86
0.573707
210
1,818
4.866667
0.514286
0.035225
0
0
0
0
0
0
0
0
0
0.005076
0.349835
1,818
59
87
30.813559
0.85956
0.374587
0
0
0
0
0.059646
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e57932c1bf27e86e563c5240b4f42764bb1b0f4
1,470
py
Python
test/lmp/dset/_base/test_download_file.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/dset/_base/test_download_file.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/dset/_base/test_download_file.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test the ability to download files. Test target: - :py:meth:`lmp.dset._base.BaseDset.download`. """ import os from typing import Callable import pytest import lmp.dset._base import lmp.util.path @pytest.fixture def file_url() -> str: """Download target file URL.""" return 'https://raw.githubusercontent.com...
30
112
0.755782
232
1,470
4.560345
0.327586
0.075614
0.047259
0.053875
0.365785
0.340265
0.300567
0.300567
0.226843
0.226843
0
0.000774
0.121088
1,470
48
113
30.625
0.818111
0.238776
0
0.181818
0
0.045455
0.091996
0
0
0
0
0
0.090909
1
0.181818
false
0
0.227273
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
4e5ac8d618f9e77a2b39df9c4c03557f518e532c
1,347
py
Python
src/api/urls.py
Karim-Valeev/django-myfoods
e8750a05461616a2e7740230177a139749daac73
[ "MIT" ]
null
null
null
src/api/urls.py
Karim-Valeev/django-myfoods
e8750a05461616a2e7740230177a139749daac73
[ "MIT" ]
null
null
null
src/api/urls.py
Karim-Valeev/django-myfoods
e8750a05461616a2e7740230177a139749daac73
[ "MIT" ]
null
null
null
from django.urls import path, re_path from drf_yasg import openapi from drf_yasg.views import get_schema_view from rest_framework.routers import SimpleRouter, DefaultRouter from rest_framework_simplejwt import views as jwt_views from api.views import * # роутер нужен, чтобы сгенерить урлы под вью сет и самому их не ...
38.485714
111
0.723831
179
1,347
5.273743
0.47486
0.063559
0.041314
0.054025
0.073093
0
0
0
0
0
0
0.003436
0.135857
1,347
34
112
39.617647
0.80756
0.064588
0
0
0
0
0.221781
0.04372
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e5b531d4dae58f3f455001978beda2d6160593c
18,417
py
Python
second/pytorch/inference_ros.py
neolixcn/nutonomy_pointpillars
03f46f6de97c0c97d7bc98d7af3daee215d81a30
[ "MIT" ]
1
2021-06-11T00:54:48.000Z
2021-06-11T00:54:48.000Z
second/pytorch/inference_ros.py
neolixcn/nutonomy_pointpillars
03f46f6de97c0c97d7bc98d7af3daee215d81a30
[ "MIT" ]
null
null
null
second/pytorch/inference_ros.py
neolixcn/nutonomy_pointpillars
03f46f6de97c0c97d7bc98d7af3daee215d81a30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import argparse import pathlib import pickle import shutil import time from functools import partial import sys sys.path.append('../') from pathlib import Path import fire import numpy as np import torch import torch.nn as nn import os print(torch.__version__) print(os.environ['PYTHONP...
37.432927
176
0.617147
2,496
18,417
4.269631
0.157452
0.014263
0.00366
0.004129
0.442714
0.403866
0.373839
0.363705
0.346439
0.329736
0
0.031112
0.25129
18,417
491
177
37.509165
0.741751
0.317967
0
0.059925
0
0
0.040741
0.016411
0
0
0
0
0
1
0.037453
false
0.003745
0.104869
0
0.168539
0.022472
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e5c7dba2e2083dcb5bc4c5689df3f572c63510f
3,112
py
Python
agent.py
AdamMiltonBarker/TassAI
61ae4f208f06ea39cc5b58079175f17bf1fca4c4
[ "MIT" ]
1
2021-06-29T09:46:47.000Z
2021-06-29T09:46:47.000Z
agent.py
AdamMiltonBarker/TassAI
61ae4f208f06ea39cc5b58079175f17bf1fca4c4
[ "MIT" ]
4
2021-06-27T16:06:43.000Z
2021-06-27T16:09:53.000Z
agent.py
AdamMiltonBarker/TassAI
61ae4f208f06ea39cc5b58079175f17bf1fca4c4
[ "MIT" ]
2
2020-09-28T02:11:43.000Z
2020-10-13T15:27:41.000Z
#!/usr/bin/env python3 """ HIAS TassAI Facial Recognition Agent. HIAS TassAI Facial Recognition Agent processes streams from local or remote cameras to identify known and unknown humans. MIT License Copyright (c) 2021 Asociación de Investigacion en Inteligencia Artificial Para la Leucemia Peter Moss Permission is h...
26.151261
78
0.754499
447
3,112
5.214765
0.434004
0.037752
0.027456
0.046332
0.138138
0.138138
0.11583
0.11583
0.11583
0.11583
0
0.003466
0.165488
3,112
118
79
26.372881
0.894109
0.556877
0
0.173913
0
0
0.089552
0
0
0
0
0
0
1
0.108696
false
0
0.195652
0
0.326087
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
4e604e0888e3f4c9cd3d2b535fdc4b7f1eabfe77
2,576
py
Python
Payload_Types/apfell/mythic/agent_functions/terminals_send.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2021-01-28T19:35:46.000Z
2021-04-08T12:01:48.000Z
Payload_Types/apfell/mythic/agent_functions/terminals_send.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
null
null
null
Payload_Types/apfell/mythic/agent_functions/terminals_send.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2020-12-29T02:34:13.000Z
2021-06-24T04:07:38.000Z
from CommandBase import * import json from MythicResponseRPC import * class TerminalsSendArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = { "window": CommandParameter( name="window", type=ParameterTyp...
36.8
457
0.622671
276
2,576
5.641304
0.467391
0.035324
0.038536
0.043674
0.07964
0.07964
0.07964
0.07964
0
0
0
0.006081
0.297748
2,576
69
458
37.333333
0.854616
0
0
0.16129
0
0.016129
0.281444
0
0
0
0
0
0
1
0.016129
false
0.016129
0.048387
0
0.33871
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
4e6142fd70771c11fbb624c19a0644bc6c708693
623
py
Python
mephisto/plugins/math_expr.py
Kenton1989/mephisto-bot
50a8008c99b984a453713f480fa578bf5a8353c8
[ "MIT" ]
null
null
null
mephisto/plugins/math_expr.py
Kenton1989/mephisto-bot
50a8008c99b984a453713f480fa578bf5a8353c8
[ "MIT" ]
null
null
null
mephisto/plugins/math_expr.py
Kenton1989/mephisto-bot
50a8008c99b984a453713f480fa578bf5a8353c8
[ "MIT" ]
null
null
null
import re import math import numexpr as ne MATH_CONST = { 'pi': math.pi, 'π': math.pi, 'e': math.e, 'inf': math.inf, 'i': 1j, 'j': 1j, } SUB_MAP = { # replace UTF char with ASCII char '(': '(', ')': ')', ',': ',', '-': '-', '÷': '/', '×': '*', '+': '+', #...
16.394737
67
0.473515
85
623
3.411765
0.588235
0.062069
0
0
0
0
0
0
0
0
0
0.011062
0.274478
623
37
68
16.837838
0.623894
0.088283
0
0
0
0
0.077876
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.178571
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
4e61d7b3b7f328b277a5ef816c4995021aeb1703
1,185
py
Python
testemu/client/testemu_client/network.py
advaoptical/netemu
a418503d3829f206602e9360c05235626fa8bec5
[ "Apache-2.0" ]
null
null
null
testemu/client/testemu_client/network.py
advaoptical/netemu
a418503d3829f206602e9360c05235626fa8bec5
[ "Apache-2.0" ]
null
null
null
testemu/client/testemu_client/network.py
advaoptical/netemu
a418503d3829f206602e9360c05235626fa8bec5
[ "Apache-2.0" ]
null
null
null
from collections import Mapping from . import yang_models class Meta(type): class Interface( yang_models .com_adva_netemu_testemu_client_TestInterface_YangListModel): """ Pythonizer for Java class ``TestInterface``. From Java package ``com.adva.netemu.testemu.cli...
23.7
73
0.571308
112
1,185
5.732143
0.383929
0.043614
0.080997
0.124611
0.239875
0.239875
0.239875
0.127726
0
0
0
0
0.34346
1,185
49
74
24.183673
0.825193
0.164557
0
0.115385
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.076923
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
4e61d7b801c1c3cd496fc2afd8c46c182f86ceda
666
py
Python
asym_rlpo/representations/identity.py
abaisero/asym-porl
8a76d920e51d783bbeeeea3cd2b02efffbb33c72
[ "MIT" ]
2
2021-08-24T22:41:36.000Z
2021-10-31T01:55:37.000Z
asym_rlpo/representations/identity.py
abaisero/asym-porl
8a76d920e51d783bbeeeea3cd2b02efffbb33c72
[ "MIT" ]
null
null
null
asym_rlpo/representations/identity.py
abaisero/asym-porl
8a76d920e51d783bbeeeea3cd2b02efffbb33c72
[ "MIT" ]
1
2021-10-13T12:27:40.000Z
2021-10-13T12:27:40.000Z
import gym import torch from asym_rlpo.utils.debugging import checkraise from .base import Representation class IdentityRepresentation(Representation): def __init__(self, input_space: gym.spaces.Box): super().__init__() checkraise( isinstance(input_space, gym.spaces.Box) ...
22.2
52
0.630631
76
666
5.263158
0.526316
0.125
0.065
0.095
0.11
0
0
0
0
0
0
0.002083
0.279279
666
29
53
22.965517
0.83125
0.040541
0
0
0
0
0.036107
0
0
0
0
0
0
1
0.142857
false
0
0.190476
0.095238
0.47619
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
4e630265553913112faaae0a442558c6d77373c7
8,885
py
Python
src/ggplib/db/lookup.py
richemslie/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
11
2019-03-02T13:49:07.000Z
2021-12-21T17:03:05.000Z
src/ggplib/db/lookup.py
ggplib/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
2
2019-05-15T18:23:50.000Z
2019-05-19T08:13:19.000Z
src/ggplib/db/lookup.py
ggplib/ggplib
8388678f311db4a9906d8a3aff71d3f0037b623b
[ "MIT" ]
1
2020-04-02T17:35:35.000Z
2020-04-02T17:35:35.000Z
import sys import traceback from ggplib.util import log from ggplib.statemachine import builder from ggplib.db import signature class GameInfo(object): def __init__(self, game, gdl_str): self.game = game self.gdl_str = gdl_str # might be None, depends on whether we grab it from sig.json ...
28.206349
88
0.566798
1,113
8,885
4.330638
0.18239
0.021162
0.029876
0.009336
0.269917
0.228838
0.201037
0.154979
0.079046
0.058506
0
0.006455
0.319977
8,885
314
89
28.296178
0.791294
0.074733
0
0.257426
0
0
0.06699
0.00261
0
0
0
0
0.014851
1
0.108911
false
0.024752
0.049505
0.024752
0.247525
0.004951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e658277a9b24094cf1e76fa7c348cccc93b01df
7,352
py
Python
main.py
dogerish/pic2html
cca9d032fb2325cb8c220cd0f5f632235d0f8c94
[ "MIT" ]
null
null
null
main.py
dogerish/pic2html
cca9d032fb2325cb8c220cd0f5f632235d0f8c94
[ "MIT" ]
null
null
null
main.py
dogerish/pic2html
cca9d032fb2325cb8c220cd0f5f632235d0f8c94
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import sys, re from PIL import Image # return the argument if it exists (converted to the same type as the default), otherwise default default = lambda arg, defa: type(defa)(sys.argv[arg]) if len(sys.argv) > arg and sys.argv[arg] else defa # filename of image to evaluate, default is image.jpg IMAG...
37.131313
104
0.569777
1,043
7,352
3.985618
0.249281
0.004811
0.025259
0.016358
0.121482
0.1121
0.095502
0.095502
0.083474
0.075054
0
0.019604
0.320049
7,352
197
105
37.319797
0.811962
0.314608
0
0.070175
0
0
0.02943
0.010482
0
0
0
0
0
1
0.131579
false
0.008772
0.017544
0.061404
0.298246
0.008772
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e6b5fa33d845c1a9c9c556d16d04f10c237dd56
3,401
py
Python
ising_model/hamiltonian.py
FeiQuantumSoftware/ising_model
6d8b177678aa953840fc01616dc7c789d9531b93
[ "BSD-3-Clause" ]
null
null
null
ising_model/hamiltonian.py
FeiQuantumSoftware/ising_model
6d8b177678aa953840fc01616dc7c789d9531b93
[ "BSD-3-Clause" ]
null
null
null
ising_model/hamiltonian.py
FeiQuantumSoftware/ising_model
6d8b177678aa953840fc01616dc7c789d9531b93
[ "BSD-3-Clause" ]
null
null
null
"""coupling Hamiltonian class def""" from math import exp import numpy as np from .spinconfig import SpinConfig class Hamiltonian(): """Create a class of Hamiltonian of 2-d Ising model. Parameters ---------- J: float, optional Coupling parameter, default J=-2 . u: float, optional ...
25.007353
91
0.486622
397
3,401
4.151134
0.307305
0.007282
0.040049
0.041869
0.071602
0.071602
0.050971
0
0
0
0
0.057309
0.39459
3,401
135
92
25.192593
0.743079
0.433108
0
0.078431
0
0
0.022945
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
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
4e7096429698d4dbcba3e4c9717842932c8154f8
1,363
py
Python
app.py
IamSilentBot/Guardzilla
8ca9dcda2d99cba1628b708a770a34dd726acd9e
[ "MIT" ]
1
2022-02-05T22:55:50.000Z
2022-02-05T22:55:50.000Z
app.py
IamSilentBot/Guardzilla
8ca9dcda2d99cba1628b708a770a34dd726acd9e
[ "MIT" ]
null
null
null
app.py
IamSilentBot/Guardzilla
8ca9dcda2d99cba1628b708a770a34dd726acd9e
[ "MIT" ]
1
2022-02-21T17:47:39.000Z
2022-02-21T17:47:39.000Z
import nextcord from nextcord.ext import commands import json import os import pymongo import os from keep_alive import keep_alive # Set environment variables # os.environ['info'] = "test:pass123" # os.environ['TOKEN'] = "MY-AWSOME-TOKEN" intents = nextcord.Intents.all() TOKEN = os.environ['TOKEN'] async def prefi...
27.816327
117
0.681585
192
1,363
4.713542
0.427083
0.046409
0.026519
0.075138
0.108287
0.108287
0.055249
0.055249
0
0
0
0.010508
0.162142
1,363
48
118
28.395833
0.781961
0.074101
0
0.117647
0
0.029412
0.186804
0.100954
0
0
0
0
0
1
0
false
0
0.205882
0
0.264706
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e73eaef843757f7ea7a8bbd35f9c54ff770774c
6,878
py
Python
chatbot/interact.py
VictorDebray/RoadBuddy
9c62e2acd2d540caa0ebefc50af5446c0d4f864f
[ "MIT" ]
null
null
null
chatbot/interact.py
VictorDebray/RoadBuddy
9c62e2acd2d540caa0ebefc50af5446c0d4f864f
[ "MIT" ]
null
null
null
chatbot/interact.py
VictorDebray/RoadBuddy
9c62e2acd2d540caa0ebefc50af5446c0d4f864f
[ "MIT" ]
null
null
null
# Author: DINDIN Meryll # Date: 15 September 2019 # Project: RoadBuddy try: from chatbot.imports import * except: from imports import * class Contextualizer: def __init__(self): try: self._load_models() except: drc = ['mo...
38
126
0.604536
829
6,878
4.834741
0.289505
0.026946
0.041168
0.026198
0.202844
0.133234
0.062874
0.043912
0.043912
0
0
0.011457
0.276679
6,878
180
127
38.211111
0.794171
0.064117
0
0.063636
0
0
0.089494
0.033463
0
0
0
0
0.009091
1
0.127273
false
0
0.018182
0
0.263636
0.009091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e76f4bcaf6c2b3ef6bdb2c9d12ef79f80ffb1ec
13,152
py
Python
iceprod/server/rest/datasets.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
2
2017-01-23T17:12:41.000Z
2019-01-14T13:38:17.000Z
iceprod/server/rest/datasets.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
242
2016-05-09T18:46:51.000Z
2022-03-31T22:02:29.000Z
iceprod/server/rest/datasets.py
WIPACrepo/iceprod
83615da9b0e764bc2498ac588cc2e2b3f5277235
[ "MIT" ]
2
2017-03-27T09:13:40.000Z
2019-01-27T10:55:30.000Z
import logging import json import uuid from collections import defaultdict import tornado.web import tornado.httpclient from tornado.platform.asyncio import to_asyncio_future import pymongo import motor from rest_tools.client import RestClient from iceprod.server.rest import RESTHandler, RESTHandlerSetup, authorizati...
34.978723
122
0.586603
1,512
13,152
4.973545
0.168651
0.05266
0.035904
0.057447
0.391489
0.353457
0.330452
0.307048
0.280452
0.253059
0
0.008925
0.284367
13,152
375
123
35.072
0.790055
0.061359
0
0.27193
0
0
0.18022
0.023221
0
0
0
0.005333
0
1
0.008772
false
0
0.052632
0
0.100877
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
4e79f990859c3061f129402b3a92ec843ee5ea60
2,938
py
Python
backend/utils/n9e_api.py
itimor/one-ops
f1111735de252012752dfabe11598e9690c89257
[ "MIT" ]
null
null
null
backend/utils/n9e_api.py
itimor/one-ops
f1111735de252012752dfabe11598e9690c89257
[ "MIT" ]
6
2021-03-19T10:20:05.000Z
2021-09-22T19:30:21.000Z
backend/utils/n9e_api.py
itimor/one-ops
f1111735de252012752dfabe11598e9690c89257
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # author: itimor import requests import json try: from urllib.parse import urlencode except ImportError: from urllib import urlencode class FalconClient(object): def __init__(self, endpoint=None, user=None, token=None, keys=[], session=None, ssl_verify=True): self._endpoi...
31.255319
112
0.566372
331
2,938
4.791541
0.335347
0.051072
0.04918
0.059899
0.0971
0.0971
0.080076
0.080076
0.052963
0
0
0.019118
0.30565
2,938
93
113
31.591398
0.758333
0.031995
0
0.056338
0
0
0.090236
0.011984
0
0
0
0
0
1
0.070423
false
0.014085
0.070423
0
0.225352
0.042254
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e7ab87b888bbbe2383cfa6903a948e5d52465e7
9,035
py
Python
tests/test_mapexplorer.py
OCHA-DAP/hdx-scraper-mapexplorer
3fef67376815611657657c6d53ce904b8f9e4550
[ "MIT" ]
null
null
null
tests/test_mapexplorer.py
OCHA-DAP/hdx-scraper-mapexplorer
3fef67376815611657657c6d53ce904b8f9e4550
[ "MIT" ]
null
null
null
tests/test_mapexplorer.py
OCHA-DAP/hdx-scraper-mapexplorer
3fef67376815611657657c6d53ce904b8f9e4550
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Unit tests for scrapername. ''' import difflib import filecmp from datetime import datetime from os.path import join from tempfile import gettempdir import pytest from hdx.hdx_configuration import Configuration import hdx.utilities.downloader from hdx.utilities.compare im...
44.727723
220
0.657554
1,017
9,035
5.576205
0.165192
0.047611
0.044437
0.044613
0.691589
0.611003
0.580674
0.537824
0.497972
0.44419
0
0.00607
0.2342
9,035
201
221
44.950249
0.813557
0.123962
0
0.525641
0
0.025641
0.182106
0.045748
0
0
0
0
0.044872
1
0.192308
false
0.019231
0.089744
0.070513
0.467949
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
4e81b7168137c8ead27ea61e73b96364b565fc1e
708
py
Python
2016/day_06.py
nabiirah/advent-of-code
9c7e7cae437c024aa05d9cb7f9211fd47f5226a2
[ "MIT" ]
24
2020-12-08T20:07:52.000Z
2022-01-18T20:08:06.000Z
2016/day_06.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
null
null
null
2016/day_06.py
nestorhf/advent-of-code
1bb827e9ea85e03e0720e339d10b3ed8c44d8f27
[ "MIT" ]
10
2020-12-04T10:04:15.000Z
2022-02-21T22:22:26.000Z
""" Advent of Code Day 6 - Signals and Noise""" with open('inputs/day_06.txt', 'r') as f: rows = [row.strip() for row in f.readlines()] flipped = zip(*rows) message = '' mod_message = '' for chars in flipped: most_freq = '' least_freq = '' highest = 0 lowest = 100 for char in chars: ...
22.83871
51
0.601695
94
708
4.425532
0.478723
0.096154
0.134615
0.076923
0
0
0
0
0
0
0
0.013699
0.278249
708
30
52
23.6
0.800391
0.101695
0
0
0
0
0.094099
0
0
0
0
0
0
1
0
false
0
0
0
0
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e83689fcdf6c1f0b2f2c351aa1c6fe2dad28771
1,846
py
Python
tasks.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
6
2017-10-31T20:54:37.000Z
2020-10-23T19:03:00.000Z
tasks.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
7
2020-03-24T16:14:34.000Z
2021-03-18T20:51:37.000Z
tasks.py
chmp/misc-exp
2edc2ed598eb59f4ccb426e7a5c1a23343a6974b
[ "MIT" ]
1
2019-07-29T07:55:49.000Z
2019-07-29T07:55:49.000Z
import hashlib import json import os import pathlib import shlex import nbformat from invoke import task files_to_format = ["chmp/src", "tasks.py", "chmp/setup.py"] inventories = [ "http://daft-pgm.org", "https://matplotlib.org", "http://www.numpy.org", "https://pandas.pydata.org", "https://docs....
20.511111
84
0.566089
237
1,846
4.329114
0.434599
0.02729
0.01462
0.021443
0.038986
0.038986
0
0
0
0
0
0.006574
0.258397
1,846
89
85
20.741573
0.742878
0
0
0.134328
0
0
0.228061
0.023294
0
0
0
0
0
1
0.089552
false
0
0.119403
0
0.238806
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4e83cc92299ecc7a687b5a70cfeda857351d4ef2
1,016
py
Python
WeChat/translation.py
satoukiCk/SummerRobot
a22b17fb1927dcc1aa7316e2b892f7daee484583
[ "MIT" ]
null
null
null
WeChat/translation.py
satoukiCk/SummerRobot
a22b17fb1927dcc1aa7316e2b892f7daee484583
[ "MIT" ]
null
null
null
WeChat/translation.py
satoukiCk/SummerRobot
a22b17fb1927dcc1aa7316e2b892f7daee484583
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import requests import json import random import hashlib KEY = '' APPID = '' API = 'http://api.fanyi.baidu.com/api/trans/vip/translate' class translation(): def __init__(self,src, fromlang, tolang): self.src = src self.fromlang = fromlang self.tolang = tolang de...
25.4
81
0.541339
122
1,016
4.434426
0.47541
0.051756
0.05915
0.062847
0
0
0
0
0
0
0
0.029619
0.302165
1,016
39
82
26.051282
0.733427
0.019685
0
0
0
0
0.125755
0
0
0
0
0
0
1
0.060606
false
0
0.121212
0
0.242424
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
4e864e061007124f810efb595fdd8cc9331ec714
2,040
py
Python
kicost/currency_converter/currency_converter.py
mdeweerd/KiCost
2f67dad0f8d3335590835a6790181fc6428086d5
[ "MIT" ]
null
null
null
kicost/currency_converter/currency_converter.py
mdeweerd/KiCost
2f67dad0f8d3335590835a6790181fc6428086d5
[ "MIT" ]
null
null
null
kicost/currency_converter/currency_converter.py
mdeweerd/KiCost
2f67dad0f8d3335590835a6790181fc6428086d5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) 2021 Salvador E. Tropea # Copyright (c) 2021 Instituto Nacional de Tecnología Industrial # License: Apache 2.0 # Project: KiCost # Adapted from: https://github.com/alexprengere/currencyconverter """ CurrencyConverter: This is reduced version of the 'Currency Co...
30.447761
77
0.666667
255
2,040
5.196078
0.431373
0.033962
0.031698
0.039245
0.10717
0
0
0
0
0
0
0.012862
0.237745
2,040
66
78
30.909091
0.839228
0.457843
0
0
0
0
0.103922
0
0
0
0
0
0
1
0.107143
false
0
0.107143
0
0.321429
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
4e893aecc42c83f372f87792977e579561f4f1e5
385
py
Python
apps/vector.py
HayesAJ83/LeafMapAppTest
5da65d5c1958f47934453124a72ec800c0ce6a93
[ "MIT" ]
22
2021-08-10T05:11:47.000Z
2022-02-27T14:35:30.000Z
apps/vector.py
HayesAJ83/LeafMapAppTest
5da65d5c1958f47934453124a72ec800c0ce6a93
[ "MIT" ]
null
null
null
apps/vector.py
HayesAJ83/LeafMapAppTest
5da65d5c1958f47934453124a72ec800c0ce6a93
[ "MIT" ]
8
2021-10-04T13:10:32.000Z
2021-11-17T12:32:57.000Z
import streamlit as st import leafmap def app(): st.title("Add vector datasets") url = "https://raw.githubusercontent.com/giswqs/data/main/world/world_cities.csv" in_csv = st.text_input("Enter a URL to a vector file", url) m = leafmap.Map() if in_csv: m.add_xy_data(in_csv, x="longitude"...
22.647059
85
0.675325
61
385
4.114754
0.639344
0.059761
0
0
0
0
0
0
0
0
0
0
0.18961
385
16
86
24.0625
0.804487
0
0
0
0
0
0.387013
0
0
0
0
0
0
1
0.1
false
0
0.2
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
4e90e63aeba9851ed0445a458eb6eb560cabb51f
5,684
py
Python
tests/unit/test_command.py
shintaii/flower
fdeb135ddb3718404c0f1e9cca73fc45181f611a
[ "BSD-3-Clause" ]
4,474
2015-01-01T18:34:36.000Z
2022-03-29T06:02:38.000Z
tests/unit/test_command.py
shintaii/flower
fdeb135ddb3718404c0f1e9cca73fc45181f611a
[ "BSD-3-Clause" ]
835
2015-01-06T21:29:48.000Z
2022-03-31T04:35:10.000Z
tests/unit/test_command.py
shintaii/flower
fdeb135ddb3718404c0f1e9cca73fc45181f611a
[ "BSD-3-Clause" ]
980
2015-01-02T21:41:28.000Z
2022-03-31T08:30:52.000Z
import os import sys import tempfile import unittest import subprocess from unittest.mock import Mock, patch import mock from prometheus_client import Histogram from flower.command import apply_options, warn_about_celery_args_used_in_flower_command, apply_env_options from tornado.options import options from tests.uni...
39.748252
106
0.645144
677
5,684
5.172821
0.25997
0.029983
0.048544
0.068532
0.449172
0.408909
0.408909
0.368075
0.296402
0.296402
0
0.01049
0.228536
5,684
142
107
40.028169
0.788141
0.018473
0
0.304762
0
0
0.170132
0.031821
0
0
0
0
0.161905
1
0.152381
false
0
0.104762
0.009524
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
4e91557146c36922257c5f4c9ff456b0ce8b407c
534
py
Python
Trojan.py
alrocks29/alpha-backdoor
16a2d0ffdb183005f687bdf19b25cc918a1f12a0
[ "MIT" ]
null
null
null
Trojan.py
alrocks29/alpha-backdoor
16a2d0ffdb183005f687bdf19b25cc918a1f12a0
[ "MIT" ]
null
null
null
Trojan.py
alrocks29/alpha-backdoor
16a2d0ffdb183005f687bdf19b25cc918a1f12a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import requests import subprocess import os import tempfile def download(url): get_response = requests.get(url) file_name = url.split("/")[-1] with open(file_name, "wb") as out_file: out_file.write(get_response.content) temp_directory = tempfile.gettempdir() os.chdir(temp_d...
21.36
44
0.724719
77
534
4.922078
0.519481
0.063325
0.073879
0
0
0
0
0
0
0
0
0.002119
0.116105
534
24
45
22.25
0.800847
0.037453
0
0
0
0
0.167641
0
0
0
0
0
0
1
0.058824
false
0
0.235294
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
4e91fe4c0f8f01c97da338f53c30caedc69665c2
3,524
py
Python
Assignments/Assignment_1/Q1/task1.py
Kaustubh1Verma/CS671_Deep-Learning_2019
062002a1369dc962feb52d3c9561a3f1153e0f84
[ "MIT" ]
null
null
null
Assignments/Assignment_1/Q1/task1.py
Kaustubh1Verma/CS671_Deep-Learning_2019
062002a1369dc962feb52d3c9561a3f1153e0f84
[ "MIT" ]
null
null
null
Assignments/Assignment_1/Q1/task1.py
Kaustubh1Verma/CS671_Deep-Learning_2019
062002a1369dc962feb52d3c9561a3f1153e0f84
[ "MIT" ]
1
2019-06-12T14:02:33.000Z
2019-06-12T14:02:33.000Z
import numpy as np import cv2 import math import random import os from tempfile import TemporaryFile from sklearn.model_selection import train_test_split # Creating classes. length=[7,15] width=[1,3] col=[] col.append([0,0,255]) #Blue col.append([255,0,0]) #Red interval=15 angles=[] x=0 while x<180: angles.append(x...
32.036364
126
0.653235
641
3,524
3.524181
0.215289
0.055777
0.12085
0.148738
0.361664
0.351926
0.326251
0.27313
0.216467
0.184595
0
0.071291
0.116345
3,524
110
127
32.036364
0.654143
0.200624
0
0.023529
0
0
0.13625
0.120115
0
0
0
0
0
1
0
false
0
0.082353
0
0.082353
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
4e949a6f4b8f9d86c879098cae8dde8d91b75f85
10,163
py
Python
helpers.py
jchanke/mixtape50
68d03034b503fd0374b9fcba1c1d5207ed7f0170
[ "MIT" ]
1
2022-03-15T11:49:54.000Z
2022-03-15T11:49:54.000Z
helpers.py
jchanke/mixtape50
68d03034b503fd0374b9fcba1c1d5207ed7f0170
[ "MIT" ]
null
null
null
helpers.py
jchanke/mixtape50
68d03034b503fd0374b9fcba1c1d5207ed7f0170
[ "MIT" ]
null
null
null
""" Does the legwork of searching for matching tracks. Contains: (1) Search functions: - search_message - search_spotipy - search_db - search_lookup (2) String parsers (to clean title name): - clean_title - remove_punctuation (3) Creates new Spotify playlist. - create_playlist """ from typing import Any, Lis...
34.686007
168
0.630326
1,248
10,163
5.022436
0.258814
0.029834
0.014359
0.015795
0.25
0.190491
0.185227
0.17007
0.124442
0.115507
0
0.012773
0.25278
10,163
293
169
34.686007
0.812352
0.378136
0
0.169492
0
0
0.110387
0.038053
0
0
0
0
0
1
0.059322
false
0
0.067797
0
0.228814
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0