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
d4bca411ec322bf0d2f4684e172c03b2076797b4
3,590
py
Python
hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py
christian-jacobsen/hypernet
9f62e1531eb152cc08af0b0c6b09d6fde8d42400
[ "Apache-2.0" ]
null
null
null
hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py
christian-jacobsen/hypernet
9f62e1531eb152cc08af0b0c6b09d6fde8d42400
[ "Apache-2.0" ]
null
null
null
hypernet/src/thermophysicalModels/reactionThermo/mixture/multiComponent.py
christian-jacobsen/hypernet
9f62e1531eb152cc08af0b0c6b09d6fde8d42400
[ "Apache-2.0" ]
null
null
null
import numpy as np from hypernet.src.general import const from hypernet.src.general import utils from hypernet.src.thermophysicalModels.reactionThermo.mixture import Basic class MultiComponent(Basic): # Initialization ########################################################################### def __init...
30.423729
79
0.479666
446
3,590
3.778027
0.190583
0.083086
0.071217
0.099703
0.422552
0.321068
0.321068
0.321068
0.321068
0.321068
0
0.000404
0.310585
3,590
117
80
30.683761
0.680404
0.117549
0
0.202532
0
0
0.004335
0
0
0
0
0
0
1
0.189873
false
0
0.050633
0.025316
0.379747
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c06417dd5e89491398d91b568c1842895c3961
14,779
py
Python
tensorflow_probability/python/distributions/laplace_test.py
wataruhashimoto52/probability
12e3f256544eadea6e863868da825614f4423eb0
[ "Apache-2.0" ]
1
2020-04-13T12:31:12.000Z
2020-04-13T12:31:12.000Z
tensorflow_probability/python/distributions/laplace_test.py
wataruhashimoto52/probability
12e3f256544eadea6e863868da825614f4423eb0
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/laplace_test.py
wataruhashimoto52/probability
12e3f256544eadea6e863868da825614f4423eb0
[ "Apache-2.0" ]
1
2020-12-19T13:05:15.000Z
2020-12-19T13:05:15.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.790026
109
0.66175
2,258
14,779
4.164748
0.125332
0.017439
0.035942
0.029775
0.554126
0.489792
0.449171
0.426733
0.38994
0.378031
0
0.040776
0.183571
14,779
380
110
38.892105
0.738604
0.054808
0
0.370968
0
0
0.013121
0
0
0
0
0
0.219355
1
0.077419
false
0
0.029032
0
0.112903
0.003226
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c0decddfc9adf11a583ac3c85b167de4ffaed9
33,707
py
Python
selectinf/randomized/approx_reference_grouplasso.py
kevinbfry/selective-inference
4e846877b5c23969fc420b452f20cc3b16b6cb78
[ "BSD-3-Clause" ]
14
2015-09-01T19:31:25.000Z
2021-11-26T08:47:10.000Z
selectinf/randomized/approx_reference_grouplasso.py
kevinbfry/selective-inference
4e846877b5c23969fc420b452f20cc3b16b6cb78
[ "BSD-3-Clause" ]
7
2016-09-12T20:41:41.000Z
2018-06-26T02:10:30.000Z
selectinf/randomized/approx_reference_grouplasso.py
kevinbfry/selective-inference
4e846877b5c23969fc420b452f20cc3b16b6cb78
[ "BSD-3-Clause" ]
10
2015-09-01T19:31:28.000Z
2021-02-23T01:16:20.000Z
from __future__ import print_function from scipy.linalg import block_diag from scipy.stats import norm as ndist from scipy.interpolate import interp1d import collections import numpy as np from numpy import log from numpy.linalg import norm, qr, inv, eig import pandas as pd import regreg.api as rr from .randomization...
37.830527
116
0.556709
3,985
33,707
4.505897
0.139523
0.031967
0.014034
0.005792
0.275395
0.237358
0.211796
0.159557
0.112943
0.099688
0
0.011184
0.350076
33,707
890
117
37.873034
0.808463
0.164447
0
0.219251
0
0
0.019895
0
0
0
0
0
0
1
0.040998
false
0
0.024955
0
0.105169
0.003565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c1d2fbba6d7c550c2607f8f36af9eb36384e04
18,606
py
Python
internals/states.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
null
null
null
internals/states.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
null
null
null
internals/states.py
mattjj/pyhsmm-collapsedinfinite
81a60c025beec6fb065bc9f4e23cea43b6f6725c
[ "MIT" ]
1
2021-10-06T15:12:44.000Z
2021-10-06T15:12:44.000Z
from __future__ import division import numpy as np na = np.newaxis import collections, itertools import abc from pyhsmm.util.stats import sample_discrete, sample_discrete_from_log, combinedata from pyhsmm.util.general import rle as rle # NOTE: assumes censoring. can make no censoring by adding to score of last # segm...
35.849711
110
0.577448
2,431
18,606
4.322912
0.143562
0.075364
0.028547
0.011514
0.501475
0.458274
0.413645
0.348463
0.332477
0.311257
0
0.015428
0.306729
18,606
518
111
35.918919
0.799287
0.148124
0
0.458689
0
0
0.003837
0
0
0
0
0.003861
0.051282
1
0.091168
false
0.019943
0.019943
0.002849
0.196581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c20caa8c6caaf656d4639f0a7424aba4ba6e44
1,406
py
Python
exporters/contrib/writers/odo_writer.py
scrapinghub/exporters
b14f70530826bbbd6163d9e56e74345e762a9189
[ "BSD-3-Clause" ]
41
2016-06-16T15:29:39.000Z
2021-08-06T03:29:13.000Z
exporters/contrib/writers/odo_writer.py
bbotella/fluxo
c9fb01db1771ada4672bbffd67cb46e1f7802ab9
[ "BSD-3-Clause" ]
52
2016-06-20T12:46:57.000Z
2018-02-08T12:22:03.000Z
exporters/contrib/writers/odo_writer.py
bbotella/fluxo
c9fb01db1771ada4672bbffd67cb46e1f7802ab9
[ "BSD-3-Clause" ]
10
2016-06-23T08:49:36.000Z
2018-01-13T10:12:10.000Z
import six import json import gzip from exporters.default_retries import retry_long from exporters.writers.base_writer import BaseWriter class ODOWriter(BaseWriter): """ Writes items to a odo destination. https://odo.readthedocs.org/en/latest/ Needed parameters: - schema (object) sc...
31.244444
93
0.642959
174
1,406
5.045977
0.482759
0.041002
0.034169
0
0
0
0
0
0
0
0
0
0.242532
1,406
44
94
31.954545
0.824413
0.138691
0
0
0
0
0.081702
0
0
0
0
0
0
1
0.074074
false
0
0.296296
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
d4c3adf62c8a44bad01c91e8ccec7e900d2597c3
1,573
py
Python
graphstar/utils.py
pengboomouch/graphstar
f7f3537aa92118765b358dd3a47b4fa5cea8587c
[ "MIT" ]
null
null
null
graphstar/utils.py
pengboomouch/graphstar
f7f3537aa92118765b358dd3a47b4fa5cea8587c
[ "MIT" ]
null
null
null
graphstar/utils.py
pengboomouch/graphstar
f7f3537aa92118765b358dd3a47b4fa5cea8587c
[ "MIT" ]
null
null
null
""" graphstar.utils ~~~~~~~~~~~~~~~ Cristian Cornea A simple bedirectional graph with A* and breadth-first pathfinding. Utils are either used by the search algorithm, or when needed :) Pretty self explainatory (I hope) For more information see the examples and tests folder """ def smooth_path(p): # If the ...
24.968254
68
0.688493
279
1,573
3.806452
0.419355
0.033898
0.018832
0.028249
0
0
0
0
0
0
0
0.007341
0.220598
1,573
62
69
25.370968
0.858891
0.625556
0
0
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0
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
d4c411c2e8e16ded3277d3bfc3c35dd1f462b513
527
py
Python
jinchi/demo/foobar.py
jiz148/py-test
d976265d065c760f2e8b55302dedbfebd01bec28
[ "Apache-2.0" ]
null
null
null
jinchi/demo/foobar.py
jiz148/py-test
d976265d065c760f2e8b55302dedbfebd01bec28
[ "Apache-2.0" ]
null
null
null
jinchi/demo/foobar.py
jiz148/py-test
d976265d065c760f2e8b55302dedbfebd01bec28
[ "Apache-2.0" ]
1
2019-01-07T18:42:53.000Z
2019-01-07T18:42:53.000Z
import os def check_env(env_var_name): """ Check and return the type of an environment variable. supported types: None Integer String @param env_var_name: environment variable name @return: string of the type name. """ try: val = os.getenv(env_var_name) ...
18.821429
57
0.578748
65
527
4.569231
0.492308
0.060606
0.10101
0
0
0
0
0
0
0
0
0
0.352941
527
27
58
19.518519
0.870968
0.351044
0
0.153846
0
0
0.069536
0
0
0
0
0
0
1
0.076923
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
d4c56f7b05d7fe221ca2f682d2bea0e270121b36
2,000
py
Python
tracking/utils.py
WGBH/django-tracking
80e8bc44521820eab956d2264d6df0b6987429e0
[ "MIT" ]
null
null
null
tracking/utils.py
WGBH/django-tracking
80e8bc44521820eab956d2264d6df0b6987429e0
[ "MIT" ]
null
null
null
tracking/utils.py
WGBH/django-tracking
80e8bc44521820eab956d2264d6df0b6987429e0
[ "MIT" ]
null
null
null
from datetime import datetime from django.conf import settings import pytz def check_tracker(obj, simple=True): if simple: if obj.status > 0: return True return False # we have a gatekeeper now = datetime.now(pytz.utc) if obj.tracker_publish_status < 0: ...
35.087719
88
0.665
281
2,000
4.576512
0.423488
0.046656
0.037325
0.026439
0.130638
0.049767
0.049767
0
0
0
0
0.005274
0.2415
2,000
57
89
35.087719
0.842452
0.384
0
0.242424
0
0
0.139812
0.02387
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.424242
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c5d7225aa1d551d6744fefbde6bc3d8b9f8cc2
3,220
py
Python
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
4
2019-09-19T15:36:22.000Z
2020-02-18T09:28:54.000Z
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
null
null
null
computation/Tests/Jetson/TF_model.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
2
2020-04-14T19:11:32.000Z
2022-01-08T18:59:02.000Z
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from distutils.version import StrictVersion from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image import json import time im...
26.178862
100
0.700621
495
3,220
4.341414
0.30101
0.04188
0.033504
0.015821
0.233597
0.120056
0.092136
0.092136
0.092136
0.053979
0
0.019985
0.176398
3,220
122
101
26.393443
0.790347
0.088199
0
0.102564
0
0
0.109134
0.031475
0.012821
0
0
0
0
1
0.025641
false
0
0.205128
0
0.25641
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c6aa1d03e45cbedd11a4f0d5c301600877fac8
1,326
py
Python
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2017-12-09T22:05:11.000Z
2019-10-22T12:03:43.000Z
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
17
2021-03-22T18:47:14.000Z
2022-03-15T12:21:00.000Z
frappe/patches/v13_0/update_date_filters_in_user_settings.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
2
2021-05-06T06:14:40.000Z
2021-05-06T10:05:29.000Z
from __future__ import unicode_literals import frappe, json from frappe.model.utils.user_settings import update_user_settings, sync_user_settings def execute(): users = frappe.db.sql("select distinct(user) from `__UserSettings`", as_dict=True) for user in users: user_settings = frappe.db.sql(''' select * f...
24.109091
85
0.659879
187
1,326
4.486631
0.31016
0.100119
0.035757
0.045292
0.073898
0.073898
0
0
0
0
0
0.011184
0.190799
1,326
54
86
24.555556
0.770736
0
0
0
0
0
0.181269
0
0
0
0
0
0
1
0.046512
false
0
0.069767
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c78d441d23d25b49b17e8da38c99500cd4ebd4
3,993
py
Python
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
null
null
null
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
null
null
null
miniproject/train.py
peguerosdc/ml4phy-quantum-oscillators
5ce2cc8ea9ad00e23dab45d898e51f484fca5934
[ "MIT" ]
1
2021-07-18T11:11:46.000Z
2021-07-18T11:11:46.000Z
import BoltzmannMachine as bm import QHO as qho import numpy as np import datetime # Visualization imports from IPython.display import clear_output from PIL import Image import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['figure.dpi']=300 def sigmoid(x): return .5 * (1 + np.tanh(x / 2.)) # Set t...
40.333333
104
0.69146
663
3,993
4.060332
0.3454
0.015602
0.026746
0.042348
0.096582
0.096582
0.031947
0.027489
0.027489
0.014116
0
0.030516
0.179314
3,993
98
105
40.744898
0.790967
0.289507
0
0
0
0
0.095695
0.038776
0
0
0
0
0
1
0.063492
false
0
0.126984
0.015873
0.206349
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
d4c7b73306f8c0594f64a791f8292624d0ac8d82
11,237
py
Python
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/Marketplace/prepare_public_index_for_private_testing.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import time import os import sys import shutil import json import argparse from zipfile import ZipFile from contextlib import contextmanager from datetime import datetime from Tests.private_build.upload_packs_private import download_and_extract_index, update_index_with_priced_packs, \ extract_packs_artifacts from T...
48.021368
129
0.707128
1,484
11,237
4.931941
0.177898
0.101107
0.047821
0.034431
0.361525
0.272988
0.234185
0.181036
0.147425
0.116273
0
0.002172
0.221589
11,237
233
130
48.227468
0.834572
0.068435
0
0.094118
0
0
0.134499
0.015467
0
0
0
0
0
1
0.070588
false
0
0.076471
0
0.164706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4c9cb6d342d54eea3d53d2a8f44856dc1296577
2,843
py
Python
configs/_base_/datasets/flyingchairs_320x448.py
zhouzaida/mmflow
b34f0801061469f04a83133d7f5652dead1f93ce
[ "Apache-2.0" ]
1
2021-11-16T12:32:54.000Z
2021-11-16T12:32:54.000Z
configs/_base_/datasets/flyingchairs_320x448.py
xiaokekeke/mmflow
c9ab798cec832d3472cbb06f04b2d64299802168
[ "Apache-2.0" ]
null
null
null
configs/_base_/datasets/flyingchairs_320x448.py
xiaokekeke/mmflow
c9ab798cec832d3472cbb06f04b2d64299802168
[ "Apache-2.0" ]
1
2022-03-24T06:46:05.000Z
2022-03-24T06:46:05.000Z
dataset_type = 'FlyingChairs' data_root = 'data/FlyingChairs_release' img_norm_cfg = dict(mean=[0., 0., 0.], std=[255., 255., 255.], to_rgb=False) global_transform = dict( translates=(0.05, 0.05), zoom=(1.0, 1.5), shear=(0.86, 1.16), rotate=(-10., 10.)) relative_transform = dict( translates=(0.00...
31.241758
78
0.631375
351
2,843
4.85755
0.2849
0.098534
0.029326
0.024633
0.554839
0.497947
0.44868
0.379472
0.338416
0.231085
0
0.046188
0.215617
2,843
90
79
31.588889
0.718386
0
0
0.289157
0
0
0.236018
0.063665
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4cd4596ad7f6e0187f91e645753c131d68a9a4a
845
py
Python
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
2
2020-05-03T17:02:44.000Z
2022-02-21T04:09:34.000Z
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
python/orthogonal_test.py
davxy/numeric
1e8b44a72e1d570433a5ba81ae0795a750ce5921
[ "Unlicense" ]
null
null
null
# Orthogonal linear system solver tests from math import sqrt import numpy as np from orthogonal import orthogonal ################################################################################ # 2x2 orthogonal matrix A = np.matrix('1 1;' '1 -1', float) A = A*1.0/sqrt(2.0) # Known terms vector b = ...
24.142857
80
0.498225
115
845
3.66087
0.313043
0.07601
0.064133
0.095012
0.72209
0.679335
0.546318
0.418052
0.418052
0.285036
0
0.045858
0.2
845
35
81
24.142857
0.576923
0.195266
0
0.222222
0
0
0.174168
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4cecc18d5f88370e565ff6b3803a9cfe92f4765
11,056
py
Python
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
1
2021-03-08T17:47:18.000Z
2021-03-08T17:47:18.000Z
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
null
null
null
src/autonlp/project.py
adbmd/autonlp
8f7b5559d88775850b6818a09f178dc3407b2ab8
[ "Apache-2.0" ]
null
null
null
import os import shutil from dataclasses import dataclass from datetime import datetime from typing import Dict, List, Optional from huggingface_hub import Repository from loguru import logger from prettytable import PrettyTable from .splits import TEST_SPLIT, TRAIN_SPLIT, VALID_SPLIT from .tasks import TASKS from .u...
38.256055
117
0.565213
1,361
11,056
4.43277
0.187362
0.039781
0.011934
0.017902
0.336151
0.311454
0.282778
0.216145
0.206365
0.154152
0
0.003864
0.297847
11,056
288
118
38.388889
0.766585
0.030391
0
0.222222
0
0.032922
0.284965
0.080135
0
0
0
0
0
1
0.037037
false
0
0.049383
0.016461
0.230453
0.016461
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4d089a89ed2ccdb81f62b6a9415dbcedcf723fa
25,485
py
Python
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
216
2020-08-01T03:18:37.000Z
2022-03-25T06:17:52.000Z
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
173
2020-08-05T09:24:15.000Z
2022-03-30T13:37:05.000Z
demonstrations/tutorial_kernels_module.py
jamesellis1999/qml
33c9d66712b36861dc098f9c789ba2c3ab897fdb
[ "Apache-2.0" ]
66
2020-08-01T05:02:45.000Z
2022-03-02T19:34:54.000Z
r"""Training and evaluating quantum kernels =========================================== .. meta:: :property="og:description": Kernels and alignment training with Pennylane. :property="og:image": https://pennylane.ai/qml/_images/QEK_thumbnail.png .. related:: tutorial_kernel_based_training Kernel-based tr...
40.645933
157
0.655994
3,571
25,485
4.607113
0.227667
0.021396
0.012764
0.01167
0.12266
0.093059
0.061634
0.04662
0.037564
0.019572
0
0.013809
0.175947
25,485
626
158
40.710863
0.769535
0.655052
0
0.138554
0
0
0.066004
0.006675
0
0
0
0
0
1
0.066265
false
0
0.03012
0.012048
0.150602
0.042169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4d1efc02f1792aaf622052d335ddc24c16d8ad6
5,465
py
Python
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
main.py
scottkaz/PyLoopover
8f11f559c09747400fe6bb520ab521dbafa90e97
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pygame import random import time ##VARIABLES TO CHANGE width = 500 height = 500 stats_height = 150 board_size = 5 window_name = "PyLoopover "+str(board_size)+"x"+str(board_size) scramble_turns = 50 t_round = 3 FPS = 30 ##DONT CHANGE THESE BOIS WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (3...
27.882653
85
0.665691
920
5,465
3.843478
0.184783
0.047511
0.033937
0.03733
0.369344
0.305995
0.277149
0.260747
0.244344
0.202489
0
0.028966
0.166148
5,465
195
86
28.025641
0.746983
0.067155
0
0.236686
0
0
0.086734
0.06367
0
0
0
0
0.005917
1
0.08284
false
0
0.017751
0
0.213018
0.023669
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4d42429c658c9fa5c1d797f95b772cf6d3bbc13
12,044
py
Python
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
null
null
null
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
8
2017-04-21T05:36:37.000Z
2017-04-27T15:55:33.000Z
csmpe/core_plugins/csm_install_operations/exr/package_lib.py
anushreejangid/csmpe-main
c62ecb3ce4e44b188ed480d06a6d9d21967c6a2a
[ "BSD-2-Clause" ]
null
null
null
# ============================================================================= # # Copyright (c) 2016, Cisco Systems # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source ...
42.86121
117
0.574643
1,780
12,044
3.802247
0.13764
0.027778
0.019947
0.031028
0.494976
0.39539
0.323286
0.259309
0.213505
0.176566
0
0.120247
0.28811
12,044
280
118
43.014286
0.669116
0.542843
0
0.238532
0
0.009174
0.092338
0.040472
0
0
0
0
0
1
0.12844
false
0
0.009174
0.036697
0.275229
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4d7101b172b777d4c47f40c60724b8fe87dbf67
4,374
py
Python
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
5
2021-12-06T15:57:24.000Z
2022-01-24T20:34:00.000Z
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
38
2021-12-09T13:16:46.000Z
2022-03-30T11:42:13.000Z
chirun/plastex/color/__init__.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
1
2022-01-17T17:41:35.000Z
2022-01-17T17:41:35.000Z
from plasTeX import Command, Environment def ProcessOptions(options, document): colors = {} document.userdata.setPath('packages/color/colors', colors) colors['red'] = latex2htmlcolor('1,0,0') colors['green'] = latex2htmlcolor('0,1,0') colors['blue'] = latex2htmlcolor('0,0,1') colors['cyan'] = ...
36.45
118
0.560814
509
4,374
4.819253
0.21611
0.130453
0.054219
0.063596
0.39788
0.304117
0.29311
0.29311
0.29311
0.29311
0
0.049672
0.268176
4,374
119
119
36.756303
0.716651
0.001829
0
0.297872
0
0
0.193903
0.033692
0
0
0
0
0
1
0.074468
false
0.010638
0.010638
0
0.276596
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4d8cf9487b5b92aa26fd31970eb23caa185f9d2
816
py
Python
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-11-03T01:27:16.000Z
2021-11-03T01:27:16.000Z
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
null
null
null
swm-master/swm-master/calc/mean_e_calc.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-06-24T15:58:32.000Z
2021-06-24T15:58:32.000Z
## PRODUCE MEAN CALCULATIONS AND EXPORT AS .NPY from __future__ import print_function path = '/home/mkloewer/python/swm/' import os; os.chdir(path) # change working directory import numpy as np from scipy import sparse import time as tictoc from netCDF4 import Dataset # OPTIONS runfolder = 15 print('Calculating subgri...
20.4
65
0.704657
125
816
4.528
0.6
0.053004
0
0
0
0
0
0
0
0
0
0.017291
0.14951
816
39
66
20.923077
0.798271
0.153186
0
0
0
0
0.247788
0.038348
0
0
0
0
0
1
0
false
0.04
0.24
0
0.24
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
d4db81ffa51e39a4b08cb2f618fbc4f85e8db0b8
3,442
py
Python
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
1
2021-03-18T08:01:32.000Z
2021-03-18T08:01:32.000Z
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
null
null
null
STANchap7.py
phineas-pta/Bayesian-Methods-for-Hackers-using-PyStan
d708faab0fdd43800e8726e2c6dd99452c8dcedb
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np, pandas as pd, arviz as az, prince, matplotlib.pyplot as plt, seaborn as sns from cmdstanpy import CmdStanModel #%% load data data = pd.read_csv("data/overfitting.csv", index_col = 'case_id') data.columns data.info() feature_names = data.columns.str.startswith("...
31.577982
109
0.70889
498
3,442
4.714859
0.38755
0.02385
0.025554
0.026831
0.02385
0
0
0
0
0
0
0.012803
0.160372
3,442
108
110
31.87037
0.799654
0.105752
0
0
0
0
0.273342
0.01793
0
0
0
0
0
1
0
false
0
0.026316
0
0.026316
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4dcaac9477532add98d53c114feaaa486ee4a47
4,206
py
Python
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
1
2018-03-31T12:15:07.000Z
2018-03-31T12:15:07.000Z
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
null
null
null
watcher.py
factabulous/matgrindr
6f5d6d20e34f9b13950d654cf70afdb2e46f5d1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import threading import os import time import mats import sys import requests import traceback import re from util import debug, error class MatsLoader(threading.Thread): """ Fire and forget loader for materials - will queue a 'mats' event or an 'error' event if the lo...
33.11811
195
0.551831
507
4,206
4.522682
0.329389
0.0471
0.026167
0.020933
0.297427
0.297427
0.251199
0.251199
0.191888
0.191888
0
0.015048
0.336424
4,206
126
196
33.380952
0.806521
0.186876
0
0.2625
0
0.0125
0.131718
0
0
0
0
0
0
1
0.1
false
0
0.125
0.0125
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4dccf62068146e1f5c5000f7700eb596a2140ec
1,706
py
Python
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
2
2019-11-07T09:27:59.000Z
2019-11-16T11:36:12.000Z
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
5
2021-03-31T19:15:38.000Z
2022-03-02T14:57:57.000Z
luoxia/pipelines.py
pighui/luoxia
24daa0f1595fd2b18a4b251acf77321ef98eb534
[ "MIT" ]
1
2019-11-12T12:59:22.000Z
2019-11-12T12:59:22.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os from scrapy import Request from scrapy.pipelines.images import ImagesPipeline from luoxia import settings class L...
32.807692
76
0.601407
208
1,706
4.865385
0.456731
0.077075
0.027668
0.043478
0.126482
0.126482
0.059289
0
0
0
0
0.00241
0.270223
1,706
52
77
32.807692
0.810442
0.141266
0
0.057143
0
0
0.081731
0
0
0
0
0
0
1
0.114286
false
0
0.114286
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4df00044c8b020894b3ff8a98bbdaaae75f9a17
6,949
py
Python
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
4
2020-09-26T01:25:36.000Z
2021-08-25T16:10:50.000Z
aws_sagemaker_studio/frameworks/tensorflow_mnist/mnist.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
7
2020-03-04T22:23:51.000Z
2021-07-13T14:05:46.000Z
# Copyright 2020 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://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
37.160428
94
0.689164
991
6,949
4.665994
0.283552
0.031142
0.048443
0.060554
0.293253
0.234429
0.218426
0.190311
0.156574
0.128893
0
0.031425
0.203195
6,949
186
95
37.360215
0.803684
0.361923
0
0.065934
0
0
0.059835
0
0
0
0
0
0
1
0.054945
false
0
0.065934
0
0.197802
0.010989
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e1891a34dd9a85739bf4476b3f8a83de7af2b1
6,002
py
Python
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
12
2020-09-25T08:52:59.000Z
2020-10-05T02:39:31.000Z
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
7
2021-12-13T04:28:48.000Z
2022-03-14T13:53:15.000Z
common/util/autoware_debug_tools/scripts/stop_reason2pose.py
taikitanaka3/AutowareArchitectureProposal.iv
0d47ea532118c98458516a8c83fbdab3d27c6231
[ "Apache-2.0" ]
9
2020-09-27T05:27:09.000Z
2020-10-08T03:14:25.000Z
#! /usr/bin/env python3 # Copyright 2020 Tier IV, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
35.72619
94
0.653615
774
6,002
4.724806
0.228682
0.075198
0.039103
0.04676
0.255674
0.232158
0.152858
0.091332
0.03883
0.03883
0
0.012745
0.267911
6,002
167
95
35.94012
0.819527
0.105465
0
0.111111
0
0
0.031758
0.024846
0
0
0
0
0
1
0.094017
false
0
0.094017
0.008547
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
d4e335bc88c686cd971644ea0114064bbbe14924
1,551
py
Python
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
US Flag.py
Code-Master1234/Turtle_Flags_File_Hub
d99f8bc05c4f2280f8c91cdda14005ef9c5d6236
[ "MIT" ]
null
null
null
import turtle as t def rectangle(horizontal, vertical, color): t.pendown() t.pensize(1) t.color(color) t.begin_fill() for counter in range(2): t.forward(horizontal) t.right(90) t.forward(vertical) t.right(90) t.end_fill() t.penup() def star(le...
19.884615
44
0.550613
218
1,551
3.899083
0.288991
0.075294
0.098824
0.14
0.348235
0.270588
0.176471
0.176471
0.176471
0.176471
0
0.089732
0.30303
1,551
77
45
20.142857
0.696577
0
0
0.560606
0
0
0.019674
0
0
0
0
0
0
1
0.030303
false
0
0.015152
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e4309129dbca39258000122d1486ad109432d7
1,107
py
Python
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
3
2020-01-20T05:12:52.000Z
2022-02-09T15:21:42.000Z
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
null
null
null
linked-list/delete_zero_sum_nodes.py
bryanlimy/technical-interview
f888a4fb2bc4d34dda6cd74b6e4215f46d5ce6d6
[ "MIT" ]
null
null
null
# Given a linked list, remove consecutive nodes that sums up to zero # https://www.careercup.com/question?id=5717797377146880 from util import * def remove_zero_sum(head): start = head new = None root = None while start: end = start.next total = start.value zero = False ...
26.357143
68
0.525745
153
1,107
3.673203
0.457516
0.071174
0.046263
0.060498
0.074733
0
0
0
0
0
0
0.089362
0.363144
1,107
41
69
27
0.707801
0.109304
0
0
0
0
0.010173
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.088235
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e708b09e82bdf3236441c1829a0dda6f660d73
2,383
py
Python
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2019-11-15T17:28:05.000Z
2019-11-15T17:28:05.000Z
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
2
2021-01-15T09:24:07.000Z
2021-01-15T09:30:10.000Z
src/azure-cli/azure/cli/command_modules/maps/custom.py
psignoret/azure-cli
1a4a043750315f9a7f2894b4287126089978b615
[ "MIT" ]
1
2019-11-25T19:33:05.000Z
2019-11-25T19:33:05.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.389831
107
0.669744
289
2,383
5.304498
0.377163
0.059361
0.066536
0.09002
0.174821
0.123288
0.099152
0.099152
0.099152
0
0
0.000517
0.188418
2,383
58
108
41.086207
0.792141
0.246748
0
0
0
0
0.170499
0
0
0
0
0
0
1
0.088235
false
0
0.117647
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e813b035bc0fbeece6fd5910d8e62ac5025f2b
5,558
py
Python
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
examples/wsdm2022/run_seqreco_B.py
Leavingseason/wsdm2022-seqrecsys
4659edb93a96300d7a52bb0e1b9c912e3fae2a76
[ "MIT" ]
null
null
null
import sys import os from tempfile import TemporaryDirectory import numpy as np import tensorflow.compat.v1 as tf tf.get_logger().setLevel('ERROR') # only show error messages from recommenders.utils.timer import Timer from recommenders.utils.constants import SEED from recommenders.models.deeprec.deeprec_utils import ...
37.302013
221
0.690896
803
5,558
4.579078
0.332503
0.039162
0.040794
0.053304
0.299429
0.276312
0.251292
0.208594
0.100626
0.045689
0
0.067206
0.199532
5,558
149
222
37.302013
0.759272
0.368658
0
0
0
0
0.12291
0.038428
0
0
0
0
0
1
0
false
0
0.164384
0
0.164384
0.09589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e8209a5a512c6f4d48304a062ee3d210b0266c
11,222
py
Python
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
ctypesgen/ctypedescs.py
fgrie/ctypesgen
bc1627648a1479cefd1a2c3c261dd0471358cfff
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ ctypesgen.ctypedescs contains classes to represent a C type. All of them classes are subclasses of CtypesType. Unlike in previous versions of ctypesgen, CtypesType and its subclasses are completely independent of the parser module. The most important method of CtypesType and its subclasses ...
28.848329
90
0.621012
1,400
11,222
4.753571
0.175714
0.008715
0.023441
0.015778
0.310744
0.212021
0.164538
0.154621
0.1429
0.1429
0
0.011639
0.257352
11,222
388
91
28.92268
0.786897
0.125379
0
0.279245
0
0
0.070947
0.002453
0
0
0
0
0
1
0.192453
false
0.018868
0.003774
0.05283
0.350943
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4e9e1912fd06e0dea7f2e62b354d4050bf65bf1
1,769
py
Python
app/volume/admin_process.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
app/volume/admin_process.py
cleve/varidb
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
6
2020-11-05T02:18:15.000Z
2022-03-12T00:50:09.000Z
app/volume/admin_process.py
cleve/pulzar
fc1b10aa4d708cee1c83909f10773948cee0c539
[ "Apache-2.0" ]
null
null
null
from pulzarutils.utils import Utils from pulzarutils.utils import Constants from pulzarutils.messenger import Messenger from pulzarcore.core_db import DB class AdminProcess: """Handle admin operations from manage """ def __init__(self, logger): self.TAG = self.__class__.__name__ self.logg...
38.456522
84
0.611645
203
1,769
5.029557
0.389163
0.127326
0.058766
0.061704
0.246817
0.054848
0
0
0
0
0
0.003247
0.303561
1,769
45
85
39.311111
0.825487
0.05766
0
0.058824
0
0
0.048309
0.019324
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4ea75a1746392a1bad32c927e9dd06c16722c29
2,767
py
Python
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
tests/ssg_test_suite/profile.py
fduthilleul/scap-security-guide
f9b67869600f6c20dcb0ba83801578cec1a51bba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 from __future__ import print_function import atexit import logging import sys import ssg_test_suite.oscap import ssg_test_suite.virt from ssg_test_suite.rule import get_viable_profiles from ssg_test_suite.virt import SnapshotStack logging.getLogger(__name__).addHandler(logging.NullHandler()) ...
38.971831
76
0.553668
272
2,767
5.411765
0.422794
0.047554
0.081522
0.054348
0.205163
0.181386
0.181386
0.149457
0.149457
0.120924
0
0.00236
0.387423
2,767
70
77
39.528571
0.866077
0.155403
0
0.313725
0
0
0.037278
0
0
0
0
0
0
1
0.019608
false
0
0.156863
0
0.176471
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4eb283ef9b63b6cf71ae47aefac07d2d47fad48
4,218
py
Python
lib/wtforms/ext/appengine/fields.py
solidaritreebiz/Solidaritree
15cc2e10e4cec56eb4fe218166d4157fcce9bf8d
[ "MIT" ]
43
2015-01-02T11:59:27.000Z
2021-06-03T18:47:09.000Z
wtforms/ext/appengine/fields.py
skorokithakis/landing-page
d800decb3a36519e2dd86826f660f5fa4f62cf5c
[ "MIT" ]
1
2018-07-17T11:46:14.000Z
2018-07-17T11:46:14.000Z
wtforms/ext/appengine/fields.py
skorokithakis/landing-page
d800decb3a36519e2dd86826f660f5fa4f62cf5c
[ "MIT" ]
6
2018-07-14T04:58:02.000Z
2018-08-06T18:02:27.000Z
import decimal import operator import warnings from wtforms import fields, widgets class ReferencePropertyField(fields.SelectFieldBase): """ A field for ``db.ReferenceProperty``. The list items are rendered in a select. :param reference_class: A db.Model class which will be used to generate t...
35.745763
116
0.598151
525
4,218
4.657143
0.272381
0.045808
0.02454
0.014724
0.16319
0.13865
0.130061
0.091616
0.025358
0.025358
0
0.00242
0.314367
4,218
117
117
36.051282
0.843015
0.210526
0
0.220779
0
0
0.046986
0
0
0
0
0
0
1
0.116883
false
0
0.051948
0
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
d4eb7fe555f324704c58058f0e711c3b4fd6b7fe
3,947
py
Python
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtrainsimulator.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
import mtrain import numpy as np import pandas as pd import random def simulate_games(num_players=4, domino_size=12, num_games=250, collect_data=True, debug=False, players=["Random", "Greedy", "Probability", "Neural"], file_name="PlayData/data4_12_250"): """ Runs the m...
42.902174
111
0.64682
520
3,947
4.730769
0.307692
0.056911
0.036992
0.030894
0.134553
0.105285
0.02439
0.02439
0
0
0
0.009037
0.271092
3,947
92
112
42.902174
0.84602
0.335191
0
0.169811
0
0
0.092476
0.008229
0
0
0
0
0
1
0.018868
false
0
0.075472
0
0.113208
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4ec2af4e9b7cc307999482d71c793953e387022
3,336
py
Python
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
licenseplates/dataset.py
VaranRohila/apn
dbb5b814233accbbb49b9bfe12b7162402e3b267
[ "MIT" ]
null
null
null
############################################################################## # # Below code is inspired on # https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/datasets/pascal_voc.py # -------------------------------------------------------- # Detectron2 # Licensed under the Apache 2.0 license...
32.705882
100
0.579436
364
3,336
5.162088
0.428571
0.029271
0.038318
0.027142
0.022352
0
0
0
0
0
0
0.010317
0.244604
3,336
101
101
33.029703
0.735317
0.147482
0
0
0
0
0.10293
0.027106
0
0
0.001465
0
0
1
0.03125
false
0
0.15625
0
0.203125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4ece3f334aeba88cd76ec065663f9e04ac41d64
354
py
Python
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
docs/examples/pytorch/resnet50/scripts/test_read_speed.py
RogerChern/DALI
be143c3bb35458549e273608f1683a99ae41968e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import glob import time import random filelist = glob.glob('/mnt/lustre/chenyuntao1/datasets/imagenet/train/*/*') random.shuffle(filelist) begin = time.time() for i, f in enumerate(filelist): if i == 10000: break with open(f, "rb") as fin: result = fin.read() end = time.time() print("%.1f im...
20.823529
75
0.641243
50
354
4.54
0.66
0.070485
0
0
0
0
0
0
0
0
0
0.042105
0.194915
354
17
76
20.823529
0.754386
0
0
0
0
0
0.185915
0.143662
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4eced841f40608be5ce0f25f32b14e3f8c5be34
12,864
py
Python
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
1
2017-11-07T12:19:44.000Z
2017-11-07T12:19:44.000Z
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
null
null
null
ocellaris/solver_parts/boundary_conditions/dirichlet.py
TormodLandet/Ocellaris
6b4b2515fb881b1ed8d8fd8d8c23a8e1990ada58
[ "Apache-2.0" ]
2
2018-05-02T17:17:01.000Z
2019-03-11T13:09:40.000Z
# Copyright (C) 2015-2019 Tormod Landet # SPDX-License-Identifier: Apache-2.0 import dolfin from . import register_boundary_condition, BoundaryConditionCreator from ocellaris.utils import ( CodedExpression, OcellarisCppExpression, OcellarisError, verify_field_variable_definition, ) class OcellarisDir...
38.981818
108
0.615127
1,464
12,864
5.232924
0.148907
0.049341
0.060305
0.014097
0.598747
0.553975
0.516121
0.475134
0.464822
0.452813
0
0.003504
0.290112
12,864
329
109
39.100304
0.835414
0.143968
0
0.35023
0
0
0.091354
0.001976
0
0
0
0.00304
0.032258
1
0.073733
false
0
0.013825
0.004608
0.156682
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4ee6e97a2bc58c8bc3ccf8cb1ebf6364e70cd9d
3,906
py
Python
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/chronos/test/bigdl/chronos/forecaster/tf/test_seq2seq_keras_forecaster.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
38.294118
84
0.615463
491
3,906
4.627291
0.325866
0.045775
0.022007
0.02993
0.305018
0.263644
0.240317
0.180458
0.128521
0.128521
0
0.0279
0.302611
3,906
101
85
38.673267
0.806167
0.142089
0
0.253521
0
0
0.017991
0
0
0
0
0
0.084507
1
0.098592
false
0.014085
0.112676
0
0.253521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4eeb6ee82889a7b906d047189dd7b8bb9659a33
1,922
py
Python
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
7
2021-01-11T15:39:56.000Z
2021-08-21T18:44:04.000Z
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
1
2021-04-17T13:07:41.000Z
2021-04-21T16:21:35.000Z
examples/SubOrbitalFlight.py
nicolaikd/sl-ksp
cc1e239570e10428d11a41a26b33947b54f7f0ec
[ "MIT" ]
2
2021-03-17T16:36:23.000Z
2021-05-05T14:40:59.000Z
import time import krpc conn = krpc.connect(name='Sub-orbital flight') vessel = conn.space_center.active_vessel vessel.auto_pilot.target_pitch_and_heading(90, 90) vessel.auto_pilot.engage() vessel.control.throttle = 1 time.sleep(1) print('Launch!') vessel.control.activate_next_stage() fuel_amount = conn.get_call(ve...
30.03125
77
0.774714
270
1,922
5.32963
0.277778
0.09451
0.150104
0.069493
0.612231
0.52328
0.417651
0.314802
0.314802
0.314802
0
0.018933
0.093132
1,922
63
78
30.507937
0.806655
0
0
0.442308
0
0
0.084287
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4efd4c2ab810bf4c725de159e2f410b24aea731
18,031
py
Python
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
ramp-database/ramp_database/tools/leaderboard.py
kegl/ramp-board
6373bf02efc096e02b26320e4f11edd00f9e5752
[ "BSD-3-Clause" ]
null
null
null
from distutils.version import LooseVersion from itertools import product import numpy as np import pandas as pd from ..model.event import Event from ..model.event import EventTeam from ..model.submission import Submission from ..model.team import Team from .team import get_event_team_by_name from .submission import...
39.455142
79
0.619378
2,147
18,031
4.984164
0.117373
0.032801
0.019624
0.026726
0.560508
0.469489
0.412765
0.366601
0.3552
0.34165
0
0.001917
0.276801
18,031
456
80
39.541667
0.818712
0.217071
0
0.236934
0
0
0.111516
0.003134
0
0
0
0
0
1
0.020906
false
0
0.045296
0
0.083624
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f07209eebdfab152cf385342225e58c7210495
623
py
Python
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
projects/boring_stuff/03_functions/ZigZag.py
SavantLogics/Visual_Studio_Python_Scripts-master
9e3c5f8a8f685f9ae51045af9260ccc28f89d72f
[ "MIT" ]
null
null
null
#Automate the Boring Stuff with Python import time, sys indent = 0 # How many spaces to indent indent_Increasing = True # Whether the indentation is increasing or not try: while True: # The main program loop print(' ' * indent, end='') print('********') time.sleep(0.1) # Pause for 1/10th o...
27.086957
71
0.569823
74
623
4.743243
0.594595
0.182336
0.11396
0.08547
0.119658
0
0
0
0
0
0
0.026764
0.340289
623
23
72
27.086957
0.827251
0.255217
0
0.111111
0
0
0.019565
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f145e4f5e9df82c3ed3f3cc3dee6abaad4fc6c
838
py
Python
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
setup.py
sequentialchaos/i3-workspace-swap
86646066b9f971c1ff130a642a914ab2db8f9ae6
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="i3-workspace-swap", description='A python utility swap the content of two workplaces in i3wm', long_description=long_description, long_description_content_type="text/markdown", version="1...
27.032258
78
0.658711
98
838
5.530612
0.693878
0.110701
0.083026
0.110701
0
0
0
0
0
0
0
0.01632
0.195704
838
30
79
27.933333
0.787834
0
0
0
0
0
0.434368
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f450e40179e22e5b7878cbc391794da9f23b06
14,026
py
Python
Cogs/Actions.py
MrAngelDo6pa/MedBotS
89e19d831507e20d0898114502967b2ad8ecf957
[ "MIT" ]
2
2021-09-28T10:40:10.000Z
2021-11-07T14:49:07.000Z
Cogs/Actions.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
Cogs/Actions.py
ddoskid/lol12
35c097bbebeca3043a939b902b07474473344a3c
[ "MIT" ]
null
null
null
import asyncio import discord import random import datetime from discord.ext import commands from Cogs import DisplayName from Cogs import Nullify def setup(bot): # Add the bot bot.add_cog(Actions(bot)) class Actions(commands.Cog): ## class that handles storing and computing action messages class actionable...
51.566176
138
0.654855
2,115
14,026
4.336643
0.277069
0.012211
0.009594
0.008395
0.222634
0.159834
0.15133
0.125818
0.115351
0.108373
0
0.011069
0.220662
14,026
271
139
51.756458
0.827921
0.063454
0
0.107296
0
0.025751
0.527412
0.006169
0
0
0
0
0
1
0.012876
false
0.025751
0.030043
0
0.107296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f46e1bb0a2bc679bb20e6fc52d23194cb01643
7,830
py
Python
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
marltoolbox/examples/tune_function_api/lola_pg_official.py
tobiasbaumann1/amd
cb6190be92dea54db04ef9202d381b96f6f6218b
[ "MIT" ]
null
null
null
########## # Additional dependencies are needed: # Follow the LOLA installation described in the tune_class_api/lola_pg_official.py file ########## import os import ray from ray import tune import marltoolbox.algos.lola.envs as lola_envs import marltoolbox.algos.lola_dice.envs as lola_dice_envs from marltoolbox.algos...
37.826087
116
0.577395
937
7,830
4.493063
0.168623
0.12114
0.045606
0.04323
0.471734
0.4
0.354632
0.346556
0.313777
0.295249
0
0.013686
0.318774
7,830
206
117
38.009709
0.775591
0.038314
0
0.30303
0
0
0.153887
0.006134
0
0
0
0
0.018182
1
0.024242
false
0
0.048485
0
0.084848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f5c78a68ce3ab44360536293de688747eefa47
1,327
py
Python
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
17
2020-08-28T12:53:56.000Z
2020-11-10T01:04:46.000Z
moto/dynamodbstreams/responses.py
jonnangle/moto-1
40b4e299abb732aad7f56cc0f680c0a272a46594
[ "Apache-2.0" ]
2
2017-03-02T05:59:52.000Z
2020-09-03T13:25:44.000Z
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import dynamodbstreams_backends from six import string_types class DynamoDBStreamsHandler(BaseResponse): @property def backend(self): return dynamodbstreams_backends[self.region] def describe_strea...
32.365854
75
0.699322
155
1,327
5.670968
0.367742
0.063709
0.109215
0.047782
0.085324
0.063709
0
0
0
0
0
0.00388
0.22306
1,327
40
76
33.175
0.848691
0.048983
0
0.066667
0
0
0.065873
0
0
0
0
0
0
1
0.166667
false
0
0.133333
0.033333
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
d4f6462a075ffe065a5c5d813a1e145ed305cf7d
962
py
Python
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
1
2021-04-20T08:14:51.000Z
2021-04-20T08:14:51.000Z
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
55
2020-11-16T09:55:29.000Z
2022-03-28T13:18:15.000Z
tools/mo/openvino/tools/mo/front/mxnet/zeros_ext.py
ytorzuk-altran/openvino
68d460a3bb578a738ba0e4d0e1f2e321afa73ab0
[ "Apache-2.0" ]
1
2021-02-15T01:13:57.000Z
2021-02-15T01:13:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.front.mxnet.extractors.utils import get_mxnet_layer_attrs from openvino.tools.mo.ops.const import Const class ZerosFrontExtractor...
28.294118
80
0.637214
120
962
4.975
0.558333
0.067002
0.085427
0.095477
0.080402
0
0
0
0
0
0
0.017021
0.267152
962
33
81
29.151515
0.829787
0.115385
0
0
0
0
0.03778
0
0
0
0
0
0
1
0.043478
false
0
0.173913
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f6ca3a52378c092fed2c8021d1ffb5c3d7441c
882
py
Python
SimpleSimulator/samuelator.py
Anindya-Prithvi/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
3
2021-09-11T05:58:46.000Z
2021-12-21T14:03:20.000Z
SimpleSimulator/samuelator.py
sc0rp10n-py/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
null
null
null
SimpleSimulator/samuelator.py
sc0rp10n-py/CO_M21_Assignment
524bd2b866dd58a6358354cda65e2136ecd46e50
[ "Apache-2.0" ]
3
2021-09-05T12:55:38.000Z
2022-03-18T02:51:29.000Z
import sys import warnings import matplotlib.pyplot as plt from parsets import IMACC, IMG, PROGC, REGFLPC, ExecE, plot warnings.filterwarnings("ignore") MEM = IMACC(sys.stdin.read()) # Load memory from stdin PC = PROGC(0) # Start from the first instruction RF = REGFLPC() # initialize register and flags EE = ExecE...
22.615385
77
0.672336
134
882
4.373134
0.492537
0.03413
0
0
0
0
0
0
0
0
0
0.012968
0.213152
882
38
78
23.210526
0.831412
0.222222
0
0
0
0
0.01037
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f722d8fa5429ebec246908bcfdfc1e45bff80b
5,884
py
Python
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
utils/converters.py
LiReNa00/JDBot
c85b31e272d5394ba5debc26b8b5357fb9d3d844
[ "MIT" ]
null
null
null
import discord import re import emoji import contextlib import typing import datetime from discord.ext import commands from discord.http import Route class BetterMemberConverter(commands.Converter): async def convert(self, ctx, argument): try: user = await commands.MemberConverter().convert(ct...
31.132275
127
0.593644
683
5,884
5.080527
0.29429
0.0317
0.025937
0.036023
0.274352
0.243228
0.231412
0.208069
0.178674
0.10951
0
0.023926
0.303875
5,884
188
128
31.297872
0.823242
0.114208
0
0.262295
0
0
0.045472
0.006218
0
0
0.005441
0
0
1
0.040984
false
0.008197
0.065574
0
0.262295
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4f91839d0ba937bffd97ff3a607f1dad1fc55ad
1,690
py
Python
distanceProfile.py
ZiyaoWei/pyMatrixProfile
1c88e1558e2bc5210d328d253572f5ff7fab1a5e
[ "MIT" ]
29
2017-08-13T04:24:16.000Z
2021-12-24T07:51:08.000Z
Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py
rakesh-lagare/Thesis_Work
733285eae31a3fd8b613ec30d9e2ab9befd57614
[ "Apache-2.0" ]
2
2018-02-12T11:58:53.000Z
2018-08-20T19:51:47.000Z
Matrix Profile/Implementation/pyMatrixProfile-master/distanceProfile.py
rakesh-lagare/Thesis_Work
733285eae31a3fd8b613ec30d9e2ab9befd57614
[ "Apache-2.0" ]
15
2017-08-19T23:16:45.000Z
2019-09-21T04:53:43.000Z
import numpy as np from util import * def naiveDistanceProfile(tsA, idx, m, tsB = None): """Return the distance profile of query against ts. Use the naive all pairs comparison algorithm. >>> np.round(naiveDistanceProfile(np.array([0.0, 1.0, -1.0, 0.0]), 0, 4, np.array([-1, 1, 0, 0, -1, 1])), 3) array([[ 2...
34.489796
112
0.56213
227
1,690
4.14978
0.277533
0.029724
0.019108
0.021231
0.602972
0.573248
0.573248
0.573248
0.573248
0.573248
0
0.054694
0.275148
1,690
48
113
35.208333
0.714286
0.264497
0
0.645161
0
0
0.006683
0
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4fae683109b51c37a205d6ed228be7bbb86f029
7,868
py
Python
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
1
2022-03-29T21:57:31.000Z
2022-03-29T21:57:31.000Z
# encoding: UTF-8 from builtins import str import psutil # import sys # PyQt 4/5 compatibility try: from PyQt4.QtGui import QMainWindow, QDialog, QDockWidget, QAction, QHeaderView, QMessageBox, QLabel, QVBoxLayout from PyQt4 import QtCore except ImportError: from PyQt5.QtWidgets import QMainWindow, QDial...
35.441441
121
0.521734
596
7,868
6.848993
0.360738
0.017638
0.033317
0.017148
0.070554
0.041646
0.041646
0.041646
0.041646
0.041646
0
0.003401
0.252669
7,868
221
122
35.60181
0.690816
0.159507
0
0.09375
0
0
0.025738
0
0
0
0
0
0
1
0.125
false
0
0.070313
0
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4fb4e3677b230700c8377c0c0d538eea2ac4e41
9,431
py
Python
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
1
2021-06-16T00:36:22.000Z
2021-06-16T00:36:22.000Z
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import requests import json import re from flask import Flask, request, abort import mysql.connector as mariadb from mysql.connector import Error from linebot import ( LineBotApi, WebhookHandler ) from linebot.exceptions import ( InvalidSignatureError ) from l...
35.190299
214
0.626021
1,173
9,431
4.846547
0.208014
0.035884
0.019349
0.040457
0.480739
0.441337
0.358487
0.321196
0.299384
0.281442
0
0.015811
0.24218
9,431
267
215
35.322097
0.779208
0.054183
0
0.364055
0
0.018433
0.199887
0.019584
0
0
0
0
0
1
0.059908
false
0.023041
0.041475
0.004608
0.152074
0.073733
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4fd04698f7477aacd1d458ba68e94970c4579ef
1,143
py
Python
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
21
2016-11-03T12:30:50.000Z
2022-03-24T06:54:14.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
1
2019-04-02T02:01:27.000Z
2019-04-07T21:07:10.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
12
2016-11-03T12:30:57.000Z
2021-09-14T23:08:23.000Z
# coding=utf-8 from sfc_models.objects import * from sfc_models.examples.Quick2DPlot import Quick2DPlot register_standard_logs('output', __file__) mod = Model() country = Country(mod, 'CO') Household(country, 'HH') ConsolidatedGovernment(country, 'GOV') FixedMarginBusiness(country, 'BUS', profit_margin=.025) Market(c...
34.636364
113
0.727909
161
1,143
4.956522
0.515528
0.080201
0.032581
0.035088
0.065163
0
0
0
0
0
0
0.028293
0.103237
1,143
32
114
35.71875
0.750244
0.052493
0
0
0
0
0.247222
0.086111
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4fe0f781e9f3139abc2757c5c86104cc2181049
4,135
py
Python
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
from importlib import import_module from django.conf import settings from django.core.signals import setting_changed SOCIALACCOUNT_MODEL = getattr(settings, "REST_AUTH_SOCIALACCOUNT_MODEL", "auth_framework.SocialAccount") DEFAULTS = { 'UNIQUE_EMAIL': True, 'RESET_PASSWORD_BY': 'pin', # 'url'| 'pin' 'SER...
33.08
117
0.641112
450
4,135
5.628889
0.322222
0.071062
0.063166
0.015792
0.044216
0.022108
0
0
0
0
0
0.000657
0.264087
4,135
124
118
33.346774
0.831745
0.095768
0
0.042553
0
0
0.181965
0.092059
0
0
0
0
0.010638
1
0.085106
false
0.021277
0.095745
0
0.265957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0099fd02ee40c6a15038fa8158d18b025dd23d
3,218
py
Python
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
1
2019-12-19T13:12:53.000Z
2019-12-19T13:12:53.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
9
2020-02-24T20:14:53.000Z
2021-04-30T21:51:04.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
null
null
null
""" Tests related to :class:`.SqliteWrapper` / :class:`.ExampleWrapper` """ # from unittest import TestCase from tests.base import * class TestSQLiteWrapper(PrivexDBTestBase): def test_tables_created(self): w = self.wrp self.assertEqual(w.db, ':memory:') tables = w.list_tables() ...
31.242718
97
0.579863
402
3,218
4.4801
0.164179
0.183232
0.044975
0.059967
0.576346
0.445308
0.445308
0.445308
0.401999
0.401999
0
0.009362
0.269733
3,218
102
98
31.54902
0.757021
0.030454
0
0.512821
0
0
0.115681
0
0
0
0
0
0.371795
1
0.115385
false
0
0.012821
0
0.141026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be00d24937df6595d3c59f1ae767515161b8f7ef
5,320
py
Python
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Strumpack(CMakePackage, CudaPackage): """STRUMPACK -- STRUctured Matrix PACKage - provides...
42.56
95
0.638346
607
5,320
5.47117
0.329489
0.03523
0.02168
0.042156
0.112014
0.019874
0
0
0
0
0
0.074003
0.217669
5,320
124
96
42.903226
0.723931
0.141541
0
0.086957
0
0.01087
0.422762
0.171934
0
0
0
0.008065
0
1
0.021739
false
0
0.01087
0.01087
0.108696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be011eb0f4bc43a928140f63592325792f0414b5
6,318
py
Python
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
from typing import Any, Text, Dict, List, Union from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction from rasa_sdk.events import UserUtteranceReverted, UserUttered, FollowupAction # from rasa_core.events import (UserUtteranceReverted, UserUttered...
37.832335
181
0.597341
658
6,318
5.600304
0.264438
0.042334
0.059701
0.027137
0.461058
0.395387
0.353596
0.290638
0.252374
0.252374
0
0.003933
0.275562
6,318
166
182
38.060241
0.80118
0.113485
0
0.386364
0
0.015152
0.193933
0.01914
0
0
0
0
0
1
0.060606
false
0
0.113636
0.007576
0.287879
0.007576
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be01e27689f95fbc7033b6a5da2ab015674dada0
2,909
py
Python
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
38.786667
102
0.625645
309
2,909
5.757282
0.391586
0.062957
0.055087
0.060708
0.023609
0
0
0
0
0
0
0.000429
0.198006
2,909
74
103
39.310811
0.762109
0.544517
0
0
0
0
0.334451
0.100587
0
0
0
0
0
1
0.04
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be045e37a15278ad4b76fd0b0f607b024e9f6bee
925
py
Python
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
2
2021-06-28T01:52:31.000Z
2021-06-28T02:21:18.000Z
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
import urllib.request import xml.etree.ElementTree class RSS10Parser: def __init__(self, url: str) -> None: self.url = url def getlist(self) -> list[dict[str, str]]: ENTRY = r"{http://www.w3.org/2005/Atom}" MEDIA = r"{http://search.yahoo.com/mrss/}" YOUTUBE = r"{http://www.youtube.com/xml/schemas/...
37
129
0.655135
122
925
4.860656
0.540984
0.033727
0.05059
0.05059
0
0
0
0
0
0
0
0.020806
0.168649
925
25
129
37
0.750325
0
0
0
0
0
0.307775
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be04c82cd5f62929d01752841a8ec17a1254d468
291
py
Python
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importar a classe da língua inglesa (English) e criar um objeto nlp from ____ import ____ nlp = ____ # Processar o texto doc = ____("I like tree kangaroos and narwhals.") # Selecionar o primeiro token first_token = doc[____] # Imprimir o texto do primeito token print(first_token.____)
22.384615
69
0.75945
41
291
4.756098
0.780488
0.061538
0
0
0
0
0
0
0
0
0
0
0.175258
291
12
70
24.25
0.8125
0.508591
0
0
0
0
0.253623
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be04f5e587c1b673bb12feefbad95d55e8558e6e
3,946
py
Python
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from tests.integration.create_token import create_token from tests.integration.integration_test_case import IntegrationTestCase class TestHappyPath(IntegrationTestCase): def test_happy_path_203(self): self.happy_path('0203', '1') def test_happy_path_205(self): self.happy_path('0205', '1') ...
40.265306
141
0.639635
469
3,946
5.247335
0.255864
0.103616
0.134092
0.071109
0.466477
0.4551
0.42503
0.399025
0.399025
0.35514
0
0.023139
0.244298
3,946
97
142
40.680412
0.802146
0.084389
0
0.241935
0
0
0.251599
0.04476
0
0
0
0
0.387097
1
0.048387
false
0
0.032258
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0508937eb9d9d5130de65137f4cd2a7335c162
70,784
py
Python
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-25T01:33:40.000Z
2022-03-25T01:33:40.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-23T19:49:13.000Z
2022-03-23T19:49:13.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
erichan1/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. 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/...
42.461908
164
0.656575
8,641
70,784
5.12892
0.094318
0.058214
0.0132
0.02112
0.520206
0.459555
0.415194
0.393985
0.36833
0.353167
0
0.008215
0.25024
70,784
1,666
165
42.487395
0.826873
0.146333
0
0.418089
0
0.020478
0.15486
0.01481
0
0
0
0
0.003413
1
0.06058
false
0.000853
0.010239
0.00256
0.127986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be071e34802c8618edb66a1241ddd2e7d443b843
3,316
py
Python
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
42.512821
91
0.606454
416
3,316
4.769231
0.423077
0.068044
0.128528
0.027218
0
0
0
0
0
0
0
0.015751
0.253317
3,316
77
92
43.064935
0.785541
0.205971
0
0.040816
0
0
0.246538
0
0
0
0
0
0
1
0.040816
false
0
0.081633
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be09ed482ae6fd03e6f106d0795f2a118eb2425c
2,332
py
Python
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
import uuid from typing import List, Dict, Any import unittest from selfhost_client import SelfHostClient, DatasetType class TestIntegrationDatasetsClient(unittest.TestCase): """ Run these tests individually because Self-Host will return HTTP 429 Too Many Requests otherwise. """ @classmethod de...
36.4375
100
0.653945
260
2,332
5.673077
0.311538
0.094915
0.097627
0.059661
0.226441
0.178983
0.178983
0.135593
0.135593
0.135593
0
0.01
0.22813
2,332
63
101
37.015873
0.809444
0.066038
0
0.083333
0
0
0.099445
0.027752
0
0
0
0
0.145833
1
0.145833
false
0.020833
0.083333
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
be0a74b4d28b5ee5afbbd8993134c1568bbdff10
6,516
py
Python
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
from itertools import product from unittest.mock import patch import pytest import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal from sm.engine.annotation.fdr import FDR, run_fdr_ranking from sm.engine.formula_parser import format_modifiers FDR_CONFIG = {'decoy_sample_size': 2} ...
32.58
121
0.558778
876
6,516
3.921233
0.173516
0.044541
0.048035
0.041921
0.554294
0.512955
0.483261
0.447162
0.395924
0.350218
0
0.045529
0.255064
6,516
199
122
32.743719
0.662134
0.035451
0
0.372781
0
0
0.087711
0.010825
0
0
0
0
0.076923
1
0.035503
false
0
0.047337
0
0.08284
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0c9d39fc49b73642a31f8fb89de4fff31f8d63
4,576
py
Python
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
1
2021-11-01T14:35:32.000Z
2021-11-01T14:35:32.000Z
import math import numpy as np import pandas as pd def fixed_time_horizon(df, column='close', lookback=20): """ Fixed-time Horizon As it relates to finance, virtually all ML papers label observations using the fixed-time horizon method. Fixed-time horizon is presented as one of the main procedures to ...
37.508197
124
0.647072
671
4,576
4.375559
0.342772
0.040872
0.027248
0.024523
0.302793
0.272139
0.257153
0.257153
0.219687
0.219687
0
0.035524
0.21875
4,576
122
125
37.508197
0.785734
0.520542
0
0.090909
0
0
0.009293
0
0
0
0
0
0
1
0.113636
false
0
0.068182
0.045455
0.295455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0d1242d33adfcfc290ba70e3637aa993c895e3
4,164
py
Python
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import import hashlib import logging import os from django.utils.encoding import smart_str from common.conf.settings import TEMPORARY_DIRECTORY from common.utils import fs_cleanup from .exceptions import OfficeConversionError, UnknownFileFormat from .literals import (DEFAULT_PAGE_NUM...
32.53125
180
0.68828
435
4,164
6.321839
0.264368
0.087273
0.024727
0.033455
0.230182
0.216727
0.193091
0.14
0.122909
0.047273
0
0.003105
0.226465
4,164
127
181
32.787402
0.850667
0.008886
0
0.221053
0
0
0.062788
0.005818
0
0
0
0
0
1
0.063158
false
0.010526
0.115789
0.010526
0.252632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0d8286d98d561dd73b8ad4757e80b16c93f068
2,798
py
Python
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import utils def plot_data(x_mat, y, db_x, db_y): plt.figure() plt.title('Data') admitted = (y == 1).flatten() rejected = (y == 0).flatten() # plot decision boundary plt.plot(db_x, db_y) # plot admitted...
32.534884
105
0.605075
439
2,798
3.71754
0.316629
0.029412
0.016544
0.014706
0.057598
0
0
0
0
0
0
0.036139
0.248392
2,798
85
106
32.917647
0.739895
0.241601
0
0
0
0
0.130887
0
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0d8c6e88406117103733f22d2fc8dd5f14eae8
30,231
py
Python
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
4,119
2017-11-23T18:10:37.000Z
2022-03-31T05:31:27.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
1,838
2017-11-24T11:19:25.000Z
2022-03-31T09:08:18.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
691
2017-11-24T10:57:33.000Z
2022-03-29T02:19:44.000Z
import functools from collections import OrderedDict from typing import Any, Callable, Dict, List, Mapping, Sequence, Tuple, Union, cast import torch from ignite.engine import Engine, EventEnum, Events from ignite.handlers.timing import Timer class BasicTimeProfiler: """ BasicTimeProfiler can be used to pro...
38.412961
119
0.582978
3,433
30,231
4.868337
0.113895
0.063005
0.057979
0.042123
0.574882
0.496919
0.41369
0.355651
0.322384
0.29486
0
0.024634
0.293672
30,231
786
120
38.461832
0.758067
0.240349
0
0.235808
0
0.002183
0.088262
0.023794
0
0
0
0
0
1
0.091703
false
0
0.021834
0.004367
0.148472
0.008734
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be0e7ba87c886d267ec11352e01c184c5af3e8dc
9,671
py
Python
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
""" Bellman Ford Arbitrage implementation over websocket API. """ from __future__ import annotations from collections import namedtuple from datetime import datetime from decimal import Decimal from math import log import pandas as pd import numpy as np import asyncio import typing from aiokraken.model.assetpair imp...
39.798354
156
0.58722
1,228
9,671
4.522801
0.276873
0.012964
0.006482
0.005041
0.128196
0.102089
0.052035
0.022866
0.022866
0.022866
0
0.008208
0.307104
9,671
242
157
39.96281
0.820624
0.294489
0
0.046154
0
0
0.024484
0
0
0
0
0.004132
0.015385
1
0.061538
false
0
0.115385
0.015385
0.276923
0.015385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be139101ad7d93480666b4065956e230585c96d9
1,180
py
Python
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
7
2019-10-04T07:27:41.000Z
2021-06-07T04:39:18.000Z
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
64
2019-10-07T12:40:56.000Z
2022-02-17T18:44:37.000Z
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
16
2019-10-04T08:48:12.000Z
2021-06-11T01:22:56.000Z
import sys from fetchcode.vcs.pip._internal.cli.main import main from fetchcode.vcs.pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import Optional, List def _wrapper(args=None): # type: (Optional[List[str]]) -> int """Central wrapper for all old entrypoints. ...
36.875
79
0.710169
175
1,180
4.748571
0.645714
0.031288
0.038508
0.045728
0.064982
0
0
0
0
0
0
0.004353
0.221186
1,180
31
80
38.064516
0.899891
0.424576
0
0
0
0
0.448438
0
0
0
0
0
0
1
0.066667
false
0
0.266667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be145918e072dc9949c9e4a6667701e412064948
7,896
py
Python
Support/Make_Documentation.py
bvbohnen/x4-projects
2c9db75a720ddb52ddb9e4160c330d7bb1986aa3
[ "MIT" ]
24
2020-04-11T18:43:01.000Z
2022-02-23T11:02:02.000Z
Support/Make_Documentation.py
abouquet/x4-projects
27ba6d2faaab95cfb9114bccb41fadbfe56443b7
[ "MIT" ]
10
2020-04-11T07:50:33.000Z
2022-03-31T05:01:35.000Z
Support/Make_Documentation.py
abouquet/x4-projects
27ba6d2faaab95cfb9114bccb41fadbfe56443b7
[ "MIT" ]
8
2020-04-24T05:21:55.000Z
2022-03-26T03:02:13.000Z
''' Support for generating documentation readmes for the extensions. Extracts from decorated lua block comments and xml comments. ''' from pathlib import Path from lxml import etree import sys from itertools import chain project_dir = Path(__file__).resolve().parents[1] # Set up an import from the customizer for som...
31.967611
86
0.58498
960
7,896
4.652083
0.263542
0.028213
0.024183
0.022391
0.158979
0.108822
0.102105
0.086431
0.086431
0.086431
0
0.002023
0.311297
7,896
246
87
32.097561
0.819235
0.365628
0
0.26087
0
0
0.070593
0
0
0
0
0.004065
0
1
0.034783
false
0
0.052174
0
0.121739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be15fa91cd3274065ddb261552f8c0f2ea292fcd
2,960
py
Python
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import (QApplication, QMainWindow, QPushButton, QToolTip, QLabel, QLineEdit) from PyQt5 import QtGui class Janela(QMainWindow): def __in...
31.489362
140
0.591216
341
2,960
5.029326
0.29912
0.037318
0.032653
0.068222
0.196501
0.179009
0.138192
0.111953
0.06414
0
0
0.063327
0.285135
2,960
94
141
31.489362
0.747164
0.007432
0
0.027027
0
0.040541
0.171721
0.029642
0
0
0
0
0
1
0.121622
false
0
0.040541
0
0.175676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1d04203f18e6f16b60a723e614122b48a08671
1,097
py
Python
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import os from kombu import Queue, Exchange ## Broker settings. BROKER_URL = os.getenv('BROKER_URL', 'amqp://guest:guest@localhost:5672') #BROKER_URL = "amqp://guest:guest@localhost:5672/" #BROKER_URL = os.getenv('BROKER_URL', 'redis://guest@localhost:6379') #BROKER_HOST = "localhost" #BROKER_PORT = 27017 #BROKER_TRA...
30.472222
76
0.739289
133
1,097
5.804511
0.360902
0.05829
0.123057
0.044041
0.268135
0.268135
0.224093
0.224093
0.104922
0
0
0.022564
0.111212
1,097
35
77
31.342857
0.769231
0.530538
0
0
0
0
0.272727
0.109091
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1d72eb89ee80a827a9a1150e2c759579770b36
21,106
py
Python
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # from __future__ import print_function import csv import os import re import sys import arrow from gsheets import Sheets CURRENT_PATH = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) DEBUG = os.environ.get('DEBUG', "0") == "1" AS_CSV = os.environ.get('CSV', "0") == "1" COL...
34.6
158
0.588032
2,890
21,106
4.095156
0.131488
0.013688
0.010646
0.014195
0.351584
0.289142
0.260161
0.244698
0.226531
0.216392
0
0.012661
0.285227
21,106
609
159
34.656814
0.771841
0.073249
0
0.324444
0
0.002222
0.136431
0.006353
0
0
0
0
0
1
0.031111
false
0.002222
0.015556
0
0.091111
0.16
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1da4c3a9cd8b6f92a68b6f9d9dd0277f9d55ce
7,578
py
Python
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
import numpy as np import pickle import treys import constants FULL_DECK = np.array(treys.Deck.GetFullDeck()) class GameEngine: def __init__(self, BATCH_SIZE, INITIAL_CAPITAL, SMALL_BLIND, BIG_BLIND, logger): self.BATCH_SIZE = BATCH_SIZE self.INITIAL_CAPITAL = INITIAL_CAPITAL self.SMALL_BLIND = SMALL_...
44.05814
133
0.684613
1,022
7,578
4.829746
0.202544
0.040113
0.076985
0.045583
0.317261
0.257496
0.206442
0.180916
0.166734
0.126418
0
0.010401
0.200713
7,578
171
134
44.315789
0.804359
0.161652
0
0.04
0
0
0.003695
0
0
0
0
0.005848
0
1
0.05
false
0
0.04
0
0.14
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1dddb28d3c0ea4aa8ef940a579e9c73af88093
2,487
py
Python
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from cms.models import Page, Title, CMSPlugin, Placeholder from cms.utils import get_language_from_request from django.http import Http404 from django.shortcuts import get_object_or_404 def revert_plugins(request, version_id, obj): from reversion.models import Version version = get_obj...
36.573529
101
0.62686
300
2,487
4.99
0.29
0.04676
0.034736
0.029392
0.062792
0.032064
0
0
0
0
0
0.007299
0.283876
2,487
68
102
36.573529
0.83324
0.065943
0
0.129032
0
0
0.006903
0
0
0
0
0
0
1
0.016129
false
0.016129
0.080645
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1f5618419f3d6206980e4841ac306ca5a5ac13
854
py
Python
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
1
2021-08-20T11:47:51.000Z
2021-08-20T11:47:51.000Z
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
null
null
null
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
null
null
null
# - - - - - - - - - - - # @author like # @since 2021-02-23 11:08 # @email 980650920@qq.com # 十点到十二点的气温变化 from matplotlib import pyplot as plt from matplotlib import rc from matplotlib import font_manager import random x = range(0, 120) y = [random.randint(20, 35) for i in range(120)] plt.figure(figsize=(20, 8), dp...
23.722222
80
0.696721
128
854
4.640625
0.578125
0.13468
0.10101
0.055556
0.070707
0.070707
0.070707
0.070707
0
0
0
0.071429
0.131148
854
35
81
24.4
0.726415
0.228337
0
0
0
0
0.069444
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be1f96521bb4c93e3fbc514880ddde1a151dfa0d
1,351
py
Python
testing/vcs/test_vcs_isoline_labels.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
testing/vcs/test_vcs_isoline_labels.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
testing/vcs/test_vcs_isoline_labels.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
import os, sys, cdms2, vcs, vcs.testing.regression as regression dataset = cdms2.open(os.path.join(vcs.sample_data,"clt.nc")) data = dataset("clt") canvas = regression.init() isoline = canvas.createisoline() isoline.label="y" texts=[] colors = [] for i in range(10): text = canvas.createtext() text.color = 50 +...
29.369565
87
0.721688
197
1,351
4.86802
0.370558
0.025026
0.043796
0.065693
0.451512
0.451512
0.32951
0.32951
0.32951
0.114703
0
0.024639
0.128793
1,351
45
88
30.022222
0.790144
0.093264
0
0.2
0
0
0.089271
0.067977
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be204f98e2c8943df601cdf5f75bb96f08fc6392
34,671
py
Python
src/Python_version/ICE_py36.py
ds-utilities/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
2
2019-08-05T08:26:38.000Z
2020-05-16T14:10:00.000Z
src/Python_version/ICE_py36.py
postyear/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
null
null
null
src/Python_version/ICE_py36.py
postyear/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
2
2020-05-16T14:10:01.000Z
2021-02-09T20:05:46.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 5 05:47:03 2018 @author: zg """ import numpy as np #from scipy import io import scipy.io #import pickle from sklearn.model_selection import StratifiedKFold #import sklearn from scipy.sparse import spdiags from scipy.spatial import distance #impo...
31.348101
93
0.551123
5,133
34,671
3.526593
0.116111
0.013811
0.013424
0.01149
0.459397
0.417191
0.359297
0.324936
0.294443
0.277373
0
0.043658
0.309625
34,671
1,106
94
31.348101
0.712609
0.416602
0
0.243243
0
0
0.052622
0.003356
0
0
0
0
0
1
0.059459
false
0
0.032432
0
0.151351
0.078378
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be20c61ee255e8ce67c5713e68e8dff144cc5ef4
44,105
py
Python
xc/common/utils/prjxray_routing_import.py
FireFox317/symbiflow-arch-defs
f0e7b4212544e1d55da776fb7a2ff79117e01454
[ "ISC" ]
1
2020-09-23T17:57:07.000Z
2020-09-23T17:57:07.000Z
xc/common/utils/prjxray_routing_import.py
tcal-x/symbiflow-arch-defs
1e513ac778371608c51fa86a98e54279e3c74752
[ "ISC" ]
null
null
null
xc/common/utils/prjxray_routing_import.py
tcal-x/symbiflow-arch-defs
1e513ac778371608c51fa86a98e54279e3c74752
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 """ Imports 7-series routing fabric to the rr graph. For ROI configurations, this also connects the synthetic IO tiles to the routing node specified. Rough structure: Add rr_nodes for CHANX and CHANY from the database. IPIN and OPIN rr_nodes should already be present from the input rr_graph. ...
30.375344
90
0.590114
5,808
44,105
4.156853
0.101067
0.023195
0.016568
0.016816
0.4224
0.343619
0.282856
0.256513
0.20888
0.174212
0
0.008274
0.312187
44,105
1,451
91
30.396278
0.787579
0.105793
0
0.227807
0
0
0.098637
0.017309
0
0
0
0.000689
0.028877
1
0.034225
false
0
0.035294
0.00107
0.108021
0.017112
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be20fd972c9533d7359e606c8ff9c31f5c519ad2
17,854
py
Python
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
######################### ######################### # Need to account for limit in input period ######################### ######################### # Baseline M67 long script -- NO crowding # New script copied from quest - want to take p and ecc from each population (all, obs, rec) and put them into separate file # Do...
35.284585
213
0.641089
2,717
17,854
4.167832
0.195068
0.022519
0.020399
0.014129
0.271459
0.172995
0.117361
0.106853
0.098552
0.096344
0
0.039301
0.163437
17,854
505
214
35.354455
0.718867
0.179456
0
0.080692
0
0.008646
0.117994
0.010474
0
0
0
0
0
1
0.014409
false
0.002882
0.028818
0
0.057637
0.051873
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be23cbbbbbb53c2c62b109846cda81e757eb1b58
14,527
py
Python
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the knowledge base.""" import unittest from plaso.containers import artifacts from plaso.engine import knowledge_base from tests import test_lib as shared_test_lib class KnowledgeBaseTest(shared_test_lib.BaseTestCase): """Tests for the knowledge base.""...
37.153453
79
0.748537
1,441
14,527
7.288688
0.149896
0.151004
0.170047
0.061316
0.641817
0.614777
0.601638
0.536799
0.460535
0.394459
0
0.00933
0.144145
14,527
390
80
37.248718
0.835438
0.095684
0
0.477551
0
0
0.150493
0.074938
0
0
0
0.002564
0.187755
1
0.093878
false
0
0.016327
0
0.130612
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be247dcc0b3afb4ed9e9527cdfcf9da7e14edb83
2,244
py
Python
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/word-break-ii/ from typing import List class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> List[str]: # 做一个快速的检查,如果 s 中存在所有 word 都不包含的字母,则直接退出 set1 = set(s) set2 = set(''.join(wordDict)) if not set1.issubset(set2): retur...
29.142857
162
0.483512
237
2,244
4.565401
0.396624
0.025878
0.04159
0.029575
0.055453
0.055453
0.055453
0.055453
0
0
0
0.007138
0.375668
2,244
76
163
29.526316
0.765168
0.251783
0
0.133333
0
0
0.044418
0
0
0
0
0
0
1
0.066667
false
0
0.022222
0
0.266667
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be260edf2b0780a31f443fdc8e024043c1398df0
30,595
py
Python
neutron/tests/unit/db/test_migration.py
banhr/neutron
4b3e73648327ce9f4d3437986a8663372f577f1b
[ "Apache-2.0" ]
1
2018-07-04T07:59:31.000Z
2018-07-04T07:59:31.000Z
neutron/tests/unit/db/test_migration.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/test_migration.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
1
2018-08-28T17:13:16.000Z
2018-08-28T17:13:16.000Z
# Copyright 2012 New Dream Network, LLC (DreamHost) # 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 # # ...
40.469577
79
0.610557
3,337
30,595
5.267006
0.126161
0.023498
0.015931
0.019458
0.583921
0.508421
0.440658
0.379267
0.344447
0.312358
0
0.004247
0.284295
30,595
755
80
40.523179
0.79842
0.034581
0
0.348185
0
0
0.117687
0.030498
0
0
0
0
0.087459
1
0.117162
false
0
0.037954
0.00165
0.173267
0.00165
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be26276b9a7545ff4607b3e77287b80155ccbf7d
959
py
Python
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
23
2016-09-07T06:13:37.000Z
2022-02-17T23:49:03.000Z
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
12
2016-06-30T17:27:39.000Z
2021-12-12T07:54:27.000Z
from decimal import Decimal from .abc import WithdrawalStrategy # Bengen's Floor-to-Ceiling, as described in McClung's Living Off Your Money class FloorCeiling(WithdrawalStrategy): def __init__(self, portfolio, harvest_strategy, rate=.05, floor=.9, ceiling=1.25): super().__init__(portfolio, harvest_strate...
30.935484
91
0.693431
113
959
5.690265
0.380531
0.101089
0.102644
0.139969
0.270607
0.111975
0.111975
0
0
0
0
0.008075
0.225235
959
30
92
31.966667
0.857335
0.077164
0
0.2
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be2647506be1ffc3fcefa8eacc15a737776b73ab
8,288
py
Python
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
""" MicroPython driver for Bosh BME280 temperature, pressure and humidity I2C sensor: https://www.bosch-sensortec.com/bst/products/all_products/bme280 Authors: Nelio Goncalves Godoi, Roberto Colistete Jr Version: 3.1.2 @ 2018/04 License: MIT License (https://opensource.org/licenses/MIT) """ import time from ustruct im...
33.554656
81
0.558518
1,075
8,288
4.064186
0.205581
0.060884
0.033646
0.026322
0.211032
0.18265
0.140993
0.124971
0.124971
0.036164
0
0.094477
0.320584
8,288
246
82
33.691057
0.681407
0.04404
0
0.156098
0
0
0.028456
0
0
0
0.005438
0
0
1
0.04878
false
0.004878
0.014634
0
0.112195
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be2674ce54565aac0c872fd9c167bb04e3da2fda
9,749
py
Python
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2020-10-05T18:20:16.000Z
2022-02-01T00:54:35.000Z
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-10-21T03:22:43.000Z
2020-10-21T03:22:43.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.452282
102
0.647656
1,206
9,749
5.063847
0.190713
0.031439
0.02358
0.028001
0.232848
0.158343
0.131816
0.121991
0.068937
0.047486
0
0.003041
0.257975
9,749
240
103
40.620833
0.841167
0.441379
0
0.080357
0
0
0.072175
0.014676
0
0
0
0
0
1
0.053571
false
0.044643
0.071429
0
0.196429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be27d0cf506bd514ef2b8fd412eba196789b1b66
6,347
py
Python
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Computes distance between killmails by text similarity. Edit Distance Metrics - Levenshtein Distance - Damerau-Levenshtein Distance - Jaro Distance - Jaro-Winkler Distance - Match Rating Approach Comparison - Hamming Distance Vector Distance Metrics - Jaccard Similarity - Cosine Distance W...
37.556213
92
0.669293
949
6,347
4.401475
0.272919
0.043572
0.018674
0.014364
0.490065
0.463012
0.445296
0.389753
0.378262
0.378262
0
0.031019
0.212699
6,347
168
93
37.779762
0.804883
0.396565
0
0.223404
0
0.031915
0.218547
0.088124
0
0
0
0
0
1
0.031915
false
0
0.106383
0
0.202128
0.074468
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be28146fdfcf8ed2a16239294869650841f46a74
1,181
py
Python
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
6
2020-08-13T13:02:58.000Z
2022-02-10T02:21:49.000Z
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
import numpy as np from itertools import product from typing import List from src.config import ConfigChess from src.chess.board import Board from src.chess.move import Move def get_all_possible_moves() -> List[Move]: all_possible_moves = set() array = np.zeros((ConfigChess.board_size, ConfigChess.board_size...
36.90625
99
0.686706
172
1,181
4.546512
0.354651
0.084399
0.122762
0.069054
0.391304
0.36445
0.36445
0.36445
0.36445
0.36445
0
0.00418
0.18967
1,181
31
100
38.096774
0.812957
0.096528
0
0.230769
0
0
0.007519
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
be2868ed0261dc37f256c2a99990b52d127544a4
1,845
py
Python
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
null
null
null
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
null
null
null
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
1
2022-03-01T05:00:02.000Z
2022-03-01T05:00:02.000Z
from random import gauss class MultiRotor: """Simple vertical dynamics for a multirotor vehicle.""" GRAVITY = -9.81 def __init__( self, altitude=10, velocity=0, mass=1.54, emc=10.0, dt=0.05, noise=0.1 ): """ Args: altitude (float): initial altitude of the vehicle...
27.132353
86
0.566938
225
1,845
4.595556
0.351111
0.058027
0.058027
0.038685
0
0
0
0
0
0
0
0.036454
0.345799
1,845
67
87
27.537313
0.820215
0.384824
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.033333
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
be286e006cd7ef8775677a3d599b4cc9bc55f723
6,329
py
Python
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
37
2019-01-06T02:52:38.000Z
2022-03-17T21:19:48.000Z
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
204
2018-09-05T22:55:33.000Z
2022-03-31T23:21:13.000Z
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
20
2018-09-17T15:29:51.000Z
2022-02-03T06:29:32.000Z
import re from typing import Any, ClassVar, Dict, List, NoReturn, Union from cryptography.exceptions import UnsupportedAlgorithm from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from requests import Response, Session from .exc import ( AccountDoesNo...
34.026882
78
0.618739
705
6,329
5.466667
0.299291
0.024909
0.048521
0.054229
0.144006
0.110535
0.06876
0.052932
0.052932
0.052932
0
0.006931
0.270501
6,329
185
79
34.210811
0.82781
0.026544
0
0.123457
0
0
0.136474
0.016247
0
0
0
0
0.012346
1
0.049383
false
0.024691
0.055556
0.018519
0.17284
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be2a7a241325332e4117c63de7ba8c5d1c491871
332
py
Python
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
1
2019-05-28T15:59:35.000Z
2019-05-28T15:59:35.000Z
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
null
null
null
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
null
null
null
# config params KB = 1024 MB = 1024*KB GB = 1024*MB # name of meta root dir META_DIR = ".metasync" # batching time for daemon SYNC_WAIT = 3 # blob size BLOB_UNIT = 32*MB # Increase of Paxos proposal number PAXOS_PNUM_INC = 10 # authentication directory import os AUTH_DIR = os.path.join(os.path.expanduser("~"), "...
15.090909
61
0.713855
53
332
4.358491
0.716981
0.051948
0
0
0
0
0
0
0
0
0
0.0625
0.180723
332
21
62
15.809524
0.786765
0.391566
0
0
0
0
0.097436
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be2c413f1972d5571cb52206e64c8dffe9762a99
2,503
py
Python
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
38
2021-09-05T13:59:11.000Z
2022-03-28T14:18:30.000Z
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
3
2021-11-25T08:21:01.000Z
2022-03-07T08:22:11.000Z
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
5
2021-09-05T23:15:10.000Z
2022-02-10T08:32:00.000Z
import tensorflow as tf import numpy as np import time import cv2 from hitnet.utils_hitnet import * drivingStereo_config = CameraConfig(0.546, 1000) class HitNet(): def __init__(self, model_path, model_type=ModelType.eth3d, camera_config=drivingStereo_config): self.fps = 0 self.timeLastPrediction = time.time(...
25.804124
96
0.742709
362
2,503
4.856354
0.256906
0.051763
0.047782
0.059727
0.33504
0.263936
0.222981
0.222981
0.14562
0.14562
0
0.023596
0.153416
2,503
96
97
26.072917
0.806041
0.054335
0
0.203704
0
0
0.042463
0.035669
0
0
0
0
0
1
0.12963
false
0
0.092593
0.037037
0.351852
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
076ca6ec3c064417c645687635c5d40cf01c07b7
29,159
py
Python
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
1
2019-02-04T20:45:51.000Z
2019-02-04T20:45:51.000Z
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
null
null
null
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
null
null
null
from __future__ import print_function from six.moves import range import torchvision.transforms as transforms import torch.backends.cudnn as cudnn import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim import torchvision.utils as vutils import numpy as np import os import ti...
41.360284
116
0.540245
3,524
29,159
4.233541
0.124291
0.018768
0.013674
0.010322
0.386688
0.320665
0.275957
0.241035
0.196528
0.166097
0
0.019728
0.322028
29,159
704
117
41.419034
0.734939
0.091258
0
0.230461
0
0
0.027423
0.003497
0
0
0
0.00142
0
1
0.04008
false
0
0.044088
0
0.106212
0.026052
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
076cc2a993643184f8804f5d69cb1769c80c9cee
5,654
py
Python
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
1
2021-11-11T08:20:13.000Z
2021-11-11T08:20:13.000Z
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
null
null
null
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
null
null
null
from bottle import TEMPLATE_PATH, route, run, template, redirect, get, post, request, response, auth_basic, Bottle, abort, error, static_file import bottle import controller from controller import dobi_parcele_za_prikaz, dobi_info_parcele, dodaj_gosta_na_rezervacijo, naredi_rezervacijo, dobi_rezervacijo_po_id, zakljuci...
37.693333
196
0.703926
711
5,654
5.416315
0.188467
0.067515
0.019995
0.035835
0.598026
0.548429
0.529733
0.529733
0.529733
0.504804
0
0.005096
0.166961
5,654
149
197
37.946309
0.812527
0.045278
0
0.548387
0
0
0.147508
0.039287
0
0
0
0
0
1
0.08871
false
0
0.040323
0.016129
0.258065
0.056452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
076da057376eccf60a978162dbf694687eba8ff6
1,233
py
Python
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
2
2020-06-21T11:15:10.000Z
2021-12-03T08:08:45.000Z
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
1
2021-03-05T10:43:49.000Z
2021-03-05T10:43:49.000Z
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
2
2021-03-30T06:02:08.000Z
2021-08-06T06:59:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Parameter initialization for transducer RNN/Transformer parts.""" import six from espnet.nets.pytorch_backend.initialization import lecun_normal_init_parameters from espnet.nets.pytorch_backend.initialization import set_forget_bias_to_one from espnet.nets.pytorch_ba...
31.615385
83
0.697486
146
1,233
5.69863
0.417808
0.052885
0.072115
0.120192
0.399038
0.286058
0.115385
0
0
0
0
0.004086
0.206002
1,233
38
84
32.447368
0.845761
0.203569
0
0.25
0
0
0.034664
0
0
0
0
0
0
1
0.05
false
0
0.2
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
077018ad315b121efadde62952dbcb47369a343a
2,368
py
Python
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import logging import yaml import pandas as pd import numpy as np from collections import defaultdict from sklearn.model_selection import train_test_split from sklearn.ensemble import IsolationForest from sklearn.impute import SimpleImputer from anoflows.hpo import find_best_flows ...
29.234568
94
0.678209
347
2,368
4.463977
0.37464
0.027114
0.027114
0.019367
0.018076
0
0
0
0
0
0
0.013584
0.191723
2,368
80
95
29.6
0.795716
0.066723
0
0
0
0
0.09673
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
07702a9eb4e9374ca232b483bdbecbfbdb1917c5
840
py
Python
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-02-25T15:28:47.000Z
2020-02-25T15:28:47.000Z
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-01-17T17:12:45.000Z
2020-01-17T17:12:45.000Z
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-12-19T18:00:19.000Z
2020-12-19T18:00:19.000Z
__all__ = ['VERSION', 'version_info'] VERSION = '1.4a1' def version_info() -> str: import platform import sys from importlib import import_module from pathlib import Path from .main import compiled optional_deps = [] for p in ('typing-extensions', 'email-validator', 'devtools'): ...
27.096774
101
0.589286
91
840
5.263736
0.527473
0.100209
0
0
0
0
0
0
0
0
0
0.008065
0.261905
840
30
102
28
0.764516
0
0
0
0
0
0.204762
0
0
0
0
0
0
1
0.041667
false
0
0.291667
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0770f2a922548842dd4151e55d3fc69c6cf5b84c
2,319
py
Python
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
1
2016-09-15T16:19:27.000Z
2016-09-15T16:20:06.000Z
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
from scheme import Structure __all__ = ('Configurable', 'Registry') class Configurable(object): """A sentry class which indicates that subclasses can establish a configuration chain.""" class Registry(object): """The unit registry.""" dependencies = {} schemas = {} units = {} @classmethod ...
34.61194
93
0.581285
219
2,319
6.091324
0.296804
0.037481
0.033733
0.031484
0
0
0
0
0
0
0
0.000647
0.333765
2,319
66
94
35.136364
0.862783
0.043984
0
0.150943
0
0
0.009519
0
0
0
0
0
0
1
0.075472
false
0
0.018868
0.018868
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0771ae571980aa4669298ae5f48b1ac83a19af96
2,953
py
Python
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
2
2020-10-05T08:52:01.000Z
2021-03-03T15:26:35.000Z
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Extracts random constraints from reference files.""" import argparse import random import sys from sacrebleu imp...
31.752688
88
0.529292
330
2,953
4.639394
0.336364
0.071848
0.055519
0.01437
0.184193
0.128021
0.128021
0.128021
0.128021
0.074461
0
0.0052
0.348798
2,953
92
89
32.097826
0.790952
0.088385
0
0.03125
0
0
0.061194
0
0
0
0
0
0.015625
1
0.046875
false
0
0.0625
0
0.125
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0