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
256135f3261bda49e4b410a35a4a8f8355d98ad8
722
py
Python
rpi/tcp_server.py
nicolasGibaud7/App-domotic
aee4d80aa05a39388efd92ab9ecf9b5dd1460322
[ "MIT" ]
4
2020-01-01T15:22:55.000Z
2020-01-10T09:34:26.000Z
rpi/tcp_server.py
nicolasGibaud7/App-domotic
aee4d80aa05a39388efd92ab9ecf9b5dd1460322
[ "MIT" ]
2
2020-01-01T15:16:02.000Z
2020-01-02T13:56:29.000Z
rpi/tcp_server.py
nicolasGibaud7/App-domotic
aee4d80aa05a39388efd92ab9ecf9b5dd1460322
[ "MIT" ]
null
null
null
import socket import sys IP_ADDR = "192.168.1.19" TCP_PORT = 10000 if __name__ == "__main__": # Create TCP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Associate the socket with the server address server_address = (IP_ADDR, TCP_PORT) print("Start TCP server at address {} on p...
26.740741
100
0.631579
92
722
4.73913
0.5
0.149083
0
0
0
0
0
0
0
0
0
0.035514
0.259003
722
26
101
27.769231
0.779439
0.108033
0
0.111111
0
0
0.140625
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
256327adbdadb9819f932122ab31855bfe822e1d
2,011
py
Python
List Comprehensions/examples.py
mervatkheir/kite-python-blog-post-code
9a331e5d327cd27c6ecd72926f3e74afd252efb5
[ "MIT" ]
238
2018-10-10T18:50:40.000Z
2022-02-09T21:26:24.000Z
List Comprehensions/examples.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
38
2019-12-04T22:42:45.000Z
2022-03-12T00:04:57.000Z
List Comprehensions/examples.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
154
2018-11-11T22:48:09.000Z
2022-03-22T07:12:18.000Z
""" List Comprehensions Examples """ my_list = [] # my_list.append() # my_list.extend() """ When to use ListComps """ phones = [ { 'number': '111-111-1111', 'label': 'phone', 'extension': '1234', }, { 'number': '222-222-2222', 'label': 'mobile', 'extension...
15.960317
53
0.604674
274
2,011
4.339416
0.310219
0.100084
0.015139
0.04037
0.318755
0.264929
0.257359
0.257359
0.134567
0.134567
0
0.038936
0.233715
2,011
125
54
16.088
0.732641
0.067131
0
0.230769
0
0
0.08056
0
0
0
0
0
0
1
0.015385
false
0
0
0
0.046154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2564c2f1d6dd5e44be1def881988d5a419b3038e
2,549
py
Python
ImageDenoising/network/denoising.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
5
2019-06-20T09:54:04.000Z
2021-06-15T04:22:49.000Z
ImageDenoising/network/denoising.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
null
null
null
ImageDenoising/network/denoising.py
jiunbae/ITE4053
873d53493b7588f67406e0e6ed0e74e5e3f957bc
[ "MIT" ]
1
2019-04-19T04:52:34.000Z
2019-04-19T04:52:34.000Z
import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras import models as KM from tensorflow.keras import layers as KL class DenoisingNetwork(object): def __new__(cls, mode: str) \ -> KM.Model: assert mode in ['base', 'skip', 'bn'] inputs = KL.Input(sha...
33.986667
59
0.488035
282
2,549
4.308511
0.262411
0.039506
0.02963
0.044444
0.545679
0.545679
0.545679
0.545679
0.545679
0.545679
0
0.019534
0.377403
2,549
74
60
34.445946
0.746062
0
0
0.515625
0
0
0.074931
0
0
0
0
0
0.015625
1
0.0625
false
0
0.0625
0.03125
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
256670e4e127db5ef91b0b78cc07a367f32674c1
884
py
Python
utils/timer.py
YorkSu/hat
b646b6689f3d81c985ed13f3d5c23b6c717fd07d
[ "Apache-2.0" ]
1
2019-04-10T04:49:30.000Z
2019-04-10T04:49:30.000Z
utils/timer.py
Suger131/HAT-tf2.0
b646b6689f3d81c985ed13f3d5c23b6c717fd07d
[ "Apache-2.0" ]
null
null
null
utils/timer.py
Suger131/HAT-tf2.0
b646b6689f3d81c985ed13f3d5c23b6c717fd07d
[ "Apache-2.0" ]
1
2019-06-14T05:53:42.000Z
2019-06-14T05:53:42.000Z
import time class Timer(object): def __init__(self, Log, *args, **kwargs): self.Log = Log return super().__init__(*args, **kwargs) @property def time(self): return time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime()) def mktime(self, timex): return time.mktime(time.strptime(timex, '%Y-%m-%d...
31.571429
65
0.623303
132
884
3.94697
0.265152
0.122841
0.06334
0.057582
0.095969
0.023033
0
0
0
0
0
0
0.193439
884
28
66
31.571429
0.730715
0
0
0
0
0
0.151412
0
0
0
0
0
0
1
0.181818
false
0
0.045455
0.090909
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
256a8cd6b55c2a6f3936b57c2975d63cfcb67d9a
4,050
py
Python
tests/test_functional.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
14
2015-09-05T20:20:50.000Z
2021-04-08T08:53:20.000Z
tests/test_functional.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
6
2017-05-12T20:46:40.000Z
2020-02-08T05:05:03.000Z
tests/test_functional.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
8
2017-02-13T15:38:53.000Z
2020-11-11T20:16:58.000Z
# -*- coding: utf-8 -*- """ """ from __future__ import absolute_import from contextlib import contextmanager import imp import posixpath from zipfile import ZipFile from click.testing import CliRunner import pkginfo import pytest from six import PY3 def test_pyfile_compiled(packages, tmpdir): packages.require_e...
27.739726
79
0.66716
523
4,050
4.913958
0.307839
0.032685
0.059144
0.059144
0.280156
0.233463
0.204669
0.200778
0.200778
0.200778
0
0.018369
0.206914
4,050
145
80
27.931034
0.781756
0.082716
0
0.123711
0
0
0.166712
0.079026
0
0
0
0
0.164948
1
0.154639
false
0
0.175258
0
0.350515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
256b989b63c37dd38e854142d7a19f85d5f03b4f
1,401
py
Python
diy_gym/addons/debug/joint_trace.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
diy_gym/addons/debug/joint_trace.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
diy_gym/addons/debug/joint_trace.py
wassname/diy-gym
83232ae6971341a86683d316feecf4d34d3caf47
[ "MIT" ]
null
null
null
import pybullet as p from gym import spaces import pybullet_planning as pbp import numpy as np from diy_gym.addons.addon import Addon class JointTrace(Addon): """ JointTrace Trace the follows a joints movements """ def __init__(self, parent, config): super().__init__(parent, config) ...
31.133333
120
0.581727
194
1,401
4.092784
0.381443
0.050378
0.02267
0.027708
0.141058
0
0
0
0
0
0
0.016393
0.303355
1,401
44
121
31.840909
0.797131
0.057102
0
0.066667
0
0
0.024596
0
0
0
0
0
0
1
0.1
false
0
0.166667
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
256c54c224c3656056ad73a0292f2c0577a7fce0
1,612
py
Python
ngraph/flex/flexargparser.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/flex/flexargparser.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/flex/flexargparser.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
from __future__ import print_function import ngraph.transformers as ngt from ngraph.flex.names import flex_gpu_transformer_name import argparse class FlexNgraphArgparser(): """ Flex specific command line args """ @staticmethod def setup_flex_args(argParser): """ Add flex specific ...
36.636364
97
0.614144
179
1,612
5.27933
0.396648
0.050794
0.063492
0.046561
0.165079
0.165079
0.091005
0
0
0
0
0.000904
0.313896
1,612
43
98
37.488372
0.853526
0.182382
0
0.269231
0
0
0.090909
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.269231
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2571f7e0a4f394d6c21f691f7de829e3237dd090
8,442
py
Python
models/linnet.py
mengxiangke/bsn
df6458a44b8d8b442c086e158366dd296fab54cc
[ "Apache-2.0" ]
5
2020-09-19T18:05:08.000Z
2022-01-23T14:55:07.000Z
models/linnet.py
mengxiangke/bsn
df6458a44b8d8b442c086e158366dd296fab54cc
[ "Apache-2.0" ]
null
null
null
models/linnet.py
mengxiangke/bsn
df6458a44b8d8b442c086e158366dd296fab54cc
[ "Apache-2.0" ]
7
2020-09-19T18:05:11.000Z
2021-12-28T02:41:12.000Z
import os from os.path import join as pjoin import time import numpy as np import torch from torch import nn import torch.nn.functional as F from torch.optim.lr_scheduler import CosineAnnealingLR try: from .radam import RAdam except (ImportError, ModuleNotFoundError) as err: from radam import RAdam try: ...
31.977273
98
0.47394
940
8,442
4.079787
0.18617
0.043807
0.031552
0.035202
0.482399
0.449544
0.396089
0.334811
0.275359
0.265711
0
0.045907
0.416844
8,442
263
99
32.098859
0.73309
0.045605
0
0.365169
0
0
0.008857
0
0
0
0
0
0
1
0.151685
false
0
0.073034
0.067416
0.365169
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2516c459b4df1dceb074080d5a8ce6f229681ed
16,278
py
Python
mvmm/multi_view/SpectralPenSearchByBlockMVMM.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
1
2021-08-17T13:22:54.000Z
2021-08-17T13:22:54.000Z
mvmm/multi_view/SpectralPenSearchByBlockMVMM.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
mvmm/multi_view/SpectralPenSearchByBlockMVMM.py
idc9/mvmm
64fce755a7cd53be9b08278484c7a4c77daf38d1
[ "MIT" ]
null
null
null
from sklearn.base import clone import pandas as pd from abc import ABCMeta from time import time from datetime import datetime import numpy as np from sklearn.model_selection import ParameterGrid from sklearn.base import BaseEstimator, MetaEstimatorMixin from mvmm.utils import get_seeds from mvmm.multi_view.utils impo...
37.42069
128
0.531699
1,843
16,278
4.37873
0.170917
0.051797
0.012268
0.011152
0.219827
0.13891
0.121933
0.092193
0.070136
0.070136
0
0.006958
0.390773
16,278
434
129
37.506912
0.806796
0.181226
0
0.172131
0
0
0.042921
0
0
0
0
0.002304
0.004098
1
0.061475
false
0
0.053279
0.004098
0.204918
0.012295
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c251ec2f4862db71edcfa85809de82aead64c14b
812
py
Python
tests/unit/providers/traversal/test_delegate_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/providers/traversal/test_delegate_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
tests/unit/providers/traversal/test_delegate_py3.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
"""Delegate provider traversal tests.""" from dependency_injector import providers def test_traversal_provider(): another_provider = providers.Provider() provider = providers.Delegate(another_provider) all_providers = list(provider.traverse()) assert len(all_providers) == 1 assert another_provi...
24.606061
51
0.752463
88
812
6.738636
0.295455
0.161889
0.094435
0.084317
0.290051
0.178752
0.178752
0.178752
0.178752
0
0
0.017804
0.169951
812
32
52
25.375
0.862018
0.041872
0
0.105263
0
0
0
0
0
0
0
0
0.315789
1
0.105263
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c256ecf86fa244e6c6873a974253c22509fa427e
3,380
py
Python
source_dir/densenet_3d_estimator.py
ffeijoo/3d-DenseNet
baec68af07294ac5e432096055909ff08ea2e81c
[ "MIT" ]
null
null
null
source_dir/densenet_3d_estimator.py
ffeijoo/3d-DenseNet
baec68af07294ac5e432096055909ff08ea2e81c
[ "MIT" ]
null
null
null
source_dir/densenet_3d_estimator.py
ffeijoo/3d-DenseNet
baec68af07294ac5e432096055909ff08ea2e81c
[ "MIT" ]
null
null
null
import os import tensorflow as tf from densenet_3d_model import DenseNet3D def model_fn(features, labels, mode, params): # Define the model model = DenseNet3D( video_clips=features['video_clips'], labels=labels, **params) # Get the prediction result if mode == tf.estimator.ModeKeys.PRED...
34.845361
108
0.671598
401
3,380
5.42394
0.306733
0.025287
0.022069
0.029425
0.207816
0.070805
0.045057
0
0
0
0
0.009815
0.216272
3,380
97
109
34.845361
0.81125
0.083432
0
0.059701
0
0
0.092418
0.013993
0
0
0
0
0
1
0.134328
false
0
0.044776
0.014925
0.328358
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2611c72bea7ee655df6077231d5fe5c6f79d18c
2,973
py
Python
2021/day.3.py
craignicol/adventofcode
41ea3325adeb373dccc70d36a9a685eaf13359eb
[ "Apache-2.0" ]
null
null
null
2021/day.3.py
craignicol/adventofcode
41ea3325adeb373dccc70d36a9a685eaf13359eb
[ "Apache-2.0" ]
null
null
null
2021/day.3.py
craignicol/adventofcode
41ea3325adeb373dccc70d36a9a685eaf13359eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from statistics import mode def execute(): with open('./input/day.3.txt') as inp: lines = inp.readlines() data = [l.strip() for l in lines if len(l.strip()) > 0] return power_consumption(data), life_support_rating(data) tests_failed = 0 tests_executed = 0 def verify(a, b):...
29.147059
95
0.667003
421
2,973
4.548694
0.299287
0.03342
0.018799
0.035509
0.308094
0.264752
0.226632
0.226632
0.226632
0.226632
0
0.070913
0.207871
2,973
102
96
29.147059
0.741826
0.007064
0
0.073171
0
0
0.042683
0
0
0
0
0
0
1
0.146341
false
0
0.012195
0.036585
0.292683
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c263e873beab15ef3148ddea30b0dcbd4c5dcb1c
6,194
py
Python
src/propagation.py
haoningwu3639/EE229_Project_VideoStabilization
74603e9dc5f10b3deffb2f4e0753c15dc8b9a92d
[ "MIT" ]
1
2021-06-13T06:32:29.000Z
2021-06-13T06:32:29.000Z
src/propagation.py
haoningwu3639/EE229_Project_VideoStabilization
74603e9dc5f10b3deffb2f4e0753c15dc8b9a92d
[ "MIT" ]
null
null
null
src/propagation.py
haoningwu3639/EE229_Project_VideoStabilization
74603e9dc5f10b3deffb2f4e0753c15dc8b9a92d
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.signal import medfilt from utils import init_dict, l2_dst def keypoint_transform(H, keypoint): """ Input: H: homography matrix of dimension (3*3) keypoint: the (x, y) point to be transformed Output: keypoint_trans: Transformed point keypoint_trans = H ...
37.768293
121
0.628996
979
6,194
3.712972
0.144025
0.145254
0.082531
0.037414
0.41403
0.368088
0.216506
0.195323
0.131499
0.131499
0
0.01804
0.257184
6,194
163
122
38
0.772006
0.240555
0
0.049383
0
0
0
0
0
0
0
0
0
1
0.049383
false
0
0.049383
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c267cbc162d3355bf7a9a7568e5120c20f9a8b94
15,306
py
Python
src/utils/scout_compiler.py
CheckPointSW/Scour
2f9391da45803b44181f7973e4e7c93bc2208252
[ "MIT" ]
152
2018-08-13T05:48:59.000Z
2022-03-30T15:18:44.000Z
src/utils/scout_compiler.py
CheckPointSW/Scour
2f9391da45803b44181f7973e4e7c93bc2208252
[ "MIT" ]
7
2019-08-29T15:24:41.000Z
2021-05-04T06:38:49.000Z
src/utils/scout_compiler.py
CheckPointSW/Scour
2f9391da45803b44181f7973e4e7c93bc2208252
[ "MIT" ]
21
2018-08-13T19:11:29.000Z
2022-02-28T15:25:47.000Z
import os import struct from .compilation.scout_flags import * from .compilation.scout_files import * from .compilation.arc_intel import arcIntel from .compilation.arc_arm import arcArm, arcArmThumb from .compilation.arc_mips import arcMips from .context_creator import * #############################...
43.731429
163
0.616425
2,001
15,306
4.530735
0.191404
0.02537
0.024377
0.013126
0.185749
0.105228
0.089676
0.051291
0.026362
0.016104
0
0.00567
0.27401
15,306
349
164
43.856734
0.810205
0.347707
0
0.121212
0
0.030303
0.15341
0.028151
0
0
0
0
0
1
0.066667
false
0
0.048485
0
0.151515
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c26ac1a91dabdb0034c28b5241ea7cfad78d438f
3,375
py
Python
jscatter/jscatter_test.py
flekschas/jupyter-scatter
550eceb2311b0394caad83dbb399ed2f29e55af6
[ "Apache-2.0" ]
23
2021-02-03T02:05:47.000Z
2022-03-17T14:53:39.000Z
jscatter/jscatter_test.py
manzt/jupyter-scatter
c38f94abfb655e03f407e7fcec80a883439796b5
[ "Apache-2.0" ]
5
2021-02-04T22:19:35.000Z
2022-03-07T04:49:31.000Z
jscatter/jscatter_test.py
manzt/jupyter-scatter
c38f94abfb655e03f407e7fcec80a883439796b5
[ "Apache-2.0" ]
1
2021-06-15T14:14:47.000Z
2021-06-15T14:14:47.000Z
import numpy as np import pandas as pd from .jscatter import Scatter, component_idx_to_name from .utils import minmax_scale def test_component_idx_to_name(): assert 'valueA' == component_idx_to_name(2) assert 'valueB' == component_idx_to_name(3) assert None == component_idx_to_name(4) assert None == c...
31.25
105
0.647704
497
3,375
4.2334
0.173038
0.109316
0.064164
0.089829
0.554183
0.502852
0.430133
0.389734
0.372148
0.313688
0
0.030105
0.183111
3,375
107
106
31.542056
0.733043
0
0
0.309524
0
0
0.061055
0
0
0
0
0
0.333333
1
0.071429
false
0
0.047619
0
0.130952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c26b638d6a13eb8cf7404de0290463e08f694482
10,917
py
Python
py-world/world/main.py
Coastchb/Tacotron-2
0a61c8ff4fadfbd9d4157ee93b875e7d79fd750c
[ "MIT" ]
null
null
null
py-world/world/main.py
Coastchb/Tacotron-2
0a61c8ff4fadfbd9d4157ee93b875e7d79fd750c
[ "MIT" ]
null
null
null
py-world/world/main.py
Coastchb/Tacotron-2
0a61c8ff4fadfbd9d4157ee93b875e7d79fd750c
[ "MIT" ]
null
null
null
import logging import sys from typing import Iterable # 3rd party imports import numpy as np # import matplotlib.pyplot as plt from scipy.io.wavfile import read as wavread # local imports from .dio import dio from .stonemask import stonemask from .harvest import harvest from .cheaptrick import cheaptrick from .d4c im...
42.644531
152
0.582944
1,394
10,917
4.422525
0.167145
0.026115
0.017518
0.018978
0.502352
0.455637
0.44558
0.436334
0.406164
0.392863
0
0.026172
0.29651
10,917
255
153
42.811765
0.776563
0.202895
0
0.374233
0
0
0.113881
0
0
0
0
0.003922
0.030675
1
0.067485
false
0
0.09816
0
0.226994
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c26b881427d152a0f3576dc1d7e1e0a52917ad82
8,165
py
Python
src/universal_build/helpers/build_docker.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
src/universal_build/helpers/build_docker.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
src/universal_build/helpers/build_docker.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
"""Utilities to help building Docker images.""" import argparse import os import subprocess from typing import List, Optional from universal_build import build_utils FLAG_DOCKER_IMAGE_PREFIX = "docker_image_prefix" def parse_arguments( input_args: List[str] = None, argument_parser: argparse.ArgumentParser = No...
37.113636
205
0.679731
1,064
8,165
5.015038
0.168233
0.035982
0.065967
0.033733
0.490442
0.440217
0.397114
0.37069
0.334708
0.26593
0
0.00112
0.23466
8,165
219
206
37.283105
0.852776
0.369259
0
0.275
0
0.008333
0.148997
0.008717
0
0
0
0.004566
0
1
0.05
false
0
0.041667
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c26e8a076cd054bdeb3d8edfa2f30d5c046667f6
1,121
py
Python
src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/ios/tests/ShowProcessesCpuSorted/cli/equal/golden_output_1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "sort": { 1: { "invoked": 3321960, "usecs": 109, "tty": 0, "one_min_cpu": 0.54, "process": "PIM Process", "five_min_cpu": 0.48, "runtime": 362874, "pid": 368, "five_sec_cpu": 1.03,...
26.069767
75
0.407672
119
1,121
3.579832
0.411765
0.112676
0.08216
0.070423
0.098592
0.098592
0
0
0
0
0
0.164297
0.435326
1,121
42
76
26.690476
0.508689
0
0
0.071429
0
0
0.317574
0.039251
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
c26f5c129b7cbf79a66da9961a7b6a906731cbb8
4,702
py
Python
watcher_metering/publisher/publisher.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
2
2015-10-22T19:44:57.000Z
2017-06-15T15:01:07.000Z
watcher_metering/publisher/publisher.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
1
2015-10-26T13:52:58.000Z
2015-10-26T13:52:58.000Z
watcher_metering/publisher/publisher.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
4
2015-10-10T13:59:39.000Z
2020-05-29T11:47:07.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # 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.227642
79
0.652276
595
4,702
4.954622
0.294118
0.057666
0.024423
0.035617
0.145862
0.115332
0.097693
0.097693
0.097693
0.097693
0
0.003497
0.270098
4,702
122
80
38.540984
0.855478
0.317312
0
0.057143
0
0
0.073684
0
0
0
0
0
0
1
0.114286
false
0
0.071429
0.014286
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2722d474ea8fa2b576a6ea93761caf6c92cb828
5,547
py
Python
export_pdf_decaissement.py
Ciwara/DE-ENCAISSEMENT
bd816b40c857a768e866535b46b30ae6fb5020e9
[ "Apache-2.0" ]
null
null
null
export_pdf_decaissement.py
Ciwara/DE-ENCAISSEMENT
bd816b40c857a768e866535b46b30ae6fb5020e9
[ "Apache-2.0" ]
null
null
null
export_pdf_decaissement.py
Ciwara/DE-ENCAISSEMENT
bd816b40c857a768e866535b46b30ae6fb5020e9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding= UTF-8 -*- # Fad from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import A4 # setup the empty canvas from io import FileIO as file from reportlab.platypus import Flowable # from Common.pyPdf import PdfFileWriter, PdfFileReader from PyPDF2 import PdfFileWriter, PdfFil...
33.415663
110
0.581035
714
5,547
4.42577
0.35014
0.03481
0.037975
0.013291
0.110443
0.058228
0.058228
0.058228
0.027848
0.027848
0
0.041404
0.28592
5,547
165
111
33.618182
0.756122
0.138453
0
0.051724
0
0
0.07152
0.006367
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c274168a8c5a204b07518e6afd5c3fd89f5eb019
9,073
py
Python
pose/datasets/real_animal_all.py
chaneyddtt/UDA-Animal-Pose
f1ebfda860a2585c60fe86ce1632e910ac97ebc5
[ "MIT" ]
61
2021-03-30T08:34:24.000Z
2022-03-30T02:45:46.000Z
pose/datasets/real_animal_all.py
chaneyddtt/UDA-Animal-Pose
f1ebfda860a2585c60fe86ce1632e910ac97ebc5
[ "MIT" ]
13
2021-04-10T12:46:58.000Z
2022-03-11T10:40:02.000Z
pose/datasets/real_animal_all.py
chaneyddtt/UDA-Animal-Pose
f1ebfda860a2585c60fe86ce1632e910ac97ebc5
[ "MIT" ]
2
2021-07-22T04:53:44.000Z
2022-02-15T14:19:02.000Z
from __future__ import print_function, absolute_import import random import torch.utils.data as data from pose.utils.osutils import * from pose.utils.transforms import * from scipy.io import loadmat import argparse class Real_Animal_All(data.Dataset): def __init__(self, is_train=True, is_aug=False, **kwargs): ...
45.139303
136
0.554502
1,235
9,073
3.868826
0.193522
0.024487
0.013813
0.015697
0.224152
0.166388
0.130808
0.105693
0.080578
0.061323
0
0.030671
0.310041
9,073
200
137
45.365
0.732588
0.082222
0
0.063694
0
0
0.086496
0.01807
0.006369
0
0
0
0
1
0.038217
false
0
0.044586
0.006369
0.121019
0.070064
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2769ae34a085e912e6eacf2499ecd7dc14d3eeb
492
py
Python
cap6/ex6.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap6/ex6.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
cap6/ex6.py
felipesch92/livroPython
061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307
[ "MIT" ]
null
null
null
p = [1, 4, 9, 10, 20, 25] e1 = int(input('Primeiro elemento: ')) e2 = int(input('Segundo elemento: ')) x = 0 achou = False primeiro = 0 while x < len(p): if p[x] == e1: print(f'Elemento 1 encontrado na posição {x} da lista!') if primeiro == 0: primeiro = 1 if p[x] == e2: prin...
27.333333
64
0.556911
75
492
3.653333
0.413333
0.09854
0.029197
0.145985
0.335766
0.335766
0.335766
0.335766
0.335766
0.335766
0
0.063584
0.296748
492
17
65
28.941176
0.728324
0
0
0.117647
0
0
0.355691
0
0
0
0
0
0
1
0
false
0
0
0
0
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c278440f2c1e433cd58705bc68bd303258b8e21b
8,084
py
Python
lib/datasets/myvg.py
zhydong/faster-rcnn.pytorch
36fa8b9718228edb4702b039deab924c40b973f5
[ "MIT" ]
null
null
null
lib/datasets/myvg.py
zhydong/faster-rcnn.pytorch
36fa8b9718228edb4702b039deab924c40b973f5
[ "MIT" ]
null
null
null
lib/datasets/myvg.py
zhydong/faster-rcnn.pytorch
36fa8b9718228edb4702b039deab924c40b973f5
[ "MIT" ]
null
null
null
""" Visual Genome in Scene Graph Generation by Iterative Message Passing split """ import os import cv2 import json import h5py import pickle import numpy as np import scipy.sparse import os.path as osp from datasets.imdb import imdb from model.utils.config import cfg from IPython import embed class vg_sggimp(imdb)...
36.579186
114
0.588323
1,102
8,084
4.072595
0.211434
0.057709
0.042112
0.034314
0.235963
0.18672
0.098039
0.07041
0.07041
0.07041
0
0.022312
0.295893
8,084
220
115
36.745455
0.766163
0.169594
0
0.014925
0
0
0.065671
0
0
0
0
0.004545
0.029851
1
0.067164
false
0
0.08209
0
0.208955
0.007463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c279e40781e717d53e7e9d1d3467cb0c61eb0740
6,213
py
Python
src/rfid/__init__.py
whaleygeek/SL030
ff96337cd1619b4a5bd8097a5d5dd0455d2e1674
[ "MIT" ]
null
null
null
src/rfid/__init__.py
whaleygeek/SL030
ff96337cd1619b4a5bd8097a5d5dd0455d2e1674
[ "MIT" ]
8
2020-11-14T11:01:38.000Z
2020-11-18T15:06:07.000Z
src/rfid/__init__.py
whaleygeek/SL030
ff96337cd1619b4a5bd8097a5d5dd0455d2e1674
[ "MIT" ]
2
2020-07-23T14:41:31.000Z
2020-11-19T13:19:38.000Z
# SL030 RFID reader driver for skpang supplied SL030 Mifare reader # (c) 2013-2014 Thinking Binaries Ltd, David Whale #=============================================================================== # CONFIGURATION # # You can change these configuration items either by editing them in this # file, or by refering to th...
26.21519
80
0.63013
859
6,213
4.488941
0.317811
0.010892
0.017116
0.01556
0.210581
0.155342
0.084544
0.069502
0.054461
0.022303
0
0.022273
0.21954
6,213
236
81
26.326271
0.772943
0.404474
0
0.167939
0
0
0.100996
0.012728
0
0
0.013282
0
0
1
0.160305
false
0
0.038168
0.015267
0.412214
0.007634
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27a8632891f52402501c008dbb668b6e46297a0
3,821
py
Python
pyjapt/lexing.py
alejandroklever/pyjapt
21b11fd4b5b21cabcc59673538c473e33af9e646
[ "MIT" ]
8
2020-07-23T06:19:28.000Z
2021-11-06T04:26:47.000Z
pyjapt/lexing.py
alejandroklever/PyJapt
21b11fd4b5b21cabcc59673538c473e33af9e646
[ "MIT" ]
null
null
null
pyjapt/lexing.py
alejandroklever/PyJapt
21b11fd4b5b21cabcc59673538c473e33af9e646
[ "MIT" ]
null
null
null
import re from typing import List, Any, Generator, Tuple, Pattern, Optional, Callable, Dict class Token: """ A Token class. Parameters ---------- lex: str Token's lexeme. token_type: Enum Token's type. """ def __init__(self, lex, token_type, line=0, column=0): ...
33.517544
111
0.576289
478
3,821
4.485356
0.196653
0.041978
0.024254
0.026586
0.04944
0.030784
0
0
0
0
0
0.002631
0.303585
3,821
113
112
33.814159
0.803082
0.092384
0
0.078947
0
0
0.053318
0.006517
0
0
0
0
0
1
0.144737
false
0
0.026316
0.078947
0.276316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27b06a45e2113932d5e033fa31486f2b933313d
3,975
py
Python
src/jobs/management/commands/try_retrain.py
fleur101/predict-python
d40c876d919232bbb77904e050b182c875bc36fa
[ "MIT" ]
12
2018-06-27T08:09:18.000Z
2021-10-10T22:19:04.000Z
src/jobs/management/commands/try_retrain.py
fleur101/predict-python
d40c876d919232bbb77904e050b182c875bc36fa
[ "MIT" ]
17
2018-06-12T17:36:11.000Z
2020-11-16T21:23:22.000Z
src/jobs/management/commands/try_retrain.py
fleur101/predict-python
d40c876d919232bbb77904e050b182c875bc36fa
[ "MIT" ]
16
2018-08-02T14:40:17.000Z
2021-11-12T12:28:46.000Z
import random from django.core.management.base import BaseCommand from pandas import Series from src.cache.cache import put_labelled_logs from src.core.core import get_encoded_logs from src.jobs.models import Job from src.jobs.tasks import prediction_task from src.runtime.tasks import create_prediction_job from src....
38.592233
103
0.585409
477
3,975
4.622642
0.295597
0.058957
0.035374
0.021769
0.179138
0.109297
0.043537
0.026304
0.026304
0.026304
0
0.008277
0.331321
3,975
103
104
38.592233
0.821294
0.066164
0
0.051282
0
0
0.060238
0
0
0
0
0.009709
0.025641
1
0.012821
false
0
0.115385
0
0.153846
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27ba0e5861f097686336335cdd99739a27bfdc4
1,646
py
Python
flydra_camnode/flydra_camnode/camnode_utils.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
45
2017-08-25T06:46:56.000Z
2021-08-29T16:42:49.000Z
flydra_camnode/flydra_camnode/camnode_utils.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
7
2017-10-16T10:46:20.000Z
2020-12-03T16:42:55.000Z
flydra_camnode/flydra_camnode/camnode_utils.py
elhananby/flydra
09b86859b1863700cdea0bbcdd4758da6c83930b
[ "Apache-2.0", "MIT" ]
21
2018-04-11T09:06:40.000Z
2021-12-26T23:38:40.000Z
#emacs, this is -*-Python-*- mode from __future__ import division from __future__ import with_statement import contextlib import threading, Queue class ChainLink(object): """essentially a linked list of threads""" def __init__(self): self._queue = Queue.Queue() self._lock = threading.Lock() ...
27.433333
77
0.592345
202
1,646
4.633663
0.361386
0.042735
0.034188
0.047009
0.115385
0.064103
0
0
0
0
0
0
0.313487
1,646
59
78
27.898305
0.828319
0.191373
0
0.170732
0
0
0.023791
0
0
0
0
0
0
1
0.146341
false
0
0.097561
0
0.341463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27c8a4376df70bee9dccb2ba1429b510d6719df
3,439
py
Python
app.py
Nerolation/Ethereum-Notary-Service-Prototype
ea5487a29813caee1e4be9edac495d89010c593e
[ "MIT" ]
null
null
null
app.py
Nerolation/Ethereum-Notary-Service-Prototype
ea5487a29813caee1e4be9edac495d89010c593e
[ "MIT" ]
null
null
null
app.py
Nerolation/Ethereum-Notary-Service-Prototype
ea5487a29813caee1e4be9edac495d89010c593e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, logging, make_response, json from ethw3 import genkey, create_chain_data, verify_chain_data, create_acct, mine, history_slice from utils_s3 import load_from_fetchlist # Initialize flask an other global variables app = Flask(__name__) address, username, addr,...
37.791209
198
0.628962
385
3,439
5.438961
0.272727
0.042025
0.040115
0.030564
0.234479
0.146132
0.095511
0.095511
0.095511
0.095511
0
0.01935
0.248619
3,439
90
199
38.211111
0.791022
0.012213
0
0.123457
0
0
0.043004
0
0
0
0
0
0
1
0.061728
false
0
0.037037
0
0.17284
0.012346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27d5e7133ef2989b1ce8e0b881cabce3f8f0dab
8,800
py
Python
python/dsbox/planner/common/library.py
RqS/dsbox-ta2
43800d4365a154684fa5b9551c2c1cd21ec7139c
[ "MIT" ]
null
null
null
python/dsbox/planner/common/library.py
RqS/dsbox-ta2
43800d4365a154684fa5b9551c2c1cd21ec7139c
[ "MIT" ]
null
null
null
python/dsbox/planner/common/library.py
RqS/dsbox-ta2
43800d4365a154684fa5b9551c2c1cd21ec7139c
[ "MIT" ]
null
null
null
import json import os from datetime import date from typing import List, Dict from d3m_metadata.metadata import PrimitiveMetadata, PrimitiveFamily, PrimitiveAlgorithmType from d3m import index from dsbox.planner.common.primitive import Primitive from dsbox.schema.profile_schema import DataProfileType as dpt from col...
42.307692
112
0.611932
1,009
8,800
5.166501
0.212091
0.04297
0.031076
0.019183
0.150201
0.116056
0.070209
0.070209
0.05141
0.05141
0
0.003197
0.289091
8,800
207
113
42.512077
0.830083
0.081023
0
0.12963
0
0
0.050672
0
0
0
0
0
0
1
0.111111
false
0
0.067901
0.030864
0.271605
0.030864
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c27e29fee5d31c11bd5413203986db3871f9139b
3,610
py
Python
gmsh_cad/emi_system_gap.py
MiroK/emi-cylinders
ccbbfa51003fc4fe8abc257dee916e229398c520
[ "MIT" ]
null
null
null
gmsh_cad/emi_system_gap.py
MiroK/emi-cylinders
ccbbfa51003fc4fe8abc257dee916e229398c520
[ "MIT" ]
null
null
null
gmsh_cad/emi_system_gap.py
MiroK/emi-cylinders
ccbbfa51003fc4fe8abc257dee916e229398c520
[ "MIT" ]
1
2018-05-30T14:26:59.000Z
2018-05-30T14:26:59.000Z
from dolfin import * parameters['form_compiler']['representation'] = 'uflacs' parameters['form_compiler']['cpp_optimize'] = True parameters['form_compiler']['cpp_optimize_flags'] = '-O3 -ffast-math -march=native' parameters['ghost_mode'] = 'shared_facet' mesh_file = 'cell_grid.h5' comm = mpi_comm_world() h5 = HDF5Fi...
38.404255
84
0.650139
585
3,610
3.94188
0.365812
0.015611
0.028621
0.029922
0.17693
0.107546
0.06765
0.036427
0
0
0
0.024757
0.172022
3,610
93
85
38.817204
0.746738
0.370637
0
0
0
0
0.113839
0
0
0
0
0
0
1
0
false
0
0.019231
0
0.019231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2818a738014513d0cd2309428321fbec20d821d
2,855
py
Python
commands/load_metadata/products.py
DataViva/dataviva-scripts
1e36f11e2849c33b8118cefe1755d312b19c0ecd
[ "MIT" ]
10
2015-05-20T14:41:23.000Z
2020-05-27T22:36:19.000Z
commands/load_metadata/products.py
DataViva/dataviva-scripts
1e36f11e2849c33b8118cefe1755d312b19c0ecd
[ "MIT" ]
11
2018-05-17T14:30:58.000Z
2018-09-06T21:20:34.000Z
commands/load_metadata/products.py
DataViva/dataviva-scripts
1e36f11e2849c33b8118cefe1755d312b19c0ecd
[ "MIT" ]
12
2015-07-14T13:46:41.000Z
2019-09-20T00:47:10.000Z
import click import pandas import pickle import json from clients import s3, redis @click.command() @click.option('--both', 'upload', flag_value='s3_and_redis', default=True, help='Upload metadata to both s3 and Redis') @click.option('--s3', 'upload', flag_value='only_s3', help='Upload metadata only to s3') @click.op...
33.588235
119
0.561121
322
2,855
4.720497
0.198758
0.110526
0.073684
0.026316
0.454605
0.296711
0.196711
0.146053
0.1
0.1
0
0.01
0.299475
2,855
84
120
33.988095
0.75
0
0
0.161765
0
0
0.190193
0
0
0
0
0
0
1
0.014706
false
0
0.073529
0
0.088235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c282ea17115bac2dbe64555ce16709d1698a3231
5,158
py
Python
docker/entrypoint_benchmark.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
88
2018-03-24T11:57:10.000Z
2022-03-21T13:04:41.000Z
docker/entrypoint_benchmark.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
558
2018-03-14T14:16:30.000Z
2022-03-29T12:48:14.000Z
docker/entrypoint_benchmark.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
41
2018-04-09T11:13:12.000Z
2021-10-05T14:43:11.000Z
#!/usr/bin/env python3 import argparse import os import io import subprocess import sys from tabulate import tabulate def parse_args(): desc = ( 'Performance testing script for OasisLMF input file generation' 'This script expects a set of nested sub directories each containing' 'acc.csv, ...
35.819444
144
0.647732
726
5,158
4.374656
0.283747
0.053212
0.09068
0.049118
0.178841
0.158375
0.095088
0.027078
0.027078
0.027078
0
0.01535
0.216945
5,158
143
145
36.06993
0.770983
0.203373
0
0.063158
0
0.010526
0.208095
0.014154
0
0
0
0
0
1
0.052632
false
0.010526
0.063158
0
0.157895
0.094737
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2844b9558a0aad3fcd5e9e967cacb650e5737e3
1,427
py
Python
GUI/index.py
Abhishek2019/Speech
416827a02279cdafd268ef2748d4f4f52b0f0e15
[ "MIT" ]
null
null
null
GUI/index.py
Abhishek2019/Speech
416827a02279cdafd268ef2748d4f4f52b0f0e15
[ "MIT" ]
null
null
null
GUI/index.py
Abhishek2019/Speech
416827a02279cdafd268ef2748d4f4f52b0f0e15
[ "MIT" ]
null
null
null
# from tkinter import * # root = Tk() # frametop = Frame(root) # framebottom = Frame(root) # frameleft = Frame(framebottom) # frameright = Frame(framebottom) # text = Text(frametop) # scroll = Scrollbar(frametop, command=text.yview) # btn1 = Button(frameleft, text="Course") # btn2 = Button(frameleft, text="Abscences...
29.122449
63
0.716889
220
1,427
4.604545
0.236364
0.078973
0.071076
0.076999
0.40079
0.222113
0.222113
0.222113
0.222113
0.222113
0
0.029898
0.10932
1,427
49
64
29.122449
0.767113
0.684653
0
0
0
0
0.018779
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c288905ef79b8a14c466f9e48a449c4d916507ed
7,815
py
Python
summer21/mpqa_dataprocessing/mpqa3_to_dict.py
gu-sentiment-2021/sent
a3874a7286c965684d92fcf78e4091ad3a33aae1
[ "MIT" ]
null
null
null
summer21/mpqa_dataprocessing/mpqa3_to_dict.py
gu-sentiment-2021/sent
a3874a7286c965684d92fcf78e4091ad3a33aae1
[ "MIT" ]
null
null
null
summer21/mpqa_dataprocessing/mpqa3_to_dict.py
gu-sentiment-2021/sent
a3874a7286c965684d92fcf78e4091ad3a33aae1
[ "MIT" ]
null
null
null
# mpqa3_to_dict helps to convert MPQA stand-off format to python dictionaries. # It provides the following functionalities: # 1) Clean up the MPQA 3.0 corpus # 2) Convert an MPQA document to a dictionary # 3) Convert an entire corpus to a dictionary import os import re HAS_LIST_OF_IDS = [ # These attributes may have ...
47.078313
124
0.583109
955
7,815
4.671204
0.235602
0.016812
0.018157
0.012329
0.325263
0.237839
0.226182
0.19054
0.136516
0.121946
0
0.015697
0.307102
7,815
165
125
47.363636
0.808126
0.346129
0
0.116505
0
0
0.172477
0.043273
0
0
0
0
0
1
0.048544
false
0
0.019417
0
0.135922
0.009709
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c28cb4aefdf64fe8ea7d0c518f1c67e77950a4da
2,534
py
Python
marketgrab/views.py
colinmcglone/window-time
74ed90440b9bb93fa569534c7557972242569d3a
[ "MIT" ]
null
null
null
marketgrab/views.py
colinmcglone/window-time
74ed90440b9bb93fa569534c7557972242569d3a
[ "MIT" ]
null
null
null
marketgrab/views.py
colinmcglone/window-time
74ed90440b9bb93fa569534c7557972242569d3a
[ "MIT" ]
null
null
null
import os from django.conf import * from django.shortcuts import render_to_response, render from django.http import HttpResponse from .models import Data, MovingAvg, Movements, Sigma from datetime import datetime from django.template import RequestContext def index(request): ticker = Data.objects.values_list('tic...
33.786667
97
0.609708
308
2,534
4.938312
0.282468
0.050625
0.112426
0.118343
0.275477
0.259698
0.259698
0.191322
0.191322
0
0
0.003156
0.249803
2,534
74
98
34.243243
0.796949
0
0
0
0
0
0.131413
0.02644
0
0
0
0
0
1
0.052632
false
0
0.122807
0
0.22807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c291f9afa8d4a69dbe3f4791438b896f2870685a
1,690
py
Python
setup.py
krismolendyke/den
aa18bb3ffc07688dbe5f9cbea9ba39fb9b67d37d
[ "MIT" ]
6
2015-06-20T21:54:21.000Z
2017-11-29T03:00:15.000Z
setup.py
krismolendyke/den
aa18bb3ffc07688dbe5f9cbea9ba39fb9b67d37d
[ "MIT" ]
1
2017-02-13T09:08:54.000Z
2017-02-13T09:33:46.000Z
setup.py
krismolendyke/den
aa18bb3ffc07688dbe5f9cbea9ba39fb9b67d37d
[ "MIT" ]
null
null
null
"""setuptools entry point.""" from codecs import open from os import path from setuptools import find_packages, setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, "README.rst"), encoding="utf-8") as f: LONG_DESCRIPTION = f.read() with open(path.join(HERE, "src", "den", "VERSION")) as ve...
29.649123
118
0.57929
187
1,690
5.090909
0.59893
0.047269
0.078782
0.033613
0.042017
0
0
0
0
0
0
0.019033
0.253846
1,690
56
119
30.178571
0.735924
0.013609
0
0.08
0
0
0.344973
0.014449
0
0
0
0
0
1
0
false
0
0.06
0
0.06
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c293b3a4ad307a538250b63b7b3b8429f3fda47c
25,807
py
Python
apgl/util/Util.py
mathemaphysics/APGL
6ca7c176e04017feeae00c4cee069fd126df0fbc
[ "BSD-3-Clause" ]
13
2015-02-19T14:39:09.000Z
2021-04-12T01:22:32.000Z
apgl/util/Util.py
mathemaphysics/APGL
6ca7c176e04017feeae00c4cee069fd126df0fbc
[ "BSD-3-Clause" ]
1
2020-07-29T07:09:33.000Z
2020-07-29T07:09:33.000Z
apgl/util/Util.py
mathemaphysics/APGL
6ca7c176e04017feeae00c4cee069fd126df0fbc
[ "BSD-3-Clause" ]
7
2015-03-16T07:26:49.000Z
2021-01-12T06:57:27.000Z
''' Created on 31 Jul 2009 @author: charanpal ''' from __future__ import print_function import sys import os import numpy from contextlib import contextmanager import numpy.random as rand import logging import scipy.linalg import scipy.sparse as sparse import scipy.special import pickle from apgl.util.Parameter imp...
35.016282
209
0.551168
3,282
25,807
4.308349
0.17794
0.037129
0.003819
0.006223
0.357992
0.32744
0.283239
0.263154
0.212447
0.181117
0
0.016031
0.337699
25,807
736
210
35.063859
0.811257
0.242454
0
0.320186
0
0.00464
0.078187
0
0
0
0
0
0
1
0.088167
false
0.00232
0.032483
0
0.213457
0.025522
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c29512076f4adfe1c703eb019e1315c92cfb30fe
3,342
py
Python
tasks/utilities/runner.py
faisaltheparttimecoder/carelogBackend
b0635e72338e14dad24f1ee0329212cd60a3e83a
[ "MIT" ]
1
2020-04-09T11:45:14.000Z
2020-04-09T11:45:14.000Z
tasks/utilities/runner.py
faisaltheparttimecoder/carelogBackend
b0635e72338e14dad24f1ee0329212cd60a3e83a
[ "MIT" ]
2
2020-06-05T18:04:30.000Z
2021-06-10T20:11:46.000Z
tasks/utilities/runner.py
faisaltheparttimecoder/carelogBackend
b0635e72338e14dad24f1ee0329212cd60a3e83a
[ "MIT" ]
null
null
null
import datetime, os from django.contrib.auth.models import User from products.lib.data_load import LoadProducts from zendesk.lib.load_tickets import LoadTickets from tasks.engine.maintenance import Maintenance from tasks.models import LastRun class TaskRunner: def __init__(self): """ Initialize t...
37.550562
124
0.648115
413
3,342
4.937046
0.254237
0.054929
0.048063
0.079451
0.33693
0.205493
0.194213
0.093183
0.053948
0.053948
0
0.01201
0.252543
3,342
88
125
37.977273
0.804243
0.131957
0
0
0
0
0.123429
0.044346
0
0
0
0
0
1
0.153846
false
0.038462
0.115385
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
c298455b91c04670dd6ada8face196e4608ff57c
1,667
py
Python
code/mlp-test.py
asdlei99/firewall
fd2819fab4cfde9989350397300efd4321e197fa
[ "MIT" ]
1
2020-03-01T21:17:01.000Z
2020-03-01T21:17:01.000Z
code/mlp-test.py
asdlei99/firewall
fd2819fab4cfde9989350397300efd4321e197fa
[ "MIT" ]
null
null
null
code/mlp-test.py
asdlei99/firewall
fd2819fab4cfde9989350397300efd4321e197fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Oct 23 10:51:14 2018 @author: peter """ from sklearn.feature_extraction.text import TfidfVectorizer import os from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier from sklearn import metrics import urllib.parse from sklearn.ex...
27.327869
98
0.720456
238
1,667
4.945378
0.487395
0.046729
0.023789
0.018692
0.025489
0.025489
0
0
0
0
0
0.018271
0.146371
1,667
61
99
27.327869
0.808855
0.068386
0
0
0
0
0.076023
0
0
0
0
0
0
1
0.025641
false
0
0.179487
0
0.230769
0.128205
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c298b609bf3203502c3817910d7a265918d513ee
3,176
py
Python
crud.py
wileeam/discount-code-service
74ccd0564115c636ed8d825e41d8e7d1bec33ded
[ "Apache-2.0" ]
null
null
null
crud.py
wileeam/discount-code-service
74ccd0564115c636ed8d825e41d8e7d1bec33ded
[ "Apache-2.0" ]
null
null
null
crud.py
wileeam/discount-code-service
74ccd0564115c636ed8d825e41d8e7d1bec33ded
[ "Apache-2.0" ]
null
null
null
import random import string from sqlalchemy.orm import Session import models, schemas def get_brand(db: Session, brand_id: int): return db.query(models.Brand).filter(models.Brand.id == brand_id).first() def get_brand_by_name(db: Session, name: str): return db.query(models.Brand).filter(models.Brand.name ==...
34.521739
86
0.573992
389
3,176
4.501285
0.18509
0.071959
0.05197
0.075957
0.551685
0.463735
0.429469
0.337521
0.248429
0.248429
0
0.010228
0.322733
3,176
91
87
34.901099
0.803812
0
0
0.271429
0
0
0.040302
0
0
0
0
0
0
1
0.142857
false
0
0.057143
0.057143
0.342857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c29a89217076d97f8ff62faec004446052c3802d
14,431
py
Python
consai2_game/scripts/example/actions/defense.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
4
2019-12-16T12:17:32.000Z
2020-02-15T04:45:47.000Z
consai2_game/scripts/example/actions/defense.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
null
null
null
consai2_game/scripts/example/actions/defense.py
ibis-ssl/consai2-ibis
2b7d67007703fa49fc7290e92e12481ba48a9a93
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 SSL-Roots # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
34.857488
119
0.654147
1,759
14,431
5.026151
0.192723
0.058817
0.036534
0.012668
0.426309
0.372356
0.312861
0.264789
0.245334
0.177356
0
0.011367
0.26845
14,431
413
120
34.941889
0.825992
0.224101
0
0.281818
0
0
0.02424
0
0
0
0
0
0
1
0.027273
false
0
0.045455
0.004545
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c29b8867909e2528de5c43aad2904d281f32bd76
454
py
Python
python/py-collections/most-commons.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
python/py-collections/most-commons.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
python/py-collections/most-commons.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Python > Collections > Company Logo # Print the number of character occurrences in descending order. # # https://www.hackerrank.com/challenges/most-commons/problem # from collections import Counter from itertools import groupby name = input() nb = 0 for c, g in groupby(Counter(name).most_common(), key=lambda x: x[...
23.894737
69
0.65859
70
454
4.257143
0.628571
0.04698
0.053691
0.067114
0
0
0
0
0
0
0
0.016949
0.220264
454
18
70
25.222222
0.824859
0.345815
0
0.2
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2a18f5087df24218cafcfe623033e7eac9d54d7
16,181
py
Python
Kafka/automated/dedup_test.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
73
2018-10-17T19:48:44.000Z
2022-03-24T10:28:32.000Z
Kafka/automated/dedup_test.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
1
2019-03-04T07:15:29.000Z
2019-03-04T07:31:49.000Z
Kafka/automated/dedup_test.py
allensanborn/ChaosTestingCode
36682e9ec70659f8e6a684e53fff6968bb5d15a2
[ "MIT" ]
35
2018-10-20T23:37:57.000Z
2022-03-30T13:48:57.000Z
#!/usr/bin/env python from confluent_kafka import Producer, Consumer, KafkaError import sys import time import subprocess from datetime import datetime import threading from collections import defaultdict import re import uuid def log(text, to_file=False): global output_file print(text) if to_file: ...
37.630233
305
0.596131
1,980
16,181
4.653535
0.167172
0.030389
0.017365
0.011721
0.474929
0.394834
0.348817
0.33232
0.297482
0.280117
0
0.013132
0.265867
16,181
430
306
37.630233
0.762522
0.219022
0
0.254545
0
0.025455
0.270966
0.108339
0
0
0
0
0
1
0.047273
false
0
0.032727
0
0.090909
0.021818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2a47a378106287329bd3e25e1d300fbd9312bc2
643
py
Python
apps/store/permissions.py
JimenezJC/cozy-exchange
131576e8159df8bab2ff680283ed55e66abaaa1d
[ "MIT" ]
null
null
null
apps/store/permissions.py
JimenezJC/cozy-exchange
131576e8159df8bab2ff680283ed55e66abaaa1d
[ "MIT" ]
null
null
null
apps/store/permissions.py
JimenezJC/cozy-exchange
131576e8159df8bab2ff680283ed55e66abaaa1d
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission, SAFE_METHODS class IsOwnerOrReadOnly(BasePermission): message = 'You must be the owner of this object' def has_object_permission(self, request, view, obj): if request.method in SAFE_METHODS: return True return obj.seller == re...
33.842105
74
0.709176
83
643
5.39759
0.457831
0.073661
0.107143
0.125
0.464286
0.464286
0.464286
0.464286
0.464286
0.464286
0
0
0.219285
643
18
75
35.722222
0.89243
0
0
0.461538
0
0
0.14619
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2a9d8d15587245ae91d5e2b5d778ffa6fc78c2f
13,246
py
Python
sg_covid_impact/complexity.py
nestauk/sg_covid_impact
0d52e643280cc6b06611759d4464dec82949ae05
[ "MIT" ]
2
2020-10-19T16:30:59.000Z
2021-03-17T13:11:50.000Z
sg_covid_impact/complexity.py
nestauk/sg_covid_impact
0d52e643280cc6b06611759d4464dec82949ae05
[ "MIT" ]
67
2020-10-07T09:34:38.000Z
2021-04-06T08:46:49.000Z
sg_covid_impact/complexity.py
nestauk/sg_covid_impact
0d52e643280cc6b06611759d4464dec82949ae05
[ "MIT" ]
null
null
null
import logging import numpy as np import pandas as pd import scipy.stats as ss from scipy.linalg import eig from numba import jit import sg_covid_impact # from mi_scotland.utils.pandas import preview logger = logging.getLogger(__name__) np.seterr(all="raise") # Raise errors on floating point errors def process_c...
29.968326
88
0.616337
1,855
13,246
4.29434
0.173046
0.048958
0.033141
0.025107
0.429199
0.382375
0.34459
0.340949
0.340949
0.334923
0
0.008394
0.262494
13,246
441
89
30.036281
0.807043
0.448437
0
0.215909
0
0
0.039071
0.008297
0
0
0
0.002268
0
1
0.090909
false
0.005682
0.039773
0
0.221591
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2aaa982479408d6fca2ceb47bf8d2f924d7e364
768
py
Python
Exercicios/Ex019.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
2
2021-05-21T23:17:44.000Z
2021-05-22T04:34:37.000Z
Exercicios/Ex019.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
null
null
null
Exercicios/Ex019.py
RenanRibeiroDaSilva/Meu-Aprendizado-Python
280bf2ad132ae0d26255e70b894fa7dbb69a5d01
[ "MIT" ]
null
null
null
'''Ex 019 - Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faça um programa que ajude ele, lendo o nome dos alunos e escrevendo na tela o nome do escolhido.''' print('-' * 15, '>Ex 19<', '-' * 15) from random import choice # Usando Random para sortiar o escolhido. # Recebendo dados. aluno...
33.391304
100
0.716146
121
768
4.545455
0.479339
0.054545
0.063636
0.109091
0.189091
0.189091
0.189091
0
0
0
0
0.02673
0.171875
768
23
101
33.391304
0.83805
0.496094
0
0
0
0
0.314815
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2afa0144857d385ec53c489e4695b2ff1d1fdcf
1,327
py
Python
alipay/aop/api/domain/AlipayOpenAuthUserauthTokenCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenAuthUserauthTokenCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenAuthUserauthTokenCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAuthUserauthTokenCreateModel(object): def __init__(self): self._scopes = None self._user_id = None @property def scopes(self): return self._scopes ...
23.696429
65
0.57046
159
1,327
4.528302
0.251572
0.125
0.097222
0.036111
0.188889
0.108333
0
0
0
0
0
0.001119
0.3263
1,327
55
66
24.127273
0.804251
0.03165
0
0.097561
0
0
0.062451
0
0
0
0
0
0
1
0.170732
false
0
0.04878
0.04878
0.365854
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2b463e3b92836e2fb5a6f0fa7a7587ea2477928
750
py
Python
advanced/image_processing/examples/plot_blur.py
rossbar/scipy-lecture-notes
7f74e6925721c43bd81bf0bee34b4805ac4a3b57
[ "CC-BY-4.0" ]
2,538
2015-01-01T04:58:41.000Z
2022-03-31T21:06:05.000Z
advanced/image_processing/examples/plot_blur.py
rossbar/scipy-lecture-notes
7f74e6925721c43bd81bf0bee34b4805ac4a3b57
[ "CC-BY-4.0" ]
362
2015-01-18T14:16:23.000Z
2021-11-18T16:24:34.000Z
advanced/image_processing/examples/plot_blur.py
rossbar/scipy-lecture-notes
7f74e6925721c43bd81bf0bee34b4805ac4a3b57
[ "CC-BY-4.0" ]
1,127
2015-01-05T14:39:29.000Z
2022-03-25T08:38:39.000Z
""" Blurring of images =================== An example showing various processes that blur an image. """ import scipy.misc from scipy import ndimage import matplotlib.pyplot as plt face = scipy.misc.face(gray=True) blurred_face = ndimage.gaussian_filter(face, sigma=3) very_blurred = ndimage.gaussian_filter(face, sigm...
23.4375
63
0.716
122
750
4.319672
0.483607
0.056926
0.051233
0.074004
0.288425
0.174573
0.174573
0.174573
0.125237
0
0
0.043741
0.116
750
31
64
24.193548
0.751131
0.128
0
0.15
0
0
0.013932
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2b8cf5ed62085b93846cc634a5c0abe566a9d50
4,376
py
Python
smartsnippets_inherit/cms_plugins.py
pbs/django-cms-smartsnippets
61727dbdf44678ebd7df3fbeca8e7e190e364cc8
[ "BSD-3-Clause" ]
5
2015-08-06T14:47:00.000Z
2021-02-17T19:18:27.000Z
smartsnippets_inherit/cms_plugins.py
pbs/django-cms-smartsnippets
61727dbdf44678ebd7df3fbeca8e7e190e364cc8
[ "BSD-3-Clause" ]
11
2015-03-10T23:16:40.000Z
2018-07-01T22:44:55.000Z
smartsnippets_inherit/cms_plugins.py
pbs/django-cms-smartsnippets
61727dbdf44678ebd7df3fbeca8e7e190e364cc8
[ "BSD-3-Clause" ]
5
2015-06-04T17:35:34.000Z
2018-02-08T15:43:59.000Z
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.plugins.utils import downcast_plugins from cms.models.placeholdermodel import Placeholder from cms.models.pluginmodel import CMSPlugin from smartsnippets_inherit.models import InheritPageContent from smartsnippets_inherit.forms i...
37.084746
87
0.662934
469
4,376
6.008529
0.30064
0.023421
0.02555
0.017743
0.017743
0
0
0
0
0
0
0.000622
0.265539
4,376
117
88
37.401709
0.876167
0.058044
0
0.095745
0
0
0.04836
0.02017
0
0
0
0
0
1
0.074468
false
0.010638
0.12766
0.010638
0.393617
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2bbc6212ba14cce222e1171cae69fdb2905ea98
727
py
Python
uploadHelpers.py
BNUZ-China/iGem-Wiki
18216737bbd1d5316e5302ff7202a9fa139ad033
[ "MIT" ]
1
2021-08-28T15:06:10.000Z
2021-08-28T15:06:10.000Z
uploadHelpers.py
BNUZ-China/iGem-Wiki
18216737bbd1d5316e5302ff7202a9fa139ad033
[ "MIT" ]
null
null
null
uploadHelpers.py
BNUZ-China/iGem-Wiki
18216737bbd1d5316e5302ff7202a9fa139ad033
[ "MIT" ]
null
null
null
import os from subprocess import run import pyperclip import webbrowser from urllib import parse location = 'production' def runOnSingleFolder(folder): file_list = os.listdir(os.path.join(location, folder)) for file in file_list: file_noextend = file[:-(len(folder) + 1)] url = f'https://2021....
29.08
129
0.672627
92
727
5.271739
0.608696
0.041237
0.041237
0.074227
0.098969
0
0
0
0
0
0
0.010292
0.198074
727
24
130
30.291667
0.821612
0
0
0
0
0.05
0.218707
0.037139
0
0
0
0
0
1
0.05
false
0
0.25
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2bd92ea5b65d1f42b8e2aa98a412fc4debb102e
1,180
py
Python
Snake.py
ZippyCodeYT/Zippy_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
64
2021-07-11T17:56:42.000Z
2022-03-28T14:17:53.000Z
Snake.py
ZippyCodeYT/Zippy_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
9
2021-07-10T23:26:39.000Z
2022-03-04T17:39:57.000Z
Snake.py
ZippyCodeYT/Ursina_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
57
2021-07-14T17:09:46.000Z
2022-03-31T08:55:51.000Z
from ursina import * app = Ursina() snake = Entity(model='cube', texture = 'assets\snake', scale=0.4, z=-1, collider='box') ground = Entity(model='cube', texture='grass',rotation=(90,0,0),scale=(5,1,5), z=1) apple = Entity(model='cube', texture='assets\\apple', scale=0.4, position=(1,-1,-1), collider='mesh') body = [...
16.857143
101
0.572881
206
1,180
3.271845
0.320388
0.081602
0.111276
0.097923
0.249258
0.166172
0.062315
0
0
0
0
0.056399
0.218644
1,180
69
102
17.101449
0.67462
0
0
0.108108
0
0
0.073721
0
0
0
0
0
0
1
0.054054
false
0
0.054054
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2c31ca71ec1d801042e3c41eac4e04e937da0de
11,186
py
Python
instance_selection/_DROP3.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
3
2021-12-10T09:04:18.000Z
2022-01-22T15:03:19.000Z
instance_selection/_DROP3.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
107
2021-12-02T07:43:11.000Z
2022-03-31T11:02:46.000Z
instance_selection/_DROP3.py
dpr1005/Semisupervised-learning-and-instance-selection-methods
646d9e729c85322e859928e71a3241f2aec6d93d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Filename: DROP3.py # @Author: Daniel Puente Ramírez # @Time: 31/12/21 16:00 # @Version: 5.0 import copy from sys import maxsize import numpy as np import pandas as pd from sklearn.neighbors import NearestNeighbors from .utils import transform class...
39.111888
85
0.614339
1,421
11,186
4.616467
0.187192
0.045274
0.029268
0.029726
0.347713
0.273323
0.228506
0.207774
0.161738
0.15122
0
0.010308
0.314858
11,186
285
86
39.249123
0.845642
0.361345
0
0.170068
0
0
0.001544
0
0
0
0
0
0
1
0.047619
false
0
0.040816
0
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2c78be72ea72b242adb4ca29ed829fd6b4d5b20
1,445
py
Python
set4/challenge27.py
solfer/cryptopals_python
6b22981a663b3dd2ef5fb5c30b1a6dc13eb0af1a
[ "MIT" ]
null
null
null
set4/challenge27.py
solfer/cryptopals_python
6b22981a663b3dd2ef5fb5c30b1a6dc13eb0af1a
[ "MIT" ]
null
null
null
set4/challenge27.py
solfer/cryptopals_python
6b22981a663b3dd2ef5fb5c30b1a6dc13eb0af1a
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from Crypto.Cipher import AES from random import randint # https://www.cryptopals.com/sets/4/challenges/27 # Recover the key from CBC with IV=Key import sys sys.path.append('..') from cryptopals import ctr,xor,random_aes_key,cbc_decrypt,cbc_encrypt def random_aes_key(blocksize=16): return...
21.567164
69
0.632526
213
1,445
4.192488
0.389671
0.026876
0.040314
0.047032
0.076148
0.076148
0.076148
0.076148
0.076148
0.076148
0
0.029331
0.244983
1,445
66
70
21.893939
0.789184
0.115571
0
0.1875
0
0
0.029851
0
0
0
0.003142
0
0
1
0.125
false
0
0.083333
0.041667
0.354167
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2c80dfda0a5984d9ce2a209c4604c7a22beaa47
577
wsgi
Python
testproject/testproject.wsgi
c4mb0t/django-setman
6551e3f6367bf8ee7c8f91e893c9e8439428f28a
[ "BSD-3-Clause" ]
1
2015-05-30T15:05:14.000Z
2015-05-30T15:05:14.000Z
testproject/testproject.wsgi
c4mb0t/django-setman
6551e3f6367bf8ee7c8f91e893c9e8439428f28a
[ "BSD-3-Clause" ]
null
null
null
testproject/testproject.wsgi
c4mb0t/django-setman
6551e3f6367bf8ee7c8f91e893c9e8439428f28a
[ "BSD-3-Clause" ]
null
null
null
import os import sys DIRNAME = os.path.abspath(os.path.dirname(__file__)) rel = lambda *x: os.path.abspath(os.path.join(DIRNAME, *x)) PROJECT_DIR = rel('..') activate_this = rel('env', 'bin', 'activate_this.py') # Activate virtualenv execfile(activate_this, {'__file__': activate_this}) os.environ['DJANGO_SETTINGS_...
26.227273
72
0.753899
83
577
5.012048
0.53012
0.057692
0.0625
0.072115
0.091346
0
0
0
0
0
0
0
0.105719
577
21
73
27.47619
0.806202
0.155979
0
0
0
0
0.196281
0.045455
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
c2caaf55603ef2c7129fc78578663a36d8c83697
8,057
py
Python
ntp/modules/generate.py
Michiel29/ntp-release
567bf1ca823eeef5eeb2d63bbe16023ea63af766
[ "Apache-2.0" ]
3
2019-07-03T11:25:12.000Z
2019-11-28T20:24:03.000Z
ntp/modules/generate.py
Michiel29/ntp-release
567bf1ca823eeef5eeb2d63bbe16023ea63af766
[ "Apache-2.0" ]
null
null
null
ntp/modules/generate.py
Michiel29/ntp-release
567bf1ca823eeef5eeb2d63bbe16023ea63af766
[ "Apache-2.0" ]
null
null
null
"""Functions for generating random data with injected relationships""" from itertools import product import os import json import re import random import numpy as np from numpy import random as rd from scipy.special import comb from ntp.util.util_kb import load_from_list def gen_relationships(n_pred, n_rel, body_...
37.129032
163
0.666749
1,099
8,057
4.707916
0.183803
0.040588
0.008118
0.014882
0.177039
0.146115
0.120603
0.096637
0.074604
0.058369
0
0.006255
0.245997
8,057
216
164
37.300926
0.845432
0.251582
0
0.153846
0
0.007692
0.016672
0
0
0
0
0
0
1
0.092308
false
0
0.069231
0
0.261538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2cabc8b7c10f234c2f764e400a0eb0ee368ade4
1,116
py
Python
accounts/tests/test_account_views.py
borzecki/django-paymate
960e1dcce2682e57374663d87e47c5cff0c7aae4
[ "MIT" ]
null
null
null
accounts/tests/test_account_views.py
borzecki/django-paymate
960e1dcce2682e57374663d87e47c5cff0c7aae4
[ "MIT" ]
null
null
null
accounts/tests/test_account_views.py
borzecki/django-paymate
960e1dcce2682e57374663d87e47c5cff0c7aae4
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from accounts.models import Account from accounts.serializers import AccountSerializer from .utils import create_accounts class AccountViewsTests(APITestCase): def test_create_account(self): """...
32.823529
97
0.689964
131
1,116
5.770992
0.419847
0.099206
0.09127
0.058201
0.140212
0.140212
0.140212
0.140212
0.140212
0
0
0.010181
0.207885
1,116
33
98
33.818182
0.845023
0.089606
0
0.1
0
0
0.047472
0
0
0
0
0
0.25
1
0.1
false
0
0.3
0
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2cb04716bb5f1c7ce9e0998301f2ac347c3c6dd
202
py
Python
CTF/Pico2017/level_two/forensics/little_school_bus/solve.py
RegaledSeer/netsecnoobie
d3366937ec8c67a9742f61e47698239ae693af49
[ "MIT" ]
null
null
null
CTF/Pico2017/level_two/forensics/little_school_bus/solve.py
RegaledSeer/netsecnoobie
d3366937ec8c67a9742f61e47698239ae693af49
[ "MIT" ]
null
null
null
CTF/Pico2017/level_two/forensics/little_school_bus/solve.py
RegaledSeer/netsecnoobie
d3366937ec8c67a9742f61e47698239ae693af49
[ "MIT" ]
null
null
null
#!/usr/bin/python3 FILE_PATH = "./littleschoolbus.bmp" with open(FILE_PATH,"rb") as f: bytes = bytearray(f.read()) result = "" for byte in bytes[54:]: result += str(byte & 1) print(result)
14.428571
35
0.633663
30
202
4.2
0.766667
0.126984
0
0
0
0
0
0
0
0
0
0.024242
0.183168
202
13
36
15.538462
0.739394
0.084158
0
0
0
0
0.125
0.11413
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2ce62208e5d0f3a5f97c461255fe7d85b8afbee
13,528
py
Python
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
import numpy import os import json import cv2 import csv import os.path as osp import mmcv import numpy as np def isgood(w,h): if w<2 or h<2: return False if w /h >10.0 or h/w >10.0: return False return True def bbox_iou(box1, box2): b1_x1, b1_y1, b1_x2, b1_y2 = box1 ...
53.05098
190
0.53563
1,647
13,528
4.139648
0.112325
0.066882
0.059842
0.054855
0.675125
0.64095
0.600176
0.567762
0.559255
0.533441
0
0.023387
0.329908
13,528
254
191
53.259843
0.728737
0.070373
0
0.514851
0
0
0.046514
0.0268
0
0
0
0
0.019802
1
0.019802
false
0
0.044554
0
0.084158
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2d008457b1988d06b4f36156a0cb0305d850324
1,121
py
Python
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
11
2022-01-10T13:49:39.000Z
2022-01-11T05:57:45.000Z
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
null
null
null
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyleft 2021 Sidon Duarte # import http import sys from typing import Any import colorama import requests from rabbitgetapi import cli from rabbitgetapi import exceptions from rabbitgetapi import build_parser def main() -> Any: try: result = cli.dispatch(sys.argv[1:]) excep...
26.069767
75
0.674398
145
1,121
4.917241
0.455172
0.056101
0.092567
0.061711
0.053296
0
0
0
0
0
0
0.007973
0.216771
1,121
42
76
26.690476
0.8041
0.042819
0
0
0
0
0.169159
0.096262
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
c2d2914bf2009ddae6cb71f0693560922df3f83f
12,182
py
Python
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
1
2022-03-25T05:05:55.000Z
2022-03-25T05:05:55.000Z
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
import os import numpy as np import torch from torch.utils.data import Dataset import math import torch import torch.nn.functional as F import random import torchvision.datasets from torchvision.transforms import * from torch.utils.data import DataLoader from torchvision import datasets, transforms from PIL import Imag...
40.471761
136
0.613692
1,551
12,182
4.693746
0.112186
0.057692
0.063462
0.051923
0.674038
0.601923
0.562363
0.540522
0.514011
0.493681
0
0.044679
0.244869
12,182
300
137
40.606667
0.746712
0.015843
0
0.456929
0
0
0.047424
0
0
0
0
0
0
1
0.093633
false
0
0.05618
0.052434
0.243446
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2d36fb4456d02f1a3cbf08824eb8cded948400d
3,029
py
Python
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
353
2019-01-03T09:53:17.000Z
2022-03-27T12:24:45.000Z
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
21
2019-01-06T21:50:40.000Z
2021-08-19T11:33:15.000Z
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
72
2019-03-07T21:59:55.000Z
2022-03-18T04:59:22.000Z
from app import crud from app.db.database import get_default_bucket from app.models.config import ITEM_DOC_TYPE from app.models.item import ItemCreate, ItemUpdate from app.tests.utils.user import create_random_user from app.tests.utils.utils import random_lower_string def test_create_item(): title = random_lower_...
35.22093
88
0.719379
407
3,029
5.113022
0.115479
0.06247
0.081691
0.061509
0.606439
0.581932
0.540605
0.508409
0.476694
0.476694
0
0.008509
0.18521
3,029
85
89
35.635294
0.834684
0
0
0.441558
0
0
0
0
0
0
0
0
0.246753
1
0.051948
false
0
0.077922
0
0.12987
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2d52797a4915efe6cf6a4bf7bb065954ba40d31
12,271
py
Python
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
4
2021-10-10T15:31:23.000Z
2022-02-10T00:17:55.000Z
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
null
null
null
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
2
2021-12-07T22:04:54.000Z
2022-02-10T07:14:42.000Z
##**************************************************************************************## ## Step1. Load Packages and Input Data ## ##**************************************************************************************## import pandas as pd import nu...
39.079618
193
0.677043
1,856
12,271
4.13847
0.140086
0.021482
0.017185
0.009113
0.408931
0.327562
0.217289
0.17719
0.12928
0.118995
0
0.03163
0.142042
12,271
313
194
39.204473
0.697948
0.142776
0
0.105727
0
0
0.074832
0.053757
0
0
0
0
0
1
0.013216
false
0
0.123348
0
0.14978
0.017621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2d5cfe13e3252b73bc2d506fd5f87805ad7437d
6,660
py
Python
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
from osgeo import ogr from typing import List, Union import math import os import warnings import numpy as np from gdalhelpers.checks import values_checks, datasource_checks, layer_checks from gdalhelpers.helpers import layer_helpers, datasource_helpers, geometry_helpers def create_points_at_angles_distance_in_direct...
43.815789
131
0.640841
793
6,660
5.064313
0.218159
0.062998
0.042082
0.058267
0.332918
0.231076
0.166335
0.12002
0.086155
0.038845
0
0.006578
0.292342
6,660
151
132
44.10596
0.845534
0.261862
0
0.166667
0
0
0.054275
0
0
0
0
0
0
1
0.012821
false
0
0.102564
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2d8aaeb7cd07de199497544ee9bb719305bd800
1,380
py
Python
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
null
null
null
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
null
null
null
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
1
2021-03-07T20:46:43.000Z
2021-03-07T20:46:43.000Z
"""Routes related to ingesting data from the robot""" import os import logging from pathlib import Path from flask import Blueprint, request, current_app from pydantic import ValidationError from werkzeug.utils import secure_filename from polybot.models import UVVisExperiment logger = logging.getLogger(__name__) b...
30
70
0.674638
173
1,380
5.248555
0.491329
0.044053
0.026432
0.044053
0.061674
0
0
0
0
0
0
0
0.216667
1,380
45
71
30.666667
0.839963
0.118841
0
0.125
0
0
0.19103
0
0
0
0
0
0
1
0.03125
false
0
0.21875
0
0.34375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2db78f1fd6b3b030ac80b311ec8e5f6c6ad3962
1,572
py
Python
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
1
2017-11-15T23:24:35.000Z
2017-11-15T23:24:35.000Z
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
null
null
null
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
null
null
null
# This file is part of beets. # Copyright 2015 # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, pu...
30.230769
71
0.720738
205
1,572
5.390244
0.526829
0.049774
0.023529
0.052489
0.063348
0
0
0
0
0
0
0.003962
0.197201
1,572
51
72
30.823529
0.871632
0.382952
0
0
0
0
0.027197
0
0
0
0
0
0.08
1
0.16
false
0
0.24
0.04
0.48
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2dc055259ce8bd609c68240256323675bd4a1ec
1,236
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
34.333333
107
0.706311
156
1,236
5.570513
0.583333
0.069045
0.029919
0.036824
0
0
0
0
0
0
0
0.011329
0.214401
1,236
35
108
35.314286
0.883625
0.662621
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2de7d7431503150ac6343d65fe89abecb277cb0
3,462
py
Python
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
null
null
null
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
20
2018-11-26T16:22:46.000Z
2018-12-21T10:08:25.000Z
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
3
2019-01-24T15:39:42.000Z
2019-09-25T17:57:08.000Z
from rest_framework import status from django.urls import reverse from authors.apps.articles.models import Article from authors.base_test_config import TestConfiguration slug = None class TestLikeDislike(TestConfiguration): """ Class to test for liking and disliking of articles. """ def create_artic...
28.61157
76
0.593299
391
3,462
5.127877
0.2711
0.053865
0.056858
0.080798
0.501746
0.501746
0.46783
0.367082
0.340648
0.340648
0
0.006383
0.321202
3,462
120
77
28.85
0.846809
0.223859
0
0.435484
0
0
0.123573
0.027155
0
0
0
0
0.096774
1
0.064516
false
0
0.064516
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2dfea80584df5547d3541ae560b3208410a1788
3,875
py
Python
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-10-13T18:58:33.000Z
2021-08-07T12:46:22.000Z
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-12-16T21:25:34.000Z
2022-02-10T00:11:22.000Z
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
4
2020-02-01T11:23:51.000Z
2021-12-13T12:27:18.000Z
""" ======================= Yahoo Finance source ======================= """ import re import requests import time from json import loads from bs4 import BeautifulSoup from yahoofinancials import YahooFinancials # Yahoo Finance data source class YahooFinanceSource(YahooFinancials): def __init__(self, ticker): ...
40.789474
112
0.627097
482
3,875
4.755187
0.248963
0.045812
0.030541
0.037086
0.198953
0.132635
0.116492
0.08726
0.08726
0.08726
0
0.001733
0.255484
3,875
94
113
41.223404
0.792721
0.116645
0
0.179104
0
0
0.087709
0.008214
0
0
0
0
0
1
0.104478
false
0
0.089552
0
0.298507
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2e195ab4b278f23e01854b0146790e6742d3324
26,510
py
Python
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 12 10:02:58 2020 @author: Xavier Jimenez """ #------------------------------------------------------------------# # # # # # Imports # # # # # #------------------------------------------------------------------# import numpy as np import os import ...
54.102041
289
0.515805
2,766
26,510
4.714389
0.110991
0.047546
0.044172
0.030675
0.67385
0.640567
0.615951
0.602377
0.572316
0.562653
0
0.010234
0.295964
26,510
489
290
54.212679
0.687634
0.228631
0
0.412186
0
0.003584
0.117851
0.050423
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0.132616
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2e55b26934d85e03276f6736007bed25c578301
1,348
py
Python
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
10
2022-03-16T02:14:56.000Z
2022-03-31T19:01:34.000Z
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
1
2022-03-18T06:43:16.000Z
2022-03-18T06:56:35.000Z
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
2
2022-03-19T13:06:28.000Z
2022-03-19T16:08:18.000Z
import torch.nn as nn import torch import torch.nn.functional as F import absl.flags as flags from absl import app FLAGS = flags.FLAGS # Point_center encode the segmented point cloud # one more conv layer compared to original paper class Pose_Ts(nn.Module): def __init__(self): super(Pose_Ts, self).__ini...
25.433962
55
0.58457
217
1,348
3.516129
0.37788
0.02097
0.068152
0.039318
0.028834
0
0
0
0
0
0
0.079673
0.273739
1,348
52
56
25.923077
0.699694
0.068991
0
0
0
0
0.00639
0
0
0
0
0
0
1
0.076923
false
0
0.128205
0
0.25641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2e64fced5d7c9dff05319da1da37700db19293c
2,653
py
Python
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
from greenflow.dataframe_flow import Node from greenflow.dataframe_flow.portsSpecSchema import (ConfSchema, PortsSpecSchema) from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.util import get_file_path from greenflow.dataframe...
31.211765
74
0.547682
243
2,653
5.72428
0.329218
0.051761
0.07908
0.093458
0.071891
0
0
0
0
0
0
0
0.366001
2,653
84
75
31.583333
0.826992
0.043724
0
0.030303
0
0
0.088321
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2e989f1d471ff586e3048f193d3b0ec35055cc5
623
py
Python
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
import mandelbrot as mand from PIL import Image width = 1280 height = 720 scale = 2 def pixelToCoord( pos ): (x, y) = pos return ( 4*(x/height - 0.5)/scale , -4*(y/height - 0.5)/scale) def main(): me = mand.mandelbrot(2) img = Image.new('RGB', (width,height), color = 'white') for y in range(0,...
22.25
67
0.5313
95
623
3.4
0.494737
0.018576
0.049536
0.080495
0
0
0
0
0
0
0
0.06772
0.288925
623
27
68
23.074074
0.6614
0
0
0
0
0
0.049759
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.238095
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
c2ea645b92efeff22da8081f24ec4c1af5469ade
1,699
py
Python
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn.utils.weight_init import trunc_normal_ #adapted from open-mmlab implementation of swin transformer class RelativePositionBias(nn.Module): def __init__(self, window_size=(7, 7), num_heads=8 ): su...
38.613636
78
0.638611
235
1,699
4.370213
0.344681
0.031159
0.054528
0.070107
0.195716
0
0
0
0
0
0
0.03083
0.255444
1,699
43
79
39.511628
0.781028
0.093584
0
0.055556
0
0
0.014984
0.014984
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2ecefbb6392e5044c1bce089bc79ba2086836e6
1,714
py
Python
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
15
2021-06-25T05:02:37.000Z
2022-03-20T08:34:15.000Z
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
2
2022-01-21T05:14:17.000Z
2022-03-23T09:24:45.000Z
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
1
2021-08-18T06:28:58.000Z
2021-08-18T06:28:58.000Z
import torch from utils import get_teacher1, get_teacher2, get_student def collect_model(args, data_info_s, data_info_t1, data_info_t2): """This is the function that constructs the dictionary containing the models and the corresponding optimizers Args: args (parse_args): parser arguments data...
41.804878
113
0.713536
240
1,714
4.85
0.270833
0.120275
0.098797
0.089347
0.27921
0.27921
0.232818
0.232818
0.092784
0
0
0.018315
0.203617
1,714
41
114
41.804878
0.834432
0.405484
0
0
0
0
0.074566
0
0
0
0
0
0
1
0.052632
false
0
0.105263
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
c2f080fa5d08bb1269862977727df7460da362c1
445
py
Python
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
"""Problem 9: Special Pythagorean triplet. Brute force.""" import unittest def find_triple(s): """Returns abc where a^2+b^2=c^2 with a+b+c=s.""" a, b, c = 998, 1, 1 while b < 999: if a**2 + b**2 == c**2: return a*b*c if a == 1: c += 1 b = 1 a...
20.227273
53
0.440449
70
445
2.657143
0.457143
0.043011
0.048387
0.043011
0.064516
0.064516
0
0
0
0
0
0.10566
0.404494
445
21
54
21.190476
0.596226
0.217978
0
0
0
0
0.023739
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2f1d876ec603c325d5fd840f0aed40ac0a43ab5
998
py
Python
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
import sqlite3 from helpers import get_db_path, get_timeframes from traceback import print_tb timeframes = get_timeframes() print(timeframes) for timeframe in timeframes: with sqlite3.connect(get_db_path(timeframe)) as connection: try: c = connection.cursor() print("Cleanin up!"...
28.514286
103
0.576152
116
998
4.87069
0.560345
0.056637
0.031858
0
0
0
0
0
0
0
0
0.005997
0.331663
998
34
104
29.352941
0.841079
0.072144
0
0.083333
0
0
0.221258
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.291667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2f341062556abc813aaebd4a88c681a262c4eb7
8,059
py
Python
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
7
2019-06-26T15:23:14.000Z
2021-12-28T14:16:24.000Z
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
null
null
null
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
4
2019-08-29T19:07:35.000Z
2021-12-28T19:22:11.000Z
from __future__ import division import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec import seaborn as sns import pandas as pd import glob import re from itertools import combinations import matplotlib matplotlib.rcParams['text.usetex'] = True def plot_probabilities(X, probabilities,...
36.631818
173
0.618191
1,207
8,059
3.992544
0.212096
0.041502
0.013073
0.014941
0.470845
0.365844
0.350073
0.313136
0.240506
0.240506
0
0.037975
0.215784
8,059
220
174
36.631818
0.724525
0.025437
0
0.217143
0
0
0.11662
0.015804
0
0
0
0
0
1
0.04
false
0
0.057143
0
0.125714
0.005714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2f74385f195f0884b6d65f78882d41fbb6267cb
19,448
py
Python
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import json import logging import math import os import sys from io import open import numpy as np import torch from torch import nn from torch.nn import CrossEntropyLoss, MSELoss from pytorch_transformers import WEIGHTS_NAME, CONFIG_N...
47.783784
121
0.722285
2,744
19,448
4.925656
0.190962
0.020642
0.014205
0.011986
0.349216
0.295132
0.27116
0.230098
0.19636
0.182302
0
0.009456
0.189737
19,448
406
122
47.901478
0.848268
0.535736
0
0.207547
0
0
0.018452
0.002768
0
0
0
0.002463
0
1
0.106918
false
0
0.09434
0.012579
0.301887
0.031447
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2f98c67de6fff06f026a352c43e196aef39bfda
1,166
py
Python
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
2
2021-11-18T09:35:42.000Z
2021-11-18T14:46:30.000Z
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
null
null
null
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
null
null
null
from setuptools import setup __version__ = '0.0.3' REQUIRES = ['psycopg2-binary'] EXTRAS_REQUIRE = { 'sqlalchemy': ['sqlalchemy'], 'jinjasql': ['jinjasql'], 'pandas': ['jinjasql', 'pandas'], } extras_lists = [vals for k, vals in EXTRAS_REQUIRE.items()] # flattening the values in EXTRAS_REQUIRE from popula...
36.4375
86
0.628645
123
1,166
5.715447
0.536585
0.16643
0.068279
0.071124
0
0
0
0
0
0
0
0.013825
0.255575
1,166
31
87
37.612903
0.796083
0.071184
0
0
0
0
0.218316
0.021277
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2fb06c89af3c0d869e1710b20eb4d1e629dd002
725
py
Python
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os def frames_to_video(inputpath,outputpath,fps): image_array = [] files = [f for f in os.listdir(inputpath) if isfile(join(inputpath, f))] files.sort(key = lambda x: int(x[5:-4])) for i in range(len(files)): img = cv2.imread(inputpath + files[i]) size = ...
29
75
0.66069
113
725
4.159292
0.477876
0.085106
0.055319
0.093617
0.059574
0
0
0
0
0
0
0.020443
0.190345
725
24
76
30.208333
0.780239
0
0
0
0
0
0.055172
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c2febe7880974ca6e91553584ed0bba9eac9b426
5,303
py
Python
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
116
2018-07-11T13:19:56.000Z
2021-07-26T17:22:44.000Z
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
1
2019-02-11T02:25:02.000Z
2019-02-11T17:05:19.000Z
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
21
2018-10-11T23:03:22.000Z
2021-07-14T22:42:08.000Z
import tensorflow as tf import numpy as np import traceback import os.path from .worker import Worker from .param import * from .params import * import logging logger = logging.getLogger(__name__) class HeartbeatHook(tf.train.SessionRunHook): def __init__(self, heatbeat, should_continue): self.heatbeat = heat...
24.896714
103
0.666227
715
5,303
4.709091
0.239161
0.03564
0.04158
0.020196
0.158598
0.125928
0.07128
0.061776
0
0
0
0.004294
0.165567
5,303
212
104
25.014151
0.75661
0.115595
0
0.134328
0
0
0.066938
0
0
0
0
0.004717
0.007463
1
0.164179
false
0
0.059701
0.014925
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c01243ea6bcaf63004fe1fe3e588e8eca1e226b
4,064
py
Python
tracer/main.py
LzVv123456/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
20
2021-07-08T08:33:27.000Z
2022-01-14T03:27:35.000Z
tracer/main.py
abcxubu/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
1
2021-10-01T12:39:11.000Z
2021-10-01T13:19:43.000Z
tracer/main.py
abcxubu/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
3
2021-07-08T07:34:48.000Z
2022-01-10T11:41:59.000Z
import os import glob import yaml import torch import argparse from addict import Dict from dataset import * from init import * from utilities import * from train import * def parse_args(): parser = argparse.ArgumentParser(description='infer') parser.add_argument('--config', type=str, default='./tracer/train_...
37.62963
137
0.615404
513
4,064
4.625731
0.272904
0.094817
0.082174
0.033713
0.230089
0.148757
0.094817
0.053097
0
0
0
0.009466
0.272146
4,064
108
138
37.62963
0.792765
0.04749
0
0.054054
0
0
0.09943
0.006732
0
0
0
0
0
1
0.027027
false
0
0.135135
0
0.175676
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c0675ff607912b34920445802ae59f9d31371c8
4,222
py
Python
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
null
null
null
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin SV developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_f...
43.979167
143
0.709853
571
4,222
4.982487
0.283713
0.044991
0.02812
0.056239
0.400703
0.296661
0.247452
0.235501
0.175747
0.175747
0
0.026277
0.197774
4,222
95
144
44.442105
0.813699
0.243013
0
0.140351
0
0
0.05454
0
0
0
0
0
0.192982
1
0.087719
false
0
0.087719
0
0.192982
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c09b1ff084d1e9df9670c57209d4a2a65e97d3c
9,838
py
Python
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
14
2018-07-19T03:56:45.000Z
2019-10-01T12:09:01.000Z
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
null
null
null
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
null
null
null
import gym import numpy as np import tensorflow as tf import time from actor_critic.policy import A2CBuilder from actor_critic.util import discount_with_dones, cat_entropy, fix_tf_name from common.model import NetworkBase from common.multiprocessing_env import SubprocVecEnv from tqdm import tqdm class ActorCritic(...
37.838462
102
0.593617
1,249
9,838
4.470777
0.224179
0.021669
0.015043
0.012536
0.186246
0.145595
0.11909
0.08793
0.087213
0.063037
0
0.016207
0.310124
9,838
259
103
37.984556
0.806542
0.103883
0
0.034286
0
0
0.026861
0
0
0
0
0
0
1
0.028571
false
0
0.051429
0.011429
0.102857
0.022857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c0bbff19246f88fe29603b2519f950e3178d9cc
23,504
py
Python
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
5
2020-08-12T07:24:12.000Z
2022-02-23T14:04:16.000Z
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
null
null
null
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
1
2020-09-03T07:28:19.000Z
2020-09-03T07:28:19.000Z
from enum import Enum import hashlib import math import os import random import re from chainmap import ChainMap from torch.autograd import Variable import librosa import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data as data from .manage_audio import AudioPrepr...
35.185629
200
0.592282
3,172
23,504
4.163619
0.130517
0.035436
0.008329
0.014311
0.347846
0.250776
0.20103
0.181949
0.151056
0.13084
0
0.019033
0.284675
23,504
667
201
35.238381
0.76649
0.042503
0
0.209213
0
0
0.060754
0.001878
0
0
0
0
0.001919
1
0.090211
false
0.001919
0.03263
0.003839
0.211132
0.028791
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c0d6af23938ca6fed73a619af2c2521273b4c43
7,642
py
Python
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
54
2019-06-21T23:29:02.000Z
2022-03-28T14:30:44.000Z
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
28
2019-08-18T01:01:25.000Z
2021-07-14T17:39:42.000Z
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
12
2019-07-12T10:16:03.000Z
2022-03-09T05:33:30.000Z
import json import os import arrow import libvirt import pytest from virt_backup.backups import DomBackup from virt_backup.domains import get_xml_block_of_disk from virt_backup.backups.snapshot import DomExtSnapshot, DomExtSnapshotCallbackRegistrer from virt_backup.exceptions import DiskNotFoundError, SnapshotNotStart...
36.390476
88
0.634258
853
7,642
5.411489
0.193435
0.094021
0.113085
0.027296
0.39818
0.269281
0.207756
0.156412
0.119151
0.101386
0
0.006003
0.258833
7,642
209
89
36.564593
0.808969
0.038995
0
0.193548
0
0
0.112138
0.022483
0
0
0
0
0.090323
1
0.135484
false
0
0.064516
0
0.251613
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c0ff50a90211a83518224c4a9e7cb96da0fbca0
1,015
py
Python
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
# NxN 시험관, 바이러스 매 초 상하좌우로 증식, 낮은 번호의 바이러스부터 우선순위 # 시간동안(for) 낮은 번호부터 증식 시작. 바이러스가 있거나 matrix 범위 이상이면 stop. # 바이러스 종류별 좌표 추가 n, k = map(int, input().split()) matrix = [] for _ in range(n): matrix.append(list(map(int, input().split()))) s, x, y = map(int, input().split()) # 상 하 좌 우 dx = [-1, 1, 0, 0] # 위아래 dy = [0...
23.604651
57
0.519212
196
1,015
2.602041
0.336735
0.082353
0.023529
0.094118
0.039216
0
0
0
0
0
0
0.025424
0.302463
1,015
43
58
23.604651
0.694915
0.180296
0
0
0
0
0
0
0
0
0
0
0
1
0.033333
false
0
0
0
0.033333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c11ff715822a78e65219cb047fa20aeb18248ac
7,843
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2022-02-06T10:48:15.000Z
2022-02-06T10:48:15.000Z
""" Internationalization tasks """ import re import subprocess import sys from path import Path as path from paver.easy import cmdopts, needs, sh, task from .utils.cmd import django_cmd from .utils.envs import Env from .utils.timer import timed try: from pygments.console import colorize except ImportError: ...
23.694864
99
0.651409
968
7,843
5.174587
0.282025
0.037333
0.050908
0.035935
0.37772
0.3334
0.293671
0.256938
0.204432
0.136355
0
0.025578
0.227336
7,843
330
100
23.766667
0.80099
0.280632
0
0.428571
0
0
0.40207
0.126058
0.005495
0
0
0.00303
0
1
0.098901
false
0.005495
0.054945
0
0.159341
0.027473
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1262e89c4802e8d7e590c6c84ac0e62c5a4169
2,020
py
Python
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
import sympy.physics.mechanics as _me import sympy as _sm import math as m import numpy as _np frame_n = _me.ReferenceFrame('n') frame_a = _me.ReferenceFrame('a') a = 0 d = _me.inertia(frame_a, 1, 1, 1) point_po1 = _me.Point('po1') point_po2 = _me.Point('po2') particle_p1 = _me.Particle('p1', _me.Point('p1_...
36.071429
113
0.688119
463
2,020
2.63067
0.164147
0.098522
0.034483
0.036946
0.300493
0.231527
0.137931
0.102627
0.08046
0.042693
0
0.063212
0.130693
2,020
55
114
36.727273
0.63041
0
0
0
0
0
0.047328
0
0
0
0
0
0
1
0
false
0
0.074074
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c137c12cabff00b49311cbc274302f573ef641a
3,830
py
Python
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
import filecmp, os, tempfile, unittest from click.testing import CliRunner from tenx.asm_stats import asm_stats_cmd, get_contig_lengths, get_scaffold_and_contig_lengths, get_stats, length_buckets class AsmStatsTest(unittest.TestCase): def setUp(self): self.data_dn = os.path.join(os.path.dirname(__file__),...
40.315789
120
0.629243
475
3,830
4.795789
0.212632
0.084284
0.082968
0.046093
0.546093
0.479368
0.355136
0.280509
0.269535
0.269535
0
0.045051
0.234987
3,830
94
121
40.744681
0.732423
0.006789
0
0.282051
0
0
0.079716
0.00684
0
0
0
0
0.141026
1
0.076923
false
0
0.038462
0
0.128205
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1416cedaf37318b018aae01bda9b0f41f3ed30
3,435
py
Python
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
1
2021-06-04T03:05:06.000Z
2021-06-04T03:05:06.000Z
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
null
null
null
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
null
null
null
import socket import pickle import random import string import time import hashlib import os BUFFER_SIZE = 65536 def send_message(msg, port): # Setup socket for the user to be send s_temp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s_temp.connect((socket.gethostname(), port)) # encode and se...
32.714286
115
0.616885
394
3,435
5.215736
0.317259
0.012165
0.032117
0.049635
0.115815
0.097324
0.062287
0.062287
0.062287
0
0
0.010822
0.273654
3,435
104
116
33.028846
0.812826
0.057642
0
0.157895
0
0
0.076471
0.018576
0
0
0
0
0
1
0.092105
false
0
0.092105
0
0.25
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
6c14181d8879fcc2609ab9415e7fe2cdbb328098
3,850
py
Python
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
106
2018-03-05T16:24:47.000Z
2022-03-19T19:12:25.000Z
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
1,494
2018-02-27T17:02:21.000Z
2022-03-24T15:10:30.000Z
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
15
2019-02-03T01:34:59.000Z
2022-03-29T01:59:13.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from data_refinery_api.test.test_api_general import API_VERSION from data_refinery_common.models import ( Experiment, ExperimentOrganismAssociation, ExperimentSampleAssociation, Or...
32.627119
100
0.647013
387
3,850
6.22739
0.268734
0.079668
0.13444
0.024896
0.256846
0.236515
0.236515
0.236515
0.236515
0.097925
0
0.031097
0.256623
3,850
117
101
32.905983
0.810971
0.024416
0
0.168421
0
0
0.066684
0
0
0
0
0
0.031579
1
0.021053
false
0
0.063158
0
0.094737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c15bfba4b8c0e66ef69eb440d0dc33cc1bed1d7
4,804
py
Python
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
2
2020-06-20T21:50:38.000Z
2020-06-22T08:37:11.000Z
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
4
2020-07-01T21:59:08.000Z
2020-07-05T11:33:59.000Z
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
null
null
null
import pdftotext import sys import numpy as np import pandas as pd import regex as re def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def get_server_type(server_type_str): """Check wether string is contained""" server_type_list = server_type_str.split(' ') if len(server_type_li...
32.90411
118
0.59159
683
4,804
4.004392
0.256223
0.065814
0.061792
0.021938
0.259232
0.239488
0.239488
0.182084
0.182084
0.090676
0
0.006206
0.262073
4,804
145
119
33.131034
0.764457
0.165279
0
0.107527
0
0
0.150943
0.020881
0
0
0
0
0
1
0.053763
false
0
0.053763
0
0.172043
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c16620f0a89c9e70bfae221558f9859765dc5b0
3,705
py
Python
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
1
2018-02-04T01:10:20.000Z
2018-02-04T01:10:20.000Z
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
null
null
null
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
null
null
null
# random_forest.py # does the random forest calcutlaions import decision_tree import partition import heapq import table_utils import classifier_util from homework_util import strat_folds def run_a_table(table, indexes, class_index, N, M, F): """ Takes a table, splits it into a training and test set. Creates a ...
35.970874
90
0.691768
540
3,705
4.618519
0.3
0.044106
0.011227
0.021652
0.189254
0.189254
0.131516
0.131516
0.131516
0.131516
0
0.006349
0.234818
3,705
102
91
36.323529
0.873369
0.48583
0
0
0
0
0
0
0
0
0
0
0
1
0.093023
false
0
0.139535
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c186e241fa2559c5801595eef7a0db1d8af608a
18,320
py
Python
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
3
2020-03-10T13:52:37.000Z
2020-03-15T17:19:39.000Z
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
null
null
null
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
2
2020-03-10T13:52:29.000Z
2022-01-13T19:58:28.000Z
import requests import json import os from bs4 import BeautifulSoup as bs from secret import * from smtplib import SMTP from datetime import datetime from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart def maths(num1, num2, num3=None): num1 = int(''.join(num1.split(','))) num2 ...
41.922197
177
0.593177
1,686
18,320
6.428233
0.152432
0.046503
0.060897
0.094113
0.380605
0.332718
0.301163
0.26444
0.252445
0.236021
0
0.012393
0.251255
18,320
436
178
42.018349
0.777721
0
0
0.330667
0
0.029333
0.587445
0.134279
0
0
0
0
0
1
0.005333
false
0.002667
0.024
0
0.032
0.002667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c19d7164f4d767fbe5d4431bf900ccb1c4a00d6
6,494
py
Python
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
''' Copyright 2020 Xilinx 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 law or agreed to in writing, software distr...
29.788991
172
0.647213
874
6,494
4.729977
0.322654
0.007741
0.007257
0.013304
0.034833
0.011127
0
0
0
0
0
0.012363
0.227749
6,494
217
173
29.926267
0.811964
0.191407
0
0.118182
0
0
0.12979
0.025464
0
0
0
0
0
1
0.045455
false
0
0.109091
0
0.190909
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1bc99ed022294f204e51cb23b911f2274cbb0b
525
py
Python
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
12
2020-03-27T13:15:54.000Z
2022-03-25T14:22:26.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_f1
08b7be7162719b92b4796f18b0caad263f90ea2f
[ "BSD-3-Clause" ]
255
2019-05-10T01:08:51.000Z
2020-01-29T18:45:32.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
8
2020-02-21T18:28:34.000Z
2021-07-24T00:22:29.000Z
from vcache_utils import VCacheStats from bfs_common import BFSParameters import sys import pandas as pd class BFSVCacheStats(VCacheStats): def _subclass_init_add_group_by_fields(self): self._parameters = BFSParameters(self.filename) self._parameters.updateDataFrame(self._data) self._group_...
29.166667
60
0.76381
67
525
5.731343
0.552239
0.109375
0.067708
0.088542
0
0
0
0
0
0
0
0.002247
0.152381
525
17
61
30.882353
0.860674
0
0
0
0
0
0.034286
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1bdfa67d70b8200b8f300c42147c7b6f88c84a
14,511
py
Python
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
1
2019-12-09T17:41:09.000Z
2019-12-09T17:41:09.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
2
2019-09-26T13:49:56.000Z
2020-08-06T15:10:17.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
null
null
null
import json import logging import re from pathlib import Path from typing import Optional, Union import pandas as pd from . import DOCSURL, DS_URL_PREFIX, readers # configure logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) logger.addHa...
32.175166
145
0.591551
1,769
14,511
4.691916
0.18372
0.026145
0.01012
0.011566
0.248434
0.197108
0.171446
0.152169
0.144096
0.126747
0
0.005056
0.304803
14,511
450
146
32.246667
0.817704
0.226242
0
0.168385
0
0.010309
0.257448
0.052041
0
0
0
0
0
1
0.024055
false
0.003436
0.027491
0.003436
0.085911
0.003436
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1dc30f32a47cfe9ea5fa235e76eff1529c75dd
4,368
py
Python
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
34
2017-10-24T15:04:02.000Z
2021-09-05T17:46:43.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
8
2017-12-18T21:53:08.000Z
2021-06-01T21:24:31.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
11
2017-12-18T22:02:29.000Z
2020-11-10T17:58:22.000Z
# -*- coding: utf-8 -*- import struct import iota from iotapy.storage import converter as conv TRANSACTION_METADATA_TRITS_LENGTH = 1604 HASH_BYTES_LENGTH = 49 HASH_TRITS_LENGTH = 243 def get_key(bytes_: bytes): # Convert key bytes to iota.TransactionHash if not isinstance(bytes_, bytes): raise Type...
35.225806
123
0.66163
617
4,368
4.385737
0.116694
0.042129
0.043976
0.065041
0.654472
0.597931
0.551737
0.477088
0.477088
0.449372
0
0.013924
0.194368
4,368
123
124
35.512195
0.755044
0.017628
0
0.217822
0
0
0.069046
0.025426
0
0
0
0
0
1
0.029703
false
0
0.029703
0
0.09901
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6c1f784f7fc92dd4f1d6302efb41edae068a6f5e
5,980
py
Python
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
from tkinter import* import website import tkinter.font as font from PIL import ImageTk,Image import os import sqlite3 import webbrowser def main(): cgnc=Tk() cgnc.title('Show') cgnc.iconbitmap("logo/spectrumlogo.ico") f=font.Font(family='Bookman Old Style',size=10,weight='bold') f1=fo...
30.824742
133
0.533779
831
5,980
3.78219
0.203369
0.044543
0.027999
0.048998
0.484569
0.44448
0.440025
0.388801
0.25008
0.25008
0
0.041129
0.300669
5,980
193
134
30.984456
0.710426
0.044314
0
0.269504
0
0.007092
0.1501
0.019989
0
0
0
0
0
1
0.049645
false
0
0.056738
0
0.106383
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0