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
d467fadd8af4902f63395f8f7006d9ea2380851a
10,037
py
Python
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
7
2020-06-05T15:33:40.000Z
2021-03-07T16:57:55.000Z
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
null
null
null
dfdone/plot.py
elespike/dfdone
c514e290a0eb0f74fd3c8f74ddbfddb917b2a629
[ "MIT" ]
1
2020-06-05T20:01:46.000Z
2020-06-05T20:01:46.000Z
from collections import defaultdict as ddict from operator import attrgetter, methodcaller from string import punctuation from graphviz import Digraph from dfdone.enums import ( Profile, Role, ) ASSUMPTION = 'assumption' DATA = 'data' MEASURE = 'measure' THREAT = 'threat' def table_from_list(class_name, t...
32.800654
78
0.565209
1,105
10,037
4.98371
0.171041
0.042491
0.046305
0.03087
0.284729
0.228255
0.184311
0.153986
0.133467
0.077719
0
0.002119
0.29461
10,037
305
79
32.908197
0.775706
0.017535
0
0.229249
0
0
0.209132
0.093962
0
0
0
0
0
1
0.047431
false
0
0.019763
0.003953
0.106719
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d468f2c87e5ec8bf7bc10de9d752f8c5b503e861
1,159
py
Python
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
asilmedia.py
kamronbek29/asilmedia_scrapper
b94b6a0fc05f22adab8ba18ea466cd8511dfd319
[ "MIT" ]
null
null
null
import os import requests from pyquery import PyQuery as pq def get_download_url(movie_url): get_request = requests.get(movie_url) get_request_str = str(get_request.content, 'utf-8') pq_obj_items = pq(get_request_str)('div.download-list.d-hidden').eq(0)('div')('a').items() download_urls = [] fo...
28.975
117
0.701467
171
1,159
4.479532
0.450292
0.129243
0.05483
0.046997
0
0
0
0
0
0
0
0.01658
0.167386
1,159
39
118
29.717949
0.777202
0
0
0
0
0.038462
0.156169
0.022433
0
0
0
0
0
1
0.076923
false
0
0.115385
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d46f429828765f453153f4024780bc7dd3ec8f3f
1,011
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/struct/annotation.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
"""Contains functions to annotate macromolecular entities.""" from cogent.core.entity import HIERARCHY __author__ = "Marcin Cieslik" __copyright__ = "Copyright 2007-2012, The Cogent Project" __credits__ = ["Marcin Cieslik"] __license__ = "GPL" __version__ = "1.5.3" __maintainer__ = "Marcin Cieslik" __email__ = "mpc4p...
33.7
80
0.670623
133
1,011
4.75188
0.541353
0.056962
0.031646
0
0
0
0
0
0
0
0
0.015484
0.233432
1,011
29
81
34.862069
0.8
0.373887
0
0
0
0
0.198988
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d470ff56ce7d42894f9f9e01bcb618251f87a397
3,618
py
Python
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
cerebralcortex/core/data_manager/sql/kafka_offsets_handler.py
brinnaebent/CerebralCortex-Kernel
b0daad06df118d27e62e178e123170e8f189065e
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2019, MD2K Center of Excellence # - Nasir Ali <nasir.ali08@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above cop...
45.225
147
0.67717
471
3,618
5.140127
0.426752
0.027261
0.014044
0.019
0.193309
0.125568
0.125568
0.056175
0.056175
0.056175
0
0.002568
0.246545
3,618
79
148
45.797468
0.885547
0.612217
0
0
0
0.041667
0.17893
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d4736994de9c464bb6f5278b4dbda2f2dd43fd96
3,790
py
Python
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
Rejection-System/rejection_system.py
willtop/imitation-learning
2c00f77e4e575e38ef233cc5eac6862e598ec4ac
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import rejection_network class RejectionSystem(): def __init__(self): self.dir_path = os.path.dirname(os.path.abspath(__file__)) self._train_dir = os.path.join(self.dir_path, "Data/Train/") self._valid_dir = os.path.join(self.dir_path, ...
48.589744
167
0.629815
428
3,790
5.196262
0.240654
0.044514
0.026978
0.051709
0.186151
0.186151
0.144784
0.107914
0
0
0
0.003308
0.282058
3,790
77
168
49.220779
0.814039
0.004222
0
0.029851
0
0
0.07266
0
0
0
0
0
0
1
0.059701
false
0
0.059701
0
0.179104
0.089552
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d473bd2a6111d692be84e1c6bd981d1b8ff3ee2c
2,370
py
Python
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
6
2020-04-27T00:55:47.000Z
2020-10-11T19:16:38.000Z
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
null
null
null
examples/display_youtube_subs_single_tilechain.py
netmanchris/pylifxtiles
f9a77fe0beaabff4c792032d7778a8ad2815e2bd
[ "Apache-2.0" ]
null
null
null
import requests import inflect #create a file called secrets.py and place your googleAPI key in a var called youtube_api_key DO NOT POSTS THIS TO GITHUB from lifxlan import * # from random import randint, betavariate from time import sleep from examples.secrets import youtube_api_key from pylifxtiles import actions fro...
32.465753
121
0.627426
295
2,370
4.820339
0.4
0.063291
0.027426
0.019691
0
0
0
0
0
0
0
0.018681
0.277215
2,370
73
122
32.465753
0.811442
0.118987
0
0
0
0
0.094095
0.011522
0
0
0
0
0
1
0.035714
false
0
0.160714
0
0.214286
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d47455c84e22f79970850d0a4f527fa6cc12c816
6,031
py
Python
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
1
2019-10-17T02:36:16.000Z
2019-10-17T02:36:16.000Z
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
7
2019-12-12T00:34:31.000Z
2022-03-30T03:47:51.000Z
lib/cfnvpn/templates/lambdas/auto_route_populator/app.py
base2Services/cfn-vpn
d26c01eb675cd47b2162aefeb26540a2a5891062
[ "MIT" ]
7
2019-12-11T22:23:15.000Z
2021-11-23T03:51:54.000Z
import socket import boto3 from botocore.exceptions import ClientError import logging logger = logging.getLogger() logger.setLevel(logging.INFO) def delete_route(client, vpn_endpoint, subnet, cidr): client.delete_client_vpn_route( ClientVpnEndpointId=vpn_endpoint, TargetVpcSubnetId=subnet, Dest...
34.462857
138
0.664898
725
6,031
5.455172
0.213793
0.047282
0.041719
0.040455
0.384324
0.251833
0.199747
0.151201
0.129456
0.076865
0
0.001729
0.232631
6,031
175
139
34.462857
0.852852
0.111259
0
0.333333
0
0
0.280187
0.033271
0
0
0
0
0
1
0.054264
false
0.015504
0.031008
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d47d005c02515ac759e7040407be536af13a0a86
1,392
py
Python
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
full-problems/topKNumbers.py
vikas-t/DS-Algo
ea654d1cad5374c824c52da9d3815a9546eb43fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/top-k-numbers/0 def sol(arr, n, k): f = {0:0} rl = [0]*(k+1) # Lets initialise a list of k+1 elements # We have taken one extra element here so as we dont overwrite an existing # result or subresult for x in arr: f[x...
33.95122
78
0.514368
217
1,392
3.299539
0.442396
0.058659
0.039106
0.050279
0.087989
0.087989
0.087989
0.064246
0.064246
0.064246
0
0.022248
0.386494
1,392
41
79
33.95122
0.816159
0.479167
0
0.190476
0
0
0.001406
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.047619
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d47da1a3567c0646e5b6d191bc5adb903cf32946
2,125
py
Python
pymeta.py
ustayready/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
135
2020-02-28T23:22:00.000Z
2022-03-29T03:48:31.000Z
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
null
null
null
pymeta.py
treebuilder/python-pentesting
9a2e22eebbd7b7869bef43ae5dddd45a20558095
[ "MIT" ]
45
2020-03-01T04:12:08.000Z
2022-02-02T22:43:15.000Z
import os import re import argparse import zipfile import PyPDF2 from lxml import etree as ET class PyMetaExtractor(): ext = ['docx', 'xlsx', 'pptx', 'pdf'] rexp = re.compile(r'.+\.({})$'.format('|'.join(ext))) def __init__(self, directory): self.directory = os.path.abspath(directory...
32.19697
74
0.499765
205
2,125
4.731707
0.463415
0.053608
0.020619
0.035052
0.045361
0
0
0
0
0
0
0.011161
0.367529
2,125
66
75
32.19697
0.710565
0
0
0.103448
0
0
0.163998
0.037846
0
0
0
0
0
1
0.068966
false
0
0.103448
0
0.241379
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d482268b3a67acf7c98e550f439531564a00f5c4
6,497
py
Python
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
tests/test_operation_filter.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
import pytest import sqlalchemy as sa from sqlalchemy.dialects import postgresql as pg from jessiql import QueryObjectDict from jessiql.sainfo.version import SA_14 from jessiql.testing.insert import insert from jessiql.testing.recreate_tables import created_tables from jessiql.util import sacompat from .util.models i...
44.197279
151
0.579806
868
6,497
4.210829
0.176267
0.093023
0.048153
0.01751
0.533516
0.435021
0.343912
0.309439
0.251436
0.196443
0
0.015799
0.210867
6,497
146
152
44.5
0.697094
0.100508
0
0.163265
0
0
0.260472
0.009309
0
0
0
0
0
1
0.030612
false
0
0.102041
0
0.255102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d484862ba3e2f33977b9dfb27a2a6296e1c0eb7b
1,051
py
Python
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-10-21T15:32:17.000Z
2021-11-23T04:44:11.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2017-08-01T20:04:06.000Z
2019-06-24T18:21:38.000Z
setup.py
dykesk/gaussian-wake
d06509af9740a25e9e5be459fdc3a3644fdf609d
[ "Apache-2.0" ]
3
2019-07-01T19:03:06.000Z
2020-02-23T10:40:17.000Z
#!/usr/bin/env python # encoding: utf-8 from numpy.distutils.core import setup, Extension module1 = Extension('_porteagel_fortran', sources=['src/gaussianwake/gaussianwake.f90', 'src/gaussianwake/gaussianwake_bv.f90', ...
43.791667
90
0.531874
98
1,051
5.591837
0.693878
0.164234
0.14781
0.109489
0
0
0
0
0
0
0
0.034682
0.341579
1,051
24
91
43.791667
0.757225
0.067555
0
0
0
0
0.372188
0.161554
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
d48923ca32ecdfba04756e192b86f66124d82a4a
1,473
py
Python
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
src/datalaunch_server/backend/run.py
mfaafm/datalaunch-server
0518b786378e8a2bc8808adbd91ae41f3f72d70d
[ "MIT" ]
null
null
null
import uuid import threading from datetime import datetime from .execution import RunExecution class RunBackend(object): def __init__(self, workspace): self.workspace = workspace self.db = workspace.db self.storage = workspace.storage def create_run(self, specification): run_i...
25.842105
76
0.614392
183
1,473
4.704918
0.245902
0.081301
0.046458
0.041812
0.225319
0.039489
0
0
0
0
0
0.000939
0.276986
1,473
56
77
26.303571
0.807512
0
0
0
0
0
0.081466
0
0
0
0
0
0
1
0.166667
false
0
0.095238
0.071429
0.404762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
00f66e72c3e4bcc933d8c4833a291f52c75faf20
440
py
Python
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/www/lms/index.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import erpnext.education.utils as utils import frappe no_cache = 1 def get_context(context): context.education_settings = frappe.get_single("Education Settings") if not context.education_settings.enable_lms: frappe.local.flags.redirect_location = '/' raise frappe.Redirect...
27.5
69
0.820455
58
440
5.896552
0.534483
0.149123
0.140351
0
0
0
0
0
0
0
0
0.002532
0.102273
440
16
70
27.5
0.863291
0
0
0
0
0
0.043084
0
0
0
0
0
0
1
0.166667
false
0
0.25
0.083333
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
00f6d7849b57443a7fcfc0dd2b15cbcd9d92e769
1,748
py
Python
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
src/800_predict_with_lightgbm.py
j20232/kaggle_earthquake
47fac5f2e8d2ad4fab82426a0b6af18b71e4b57b
[ "MIT" ]
null
null
null
"""Predict labels with lightgbm models""" import os import sys import json import pandas as pd import lightgbm as lgb from pathlib import Path import competition as cc from common import stop_watch, predict_chunk # For osx os.environ['KMP_DUPLICATE_LIB_OK'] = "True" @stop_watch def predict_with_lightgbm(): model...
34.27451
81
0.680206
260
1,748
4.276923
0.338462
0.072842
0.028777
0.021583
0.077338
0.077338
0.077338
0.077338
0.077338
0.077338
0
0.003556
0.195652
1,748
50
82
34.96
0.78734
0.025172
0
0
0
0
0.087161
0
0
0
0
0
0.023256
1
0.023256
false
0
0.186047
0
0.209302
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
00f7909565a967fdf18011834d450c60108175a8
1,782
py
Python
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
5
2020-06-09T09:28:07.000Z
2020-06-12T13:36:52.000Z
archive/urls.py
radon-provenance/radon-web
83f5b46f57f157d4ac4c7f2d8ec4c955cc512b5a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 # # 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...
34.941176
86
0.714366
234
1,782
5.324786
0.350427
0.051364
0.038523
0.025682
0.093098
0.051364
0
0
0
0
0
0.005302
0.153199
1,782
50
87
35.64
0.820411
0.298541
0
0
0
0
0.321718
0.126418
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
00f9ebf2f0b587c3e9e4c70a58e0e5c0b2107dc9
2,528
py
Python
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
scripts.python3/recover_howde_tree.py
rsharris/HowDeSBT-multi_make_bf
4f45e27a9b70a8c470f80ede086c58c2683774f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Recover the tree relationship from a howde tree hierarchy file. """ from sys import argv,stdin,stdout,stderr,exit from howde_tree_parse import read_howde_tree_file def usage(s=None): message = """ usage: cat howde_tree_file | recover_howde_tree [options] --show=preorder ...
29.395349
81
0.627373
330
2,528
4.706061
0.339394
0.034771
0.025113
0.021893
0.034771
0
0
0
0
0
0
0.004082
0.224684
2,528
85
82
29.741176
0.788265
0.049446
0
0.095238
0
0
0.419557
0.02758
0
0
0
0
0.047619
1
0.031746
false
0
0.031746
0
0.063492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
00fdc14d8d6651a586f8e493f4b200f6fad1f8e4
2,641
py
Python
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
feed.py
UphillD/Twitter-Feed
9d48534f70a7522c0e06c2e0c51dd3b476eacbed
[ "MIT" ]
null
null
null
import json import sys import tkinter from config import * from imagefy import * from twitter import * # Get old rules old_rules = get_rules() print('Old rules received.') # Delete old rules delete_response = delete_rules(old_rules) print('Old rules deleted.') # Generate new rules query_rules = generate_rules() p...
29.674157
117
0.706929
362
2,641
5.046961
0.370166
0.045977
0.035577
0.031199
0.124795
0.124795
0.081007
0.081007
0.081007
0.081007
0
0.006834
0.168875
2,641
88
118
30.011364
0.825513
0.179477
0
0.189655
0
0
0.16108
0
0
0
0
0
0
1
0
false
0
0.103448
0
0.103448
0.241379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
00ff0ed92617aeee4a59104327ee5016ba50a470
3,632
py
Python
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/call_error_test.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
import pickle import sys import unittest2 import mitogen.core import testlib import plain_old_module class ConstructorTest(testlib.TestCase): klass = mitogen.core.CallError def test_string_noargs(self): e = self.klass('%s%s') self.assertEquals(e.args[0], '%s%s') self.assertTrue(isi...
31.582609
79
0.632434
489
3,632
4.509202
0.169734
0.047619
0.043537
0.095238
0.678458
0.606803
0.606803
0.573696
0.573696
0.573696
0
0.017806
0.226872
3,632
114
80
31.859649
0.76745
0.004956
0
0.476744
0
0
0.068106
0.027685
0
0
0
0
0.302326
1
0.162791
false
0
0.069767
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e076b3f8694910f0ea4b0f6d1af437799ab9b18
288
py
Python
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
mpsp_main.py
GeoCIA/MPSP
2ccc8b82d619d52e7248e06999cfd95368608788
[ "Apache-2.0" ]
null
null
null
from mpsp import FLIGHT, GROUNDTEST from mpsp.mpsp import MPSP import pyb switch = pyb.Switch() pyb.LED(3).on() pyb.LED(1).on() pyb.delay(4000) pyb.LED(3).off() pyb.LED(1).off() if switch(): mode = FLIGHT else: mode = GROUNDTEST pyb.delay(1000) m = MPSP(mode) m.init() m.run()
13.714286
35
0.666667
51
288
3.764706
0.411765
0.125
0.125
0
0
0
0
0
0
0
0
0.049383
0.15625
288
20
36
14.4
0.740741
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e0b3ccedd271154d067c56ea6b56d4912fc2b1a
331
py
Python
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
hsf_website_helpers/util/repo.py
HSF/website-helpers
7b01db3648d9f8026a318a4fac2fd3a8aeea354e
[ "MIT" ]
null
null
null
from pathlib import Path def is_website_folder(path: Path): """Checks if path likely points at the hsf.github.io repository""" existing_subfolders = [".git", "_profiles", "_data"] for es in existing_subfolders: if not (path / es).is_dir(): print(path, es) return False r...
27.583333
70
0.634441
44
331
4.613636
0.727273
0.17734
0
0
0
0
0
0
0
0
0
0
0.259819
331
11
71
30.090909
0.828571
0.181269
0
0
0
0
0.067925
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e0f83a5679b19aa17f9519619b150c41b6a8ad9
8,529
py
Python
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
null
null
null
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
1
2020-06-04T15:59:04.000Z
2020-06-04T15:59:04.000Z
ml-service/ml-model-dynamic-hosting/main.py
mathieu/decisions-on-ml
b0283851ae0db538c1f424bcba8bcd15d4a603da
[ "Apache-2.0" ]
3
2020-06-04T16:28:31.000Z
2021-11-05T17:11:55.000Z
#!flask/bin/python import os import uuid from flask import Flask, jsonify from flask import request, jsonify from flask_restplus import Api, Resource, fields from flask_restplus import reqparse import pandas as pd import numpy as np from joblib import load import pickle import json import requests # # Model register...
35.390041
178
0.637941
929
8,529
5.733046
0.228202
0.045062
0.047315
0.054074
0.322005
0.292903
0.269245
0.240706
0.201465
0.163913
0
0.004666
0.246102
8,529
240
179
35.5375
0.823639
0.109743
0
0.148387
0
0
0.211964
0.02958
0.006452
0
0
0.004167
0
1
0.025806
false
0
0.077419
0
0.16129
0.025806
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e14507604ab4d37b2d654a12f456017f680cf04
12,466
py
Python
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2020-01-28T15:22:16.000Z
2020-01-28T15:22:16.000Z
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
null
null
null
src/train_val.py
pzzhang/sasa
e663d7666e85de8e5a7a664a6b37d988008ab007
[ "MIT" ]
1
2021-06-10T05:04:24.000Z
2021-06-10T05:04:24.000Z
# Copyright (c) Microsoft. All rights reserved. import time import logging import torch from rnndata import repackage_hidden, clone_hidden, get_batch from utils import get_lr_mom, AverageMeter def compute_accuracy(output, target, topk=(1,)): """Computes the precision@k for the specified values of k""" with t...
40.872131
106
0.572437
1,578
12,466
4.382129
0.1673
0.012292
0.030369
0.031815
0.549964
0.497759
0.447289
0.400578
0.349385
0.338684
0
0.026165
0.300979
12,466
305
107
40.872131
0.767386
0.090967
0
0.540773
0
0.012876
0.095133
0.006283
0
0
0
0
0
1
0.034335
false
0
0.021459
0
0.081545
0.021459
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e15b17caf196545a558db1448e485770a951b9c
10,449
py
Python
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PySide2/examples/xmlpatterns/schema/schema_rc.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Sep 5 07:07:53 2019 # by: The Resource Compiler for PySide2 (Qt v5.13.1) # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x015\ <\ contact>\x0d\x0a <g\ ivenName>John</g\ ivenName...
22.137712
96
0.616136
1,637
10,449
3.91631
0.259621
0.15723
0.096865
0.071128
0.592887
0.519576
0.435346
0.339729
0.260958
0.20652
0
0.1721
0.180879
10,449
471
97
22.184713
0.576937
0.017609
0
0.300439
0
0.041667
0
0
0
0
0.00078
0
0
1
0.004386
false
0
0.002193
0
0.006579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e1a6d385104b92cdf4c3b65e8d847fac4046e9c
2,441
py
Python
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
1
2018-12-24T13:49:32.000Z
2018-12-24T13:49:32.000Z
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
play.py
apgeorg/rl-cartpole-balancer
673c934326c90982460eb63543333334af1390a9
[ "MIT" ]
null
null
null
import gym import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam from agents.dqn import DQN def create_model(states, actions): model = Sequential() model.add(Dense(24, input_dim=states, activation='relu')) model.add(Dense(24, activation='rel...
39.370968
119
0.606719
321
2,441
4.46729
0.311526
0.069038
0.027197
0.020921
0.248257
0.161785
0.122734
0.122734
0.078103
0.078103
0
0.024349
0.276526
2,441
62
120
39.370968
0.787656
0.029086
0
0.275862
0
0
0.078125
0.010557
0
0
0
0
0
1
0.051724
false
0
0.103448
0
0.206897
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e1ba8922cf58bb90287d078e5a54ad5ae1af3bf
46,505
py
Python
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
null
null
null
Database/DataBaseGenerator.py
matteoNunz/ImmunoPoli
4a6688cc70715feefd9ed71e13aafa90b45a9a62
[ "MIT" ]
2
2021-12-22T09:07:09.000Z
2021-12-24T19:27:26.000Z
""" Date: 28/10/2021 Neo4J generator for ImmunoPoli project """ import neo4j as nj import App.PlotDBStructure as ps from random import randint, random from enum import IntEnum import datetime MAX_CIVIC_NUMBER = 100 PHONE_NUMBER_LENGTH = 10 MAX_NUMBER_OF_FAMILY_MEMBER = 5 NUMBER_OF_FAMILY = 150 MAX_NUMBER_OF_CONTAC...
32.227997
130
0.606666
5,475
46,505
5.107215
0.100639
0.011086
0.008762
0.011587
0.446034
0.381804
0.327802
0.293684
0.258637
0.232315
0
0.011855
0.281712
46,505
1,442
131
32.250347
0.825231
0.250317
0
0.334187
0
0.021767
0.159012
0.039623
0
0
0
0
0
1
0.080666
false
0.002561
0.006402
0
0.176697
0.010243
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e1c8db5594b84531a71f4ac6141cb6cebad50e7
1,073
py
Python
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
3
2021-05-25T10:18:23.000Z
2022-02-09T08:55:14.000Z
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
code/DNN/MiniFramework/HyperParameters_4_1.py
Knowledge-Precipitation-Tribe/Neural-network
eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-# ''' # Name: HyperParameters_4_0 # Description: # Author: super # Date: 2020/6/2 ''' from MiniFramework.EnumDef_4_0 import * # this class is for two-layer NN only class HyperParameters_4_1(object): def __init__(self, eta=0.1, max_epoch=10000, batch_size=5, ...
32.515152
136
0.59739
139
1,073
4.381295
0.467626
0.103448
0.064039
0.039409
0
0
0
0
0
0
0
0.035667
0.294501
1,073
33
137
32.515152
0.768824
0.188257
0
0
0
0
0.034884
0.034884
0
0
0
0
0
1
0.1
false
0
0.05
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
2e1d901364494765f2ea9f357679476f51d416cd
584
py
Python
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
1
2022-03-31T07:30:53.000Z
2022-03-31T07:30:53.000Z
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
null
null
null
recurce_13/i_conference_lovers_v2.py
master-cim/algorithm
a57f473ceb32b96240989e31ac33154e55c00724
[ "MIT" ]
2
2022-03-04T09:42:03.000Z
2022-03-30T14:51:32.000Z
# I. Любители конференций # ID успешной посылки 66248195 from collections import Counter def conference_lovers(id_university, k): number_participant = Counter(id_university) k_max = number_participant.most_common()[0:k:] result = [univer[0] for univer in k_max] print(' '.join(map(str, result))) def ...
25.391304
73
0.693493
78
584
4.884615
0.512821
0.188976
0.170604
0.146982
0.152231
0
0
0
0
0
0
0.020877
0.179795
584
22
74
26.545455
0.77453
0.089041
0
0
0
0
0.017013
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e1feda997e60649764860b6a4e1f4de31bd698d
2,327
py
Python
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
15
2018-04-20T14:56:59.000Z
2021-03-31T20:16:29.000Z
app/routes/user.py
Axtell/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
148
2018-04-17T01:47:44.000Z
2020-05-14T13:24:03.000Z
app/routes/user.py
Axtell-io/Axtell
2f660450ca2eb70cc0520ad970c9aabdc65a3bb7
[ "MIT" ]
7
2018-06-01T11:15:18.000Z
2020-08-14T04:24:50.000Z
from app.helpers.render import render_template, render_error from app.controllers import user from app.models.User import User, UserAuthToken from app.server import server from flask import g, request, redirect, url_for, abort from app.session.csrf import csrf_protected # noinspection PyUnusedLocal @server.route("/...
33.242857
127
0.728406
337
2,327
4.830861
0.25816
0.092138
0.064496
0.031327
0.383292
0.322482
0.273956
0.202703
0.202703
0.160934
0
0.007905
0.130211
2,327
69
128
33.724638
0.796443
0.060163
0
0.136364
0
0
0.153917
0.09574
0
0
0
0
0
1
0.159091
false
0
0.136364
0.090909
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e20d0f7055a8efeb21c1bd0269a9e0a1afa7cf4
8,616
py
Python
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
captioning/utils/rewards.py
YapingZ/News-image-caption
fcccf51bbe5607adbf71c1da8ecdc6693555993f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import time from collections import OrderedDict import torch import sys try: sys.path.append("cider") from pyciderevalcap.ciderD.ciderD import CiderD from pyciderevalcap.cider.ci...
37.298701
173
0.67572
1,342
8,616
4.008197
0.092399
0.10039
0.072504
0.05317
0.65105
0.601413
0.586168
0.549173
0.535787
0.531883
0
0.007533
0.198816
8,616
231
174
37.298701
0.771693
0.086583
0
0.485714
0
0
0.023049
0
0
0
0
0
0.011429
1
0.045714
false
0
0.068571
0
0.154286
0.045714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e2279b1f99ff28aa158f6954e55b80b12e12f93
1,984
py
Python
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
util/gps_handler/gps_fence_handler.py
linusluotsinen/RPiAntiTheft
d76782b5064f7e540a4013fbf0e0ea26d989e2ce
[ "MIT" ]
null
null
null
#from gps_handler import GpsHandler import math class GpsFenceHandler: def __init__(self, settings): self.settings = settings self.settings.load() if self.settings.get_data() is None: #gpsh = GpsHandler() #gps_data = gpsh.get_gps_data() default_settings =...
31.492063
113
0.5625
238
1,984
4.579832
0.264706
0.165138
0.082569
0.104587
0.180734
0.133945
0.133945
0.133945
0
0
0
0.021444
0.294859
1,984
62
114
32
0.757684
0.12752
0
0.125
0
0
0.072632
0
0
0
0
0
0
1
0.15
false
0
0.025
0.025
0.275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e2601a57578f079de2951387b1289c07c01b38b
10,894
py
Python
build/lib.linux-x86_64-2.7/ryu/tests/unit/packet/test_packet.py
sharat910/my-ryu
d2994571e3e5fad58433044a3ca8a5b40a413c87
[ "Apache-2.0" ]
2
2019-05-06T01:11:37.000Z
2020-10-09T08:24:15.000Z
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
null
null
null
ryu/tests/unit/packet/test_packet.py
rpt/ryu
ebf7638aac4481762e10ec90958f1480761a3893
[ "Apache-2.0" ]
1
2018-07-12T20:08:53.000Z
2018-07-12T20:08:53.000Z
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
29.284946
73
0.523224
1,516
10,894
3.504617
0.166227
0.042161
0.033879
0.031621
0.663655
0.636364
0.602296
0.588368
0.580839
0.580839
0
0.065367
0.345603
10,894
371
74
29.363881
0.679899
0.090141
0
0.594891
0
0
0.068668
0.012983
0
0
0.007303
0
0
1
0.025547
false
0.007299
0.036496
0
0.094891
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e266d63f6512f29cea6db3e7a1e786d0b045c0b
8,739
py
Python
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
models/torch_conv_train.py
Devjiu/Quntization
60853485525a5382cde7824b0b09e55e2e264e2f
[ "MIT" ]
null
null
null
import itertools import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt device = torch.device("cpu") transform = transforms.Compose([transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) trainset = torchvision.datasets.CIFAR10(root='./dat...
35.962963
115
0.620323
1,173
8,739
4.491901
0.248082
0.005694
0.005694
0.003796
0.211425
0.16246
0.105143
0.077434
0.077434
0.051243
0
0.028911
0.240073
8,739
242
116
36.11157
0.764493
0.392951
0
0.12963
0
0
0.036275
0
0
0
0
0
0
1
0.064815
false
0
0.083333
0
0.203704
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e2680be29a37e0471952ff1c48d95daa56f74a6
4,738
py
Python
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
11
2021-05-04T03:15:20.000Z
2022-02-16T07:44:16.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
4
2021-06-21T11:12:37.000Z
2021-06-29T11:54:18.000Z
src/dispatch/job/views.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
2
2021-05-05T00:42:44.000Z
2021-05-10T12:51:58.000Z
from typing import List from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, Query from sqlalchemy.orm import Session from dispatch.enums import Visibility from dispatch.auth.models import DispatchUser from dispatch.auth.service import get_current_user from dispatch.database import get_db, search_f...
30.567742
93
0.691009
651
4,738
4.809524
0.218126
0.077611
0.035133
0.05749
0.452571
0.381667
0.330565
0.320664
0.281699
0.281699
0
0.004443
0.192486
4,738
154
94
30.766234
0.813905
0.102575
0
0.40404
0
0
0.11154
0.012313
0
0
0
0
0
1
0.070707
false
0
0.10101
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e286f4bba6bc269eb129fff803ce6e3c742ed75
11,451
py
Python
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
null
null
null
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
23
2019-03-07T08:05:36.000Z
2019-10-11T10:37:35.000Z
dashboard/dashboard.py
leap-solutions-asia/auto-scaling
be6a3e743be5ee57d5c6a5a35578a44f07751fe5
[ "MIT" ]
3
2019-08-09T05:46:35.000Z
2020-01-23T10:12:29.000Z
import os import re import pickle from flask import Flask, render_template, url_for, flash, redirect, session from forms import SettingsForm, CredentialForm, EditCredentialForm, EditSettingsForm from CloudStackApiClient import CloudStackApiClient from CloudStackConfig import CloudStackConfig, cloudstack_file from tim...
37.917219
120
0.656537
1,351
11,451
5.274611
0.131754
0.034381
0.019646
0.030873
0.458322
0.393068
0.311255
0.294274
0.234493
0.194639
0
0.004746
0.227229
11,451
301
121
38.043189
0.800542
0
0
0.331984
0
0
0.154222
0.028469
0
0
0
0
0
1
0.020243
false
0
0.036437
0
0.121457
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e2918459530001385052c20f48317cb1c6bed76
6,679
py
Python
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
121
2015-01-23T20:42:14.000Z
2022-02-28T23:36:46.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
206
2015-01-01T00:34:12.000Z
2022-01-20T20:15:59.000Z
modules/gitbox/files/asfgit/hooks/ghactions.py
isabella232/infrastructure-puppet
5fcb3429d47688b605c6b9f33e453c639af0d20c
[ "Apache-2.0" ]
167
2015-04-15T21:13:19.000Z
2021-11-07T21:16:59.000Z
#!/usr/local/bin/python import fnmatch import io import os import re import subprocess import sys import asfpy.messaging import yaml import yaml.constructor # LDAP to CNAME mappings for some projects WSMAP = { "whimsy": "whimsical", "empire": "empire-db", "webservices": "ws", "infrastructure": "infra...
36.697802
121
0.590957
813
6,679
4.765068
0.348093
0.02065
0.021941
0.009293
0.077439
0.064017
0.050594
0.050594
0.050594
0.050594
0
0.003243
0.307531
6,679
181
122
36.900552
0.834378
0.214403
0
0.078125
0
0
0.177208
0.027189
0
0
0
0
0
1
0.054688
false
0.007813
0.085938
0
0.179688
0.007813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e2f92d8667d4eff648ffa790d95599d6434e9f2
1,606
py
Python
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
3
2020-02-11T23:17:55.000Z
2021-06-10T20:54:07.000Z
user_auth/views.py
miswo/tweet-only-client
649c0c621e84f726fc8c1fc51725c74b6f7dc8ad
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from social_django.models import UserSocialAuth import tweepy, os ''' from djangoworks.settings import isDebug if isDebug() == True: try: from djangoworks.configs import twitter SOCIAL_AUTH_TWITT...
29.740741
98
0.651308
184
1,606
5.461957
0.358696
0.099502
0.169154
0.099502
0.319403
0.128358
0.128358
0.128358
0
0
0
0
0.254047
1,606
53
99
30.301887
0.838898
0
0
0
0
0
0.140565
0.037433
0
0
0
0
0
1
0.034483
false
0
0.137931
0
0.275862
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e307b91132870572d536e2f42552febf7371a45
646
py
Python
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
2
2021-08-01T08:05:15.000Z
2021-08-01T08:11:07.000Z
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
null
null
null
configs/hyperparameters.py
hyungkwonko/PTI
5c804a9fc75028cede80b187c0def28521f2a331
[ "MIT" ]
1
2021-08-19T10:42:56.000Z
2021-08-19T10:42:56.000Z
## Architechture lpips_type = 'vgg' first_inv_type = 'w' optim_type = 'adam' ## Locality regularization latent_ball_num_of_samples = 1 locality_regularization_interval = 1 use_locality_regularization = False regulizer_l2_lambda = 0.1 regulizer_lpips_lambda = 0.1 regulizer_alpha = 30 ## Loss pt_l1_lambda = 1 pt_l2_lam...
19.575758
36
0.78483
109
646
4.220183
0.541284
0.052174
0.058696
0.073913
0
0
0
0
0
0
0
0.078853
0.136223
646
32
37
20.1875
0.74552
0.094427
0
0
0
0
0.013937
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e346baa1e8905675293c0be9900be1c2daedaec
458
py
Python
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
codigo_Arduino/DesdeConsola.py
Mik3Mon/AnalisisAlgoritmos
95b739b22ab2fa240df0373ef89423286399a65e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 9 22:11:56 2021 @author: Mike """ import serial import time arduino = serial.Serial("COM2", 9600) time.sleep(2) print("Presione 1 para mandar y 2 para apagar: ") while 1: datousuario = input() if datousuario == "1": arduino.write(b'34.23;34.23;45.22')...
18.32
49
0.561135
61
458
4.213115
0.672131
0.031128
0
0
0
0
0
0
0
0
0
0.107362
0.28821
458
25
50
18.32
0.680982
0.159389
0
0
0
0
0.198413
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e365b42aa11cbe15a9c00e9f63e614ec75483ec
11,547
py
Python
src/simulations/tests/simulator_test.py
PrivacyAmp/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
20
2020-03-30T22:39:32.000Z
2022-03-09T06:32:14.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
41
2020-05-01T01:09:38.000Z
2021-10-15T17:53:31.000Z
src/simulations/tests/simulator_test.py
OpenMeasurement/cardinality_estimation_evaluation_framework
c6f16733f821bba99c1e5ca827025a063f5689ae
[ "Apache-2.0" ]
8
2020-06-18T22:33:14.000Z
2021-05-03T13:39:12.000Z
# Copyright 2020 The Private Cardinality Estimation Framework Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
38.49
104
0.71603
1,421
11,547
5.475018
0.143561
0.006684
0.064781
0.031105
0.672622
0.608612
0.562468
0.536375
0.47635
0.437404
0
0.022251
0.190439
11,547
299
105
38.618729
0.810013
0.068849
0
0.450644
0
0
0.027035
0.006898
0
0
0
0
0.137339
1
0.098712
false
0
0.055794
0.012876
0.2103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e3dddefc0fc41021833c4964e4d102684d48114
616
py
Python
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
22
2020-08-04T13:52:16.000Z
2022-03-16T09:48:26.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
5
2020-10-16T12:24:06.000Z
2021-07-21T02:19:34.000Z
utils/bufsize.py
devmil/pty
d8365a8ca021e8da1611512662cee94cc41688a6
[ "MIT" ]
6
2020-10-03T03:00:47.000Z
2021-12-30T10:33:51.000Z
#!/usr/bin/env python3 # Pty buffer size detect script # From: https://superuser.com/a/1452858 # Results: # MacOS 11.2.3: pts write blocked after 1023 bytes (0 KiB) import os from pty import openpty from fcntl import fcntl, F_GETFL, F_SETFL from itertools import count def set_nonblock(fd): flags = fcntl(fd, F_G...
20.533333
69
0.670455
96
616
4.229167
0.59375
0.039409
0.073892
0.098522
0
0
0
0
0
0
0
0.045267
0.211039
616
30
69
20.533333
0.790123
0.251623
0
0
0
0
0.091904
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e3f9e5cf08830d85f22ac94a405bd4dc059c2da
1,007
py
Python
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
LTC1380.py
karu2003/Bandpass_tester
645fc2478ece07ba4303079da020a4f15f946897
[ "MIT" ]
null
null
null
#!/usr/bin/env python """python module for the LTC1380 created 17, 06, 2021 last modified 17, 06, 2021 Copyright 2021 Andrew Buckin """ import smbus import time Enable = 8 class LTC1380: def __init__(self, i2cAddress=0x48): self.i2cAddress = i2cAddress self.bus = smbus.SMBus(1) try: ...
20.14
64
0.600794
126
1,007
4.68254
0.484127
0.142373
0.061017
0.081356
0.186441
0.186441
0.186441
0
0
0
0
0.080508
0.296922
1,007
49
65
20.55102
0.752825
0.142999
0
0.133333
0
0
0.038687
0
0
0
0.014068
0
0
1
0.133333
false
0
0.066667
0
0.366667
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
2e43b13aff85b6f549a34372cb839f1045f1224d
9,618
py
Python
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
common/model.py
abhay97ps/visual-control-ppo-procgen
765fe1ddb289d384abddc4df8eb865379c8da76a
[ "MIT" ]
null
null
null
from .misc_util import orthogonal_init, xavier_uniform_init import torch.nn as nn import torch import torch.nn.functional as F class Flatten(nn.Module): def forward(self, x): return x.reshape(x.size(0), -1) class MlpModel(nn.Module): def __init__(self, input_dims=4, ...
36.850575
126
0.563215
1,345
9,618
3.864684
0.166543
0.048095
0.021162
0.025972
0.297999
0.233167
0.197191
0.145633
0.093113
0.057715
0
0.045523
0.312539
9,618
261
127
36.850575
0.740623
0.140466
0
0.201087
0
0
0
0
0
0
0
0
0
1
0.103261
false
0
0.021739
0.01087
0.233696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e44aa4ea82d11042fce4becc4abc41c58a84079
1,350
py
Python
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
src/sample_api.py
evanmahony/kaggleTemplate
19a44e4511ca137382a810d3e230a13ee7413959
[ "MIT" ]
null
null
null
import logging import os from flask import Flask, request import pandas as pd import torch from torch_template import Model PATH = "/home/jovyan" LOAD_PATH = os.path.join(PATH, "runs/03-56 17_02_22/model.pth") OUTPUT_PATH = os.path.join(PATH, "runs/api") # Configuring logging logging.basicConfig( filename=os.pa...
24.107143
63
0.660741
207
1,350
4.169082
0.386473
0.114716
0.11124
0.059096
0.14832
0.104287
0
0
0
0
0
0.016755
0.16
1,350
55
64
24.545455
0.744268
0.014074
0
0.04878
0
0
0.231001
0
0
0
0
0
0
1
0.04878
false
0
0.146341
0
0.243902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e46f63258059c8f4e70f3a51307f604048da8b0
4,768
py
Python
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
86
2018-08-31T08:43:42.000Z
2022-02-07T12:39:41.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
3
2018-09-05T12:52:49.000Z
2020-02-28T12:11:36.000Z
script/fsrcnn/train.py
victorelcaminas/SuperResolutionKit
aef8a9a8a36f8833244e8c6907616b1a6aee962b
[ "MIT" ]
5
2018-09-11T23:06:28.000Z
2022-01-23T19:50:14.000Z
from keras.models import Sequential from keras.layers import Conv2D, Conv2DTranspose, Input, BatchNormalization, PReLU from keras.callbacks import ModelCheckpoint, Callback, TensorBoard from keras.optimizers import SGD, Adam import numpy as np import math import os import random from os import listdir, makedirs from os...
38.144
162
0.648909
674
4,768
4.378338
0.284866
0.022365
0.046086
0.03897
0.257201
0.213826
0.213826
0.196205
0.125042
0.099288
0
0.025201
0.217701
4,768
124
163
38.451613
0.765952
0.018037
0
0.113208
0
0
0.069216
0.008118
0
0
0
0
0
1
0.056604
false
0.009434
0.132075
0
0.235849
0.04717
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e46fbeaf8ee970ea30ad406caaf1c983e261497
5,023
py
Python
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
5
2020-09-23T01:06:00.000Z
2020-11-24T04:39:58.000Z
module/error.py
Saroniii/yonosumi_official_bot
ef09ff8e9c089c0df8d191fe5db665f0f7322fd3
[ "MIT" ]
13
2020-10-10T16:00:16.000Z
2020-11-26T02:02:57.000Z
module/error.py
YonosumiProject/yonosumi_official_bot
f8e3d2c0f7c0320cdb9247917d6d21f208ec7a77
[ "MIT" ]
2
2021-04-19T21:46:00.000Z
2021-08-16T07:23:11.000Z
import re import traceback import discord from discord.ext import commands class ErrorHandler(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self, ctx, error): if isinstance(error, (commands.CommandNotFound, commands.CommandOnCo...
41.858333
212
0.505873
488
5,023
5.114754
0.403689
0.024038
0.028045
0.047676
0.256811
0.221154
0.210737
0.210737
0.154647
0.154647
0
0.017288
0.343619
5,023
119
213
42.210084
0.739157
0
0
0.212389
0
0
0.212622
0.088194
0
0
0
0
0
1
0.017699
false
0.035398
0.035398
0
0.097345
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e475fe77b8d59f438381a1b9f65606ccdf0eeb0
10,481
py
Python
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
149
2015-01-08T21:55:20.000Z
2022-02-28T10:43:53.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
71
2015-01-04T22:28:56.000Z
2022-02-06T09:23:30.000Z
rabbitpy/channel0.py
AndTornes/rabbitpy
0b805f308c868ae69825cb6366e2b0a1e74c1f2b
[ "BSD-3-Clause" ]
56
2015-01-07T11:06:05.000Z
2022-03-18T08:45:40.000Z
""" Channel0 is used for connection level communication between RabbitMQ and the client on channel 0. """ import locale import logging import sys from pamqp import header from pamqp import heartbeat from pamqp import specification from rabbitpy import __version__ from rabbitpy import base from rabbitpy import events...
36.141379
78
0.626085
1,136
10,481
5.550176
0.185739
0.026963
0.026646
0.021887
0.2
0.113402
0.086122
0.057098
0.033307
0.020301
0
0.003225
0.289858
10,481
289
79
36.266436
0.84388
0.22889
0
0.080247
0
0
0.100773
0.006552
0
0
0
0
0
1
0.117284
false
0.012346
0.067901
0
0.283951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e4773ee4daaadfedc508c278457290fb9e78e54
1,617
py
Python
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
format.py
saultyevil/PyPython
109f650505388ecf0611c6e2661d1365bca4cd70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import argv from subprocess import run from pathlib import Path def format_source(fp): """Run isort and then yapf to format the python files contained in fp. Sends the output to /dev/null. Parameters ---------- fp: str The file path to search recursively fo...
27.40678
116
0.634508
220
1,617
4.595455
0.354545
0.04451
0.04451
0.053412
0.327399
0.327399
0.281899
0.254204
0.254204
0.254204
0
0.004743
0.217687
1,617
58
117
27.87931
0.794466
0.320965
0
0.230769
0
0.038462
0.355094
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e47d4e19559b640b7393534b7b6cf07e2a119e3
1,091
py
Python
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
5
2021-09-07T02:47:33.000Z
2021-12-05T13:22:00.000Z
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
null
null
null
utils.py
Mahoo12138/auto-submit-dlu
a955afba7f453c03d0bccb8ae02258ff43ef6663
[ "Apache-2.0" ]
1
2021-09-09T08:39:51.000Z
2021-09-09T08:39:51.000Z
import json from base64 import b64encode from Crypto.Cipher import AES, DES from Crypto.Util.Padding import pad from Crypto.Hash import MD5 from urllib.parse import quote ### 用于加密生成 Cpdaily-Extension,传入表单以及个人配置数据 def extensionEncrypt(data): key = b"b3L26XNL" iv = bytes([1, 2, 3, 4, 5, 6, 7, 8]) data = byt...
29.486486
70
0.672777
165
1,091
4.4
0.363636
0.027548
0.012397
0.016529
0.436639
0.436639
0.436639
0.426997
0.333333
0.223141
0
0.053872
0.183318
1,091
36
71
30.305556
0.760943
0.033914
0
0.214286
0
0
0.06387
0
0
0
0
0
0
1
0.107143
false
0
0.214286
0
0.428571
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e48c7fdd82f103792c63baa829d0d629b6b36dd
85,623
py
Python
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
2
2017-11-23T01:07:37.000Z
2021-06-25T05:03:49.000Z
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
null
null
null
RVS/X86.py
infosecsecurity/OSPTF
df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f
[ "MIT" ]
1
2018-05-22T02:28:43.000Z
2018-05-22T02:28:43.000Z
# X86 disassembler for Python # Copyright (c) 2011-2012 Rusty Wagner # # 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, ...
41.604956
195
0.652687
13,344
85,623
3.877023
0.09982
0.034561
0.02969
0.025515
0.587436
0.533662
0.48126
0.42105
0.382855
0.345859
0
0.066937
0.144879
85,623
2,057
196
41.625182
0.639651
0.037023
0
0.412473
0
0
0.209012
0.002483
0
0
0.007535
0
0
1
0.067287
false
0.000547
0
0
0.114333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e4be7a86b7c2c6de6676d47c165fb2dc92bdf33
9,123
py
Python
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
train.py
LeiShenVictoria/Static-Dynamic-Attention-CNNRNN
e2823717d22c9e543428d471ff19113bbb59ebfe
[ "MIT" ]
null
null
null
import sys import os import random import re import time import torch from torch.autograd import Variable from torch import optim import torch.nn as nn #from static_model import StaticModel from CNNencoder import StaticModel #from dyna_model import DynamicModel from dynaMerge import DynamicModel from data_utils import...
44.720588
195
0.676532
1,159
9,123
5.044003
0.160483
0.050291
0.079028
0.016421
0.413958
0.393774
0.371707
0.351865
0.314232
0.229046
0
0.0107
0.190727
9,123
203
196
44.940887
0.781119
0.136578
0
0.134615
0
0
0.136856
0.03781
0
0
0
0
0
1
0.025641
false
0
0.089744
0
0.128205
0.294872
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e4c314862be76fd6a5e4ccb10c67ae77671cff4
1,770
py
Python
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
196
2018-02-21T09:26:49.000Z
2021-10-05T12:20:11.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
3
2018-06-28T15:17:31.000Z
2019-07-22T17:09:45.000Z
evaluation/experiment/sentence_classification/training.py
UKPLab/arxiv2018-xling-sentence-embeddings
95305c1a3d6d3e8c5f5365db463ba11cc9bd33b1
[ "Apache-2.0" ]
24
2018-03-05T19:01:32.000Z
2022-02-25T03:01:51.000Z
import math import numpy as np from experiment.utils.training import BatchedTraining class SentenceClassificationBatchedTraining(BatchedTraining): def __init__(self, config, config_global, logger): super(SentenceClassificationBatchedTraining, self).__init__(config, config_global, logger) self.n_...
32.777778
112
0.672316
222
1,770
5.112613
0.328829
0.035242
0.044053
0.060793
0
0
0
0
0
0
0
0.002981
0.241808
1,770
53
113
33.396226
0.842772
0.081921
0
0.058824
0
0
0
0
0
0
0
0
0
1
0.147059
false
0
0.088235
0.029412
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e4c5aa2e4e0404fffa88a1c14672d6de337f9d8
5,096
py
Python
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
2
2020-11-26T07:46:48.000Z
2021-07-28T08:06:58.000Z
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
spec/explainers/random_attention.py
deep-spin/spec-blackboxnlp
23db7a559e09ff7f63ede06b04cad226432b90db
[ "MIT" ]
null
null
null
import torch from spec import constants from spec.explainers.explainer import Explainer from spec.explainers.utils import filter_word_ids_with_non_zero_probability class RandomAttentionExplainer(Explainer): def __init__(self, fields_tuples, options): super().__init__(fields_tuples) self.words_vo...
43.186441
80
0.61617
664
5,096
4.486446
0.22741
0.155086
0.040282
0.05908
0.410876
0.338033
0.315206
0.291709
0.206781
0.181269
0
0.012386
0.287088
5,096
117
81
43.555556
0.807597
0.101452
0
0.287356
0
0
0.013363
0
0
0
0
0
0
1
0.034483
false
0
0.045977
0
0.103448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e4e5a5c9c0e1e8ff2e56cee306ac39096e94fd8
6,529
py
Python
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
shotmanager/vectorPathHandler.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
# # Code common across shots to handle movement on paths # from pymavlink import mavutil import location_helpers import shotLogger from pathHandler import PathHandler from shotManagerConstants import * import math from vector3 import Vector3 logger = shotLogger.logger #Path accel/decel constants WPNAV_ACCEL = 200 WP...
35.483696
137
0.627202
763
6,529
5.281782
0.315858
0.051613
0.034739
0.021588
0.103226
0.094789
0.064516
0.064516
0.036228
0.036228
0
0.021763
0.296217
6,529
183
138
35.677596
0.855277
0.266656
0
0.041237
0
0
0.005084
0
0
0
0
0
0
1
0.041237
false
0
0.072165
0
0.14433
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e51536d35690c069b3289446524366923e72f15
8,183
py
Python
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
2
2021-05-06T21:00:09.000Z
2021-06-26T11:51:19.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-29T06:20:06.000Z
2021-01-16T16:17:08.000Z
IntensivregisterUpdate.py
fe-lix-werner/covid19de_monitor
3867676756a36f06c10b348e53afba125d244525
[ "MIT" ]
3
2020-10-28T16:45:23.000Z
2020-12-09T13:35:09.000Z
#!/usr/bin/env python3 import requests import json import argparse import datetime import io import threading BL_API = 'https://www.intensivregister.de/api/public/reporting/laendertabelle' LK_API = 'https://diviexchange.blob.core.windows.net/%24web/DIVI_Intensivregister_Auszug_pro_Landkreis.csv' BL_DICT = {'BW': 'BAD...
39.723301
342
0.630331
1,104
8,183
4.442029
0.236413
0.022023
0.034666
0.021207
0.367251
0.347268
0.285073
0.235318
0.208605
0.208605
0
0.006249
0.237321
8,183
205
343
39.917073
0.779523
0.017231
0
0.14881
0
0.017857
0.216721
0.01891
0
0
0
0
0
1
0.113095
false
0
0.035714
0.017857
0.261905
0.059524
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e527faed8095c3ea58150eacca0a778dfb4545f
2,693
py
Python
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
8
2019-04-11T17:37:38.000Z
2021-07-26T17:03:30.000Z
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
null
null
null
pyscrubber.py
sanketsaurav/nlm-scrubber-docker
dbd2529b8b2e453f0800e1b2a4126df026e45190
[ "MIT" ]
2
2020-01-29T00:37:25.000Z
2020-09-26T06:27:04.000Z
#!/usr/bin/env python import uuid import os import subprocess import shutil DOC_DELIMITER = '\n##### DOCUMENT #############################################################' class Scrubber(): '''This class is a wrapper around the `nlm_scrubber` library.''' def __init__(self, working_directory='/tmp/nlm_scrub...
33.246914
167
0.57928
332
2,693
4.506024
0.304217
0.074866
0.026738
0.034759
0.183824
0.14639
0.083556
0
0
0
0
0.005615
0.272558
2,693
80
168
33.6625
0.75804
0.0557
0
0.038462
0
0.019231
0.210817
0.070272
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.211538
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e528039973bc6fa5f650d3dd268fb60bdd771de
2,569
py
Python
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-12-24T10:45:37.000Z
2022-03-04T00:47:14.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
2
2019-10-31T17:42:36.000Z
2020-03-24T18:20:41.000Z
src/galaxy_crawler/models/helper.py
pddg/galaxy_crawler
cc0634dfca7d81ee49e5370ff0bf83cca92ec4ac
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING import pandas as pd from galaxy_crawler.models import utils from galaxy_crawler.models import v1 as models if TYPE_CHECKING: from datetime import datetime from typing import List, Optional from sqlalchemy.engine import Engine def get_roles_df(engine: 'Engine', except_ro...
40.777778
116
0.679253
342
2,569
4.912281
0.339181
0.033333
0.035714
0.027381
0.191667
0.066667
0
0
0
0
0
0.00503
0.226158
2,569
62
117
41.435484
0.84004
0.309848
0
0.066667
0
0
0.120381
0
0
0
0
0
0.033333
1
0.1
false
0
0.233333
0
0.433333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e52978a04dbb6b314c47e801d5498f9f38d6a4e
2,065
py
Python
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
5
2018-08-12T19:30:30.000Z
2022-03-04T15:27:31.000Z
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
null
null
null
frameworks/tc_scikit/features/dependency_distribution_spacy.py
Asteur/textclassification
80222e99e1a195031cf8e98bc294a09e498c29a3
[ "MIT" ]
2
2018-07-13T02:06:48.000Z
2020-12-10T13:35:17.000Z
import logging from collections import OrderedDict import numpy as np from sklearn.base import BaseEstimator from sklearn.feature_selection import SelectKBest, chi2 from sklearn.pipeline import Pipeline from sklearn.preprocessing import Normalizer from frameworks.tc_scikit.models.tiger import TIGER_TAGSET_SPACY def...
32.777778
88
0.659564
223
2,065
5.914798
0.35426
0.060652
0.027293
0.036391
0.198635
0.198635
0.198635
0.106141
0
0
0
0.004534
0.2523
2,065
62
89
33.306452
0.849741
0
0
0.212766
0
0
0.061985
0.028087
0
0
0
0
0
1
0.148936
false
0
0.170213
0.042553
0.468085
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e52f62008c27b479273629366f87f8875845031
4,728
py
Python
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
1
2022-03-24T16:15:04.000Z
2022-03-24T16:15:04.000Z
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
structsolve/arc_length_riks.py
saullocastro/structsolve
3c325068ca13e8632f506fb18c2ea5de495c581e
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from numpy import dot from scipy.sparse import csr_matrix, vstack as spvstack, hstack as sphstack from .static import solve from .logger import msg, warn def _solver_arc_length_riks(an, silent=False): r"""Arc-Length solver using the Riks method """ msg('_______________________________...
34.014388
116
0.544628
611
4,728
3.95581
0.219313
0.08192
0.034754
0.052131
0.233347
0.149359
0.116674
0.092677
0.061233
0.061233
0
0.023548
0.344332
4,728
138
117
34.26087
0.756129
0.026227
0
0.207207
0
0
0.121845
0.018712
0
0
0
0
0
1
0.009009
false
0
0.045045
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e53c6858211b2819fa897c860639a3bd48a5cee
3,245
py
Python
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-06-27T02:01:22.000Z
2021-06-27T02:01:22.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:56:04.000Z
2021-09-30T10:26:13.000Z
interactive_map_tester/interactive_map_tester/visualizeInteractiveMap.py
antonikaras/thesis_ros2
36673cd8a4161b1cf4045e8bdda36275a2a337ce
[ "BSD-2-Clause" ]
1
2021-09-30T01:52:28.000Z
2021-09-30T01:52:28.000Z
# Import ROS2 libraries import rclpy from rclpy.node import Node from cv_bridge import CvBridge, CvBridgeError from rclpy.qos import QoSProfile from rclpy.callback_groups import ReentrantCallbackGroup from rclpy.executors import MultiThreadedExecutor # Import message files from sensor_msgs.msg import Image from autono...
32.45
105
0.646533
385
3,245
5.293506
0.374026
0.061825
0.019136
0.028459
0.054956
0.054956
0
0
0
0
0
0.008045
0.233898
3,245
100
106
32.45
0.811746
0.21171
0
0
0
0
0.067053
0.034354
0
0
0
0
0
1
0.056604
false
0.018868
0.207547
0
0.283019
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e5512d26ff378d4e8524182eb1fa3deb226d67e
1,027
py
Python
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
b64.py
Orphan-Crippler/b64
a93ab8bc96ae0b443911cb28a57ec94f4eab29bb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Libraries from base64 import b64encode, b64decode # Messages warn = '!!!!!!!!!!!!!!!!!!!!!!!! WARNING: ' valid = '\nPlease Enter a Valid Entry!\n' # Menu/Encode/Decode Logic def app(st): if st == '1': code = input('Enter Stuff to Encode: ').encode() print('...
23.883721
78
0.487829
125
1,027
4.008
0.432
0.047904
0.055888
0.075848
0.39521
0.239521
0.239521
0.239521
0.239521
0.239521
0
0.028401
0.348588
1,027
42
79
24.452381
0.720478
0.076923
0
0.4375
0
0.03125
0.211987
0.026637
0
0
0
0
0
1
0.03125
false
0
0.03125
0
0.15625
0.21875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e56257d1dcde4b6d5d35bb6f662c1c19842ef6e
325
py
Python
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
null
null
null
code/examples/04-adc/adc_pot_servo.py
yuanyanhui/intro-upy-esp32
5f066ca8b1804dc6032e8f0a5957acd6e36baffb
[ "MIT" ]
1
2022-03-09T08:40:41.000Z
2022-03-09T08:40:41.000Z
""" Control servo using potentiometer """ from machine import Pin, ADC, PWM pot = ADC(Pin(32), atten = ADC.ATTN_11DB) # 电位器 - ADC servo = PWM(Pin(33), freq = 50) # 舵机 while True: adc_value = pot.read() pulse_width_value = (125 - 25)/4095 * adc_value + 25 servo.duty(int(pulse_width_value))...
23.214286
56
0.621538
48
325
4.0625
0.645833
0.082051
0.153846
0
0
0
0
0
0
0
0
0.077551
0.246154
325
14
57
23.214286
0.718367
0.144615
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e56e1fd3a0ac1e94ebfe17d566b249e1081cc8e
3,720
py
Python
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
1
2016-12-23T08:38:57.000Z
2016-12-23T08:38:57.000Z
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
project7/project7-lp-single.py
karulont/combopt
98ad05f574d1ce355fc653df60bedde8a3bb838b
[ "MIT" ]
null
null
null
from gurobipy import * from sys import argv import json import math import drawful def read_lst(fn): with open(fn, 'r') as f: (n, tp) = json.load(f) return (n, tp) def write_lst(fn, lst): with open(fn, 'w') as f: json.dump(lst, f) def distance(v1, v2): return mat...
27.555556
89
0.508065
511
3,720
3.606654
0.25636
0.023874
0.021704
0.026044
0.109061
0.070537
0.049919
0.026044
0.026044
0.026044
0
0.057875
0.349731
3,720
134
90
27.761194
0.70401
0.117742
0
0
0
0
0.039381
0
0
0
0
0
0
1
0.084337
false
0
0.072289
0.024096
0.228916
0.072289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e59427f48e64e36035d7a96d2e7bfa4cb4b20f1
4,515
py
Python
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
src/main.py
darrenyaoyao/VR_motion_predict
2039197d017a16460caefff57bfb117c0bd814bc
[ "MIT" ]
null
null
null
import select import socket import struct import traceback import logging import time import numpy as np import queue import random,threading,time from translate import pose_predict import csv import time def health_check(s): readable,writeable,err = select.select([s],[s],[s],0) if len(readable)<1 or len(write...
31.137931
95
0.534219
530
4,515
4.307547
0.269811
0.055191
0.047306
0.032852
0.162067
0.096364
0.074463
0.04205
0.04205
0
0
0.024619
0.36124
4,515
145
96
31.137931
0.76699
0.033666
0
0.132743
0
0
0.038108
0
0
0
0
0
0
1
0.061947
false
0.00885
0.106195
0
0.20354
0.079646
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e61401fb8829929663164716c5983c2dde332cf
2,421
py
Python
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
21
2020-01-22T05:18:52.000Z
2021-09-28T15:55:10.000Z
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
null
null
null
lib/models/model_factory.py
iShohei220/kaggle-pku-autonomous-driving
647f1c48044f0c2cebcc5cb71854cb39ace0078c
[ "MIT" ]
10
2020-01-30T14:25:50.000Z
2020-08-25T02:03:50.000Z
import torch.nn as nn import torch.nn.functional as F from torchvision import models import pretrainedmodels from . import resnet_fpn from . import dla def get_model(name, heads, head_conv=128, num_filters=[256, 256, 256], dcn=False, gn=False, ws=False, freeze_bn=False, **kwargs): if 'res' in name ...
37.246154
80
0.576208
283
2,421
4.696113
0.293286
0.047404
0.056433
0.040632
0.242287
0.176072
0.155004
0.106847
0
0
0
0.021672
0.33292
2,421
64
81
37.828125
0.801238
0
0
0.169811
0
0
0.019
0
0
0
0
0
0
1
0.037736
false
0
0.113208
0
0.188679
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e63134eca33ec86bdf84b7c00c96006e7888c50
16,775
py
Python
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
src/moderations/slack.py
definitelysecure/shipwrecked
3b79c6df63ed3c271ccb1b8a21081c76bcd9f08a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime import json import re import requests from django.http import HttpResponse from accounts.models import AuthToken from moderations.models import Moderation, ModerationAction from moderations.utils import timedelta_to_str class SlackSdk(object): @staticmethod ...
33.086785
102
0.497466
1,611
16,775
5.002483
0.139665
0.039087
0.041693
0.027299
0.528353
0.452289
0.414816
0.398312
0.347065
0.285023
0
0.006559
0.363756
16,775
506
103
33.152174
0.747213
0.003815
0
0.289216
0
0.009804
0.209304
0.008824
0
0
0
0
0.002451
1
0.041667
false
0
0.019608
0.004902
0.122549
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e651a2fe83d07fb048afcf923ef6a66a310e429
2,814
py
Python
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
APS.py
PabloGramos/APS
a7825628f8ce7ef46da413948c40d03c8118717e
[ "MIT" ]
null
null
null
def soma(): r=1 while r>0: n1 = int(input("Valor: ")) n2 = int(input(f"{n1} + ")) soma = n1 + n2 print(f"\n{n1} + {n2} = {soma}\n") r=int(input("1-Continuar 0-Sair: ")) if r > 1: print("Opção Inválida!....Saindo") r=0 def sub(): r = 1 ...
26.299065
121
0.429638
367
2,814
3.294278
0.201635
0.105873
0.104218
0.039702
0.473945
0.473945
0.463193
0.438379
0.405294
0.405294
0
0.049743
0.378465
2,814
107
122
26.299065
0.641509
0
0
0.457944
0
0.009346
0.314387
0.026998
0
0
0
0
0
1
0.056075
false
0
0.018692
0
0.074766
0.158879
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e675938f3d093c0365d3aa398c262cefa7433e0
3,357
py
Python
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
home-assistant-backup.py
scaarup/home-assistant-backup
1310054ebd41550292d45329411500cb08b369a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by Søren Christian Aarup, sc@aarup.org # https://github.com/scaarup/home-assistant-backup # api ref.: https://developers.home-assistant.io/docs/api/supervisor/endpoints import requests,json,datetime,gzip,sys,datetime from datetime import timedelta, date token = 'Bearer <token>' host = '...
34.96875
105
0.670539
422
3,357
5.2891
0.329384
0.043011
0.029122
0.019713
0.301075
0.28853
0.274194
0.1819
0.143369
0.143369
0
0.002874
0.170688
3,357
95
106
35.336842
0.798851
0.129282
0
0.16
0
0
0.243643
0.0189
0
0
0
0
0
1
0.08
false
0
0.026667
0
0.133333
0.026667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e6cd67c9f0d05ca91537b7f522e588f70c9a9c4
1,319
py
Python
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
4
2016-11-22T11:26:06.000Z
2017-02-22T12:56:45.000Z
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
26
2016-11-08T20:04:37.000Z
2017-02-18T13:51:39.000Z
src/features/build_features.py
mikolajsacha/tweetsclassification
33756cf6877f9cec328f08a3c728b26bf123bc8f
[ "MIT" ]
null
null
null
""" Contains class FeatureBuilder for building feature set from given data set and word embedding """ import numpy as np class FeatureBuilder(object): """ Class used for building feature matrix. Field "labels" is a list of categories of sentences Field "features" is a features matrix of shape (trainin...
36.638889
113
0.690675
162
1,319
5.530864
0.37037
0.066964
0.084821
0.029018
0.133929
0.133929
0.133929
0.133929
0.133929
0.133929
0
0.004892
0.225171
1,319
35
114
37.685714
0.87182
0.38514
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e6d28bc002be9af0e517b72024d00a394efa949
1,624
py
Python
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
json/conanfile.py
kapilsh/conan-scripts
31c55397a2d721c80da5dbd6a6c738accfdbb241
[ "MIT" ]
null
null
null
import os from conans import ConanFile from conans.tools import download, check_sha256 class NlohmannJsonConan(ConanFile): name = "json" with open(os.path.join(os.path.dirname(os.path.realpath( __file__)), "VERSION.txt"), 'r') as version_file: version = version_file.read() settings = ...
33.142857
79
0.633621
187
1,624
5.390374
0.481283
0.065476
0.084325
0.065476
0.083333
0.05754
0
0
0
0
0
0.039075
0.227833
1,624
48
80
33.833333
0.764753
0.01601
0
0
0
0.026316
0.260652
0.049499
0
0
0
0
0
1
0.131579
false
0
0.078947
0.026316
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
2e6d68261b931f6d3c99896fa9c575feee129b51
5,958
py
Python
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
null
null
null
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
null
null
null
projects/seeker/tasks/dialogue.py
DrMatters/ParlAI
755b9dcb778deb5a82029d69ae3260579c6450f1
[ "MIT" ]
1
2022-01-24T13:22:18.000Z
2022-01-24T13:22:18.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ SeeKeR Dialogue Tasks. """ from typing import Optional from parlai.core.opt import Opt from parlai.core.params impor...
34.241379
88
0.643337
609
5,958
5.981938
0.228243
0.044469
0.027175
0.034587
0.444688
0.430963
0.343947
0.343947
0.313478
0.286028
0
0.002912
0.250755
5,958
173
89
34.439306
0.813172
0.049513
0
0.375
0
0
0.2126
0.114108
0
0
0
0
0
1
0.080882
false
0.022059
0.095588
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e6d9f56ad67c28ab101dfa720b2f55910ca38c7
350
py
Python
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
chrispile/util.py
FNNDSC/chrispile
9eb688b17bd3392c23b5cc2a1e11470d78d6029a
[ "MIT" ]
null
null
null
import abc from argparse import ArgumentParser, Namespace from .config import get_config class CommandProvider(abc.ABC): def __init__(self, parser: ArgumentParser): self.config = get_config() parser.set_defaults(func=self) @abc.abstractmethod def __call__(self, options: Namespace): ...
25
47
0.728571
39
350
6.25641
0.564103
0.07377
0
0
0
0
0
0
0
0
0
0
0.191429
350
13
48
26.923077
0.862191
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e6f1afc0f744ac9404e2211aba6de066e7ef17c
297
py
Python
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_1_beginner/07_type_dictionary/rozwiazania/exercise_1.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
1
2021-02-20T08:30:56.000Z
2021-02-20T08:30:56.000Z
# Stwórz słownik, w którym kluczami będą różne przedmioty szkolne # a wartościami oceny uzyskane z tych przedmiotów grades = { "Matematyka": [4, 2, 6, 5, 3], "Fizyka": [5, 5, 2, 4, 3], "Chemia": [4, 1, 4, 5, 4], "Biologia": [3, 5, 5, 2, 5], } print("Przedmioty i oceny", grades)
24.75
65
0.599327
46
297
3.869565
0.630435
0.022472
0.033708
0
0
0
0
0
0
0
0
0.087336
0.228956
297
11
66
27
0.689956
0.373737
0
0
0
0
0.263736
0
0
0
0
0
0
1
0
false
0
0
0
0
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e7040e11ae9ee1dfa29a9acc88975d2a9c16bff
703
py
Python
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
10
2021-01-21T17:03:26.000Z
2021-12-19T17:49:28.000Z
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
10
2021-01-21T15:55:53.000Z
2021-03-30T14:35:16.000Z
paper2/figures/calibration_default.py
dfm/mapping_stellar_surfaces
52d4ba1a726c65868e4a1290a801fe046fb2155f
[ "MIT" ]
2
2021-01-21T15:41:58.000Z
2021-01-25T16:26:15.000Z
from starry_process import calibrate import numpy as np import os import shutil # Utility funcs to move figures to this directory abspath = lambda *args: os.path.join( os.path.dirname(os.path.abspath(__file__)), *args ) copy = lambda name, src, dest: shutil.copyfile( abspath("data", name, src), abspath(dest) )...
31.954545
75
0.755334
97
703
5.329897
0.443299
0.085106
0.162476
0
0
0
0
0
0
0
0
0.001592
0.106686
703
21
76
33.47619
0.821656
0.11522
0
0
0
0
0.365696
0.237864
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e7169ec55a244a64b91496630b7d2210f0c8139
5,922
py
Python
python/ad/spectral_outlier.py
rislam/ad_examples
20e6dd2dbfd111ed5f69a9018180f7ef5ab627f6
[ "MIT" ]
1
2019-02-21T02:28:34.000Z
2019-02-21T02:28:34.000Z
python/ad/spectral_outlier.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
python/ad/spectral_outlier.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
import numpy.random as rnd from sklearn import manifold from sklearn.ensemble import IsolationForest from common.gen_samples import * """ pythonw -m ad.spectral_outlier """ def euclidean_dist(x1, x2): dist = np.sqrt(np.sum((x1 - x2) ** 2)) return dist class LabelDiffusion(object): """ IMPORTANT: T...
33.647727
99
0.577676
833
5,922
3.92557
0.285714
0.057187
0.026911
0.047095
0.10948
0.088073
0.06422
0.049541
0
0
0
0.020872
0.279973
5,922
175
100
33.84
0.746013
0.148261
0
0.055046
0
0
0.05136
0.023968
0
0
0
0
0
1
0.027523
false
0
0.036697
0
0.091743
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e71e3d05682a0aebe1f4b9f321ce88d5da677b1
5,042
py
Python
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
74
2018-11-14T02:36:13.000Z
2022-03-11T08:24:17.000Z
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
null
null
null
simchain/vm.py
Frank-gh/simchain
4dec42b6039730e4dcc0068209dd90200ee6b3d3
[ "Unlicense" ]
35
2019-01-16T04:18:24.000Z
2022-03-21T09:05:12.000Z
from .logger import logger from .ecc import convert_pubkey_to_addr,VerifyingKey,sha256d class Stack(list): push = list.append def peek(self): return self[-1] class LittleMachine(object): def __init__(self): self.stack = Stack() self._map = { "OP_ADD": ...
24.837438
76
0.527172
624
5,042
4.086538
0.214744
0.054902
0.025882
0.037255
0.237647
0.165882
0.062353
0.062353
0.028235
0.028235
0
0.018987
0.341928
5,042
202
77
24.960396
0.749548
0.12733
0
0.162791
0
0
0.037489
0
0
0
0
0
0
1
0.155039
false
0
0.031008
0.023256
0.248062
0.007752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e73ac16adb060cc06fc6f0d2d05cbe18736f6a0
5,556
py
Python
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
null
null
null
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
10
2020-05-12T06:58:15.000Z
2022-02-26T23:59:35.000Z
bgx/validator-bgx/sawtooth_validator/journal/consensus/consensus_factory.py
DGT-Network/DGT-Mississauga
52b5f1f4015db2aa7196e727a25b399de5fbf3c3
[ "Apache-2.0" ]
1
2021-01-12T21:38:01.000Z
2021-01-12T21:38:01.000Z
# Copyright 2017 NTRLab # # 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, softw...
42.090909
145
0.667207
600
5,556
5.96
0.245
0.11745
0.047819
0.031879
0.549217
0.510067
0.4217
0.36689
0.36689
0.36689
0
0.002417
0.2554
5,556
131
146
42.412214
0.861977
0.384989
0
0.322581
0
0
0.19457
0.14415
0
0
0
0
0
1
0.064516
false
0
0.112903
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e7810efd3616472cfac0aa367ce42b73363d1b5
4,162
py
Python
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_sinq/zebra/setups/monochromator.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
description = 'Devices for the ZEBRA monochromator' mota = 'SQ:ZEBRA:mota:' motb = 'SQ:ZEBRA:motb:' motd = 'SQ:ZEBRA:motd:' devices = dict( mtvl = device('nicos_ess.devices.epics.motor.EpicsMotor', epicstimeout = 3.0, description = 'Lower monochromator vertical translation', motorpv = mota...
34.97479
75
0.592023
419
4,162
5.842482
0.143198
0.071895
0.085784
0.128676
0.589052
0.518791
0.518791
0.518791
0.518791
0.518791
0
0.022401
0.281355
4,162
118
76
35.271186
0.796055
0
0
0.396552
0
0
0.351273
0.155694
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
2e79db4019af9551976d2be7470794d639b1bb48
15,886
py
Python
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
5
2015-11-24T23:09:46.000Z
2019-11-06T17:48:13.000Z
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
188
2017-08-28T22:39:03.000Z
2022-03-02T14:53:46.000Z
scripts/loading/ontology/psimi.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
7
2018-05-13T01:58:07.000Z
2021-06-25T19:08:33.000Z
import urllib.request, urllib.parse, urllib.error import logging import os from datetime import datetime import sys import importlib importlib.reload(sys) # Reload does the trick! from src.helpers import upload_file from scripts.loading.database_session import get_session from scripts.loading.ontology import read_owl ...
39.715
165
0.585295
2,080
15,886
4.153846
0.115865
0.046181
0.017361
0.015625
0.480208
0.41875
0.357407
0.306829
0.267361
0.244907
0
0.006428
0.304671
15,886
399
166
39.814536
0.775756
0.074153
0
0.230496
0
0.007092
0.094981
0.002667
0
0
0
0
0
1
0.031915
false
0
0.056738
0
0.102837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e7e9c74fb34d9d539ee2c2a737c83639c165ce7
1,765
py
Python
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
6
2019-10-16T02:35:06.000Z
2021-02-03T13:39:43.000Z
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
23
2020-03-17T13:16:02.000Z
2021-04-23T15:09:51.000Z
aito/utils/_file_utils.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
null
null
null
import gzip import json import os import shutil from os import PathLike from pathlib import Path from typing import Dict, List import ndjson def check_file_is_gzipped(file_path: PathLike): file_path = Path(file_path) if file_path.suffixes[-2:] != ['.ndjson', '.gz']: return False else: ret...
30.964912
99
0.689518
268
1,765
4.309701
0.25
0.132468
0.033766
0.054545
0.164502
0.145455
0.145455
0.145455
0.145455
0.09697
0
0.00212
0.1983
1,765
56
100
31.517857
0.814134
0
0
0.155556
0
0
0.073088
0
0
0
0
0
0
1
0.111111
false
0
0.177778
0
0.377778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e8a599c94ab88b6f514655190020c0bde169a1f
586
py
Python
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
data/data.py
owrior/snakeMach
1af8ca51badd3e23201ef5cc873e9179ee01c058
[ "MIT" ]
null
null
null
import numpy as np from sklearn.datasets import make_blobs from sklearn.preprocessing import normalize class TestData: def __init__(self, dimensions, points) -> None: self.dimensions = dimensions self.points = points def linearly_separable(self) -> np.array: x, y = make_blobs( ...
25.478261
70
0.583618
78
586
4.25641
0.512821
0.03012
0.036145
0.042169
0.054217
0.054217
0
0
0
0
0
0.007335
0.302048
586
22
71
26.636364
0.804401
0
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e8d37dec89478528db6577f4a7c15427ede6234
7,013
py
Python
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/tests/unit/plugins/mapr/utils/test_func_utils.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014, MapR Technologies # # 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 agree...
34.546798
76
0.592756
950
7,013
4.148421
0.114737
0.020299
0.015986
0.020299
0.642223
0.580817
0.541233
0.445572
0.336717
0.317178
0
0.001502
0.240696
7,013
202
77
34.717822
0.738592
0.081135
0
0.37415
0
0
0.027527
0
0
0
0
0
0.367347
1
0.129252
false
0
0.013605
0
0.156463
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e8e056676584d6baf6b9485f76064371025e1cf
8,405
py
Python
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
1
2020-04-25T21:24:45.000Z
2020-04-25T21:24:45.000Z
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
7
2020-02-11T07:42:10.000Z
2020-09-28T17:18:01.000Z
docs/rips/tests/test_cases.py
OPM/ResInsight-UserDocumentation
2af2c3a5ef297c0061d842944360a83bf8e49c36
[ "MIT" ]
2
2020-04-02T09:33:45.000Z
2020-04-09T19:44:53.000Z
import sys import os import math import pytest import grpc import tempfile sys.path.insert(1, os.path.join(sys.path[0], "../../")) import rips import dataroot def test_Launch(rips_instance, initialize_test): assert rips_instance is not None def test_EmptyProject(rips_instance, initialize_test): cases = ri...
37.690583
87
0.723974
1,241
8,405
4.625302
0.205479
0.058537
0.047561
0.058537
0.529617
0.516376
0.447038
0.405226
0.366725
0.319512
0
0.057278
0.167043
8,405
222
88
37.86036
0.762605
0.04188
0
0.287356
0
0
0.112865
0.071473
0
0
0
0
0.304598
1
0.08046
false
0
0.045977
0
0.137931
0.005747
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2e903b0c067785052b3d3529823e93eb770c9d80
2,959
py
Python
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
1
2020-05-11T12:47:23.000Z
2020-05-11T12:47:23.000Z
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
9
2020-04-30T13:43:30.000Z
2020-10-19T15:32:54.000Z
tests/test_to_human.py
AleCandido/human_dates
56bb10587b69e84b27a27117b2ecb3b1df09a028
[ "MIT" ]
null
null
null
import datetime as dt import pytest import human_dates class TestTimeAgoInWords: """ test time_ago_in_words function """ @pytest.fixture(autouse=True) def _import_templates(self, templates): """ import templates from conftest local plugin """ self.templat...
30.505155
82
0.559649
348
2,959
4.663793
0.229885
0.135551
0.060998
0.083179
0.36907
0.211337
0
0
0
0
0
0.036783
0.310916
2,959
96
83
30.822917
0.759196
0.053734
0
0.15493
0
0
0.055637
0
0
0
0
0
0.014085
1
0.15493
false
0
0.056338
0
0.225352
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ce8437b0fec0991f67a078f2016c53fe445b831
24,331
py
Python
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
security_monkey/auditor.py
bungoume/security_monkey
90c02638a315c78535869ab71a8859d17e011a6a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Netflix, 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...
43.063717
211
0.586371
2,781
24,331
4.910464
0.147429
0.01406
0.014353
0.013474
0.332088
0.277827
0.244508
0.183875
0.170548
0.155316
0
0.001662
0.332498
24,331
564
212
43.140071
0.839172
0.15433
0
0.276139
0
0
0.065035
0.003447
0
0
0
0
0
1
0.061662
false
0.002681
0.02681
0
0.16622
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ce9c84ffdd6672839d34427b02aa2894b9eec7a
16,473
py
Python
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
rst2reveal/Parser.py
rartino/rst2reveal
c31a0939275f26219aaa19ce4e55c3c08491aac8
[ "MIT" ]
null
null
null
try: import locale locale.setlocale(locale.LC_ALL, '') except: pass import os, sys, codecs import docutils.core from .RevealTranslator import RST2RevealTranslator, RST2RevealWriter # Import custom directives from .TwoColumnsDirective import * from .PygmentsDirective import * from .VideoDirective import *...
40.375
169
0.541249
1,755
16,473
4.954416
0.216524
0.020242
0.030362
0.016906
0.190339
0.118689
0.077056
0.064405
0.025877
0.010351
0
0.00368
0.340193
16,473
407
170
40.474201
0.796301
0.215868
0
0.084615
0
0.030769
0.402674
0.087863
0
0
0
0
0
1
0.038462
false
0.003846
0.065385
0
0.126923
0.011538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cee8d9dc6ecef33153612d1cf40e03aa8fb60af
10,656
py
Python
toqnets/nn/nltl/functional.py
C-SUNSHINE/TOQ-Nets-PyTorch-Release
05e06bf633fb3c6b610dda9a5126ecd7af1db02f
[ "MIT" ]
6
2021-08-24T21:46:01.000Z
2022-03-09T14:34:05.000Z
toqnets/nn/nltl/functional.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
null
null
null
toqnets/nn/nltl/functional.py
vacancy/TOQ-Nets-PyTorch-Release
53a712be28e2ecf8d2e04a9f71a2d7e8db5430e1
[ "MIT" ]
2
2021-08-23T03:06:20.000Z
2021-09-30T14:17:14.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : functional.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 04/15/2020 # # This file is part of TOQ-Nets-PyTorch. # Distributed under terms of the MIT license. from typing import List import jactorch import torch from jacinle.utils.enum im...
41.142857
152
0.62866
1,351
10,656
4.831236
0.151739
0.020224
0.025739
0.01195
0.54175
0.448905
0.386701
0.368316
0.341811
0.325264
0
0.017163
0.256381
10,656
258
153
41.302326
0.806537
0.201858
0
0.366279
0
0
0.052291
0.008875
0
0
0
0
0.005814
1
0.046512
false
0
0.02907
0
0.203488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cf060a195dbf7d7e608526fbe61c86808f684c4
598
py
Python
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
12
2016-10-25T18:03:49.000Z
2019-06-27T13:20:22.000Z
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
30
2016-10-20T23:27:09.000Z
2018-12-06T17:23:59.000Z
etcdb/execute/dml/use.py
box/etcdb
0f27846a0ca13efff9750b97a38939f66172debc
[ "Apache-2.0" ]
4
2016-10-20T23:24:48.000Z
2022-03-01T09:59:29.000Z
"""Implement USE query.""" from pyetcd import EtcdKeyNotFound from etcdb import OperationalError def use_database(etcd_client, tree): """ Return database name if it exists or raise exception. :param etcd_client: etcd client :type etcd_client: pyetcd.client.Client :param tree: Parsing tree. :...
26
65
0.682274
73
598
5.520548
0.479452
0.124069
0.08933
0
0
0
0
0
0
0
0
0
0.22408
598
22
66
27.181818
0.868534
0.449833
0
0
0
0
0.084507
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cf0ea4689aa7bc6979159d92505dd9ac4c6f33a
598
py
Python
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
main.py
dminglv/covid19
4753f1574c9035c5780c6669e5a9bd3812a4bc10
[ "MIT" ]
null
null
null
from libs.apis import getCountryInfo, getCountries, getCountriesNames from libs.charts import visualize def main(): arr = [] number = 10 # Get top 10 countries countries = getCountries(number) countries_names = getCountriesNames(number) for i in range(len(countries)): country = coun...
19.290323
69
0.623746
62
598
5.790323
0.467742
0.044568
0
0
0
0
0
0
0
0
0
0.009368
0.285953
598
30
70
19.933333
0.831382
0.033445
0
0
0
0
0.032986
0
0
0
0
0
0
1
0.052632
false
0
0.105263
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
5cf285d186a6317622d28fa8ce936054a9456a47
4,158
py
Python
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
2
2020-05-15T02:06:46.000Z
2020-05-15T02:14:52.000Z
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
1
2018-05-16T12:55:14.000Z
2018-05-18T14:29:14.000Z
app/server.py
DavidRalph/search-mendeley
64cb3aa353d4a5571db0fb46a5b46b928af1c6b0
[ "Apache-2.0" ]
1
2020-05-15T02:14:55.000Z
2020-05-15T02:14:55.000Z
from flask import Flask, redirect, render_template, request, session import yaml from mendeley import Mendeley from mendeley.session import MendeleySession with open('config.yml') as f: config = yaml.load(f) REDIRECT_URI = 'http://localhost:5000/oauth' app = Flask(__name__) app.debug = True app.secret_key = co...
26.316456
86
0.664262
478
4,158
5.631799
0.267782
0.083581
0.052006
0.042719
0.219168
0.219168
0.177563
0.165305
0.165305
0.131872
0
0.001847
0.218615
4,158
157
87
26.484076
0.826716
0.069264
0
0.186275
0
0
0.088342
0
0
0
0
0.006369
0
1
0.078431
false
0
0.039216
0.009804
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cf2e08da44d6148a770dc0050be540bbf3f5a61
3,025
py
Python
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
null
null
null
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
null
null
null
util/mathUtil.py
herougan/TradeHunter
1270a1d9807d1f2107db6bc78b98b584431840cc
[ "MIT" ]
1
2022-02-09T08:45:05.000Z
2022-02-09T08:45:05.000Z
from math import floor import talib from util.dataRetrievalUtil import try_stdev from util.langUtil import try_mean, try_int def quartile_out(quartile, data): """Takes out extremities""" pass def moving_average(period, data): avg = [] if len(data) < period: return avg for i in range(pe...
23.632813
97
0.597686
454
3,025
3.823789
0.264317
0.020737
0.020737
0.017281
0.360599
0.360599
0.360599
0.360599
0.331797
0.331797
0
0.040056
0.290248
3,025
128
98
23.632813
0.768514
0.106116
0
0.505376
0
0
0.050448
0.0213
0
0
0
0
0
1
0.129032
false
0.032258
0.043011
0
0.473118
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cf5f3ec8ad78eb84a1e2c101567b1b3b4dc3a79
5,057
py
Python
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
09-gui/terremoto_antiguo.py
Agc96/matplotlib-examples
bc2db2d14c1822b05f99356ebf538ebcd14f262a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 25 18:38:21 2019 @author: Agutierrez """ # -*- coding: utf-8 -*- """ Interfaz gráfica para el movimiento armónico de un edificio, de forma similar a un terremoto. """ import numpy as np import tkinter as tk from matplotlib.animation import FuncAnimation from matplotlib....
36.381295
87
0.693692
683
5,057
5.045388
0.313324
0.027858
0.036564
0.046721
0.276262
0.228671
0.193268
0.167731
0.167731
0.167731
0
0.028304
0.196559
5,057
138
88
36.644928
0.819838
0.167886
0
0.097561
0
0
0.142708
0
0
0
0
0
0.036585
1
0.073171
false
0.012195
0.073171
0
0.195122
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cf67afad445851293cf259134cd16fdc9dcfa88
1,914
py
Python
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
null
null
null
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
6
2019-01-22T17:35:28.000Z
2022-01-13T01:01:48.000Z
app/tests/test_questions.py
Gichia/questioner-v2
b93ffdc521e364c191b770bf1bcb93964e7fa1f3
[ "MIT" ]
null
null
null
"""File to test all meetup endpoints""" import os import psycopg2 as pg2 import json from app.tests.basetest import BaseTest data = { "title": "Test Title", "body": "body" } comment = { "comment": "Comment 1" } class TestQuestions(BaseTest): """ Class to test all user endpoints """ def test_post_ques...
28.147059
67
0.636886
237
1,914
5.084388
0.261603
0.074689
0.104564
0.082988
0.575934
0.475519
0.337759
0.337759
0.337759
0.337759
0
0.028782
0.219436
1,914
67
68
28.567164
0.777778
0.141066
0
0.25641
0
0
0.217175
0
0
0
0
0
0.153846
1
0.128205
false
0
0.102564
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
5cf7844c0843b1293636cf8069df2f14c752925e
392
py
Python
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
coinbase_commerce/aio/api_resources/base/create_api_resource.py
nkoshell/coinbase-commerce-python
94dc57951ac897ffbc7861dc909f413028d6a0b9
[ "Apache-2.0" ]
null
null
null
from coinbase_commerce import util from . import APIResource __all__ = ( 'CreateAPIResource', ) class CreateAPIResource(APIResource): """ Create operations mixin """ @classmethod async def create(cls, **params): response = await cls._api_client.post(cls.RESOURCE_PATH, data=params) ...
21.777778
77
0.706633
44
392
6
0.659091
0.045455
0.090909
0
0
0
0
0
0
0
0
0
0.19898
392
17
78
23.058824
0.840764
0.058673
0
0
0
0
0.048159
0
0
0
0
0
0
1
0
false
0
0.2
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
5cfa55d58decf3e1c5433b4c930ab763da369af0
392
py
Python
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
2
2015-03-25T00:51:45.000Z
2015-06-18T10:54:24.000Z
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
null
null
null
api/app.py
loudest/vision_zero
91b094d864fabedbaa56cb9d1639aa75aa19bb00
[ "MIT" ]
null
null
null
#!flask/bin/python from flask import Flask, jsonify import requests app = Flask(__name__) @app.route('/') def index(): return "Hello, World!" @app.route('/signed_data', methods=['GET']) def signed_map(): r = requests.get('http://data.seattle.gov/resource/kb3s-zi3s.json') json_data = r.json() return jsonify({...
18.666667
69
0.683673
56
392
4.5
0.589286
0.063492
0
0
0
0
0
0
0
0
0
0.005865
0.130102
392
20
70
19.6
0.733138
0.043367
0
0
0
0
0.236559
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cfc0222b944d024264d6196a63452889c5cce0e
5,482
py
Python
Modules/scan.py
mafiamasterhere/EvilNet
5b93d69ff9b6b16edfd3053f1f56857173b59eb1
[ "MIT" ]
91
2020-06-19T22:08:32.000Z
2022-03-28T08:27:10.000Z
scan.py
lunnar211/CRACK_WIFI
654af29306dd6582bf3ece38e9dd2de196f09aab
[ "MIT" ]
null
null
null
scan.py
lunnar211/CRACK_WIFI
654af29306dd6582bf3ece38e9dd2de196f09aab
[ "MIT" ]
22
2020-06-29T13:19:40.000Z
2021-11-26T11:22:40.000Z
import nmap3 from colored import fg, bg, attr import colored import socket as sock from Modules import intro class nmap3_Scan() : def __init__(self): self.angry1 = colored.fg("green") + colored.attr("bold") self.angry = colored.fg("white") + colored.attr("bold") print(f"""{self.angry1} ...
42.169231
91
0.506202
669
5,482
4.071749
0.13154
0.143906
0.052863
0.044053
0.733113
0.68025
0.670338
0.653451
0.601689
0.547357
0
0.011082
0.292229
5,482
129
92
42.496124
0.690979
0
0
0.431034
0
0
0.191901
0.051076
0
0
0
0
0
1
0.068966
false
0.008621
0.043103
0
0.12069
0.12931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cfea876092666973d9916499f12af7785c199a1
1,524
py
Python
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
api/serializers.py
Wholefolio/marketmanager
5a8314707806a6790c507e1bd817891e8dc88811
[ "Apache-2.0" ]
null
null
null
"""Serializers module.""" from rest_framework import serializers from django_celery_results.models import TaskResult from api import models class ExchangeSerializer(serializers.ModelSerializer): """Serializer to map the Model instance into JSON format.""" class Meta: """Meta class to map serializer'...
31.75
75
0.631234
163
1,524
5.766871
0.435583
0.110638
0.076596
0.080851
0.382979
0.297872
0.297872
0.297872
0.297872
0.297872
0
0
0.238189
1,524
47
76
32.425532
0.809647
0.164698
0
0.148148
0
0
0.207698
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0.037037
0.481481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cfff87f1a992e437041fea9fa36fffc753143d6
3,228
py
Python
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
invenio_oaiserver/views/server.py
ParthS007/invenio-oaiserver
6fa5d2e2a770377ffe34a44bc60b0a817853da95
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # Copyright (C) 2022 Graz University of Technology. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """OAI-PMH 2.0 server.""" from f...
31.339806
77
0.629492
340
3,228
5.891176
0.405882
0.052421
0.037444
0.044933
0.218173
0.161258
0.090864
0
0
0
0
0.013109
0.243804
3,228
102
78
31.647059
0.807456
0.145601
0
0.188406
0
0
0.141805
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.289855
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf01e9ecb22b1e70b4470ec1161d194bd76c4e67
6,847
py
Python
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
13
2019-12-12T03:07:55.000Z
2022-03-07T12:59:27.000Z
searching/models.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
from django.db import models from core.utils import getReverseWithUpdatedQuery from ebayinfo.models import EbayCategory from categories.models import Category from core.dj_import import get_user_model User = get_user_model() from searching import ALL_PRIORITIES from pyPks.Time.Ou...
47.548611
91
0.535417
668
6,847
5.411677
0.33982
0.04426
0.017981
0.023513
0.17538
0.151591
0.100415
0.100415
0.08686
0.08686
0
0.004033
0.384402
6,847
143
92
47.881119
0.853618
0.035636
0
0.205128
0
0
0.282781
0
0
0
0
0
0
1
0.025641
false
0
0.059829
0.017094
0.358974
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf025b07d576f1c46ac2887dea5c3dde0c945bf5
367
py
Python
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
1
2018-10-16T13:41:06.000Z
2018-10-16T13:41:06.000Z
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
null
null
null
Maths/fibonacciSeries.py
baiyongzhen/python
a8f367d2136f1aaeab63345e160e59fe16d62a11
[ "MIT" ]
2
2018-10-03T15:47:30.000Z
2019-10-23T16:35:48.000Z
# Fibonacci Sequence Using Recursion def recur_fibo(n): if n <= 1: return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) limit = int(input("How many terms to include in fionacci series:")) if limit <= 0: print("Plese enter a positive integer") else: print("Fibonacci series:") for ...
21.588235
67
0.640327
56
367
4.125
0.607143
0.155844
0.12987
0
0
0
0
0
0
0
0
0.014286
0.237057
367
16
68
22.9375
0.810714
0.092643
0
0.166667
0
0
0.277946
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.166667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cf02f2ac21df464b0428c1c4c3f886070ec8055f
6,319
py
Python
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
2
2018-02-02T18:52:12.000Z
2018-02-03T08:36:44.000Z
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
null
null
null
extract_tokens.py
anuprulez/similar_galaxy_tools
19eefa567fdb56781dc5f42a0bea8af0969f5978
[ "MIT" ]
1
2018-02-03T08:36:57.000Z
2018-02-03T08:36:57.000Z
""" Extract useful tokens from multiple attributes of Galaxy tools """ import os import numpy as np import pandas as pd import operator import json import utils class ExtractTokens: @classmethod def __init__( self, tools_data_path ): self.tools_data_path = tools_data_path @classmethod def ...
42.126667
110
0.549929
704
6,319
4.673295
0.21733
0.027356
0.021885
0.027356
0.159574
0.084498
0.046201
0.046201
0
0
0
0.005304
0.373477
6,319
149
111
42.409396
0.825714
0.118531
0
0.106195
0
0
0.028713
0
0
0
0
0
0
1
0.053097
false
0
0.053097
0
0.159292
0.00885
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0