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
fea776840ba3b32f75565766babfd041aa64ab68
1,830
py
Python
environments/recommenders/recsim_wrapper_test.py
jackblandin/ml-fairness-gym
dce1feaacf2588e0a2d6187e896796241a25ed81
[ "Apache-2.0" ]
null
null
null
environments/recommenders/recsim_wrapper_test.py
jackblandin/ml-fairness-gym
dce1feaacf2588e0a2d6187e896796241a25ed81
[ "Apache-2.0" ]
null
null
null
environments/recommenders/recsim_wrapper_test.py
jackblandin/ml-fairness-gym
dce1feaacf2588e0a2d6187e896796241a25ed81
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The ML Fairness Gym Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
31.551724
74
0.742623
240
1,830
5.408333
0.5
0.046225
0.03698
0.024653
0.389831
0.389831
0.340524
0.340524
0.340524
0.340524
0
0.013289
0.177596
1,830
57
75
32.105263
0.849169
0.337158
0
0.5
0
0
0.083822
0
0
0
0
0
0
1
0.0625
false
0
0.21875
0
0.3125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fea7d2eca288a3ef4c60e731703c65a5e9641808
3,034
py
Python
moss_client_cli.py
mernst32/dl-searchcode-code
504fe59df245ba123ad8ad6e45f03b17de6ef236
[ "MIT" ]
null
null
null
moss_client_cli.py
mernst32/dl-searchcode-code
504fe59df245ba123ad8ad6e45f03b17de6ef236
[ "MIT" ]
null
null
null
moss_client_cli.py
mernst32/dl-searchcode-code
504fe59df245ba123ad8ad6e45f03b17de6ef236
[ "MIT" ]
null
null
null
import argparse import csv import os from moss_client.core import submit_and_dl, parse_moss_reports data_folder = 'data' def handle_input(user_id, base_folder, parse, only_parse, join_file, batch): global data_folder abs_path = os.path.abspath(os.path.dirname(__file__)) root_data_folder = os.path.join(ab...
57.245283
123
0.680949
438
3,034
4.493151
0.33105
0.04065
0.051829
0.028963
0.089939
0.051829
0.028455
0
0
0
0
0.006754
0.219183
3,034
52
124
58.346154
0.823976
0
0
0
0
0
0.354977
0.00857
0
0
0
0
0
1
0.021739
false
0
0.086957
0
0.130435
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fea81883e0bc239697344b2c58f07b4a45f346d3
6,495
py
Python
catkin_ws/src/localization/src/localization_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/localization/src/localization_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
14
2017-03-03T23:33:05.000Z
2018-04-03T18:07:53.000Z
catkin_ws/src/localization/src/localization_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python import rospy #from apriltags_ros.msg import AprilTagDetectionArray from duckietown_msgs.msg import AprilTagsWithInfos import tf2_ros from tf2_msgs.msg import TFMessage import tf.transformations as tr from geometry_msgs.msg import Transform, TransformStamped import numpy as np from localization imp...
45.41958
147
0.652194
915
6,495
4.47541
0.242623
0.017582
0.017582
0.014652
0.231013
0.196825
0.185104
0.169231
0.14188
0.122833
0
0.012477
0.247267
6,495
142
148
45.739437
0.825118
0.197383
0
0.134615
0
0
0.039507
0
0
0
0
0
0
1
0.076923
false
0
0.086538
0
0.211538
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
fea8219f00f084855cf10ddacc7d1729db19658a
1,030
py
Python
gen_data/get_teams.py
wusui/NCAA2019
d33a69926dc2d5355f33f9b69e39475c54d03c56
[ "MIT" ]
null
null
null
gen_data/get_teams.py
wusui/NCAA2019
d33a69926dc2d5355f33f9b69e39475c54d03c56
[ "MIT" ]
null
null
null
gen_data/get_teams.py
wusui/NCAA2019
d33a69926dc2d5355f33f9b69e39475c54d03c56
[ "MIT" ]
null
null
null
#!/usr/bin/python # pylint: disable=W0223 """ Get a list of teams """ from html.parser import HTMLParser import requests class ChkTeams(HTMLParser): """ Extract team names from page """ def __init__(self): HTMLParser.__init__(self) self.retval = [] def handle_starttag(self, tag, a...
20.196078
74
0.590291
130
1,030
4.492308
0.576923
0.05137
0.023973
0.041096
0
0
0
0
0
0
0
0.010753
0.27767
1,030
50
75
20.6
0.774194
0.163107
0
0
0
0
0.121287
0
0
0
0
0
0
1
0.16
false
0
0.08
0
0.32
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
fea8eab09203e9965fd3c37311110a5d329a6d18
2,882
py
Python
svgserver/app.py
omniscale/svgserver
a98f75ec9547fda25941129e854af046ba8f5dfe
[ "Apache-2.0" ]
2
2018-10-18T07:15:58.000Z
2020-04-09T20:42:07.000Z
svgserver/app.py
omniscale/svgserver
a98f75ec9547fda25941129e854af046ba8f5dfe
[ "Apache-2.0" ]
null
null
null
svgserver/app.py
omniscale/svgserver
a98f75ec9547fda25941129e854af046ba8f5dfe
[ "Apache-2.0" ]
2
2019-06-20T01:29:59.000Z
2021-12-01T12:18:55.000Z
import codecs import tempfile from contextlib import closing from .cgi import CGIClient from .combine import CombineSVG from .mapserv import MapServer, InternalError from .tree import build_tree def _recursive_add_layer(nodes, params, svg, mapserver, translations): for node in nodes: group_name = format...
29.408163
90
0.586051
324
2,882
5.080247
0.37037
0.021871
0.030984
0.026731
0.071689
0
0
0
0
0
0
0.040079
0.298751
2,882
97
91
29.71134
0.774369
0.010409
0
0.025
0
0
0.105614
0.024912
0
0
0
0
0
1
0.05
false
0
0.1125
0
0.225
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
feab97b0913494abc7216c346f3470dd95d2e154
1,001
py
Python
test/lib_config_test.py
yokoyama-flogics/ibp_monitor_2
1a7df55a524ff3a7908df330e7e02c9f27e24ae0
[ "BSD-2-Clause" ]
3
2017-11-23T13:29:47.000Z
2021-01-08T09:28:35.000Z
test/lib_config_test.py
yokoyama-flogics/ibp_monitor_2
1a7df55a524ff3a7908df330e7e02c9f27e24ae0
[ "BSD-2-Clause" ]
null
null
null
test/lib_config_test.py
yokoyama-flogics/ibp_monitor_2
1a7df55a524ff3a7908df330e7e02c9f27e24ae0
[ "BSD-2-Clause" ]
2
2018-02-15T08:11:24.000Z
2021-01-08T09:28:43.000Z
import os import sys import unittest # Set Python search path to the parent directory sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from lib.config import * class TestLibConfig(unittest.TestCase): def test_config_noconfigfile(self): config = BeaconConfigParser('not_exist.cfg') wit...
33.366667
70
0.679321
111
1,001
5.945946
0.477477
0.060606
0.059091
0.09697
0.260606
0.260606
0
0
0
0
0
0.006165
0.18981
1,001
29
71
34.517241
0.807645
0.045954
0
0.173913
0
0
0.12277
0
0
0
0
0
0.217391
1
0.130435
false
0
0.217391
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
feb1c1e0c98bd37c082895d1888d0fe15b8aaccf
19,367
py
Python
claripy/vsa/valueset.py
kwalberg/claripy
b5cfa0a355eaa3cd5403e1d81f0b80bb3db20c90
[ "BSD-2-Clause" ]
null
null
null
claripy/vsa/valueset.py
kwalberg/claripy
b5cfa0a355eaa3cd5403e1d81f0b80bb3db20c90
[ "BSD-2-Clause" ]
null
null
null
claripy/vsa/valueset.py
kwalberg/claripy
b5cfa0a355eaa3cd5403e1d81f0b80bb3db20c90
[ "BSD-2-Clause" ]
null
null
null
import functools import itertools import numbers from ..backend_object import BackendObject from ..annotation import Annotation def normalize_types_two_args(f): @functools.wraps(f) def normalizer(self, region, o): """ Convert any object to an object that we can process. """ if ...
29.795385
120
0.58357
2,290
19,367
4.758952
0.139738
0.043402
0.039824
0.014315
0.402826
0.343641
0.309782
0.267113
0.220316
0.183979
0
0.00224
0.331543
19,367
649
121
29.841294
0.839564
0.208241
0
0.339286
0
0
0.040863
0
0
0
0.000345
0.006163
0
1
0.139881
false
0.002976
0.029762
0.047619
0.342262
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
feb21c64003d71c234c911e57ed8a4baa217c7cb
2,663
py
Python
fardaastationapi.py
sina-cb/fardaastationapi
0e27afe05195f346e17fd52e1c30b853c954a3b0
[ "Apache-2.0" ]
null
null
null
fardaastationapi.py
sina-cb/fardaastationapi
0e27afe05195f346e17fd52e1c30b853c954a3b0
[ "Apache-2.0" ]
1
2017-12-21T19:54:36.000Z
2018-01-08T02:05:11.000Z
fardaastationapi.py
sina-cb/fardaastationapi
0e27afe05195f346e17fd52e1c30b853c954a3b0
[ "Apache-2.0" ]
null
null
null
import logging from episodes import find_updates, db, count_all from logging import error as logi from flask import Flask, jsonify, request def create_app(config, debug=False, testing=False, config_overrides=None): app = Flask(__name__) app.config.from_object(config) app.config['JSON_AS_ASCII'] = False ...
33.708861
119
0.592189
299
2,663
5.167224
0.438127
0.023301
0.014239
0.036246
0.045307
0
0
0
0
0
0
0.01358
0.308674
2,663
78
120
34.141026
0.825638
0.065715
0
0.034483
0
0
0.29561
0
0
0
0
0
0
1
0.12069
false
0.017241
0.086207
0.017241
0.327586
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
feb49cfe9fd1f9a9e260952a3552e9f39bc9e707
12,199
py
Python
catapult.py
spraakbanken/sparv-catapult
03273985ceea6feef47a56084c595580d0338f7d
[ "MIT" ]
null
null
null
catapult.py
spraakbanken/sparv-catapult
03273985ceea6feef47a56084c595580d0338f7d
[ "MIT" ]
2
2021-12-13T19:47:29.000Z
2021-12-15T16:14:50.000Z
catapult.py
spraakbanken/sparv-catapult
03273985ceea6feef47a56084c595580d0338f7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # catapult: runs python scripts in already running processes to eliminate the # python interpreter startup time. # # The lexicon for sparv.saldo.annotate and sparv.saldo.compound can be pre-loaded and # shared between processes. See the variable annotators in handle and start. # # Run scripts in...
32.617647
111
0.61792
1,511
12,199
4.848445
0.244209
0.019656
0.022523
0.01365
0.189189
0.142643
0.100191
0.069888
0.063882
0.063882
0
0.005835
0.283548
12,199
373
112
32.705094
0.83238
0.275268
0
0.211538
0
0
0.08759
0.002466
0
0
0
0
0
1
0.057692
false
0.004808
0.067308
0
0.149038
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
feb55dc64767ea42fd4dbdb633eb49cefc5afea8
2,445
py
Python
tests/test_sentiments.py
rajeshkumargp/TextBlob
a8709368f2a8a8ba4d87730111f8b6675d0735cd
[ "MIT" ]
6,608
2015-01-02T13:13:16.000Z
2022-03-31T13:44:41.000Z
tests/test_sentiments.py
rajeshkumargp/TextBlob
a8709368f2a8a8ba4d87730111f8b6675d0735cd
[ "MIT" ]
277
2015-01-01T15:08:55.000Z
2022-03-28T20:00:06.000Z
tests/test_sentiments.py
rajeshkumargp/TextBlob
a8709368f2a8a8ba4d87730111f8b6675d0735cd
[ "MIT" ]
1,110
2015-01-01T22:04:39.000Z
2022-03-20T20:39:26.000Z
from __future__ import unicode_literals import unittest from nose.tools import * # PEP8 asserts from nose.plugins.attrib import attr from textblob.sentiments import PatternAnalyzer, NaiveBayesAnalyzer, DISCRETE, CONTINUOUS class TestPatternSentiment(unittest.TestCase): def setUp(self): self.analyzer = ...
35.434783
89
0.685481
325
2,445
4.92
0.249231
0.110069
0.073171
0.095059
0.461538
0.399625
0.333959
0.212633
0.212633
0.1601
0
0.037461
0.213906
2,445
68
90
35.955882
0.794485
0.047035
0
0.230769
0
0
0.070937
0
0
0
0
0
0.384615
1
0.153846
false
0
0.096154
0.019231
0.307692
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
feb7b66503cd218d51059640f9914912cefb66a6
14,533
py
Python
tests/scripts/thread-cert/test_network_layer.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
2,962
2016-05-11T15:06:06.000Z
2022-03-27T20:06:16.000Z
tests/scripts/thread-cert/test_network_layer.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
5,899
2016-05-11T19:21:49.000Z
2022-03-31T18:17:20.000Z
tests/scripts/thread-cert/test_network_layer.py
AdityaHPatwardhan/openthread
a201e9d5d0273bb51fa20efc8758be20a725018e
[ "BSD-3-Clause" ]
1,113
2016-05-11T15:37:42.000Z
2022-03-31T09:37:04.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
29.538618
103
0.718021
1,777
14,533
5.500281
0.141249
0.057704
0.037242
0.036935
0.606507
0.555044
0.436873
0.377225
0.352875
0.307755
0
0.009144
0.209867
14,533
491
104
29.598778
0.842027
0.134246
0
0.286385
0
0
0.001122
0
0
0
0
0
0.178404
1
0.187793
false
0
0.028169
0.042254
0.361502
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
feb8045cb4a0a0c1c1b374f1a7ddff3513dfcc95
7,079
py
Python
salt/modules/kernelpkg_linux_apt.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/modules/kernelpkg_linux_apt.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/modules/kernelpkg_linux_apt.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Manage Linux kernel packages on APT-based systems """ import functools import logging import re try: from salt.utils.versions import LooseVersion as _LooseVersion from salt.exceptions import CommandExecutionError HAS_REQUIRED_LIBS = True except ImportError: HAS_REQUIRED_LIBS = False log = loggin...
24.49481
98
0.638932
858
7,079
5.081585
0.241259
0.029817
0.028899
0.03922
0.182339
0.155505
0.124312
0.064679
0.022936
0
0
0.004733
0.253849
7,079
288
99
24.579861
0.820712
0.418703
0
0.04
0
0
0.152616
0.006235
0
0
0
0
0
1
0.13
false
0
0.07
0
0.42
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
feb9338f0d564ca62f3ee051a6a33301b2ea1017
1,818
py
Python
main.py
david-slatinek/running-a-program-on-the-CPU-vs.-on-the-GPU
971b911efee8f52c5950ba777b79e58a4f840024
[ "Apache-2.0" ]
null
null
null
main.py
david-slatinek/running-a-program-on-the-CPU-vs.-on-the-GPU
971b911efee8f52c5950ba777b79e58a4f840024
[ "Apache-2.0" ]
null
null
null
main.py
david-slatinek/running-a-program-on-the-CPU-vs.-on-the-GPU
971b911efee8f52c5950ba777b79e58a4f840024
[ "Apache-2.0" ]
null
null
null
import json import numpy as np from numba import jit from timeit import default_timer as timer # Constant, used in the formula. # Defined here to speed up the calculation, i.e. it's calculated only once # and then placed in the formula. SQRT_2PI = np.float32(np.sqrt(2 * np.pi)) # This function will run on the CPU. d...
25.605634
98
0.633663
263
1,818
4.273764
0.406844
0.048932
0.029359
0.033808
0.22242
0.190391
0.147687
0.147687
0.147687
0.147687
0
0.020513
0.249175
1,818
70
99
25.971429
0.80293
0.356986
0
0.25
0
0
0.017953
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.21875
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
227dbc607b392dad80b7a078ce5ee4e6eb5704f6
5,605
py
Python
utility_functions.py
Team-501-The-PowerKnights/Powerknights-Slack-Bot
1ce25c954aa0c089aa93a3d63bd475d585d39bb6
[ "Apache-2.0" ]
1
2019-05-03T13:20:09.000Z
2019-05-03T13:20:09.000Z
utility_functions.py
Team-501-The-PowerKnights/Powerknights-Slack-Bot
1ce25c954aa0c089aa93a3d63bd475d585d39bb6
[ "Apache-2.0" ]
8
2019-05-04T17:06:21.000Z
2020-05-29T12:37:06.000Z
utility_functions.py
Team-501-The-PowerKnights/Powerknights-Slack-Bot
1ce25c954aa0c089aa93a3d63bd475d585d39bb6
[ "Apache-2.0" ]
null
null
null
import datetime def iso_extract_info(string): """ Will get all of the info and return it as an array :param string: ISO formatted string that will be used for extraction :return: array [year, month, day, military_time_hour, minutes, hours] :note: every item is an int except for minutes ...
31.846591
106
0.662979
814
5,605
4.355037
0.167076
0.028773
0.058674
0.057546
0.635825
0.601975
0.583357
0.516502
0.493935
0.473061
0
0.034324
0.225513
5,605
175
107
32.028571
0.782308
0.316503
0
0.576923
0
0
0.056769
0
0
0
0
0
0
1
0.057692
false
0
0.009615
0
0.278846
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
228079c406da2849bf07a999b9fbe4042daf4300
1,424
py
Python
python/ch_06_Animatronic_Head.py
tallamjr/mbms
6763faa870d1a16f272b3eade70b433ed3df0e51
[ "MIT" ]
18
2018-06-07T07:11:59.000Z
2022-02-28T20:08:23.000Z
python/ch_06_Animatronic_Head.py
tallamjr/mbms
6763faa870d1a16f272b3eade70b433ed3df0e51
[ "MIT" ]
1
2020-05-20T16:24:24.000Z
2020-05-21T09:03:24.000Z
python/ch_06_Animatronic_Head.py
tallamjr/mbms
6763faa870d1a16f272b3eade70b433ed3df0e51
[ "MIT" ]
8
2019-04-10T16:04:11.000Z
2022-01-08T20:39:15.000Z
from microbit import * import random, speech, radio eye_angles = [50, 140, 60, 90, 140] radio.off() sentences = [ "Hello my name is Mike", "What is your name", "I am looking at you", "Exterminate exterminate exterminate", "Number Five is alive", "I cant do that Dave", "daisee daisee give ...
21.575758
67
0.525281
174
1,424
4.206897
0.522989
0.040984
0.053279
0.046448
0
0
0
0
0
0
0
0.134844
0.349017
1,424
66
68
21.575758
0.6548
0.019663
0
0.25
0
0
0.182079
0
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.096154
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
2283023fbf32c038ed31074c2a312a5a7aa70d38
5,248
py
Python
src/hammer-vlsi/technology/sky130/sram_compiler/__init__.py
httpsgithu/hammer
6099f4169a49f71cee2e24bb1052f273039505cd
[ "BSD-3-Clause" ]
138
2017-08-15T18:56:55.000Z
2022-03-29T05:23:37.000Z
src/hammer-vlsi/technology/sky130/sram_compiler/__init__.py
httpsgithu/hammer
6099f4169a49f71cee2e24bb1052f273039505cd
[ "BSD-3-Clause" ]
444
2017-09-11T01:15:37.000Z
2022-03-31T17:30:33.000Z
src/hammer-vlsi/technology/sky130/sram_compiler/__init__.py
httpsgithu/hammer
6099f4169a49f71cee2e24bb1052f273039505cd
[ "BSD-3-Clause" ]
33
2017-10-30T14:23:53.000Z
2022-03-25T01:36:13.000Z
import os, tempfile, subprocess from hammer_vlsi import MMMCCorner, MMMCCornerType, HammerTool, HammerToolStep, HammerSRAMGeneratorTool, SRAMParameters from hammer_vlsi.units import VoltageValue, TemperatureValue from hammer_tech import Library, ExtraLibrary from typing import NamedTuple, Dict, Any, List from abc imp...
51.960396
126
0.582127
667
5,248
4.428786
0.290855
0.043331
0.037238
0.047393
0.459716
0.416385
0.391672
0.374069
0.287745
0.287745
0
0.01435
0.282965
5,248
100
127
52.48
0.770662
0.391578
0
0
0
0
0.131997
0.02799
0
0
0
0.01
0
1
0.056604
false
0
0.113208
0.037736
0.264151
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2283626d76b9fe6781848e584e29b4b24ab5e062
2,837
py
Python
Section 4/nlp-4-ngrams.py
PacktPublishing/Hands-on-NLP-with-NLTK-and-scikit-learn-
8bb2095093a822363675368a4216d30d14cac501
[ "MIT" ]
34
2018-08-14T09:59:13.000Z
2021-11-08T13:12:50.000Z
Section 4/nlp-4-ngrams.py
anapatgl/Hands-on-NLP-with-NLTK-and-scikit-learn-
8bb2095093a822363675368a4216d30d14cac501
[ "MIT" ]
1
2018-11-28T19:20:37.000Z
2018-11-28T19:20:37.000Z
Section 4/nlp-4-ngrams.py
anapatgl/Hands-on-NLP-with-NLTK-and-scikit-learn-
8bb2095093a822363675368a4216d30d14cac501
[ "MIT" ]
31
2018-08-07T07:34:33.000Z
2022-03-15T08:50:44.000Z
import collections import nltk import os from sklearn import ( datasets, model_selection, feature_extraction, linear_model, naive_bayes, ensemble ) def extract_features(corpus): '''Extract TF-IDF features from corpus''' sa_stop_words = nltk.corpus.stopwords.words("english") # words that might in...
36.844156
90
0.70638
382
2,837
5.028796
0.473822
0.01874
0.01874
0.026028
0.091098
0.052056
0
0
0
0
0
0.009988
0.152979
2,837
76
91
37.328947
0.78943
0.131477
0
0
0
0
0.164831
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.113208
0.132075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2284b104a47dc324bd27f42ce83e41850b152d6c
27,170
py
Python
nemo/collections/tts/torch/data.py
MalikIdreesHasanKhan/NeMo
984fd34921e81659c4594a22ab142311808b3bb7
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
nemo/collections/tts/torch/data.py
MalikIdreesHasanKhan/NeMo
984fd34921e81659c4594a22ab142311808b3bb7
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
nemo/collections/tts/torch/data.py
MalikIdreesHasanKhan/NeMo
984fd34921e81659c4594a22ab142311808b3bb7
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
42.386895
147
0.61325
3,373
27,170
4.68989
0.12689
0.02124
0.027119
0.034389
0.325368
0.275049
0.225299
0.197042
0.154435
0.107719
0
0.004432
0.302392
27,170
640
148
42.453125
0.830115
0.180199
0
0.236025
0
0
0.076466
0.010872
0
0
0
0
0.00207
1
0.039337
false
0.006211
0.031056
0.00207
0.093168
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
2284c119fbaa59ef00a4dd53417eccef839221b3
1,140
py
Python
anmotordesign/server.py
MarkWengSTR/ansys-maxwell-online
f9bbc535c7637d8f34abb241acfb97d1bdbe4103
[ "MIT" ]
8
2021-01-25T11:17:32.000Z
2022-03-29T05:34:47.000Z
anmotordesign/server.py
MarkWengSTR/ansys-maxwell-online
f9bbc535c7637d8f34abb241acfb97d1bdbe4103
[ "MIT" ]
1
2021-06-14T18:40:16.000Z
2021-08-25T14:37:21.000Z
anmotordesign/server.py
MarkWengSTR/ansys-maxwell-online
f9bbc535c7637d8f34abb241acfb97d1bdbe4103
[ "MIT" ]
8
2020-09-25T15:40:07.000Z
2022-03-29T05:34:48.000Z
from flask import Flask, request, jsonify from flask_cors import CORS from run import run_ansys from api.validate import spec_present, data_type_validate, spec_keys_validate, ansys_overload_check ansys_processing_count = 0 # debug # import ipdb; ipdb.set_trace() app = Flask(__name__) CORS(app) # local development co...
25.909091
99
0.62193
140
1,140
4.75
0.421429
0.090226
0.120301
0.075188
0
0
0
0
0
0
0
0.012926
0.253509
1,140
43
100
26.511628
0.768508
0.050877
0
0
0
0
0.131725
0
0
0
0
0
0
1
0.030303
false
0
0.121212
0
0.212121
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
228727092b8b8c1cbde1234be034bd7032daae7a
1,488
py
Python
admin_tools/urls.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
44
2015-11-19T04:52:39.000Z
2021-03-17T02:08:26.000Z
admin_tools/urls.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
748
2015-09-03T04:18:33.000Z
2022-03-10T14:08:10.000Z
admin_tools/urls.py
aucoeur/WeVoteServer
7b30bdbb59d6e0c19abc81237aa42fba7de1a432
[ "MIT" ]
145
2015-09-19T10:10:44.000Z
2022-03-04T21:01:12.000Z
# admin_tools/urls.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.conf.urls import re_path from . import views urlpatterns = [ re_path(r'^$', views.admin_home_view, name='admin_home',), re_path(r'^data_cleanup/$', views.data_cleanup_view, name='data_cleanup'), re_path(r'^dat...
55.111111
108
0.78293
209
1,488
5.052632
0.210526
0.1875
0.072917
0.072917
0.569129
0.387311
0.056818
0
0
0
0
0.000746
0.099462
1,488
26
109
57.230769
0.787313
0.051747
0
0
0
0
0.396588
0.312011
0
0
0
0
0
1
0
false
0
0.15
0
0.15
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
22875dd3eed7789c404cf71dae058c78660c2f50
3,414
py
Python
hippynn/graphs/nodes/base/multi.py
tautomer/hippynn
df4504a5ea4680cfc61f490984dcddeac7ed99ee
[ "BSD-3-Clause" ]
21
2021-11-17T00:56:35.000Z
2022-03-22T05:57:11.000Z
hippynn/graphs/nodes/base/multi.py
tautomer/hippynn
df4504a5ea4680cfc61f490984dcddeac7ed99ee
[ "BSD-3-Clause" ]
4
2021-12-17T16:16:53.000Z
2022-03-16T23:50:38.000Z
hippynn/graphs/nodes/base/multi.py
tautomer/hippynn
df4504a5ea4680cfc61f490984dcddeac7ed99ee
[ "BSD-3-Clause" ]
6
2021-11-30T21:09:31.000Z
2022-03-18T07:07:32.000Z
""" A base node that provides several output tensors. """ from ....layers.algebra import Idx from .base import SingleNode, Node from .. import _debprint from ...indextypes import IdxType class IndexNode(SingleNode): _input_names = ("parent",) def __init__(self, name, parents, index, index_state=None): ...
38.795455
110
0.626245
399
3,414
5.022556
0.295739
0.082335
0.042415
0.02994
0.021956
0
0
0
0
0
0
0.000811
0.277973
3,414
87
111
39.241379
0.81217
0.070592
0
0.044118
0
0
0.093038
0
0
0
0
0
0.044118
1
0.102941
false
0.014706
0.058824
0
0.323529
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
228856c2bad586d523ebf387bffc058ae9b589d7
4,151
py
Python
barber/cutter.py
LSSTDESC/barber
9dbe69e69a078ef3b70a316807517e2a4d4e60cd
[ "MIT" ]
null
null
null
barber/cutter.py
LSSTDESC/barber
9dbe69e69a078ef3b70a316807517e2a4d4e60cd
[ "MIT" ]
6
2020-04-28T15:20:08.000Z
2020-04-28T15:37:02.000Z
barber/cutter.py
LSSTDESC/barber
9dbe69e69a078ef3b70a316807517e2a4d4e60cd
[ "MIT" ]
null
null
null
import numpy as np import numpy.random as npr import scipy.optimize as spo import tomo_challenge.metrics as tcm # custom data type, could be replaced with/tie in to tree.py class # cut_vals is (nfeat, nbins - 1) numpy array, float # tree_ids is ((nbins,) * nfeat) numpy array, int TreePars = namedtuple('TreePars', ['cu...
35.478632
261
0.685859
586
4,151
4.757679
0.343003
0.022597
0.019727
0.012912
0.078192
0.03802
0.03802
0.03802
0.03802
0.03802
0
0.004589
0.212479
4,151
116
262
35.784483
0.848272
0.55312
0
0.05
0
0
0.014607
0
0
0
0
0
0.05
1
0.125
false
0.025
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2288f93227622fced04679bfe49afbad16de4e0a
480
py
Python
examples/transfer/highscore.py
coding-world/matrix_max7219
3126604ee400a9ec1d25797f6957a2eae8a3f33c
[ "MIT" ]
null
null
null
examples/transfer/highscore.py
coding-world/matrix_max7219
3126604ee400a9ec1d25797f6957a2eae8a3f33c
[ "MIT" ]
null
null
null
examples/transfer/highscore.py
coding-world/matrix_max7219
3126604ee400a9ec1d25797f6957a2eae8a3f33c
[ "MIT" ]
null
null
null
import shelve regal = shelve.open('score.txt') def updateScore(neuerScore): if('score' in regal): score = regal['score'] if(neuerScore not in score): score.insert(0, neuerScore) score.sort() ranking = score.index(neuerScore) ranking = len(score)-ranking else: score = [neuerScore] ...
20
46
0.66875
58
480
5.534483
0.465517
0.093458
0
0
0
0
0
0
0
0
0
0.005208
0.2
480
24
47
20
0.830729
0
0
0
0
0
0.089397
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
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
2289dcddf267c6a1a0e8cb907450531ad79de492
493
py
Python
urban-sound-classification/feature_merge.py
tensorflow-korea/tfk-notebooks
67831acce7f435500377bf03e6bd9d15fdd5f1bc
[ "MIT" ]
50
2016-06-18T12:52:29.000Z
2021-12-10T07:13:20.000Z
urban-sound-classification/feature_merge.py
tensorflow-korea/tfk-notebooks
67831acce7f435500377bf03e6bd9d15fdd5f1bc
[ "MIT" ]
null
null
null
urban-sound-classification/feature_merge.py
tensorflow-korea/tfk-notebooks
67831acce7f435500377bf03e6bd9d15fdd5f1bc
[ "MIT" ]
51
2016-04-30T16:38:05.000Z
2021-01-15T18:12:03.000Z
import glob import numpy as np X = np.empty((0, 193)) y = np.empty((0, 10)) groups = np.empty((0, 1)) npz_files = glob.glob('./urban_sound_?.npz') for fn in npz_files: print(fn) data = np.load(fn) X = np.append(X, data['X'], axis=0) y = np.append(y, data['y'], axis=0) groups = np.append(groups, dat...
22.409091
54
0.602434
94
493
3.106383
0.329787
0.071918
0.082192
0
0
0
0
0
0
0
0
0.037688
0.192698
493
21
55
23.47619
0.69598
0
0
0
0
0
0.077079
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
228ad78fbc730707861e4c8d9c262be93d22bf72
485
py
Python
program/program/trackers/TrackerCorrelation.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
1
2018-11-29T14:13:47.000Z
2018-11-29T14:13:47.000Z
program/program/trackers/TrackerCorrelation.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
3
2018-04-24T18:30:00.000Z
2018-05-11T23:25:07.000Z
program/program/trackers/TrackerCorrelation.py
JankaSvK/thesis
c440ab8242b058f580fdf9d5a1d00708a1696561
[ "MIT" ]
null
null
null
import dlib class CorrelationTracker(object): def init(self, image, bbox): self.tracker = dlib.correlation_tracker() x, y, x2, y2 = bbox x2 += x y2 += y self.tracker.start_track(image, dlib.rectangle(x, y, x2, y2)) return True def update(self, image): s...
28.529412
96
0.585567
64
485
4.390625
0.453125
0.156584
0.02847
0.042705
0
0
0
0
0
0
0
0.016901
0.268041
485
16
97
30.3125
0.774648
0
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.461538
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
228b9e5c3d1a55dd867bb42f9e9fbbc7ed2e9fc5
10,684
py
Python
SROMPy/optimize/ObjectiveFunction.py
jwarner308/SROMPy
12007e4cd99c88446f10974a93050405c5cd925b
[ "Apache-2.0" ]
23
2018-05-13T05:13:03.000Z
2022-01-29T19:43:28.000Z
SROMPy/optimize/ObjectiveFunction.py
jwarner308/SROMPy
12007e4cd99c88446f10974a93050405c5cd925b
[ "Apache-2.0" ]
11
2018-03-28T13:13:44.000Z
2022-03-30T18:56:57.000Z
SROMPy/optimize/ObjectiveFunction.py
jwarner308/SROMPy
12007e4cd99c88446f10974a93050405c5cd925b
[ "Apache-2.0" ]
19
2018-06-01T14:49:30.000Z
2022-03-05T05:02:06.000Z
# Copyright 2018 United States Government as represented by the Administrator of # the National Aeronautics and Space Administration. No copyright is claimed in # the United States under Title 17, U.S. Code. All Other Rights Reserved. # The Stochastic Reduced Order Models with Python (SROMPy) platform is licensed # un...
37.356643
80
0.624579
1,340
10,684
4.79403
0.210448
0.02802
0.020237
0.032379
0.292653
0.206258
0.179328
0.151308
0.148661
0.128113
0
0.010097
0.295489
10,684
285
81
37.487719
0.843364
0.321041
0
0.288889
0
0
0.092944
0
0
0
0
0
0
1
0.074074
false
0
0.02963
0
0.17037
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
228bb0a969acb617ccc7d0b12b1281bd81283a5f
4,016
py
Python
test/utils.py
vasili-v/distcovery
e07882d55ebe2e4fd78a720764803e6b3e8cbc7d
[ "MIT" ]
null
null
null
test/utils.py
vasili-v/distcovery
e07882d55ebe2e4fd78a720764803e6b3e8cbc7d
[ "MIT" ]
null
null
null
test/utils.py
vasili-v/distcovery
e07882d55ebe2e4fd78a720764803e6b3e8cbc7d
[ "MIT" ]
null
null
null
import os import errno import sys def mock_directory_tree(tree): tree = dict([(os.path.join(*key), value) \ for key, value in tree.iteritems()]) def listdir(path): try: names = tree[path] except KeyError: raise OSError(errno.ENOENT, os.strerror(err...
36.844037
80
0.493775
430
4,016
4.202326
0.139535
0.154953
0.126176
0.077476
0.449917
0.39845
0.351965
0.279469
0.194245
0.140564
0
0
0.372012
4,016
108
81
37.185185
0.716495
0
0
0.181818
0
0
0.248817
0.037111
0
0
0
0
0
1
0.102273
false
0
0.045455
0
0.238636
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
228d8328feac3519c1eb966b9a43a964120c8c6c
1,369
py
Python
tests/test_parser_create_site_users.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tests/test_parser_create_site_users.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tests/test_parser_create_site_users.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
import sys import unittest try: from unittest import mock except ImportError: import mock import argparse from tabcmd.parsers.create_site_users_parser import CreateSiteUsersParser from .common_setup import * commandname = 'createsiteusers' class CreateSiteUsersParserTest(unittest.TestCase): @classmethod...
37
90
0.720964
172
1,369
5.430233
0.331395
0.051392
0.06424
0.06424
0.357602
0.299786
0.24197
0.24197
0.24197
0.11349
0
0.000896
0.184806
1,369
36
91
38.027778
0.836022
0
0
0.103448
0
0
0.073776
0
0
0
0
0
0.103448
1
0.137931
false
0
0.275862
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
228e4efae17879a415faffa2bdf7cfbc08f32c9f
1,078
py
Python
secretsmanager_env.py
iarlyy/secretsmanager-env
3a34a4e9561e4651fa2975ff6f32b00ef0c0ca73
[ "MIT" ]
1
2020-02-13T17:11:29.000Z
2020-02-13T17:11:29.000Z
secretsmanager_env.py
iarlyy/secretsmanager-env
3a34a4e9561e4651fa2975ff6f32b00ef0c0ca73
[ "MIT" ]
null
null
null
secretsmanager_env.py
iarlyy/secretsmanager-env
3a34a4e9561e4651fa2975ff6f32b00ef0c0ca73
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import json import os import boto3 parser = argparse.ArgumentParser( formatter_class=argparse.RawDescriptionHelpFormatter, description='''\ Output following the defined format. Options are: dotenv - dotenv style [default] export - shell export style std...
24.5
99
0.670686
125
1,078
5.672
0.528
0.067701
0.03385
0
0
0
0
0
0
0
0
0.003421
0.186456
1,078
43
100
25.069767
0.805017
0.018553
0
0.057143
0
0
0.273415
0
0
0
0
0
0
1
0
false
0
0.114286
0
0.114286
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
228e74b0f9248fe2ef101b86260ca316c5578c5c
1,730
py
Python
109.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
109.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
109.py
juandarr/ProjectEuler
951705ac62f550d7fbecdc3f35ab8c38b53b9225
[ "MIT" ]
null
null
null
""" Finds the number of distinct ways a player can checkout a score less than 100 Author: Juan Rios """ import math def checkout_solutions(checkout,sequence,idx_sq,d): ''' returns the number of solution for a given checkout value ''' counter = 0 for double in d: if double>checkout: ...
28.360656
128
0.540462
239
1,730
3.811715
0.280335
0.038419
0.052689
0.023052
0.308452
0.262349
0.262349
0.127333
0.127333
0.127333
0
0.042895
0.353179
1,730
61
128
28.360656
0.771224
0.088439
0
0.229167
0
0
0.055305
0
0
0
0
0
0
1
0.041667
false
0
0.020833
0
0.104167
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
228eb608e052e061a5945151be48c2a98a56d133
1,758
py
Python
setup.py
kinnala/gammy
85237d424001f77f296d724c95c8dec5803a8e1e
[ "MIT" ]
null
null
null
setup.py
kinnala/gammy
85237d424001f77f296d724c95c8dec5803a8e1e
[ "MIT" ]
null
null
null
setup.py
kinnala/gammy
85237d424001f77f296d724c95c8dec5803a8e1e
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages import versioneer if __name__ == "__main__": def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() meta = {} base_dir = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(base_dir, 'gammy', '_m...
30.842105
75
0.513083
150
1,758
5.733333
0.673333
0.034884
0.023256
0.032558
0
0
0
0
0
0
0
0.003556
0.360068
1,758
57
76
30.842105
0.760889
0
0
0.078431
0
0
0.291643
0.012507
0
0
0
0
0
1
0.019608
false
0
0.058824
0.019608
0.098039
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
2290bfd1c4b65da8f41f786b9bf73bcded25e4b1
4,203
py
Python
predictors/scene_predictor.py
XenonLamb/higan
6e7b47f91df23d8d6075d95921e664c9fa4f1306
[ "MIT" ]
83
2020-03-11T21:20:59.000Z
2022-03-17T10:08:27.000Z
predictors/scene_predictor.py
XenonLamb/higan
6e7b47f91df23d8d6075d95921e664c9fa4f1306
[ "MIT" ]
8
2020-04-16T14:37:42.000Z
2021-09-20T20:18:06.000Z
predictors/scene_predictor.py
billzhonggz/higan
168f24f7e3969bc8dc580e2c997463e76644c17f
[ "MIT" ]
19
2020-04-13T02:55:51.000Z
2022-01-28T06:37:25.000Z
# python 3.7 """Predicts the scene category, attribute.""" import numpy as np from PIL import Image import torch import torch.nn.functional as F import torchvision.transforms as transforms from .base_predictor import BasePredictor from .scene_wideresnet import resnet18 __all__ = ['ScenePredictor'] N...
36.232759
79
0.647395
543
4,203
4.793738
0.292818
0.054937
0.020745
0.020745
0.176719
0.122935
0.061468
0.022282
0
0
0
0.019988
0.238163
4,203
115
80
36.547826
0.792942
0.064716
0
0
0
0
0.107632
0.014737
0
0
0
0
0.081395
1
0.05814
false
0
0.081395
0.011628
0.174419
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
2291547d5512bbb1bda47b665f654ae2a6cde5f2
652
py
Python
src/etc/gec/3.py
iml1111/algorithm-study
f21f6f9f43235248f3496f034a899f2314ab6fcc
[ "MIT" ]
null
null
null
src/etc/gec/3.py
iml1111/algorithm-study
f21f6f9f43235248f3496f034a899f2314ab6fcc
[ "MIT" ]
null
null
null
src/etc/gec/3.py
iml1111/algorithm-study
f21f6f9f43235248f3496f034a899f2314ab6fcc
[ "MIT" ]
null
null
null
from collections import deque def solution(N, bus_stop): answer = [[1300 for _ in range(N)] for _ in range(N)] bus_stop = [(x-1, y-1) for x,y in bus_stop] q = deque(bus_stop) for x,y in bus_stop: answer[x][y] = 0 while q: x, y = q.popleft() for nx, ny in ((x-1, y), (x+1, y)...
27.166667
63
0.45092
105
652
2.657143
0.304762
0.057348
0.032258
0.078853
0.229391
0.229391
0
0
0
0
0
0.046455
0.372699
652
24
64
27.166667
0.635697
0
0
0
0
0
0.012251
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22941cdcf437ea8fe9f771e15f228dacff7fbb5f
5,452
py
Python
plaso/parsers/winreg_plugins/usbstor.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
2
2020-02-09T01:11:08.000Z
2021-09-17T04:16:31.000Z
plaso/parsers/winreg_plugins/usbstor.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
null
null
null
plaso/parsers/winreg_plugins/usbstor.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
1
2021-03-17T09:47:01.000Z
2021-03-17T09:47:01.000Z
# -*- coding: utf-8 -*- """File containing a Windows Registry plugin to parse the USBStor key.""" from __future__ import unicode_literals from plaso.containers import events from plaso.containers import time_events from plaso.lib import definitions from plaso.parsers import logger from plaso.parsers import winreg fro...
37.6
80
0.716985
644
5,452
5.807453
0.270186
0.043316
0.012834
0.02246
0.290107
0.22139
0.21016
0.21016
0.21016
0.21016
0
0.003485
0.210565
5,452
144
81
37.861111
0.865474
0.238995
0
0.204819
0
0
0.065191
0.026322
0
0
0
0.006944
0
1
0.024096
false
0
0.084337
0
0.180723
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
229d03edb58694ea053e0d0cf56108a3ca34b32c
17,257
py
Python
rltoolkit/rltoolkit/acm/off_policy/ddpg_acm.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
7
2020-06-15T12:25:53.000Z
2021-11-03T01:08:47.000Z
rltoolkit/rltoolkit/acm/off_policy/ddpg_acm.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
null
null
null
rltoolkit/rltoolkit/acm/off_policy/ddpg_acm.py
MIMUW-RL/spp-rl
86b96cdd220cc4eae86f7cfd26924c69b498dcc6
[ "MIT" ]
1
2020-12-21T11:21:22.000Z
2020-12-21T11:21:22.000Z
import numpy as np import torch from torch.nn import functional as F from rltoolkit.acm.off_policy import AcMOffPolicy from rltoolkit.algorithms import DDPG from rltoolkit.algorithms.ddpg.models import Actor, Critic class DDPG_AcM(AcMOffPolicy, DDPG): def __init__( self, unbiased_update: bool = False, cu...
39.042986
157
0.589963
2,098
17,257
4.577216
0.13775
0.094762
0.058315
0.043736
0.364261
0.257732
0.180464
0.13652
0.097886
0.050817
0
0.007116
0.3241
17,257
441
158
39.131519
0.816187
0.102915
0
0.17134
0
0
0.057514
0.011621
0
0
0
0
0
1
0.05296
false
0
0.018692
0.006231
0.096573
0.006231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a0ba4419e5d5479b0eea3b85e6ded458dffecb
13,025
py
Python
pelutils/logger.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
3
2021-02-28T13:03:12.000Z
2022-01-01T09:53:33.000Z
pelutils/logger.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
72
2020-10-13T09:20:01.000Z
2022-02-26T09:12:21.000Z
pelutils/logger.py
peleiden/pelutils
9860734c0e06481aa58a9f767a4cfb5129cb48ec
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import os import traceback as tb from collections import defaultdict from enum import IntEnum from functools import update_wrapper from itertools import chain from typing import Any, Callable, DefaultDict, Generator, Iterable, Optional from pelutils import get_timestamp, get_repo fro...
36.080332
123
0.61666
1,651
13,025
4.638401
0.190793
0.036432
0.022068
0.01567
0.199399
0.161792
0.161792
0.135414
0.131235
0.121572
0
0.002874
0.278618
13,025
360
124
36.180556
0.812154
0.116238
0
0.115672
0
0
0.078199
0.009709
0
0
0
0
0
1
0.149254
false
0.007463
0.037313
0.033582
0.339552
0.123134
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a11f4324f76cab0ee6ba121cab810e162f6104
10,942
py
Python
tests/test_metrics.py
aaxelb/django-elasticsearch-metrics
8a02ffc57f57257843834d4f84c41480f4e27fbd
[ "MIT" ]
5
2018-08-21T19:48:39.000Z
2021-04-01T22:11:31.000Z
tests/test_metrics.py
aaxelb/django-elasticsearch-metrics
8a02ffc57f57257843834d4f84c41480f4e27fbd
[ "MIT" ]
18
2018-07-26T16:04:53.000Z
2018-08-30T19:31:30.000Z
tests/test_metrics.py
aaxelb/django-elasticsearch-metrics
8a02ffc57f57257843834d4f84c41480f4e27fbd
[ "MIT" ]
5
2019-04-01T17:47:08.000Z
2022-01-28T17:23:11.000Z
import mock import pytest import datetime as dt from django.utils import timezone from elasticsearch_metrics import metrics from elasticsearch_dsl import IndexTemplate from elasticsearch_metrics import signals from elasticsearch_metrics.exceptions import ( IndexTemplateNotFoundError, IndexTemplateOutOfSyncErro...
39.501805
88
0.683787
1,245
10,942
5.673092
0.148594
0.069942
0.040776
0.01699
0.529237
0.395724
0.344046
0.273963
0.23701
0.190571
0
0.009791
0.225279
10,942
276
89
39.644928
0.823405
0.025224
0
0.253394
0
0
0.114843
0.034434
0
0
0
0.003623
0.276018
1
0.095023
false
0.004525
0.040724
0
0.239819
0.19457
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a1b8da531316fb6c21092916dd14f6945d1c1d
1,924
py
Python
tests/unit/test_iris_helpers.py
jvegreg/ESMValCore
03eb1c942bf1dc3be98cb30c3592b42e82a94f16
[ "Apache-2.0" ]
null
null
null
tests/unit/test_iris_helpers.py
jvegreg/ESMValCore
03eb1c942bf1dc3be98cb30c3592b42e82a94f16
[ "Apache-2.0" ]
2
2022-03-02T16:16:06.000Z
2022-03-10T12:58:49.000Z
tests/unit/test_iris_helpers.py
valeriupredoi/ESMValCore
b46b948c47d8579d997b28501f8588f5531aa354
[ "Apache-2.0" ]
null
null
null
"""Tests for :mod:`esmvalcore.iris_helpers`.""" import datetime import iris import numpy as np import pytest from cf_units import Unit from esmvalcore.iris_helpers import date2num, var_name_constraint @pytest.fixture def cubes(): """Test cubes.""" cubes = iris.cube.CubeList([ iris.cube.Cube(0.0, var...
33.172414
72
0.677755
281
1,924
4.459075
0.217082
0.089385
0.122107
0.072626
0.57063
0.554669
0.463687
0.3751
0.3751
0.3751
0
0.028501
0.161123
1,924
57
73
33.754386
0.747831
0.057692
0
0.363636
0
0
0.045075
0
0
0
0
0
0.136364
1
0.090909
false
0
0.136364
0.022727
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a33ada09a97d4c429f1c99f360e9ceb37d5903
771
py
Python
figures/plot_log_figure_paper.py
davidADSP/deepAI_paper
f612e80aa0e8507444228940c54554a83bc16119
[ "MIT" ]
21
2017-09-09T18:41:40.000Z
2022-03-16T06:50:00.000Z
figures/plot_log_figure_paper.py
davidADSP/deepAI_paper
f612e80aa0e8507444228940c54554a83bc16119
[ "MIT" ]
null
null
null
figures/plot_log_figure_paper.py
davidADSP/deepAI_paper
f612e80aa0e8507444228940c54554a83bc16119
[ "MIT" ]
6
2017-09-09T18:41:53.000Z
2022-02-25T08:11:40.000Z
import numpy import matplotlib.pyplot as plt fig_convergence = plt.figure(1,figsize=(12,6)) x = numpy.loadtxt('log_deepAI_paper_nonlin_action_long.txt') plt.subplot(122) plt.plot(x[:,0]) plt.xlim([0,500]) plt.ylim([-10,200]) plt.xlabel('Steps') plt.ylabel('Free Action') plt.axvline(x=230.0,linestyle=':') plt.axvline...
24.09375
76
0.657588
127
771
3.913386
0.496063
0.112676
0.066398
0.036217
0.265594
0.132797
0.132797
0
0
0
0
0.099849
0.142672
771
31
77
24.870968
0.652042
0
0
0.333333
0
0
0.124514
0.050584
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a452c901b5e5a2bc4953164caa1bd099196d19
2,938
py
Python
setup.py
matiasgrana/nagios_sql
7858b852cf539da418a1a289e8c06e386b62287a
[ "MIT" ]
null
null
null
setup.py
matiasgrana/nagios_sql
7858b852cf539da418a1a289e8c06e386b62287a
[ "MIT" ]
4
2017-08-08T13:42:39.000Z
2019-11-25T10:29:29.000Z
setup.py
matiasgrana/nagios_sql
7858b852cf539da418a1a289e8c06e386b62287a
[ "MIT" ]
4
2019-01-28T13:58:09.000Z
2019-11-29T14:01:07.000Z
#! python3 # Help from: http://www.scotttorborg.com/python-packaging/minimal.html # https://docs.python.org/3/distutils/commandref.html#sdist-cmd # https://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # https://docs.python.org/3.4/tutorial/modules.html # Install it with python setup.py ins...
32.285714
84
0.636147
353
2,938
5.184136
0.467422
0.040984
0.02459
0.029508
0.105464
0.095082
0.052459
0.052459
0.052459
0.052459
0
0.005798
0.236896
2,938
90
85
32.644444
0.810437
0.299523
0
0
0
0
0.314428
0
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.09434
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a4a9fee06a32718975fa561659e922ae3f756e
1,838
py
Python
textnn/utils/test/test_progress_iterator.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
1
2019-03-08T12:12:45.000Z
2019-03-08T12:12:45.000Z
textnn/utils/test/test_progress_iterator.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
16
2019-02-14T11:51:30.000Z
2019-06-11T08:25:53.000Z
textnn/utils/test/test_progress_iterator.py
tongr/TextNN
a0294a197d3be284177214e8f019e9fed13dff1a
[ "Apache-2.0" ]
null
null
null
import io import sys from textnn.utils import ProgressIterator #inspired by https://stackoverflow.com/a/34738440 def capture_sysout(cmd): capturedOutput = io.StringIO() # Create StringIO object sys.stdout = capturedOutput # and redirect stdout. cmd() ...
34.679245
76
0.541349
210
1,838
4.657143
0.319048
0.08998
0.0409
0.04908
0.588957
0.588957
0.588957
0.509202
0.509202
0.509202
0
0.042674
0.235038
1,838
52
77
35.346154
0.652916
0.280196
0
0.5625
0
0
0.041284
0
0
0
0
0
0.375
1
0.15625
false
0
0.09375
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a5f31f1b502fe38b7dada2cca91916da3eb320
24,973
py
Python
pyvisa_py/highlevel.py
Handfeger/pyvisa-py
fcfb45895cd44dd922985c3a9d8f3372c8318d63
[ "MIT" ]
1
2019-03-25T20:26:16.000Z
2019-03-25T20:26:16.000Z
pyvisa_py/highlevel.py
Handfeger/pyvisa-py
fcfb45895cd44dd922985c3a9d8f3372c8318d63
[ "MIT" ]
null
null
null
pyvisa_py/highlevel.py
Handfeger/pyvisa-py
fcfb45895cd44dd922985c3a9d8f3372c8318d63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Highlevel wrapper of the VISA Library. :copyright: 2014-2020 by PyVISA-py Authors, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ import random from collections import OrderedDict from typing import Any, Dict, Iterable, List, Optional, Tuple, Union, cast fr...
31.893997
88
0.610019
2,640
24,973
5.680682
0.159848
0.019004
0.037341
0.04901
0.4979
0.461159
0.419084
0.386944
0.359272
0.328332
0
0.001993
0.317022
24,973
782
89
31.934783
0.877287
0.436351
0
0.408397
0
0
0.036045
0
0
0
0
0
0.007634
1
0.103053
false
0.015267
0.083969
0
0.354962
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
22a63f951029bec63e4f61cb892764b3e55fdcae
13,219
py
Python
detectron/utils/webly_vis.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
23
2020-03-30T11:48:33.000Z
2022-03-11T06:34:31.000Z
detectron/utils/webly_vis.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
9
2020-09-28T07:15:16.000Z
2022-03-25T08:11:06.000Z
detectron/utils/webly_vis.py
sisrfeng/NA-fWebSOD
49cb75a9a0d557b05968c6b11b0f17a7043f2077
[ "Apache-2.0" ]
10
2020-03-30T11:48:34.000Z
2021-06-02T06:12:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import cv2 import numpy as np import os import math from PIL import Image, ImageDraw, ImageFont from caffe2.python import workspace from detectron.core.config import cf...
37.341808
87
0.504577
1,711
13,219
3.644652
0.135593
0.028223
0.040411
0.051956
0.550513
0.50898
0.444997
0.36594
0.310295
0.269885
0
0.035761
0.367501
13,219
353
88
37.447592
0.710083
0.069219
0
0.305455
0
0
0.031811
0.006036
0
0
0
0
0
1
0.025455
false
0.003636
0.043636
0
0.083636
0.003636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a72547959131b60da1f328cdda0445ca0ed7eb
13,740
py
Python
salt/runner.py
StepOneInc/salt
ee210172c37bf0cee224794cd696b38e288e4073
[ "Apache-2.0" ]
1
2016-04-26T03:42:32.000Z
2016-04-26T03:42:32.000Z
salt/runner.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
salt/runner.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Execute salt convenience routines ''' # Import python libs from __future__ import print_function from __future__ import absolute_import import collections import logging import time import sys import multiprocessing # Import salt libs import salt.exceptions import salt.loader import salt.m...
37.135135
118
0.527365
1,496
13,740
4.737299
0.235963
0.022577
0.011853
0.012417
0.158036
0.111472
0.071681
0.071681
0.071681
0.071681
0
0.012828
0.364556
13,740
369
119
37.235772
0.798878
0.252766
0
0.171296
0
0
0.113062
0
0
0
0
0
0
1
0.050926
false
0.00463
0.083333
0
0.194444
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
22a8bf88232fd22e170f70f6a4d8e344cbe114aa
4,257
py
Python
pong-pg.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
pong-pg.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
pong-pg.py
s-gv/pong-keras
38a0f25ae0e628f357512d085dc957720d83ece2
[ "0BSD" ]
null
null
null
# Copyright (c) 2019 Sagar Gubbi. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import numpy as np import gym import tensorflow as tf from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Input,...
33.257813
116
0.597369
581
4,257
4.263339
0.375215
0.039968
0.016149
0.021801
0.248688
0.193783
0.176827
0.176827
0.152604
0.152604
0
0.040645
0.271788
4,257
127
117
33.519685
0.758387
0.183463
0
0.224719
0
0
0.087246
0.023188
0
0
0
0
0
1
0.05618
false
0
0.089888
0
0.168539
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a8ec1abea9d6f95b972cc7b4d65ddb840ef8b2
2,962
py
Python
dexp/cli/dexp_commands/crop.py
JoOkuma/dexp
6d9003384605b72f387d38b5befa29e4e2246af8
[ "BSD-3-Clause" ]
null
null
null
dexp/cli/dexp_commands/crop.py
JoOkuma/dexp
6d9003384605b72f387d38b5befa29e4e2246af8
[ "BSD-3-Clause" ]
null
null
null
dexp/cli/dexp_commands/crop.py
JoOkuma/dexp
6d9003384605b72f387d38b5befa29e4e2246af8
[ "BSD-3-Clause" ]
null
null
null
import click from arbol.arbol import aprint, asection from dexp.cli.defaults import DEFAULT_CLEVEL, DEFAULT_CODEC, DEFAULT_STORE from dexp.cli.parsing import _get_output_path, _parse_channels, _parse_chunks from dexp.datasets.open_dataset import glob_datasets from dexp.datasets.operations.crop import dataset_crop @c...
32.549451
117
0.660365
359
2,962
5.281337
0.348189
0.063819
0.05538
0.063291
0.082278
0
0
0
0
0
0
0.008082
0.20628
2,962
90
118
32.911111
0.798384
0.013842
0
0.13253
0
0.012048
0.274348
0
0
0
0
0
0
1
0.012048
false
0
0.072289
0
0.084337
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22a950c4c4a0d6a5d8ae35400f9dc583d0a56a66
2,287
py
Python
morse_DMT/write_dipha_file_3d_revise.py
YinuoJin/DMT_loss
c6e66cb7997b7cd5616156faaf294e350e77c4c2
[ "MIT" ]
1
2021-12-06T13:06:55.000Z
2021-12-06T13:06:55.000Z
morse_DMT/write_dipha_file_3d_revise.py
YinuoJin/DMT_loss
c6e66cb7997b7cd5616156faaf294e350e77c4c2
[ "MIT" ]
null
null
null
morse_DMT/write_dipha_file_3d_revise.py
YinuoJin/DMT_loss
c6e66cb7997b7cd5616156faaf294e350e77c4c2
[ "MIT" ]
null
null
null
import sys from matplotlib import image as mpimg import numpy as np import os DIPHA_CONST = 8067171840 DIPHA_IMAGE_TYPE_CONST = 1 DIM = 3 input_dir = os.path.join(os.getcwd(), sys.argv[1]) dipha_output_filename = sys.argv[2] vert_filename = sys.argv[3] input_filenames = [name for nam...
29.701299
119
0.584609
335
2,287
3.865672
0.292537
0.07722
0.098842
0.044015
0.171429
0.135907
0.135907
0.112741
0.112741
0.06332
0
0.025672
0.284652
2,287
76
120
30.092105
0.765892
0.082204
0
0.203704
0
0
0.056168
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0.12963
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22aabcb0f1d4d4e04e99859300806fd807e56ef4
1,223
py
Python
MetropolisMCMC.py
unrealTOM/MC
5a4cdf1ee11ef3d438f24dd38e894731103448ac
[ "MIT" ]
4
2020-04-11T09:54:27.000Z
2021-08-18T07:06:52.000Z
MetropolisMCMC.py
unrealTOM/MC
5a4cdf1ee11ef3d438f24dd38e894731103448ac
[ "MIT" ]
null
null
null
MetropolisMCMC.py
unrealTOM/MC
5a4cdf1ee11ef3d438f24dd38e894731103448ac
[ "MIT" ]
5
2019-01-22T03:47:17.000Z
2022-02-14T18:09:07.000Z
import numpy as np import matplotlib.pyplot as plt import math def normal(mu,sigma,x): #normal distribution return 1/(math.pi*2)**0.5/sigma*np.exp(-(x-mu)**2/2/sigma**2) def eval(x): return normal(-4,1,x) + normal(4,1,x) #return 0.3*np.exp(-0.2*x**2)+0.7*np.exp(-0.2*(x-10)**2) def ref(x_star,x): #normal...
29.829268
71
0.623058
236
1,223
3.182203
0.360169
0.046605
0.023968
0.066578
0.245007
0.130493
0
0
0
0
0
0.081592
0.17825
1,223
40
72
30.575
0.665672
0.277187
0
0
0
0
0.06865
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
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
22ac5683811849c14d8a103b4887cbd79b2ac236
9,338
py
Python
core/simulators/carla_scenario_simulator.py
RangiLyu/DI-drive
f7db2e7b19d70c05184d6d6edae6b7e035a324d7
[ "Apache-2.0" ]
null
null
null
core/simulators/carla_scenario_simulator.py
RangiLyu/DI-drive
f7db2e7b19d70c05184d6d6edae6b7e035a324d7
[ "Apache-2.0" ]
null
null
null
core/simulators/carla_scenario_simulator.py
RangiLyu/DI-drive
f7db2e7b19d70c05184d6d6edae6b7e035a324d7
[ "Apache-2.0" ]
null
null
null
import os from typing import Any, Dict, List, Optional import carla from core.simulators.carla_simulator import CarlaSimulator from core.simulators.carla_data_provider import CarlaDataProvider from .srunner.scenarios.route_scenario import RouteScenario, SCENARIO_CLASS_DICT from .srunner.scenariomanager.scenario_mana...
41.502222
119
0.624331
1,057
9,338
5.306528
0.257332
0.019611
0.015154
0.009093
0.116777
0.096096
0.069531
0.058477
0.058477
0.058477
0
0.005521
0.301671
9,338
224
120
41.6875
0.854624
0.310666
0
0.104478
0
0
0.032507
0
0
0
0
0
0
1
0.052239
false
0
0.052239
0.007463
0.134328
0.029851
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22ad0b38c724e88cb9ecf306aa56fd0fb313ec45
3,325
py
Python
features/hdf_features.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
features/hdf_features.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
features/hdf_features.py
DerekYJC/bmi_python
7b9cf3f294a33688db24b0863c1035e9cc6999ea
[ "Apache-2.0" ]
null
null
null
''' HDF-saving features ''' import time import tempfile import random import traceback import numpy as np import fnmatch import os, sys import subprocess from riglib import calibrations, bmi from riglib.bmi import extractor from riglib.experiment import traits import hdfwriter class SaveHDF(object): ''' Saves...
31.367925
127
0.61203
401
3,325
5.0399
0.38404
0.039584
0.047501
0.028699
0.067293
0.067293
0.038595
0.038595
0
0
0
0.004234
0.289624
3,325
105
128
31.666667
0.851397
0.294737
0
0.070175
0
0
0.097816
0
0
0
0
0
0
1
0.140351
false
0
0.245614
0.017544
0.438596
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
22ad9d02328e75faf184ffbf1cc357191c9ff796
7,979
py
Python
tf_crnn/libs/infer.py
sunmengnan/city_brain
478f0b974f4491b4201956f37b83ce6860712bc8
[ "MIT" ]
null
null
null
tf_crnn/libs/infer.py
sunmengnan/city_brain
478f0b974f4491b4201956f37b83ce6860712bc8
[ "MIT" ]
null
null
null
tf_crnn/libs/infer.py
sunmengnan/city_brain
478f0b974f4491b4201956f37b83ce6860712bc8
[ "MIT" ]
null
null
null
import time import os import math import numpy as np from libs import utils from libs.img_dataset import ImgDataset from nets.crnn import CRNN from nets.cnn.paper_cnn import PaperCNN import shutil def calculate_accuracy(predicts, labels): """ :param predicts: encoded predict result :param labels: ground...
36.104072
105
0.628525
1,045
7,979
4.495694
0.164593
0.040868
0.02086
0.02533
0.386122
0.298212
0.269689
0.258408
0.239676
0.167305
0
0.008609
0.257551
7,979
220
106
36.268182
0.784436
0.067427
0
0.158621
0
0
0.081251
0.002868
0
0
0
0.004545
0.006897
1
0.034483
false
0
0.062069
0
0.131034
0.041379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22ae7c79d1d1030557cb109b5f2d23a5d5fb88a4
5,706
py
Python
modules/templates/RLPPTM/tools/mis.py
nursix/rlpptm
e7b50b2fdf6277aed5f198ca10ad773c5ca0b947
[ "MIT" ]
1
2022-03-21T21:58:30.000Z
2022-03-21T21:58:30.000Z
modules/templates/RLPPTM/tools/mis.py
nursix/rlpptm
e7b50b2fdf6277aed5f198ca10ad773c5ca0b947
[ "MIT" ]
null
null
null
modules/templates/RLPPTM/tools/mis.py
nursix/rlpptm
e7b50b2fdf6277aed5f198ca10ad773c5ca0b947
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Helper Script for Mass-Invitation of Participant Organisations # # RLPPTM Template Version 1.0 # # Execute in web2py folder after code upgrade like: # python web2py.py -S eden -M -R applications/eden/modules/templates/RLPPTM/tools/mis.py # import os import sys from core import s3_format_dat...
35.222222
88
0.45496
508
5,706
5.033465
0.336614
0.023465
0.015252
0.013297
0.027376
0.013297
0
0
0
0
0
0.007624
0.425342
5,706
161
89
35.440994
0.772187
0.119699
0
0.162393
0
0
0.072615
0
0
0
0
0
0
1
0.017094
false
0
0.042735
0
0.059829
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
22aeec83fb0e871521d1f1a2e9afa8b18858d4b4
728
py
Python
engine/test_sysctl.py
kingsd041/os-tests
2ea57cb6f1da534633a4670ccb83d40300989886
[ "Apache-2.0" ]
null
null
null
engine/test_sysctl.py
kingsd041/os-tests
2ea57cb6f1da534633a4670ccb83d40300989886
[ "Apache-2.0" ]
null
null
null
engine/test_sysctl.py
kingsd041/os-tests
2ea57cb6f1da534633a4670ccb83d40300989886
[ "Apache-2.0" ]
null
null
null
# coding = utf-8 # Create date: 2018-11-05 # Author :Hailong def test_sysctl(ros_kvm_with_paramiko, cloud_config_url): command = 'sudo cat /proc/sys/kernel/domainname' feed_back = 'test' client = ros_kvm_with_paramiko(cloud_config='{url}/test_sysctl.yml'.format(url=cloud_config_url)) stdin, stdout, st...
36.4
101
0.68956
107
728
4.457944
0.46729
0.067086
0.08805
0.075472
0.42348
0.42348
0.42348
0
0
0
0
0.026016
0.15522
728
19
102
38.315789
0.749594
0.074176
0
0
0
0
0.164179
0.108955
0
0
0
0
0.153846
1
0.076923
false
0
0
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22aeecf51ba4f5585bf276df470496e100ee4eac
3,310
py
Python
paprika_sync/core/management/commands/import_recipes_from_file.py
grschafer/paprika-sync
8b6fcd6246557bb79009fa9355fd4d588fb8ed90
[ "MIT" ]
null
null
null
paprika_sync/core/management/commands/import_recipes_from_file.py
grschafer/paprika-sync
8b6fcd6246557bb79009fa9355fd4d588fb8ed90
[ "MIT" ]
null
null
null
paprika_sync/core/management/commands/import_recipes_from_file.py
grschafer/paprika-sync
8b6fcd6246557bb79009fa9355fd4d588fb8ed90
[ "MIT" ]
null
null
null
import json import logging from django.core.management.base import BaseCommand from django.db import transaction from paprika_sync.core.models import PaprikaAccount from paprika_sync.core.serializers import RecipeSerializer, CategorySerializer from paprika_sync.core.utils import log_start_end logger = logging.getLo...
35.978261
135
0.578248
375
3,310
4.981333
0.298667
0.025696
0.036403
0.030514
0.140257
0.125268
0.110278
0.043897
0.043897
0.043897
0
0
0.322659
3,310
91
136
36.373626
0.833185
0.080665
0
0.090909
0
0
0.224382
0
0
0
0
0
0
1
0.030303
false
0
0.242424
0
0.30303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22b29bb3979813975d0a62cdf7e26438790eeb19
448
py
Python
output/models/ms_data/element/elem_q017_xsd/elem_q017.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/element/elem_q017_xsd/elem_q017.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/element/elem_q017_xsd/elem_q017.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field @dataclass class FooTest: class Meta: name = "fooTest" value: str = field( init=False, default="Hello" ) @dataclass class Root: class Meta: name = "root" foo_test: str = field( init=False, default="Hello",...
15.448276
40
0.5
41
448
5.439024
0.560976
0.125561
0.116592
0.152466
0.26009
0.26009
0
0
0
0
0
0
0.386161
448
28
41
16
0.810909
0
0
0.272727
0
0
0.113839
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.318182
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
22b2c7ab0a465a4d5e5a4f3cd082436d406520c8
43,545
py
Python
contrib_src/predict.py
modelhub-ai/mic-dkfz-brats
4522a26442f1e323f97aa45fbd5047bfe9029b2b
[ "MIT" ]
1
2020-01-09T11:45:26.000Z
2020-01-09T11:45:26.000Z
contrib_src/predict.py
modelhub-ai/mic-dkfz-brats
4522a26442f1e323f97aa45fbd5047bfe9029b2b
[ "MIT" ]
null
null
null
contrib_src/predict.py
modelhub-ai/mic-dkfz-brats
4522a26442f1e323f97aa45fbd5047bfe9029b2b
[ "MIT" ]
null
null
null
import json import os from collections import OrderedDict from copy import deepcopy import SimpleITK as sitk from batchgenerators.augmentations.utils import resize_segmentation # resize_softmax_output from skimage.transform import resize from torch.optim import lr_scheduler from torch import nn import numpy as np impor...
43.807847
206
0.610288
5,743
43,545
4.347205
0.101515
0.018265
0.018625
0.013619
0.409998
0.32348
0.275375
0.2503
0.21353
0.192101
0
0.016607
0.286439
43,545
993
207
43.851964
0.786882
0.057021
0
0.247043
0
0
0.033667
0.002746
0
0
0
0
0.007884
1
0.055191
false
0.003942
0.015769
0.002628
0.114323
0.001314
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22b364d4334f94cc1d058ea248dee07fc3c34b86
982
py
Python
plot/finderror.py
architsakhadeo/Offline-Hyperparameter-Tuning-for-RL
94b8f205b12f0cc59ae8e19b2e6099f34be929d6
[ "MIT" ]
null
null
null
plot/finderror.py
architsakhadeo/Offline-Hyperparameter-Tuning-for-RL
94b8f205b12f0cc59ae8e19b2e6099f34be929d6
[ "MIT" ]
null
null
null
plot/finderror.py
architsakhadeo/Offline-Hyperparameter-Tuning-for-RL
94b8f205b12f0cc59ae8e19b2e6099f34be929d6
[ "MIT" ]
null
null
null
import os basepath = '/home/archit/scratch/cartpoles/data/hyperparam/cartpole/offline_learning/esarsa-adam/' dirs = os.listdir(basepath) string = '''''' for dir in dirs: print(dir) subbasepath = basepath + dir + '/' subdirs = os.listdir(subbasepath) for subdir in subdirs: print(subdir) subsubbasepath = subbasep...
33.862069
129
0.669043
129
982
5.069767
0.395349
0.041284
0.027523
0.033639
0
0
0
0
0
0
0
0.008516
0.162933
982
28
130
35.071429
0.787105
0
0
0
0
0.037037
0.160896
0.112016
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22b4a1c6f88314760073b0d207d79b3e4653b1cf
4,848
py
Python
src/pybacked/zip_handler.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
src/pybacked/zip_handler.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
src/pybacked/zip_handler.py
bluePlatinum/pyback
1c12a52974232b0482981c12a9af27e52dd2190e
[ "MIT" ]
null
null
null
import os import shutil import tempfile import zipfile def archive_write(archivepath, data, filename, compression, compressionlevel): """ Create a file named filename in the archive and write data to it :param archivepath: The path to the zip-archive :type archivepath: str :param data: The data t...
33.902098
79
0.679868
584
4,848
5.607877
0.226027
0.023511
0.034809
0.042137
0.254656
0.169771
0.149924
0.114809
0.103206
0.103206
0
0
0.241543
4,848
142
80
34.140845
0.890672
0.442038
0
0.327586
0
0
0.062986
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.206897
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
22b65cc97460c0c9287ab847203def7abf74c5bd
1,642
py
Python
kinto/__main__.py
s-utsch/kinto
5e368849a8ab652a6e1923f44febcf89afd2c78b
[ "Apache-2.0" ]
null
null
null
kinto/__main__.py
s-utsch/kinto
5e368849a8ab652a6e1923f44febcf89afd2c78b
[ "Apache-2.0" ]
null
null
null
kinto/__main__.py
s-utsch/kinto
5e368849a8ab652a6e1923f44febcf89afd2c78b
[ "Apache-2.0" ]
null
null
null
import argparse import sys from cliquet.scripts import cliquet from pyramid.scripts import pserve from pyramid.paster import bootstrap def main(args=None): """The main routine.""" if args is None: args = sys.argv[1:] parser = argparse.ArgumentParser(description="Kinto commands...
34.93617
78
0.563337
168
1,642
5.315476
0.333333
0.067189
0.06383
0.051512
0.058231
0
0
0
0
0
0
0.0009
0.323386
1,642
46
79
35.695652
0.80288
0.010353
0
0.057143
0
0
0.163681
0
0
0
0
0
0
1
0.028571
false
0.028571
0.142857
0
0.171429
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
22b7e88858264b834f72f09e2cb52dba1a8d0aee
3,423
py
Python
tests/unit/media/test_synthesis.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
null
null
null
tests/unit/media/test_synthesis.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
null
null
null
tests/unit/media/test_synthesis.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
1
2021-09-16T20:47:07.000Z
2021-09-16T20:47:07.000Z
from ctypes import sizeof from io import BytesIO import unittest from pyglet.media.synthesis import * local_dir = os.path.dirname(__file__) test_data_path = os.path.abspath(os.path.join(local_dir, '..', '..', 'data')) del local_dir def get_test_data_file(*file_parts): """Get a file from the test data directory...
32.6
96
0.706106
432
3,423
5.31713
0.30787
0.067044
0.106661
0.124946
0.369177
0.146278
0.107967
0.107967
0.107967
0.075751
0
0.019802
0.20333
3,423
104
97
32.913462
0.822516
0.083845
0
0.092308
0
0
0.028902
0.009313
0
0
0
0
0.107692
1
0.123077
false
0
0.061538
0
0.446154
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
22b916a799056741ecb2a3c045e0fdb664033699
11,424
py
Python
Algorithm.Python/Alphas/GreenblattMagicFormulaAlgorithm.py
aaronwJordan/Lean
3486a6de56a739e44af274f421ac302cbbc98f8d
[ "Apache-2.0" ]
null
null
null
Algorithm.Python/Alphas/GreenblattMagicFormulaAlgorithm.py
aaronwJordan/Lean
3486a6de56a739e44af274f421ac302cbbc98f8d
[ "Apache-2.0" ]
null
null
null
Algorithm.Python/Alphas/GreenblattMagicFormulaAlgorithm.py
aaronwJordan/Lean
3486a6de56a739e44af274f421ac302cbbc98f8d
[ "Apache-2.0" ]
null
null
null
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # 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 Licen...
44.8
167
0.68785
1,307
11,424
5.996174
0.306809
0.009187
0.009187
0.014036
0.163073
0.147123
0.135001
0.121475
0.110246
0.110246
0
0.0091
0.240109
11,424
254
168
44.976378
0.893676
0.370011
0
0.040984
0
0
0.024721
0.011003
0
0
0
0
0
1
0.114754
false
0
0.081967
0.016393
0.295082
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
22be5667afd253d36e99d23282612d6ddbb78c15
2,132
py
Python
src/archive/greatcircle.py
AuraUAS/aura-core
4711521074db72ba9089213e14455d89dc5306c0
[ "MIT", "BSD-2-Clause-FreeBSD" ]
8
2016-08-03T19:35:03.000Z
2019-12-15T06:25:05.000Z
src/archive/greatcircle.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
4
2018-09-27T15:48:56.000Z
2018-11-05T12:38:10.000Z
src/archive/greatcircle.py
jarilq/aura-core
7880ed265396bf8c89b783835853328e6d7d1589
[ "MIT", "BSD-2-Clause-FreeBSD" ]
5
2017-06-28T19:15:36.000Z
2020-02-19T19:31:24.000Z
# From: http://williams.best.vwh.net/avform.htm#GCF import math EPS = 0.0001 d2r = math.pi / 180.0 r2d = 180.0 / math.pi rad2nm = (180.0 * 60.0) / math.pi nm2rad = 1.0 / rad2nm nm2meter = 1852 meter2nm = 1.0 / nm2meter # p1 = (lat1(deg), lon1(deg)) # p2 = (lat2(deg), lon2(deg)) def course_and_dist(p1, p2): # thi...
29.611111
138
0.560976
349
2,132
3.355301
0.275072
0.059778
0.023911
0.023057
0.175918
0.119556
0.095645
0.095645
0.061486
0.061486
0
0.104042
0.292214
2,132
71
139
30.028169
0.671968
0.202627
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0.020833
0
0.104167
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
22be826c96db32727162b13681b36634865339c6
1,195
py
Python
app/__init__.py
JoeCare/flask_geolocation_api
ad9ea0d22b738a7af8421cc57c972bd0e0fa80da
[ "Apache-2.0" ]
null
null
null
app/__init__.py
JoeCare/flask_geolocation_api
ad9ea0d22b738a7af8421cc57c972bd0e0fa80da
[ "Apache-2.0" ]
2
2021-03-14T03:55:49.000Z
2021-03-14T04:01:32.000Z
app/__init__.py
JoeCare/flask_geolocation_api
ad9ea0d22b738a7af8421cc57c972bd0e0fa80da
[ "Apache-2.0" ]
null
null
null
import connexion, os from connexion.resolver import RestyResolver from flask import json from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow # Globally accessible libraries db = SQLAlchemy() mm = Marshmallow() def init_app(): """Initialize the Connexion application.""" BASE_DIR...
26.555556
67
0.672803
141
1,195
5.468085
0.48227
0.031128
0.02594
0
0
0
0
0
0
0
0
0
0.23682
1,195
44
68
27.159091
0.845395
0.226778
0
0
0
0
0.060373
0
0
0
0
0
0
1
0.038462
false
0
0.230769
0
0.307692
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
22c02d3ee15e860f429769f7b7700c393718fcdc
29,893
py
Python
RIPv2-Simulation/Router.py
vkmanojk/Networks-VirtualLAN
52c6546da611a7a7b9fdea65c567b284664a99b4
[ "MIT" ]
null
null
null
RIPv2-Simulation/Router.py
vkmanojk/Networks-VirtualLAN
52c6546da611a7a7b9fdea65c567b284664a99b4
[ "MIT" ]
null
null
null
RIPv2-Simulation/Router.py
vkmanojk/Networks-VirtualLAN
52c6546da611a7a7b9fdea65c567b284664a99b4
[ "MIT" ]
null
null
null
''' Summary: Program that implements a routing deamon based on the RIP version 2 protocol from RFC2453. Usage: python3 Router.py <router_config_file> Configuration File: The user supplies a router configuration file of the format: [Setting...
35.12691
95
0.544174
3,247
29,893
4.894672
0.13243
0.031712
0.016359
0.011955
0.217517
0.134713
0.085006
0.063361
0.052098
0.041402
0
0.010031
0.356371
29,893
850
96
35.168235
0.816008
0.287091
0
0.224444
0
0
0.067423
0.010024
0
0
0
0
0
1
0.135556
false
0.008889
0.031111
0.004444
0.233333
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22c090ce75cc118c533814274bbfc243abbfc79a
5,669
py
Python
atlaselectrophysiology/extract_files.py
alowet/iblapps
9be936cd6806153dde0cbff1b6f2180191de3aeb
[ "MIT" ]
null
null
null
atlaselectrophysiology/extract_files.py
alowet/iblapps
9be936cd6806153dde0cbff1b6f2180191de3aeb
[ "MIT" ]
null
null
null
atlaselectrophysiology/extract_files.py
alowet/iblapps
9be936cd6806153dde0cbff1b6f2180191de3aeb
[ "MIT" ]
null
null
null
from ibllib.io import spikeglx import numpy as np import ibllib.dsp as dsp from scipy import signal from ibllib.misc import print_progress from pathlib import Path import alf.io as aio import logging import ibllib.ephys.ephysqc as ephysqc from phylib.io import alf _logger = logging.getLogger('ibllib') ...
40.492857
99
0.657259
793
5,669
4.523329
0.319042
0.030109
0.026763
0.023418
0.167828
0.154725
0.126011
0.126011
0.107611
0.107611
0
0.008792
0.237608
5,669
139
100
40.784173
0.821148
0.28894
0
0.053333
0
0
0.073294
0.022388
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.226667
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22c0aad467733eae25b9c32e9a7eb9d1b86f8921
9,955
py
Python
examples/basics/visuals/line_prototype.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
2,617
2015-01-02T07:52:18.000Z
2022-03-29T19:31:15.000Z
examples/basics/visuals/line_prototype.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
1,674
2015-01-01T00:36:08.000Z
2022-03-31T19:35:56.000Z
examples/basics/visuals/line_prototype.py
3DAlgoLab/vispy
91972307cf336674aad58198fb26b9e46f8f9ca1
[ "BSD-3-Clause" ]
719
2015-01-10T14:25:00.000Z
2022-03-02T13:24:56.000Z
# -*- coding: utf-8 -*- # vispy: gallery 10 # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import sys import numpy as np from vispy import app, gloo, visuals from vispy.visuals.filters import Clipper, ColorFilter from vispy.visual...
34.209622
79
0.668609
1,366
9,955
4.762079
0.237921
0.005842
0.004612
0.035511
0.161722
0.096849
0.066103
0.052575
0.040584
0.022752
0
0.039934
0.210146
9,955
290
80
34.327586
0.787359
0.239076
0
0.069767
0
0
0.065089
0.002959
0
0
0
0
0
1
0.110465
false
0.005814
0.052326
0.005814
0.197674
0.005814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22c0e10976672b4523dad7b6dd7cde8c3d5b7c7b
6,272
py
Python
util/util.py
harshitAgr/vess2ret
5702175bcd9ecde34d4fedab45a7cd2878a0184c
[ "MIT" ]
111
2017-01-30T17:49:15.000Z
2022-03-28T05:53:51.000Z
util/util.py
engineerlion/vess2ret
5702175bcd9ecde34d4fedab45a7cd2878a0184c
[ "MIT" ]
19
2017-03-06T10:28:16.000Z
2020-12-09T12:25:22.000Z
util/util.py
engineerlion/vess2ret
5702175bcd9ecde34d4fedab45a7cd2878a0184c
[ "MIT" ]
46
2017-02-10T18:39:25.000Z
2022-03-05T21:39:46.000Z
"""Auxiliary methods.""" import os import json from errno import EEXIST import numpy as np import seaborn as sns import cPickle as pickle import matplotlib.pyplot as plt sns.set() DEFAULT_LOG_DIR = 'log' ATOB_WEIGHTS_FILE = 'atob_weights.h5' D_WEIGHTS_FILE = 'd_weights.h5' class MyDict(dict): """ Dictionar...
30.745098
89
0.603795
921
6,272
3.908795
0.229099
0.086667
0.033333
0.046667
0.300833
0.269722
0.262222
0.221944
0.139722
0.058889
0
0.011366
0.228476
6,272
203
90
30.896552
0.732589
0.213967
0
0.084906
0
0
0.083747
0
0
0
0
0
0
1
0.113208
false
0.009434
0.066038
0
0.273585
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
22c1ccef20d9d7a1d41049e783b9575459b18d70
834
py
Python
services/apiRequests.py
CakeCrusher/voon-video_processing
6ecaacf4e36baa72d713a92101b445885b3d95ef
[ "MIT" ]
null
null
null
services/apiRequests.py
CakeCrusher/voon-video_processing
6ecaacf4e36baa72d713a92101b445885b3d95ef
[ "MIT" ]
null
null
null
services/apiRequests.py
CakeCrusher/voon-video_processing
6ecaacf4e36baa72d713a92101b445885b3d95ef
[ "MIT" ]
null
null
null
from github import Github def parseGithubURL(url): splitURL = url.split('/') owner = splitURL[3] repo = splitURL[4] return { "owner": owner, "repo": repo } def fetchRepoFiles(owner, repo): files = [] g = Github('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') repo = g.get_rep...
29.785714
78
0.642686
93
834
5.666667
0.473118
0.083491
0.056926
0
0
0
0
0
0
0
0
0.015291
0.215827
834
27
79
30.888889
0.79052
0.248201
0
0
0
0
0.107717
0.064309
0
0
0
0
0
1
0.095238
false
0
0.047619
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22c3df00575427d7293f54af4b1eb86f32f1ea11
995
py
Python
utils/tricks.py
HouchangX-AI/Dialog-Solution
1f68f847d9c9c4a46ef0b5fc6a78014402a4dd7a
[ "MIT" ]
3
2020-03-12T06:28:01.000Z
2020-03-27T20:15:53.000Z
utils/tricks.py
HouchangX-AI/Dialog-Solution
1f68f847d9c9c4a46ef0b5fc6a78014402a4dd7a
[ "MIT" ]
null
null
null
utils/tricks.py
HouchangX-AI/Dialog-Solution
1f68f847d9c9c4a46ef0b5fc6a78014402a4dd7a
[ "MIT" ]
2
2020-03-19T02:47:37.000Z
2021-12-14T02:26:40.000Z
#-*- coding: utf-8 -*- import codecs import random from utils.global_names import GlobalNames, get_file_path def modify_tokens(tokens): new_tokens = [] pos = 0 len_ = len(tokens) while pos < len_: if tokens[pos] == "[": if pos+2 < len_ and tokens[pos+2] == "]": to...
26.184211
57
0.501508
119
995
4.033613
0.386555
0.16875
0.0625
0.0625
0.183333
0
0
0
0
0
0
0.025723
0.374874
995
37
58
26.891892
0.745981
0.021106
0
0.2
0
0
0.010277
0
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22c76b57ffb3eeb2695ac101001d7de50b9a816d
4,344
py
Python
facetools/test/testcases.py
bigsassy/django-facetools
aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c
[ "MIT" ]
2
2018-01-24T20:41:27.000Z
2019-06-27T13:24:18.000Z
facetools/test/testcases.py
bigsassy/django-facetools
aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c
[ "MIT" ]
null
null
null
facetools/test/testcases.py
bigsassy/django-facetools
aeedaea81ab0007ee8e96b2f81f1404dc8bddb3c
[ "MIT" ]
null
null
null
import types import django.test.testcases from django.conf import settings from facetools.models import TestUser from facetools.common import _create_signed_request from facetools.test import TestUserNotLoaded from facetools.signals import sync_facebook_test_user, setup_facebook_test_client from facetools.common impor...
51.714286
162
0.69268
539
4,344
5.328386
0.300557
0.047354
0.050139
0.034819
0.116295
0.01532
0
0
0
0
0
0.000579
0.20419
4,344
83
163
52.337349
0.8302
0.179328
0
0.142857
0
0.035714
0.136794
0.007456
0
0
0
0
0
1
0.107143
false
0
0.142857
0
0.357143
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
22c82577ce9bb70304bc0ff3dee27fa81b62e25c
564
py
Python
homework_08/calc_fitness.py
ufpa-organization-repositories/evolutionary-computing
e16786f9619e2b357b94ab91ff3a7b352e6a0d92
[ "MIT" ]
null
null
null
homework_08/calc_fitness.py
ufpa-organization-repositories/evolutionary-computing
e16786f9619e2b357b94ab91ff3a7b352e6a0d92
[ "MIT" ]
null
null
null
homework_08/calc_fitness.py
ufpa-organization-repositories/evolutionary-computing
e16786f9619e2b357b94ab91ff3a7b352e6a0d92
[ "MIT" ]
null
null
null
def calc_fitness(pop): from to_decimal import to_decimal from math import sin, sqrt for index, elem in enumerate(pop): # só atribui a fitness a cromossomos que ainda não possuem fitness # print(elem[0], elem[1]) x = to_decimal(elem[0]) y = to_decimal(elem[1]) # x = ...
25.636364
87
0.546099
90
564
3.355556
0.4
0.119205
0.092715
0.02649
0.033113
0
0
0
0
0
0
0.069479
0.285461
564
21
88
26.857143
0.679901
0.326241
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
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
22cc9cf5c82866cdbb6751a30f5964a624debd38
2,753
py
Python
ch05/ch05-02-timeseries.py
alexmalins/kagglebook
260f6634b6bbaa94c2e989770e75dc7101f5c614
[ "BSD-3-Clause" ]
13
2021-02-20T08:57:28.000Z
2022-03-31T12:47:08.000Z
ch05/ch05-02-timeseries.py
Tharunkumar01/kagglebook
260f6634b6bbaa94c2e989770e75dc7101f5c614
[ "BSD-3-Clause" ]
null
null
null
ch05/ch05-02-timeseries.py
Tharunkumar01/kagglebook
260f6634b6bbaa94c2e989770e75dc7101f5c614
[ "BSD-3-Clause" ]
2
2021-07-15T03:56:39.000Z
2021-07-29T00:53:54.000Z
# --------------------------------- # Prepare the data etc. # ---------------------------------- import numpy as np import pandas as pd # train_x is the training data, train_y is the target values, and test_x is the test data # stored in pandas DataFrames and Series (numpy arrays also used) train = pd.read_csv('../in...
43.698413
108
0.653106
468
2,753
3.638889
0.196581
0.07751
0.063418
0.035232
0.530241
0.51145
0.431591
0.431591
0.431591
0.431591
0
0.01458
0.152924
2,753
62
109
44.403226
0.715695
0.519797
0
0.333333
0
0
0.120862
0.065435
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22cf451d04e0bf782f9148035e8ed296f046dac4
2,152
py
Python
python-scripts/plot_delay.py
GayashanNA/my-scripts
d865e828c833d6b54c787ce9475da512f8488278
[ "Apache-2.0" ]
null
null
null
python-scripts/plot_delay.py
GayashanNA/my-scripts
d865e828c833d6b54c787ce9475da512f8488278
[ "Apache-2.0" ]
null
null
null
python-scripts/plot_delay.py
GayashanNA/my-scripts
d865e828c833d6b54c787ce9475da512f8488278
[ "Apache-2.0" ]
null
null
null
import csv import matplotlib.pyplot as plt import time PLOT_PER_WINDOW = False WINDOW_LENGTH = 60000 BINS = 1000 delay_store = {} perwindow_delay_store = {} plotting_delay_store = {} filename = "output-large.csv" # filename = "output.csv" # filename = "output-medium.csv" # filename = "output-small.csv" # filename = "...
33.107692
98
0.703067
320
2,152
4.540625
0.353125
0.110117
0.086717
0.06607
0.104611
0.064694
0.064694
0.064694
0.064694
0.064694
0
0.019835
0.156599
2,152
64
99
33.625
0.780716
0.171933
0
0
0
0
0.110672
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22cfe37b118c380f98097dbe5e6dfaa75be99d71
427
py
Python
video/rest/compositionhooks/delete-hook/delete-hook.6.x.py
afeld/api-snippets
d77456c387c9471d36aa949e2cf785d8a534a370
[ "MIT" ]
3
2020-05-05T10:01:02.000Z
2021-02-06T14:23:13.000Z
video/rest/compositionhooks/delete-hook/delete-hook.6.x.py
afeld/api-snippets
d77456c387c9471d36aa949e2cf785d8a534a370
[ "MIT" ]
null
null
null
video/rest/compositionhooks/delete-hook/delete-hook.6.x.py
afeld/api-snippets
d77456c387c9471d36aa949e2cf785d8a534a370
[ "MIT" ]
null
null
null
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console api_key_sid = 'SKXXXX' api_key_secret = 'your_api_key_secret' client = Client(api_key_sid, api_key_secret) did_delete = client.video\ .c...
28.466667
72
0.709602
58
427
5
0.568966
0.103448
0.124138
0
0
0
0
0
0
0
0
0
0.201405
427
14
73
30.5
0.85044
0.295082
0
0
0
0
0.167785
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d06d326dbc942db8f36ca27ac8dc094685d70b
6,924
py
Python
advesarial_text/data/data_utils_test.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
advesarial_text/data/data_utils_test.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
advesarial_text/data/data_utils_test.py
slowy07/tensorflow-model-research
48ba4ba6240452eb3e3350fe7099f2b045acc530
[ "MIT" ]
null
null
null
from __future__ import absoulte_import from __future__ import division from __future__ import print_function import tensorflow as tf from data import data_utils data = data_utils class SequenceWrapperTest(tf.test.TestCase): def testDefaultTimesteps(self): seq = data.SequenceWrapper() t1 = seq....
36.0625
88
0.608897
912
6,924
4.449561
0.135965
0.158945
0.096353
0.069
0.566289
0.517003
0.4793
0.453425
0.418679
0.383933
0
0.024405
0.272097
6,924
191
89
36.251309
0.780754
0.034806
0
0.37013
0
0
0.016175
0.003445
0
0
0
0
0.337662
1
0.084416
false
0
0.032468
0
0.136364
0.006494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d0f53b1d93eab616a976b47567e50595d96288
3,546
py
Python
LipSDP/solve_sdp.py
revbucket/LipSDP
39f2ffe65cb656440e055e4e86a750bc7e77e357
[ "MIT" ]
1
2021-07-21T12:19:01.000Z
2021-07-21T12:19:01.000Z
LipSDP/solve_sdp.py
revbucket/LipSDP
39f2ffe65cb656440e055e4e86a750bc7e77e357
[ "MIT" ]
null
null
null
LipSDP/solve_sdp.py
revbucket/LipSDP
39f2ffe65cb656440e055e4e86a750bc7e77e357
[ "MIT" ]
null
null
null
import argparse import numpy as np import matlab.engine from scipy.io import savemat import os from time import time def main(args): start_time = time() eng = matlab.engine.start_matlab() eng.addpath(os.path.join(file_dir, 'matlab_engine')) eng.addpath(os.path.join(file_dir, r'matlab_engine/weight_uti...
30.834783
91
0.631416
447
3,546
4.888143
0.306488
0.045309
0.085584
0.029291
0.263616
0.179863
0.142334
0.105263
0.092449
0.092449
0
0.009956
0.235195
3,546
114
92
31.105263
0.795723
0
0
0.222222
0
0
0.334179
0.030175
0
0
0
0
0
1
0.011111
false
0
0.066667
0
0.077778
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d1e9715d6acd537e633072609ca037ec95ec12
805
py
Python
stockprophet/__init__.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
1
2021-11-15T13:07:19.000Z
2021-11-15T13:07:19.000Z
stockprophet/__init__.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
null
null
null
stockprophet/__init__.py
chihyi-liao/stockprophet
891c91b2a446e3bd30bb56b88be3874d7dda1b8d
[ "BSD-3-Clause" ]
1
2021-09-15T09:25:39.000Z
2021-09-15T09:25:39.000Z
from stockprophet.cli import entry_point from stockprophet.crawler import ( init_stock_type, init_stock_category ) from stockprophet.db import init_db from .utils import read_db_settings def preprocessing() -> bool: result = False # noinspection PyBroadException try: db_config = read_db_setti...
22.361111
49
0.645963
92
805
5.445652
0.456522
0.071856
0.051896
0
0
0
0
0
0
0
0
0
0.277019
805
35
50
23
0.860825
0.073292
0
0.185185
0
0
0.07537
0
0
0
0
0
0
1
0.074074
false
0
0.148148
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d23a29cb139320e7b38591cd284a89f2406142
475
py
Python
6/6.2.py
Hunter1753/adventofcode
962df52af01f6ab575e8f00eb2d1c1335dba5430
[ "CC0-1.0" ]
1
2020-12-08T21:53:19.000Z
2020-12-08T21:53:19.000Z
6/6.2.py
Hunter1753/adventofcode
962df52af01f6ab575e8f00eb2d1c1335dba5430
[ "CC0-1.0" ]
null
null
null
6/6.2.py
Hunter1753/adventofcode
962df52af01f6ab575e8f00eb2d1c1335dba5430
[ "CC0-1.0" ]
null
null
null
def setIntersectionCount(group): return len(set.intersection(*group)) groupList = [] tempGroup = [] with open("./6/input.txt") as inputFile: for line in inputFile: line = line.replace("\n","") if len(line) > 0: tempGroup.append(set(line)) else: groupList.append(tempGroup) tempGroup = [] if len(tempGr...
25
59
0.703158
58
475
5.758621
0.568966
0.02994
0.143713
0
0
0
0
0
0
0
0
0.007335
0.138947
475
19
59
25
0.809291
0
0
0.25
0
0
0.088235
0
0
0
0
0
0
1
0.0625
false
0
0
0.0625
0.125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d2adc9a61d389ca50d1c98a9058e597ec58a82
2,964
py
Python
demo/gpnas/CVPR2021_NAS_competition_gpnas_demo.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
926
2019-12-16T05:06:56.000Z
2022-03-31T07:22:10.000Z
demo/gpnas/CVPR2021_NAS_competition_gpnas_demo.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
327
2019-12-16T06:04:31.000Z
2022-03-30T11:08:18.000Z
demo/gpnas/CVPR2021_NAS_competition_gpnas_demo.py
ZichaoGuo/PaddleSlim
2550fb4ec86aee6155c1c8a2c9ab174e239918a3
[ "Apache-2.0" ]
234
2019-12-16T03:12:08.000Z
2022-03-27T12:59:39.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
44.909091
103
0.721323
476
2,964
4.218487
0.340336
0.054781
0.035857
0.025896
0.233068
0.204183
0.182271
0.155378
0.133466
0.133466
0
0.039612
0.165317
2,964
65
104
45.6
0.772029
0.345816
0
0.102564
0
0
0.090292
0.045407
0
0
0
0
0
1
0.025641
false
0
0.102564
0
0.153846
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22d789885783516e44018b1a27dcbc9e0ec012e0
6,443
py
Python
pymemcache/client/retrying.py
liquidpele/pymemcache
0001f94a06b91078ed7b7708729ef0d1aaa73a68
[ "Apache-2.0" ]
null
null
null
pymemcache/client/retrying.py
liquidpele/pymemcache
0001f94a06b91078ed7b7708729ef0d1aaa73a68
[ "Apache-2.0" ]
null
null
null
pymemcache/client/retrying.py
liquidpele/pymemcache
0001f94a06b91078ed7b7708729ef0d1aaa73a68
[ "Apache-2.0" ]
null
null
null
""" Module containing the RetryingClient wrapper class. """ from time import sleep def _ensure_tuple_argument(argument_name, argument_value): """ Helper function to ensure the given arguments are tuples of Exceptions (or subclasses), or can at least be converted to such. Args: argument_name: s...
35.994413
87
0.60298
800
6,443
4.68375
0.26875
0.055511
0.034694
0.045103
0.193488
0.14625
0.119295
0.09581
0.09581
0.057112
0
0.002091
0.331833
6,443
178
88
36.196629
0.868293
0.465622
0
0.072464
0
0
0.114125
0
0
0
0
0
0
1
0.115942
false
0
0.014493
0.028986
0.231884
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
22d92edfa8963f3c42a5dc829d7d8e2eae0773ab
461
py
Python
8.1.py
HuaichenOvO/EIE3280HW
e1424abb8baf715a4e9372e2ca6b0bed1e62f3d6
[ "MIT" ]
null
null
null
8.1.py
HuaichenOvO/EIE3280HW
e1424abb8baf715a4e9372e2ca6b0bed1e62f3d6
[ "MIT" ]
null
null
null
8.1.py
HuaichenOvO/EIE3280HW
e1424abb8baf715a4e9372e2ca6b0bed1e62f3d6
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as lg A_mat = np.matrix([ [0, 1, 1, 1, 0], [1, 0, 0, 0, 1], [1, 0, 0, 1, 1], [1, 0, 1, 0, 1], [0, 1, 1, 1, 0] ]) eigen = lg.eig(A_mat) # return Arr[5] with 5 different linear independent eigen values vec = eigen[1][:, 0] # the column (eigen vect...
20.043478
87
0.566161
83
461
3.108434
0.337349
0.062016
0.046512
0.046512
0.077519
0.054264
0.054264
0
0
0
0
0.093093
0.277657
461
22
88
20.954545
0.681682
0.305857
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
22dbcb72dc9b6914e75bad92c8d92d61083088a7
6,145
py
Python
src/automata_learning_with_policybank/Traces.py
logic-and-learning/AdvisoRL
3bbd741e681e6ea72562fec142d54e9d781d097d
[ "MIT" ]
4
2021-02-04T17:33:07.000Z
2022-01-24T10:29:39.000Z
src/automata_learning_with_policybank/Traces.py
logic-and-learning/AdvisoRL
3bbd741e681e6ea72562fec142d54e9d781d097d
[ "MIT" ]
null
null
null
src/automata_learning_with_policybank/Traces.py
logic-and-learning/AdvisoRL
3bbd741e681e6ea72562fec142d54e9d781d097d
[ "MIT" ]
null
null
null
import os class Traces: def __init__(self, positive = set(), negative = set()): self.positive = positive self.negative = negative """ IG: at the moment we are adding a trace only if it ends up in an event. should we be more restrictive, e.g. consider xxx, the same as xxxxxxxxxx (wher...
36.577381
127
0.479414
687
6,145
4.195051
0.245997
0.024289
0.031228
0.015267
0.252255
0.220333
0.211312
0.188411
0.148161
0.119015
0
0.012098
0.408137
6,145
167
128
36.796407
0.780313
0.091782
0
0.27907
0
0
0.012908
0
0
0
0
0
0
1
0.077519
false
0
0.007752
0.007752
0.139535
0.007752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22dbf84787aba6cdbf21c855e5dcbb4cff617bd6
1,758
py
Python
example/comp/urls.py
edwilding/django-comments-xtd
c3a335b6345b52c75cce69c66b7cf0ef72439d35
[ "BSD-2-Clause" ]
null
null
null
example/comp/urls.py
edwilding/django-comments-xtd
c3a335b6345b52c75cce69c66b7cf0ef72439d35
[ "BSD-2-Clause" ]
null
null
null
example/comp/urls.py
edwilding/django-comments-xtd
c3a335b6345b52c75cce69c66b7cf0ef72439d35
[ "BSD-2-Clause" ]
1
2021-06-01T20:35:25.000Z
2021-06-01T20:35:25.000Z
import django from django.conf import settings from django.conf.urls import include, url from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns if django.VERSION[:2] > (1, 9): from django.views.i18n import JavaScriptCatalog else: from django.views.i18n import javas...
31.392857
77
0.67463
210
1,758
5.528571
0.319048
0.041344
0.05857
0.027562
0.120586
0.031008
0
0
0
0
0
0.014493
0.175768
1,758
55
78
31.963636
0.786749
0
0
0.177778
0
0
0.209329
0.025597
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22df9e5579ccb8577b1f37196d5e862a47aa496e
1,026
py
Python
tests/basic/test_basic.py
kopp/python-astar
642dd4bcef9829776614dc0f12681ac94634a3bc
[ "BSD-3-Clause" ]
133
2017-05-05T03:40:13.000Z
2022-03-30T06:37:23.000Z
src/test/basic/basic.py
ReznicencuBogdan/python-astar
48d1caedd6e839c51315555f85ced567f7f166a7
[ "BSD-3-Clause" ]
6
2019-01-17T20:46:34.000Z
2021-12-23T22:59:57.000Z
src/test/basic/basic.py
ReznicencuBogdan/python-astar
48d1caedd6e839c51315555f85ced567f7f166a7
[ "BSD-3-Clause" ]
61
2017-03-17T14:05:34.000Z
2022-02-18T21:27:40.000Z
import unittest import astar class BasicTests(unittest.TestCase): def test_bestpath(self): """ensure that we take the shortest path, and not the path with less elements. the path with less elements is A -> B with a distance of 100 the shortest path is A -> C -> D -> B with a distanc...
30.176471
87
0.522417
136
1,026
3.823529
0.433824
0.011538
0.057692
0.057692
0.15
0
0
0
0
0
0
0.033083
0.351852
1,026
33
88
31.090909
0.748872
0.191033
0
0
0
0
0.026482
0
0
0
0
0
0.090909
1
0.181818
false
0
0.090909
0.045455
0.409091
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
22e090fdaf1d3e3871f2d87d1370e0c27a711e78
2,623
py
Python
potions.py
abdza/skyrim_formulas
bf6be3c82715cfde89810d6e6183c95a55a4414c
[ "MIT" ]
null
null
null
potions.py
abdza/skyrim_formulas
bf6be3c82715cfde89810d6e6183c95a55a4414c
[ "MIT" ]
null
null
null
potions.py
abdza/skyrim_formulas
bf6be3c82715cfde89810d6e6183c95a55a4414c
[ "MIT" ]
null
null
null
#!/bin/env python3 import csv def intersect(list1,list2): list3 = [ value for value in list1 if value in list2] return list3 def category(list1,effects): cat = 'Good' good = 0 bad = 0 for ing in list1: if effects[ing]=='Good': good += 1 else: bad += 1 ...
31.60241
141
0.569577
318
2,623
4.679245
0.264151
0.010753
0.016129
0.058468
0.087366
0.044355
0.044355
0
0
0
0
0.024638
0.28822
2,623
82
142
31.987805
0.772362
0.006481
0
0.072464
0
0
0.073321
0.008445
0
0
0
0
0
1
0.028986
false
0
0.014493
0
0.101449
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22e2114d0da96fc447264d248b0ab2d8a5d86656
3,469
py
Python
Tests/Methods/Mesh/Interpolation/test_interpolation.py
harshasunder-1/pyleecan
32ae60f98b314848eb9b385e3652d7fc50a77420
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
Tests/Methods/Mesh/Interpolation/test_interpolation.py
harshasunder-1/pyleecan
32ae60f98b314848eb9b385e3652d7fc50a77420
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Mesh/Interpolation/test_interpolation.py
harshasunder-1/pyleecan
32ae60f98b314848eb9b385e3652d7fc50a77420
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import numpy as np from unittest import TestCase from pyleecan.Classes.CellMat import CellMat from pyleecan.Classes.MeshSolution import MeshSolution from pyleecan.Classes.PointMat import PointMat from pyleecan.Classes.MeshMat import MeshMat from pyleecan.Classes.ScalarProductL2 i...
38.544444
86
0.618622
475
3,469
4.406316
0.170526
0.043478
0.072623
0.040612
0.615862
0.603918
0.533206
0.496894
0.492117
0.492117
0
0.040381
0.243298
3,469
89
87
38.977528
0.756952
0.054194
0
0.315068
0
0
0.053806
0
0
0
0
0
0.054795
1
0.013699
false
0
0.150685
0
0.178082
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
22e2925cc3811ca52e0058f9e3c1868295f2875f
13,863
py
Python
lib/models.py
ecarg/grace
8c1540116c07648f7d8852ee5e9edff33b6ae2f6
[ "BSD-2-Clause" ]
7
2017-11-20T03:30:46.000Z
2021-06-10T15:33:07.000Z
lib/models.py
ecarg/grace
8c1540116c07648f7d8852ee5e9edff33b6ae2f6
[ "BSD-2-Clause" ]
47
2017-09-08T07:02:42.000Z
2017-11-04T13:50:50.000Z
lib/models.py
ecarg/grace
8c1540116c07648f7d8852ee5e9edff33b6ae2f6
[ "BSD-2-Clause" ]
2
2018-10-19T05:05:23.000Z
2019-10-31T06:27:24.000Z
# -*- coding: utf-8 -*- """ Pytorch models __author__ = 'Jamie (krikit@naver.com)' __copyright__ = 'No copyright. Just copyleft!' """ # pylint: disable=no-member # pylint: disable=invalid-name ########### # imports # ########### import torch import torch.nn as nn from embedder import Embedder from pos_models impo...
31.506818
89
0.549592
1,832
13,863
3.899017
0.100437
0.066499
0.02352
0.0238
0.630687
0.586448
0.542349
0.461851
0.413692
0.405012
0
0.041397
0.320421
13,863
439
90
31.578588
0.716803
0.246916
0
0.457627
0
0
0.002685
0
0
0
0
0
0.012712
1
0.072034
false
0
0.025424
0
0.165254
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
22e5c3b42de15feed5e29aa272f135d23d064ab1
1,274
py
Python
setup.py
edulix/apscheduler
8030e0fc7e1845a15861e649988cc73a1aa624ec
[ "MIT" ]
null
null
null
setup.py
edulix/apscheduler
8030e0fc7e1845a15861e649988cc73a1aa624ec
[ "MIT" ]
null
null
null
setup.py
edulix/apscheduler
8030e0fc7e1845a15861e649988cc73a1aa624ec
[ "MIT" ]
null
null
null
# coding: utf-8 import os.path try: from setuptools import setup extras = dict(zip_safe=False, test_suite='nose.collector', tests_require=['nose']) except ImportError: from distutils.core import setup extras = {} import apscheduler here = os.path.dirname(__file__) readme_path = os.path.join(here, 'R...
31.073171
107
0.663265
139
1,274
6
0.589928
0.136691
0.179856
0.093525
0
0
0
0
0
0
0
0.010763
0.197802
1,274
40
108
31.85
0.805284
0.010204
0
0
0
0
0.466243
0.054011
0
0
0
0
0
1
0
false
0
0.147059
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22e9a24e177b5cc9ead771b6359f5209ebe42377
543
py
Python
run.py
matthewyoung28/macmentum
af1a26903e25b4a4f278388d7be1e638e071c0a8
[ "MIT" ]
null
null
null
run.py
matthewyoung28/macmentum
af1a26903e25b4a4f278388d7be1e638e071c0a8
[ "MIT" ]
null
null
null
run.py
matthewyoung28/macmentum
af1a26903e25b4a4f278388d7be1e638e071c0a8
[ "MIT" ]
null
null
null
import os import sys import random def get_next_wallpaper(curr_path): lst_dir = os.listdir() rand_index = random.randint(0, len(lst_dir) - 1) return lst_dir[rand_index] def get_wall_dir(): return "/Users/MYOUNG/Pictures/mmt" def main(): script = "osascript -e 'tell application \"Finder\" to s...
18.724138
93
0.662983
77
543
4.493506
0.519481
0.052023
0.092486
0
0
0
0
0
0
0
0
0.00464
0.206262
543
28
94
19.392857
0.798144
0.090239
0
0
0
0
0.201232
0.053388
0
0
0
0
0
1
0.1875
false
0
0.1875
0.0625
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
22eae5e579a412e845c5851038ebc3ce5e3c9735
2,099
py
Python
noxfile.py
dolfno/mlops_demo
52a04525f1655a32d45002384a972a1920fd517a
[ "MIT" ]
null
null
null
noxfile.py
dolfno/mlops_demo
52a04525f1655a32d45002384a972a1920fd517a
[ "MIT" ]
null
null
null
noxfile.py
dolfno/mlops_demo
52a04525f1655a32d45002384a972a1920fd517a
[ "MIT" ]
null
null
null
"""Automated CI tools to run with Nox""" import nox from nox import Session locations = "src", "noxfile.py", "docs/conf.py" nox.options.sessions = "lint", "tests" @nox.session(python="3.9") def tests(session: Session) -> None: """Run tests with nox""" session.run("poetry", "install", external=True) sessi...
28.364865
68
0.636494
260
2,099
5.130769
0.303846
0.082459
0.083958
0.089205
0.255622
0.255622
0.176912
0.08096
0.08096
0.08096
0
0.015508
0.170557
2,099
73
69
28.753425
0.750718
0.100048
0
0.208333
0
0
0.262987
0.041126
0
0
0
0
0
1
0.145833
false
0
0.083333
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
22eecf1d05ffdd487202a1266800927ab92af76d
1,098
py
Python
src/framework/tracing.py
davidhozic/Discord-Shiller
ff22bb1ceb7b4128ee0d27f3c9c9dd0a5279feb9
[ "MIT" ]
12
2022-02-20T20:50:24.000Z
2022-03-24T17:15:15.000Z
src/framework/tracing.py
davidhozic/Discord-Shiller
ff22bb1ceb7b4128ee0d27f3c9c9dd0a5279feb9
[ "MIT" ]
3
2022-02-21T15:17:43.000Z
2022-03-17T22:36:23.000Z
src/framework/tracing.py
davidhozic/discord-advertisement-framework
ff22bb1ceb7b4128ee0d27f3c9c9dd0a5279feb9
[ "MIT" ]
1
2022-03-31T01:04:01.000Z
2022-03-31T01:04:01.000Z
""" ~ Tracing ~ This modules containes functions and classes related to the console debug long or trace. """ from enum import Enum, auto import time __all__ = ( "TraceLEVELS", "trace" ) m_use_debug = None class TraceLEVELS(Enum): """ Info: Level of trace for debug """ NORMAL...
25.534884
81
0.528233
112
1,098
5.044643
0.526786
0.106195
0.031858
0
0
0
0
0
0
0
0
0.015782
0.365209
1,098
42
82
26.142857
0.794835
0.222222
0
0
0
0
0.152585
0.027743
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22f2bda6c50ac4fe1d32522345090972ebb7ad66
728
py
Python
sunkit_image/__init__.py
jeffreypaul15/sunkit-image
0987db8fcd38c79a83d7d890e407204e63a05c4f
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
sunkit_image/__init__.py
jeffreypaul15/sunkit-image
0987db8fcd38c79a83d7d890e407204e63a05c4f
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
sunkit_image/__init__.py
jeffreypaul15/sunkit-image
0987db8fcd38c79a83d7d890e407204e63a05c4f
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
""" sunkit-image ============ A image processing toolbox for Solar Physics. * Homepage: https://sunpy.org * Documentation: https://sunkit-image.readthedocs.io/en/latest/ """ import sys from .version import version as __version__ # NOQA # Enforce Python version check during package import. __minimum_python_version_...
23.483871
87
0.717033
88
728
5.613636
0.670455
0.105263
0.121457
0
0
0
0
0
0
0
0
0.0033
0.167582
728
30
88
24.266667
0.811881
0.443681
0
0
0
0
0.118421
0
0
0
0
0
0
1
0
false
0
0.222222
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
22f32d963c063df45b4e85b0c4f01e4ea1ea6369
26,004
py
Python
app/view.py
lucasblazzi/stocker
52cdec481ed84a09d97369ee4da229e169f99f51
[ "MIT" ]
null
null
null
app/view.py
lucasblazzi/stocker
52cdec481ed84a09d97369ee4da229e169f99f51
[ "MIT" ]
null
null
null
app/view.py
lucasblazzi/stocker
52cdec481ed84a09d97369ee4da229e169f99f51
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import plotly.express as px import pandas as pd class View: def __init__(self, st): self.st = st self.st.set_page_config(layout='wide') self.side_bar = st.sidebar def show_message(self, location, _type, message): if location == "sb": ...
46.352941
153
0.543916
2,996
26,004
4.556409
0.111148
0.043513
0.043074
0.026152
0.380558
0.288184
0.244744
0.197421
0.164677
0.152516
0
0.016633
0.290225
26,004
561
154
46.352941
0.722978
0
0
0.207171
0
0.011952
0.23757
0.019842
0
0
0
0
0
1
0.057769
false
0.005976
0.005976
0.001992
0.093626
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
22f35b16a60f939a7ee519533639ecb4ccd48d47
866
py
Python
TestFiles/volumioTest.py
GeorgeIoak/Oden
9bb6a5811e2ea40ceef67e46bc56eab1be9ce06c
[ "MIT" ]
null
null
null
TestFiles/volumioTest.py
GeorgeIoak/Oden
9bb6a5811e2ea40ceef67e46bc56eab1be9ce06c
[ "MIT" ]
null
null
null
TestFiles/volumioTest.py
GeorgeIoak/Oden
9bb6a5811e2ea40ceef67e46bc56eab1be9ce06c
[ "MIT" ]
null
null
null
# Testing code to check update status on demand from socketIO_client import SocketIO, LoggingNamespace from threading import Thread socketIO = SocketIO('localhost', 3000) status = 'pause' def on_push_state(*args): print('state', args) global status, position, duration, seek status = args[0]['s...
29.862069
72
0.674365
107
866
5.336449
0.485981
0.091068
0.057793
0
0
0
0
0
0
0
0
0.017544
0.210162
866
29
73
29.862069
0.817251
0.133949
0
0
0
0
0.105615
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.190476
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
22f43bae0fb833bc9d376660819fab38bbd38d60
11,830
py
Python
src/use-model.py
sofieditmer/self-assigned
3033b64d2848fcf73c44dd79ad4e7f07f8387c65
[ "MIT" ]
null
null
null
src/use-model.py
sofieditmer/self-assigned
3033b64d2848fcf73c44dd79ad4e7f07f8387c65
[ "MIT" ]
null
null
null
src/use-model.py
sofieditmer/self-assigned
3033b64d2848fcf73c44dd79ad4e7f07f8387c65
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Info: This script loads the model trained in the cnn-asl.py script and enables the user to use it for classifying unseen ASL letters. It also visualizes the feature map of the last convolutional layer of the network to enable the user to get an insight into exactly which parts of the original ...
42.707581
421
0.623331
1,497
11,830
4.819639
0.229793
0.045738
0.01386
0.024255
0.176299
0.14456
0.114207
0.103119
0.072072
0.072072
0
0.007597
0.298986
11,830
277
422
42.707581
0.862414
0.398309
0
0.072727
0
0.018182
0.185228
0.030294
0
0
0
0
0
1
0.063636
false
0
0.1
0.009091
0.209091
0.063636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22f53ccd69bc56b9aef660e968f36d2013f14d05
7,899
py
Python
src/gluonts/nursery/autogluon_tabular/estimator.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
2,648
2019-06-03T17:18:27.000Z
2022-03-31T08:29:22.000Z
src/gluonts/nursery/autogluon_tabular/estimator.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
1,220
2019-06-04T09:00:14.000Z
2022-03-31T10:45:43.000Z
src/gluonts/nursery/autogluon_tabular/estimator.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
595
2019-06-04T01:04:31.000Z
2022-03-30T10:40:26.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
36.233945
122
0.613622
934
7,899
4.981799
0.278373
0.036106
0.015474
0.021277
0.213841
0.192564
0.17709
0.143133
0.121212
0.121212
0
0.003716
0.318648
7,899
217
123
36.400922
0.860832
0.261426
0
0.233766
0
0
0.095129
0.014419
0
0
0
0
0
1
0.012987
false
0
0.064935
0
0.090909
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
22f548488d990977359fc60d27c5b1e982176596
1,032
py
Python
src/dcar/errors.py
andreas19/dcar
31118ac5924b7cb01f8b7da5a84480824c046df2
[ "BSD-3-Clause" ]
1
2020-11-25T15:04:39.000Z
2020-11-25T15:04:39.000Z
src/dcar/errors.py
andreas19/dcar
31118ac5924b7cb01f8b7da5a84480824c046df2
[ "BSD-3-Clause" ]
null
null
null
src/dcar/errors.py
andreas19/dcar
31118ac5924b7cb01f8b7da5a84480824c046df2
[ "BSD-3-Clause" ]
null
null
null
"""Errors module.""" __all__ = [ 'Error', 'AddressError', 'AuthenticationError', 'TransportError', 'ValidationError', 'RegisterError', 'MessageError', 'DBusError', 'SignatureError', 'TooLongError', ] class Error(Exception): """Base class.""" class AddressError(Error): ...
18.763636
67
0.671512
102
1,032
6.754902
0.45098
0.095791
0.087083
0.07402
0.063861
0
0
0
0
0
0
0
0.189922
1,032
54
68
19.111111
0.824163
0.373062
0
0
0
0
0.211506
0
0
0
0
0
0
1
0
false
0
0
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
22f66223b5c0420ba407f0ba73a5510c6ae72923
31,006
py
Python
Packs/CortexXDR/Integrations/XDR_iocs/XDR_iocs_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
1
2022-03-05T02:23:32.000Z
2022-03-05T02:23:32.000Z
Packs/CortexXDR/Integrations/XDR_iocs/XDR_iocs_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
42
2022-03-11T10:52:26.000Z
2022-03-31T01:50:42.000Z
Packs/CortexXDR/Integrations/XDR_iocs/XDR_iocs_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
2
2021-12-13T13:07:21.000Z
2022-03-05T02:23:34.000Z
from XDR_iocs import * import pytest from freezegun import freeze_time Client.severity = 'INFO' client = Client({'url': 'test'}) def d_sort(in_dict): return sorted(in_dict.items()) class TestGetHeaders: @freeze_time('2020-06-01T00:00:00Z') def test_sanity(self, mocker): """ Given: ...
44.042614
224
0.591111
3,461
31,006
5.037561
0.10286
0.022713
0.022713
0.015142
0.644566
0.579983
0.498537
0.460166
0.427416
0.411242
0
0.044583
0.272979
31,006
703
225
44.105263
0.728862
0.08121
0
0.258206
0
0.030635
0.341319
0.0769
0
0
0
0
0.080963
1
0.083151
false
0
0.006565
0.006565
0.164114
0.004376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22f898eb9c872bebbb74a0dcd35cbd3eb8f475a0
4,444
py
Python
cloudify_terminal_sdk/netconf_connection.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
1
2019-04-23T03:06:52.000Z
2019-04-23T03:06:52.000Z
cloudify_terminal_sdk/netconf_connection.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
9
2018-12-17T14:08:29.000Z
2022-01-16T17:52:54.000Z
cloudify_terminal_sdk/netconf_connection.py
cloudify-incubator/cloudify-plugins-sdk
9805008e739d31e5f9fe3184411648f9be5e6214
[ "Apache-2.0" ]
3
2021-12-13T20:53:37.000Z
2022-01-20T09:01:47.000Z
# Copyright (c) 2015-2020 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.552
74
0.605761
578
4,444
4.486159
0.290657
0.092557
0.055534
0.049364
0.298496
0.174315
0.121095
0.028538
0.028538
0
0
0.023665
0.296355
4,444
124
75
35.83871
0.805564
0.278578
0
0.141026
0
0
0.035283
0.020343
0
0
0
0
0
1
0.089744
false
0.025641
0.025641
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
22f9659775a0befbb80b23123b166ed4d7384748
15,411
py
Python
Seismic_Conv1D_dec.py
dyt1990/Seis_DCEC
6cc56a7db10dd87b0ef39ece73578fca8b23c55f
[ "MIT" ]
1
2021-04-05T06:03:16.000Z
2021-04-05T06:03:16.000Z
Seismic_Conv1D_dec.py
dyt1990/Seis_DCEC
6cc56a7db10dd87b0ef39ece73578fca8b23c55f
[ "MIT" ]
null
null
null
Seismic_Conv1D_dec.py
dyt1990/Seis_DCEC
6cc56a7db10dd87b0ef39ece73578fca8b23c55f
[ "MIT" ]
2
2019-06-13T03:34:20.000Z
2019-12-16T05:57:30.000Z
# -*- coding: utf-8 -*- """ Created on Sun Aug 19 17:48:13 2018 @author: Sediment """ # -*- coding: utf-8 -*- ''' Keras implementation of deep embedder to improve clustering, inspired by: "Unsupervised Deep Embedding for Clustering Analysis" (Xie et al, ICML 2016) Definition can accept somewhat custom ne...
43.78125
138
0.594251
1,869
15,411
4.745318
0.228464
0.004961
0.017589
0.012628
0.23148
0.211523
0.203405
0.162814
0.162814
0.149171
0
0.020189
0.299332
15,411
351
139
43.905983
0.801167
0.175394
0
0.133333
0
0
0.050293
0.002263
0
0
0
0.002849
0.026667
1
0.053333
false
0
0.088889
0
0.191111
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0