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
843f97dd8ec994e4357ed02f96f7842db3d9a402
5,867
py
Python
cloudflare-deploy.py
antonini/certbot-hooks
61e200b7a038952f2f559953f47be62e1f992e39
[ "Apache-2.0" ]
null
null
null
cloudflare-deploy.py
antonini/certbot-hooks
61e200b7a038952f2f559953f47be62e1f992e39
[ "Apache-2.0" ]
null
null
null
cloudflare-deploy.py
antonini/certbot-hooks
61e200b7a038952f2f559953f47be62e1f992e39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import logging import sys import CloudFlare import os import re from os import path from certbot.plugins import dns_common __author__ = "Endrigo Antonini" __copyright__ = "Copyright 2020, Endrigo Antonini" __license__ = "Apache License 2.0" __version__ = "1.0" __maintainer__ = "Endrigo Antonini...
32.236264
110
0.670701
768
5,867
4.90625
0.28125
0.020701
0.01327
0.022293
0.16879
0.145435
0.12845
0.110403
0.110403
0.110403
0
0.008304
0.220044
5,867
182
111
32.236264
0.815122
0.041418
0
0.133333
0
0
0.270733
0.038523
0
0
0
0
0
1
0.059259
false
0
0.051852
0.007407
0.17037
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8441be7fed412cc2b0c06a54eaceebee4908fef7
272
py
Python
incremental/settings.py
Nana0606/IUAD
c52439eb5bbbef6bd50533b5d9e142e18091d85e
[ "BSD-2-Clause" ]
1
2021-07-05T02:20:32.000Z
2021-07-05T02:20:32.000Z
incremental/settings.py
Nana0606/IUAD
c52439eb5bbbef6bd50533b5d9e142e18091d85e
[ "BSD-2-Clause" ]
null
null
null
incremental/settings.py
Nana0606/IUAD
c52439eb5bbbef6bd50533b5d9e142e18091d85e
[ "BSD-2-Clause" ]
1
2021-08-22T08:45:18.000Z
2021-08-22T08:45:18.000Z
# python3 # -*- coding: utf-8 -*- # @Author : lina # @Time : 2018/4/22 21:17 """ code function: define all parameters. """ matched_file_name = "../data/gcn_res.txt" wordvec_path = '../data/word2vec.model' incremental_path = "../data/incremental_res.txt"
20.923077
49
0.628676
35
272
4.714286
0.828571
0.072727
0
0
0
0
0
0
0
0
0
0.063063
0.183824
272
12
50
22.666667
0.68018
0.408088
0
0
0
0
0.49635
0.357664
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
84464ba3de7de8074ab4f3a72392eb3da290f401
16,826
py
Python
transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py
wwhio/awesome-DeepLearning
2cc92edcf0c22bdfc670c537cc819c8fadf33fac
[ "Apache-2.0" ]
1,150
2021-06-01T03:44:21.000Z
2022-03-31T13:43:42.000Z
transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py
wwhio/awesome-DeepLearning
2cc92edcf0c22bdfc670c537cc819c8fadf33fac
[ "Apache-2.0" ]
358
2021-06-01T03:58:47.000Z
2022-03-28T02:55:00.000Z
transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py
wwhio/awesome-DeepLearning
2cc92edcf0c22bdfc670c537cc819c8fadf33fac
[ "Apache-2.0" ]
502
2021-05-31T12:52:14.000Z
2022-03-31T02:51:41.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
39.130233
178
0.530013
1,931
16,826
4.371828
0.130502
0.050817
0.036958
0.03376
0.610993
0.558754
0.533168
0.502843
0.477967
0.474651
0
0.027162
0.382979
16,826
429
179
39.221445
0.785976
0.136753
0
0.571885
0
0.00639
0.023949
0.002958
0
0
0
0
0.00639
1
0.044728
false
0
0.031949
0.00639
0.127796
0.003195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
844826018788435b356bf6f9c896357ffb15fd09
11,680
py
Python
baiduspider/core/parser.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
31
2020-07-17T08:26:37.000Z
2021-08-24T02:28:50.000Z
baiduspider/core/parser.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
6
2020-07-14T17:13:17.000Z
2020-09-12T06:02:01.000Z
baiduspider/core/parser.py
samzhangjy/GSSpider
344d9c9053a5d5bf08692e0c817d30763dbd8ab7
[ "MIT" ]
12
2020-07-27T08:38:26.000Z
2021-07-28T16:05:58.000Z
import json from html import unescape from bs4 import BeautifulSoup from baiduspider.core._spider import BaseSpider from baiduspider.errors import ParseError class Parser(BaseSpider): def __init__(self) -> None: super().__init__() def parse_web(self, content: str) -> dict: """解析百度网页搜索的页面源代码...
36.72956
162
0.447603
1,099
11,680
4.584167
0.22566
0.031759
0.033347
0.018063
0.228067
0.118499
0.118499
0.113339
0.082175
0.069869
0
0.004499
0.42911
11,680
317
163
36.845426
0.75105
0.091524
0
0.268085
0
0
0.112684
0.012244
0
0
0
0
0
1
0.012766
false
0
0.021277
0
0.046809
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8449b868c5c55bebc3c70da12ca1d458ad2a711a
2,142
py
Python
virtual/lib/python3.6/site-packages/requests_unixsocket/adapters.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/requests_unixsocket/adapters.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
10
2020-03-08T21:13:29.000Z
2021-04-08T19:41:14.000Z
flask/lib/python3.6/site-packages/requests_unixsocket/adapters.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
import socket from requests.adapters import HTTPAdapter from requests.compat import urlparse, unquote try: from requests.packages.urllib3.connection import HTTPConnection from requests.packages.urllib3.connectionpool import HTTPConnectionPool except ImportError: from urllib3.connection import HTTPConnectio...
35.114754
77
0.710551
252
2,142
5.81746
0.357143
0.061392
0.044338
0.034789
0.129604
0.047749
0
0
0
0
0
0.007051
0.205416
2,142
60
78
35.7
0.854289
0.169935
0
0.078947
0
0
0.032221
0
0
0
0
0
0
1
0.157895
false
0
0.210526
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
844aff8b757e567eab04101d17c08cb3e245797f
8,032
py
Python
profiles_weak.py
andreuvall/HybridPlaylistContinuation
6e31e50050c61a2c3ae55183e18b665fd54c7250
[ "BSD-2-Clause" ]
8
2017-06-04T11:42:49.000Z
2021-10-19T12:16:01.000Z
profiles_weak.py
andreuvall/HybridPlaylistContinuation
6e31e50050c61a2c3ae55183e18b665fd54c7250
[ "BSD-2-Clause" ]
null
null
null
profiles_weak.py
andreuvall/HybridPlaylistContinuation
6e31e50050c61a2c3ae55183e18b665fd54c7250
[ "BSD-2-Clause" ]
5
2017-08-27T17:02:14.000Z
2020-06-09T01:21:09.000Z
from __future__ import print_function from __future__ import division from sklearn.utils import check_random_state from sklearn import preprocessing as prep from utils.data import load_data, show_data_splits, shape_data from utils.evaluation import evaluate from utils.profiles import select_model, show_design, train,...
37.886792
132
0.662475
1,054
8,032
4.870968
0.234345
0.01753
0.033113
0.031165
0.257499
0.21231
0.194196
0.182898
0.165758
0.165758
0
0.004343
0.254607
8,032
211
133
38.066351
0.853182
0.19385
0
0.188525
0
0
0.10708
0
0.008197
0
0
0
0
1
0
false
0
0.098361
0
0.098361
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
844c48d7274f542cdb76ae374555eb9e43a3cc30
21,999
py
Python
deliverable1/analyzer/clientGUI.py
tonellotto/pira-project
13f1f40fd3339d60067c09396822af8f3c83239c
[ "MIT" ]
null
null
null
deliverable1/analyzer/clientGUI.py
tonellotto/pira-project
13f1f40fd3339d60067c09396822af8f3c83239c
[ "MIT" ]
null
null
null
deliverable1/analyzer/clientGUI.py
tonellotto/pira-project
13f1f40fd3339d60067c09396822af8f3c83239c
[ "MIT" ]
null
null
null
import analyzer_client as analyzer from tkinter import * from tkinter import filedialog from tkinter import messagebox from tkinter import ttk import json import os from pathlib import Path IP_ADDRESS = "localhost" PORT = "8061" ENGINE_CURR_OPTIONS = {} ANALYZE_CURR_OPTIONS = {'language':'en', 'ent...
50.456422
208
0.589027
2,486
21,999
5.125503
0.131537
0.04183
0.031785
0.030137
0.460995
0.401428
0.347905
0.292811
0.261419
0.202558
0
0.042692
0.263194
21,999
436
209
50.456422
0.743414
0.017592
0
0.12628
0
0.010239
0.164019
0.027896
0
0
0
0
0
1
0.044369
false
0
0.027304
0
0.075085
0.003413
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
844ee290c97366006e042d8ac5ba0899c883ac56
1,903
py
Python
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-03-17T02:15:10.000Z
2021-06-29T13:34:40.000Z
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-05-23T05:47:30.000Z
2022-01-13T02:15:35.000Z
kge/core/component.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
null
null
null
from typing import Callable import kge from kge.core import events from kge.core.eventlib import EventMixin from kge.core.events import Event class BaseComponent(EventMixin): """ A component represents an element that can be added to an entity to add a functionality """ def __fire_...
33.982143
104
0.603783
218
1,903
5.105505
0.316514
0.080863
0.02965
0.019766
0.104223
0
0
0
0
0
0
0.001535
0.315292
1,903
55
105
34.6
0.852648
0.132948
0
0.129032
0
0
0.104005
0.013566
0
0
0
0
0
1
0.129032
false
0
0.16129
0.032258
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
844f9857dd2ca03aee9ac58b1348e52e4bc8e0ee
766
py
Python
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
1
2019-12-16T08:18:25.000Z
2019-12-16T08:18:25.000Z
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
src/870. Advantage Shuffle.py
rajshrivastava/LeetCode
dfe6342fe22b324429b0be3e5c0fef46c7e6b3b0
[ "MIT" ]
null
null
null
class Solution: def advantageCount(self, A: List[int], B: List[int]) -> List[int]: n=len(A) A.sort() B_sorted_idxs = sorted(list(range(0,n)), key = lambda x: B[x]) permuted_A = [-1]*n j = 0 #for A -index remainingA = [] for idx in B_sorted_idxs: w...
27.357143
70
0.399478
98
766
3.030612
0.367347
0.040404
0.074074
0
0
0
0
0
0
0
0
0.022556
0.479112
766
27
71
28.37037
0.721805
0.015666
0
0.24
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84508cc0743106693c25a4c91852516182d10958
11,162
py
Python
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
1
2020-07-29T09:18:00.000Z
2020-07-29T09:18:00.000Z
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
null
null
null
generate_population_dataset.py
p-enel/stable-and-dynamic-value
3f78e24f5bef9b12b8cc43d075d2e66b8a603325
[ "CC0-1.0" ]
3
2020-07-27T03:12:19.000Z
2021-11-02T20:03:00.000Z
from pathlib import Path import numpy as np import pickle as pk from itertools import chain, product from collections import OrderedDict from structure import Struct MONKEYS = ['M', 'N'] REGIONS = ['OFC', 'ACC'] TASKVARS = ['value', 'type'] SUBSPACES = [True, False] EVT_WINS = OrderedDict((('cues ON', (-500, 1500)), ...
43.601563
114
0.614854
1,460
11,162
4.620548
0.222603
0.018678
0.009784
0.011118
0.231396
0.169878
0.126594
0.101097
0.091906
0.076786
0
0.015343
0.26429
11,162
255
115
43.772549
0.806137
0.308726
0
0.181818
0
0
0.077734
0.025956
0
0
0
0
0
1
0.034965
false
0
0.041958
0
0.118881
0.013986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8450d07e5cec286e40f858637377c3e87f1ab9e5
634
py
Python
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
setup.py
joepatmckenna/ohmlr
2f3e63243758b995596f37897814634fc432f337
[ "MIT" ]
null
null
null
import setuptools with open('README.rst', 'r') as f: readme = f.read() with open('version', 'r') as f: version = f.read() if __name__ == '__main__': setuptools.setup( name='ohmlr', version=version, description='One-hot multinomial logisitc regression', long_description=re...
27.565217
65
0.615142
70
634
5.414286
0.685714
0.042216
0.021108
0
0
0
0
0
0
0
0
0
0.230284
634
22
66
28.818182
0.776639
0
0
0
0
0
0.347003
0.036278
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
8450ee0e08874b8a26468c905f5abfbc7260c448
1,301
py
Python
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-21T22:00:24.000Z
2022-01-21T22:00:24.000Z
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
40
2022-01-18T21:20:54.000Z
2022-03-31T20:56:44.000Z
commands/climber/holdcimbersposition.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-28T02:46:38.000Z
2022-01-28T02:46:38.000Z
from commands2 import CommandBase, ParallelCommandGroup from subsystems.climbers.leftclimbersubsystem import LeftClimber from subsystems.climbers.rightclimbersubsystem import RightClimber class HoldLeftClimberPosition(CommandBase): def __init__(self, climber: LeftClimber) -> None: CommandBase.__init__(sel...
35.162162
77
0.730976
109
1,301
8.284404
0.256881
0.121816
0.036545
0.066445
0.336656
0.272425
0.272425
0.272425
0.272425
0.272425
0
0.000941
0.182936
1,301
36
78
36.138889
0.848542
0
0
0.392857
0
0
0
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84533ec2f7f2ad9597755a4499563c795ed9f246
737
py
Python
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
1
2020-10-01T10:11:21.000Z
2020-10-01T10:11:21.000Z
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
algo/visualizations/temporalchart.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
from models.models import Topic, TopicInTopic import json def visual(vis, params): model = vis.model group_by = params[1] # year,month,week,day topics = Topic.objects.filter( model=model, layer=model.layers_count).order_by("spectrum_index") topics = [topic.title for topic in topics] ...
32.043478
76
0.639077
103
737
4.456311
0.446602
0.045752
0
0
0
0
0
0
0
0
0
0.001733
0.217096
737
22
77
33.5
0.793761
0.02578
0
0
0
0
0.051676
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84580bc22605d3bb58c5f232f6e1f847342e88fa
3,596
py
Python
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
submissions-api/app/main/model/submissions_manifest.py
sanger-tol/tol-submissions
8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from .base import Base, db class SubmissionsManifest(Base): __tablename__ = "manifest" manifest_id = db.Column(db.Integer, primary_key=True) samples = db.relationship('SubmissionsSample', back_populates="manifest", ...
44.95
88
0.614294
436
3,596
4.827982
0.270642
0.026603
0.033254
0.051306
0.451781
0.376247
0.278385
0.222328
0.222328
0.222328
0
0.001587
0.298943
3,596
79
89
45.518987
0.833399
0.0901
0
0.213115
0
0
0.071735
0.006438
0
0
0
0
0
1
0.065574
false
0
0.016393
0.04918
0.393443
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8458ddef5330c4ed60d249ea5883464e063cf5ba
6,411
py
Python
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
eden/integration/hg/histedit_test.py
jmswen/eden
5e0b051703fa946cc77fc43004435ae6b20599a1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
36.220339
86
0.608641
738
6,411
5.138211
0.245257
0.046414
0.037711
0.035865
0.501319
0.456487
0.42827
0.351266
0.341772
0.318829
0
0.010335
0.26049
6,411
176
87
36.426136
0.789496
0.128685
0
0.388889
0
0
0.162033
0.027067
0
0
0
0
0.230159
1
0.047619
false
0
0.031746
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
845a911380b7475214d4489c0d02b5872a85aa00
310
py
Python
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0713. Subarray Product Less Than K/0713.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def numSubarrayProductLessThanK(self, nums: List[int], k: int) -> int: if k <= 1: return 0 ans = 0 prod = 1 j = 0 for i, num in enumerate(nums): prod *= num while prod >= k: prod /= nums[j] j += 1 ans += i - j + 1 return ans
17.222222
72
0.490323
44
310
3.454545
0.5
0.092105
0
0
0
0
0
0
0
0
0
0.037037
0.390323
310
17
73
18.235294
0.767196
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
845d9d3e1de64db798d6f4d7e46d76bf4c2959c6
3,965
py
Python
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
8
2020-02-19T21:17:04.000Z
2022-01-04T03:52:56.000Z
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
1
2021-09-20T02:13:41.000Z
2021-09-21T07:01:14.000Z
UI/python/runtext.py
maxxscholten/nyc-train-sign
7da32c413270f3bf4629969bcf16f7def4ddb372
[ "MIT" ]
4
2021-03-11T17:11:40.000Z
2021-11-10T01:20:33.000Z
#!/usr/bin/env python # Display a runtext with double-buffering. from samplebase import SampleBase from rgbmatrix import graphics import time import requests import transitfeed import datetime import arrow import schedule today = datetime.date.today() starttime = time.time() schedule = transitfeed.Schedule() url = "ht...
37.056075
121
0.640858
499
3,965
5.046092
0.296593
0.0278
0.078634
0.082208
0.262907
0.205719
0.155679
0
0
0
0
0.055304
0.220177
3,965
106
122
37.40566
0.759056
0.034805
0
0.023256
0
0
0.046335
0.005759
0
0
0
0
0
1
0.069767
false
0
0.093023
0
0.186047
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8462591fa4b3c8c3275d239bf45765f52bee1b94
1,188
py
Python
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
model/board_generator.py
myrmarachne/minesweeper
777170b7a31f1feed0bdf7aca31aaa9916c9b915
[ "AFL-1.1" ]
null
null
null
from random import sample from tile import Tile from utils import neighbours class BoardGenerator: def __init__(self, size, numMines): self.numMines = numMines self.size = size self.board = [] self.generate_board() def generate_board(self): # Generate a board for Mines...
38.322581
115
0.616162
178
1,188
4.011236
0.297753
0.123249
0.084034
0.058824
0.044818
0
0
0
0
0
0
0.008255
0.286195
1,188
30
116
39.6
0.833726
0.234848
0
0
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
846536aeea05536d64f4f59f9d2196f85d857b4d
19,035
py
Python
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
forever/Database.py
dss285/4ever
bd6f70f92d76d43342da401562f2c504adaf3867
[ "MIT" ]
null
null
null
import psycopg2 import psycopg2.extras import discord from models.BotMention import BotMention from models.UpdatedMessage import UpdatedMessage from forever.Steam import Steam_API, Dota_Match, Dota_Match_Player from forever.Utilities import run_in_executor, log from forever.Warframe import CetusMessage, FissureM...
38.222892
180
0.640294
2,411
19,035
4.85027
0.099959
0.056439
0.03412
0.040705
0.445442
0.326065
0.242774
0.211048
0.184454
0.176586
0
0.002015
0.1917
19,035
498
181
38.222892
0.758027
0.016706
0
0.212371
0
0.004124
0.240514
0.032288
0
0
0
0
0
1
0.030928
false
0.010309
0.024742
0.008247
0.074227
0.002062
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
8465f309612202475ac3cb61d22a9dcf1509182e
822
py
Python
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
null
null
null
Week06/q_cifar10_cnn.py
HowardNTUST/HackNTU_Data_2017
ad8e753a16719b6f9396d88b313a5757f5ed4794
[ "MIT" ]
1
2019-02-24T17:41:45.000Z
2019-02-24T17:41:45.000Z
import keras from keras.layers import Dense, Activation, Conv2D, MaxPool2D, Reshape model = Sequential() model.add(Reshape((3, 32, 32), input_shape=(3*32*32,) )) model.add(Conv2D(filters=32, kernel_size=(3,3), padding='same', activation="relu", data_format='channels_first')) model.add(MaxPool2D()) model.add(Conv2D(filt...
48.352941
113
0.723844
118
822
4.923729
0.483051
0.110155
0.051635
0.072289
0.292599
0.292599
0.292599
0.292599
0.292599
0.292599
0
0.053691
0.093674
822
17
114
48.352941
0.726175
0
0
0.117647
0
0
0.130012
0.029162
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
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
84664082e1511f1729add08f835b69444a8edf67
9,697
py
Python
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
2
2021-01-30T19:04:12.000Z
2021-06-18T09:41:15.000Z
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
null
null
null
polyanalyst6api/api.py
Megaputer/polyanalyst6api-python
c6626a8a5f8f926b1f32285e18457ed70dfba73a
[ "MIT" ]
1
2021-04-19T09:57:14.000Z
2021-04-19T09:57:14.000Z
""" polyanalyst6api.api ~~~~~~~~~~~~~~~~~~~ This module contains functionality for access to PolyAnalyst API. """ import configparser import contextlib import pathlib import warnings from typing import Any, Dict, List, Tuple, Union, Optional from urllib.parse import urljoin, urlparse import requests import urllib3 f...
35.00722
113
0.608642
1,091
9,697
5.311641
0.27956
0.018982
0.011044
0.013978
0.101812
0.094219
0.094219
0.065229
0.049698
0.049698
0
0.007432
0.278437
9,697
276
114
35.134058
0.82078
0.237084
0
0.051429
0
0
0.169477
0.011804
0
0
0
0
0
1
0.085714
false
0.028571
0.068571
0
0.251429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffbf148e7df59ebdd237d38695723231b7824b44
462
py
Python
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
src/abc/106/106_b.py
ryuichi1208/atcoder_stack
19ec81fb9a3edb44be422b79e98b23e8ff17ef60
[ "MIT" ]
null
null
null
n = int(input()) # @return [0]:約数の個数 [1]:約数リスト def divisor(num): ret=[] L=[] for i in range(1,num+1): if (num%i==0): L.append(i) ret.append(len(L)) ret.append(L) return ret L=[] ans=0 for i in range(1,n+1): if(i%2==0): continue else: for j in range...
14.4375
30
0.452381
79
462
2.64557
0.367089
0.100478
0.114833
0.105263
0.200957
0.124402
0.124402
0
0
0
0
0.056478
0.348485
462
31
31
14.903226
0.637874
0.058442
0
0.083333
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc1536722c6684539bdbe4eaba7de45c07a8edb
6,296
py
Python
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
null
null
null
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
4
2021-07-27T21:44:51.000Z
2022-03-04T01:38:48.000Z
dataPipelines/gc_crawler/nato_stanag/models.py
ekmixon/gamechanger-crawlers
60a0cf20338fb3dc134eec117bccd519cede9288
[ "MIT" ]
null
null
null
import bs4 import os import re from typing import Iterable from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait # for implicit and explict waits from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.common.by import By from dataPipelines.gc_crawler...
38.625767
127
0.550191
712
6,296
4.636236
0.307584
0.023629
0.021812
0.029688
0.217207
0.142381
0.059376
0.033929
0.019388
0
0
0.011765
0.324968
6,296
162
128
38.864198
0.764941
0.047967
0
0.16129
0
0.008065
0.081698
0.022983
0
0
0
0
0
1
0.032258
false
0
0.104839
0
0.177419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc168320dcc3879d9935e0c48e2582d2d304fa1
3,938
py
Python
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
7
2018-11-12T20:52:53.000Z
2021-12-17T23:04:41.000Z
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
2
2019-12-24T08:53:51.000Z
2019-12-26T19:26:51.000Z
app/signals.py
MakuZo/bloggy
550e5285728b285e0d5243670d6aa0f40c414777
[ "MIT" ]
8
2018-12-28T12:31:51.000Z
2020-01-25T09:07:52.000Z
import re from django.db.models.signals import m2m_changed, post_save, pre_delete from django.dispatch import receiver from django.urls import reverse from .models import Entry, Notification, User @receiver(post_save, sender=Entry) def entry_notification(sender, instance, created, **kwargs): """ Signal used...
39.777778
127
0.561199
431
3,938
5.055684
0.278422
0.055071
0.06425
0.035796
0.144103
0.084442
0.042221
0
0
0
0
0.001953
0.349924
3,938
98
128
40.183673
0.849219
0.156171
0
0.153846
0
0.012821
0.086612
0.043611
0
0
0
0
0
1
0.025641
false
0
0.064103
0
0.089744
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc35164c1764ae381a92d8e3682d0250a4793ea
912
py
Python
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
null
null
null
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
3
2021-06-08T22:05:30.000Z
2022-01-13T03:04:03.000Z
utils/jwt_custom_decorator.py
w0rm1995/face-comparison-backend
9e231aabcf129e887e25a8ffdb5ae9617fee3e00
[ "MIT" ]
null
null
null
from functools import wraps from flask_jwt_extended import verify_jwt_in_request, get_jwt_claims, exceptions from jwt import exceptions as jwt_exception from utils.custom_response import bad_request def admin_required(fn): @wraps(fn) def wrapper(*args, **kwargs): try: verify_jwt_in_request...
35.076923
80
0.638158
114
912
4.894737
0.359649
0.107527
0.143369
0.086022
0.327957
0.327957
0.327957
0.286738
0.286738
0.229391
0
0.022901
0.281798
912
25
81
36.48
0.829008
0.08114
0
0.095238
0
0
0.02515
0
0
0
0
0
0
1
0.095238
false
0
0.190476
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc4351a518b97d5c4916014accd51d41d76de87
14,867
py
Python
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
1
2019-09-24T21:06:45.000Z
2019-09-24T21:06:45.000Z
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
null
null
null
skybright/skybright.py
ehneilsen/skybright
b0e2d7e6e25131393ee76ce334ce1df1521e3659
[ "MIT" ]
1
2019-09-24T21:14:35.000Z
2019-09-24T21:14:35.000Z
#!/usr/bin/env python """A model for the sky brightness """ from functools import partial from math import pi, cos, acos, sin, sqrt, log10 from datetime import datetime, tzinfo, timedelta from time import strptime from calendar import timegm from copy import deepcopy from sys import argv from collections import namedtu...
37.1675
163
0.609807
2,210
14,867
3.935747
0.147059
0.025293
0.01943
0.023454
0.294091
0.242814
0.169924
0.090251
0.0745
0.069901
0
0.04326
0.249008
14,867
399
164
37.260652
0.735781
0.075738
0
0.103448
0
0.027586
0.107882
0.031177
0
0
0
0
0
1
0.051724
false
0
0.086207
0.006897
0.203448
0.037931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc7043d4112113fd11d3bba2367bfc4002daece
8,004
py
Python
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
pynetstation_send_tags/pynetstation_send_tags.py
mattmoo/Pynetstation-Plug-In
aba2d312e5543cc5c2100793805acfeff075c59c
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ This file is part of OpenSesame. OpenSesame is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenSesame is distr...
35.415929
115
0.594328
983
8,004
4.753815
0.298067
0.034453
0.037663
0.066767
0.214209
0.0948
0.057351
0
0
0
0
0.011313
0.304223
8,004
225
116
35.573333
0.827797
0.318591
0
0.057143
0
0
0.073813
0
0
0
0
0
0
1
0.07619
false
0
0.028571
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffc857a75ba7aa5ef44304f6675fe0e78e0727a5
976
py
Python
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
experiments/centralisation/centralisation.py
MichaelAllen1966/2105_london_acute_stroke_unit
56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd data = pd.read_csv('results.csv') labels = [1,2,3,4] width = 0.75 x = np.arange(len(labels)) # the label locations fig = plt.figure(figsize=(9,6)) # Number people waiting ax1 = fig.add_subplot(121) y1 = data['av_waiting'].values.flatten() w...
21.217391
76
0.731557
167
976
4.173653
0.491018
0.043042
0.037303
0.065997
0.149211
0
0
0
0
0
0
0.043224
0.122951
976
45
77
21.688889
0.771028
0.042008
0
0
0
0
0.28556
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffd1926ccd96f4b70e990d54bad23c4b64c849e9
2,531
py
Python
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
11
2017-11-01T17:48:10.000Z
2020-08-25T04:29:17.000Z
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
5
2017-11-10T12:46:44.000Z
2019-09-18T07:18:19.000Z
cloudianapi/tools/statistics.py
romerojunior/cloudian-api
f17b45653a0e3e27a78d0d6bdc094ec6ab521550
[ "Apache-2.0" ]
7
2018-01-26T20:08:37.000Z
2021-05-26T14:32:06.000Z
#!/usr/bin/env python # -*- coding:utf8 -*- # Copyright 2017, Schuberg Philis BV # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership...
34.202703
79
0.66772
353
2,531
4.739377
0.501416
0.035864
0.015541
0.019127
0.068141
0.050209
0.050209
0.050209
0.050209
0
0
0.005348
0.261162
2,531
73
80
34.671233
0.889305
0.711181
0
0
0
0
0.098901
0
0
0
0
0
0
1
0.125
false
0
0
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffd544a103259a41233ed3e0af2e2d453a43568d
1,446
py
Python
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
E_ledproject.py
randomstring/raspberrypi
fe226ce33f116480bfea8f258fdffa1fd96e379c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO GPIO.setwarnings(False) led_color_gpio = { 'yellow': 0, 'orange': 2, 'red': 3, 'green': 4, 'blue': 5, 'white': 6 } buttons_gpio = { 'red': 28, 'blue': 29, } gpio_to_bcm = { 0: 17, 1: 18, 2: 27, 3: 22, 4: 23, 5:...
18.075
54
0.538728
216
1,446
3.458333
0.375
0.064257
0.080321
0.085676
0.228916
0.133869
0.133869
0.133869
0.133869
0.133869
0
0.074719
0.324343
1,446
79
55
18.303797
0.689867
0.013831
0
0.161765
0
0
0.075789
0
0
0
0
0
0
1
0.014706
false
0
0.014706
0
0.044118
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffd92d23d660d2a840a6dec51a3209da982b029c
1,172
py
Python
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py
RodSernaPerez/WordVectorizer
097b2ccfc284b39ad43f56047ee25e393b7525ec
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from word_vectorizer.constants import Constants from word_vectorizer.model_downloading.gensim_model_downloader import \ GensimModelDownloader class TestGensimModelDownloader(TestCase): NAME_MODEL = "name_model" URL = "gensim" PATH_WHERE_G...
41.857143
77
0.728669
138
1,172
5.76087
0.347826
0.067925
0.125786
0.090566
0.313208
0.218868
0
0
0
0
0
0
0.195392
1,172
27
78
43.407407
0.843054
0
0
0
0
0
0.054608
0.018771
0
0
0
0
0.136364
1
0.045455
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffd92f6660bddf66dfe789ef939a022a436eddba
26,840
py
Python
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
results/generate_result.py
riscv-android-src/platform-test-mlts-benchmark
fc22878823896b81eb8b7e63e952a13f9675edcb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright 2018, The Android Open Source Project # # 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...
31.613663
99
0.656222
3,436
26,840
4.862922
0.129511
0.015321
0.014782
0.01167
0.389072
0.30726
0.254713
0.225388
0.183793
0.163325
0
0.01286
0.217735
26,840
848
100
31.650943
0.782959
0.085171
0
0.275556
0
0.002963
0.274696
0.045666
0
0
0
0
0
1
0.044444
false
0.001481
0.008889
0.002963
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffda91245aed33f9125784b3f0d5a73c6224af00
6,975
py
Python
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
1
2021-03-11T15:39:28.000Z
2021-03-11T15:39:28.000Z
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
18
2021-08-02T17:11:25.000Z
2022-01-11T16:20:04.000Z
ampel/ztf/dev/DevSkyPortalClient.py
AmpelProject/Ampel-ZTF
7f9736a7be3aa526571004716160cae2a800e410
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: Ampel-ZTF/ampel/ztf/dev/DevSkyPortalClient.py # Author: Jakob van Santen <jakob.van.santen@desy.de> # Date: 16.09.2020 # Last Modified Date: 16.09.2020 # Last Modified By: Jakob van Santen <jakob.van.santen@desy.de> im...
36.139896
151
0.531326
759
6,975
4.807642
0.370224
0.013428
0.015347
0.010414
0.050973
0.050973
0.018635
0.018635
0
0
0
0.025988
0.321434
6,975
192
152
36.328125
0.744982
0.116989
0
0.039735
0
0
0.150813
0.01495
0
0
0
0
0
1
0.059603
false
0.006623
0.086093
0.013245
0.198676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffddb9df1f192b673556f7659d2310d13ba94e89
3,806
py
Python
tools/test_detection_features_converter.py
jialinwu17/caption_vqa
9bbbb580d031a20ba4f18ef14fcd3599b62a482a
[ "MIT" ]
139
2018-03-21T09:39:39.000Z
2021-07-07T14:19:26.000Z
tools/test_detection_features_converter.py
VincentYing/Attention-on-Attention-for-VQA
cbc767541667e9bb32760ac7cd2e822eff232ff5
[ "MIT" ]
4
2018-05-25T05:15:20.000Z
2018-10-11T00:52:14.000Z
tools/test_detection_features_converter.py
VincentYing/Attention-on-Attention-for-VQA
cbc767541667e9bb32760ac7cd2e822eff232ff5
[ "MIT" ]
23
2018-03-22T10:12:35.000Z
2021-02-20T06:18:00.000Z
""" Reads in a tsv file with pre-trained bottom up attention features and stores it in HDF5 format. Also store {image_id: feature_idx} as a pickle file. Hierarchy of HDF5 file: { 'image_features': num_images x num_boxes x 2048 array of features 'image_bb': num_images x num_boxes x 4 array of bounding boxes } """ ...
34.6
83
0.618497
498
3,806
4.399598
0.273092
0.028754
0.020082
0.024646
0.176175
0.117754
0.062072
0.031036
0
0
0
0.022857
0.26432
3,806
109
84
34.917431
0.759643
0.081713
0
0.05
0
0
0.109263
0.024663
0
0
0
0
0.0125
1
0
false
0
0.1125
0
0.1125
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffdf3cdd0117fb616bc6eff58d4c3d502c8bf807
6,301
py
Python
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
78
2021-11-08T16:11:23.000Z
2022-03-27T17:51:04.000Z
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
19
2021-11-08T17:15:40.000Z
2022-03-30T17:46:55.000Z
aydin/it/classic_denoisers/bilateral.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
7
2021-11-09T17:42:32.000Z
2022-03-09T00:37:57.000Z
from functools import partial from typing import Optional, List, Tuple import numpy from numpy.typing import ArrayLike from skimage.restoration import denoise_bilateral as skimage_denoise_bilateral from aydin.it.classic_denoisers import _defaults from aydin.util.crop.rep_crop import representative_crop from aydin.uti...
32.989529
83
0.690525
792
6,301
5.342172
0.300505
0.041598
0.033089
0.017963
0.164264
0.136611
0.133775
0.133775
0.133775
0.133775
0
0.01594
0.243295
6,301
190
84
33.163158
0.871435
0.552293
0
0.16129
0
0
0.014193
0
0
0
0
0
0
1
0.032258
false
0
0.145161
0
0.209677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffe13b312ebb3748c1aadfdca895d3557dc9d9a9
1,889
py
Python
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
pymon/pymon.py
crest42/PyMon
96494cc37f906e6a07388af29b04c559ec72f116
[ "MIT" ]
null
null
null
import logging import time from .exceptions import HostEntryNotValid from .check import CheckFactory from .alert import AlertFactory from .host import Host from .logging import logger class PyMon: def __init__(self, host_list, check_list, alert_list, daemonize=False): self.hosts = {} self.checks =...
28.19403
75
0.564849
227
1,889
4.599119
0.259912
0.068966
0.031609
0.02682
0.028736
0
0
0
0
0
0
0.004006
0.339333
1,889
66
76
28.621212
0.832532
0
0
0.036364
0
0
0.035998
0
0
0
0
0
0
1
0.109091
false
0
0.127273
0
0.254545
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffe7a09ec4555bf2573c09777fdb5c2946647fc9
3,914
py
Python
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
submissions_comments.py
jbell1991/reddit-scraping
73d88501ed0205e78000b9c30780a33186154fda
[ "MIT" ]
null
null
null
# imports from decouple import config import pandas as pd import praw import psycopg2 import schedule from sqlalchemy import create_engine import time def job(): current_day = time.strftime("%m/%d/%Y") print(f"Performing job on {current_day}") startTime = time.time() # connecting to reddit API re...
32.890756
93
0.667092
441
3,914
5.782313
0.287982
0.056471
0.026667
0.016471
0
0
0
0
0
0
0
0.004864
0.212059
3,914
118
94
33.169492
0.821984
0.178334
0
0.025974
0
0
0.233031
0.017204
0
0
0
0
0
1
0.012987
false
0.038961
0.090909
0
0.103896
0.025974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffeb87db7651191ea5cf19f49a0c7c9aa356f87d
8,539
py
Python
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
site-packages/playhouse/sqliteq.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
import logging import weakref from threading import Event from threading import Thread try: from Queue import Queue except ImportError: from queue import Queue try: import gevent from gevent import Greenlet as GThread from gevent.event import Event as GEvent from gevent.queue import Queue as GQ...
32.222642
79
0.610025
1,003
8,539
4.946162
0.212363
0.026809
0.02177
0.012901
0.174158
0.143116
0.096352
0.077404
0.049587
0.049587
0
0.000843
0.305305
8,539
264
80
32.344697
0.835469
0.040169
0
0.196078
0
0
0.088056
0
0
0
0
0
0
1
0.147059
false
0.004902
0.063725
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffed6941b3c99947e3e5d93c80fbd2e963b7ad51
9,056
py
Python
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
2
2018-08-30T14:38:53.000Z
2019-12-12T09:33:42.000Z
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
1
2018-12-10T05:15:48.000Z
2018-12-10T05:15:48.000Z
Common/Db.py
StrawberryTeam/pi_robot
c1b8ce2ad49c64173673df0eb59e0941624556e7
[ "MIT" ]
2
2019-06-28T06:05:17.000Z
2019-10-28T08:34:50.000Z
#!/usr/bin/python3 from Common.Straw import Straw import pymongo from pymongo import MongoClient from bson.objectid import ObjectId import os class Db(Straw): # 任务 _taskFields = { 'videoIds': 'string', #待操作的 视频 'setId': 'objectid', #待操作的视频集 id 'fromDevice': 'string', 'toDevice':...
35.100775
169
0.597946
989
9,056
5.264914
0.226491
0.051085
0.076628
0.069906
0.497599
0.467448
0.436336
0.386979
0.294603
0.245823
0
0.005349
0.256846
9,056
257
170
35.237354
0.768351
0.194898
0
0.293706
0
0
0.112334
0
0
0
0
0
0
1
0.146853
false
0.006993
0.034965
0
0.426573
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ffed95a551ec4c75f989589df7d781a9f4387728
1,251
py
Python
baya/tests/test_templatetags.py
kreneskyp/baya
5cf04b6873927124b4a3f24c113c08699dd61315
[ "MIT" ]
4
2016-05-24T13:57:37.000Z
2020-02-27T05:22:56.000Z
baya/tests/test_templatetags.py
kreneskyp/baya
5cf04b6873927124b4a3f24c113c08699dd61315
[ "MIT" ]
29
2016-02-05T01:31:51.000Z
2022-02-23T18:50:58.000Z
baya/tests/test_templatetags.py
hrichards/baya
f319cef5e95cd6a166265d51ae0ea236b6f65be3
[ "MIT" ]
6
2016-05-20T22:22:45.000Z
2019-09-03T17:57:59.000Z
from django.template import Context from django.template import Template from .test_base import LDAPGroupAuthTestBase from django.contrib.auth.models import AnonymousUser class CanUserPerformActionTagTest(LDAPGroupAuthTestBase): BASIC_TEMPLATE = Template( "{% load baya_tags %}" "{% can_user_pe...
29.785714
69
0.608313
122
1,251
6.02459
0.327869
0.070748
0.073469
0.097959
0.492517
0.492517
0.492517
0.492517
0.42449
0.22585
0
0
0.275779
1,251
41
70
30.512195
0.811258
0
0
0.4
0
0
0.174261
0.018385
0
0
0
0
0.085714
1
0.085714
false
0
0.114286
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fff185192df2e58db961f6b323cfb8259a7a9f46
2,611
py
Python
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
egg/zoo/sum_game/architectures.py
CorentinKervadec/EGG
5ccd49c4a493514b1194699954d41940f5e2a5c6
[ "MIT" ]
null
null
null
# 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. import torch import torch.nn as nn from torch.nn import functional as F # In EGG, the game designer must implement the core functionality of t...
44.254237
133
0.711222
401
2,611
4.508728
0.38404
0.029867
0.018252
0.024889
0.075221
0.075221
0.038717
0.038717
0.038717
0
0
0.005828
0.211413
2,611
59
134
44.254237
0.872268
0.518958
0
0.121212
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.030303
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fff18656fd42956b8ef43e1d1fc5a06b2aa15f66
2,757
py
Python
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
utils/random_training_splits.py
suvarnak/GenerativeFSLCovid
0bdeb4ed444c5c9d59697c71d0733fc3a100944c
[ "MIT" ]
null
null
null
import os import shutil import random def copy_random_k_files(src_dir, k, dst_dir): file_list = os.listdir(src_dir) if k == -1: k=len(file_list) for i in range(k): random_file=random.choice(file_list) print(random_file) src1 = os.path.join(src_dir, random_file) dst...
39.385714
105
0.673921
442
2,757
3.812217
0.158371
0.08546
0.136499
0.046291
0.465282
0.429674
0.226706
0.153116
0.153116
0.110386
0
0.011899
0.207472
2,757
69
106
39.956522
0.759268
0.010519
0
0.066667
0
0
0.066079
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
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
fff2144edf1dc7c96f337289635ef5af44b23625
8,510
py
Python
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
testscript/imputation_algorithms.py
zshufan/Tattle-Tale
f9d93051efb523f1bda0cead023c2f001e18cc85
[ "BSD-3-Clause" ]
null
null
null
# some codes refer to Holoclean evaluation function # https://github.com/HoloClean/holoclean import pandas as pd import numpy as np import logging import random import argparse parser = argparse.ArgumentParser(description='Predict on many examples') parser.add_argument("--dataset", type=str, help="dataset path") pars...
42.338308
169
0.602115
1,071
8,510
4.575163
0.210084
0.031837
0.020408
0.022041
0.434286
0.370204
0.316327
0.272653
0.249592
0.241837
0
0.003485
0.291892
8,510
200
170
42.55
0.809658
0.154642
0
0.27907
0
0
0.109807
0.003632
0
0
0
0.005
0
1
0.069767
false
0
0.03876
0
0.124031
0.031008
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fff3dd07c2f6cdec73bcd25788a20c7594c2652d
959
py
Python
streamlit/main.py
prakhar134/clean-or-messy
0b9080363c48ca9cff0449875dfcbd169ef64321
[ "MIT" ]
13
2020-10-08T13:52:21.000Z
2022-03-11T07:02:35.000Z
streamlit/main.py
architsharmaa/clean-or-messy
b40028cb4c4c8bbefb91a4b016096953b445c146
[ "MIT" ]
null
null
null
streamlit/main.py
architsharmaa/clean-or-messy
b40028cb4c4c8bbefb91a4b016096953b445c146
[ "MIT" ]
9
2020-10-08T12:02:50.000Z
2022-01-25T23:38:46.000Z
from fastai.vision.all import * from PIL import Image import streamlit as st import numpy as np from io import BytesIO from .config import imgWidth, imgHeight st.title("CleanvsMessy") st.markdown(''' ## Upload the image''',True) st.set_option('deprecation.showfileUploaderEncoding', False) file = st.file_uploader(" ") ...
30.935484
65
0.683003
130
959
4.907692
0.469231
0.032915
0.056426
0
0
0
0
0
0
0
0
0.003788
0.17414
959
31
66
30.935484
0.801768
0
0
0.148148
0
0
0.197917
0.0375
0
0
0
0
0
1
0.037037
false
0
0.222222
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fff5f55a4eee57bae636a577f32adbde97ba453e
3,151
py
Python
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
e3/provisioning/AtlassianAwsSecurity.py
sguillory6/e3
1505e6ea389157b9645155b9da13d6d316235f1a
[ "Apache-2.0" ]
null
null
null
import logging import logging.config import os import subprocess from datetime import datetime, timedelta from botocore.credentials import CredentialProvider, RefreshableCredentials from dateutil.tz import tzlocal from common.E3 import e3 class AtlassianAwsSecurity(CredentialProvider): """ This class is onl...
39.886076
114
0.614408
372
3,151
4.948925
0.349462
0.039109
0.035307
0.039109
0.154264
0.074959
0.074959
0.039109
0.039109
0
0
0.00724
0.298635
3,151
78
115
40.397436
0.825792
0.072993
0
0.031746
0
0.015873
0.126381
0.02797
0
0
0
0
0
1
0.079365
false
0
0.126984
0.015873
0.365079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fff91c879216ac70a7559f58214c7d1b3892a9ea
3,264
py
Python
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
4
2019-08-25T15:47:24.000Z
2022-03-24T19:35:09.000Z
django_input_collection/api/restframework/collection.py
pivotal-energy-solutions/django-input-collection
cc2ce3e0a7104ba9c524eaba5706da94ddb04a5f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.urls import reverse from rest_framework.response import Response from rest_framework import status from ...collection import BaseAPICollector, BaseAPISpecification from ... import models from . import serializers class RestFrameworkSpecification(BaseAPISpecification): content...
38.857143
99
0.662377
319
3,264
6.611285
0.332288
0.043148
0.037933
0.029872
0.102418
0.102418
0.079659
0.046468
0.046468
0
0
0.00158
0.224571
3,264
83
100
39.325301
0.831687
0.163297
0
0.035088
0
0
0.131215
0.042617
0
0
0
0
0
1
0.087719
false
0
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fffc90bcd5aabe8c07f5b2517e1c835715addf0e
770
py
Python
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
null
null
null
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
null
null
null
DFS/depth_first_search.py
Quanta-Algorithm-Design/graphs
3a5b6362bf60a1e2fb06d2fadab46e72124d637d
[ "MIT" ]
1
2020-10-05T06:46:13.000Z
2020-10-05T06:46:13.000Z
#!/usr/bin/env python3 """ This module defines functions for depth-first-search in a graph with a given adjacency list """ def dfs_visit(node_list, adj_list, root_node, parent): """ Takes the graph node list, its adj list, and a node s, and visits all the nodes reachable from s recursively. """ fo...
29.615385
91
0.654545
117
770
4.128205
0.393162
0.115942
0.091097
0.124224
0.287785
0.200828
0.153209
0.153209
0.153209
0
0
0.001761
0.262338
770
25
92
30.8
0.848592
0.367532
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0803020bd1e3c35bd9b149aea49e7ac12f9623a3
933
py
Python
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
33
2021-07-09T05:40:00.000Z
2022-02-07T12:49:34.000Z
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
1
2021-07-09T05:37:02.000Z
2021-07-09T05:37:02.000Z
setup.py
yihong0618/-nbnhhsh-cli
3c8241dbc772b4b693e06b350c4351e75572596a
[ "Apache-2.0" ]
2
2021-07-10T10:25:08.000Z
2021-07-11T03:16:38.000Z
from setuptools import setup, find_packages VERSION = "0.1.1" setup( name="hhsh", version=VERSION, description="能不能好好说话? cli", long_description="能不能好好说话? cli", keywords="python hhsh cli terminal", author="itorr,yihong0618", author_email="zouzou0208@gmail.com", url="https://github.com/y...
29.15625
53
0.621651
96
933
5.9375
0.677083
0.1
0.131579
0.136842
0
0
0
0
0
0
0
0.030683
0.231511
933
31
54
30.096774
0.764296
0
0
0
0
0
0.476956
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08075a784b23b26531f0e2fcf4a1653e8cbbe078
1,118
py
Python
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
tests/test_blender.py
dumpmemory/lassl
dfe56f09cc2ade6c777ad8561b24f23d83a34188
[ "Apache-2.0" ]
null
null
null
from collections import Counter import pytest from datasets import load_dataset from lassl.blender import DatasetBlender def test_blending(): try: from langid import classify except ImportError as _: raise ImportError( "To test dataset blending, you need to install langid. " ...
30.216216
82
0.620751
143
1,118
4.776224
0.468531
0.064422
0.065886
0.04978
0
0
0
0
0
0
0
0.017162
0.218247
1,118
36
83
31.055556
0.764302
0
0
0
0
0
0.219141
0.023256
0
0
0
0
0.111111
1
0.037037
false
0.037037
0.259259
0
0.296296
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
080796109f90dd5533115b48ae3a4657f5fb4224
4,542
py
Python
wisps/data_analysis/path_parser.py
caganze/WISPS
81b91f8b49c7345ab68b7c4eb480716985e8905c
[ "MIT" ]
null
null
null
wisps/data_analysis/path_parser.py
caganze/WISPS
81b91f8b49c7345ab68b7c4eb480716985e8905c
[ "MIT" ]
7
2021-02-02T21:51:56.000Z
2022-01-13T00:57:45.000Z
wisps/data_analysis/path_parser.py
caganze/wisps
6572201f94a6af6d1c0a306f2f447215d4330bd7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ After the introduction of version 6.2, all wisp data and hst-3d are now on MAST 3D-HST has not added any new data nor changed their directory structure, but that's not the case for WISP Aim: parse new directories to make them compatible with v5.0 """ import os import glob from ..utils...
34.409091
170
0.647952
666
4,542
4.274775
0.208709
0.073762
0.061819
0.04215
0.505796
0.488233
0.432385
0.432385
0.432385
0.432385
0
0.034817
0.158961
4,542
132
171
34.409091
0.710471
0.247688
0
0.350649
0
0
0.188075
0.082171
0
0
0
0
0
1
0.064935
false
0
0.038961
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0811dfdcb7e741d544fe728950a10ae174c04263
3,284
py
Python
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
fileForRepair/src/parking.py
ChangSeonKim/5G_UWC_project
0504a1b1ed30787f30e18a178897978de55660ef
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan import numpy as np import math from std_msgs.msg import String def callback(data): laser_arr_f = np.array(data.ranges[0:10]) laser_arr_l= np.array(data.ranges[85:95]) laser_arr_r = np.array(d...
29.061947
76
0.546894
452
3,284
3.829646
0.205752
0.057192
0.063547
0.055459
0.631427
0.59792
0.573657
0.550549
0.537262
0.537262
0
0.050409
0.329476
3,284
113
77
29.061947
0.735695
0.350183
0
0.508475
0
0
0.02358
0
0
0
0
0
0
1
0.033898
false
0.033898
0.101695
0
0.152542
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08138545899e44b68cb9f2c6902d9d5be0b380f7
2,622
py
Python
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
opennsa/provreg.py
jmacauley/opennsa
853c0fc8e065e74815cbc3f769939f64ac6aadeb
[ "BSD-3-Clause" ]
null
null
null
""" Registry for tracking providers dynamically in OpenNSA. Keeping track of providers in a dynamical way in an NSI implementation is a huge pain in the ass. This is a combination of things, such as seperate identities and endpoints, callbacks, and the combination of local providers. The class ProviderRegistry tries ...
34.051948
108
0.672006
332
2,622
5.14759
0.337349
0.093622
0.077238
0.036864
0.228204
0.21416
0.113517
0.113517
0.065535
0.065535
0
0
0.250191
2,622
76
109
34.5
0.869278
0.2746
0
0
0
0
0.102178
0
0
0
0
0
0
1
0.151515
false
0
0.060606
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
081559dc3ab661ae3a1df9c2d52bc8d2ba1f2ae4
997
py
Python
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
2
2015-12-21T02:18:54.000Z
2016-09-08T13:56:36.000Z
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
1
2015-12-21T19:26:21.000Z
2015-12-21T19:26:21.000Z
tests/test_task_tracker.py
jmchilton/shedclient-beta
50041b488652f8bf40555b0c1ef001290f1c3f6a
[ "CC-BY-3.0" ]
null
null
null
from test_utils import TempDirectoryContext from shedclient import task_tracker def test_task_tracker(): with TempDirectoryContext() as context: config = dict( task_tracking_directory=context.temp_directory ) tracker = task_tracker.build_task_tracker(config) assert len...
33.233333
76
0.657974
120
997
5.175
0.308333
0.070853
0.10306
0.128824
0.299517
0.299517
0.299517
0.196457
0.196457
0.196457
0
0.028461
0.224674
997
29
77
34.37931
0.774903
0
0
0.190476
0
0
0.066199
0
0
0
0
0
0.333333
1
0.047619
false
0
0.095238
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
08212ae6445b938c3145af03c666f1c2c0d5163b
439
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
2
2020-06-04T19:17:13.000Z
2020-06-05T08:05:16.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
1
2020-08-06T15:01:47.000Z
2020-08-06T15:01:47.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/conftest.py
SirTelemak/cookiecutter-python-template
d7d8c4493250654a4ee3badb36c4c4da1ccb8d3d
[ "MIT" ]
2
2020-06-15T19:26:33.000Z
2020-11-20T20:24:03.000Z
import logging import pytest from loguru import logger @pytest.fixture(name='caplog', autouse=True) def loguru_caplog(caplog): class PropogateHandler(logging.Handler): def emit(self, record): logging.getLogger(record.name).handle(record) logger.remove() handler_id = logger.add(Prop...
21.95
84
0.708428
51
439
6.039216
0.568627
0.077922
0.123377
0.136364
0
0
0
0
0
0
0
0
0.177677
439
19
85
23.105263
0.853186
0
0
0
0
0
0.034169
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0822f39156313d04e61ff6ddaaed66e14edc3a38
3,692
py
Python
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
null
null
null
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
null
null
null
scripts/convert_queries.py
galuscakova/podcasts
967cc04e2b0f7cf963a189ac5270cfa69f81a540
[ "BSD-4-Clause-UC" ]
1
2021-05-27T07:44:51.000Z
2021-05-27T07:44:51.000Z
import getopt import sys import os import re import string import xml.etree.ElementTree as ET input_filename = "" expansion_filename = "" output_type = "combine" exclude = set(string.punctuation) options, remainder = getopt.getopt(sys.argv[1:], 'i:e:t:', ['inputfile=', 'expansionfile=', 'type=']) for opt, arg in op...
34.830189
119
0.600488
421
3,692
5.092637
0.228029
0.084888
0.079291
0.039179
0.245802
0.197761
0.179104
0.114739
0.114739
0.114739
0
0.006995
0.225623
3,692
105
120
35.161905
0.742917
0
0
0.073171
0
0.012195
0.150447
0.005693
0
0
0
0
0
1
0.012195
false
0
0.073171
0
0.109756
0.109756
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0823b5eeb8c1036e06aae43d61945a3ec0226291
2,124
py
Python
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
8
2022-02-25T13:15:07.000Z
2022-03-20T18:29:49.000Z
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
1
2022-02-25T13:21:33.000Z
2022-02-25T13:21:33.000Z
tests/decloud_unittest.py
CNES/decloud
6b06ae98bfe68821b4ebd0e7ba06723809cb9b42
[ "Apache-2.0" ]
1
2022-03-31T23:43:12.000Z
2022-03-31T23:43:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import subprocess import unittest import filecmp import gdal import otbApplication as otb from abc import ABC from decloud.core.system import get_env_var, pathify, basename class DecloudTest(ABC, unittest.TestCase): DECLOUD_DATA_DIR = get_env_var("DECLOUD_...
38.618182
107
0.672787
246
2,124
5.621951
0.353659
0.069414
0.061461
0.041938
0.122921
0.122921
0.122921
0.122921
0.122921
0.122921
0
0.004192
0.213748
2,124
54
108
39.333333
0.823952
0.020245
0
0.051282
0
0.051282
0.154401
0.022607
0
0
0
0
0.102564
1
0.102564
false
0
0.205128
0.025641
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08248cc60a1189c226093e9c782fd70e1acdd43e
2,609
py
Python
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
src/cameraCalibrator.py
mdaros2016/CarND-Advanced-Lane-Lines
b27d57f1c6730f302f18fb6b8cbbfcb9361d57bf
[ "MIT" ]
null
null
null
import glob import cv2 import numpy as np class CameraCalibrator: ''' Class for correcting the distortion of the pictures taken from the camera. ''' def __init__(self, calibration_pictures_path_pattern='../camera_cal/calibration*.jpg'): ''' :param calibration_pictures_path_pattern: F...
38.367647
143
0.63166
339
2,609
4.778761
0.412979
0.058642
0.070988
0.092593
0.062963
0
0
0
0
0
0
0.021402
0.283634
2,609
67
144
38.940299
0.845372
0.40207
0
0
0
0
0.020906
0.020906
0
0
0
0
0
1
0.096774
false
0
0.096774
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
0827c8ec658edf16eba00017e1a771b5d2f84def
591
py
Python
nicos_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "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_ess/dream/setups/beam_monitor.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Instrument shutter' prefix = "IOC" devices = dict( beam_monitor_1=device( 'nicos_ess.devices.epics.motor.EpicsMotor', description="Beam monitor continuous position feedback", motorpv=f'{prefix}:m8', abslimits=(-10, 10), unit='mm', speed=5., ), ...
24.625
64
0.566836
63
591
5.206349
0.68254
0.134146
0.073171
0
0
0
0
0
0
0
0
0.03163
0.304569
591
23
65
25.695652
0.766423
0
0
0
0
0
0.341794
0.118443
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
0829534c63fae0dfb66814593c9605ce70347325
28,509
py
Python
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
biosteam/_system.py
tylerhuntington222/biosteam
234959180a3210d95e39a012454f455723c92686
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details. """...
35.725564
128
0.582377
3,240
28,509
4.912037
0.119753
0.021112
0.004524
0.011938
0.330066
0.283632
0.250895
0.195287
0.167515
0.154697
0
0.002686
0.321021
28,509
798
129
35.725564
0.819497
0.20818
0
0.31028
0
0
0.058415
0.008555
0
0
0
0
0.003738
1
0.123364
false
0.003738
0.026168
0.007477
0.228037
0.007477
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
082bb5b00799a75a854f5404ce105bcaeac6c3e7
1,005
py
Python
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
modules/AI/research/findContour.py
killax-d/Counter-Coins-API
97acede70e26b23f96883bb14e2bf6ace3759174
[ "MIT" ]
null
null
null
import cv2 import numpy as np image = cv2.imread('original.png') gray = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY) gray = cv2.equalizeHist(gray) blur = cv2.GaussianBlur(gray, (19, 19), 0) # Application d'un seuil pour obtenir une image binaire thresh = cv2.adaptiveThreshold(blur, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN...
30.454545
103
0.711443
144
1,005
4.895833
0.590278
0.022695
0
0
0
0
0
0
0
0
0
0.06152
0.175124
1,005
33
104
30.454545
0.788902
0.155224
0
0.086957
0
0
0.026005
0
0
0
0
0
0
1
0
false
0.043478
0.086957
0
0.086957
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
083461c10e66e08e6e0c8ad2d8f84b46b0b09e65
8,413
py
Python
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-10T19:02:27.000Z
2020-04-10T19:02:27.000Z
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/src/ties/cli/test/ties_convert_tests.py
Noblis/ties-lib
e7c6165ebcd80e11b792fd4bcddf6ce634da0c60
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
################################################################################ # Copyright 2019 Noblis, Inc # # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
36.578261
111
0.562463
1,016
8,413
4.431102
0.188976
0.031986
0.03665
0.049978
0.496224
0.491337
0.491337
0.48534
0.469347
0.422923
0
0.010215
0.313443
8,413
229
112
36.737991
0.769217
0.127303
0
0.445055
0
0.016484
0.292744
0.050329
0
0
0
0
0.010989
1
0.104396
false
0.010989
0.043956
0
0.153846
0.005495
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0834a96e609f196a4e397fc0d0398ea157ccd7e5
2,316
py
Python
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
14
2020-11-10T16:47:54.000Z
2022-03-15T12:17:29.000Z
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
3
2020-11-21T09:49:15.000Z
2021-05-30T23:58:30.000Z
Edge Detection.py
paulmtree/Lung-Segmentation-Project
2cffe09ce6a4818200d88b9e4e87155feb594366
[ "MIT" ]
3
2021-11-04T18:08:53.000Z
2022-01-13T03:22:26.000Z
from PIL import Image, ImageFilter import numpy as np import glob from numpy import array import matplotlib.pyplot as plt from skimage import morphology import scipy.ndimage def sample_stack(stack, rows=2, cols=2, start_with=0, show_every=1, display1 = True): if (display1): new_list = [] new_list.a...
35.090909
128
0.658895
342
2,316
4.359649
0.318713
0.042254
0.032193
0.04829
0.391683
0.336687
0.317907
0.28169
0.179745
0.179745
0
0.021568
0.179188
2,316
66
129
35.090909
0.762756
0.124784
0
0.195122
0
0
0.151836
0.084007
0
0
0
0
0
1
0.02439
false
0
0.170732
0
0.195122
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08354cb83dbefe75aa87b426bfa4c3e544572c47
2,191
py
Python
benchmark.py
Umass-ITS/Open3D-PointNet2-Semantic3D
0254926f62cbca695aa1e76a18fec0863be5e455
[ "MIT" ]
330
2019-04-10T21:31:24.000Z
2021-07-26T06:16:17.000Z
benchmark.py
largeword/Open3D-PointNet2-Semantic3D
3a9751dc724877933fc883320100796cef23489d
[ "MIT" ]
44
2019-04-10T15:28:36.000Z
2021-06-22T17:39:05.000Z
benchmark.py
largeword/Open3D-PointNet2-Semantic3D
3a9751dc724877933fc883320100796cef23489d
[ "MIT" ]
78
2019-04-08T09:39:29.000Z
2021-06-08T02:39:14.000Z
import json import numpy as np import tensorflow as tf import time from predict import Predictor if __name__ == "__main__": checkpoint = "logs/semantic_backup_full_submit_dec_10/best_model_epoch_275.ckpt" hyper_params = json.loads(open("semantic.json").read()) predictor = Predictor( checkpoint_pa...
30.013699
86
0.652214
274
2,191
4.912409
0.408759
0.066865
0.071322
0.077266
0.408618
0.36107
0.36107
0.36107
0.36107
0.36107
0
0.009042
0.242812
2,191
72
87
30.430556
0.802291
0.082154
0
0.313725
0
0
0.119381
0.032468
0
0
0
0
0
1
0
false
0
0.098039
0
0.098039
0.039216
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
083725212ef9f198c79212406fcc54599eb1abb4
2,783
py
Python
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
1
2015-05-22T05:01:53.000Z
2015-05-22T05:01:53.000Z
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
framework/codejam/extract/cyclomatic_complexity.py
neizod/coding-analysis
cc086bcf204e570032d11b12a46ac819cfe93f2b
[ "MIT" ]
null
null
null
import os import json import logging from framework._utils import FunctionHook class CodeJamExtractCyclomaticComplexity(FunctionHook): ''' This method will extract cyclomatic complexity from submitted code. Need to run `extract language` first, since not every language has implement with the extr...
42.815385
75
0.606899
304
2,783
5.467105
0.361842
0.028881
0.04633
0.039711
0.33574
0.220217
0.198556
0.198556
0.198556
0.198556
0
0
0.285304
2,783
64
76
43.484375
0.835596
0.126123
0
0.196078
0
0
0.110034
0.017707
0
0
0
0
0
1
0.058824
false
0
0.196078
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
083e03b527a87a9ebea41c58c4a9944e76e7007f
1,948
py
Python
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
3
2018-03-13T12:17:13.000Z
2021-04-18T19:55:04.000Z
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2018-06-19T13:09:10.000Z
2018-06-19T13:09:10.000Z
extrator/test/test_pipeline.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2021-04-18T19:55:09.000Z
2021-04-18T19:55:09.000Z
from unittest.mock import patch, MagicMock from unittest import TestCase from ..crawler.pipeliner import pipeline from ..settings import URL_PROCESSO class Pipeline(TestCase): @patch('robotj.extrator.crawler.pipeliner.parse_itens', return_value={'d': 4}) @patch('robotj.extrator.crawler.pipeliner.pa...
38.96
76
0.661704
242
1,948
4.950413
0.322314
0.106845
0.106845
0.133556
0.301336
0.173623
0
0
0
0
0
0.026298
0.219199
1,948
49
77
39.755102
0.761341
0
0
0
0
0
0.232033
0.178131
0
0
0
0
0.219512
1
0.02439
false
0
0.097561
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08418a8370fcf775a2fd7e29466ecc715efe0e4f
2,575
py
Python
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
2
2019-11-02T06:26:29.000Z
2020-05-15T16:54:20.000Z
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
1
2020-01-20T17:20:54.000Z
2020-01-21T08:38:30.000Z
tests/utils_test.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
null
null
null
try: import cStringIO as StringIO except ImportError: import StringIO import datetime import os import sys import unittest _src = os.path.join(os.path.dirname(__file__),"..", "src") if not _src in sys.path: sys.path.append(_src) import utils class DateTimeTests(unittest.TestCase): def test_isoforma...
35.763889
97
0.597282
337
2,575
4.468843
0.362018
0.099602
0.063745
0.029216
0.21846
0.205843
0.179283
0.13413
0.095618
0.095618
0
0.087838
0.252816
2,575
71
98
36.267606
0.694906
0.041165
0
0.180328
0
0
0.070183
0.009736
0
0
0.001623
0
0.196721
1
0.032787
false
0
0.131148
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0845053b64f5370f1498b8e4729e90a827f0c839
6,329
py
Python
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
null
null
null
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
8
2017-07-01T11:13:14.000Z
2020-11-19T13:26:29.000Z
erpnext_taxjar/api.py
DigiThinkIT/erpnext_taxjar
5313dbdd931745e9655d3f5fd53c830abb0d7ee7
[ "MIT" ]
13
2017-06-30T15:47:00.000Z
2022-02-22T16:24:41.000Z
import traceback import pycountry import taxjar import frappe from erpnext import get_default_company from frappe import _ from frappe.contacts.doctype.address.address import get_company_address TAX_ACCOUNT_HEAD = frappe.db.get_single_value("TaxJar Settings", "tax_account_head") SHIP_ACCOUNT_HEAD = frappe.db.get_sin...
26.931915
133
0.746721
927
6,329
4.848975
0.199569
0.044049
0.046719
0.034038
0.322358
0.249166
0.241824
0.194883
0.194883
0.173971
0
0.001676
0.151367
6,329
234
134
27.047009
0.835226
0.123084
0
0.297468
0
0
0.137308
0.026378
0
0
0
0
0
1
0.063291
false
0.006329
0.044304
0
0.208861
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08453ede8c646dbf40688a3665092cf3d4f4e359
3,543
py
Python
tests/lib_test.py
grundrauschen/center-points
5a12f68ac012a0a2bf52d8a8381d0272e309ac18
[ "MIT" ]
null
null
null
tests/lib_test.py
grundrauschen/center-points
5a12f68ac012a0a2bf52d8a8381d0272e309ac18
[ "MIT" ]
2
2015-06-03T10:57:13.000Z
2015-09-15T12:43:22.000Z
tests/lib_test.py
fu-berlin-swp-2014/center-points
0fa523314a3168d4d229b6f61d0d05d314a8b35a
[ "MIT" ]
null
null
null
import unittest import numpy as np import numpy.testing as nptest import centerpoints.lib as lib class TestLibrary(unittest.TestCase): def setUp(self): # { dimension -> points } self.d_plus_2_points = {} for d in [3, 5, 10, 100]: # we need d+2 points, first take all bases ...
36.90625
76
0.519616
444
3,543
3.941441
0.195946
0.016
0.015429
0.011429
0.322857
0.276
0.133143
0.128571
0.128571
0.128571
0
0.043848
0.369179
3,543
95
77
37.294737
0.73915
0.05899
0
0.202899
0
0
0
0
0
0
0
0
0.173913
1
0.072464
false
0
0.057971
0
0.144928
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
084547589496d6e3bddafc72879279f994ed30e1
711
py
Python
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
null
null
null
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
null
null
null
genome-experimentation/cleaning-genome-data.py
shivamsyal/summer21
68cdcae1524e720066e57baa190f15477b69515a
[ "MIT" ]
2
2022-01-10T18:16:18.000Z
2022-03-20T01:17:28.000Z
# test comment import os filename = input("File to format: ") os.system("gunzip "+filename) n = int(input("What number genome is this? ")) os.system("mv "+filename[:-3]+" genome"+str(n)+".fna") original = "genome"+str(n)+".fna" copy = "genome"+str(n)+"_copy.fna" filtered = "genome"+str(n)+"_filtered.fna" rem = ['>'] wi...
30.913043
54
0.624473
119
711
3.714286
0.453782
0.081448
0.090498
0.058824
0
0
0
0
0
0
0
0.006826
0.175809
711
22
55
32.318182
0.74744
0.016878
0
0
0
0
0.164993
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
084592c05031adcf4e22889393a72a2880d58eb8
758
py
Python
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
villas/controller/components/managers/generic.py
VILLASframework/VILLAScontroller
e672439797f209afdd5bc62078f7d49c60269aa4
[ "Apache-2.0" ]
null
null
null
from villas.controller.components.manager import Manager from villas.controller.component import Component class GenericManager(Manager): def create(self, payload): component = Component.from_dict(payload.get('parameters')) try: self.add_component(component) except KeyError: ...
28.074074
76
0.62533
81
758
5.814815
0.432099
0.042463
0.084926
0.101911
0.123142
0
0
0
0
0
0
0
0.283641
758
26
77
29.153846
0.867403
0
0
0.222222
0
0
0.135884
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0846011f39bb03a7af3bf569426365af42543fe1
1,503
py
Python
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v2.0/module02-computer vision/exercise02-data acquisiton and visualization/visualization.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
""" # !/usr/bin/env python # -*- coding: utf-8 -*- @Time : 2022/2/23 19:35 @Author : shengdl999links@gmail.com @ProjectName : udacity-program_self_driving_car_engineer_v1.0_source.0 @File : visualization.py """ import glob import os.path import matplotlib.pyplot as plt from matplotlib.patches import ...
25.05
98
0.594145
218
1,503
3.958716
0.53211
0.076477
0.013905
0
0
0
0
0
0
0
0
0.04529
0.265469
1,503
59
99
25.474576
0.736413
0.27678
0
0
0
0
0.048387
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
084746dfc5f458e9131b1743d5567db36da8ab9c
898
py
Python
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
3
2020-02-03T08:25:10.000Z
2021-09-29T15:59:01.000Z
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
2
2021-01-18T19:27:44.000Z
2021-01-18T19:27:44.000Z
setup.py
georgenicolaou/python-fakeports
24eecf879e0d2d2a100be06952fb3677019457e2
[ "MIT" ]
null
null
null
from setuptools import setup long_description = 'TODO' # with open("README.md", "r") as rfd: # long_description = rfd.read() REQUIREMENTS = [r.strip() for r in open("requirements.txt").readlines()] setup( name='python-fakeports', version="0.1", packages=['python_fakeports'], url='', license='G...
28.967742
72
0.644766
99
898
5.767677
0.69697
0.105079
0
0
0
0
0
0
0
0
0
0.004132
0.191537
898
30
73
29.933333
0.782369
0.076837
0
0
0
0
0.416465
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
08486cbf36ba6ba189128910a8b98a815a664466
938
py
Python
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
python/17_letter_combinations_of_a_phone_number.py
dchapp/blind75
aaa409cf2db4ef6d0f86177f4217eceeb391caa8
[ "MIT" ]
null
null
null
num_to_letters = { '2': ['a', 'b', 'c'], '3': ['d', 'e', 'f'], '4': ['g', 'h', 'i'], '5': ['j', 'k', 'l'], '6': ['m', 'n', 'o'], '7': ['p', 'q', 'r', 's'], '8': ['t', 'u', 'v'], '9': ['w', 'x', 'y', 'z'], } class Solution: def letterCombinations(self,...
28.424242
65
0.410448
108
938
3.453704
0.583333
0.107239
0.112601
0.107239
0
0
0
0
0
0
0
0.022807
0.392324
938
32
66
29.3125
0.631579
0
0
0
0
0
0.036247
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.259259
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
084eddbd29309d0a8c29e8b0baeae41ed4f83c9f
7,420
py
Python
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
32
2016-08-27T01:31:42.000Z
2022-03-21T08:59:28.000Z
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
3
2016-08-27T00:51:47.000Z
2019-08-26T13:23:04.000Z
logicscen.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
10
2016-08-28T14:14:41.000Z
2021-03-18T03:24:22.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- #--------------------------------------------------------------------------------------------------- # --> Logic to handle scenarios #--------------------------------------------------------------------------------------------------- import imports from imports import * imp...
27.279412
119
0.508491
728
7,420
5.151099
0.171703
0.0448
0.0504
0.034667
0.5064
0.4888
0.4816
0.4096
0.378933
0.355467
0
0.00902
0.327628
7,420
271
120
27.380074
0.742634
0.053774
0
0.569307
0
0
0.073741
0.013408
0.004951
0
0
0
0
1
0.029703
false
0.044554
0.024752
0
0.064356
0.004951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0850f9781ec228546bf41eccc932a22fd036e4a8
7,980
py
Python
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/views/projects.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
import dash import dash_html_components as html import dash_bootstrap_components as dbc import numpy as np from server import app from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate from components.cards import simple_info_card from components.dropdowns import dropdown_single fr...
28.098592
90
0.52193
764
7,980
5.328534
0.175393
0.025547
0.023581
0.023581
0.355687
0.336281
0.283468
0.226234
0.125031
0.067305
0
0.005659
0.37995
7,980
283
91
28.19788
0.817098
0.180827
0
0.378378
0
0
0.150685
0.010513
0
0
0
0
0
1
0.032432
false
0
0.086486
0
0.156757
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
085550c02672da4291f033dfdf10337c089c2aa8
16,119
py
Python
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
11
2017-07-19T07:05:44.000Z
2022-02-07T19:35:51.000Z
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
null
null
null
multiacctcf.py
DonMills/multiacct-CF-orchestrate
4acce3c984c1801ff66cf9d210e3a0d1a6f9246b
[ "MIT" ]
2
2017-07-19T15:01:52.000Z
2022-02-07T19:35:53.000Z
#!/usr/bin/python from __future__ import print_function import threading import boto3 import botocore import argparse from time import ctime ############### # Some Global Vars ############## lock = threading.Lock() awsaccts = [{'acct': 'acct1ID', 'name': 'master', 'cffile': 'location of clou...
39.70197
179
0.470749
1,463
16,119
5.138756
0.20164
0.026337
0.013966
0.033653
0.415137
0.361798
0.340516
0.301809
0.216547
0.196329
0
0.004021
0.382902
16,119
405
180
39.8
0.751784
0.051182
0
0.405882
0
0.020588
0.254067
0.004549
0
0
0
0
0
1
0.011765
false
0
0.017647
0
0.029412
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
085769a397608c592ac48390d3b4d6b67aae08eb
882
py
Python
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
NIM/tests/woa_test.py
buctlab/source-seeking-multi-robot-team-simulator
a68c214b9bd19006a94c0adc832681bbaf0d6dc8
[ "Apache-2.0" ]
null
null
null
import os from Config import Config from NIM.algorithms import WhaleOptimizationAlgorithm from NIM.algorithms.algorithm import logger if __name__ == '__main__': with open(Config.default_saved_scene_path, 'r') as f: data = f.read() m2d = eval(data) seed = 5 woa = WhaleOptimizationAlgorithm(m2...
36.75
119
0.675737
115
882
4.895652
0.530435
0.0373
0.060391
0
0
0
0
0
0
0
0
0.004335
0.21542
882
23
120
38.347826
0.809249
0
0
0
0
0
0.091837
0.043084
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
085893c679735b22d323d01a1e71583ba759cc3a
6,242
py
Python
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
null
null
null
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
null
null
null
src/COVIDZejunDatagraphs.py
luisflores0330/ista131final
168ac6afe666e945ae717387b50420804b33c4f3
[ "Apache-2.0" ]
4
2021-12-07T21:44:31.000Z
2021-12-07T23:20:04.000Z
''' File: COVIDZejunDatagraphs.py Author: Zejun Li Purpose: This file contains 12 different functions to make 5 different graphs about the COVID 19 in Idaho ''' import pandas as pd, numpy as np, matplotlib.pyplot as plt import matplotlib.dates as mdates import datetime import datetime as dt def get_df(): ...
33.026455
187
0.603172
975
6,242
3.740513
0.206154
0.03071
0.019742
0.039485
0.610913
0.525363
0.489443
0.46312
0.378942
0.349328
0
0.029196
0.237264
6,242
188
188
33.202128
0.73682
0.165812
0
0.376
0
0
0.178499
0.040145
0
0
0
0
0
1
0.096
false
0
0.032
0.008
0.168
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0858b5bc59305248e9f97a28c217e52f4157d9b4
1,118
py
Python
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
1
2021-03-21T07:25:43.000Z
2021-03-21T07:25:43.000Z
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
null
null
null
tests/test_pipeline_disk_deduplication.py
kingking888/skyscraper
d710202f9581c3791d2cf7ee3ae33e950e46c0b7
[ "MIT" ]
1
2021-04-24T11:38:18.000Z
2021-04-24T11:38:18.000Z
import pytest import json import datetime from scrapy.spiders import Spider import scrapy.exceptions from skyscraper.items import BasicItem from scrapy.exceptions import DropItem from skyscraper.pipelines.filesystem import DiskDeduplicationPipeline class MockDeduplication(): def __init__(self): self.s =...
24.304348
74
0.686047
137
1,118
5.510949
0.416058
0.019868
0.075497
0.091391
0.303311
0.188079
0.188079
0.111258
0.111258
0
0
0.001117
0.199463
1,118
45
75
24.844444
0.842458
0.073345
0
0.3
0
0
0.121124
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0.033333
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
085b597e5e9aaf7c138a4db4c8f8739331aa2a66
2,342
py
Python
SVM/SVM_Regression/Sklearn_SVM_Regression.py
Jojoxiao/Machine-Learning-for-Beginner-by-Python3
71b91c9cba5803bd78d4d31be6dabb1d3989e968
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
SVM/SVM_Regression/Sklearn_SVM_Regression.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
SVM/SVM_Regression/Sklearn_SVM_Regression.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
# -*- coding:utf-8 -*- # &Author AnFany # 利用Sklearn包实现支持核函数回归 """ 第一部分:引入库 """ # 引入部分的北京PM2.5数据 import SVM_Regression_Data as rdata # 引入库包 from sklearn import svm import numpy as np import matplotlib.pyplot as plt from pylab import mpl mpl.rcParams['font.sans-serif'] = ['FangSong'] # 中文字体名称 mpl...
22.519231
101
0.557643
344
2,342
3.75
0.40407
0.046512
0.037209
0.031008
0.217054
0.20155
0.104651
0.05969
0.05969
0.045736
0
0.035493
0.242101
2,342
103
102
22.737864
0.691268
0.085824
0
0.044444
0
0
0.064767
0
0
0
0
0
0
1
0.066667
false
0
0.111111
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
085b8a0758f970cf513eb9555d20e921de2dbc2f
1,655
py
Python
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_history.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
from os.path import dirname import unittest from .decorators import skip_if_no_mock from .helpers import mock from conda import history class HistoryTestCase(unittest.TestCase): def test_works_as_context_manager(self): h = history.History("/path/to/prefix") self.assertTrue(getattr(h, '__enter__'...
31.826923
73
0.590937
200
1,655
4.65
0.365
0.045161
0.064516
0.03871
0.272043
0.272043
0.155914
0.122581
0.122581
0.122581
0
0.031987
0.282175
1,655
51
74
32.45098
0.750842
0
0
0.128205
0
0
0.123263
0
0
0
0
0
0.205128
1
0.153846
false
0.025641
0.128205
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
085e0152d8a979274c20816965dae9f9c36f8c65
6,066
py
Python
src/bpp/views/raporty/ranking_autorow.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/views/raporty/ranking_autorow.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/views/raporty/ranking_autorow.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import itertools try: from django.core.urlresolvers import reverse except ImportError: from django.urls import reverse from django.db.models.aggregates import Sum from django.template.defaultfilters import safe from django.utils.functional import cached_property from django_tables2 im...
32.612903
88
0.616716
663
6,066
5.392157
0.260935
0.026853
0.033566
0.017902
0.141259
0.085874
0.043636
0.024056
0.024056
0
0
0.001817
0.274151
6,066
185
89
32.789189
0.810129
0.003792
0
0.18543
0
0
0.13905
0.008442
0
0
0
0
0
1
0.072848
false
0.006623
0.086093
0.033113
0.337748
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f22aabe1afa4a1593594ef47c8110872cb757c3c
16,701
py
Python
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
client-lib/pypi/nsrr/nsrr.py
nsrr/nsrr-cloud
a1e33bc3ba3220600e8b1973882d2ed76a7277c6
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests from requests.structures import CaseInsensitiveDict import json import getpass from pathlib import Path import hashlib import pandas as pd import gzip from multiprocessing import Process # Global variables #API_SERVER='https://dev-cloud.sleepdata.org/api/v1' API_SERVER='https://clo...
42.496183
163
0.598946
2,109
16,701
4.519678
0.105737
0.05193
0.030214
0.033991
0.619597
0.572073
0.511855
0.456567
0.439677
0.415653
0
0.009641
0.285791
16,701
393
164
42.496183
0.789487
0.011257
0
0.509804
0
0.016807
0.176834
0.001454
0
0
0
0
0
1
0.047619
false
0.008403
0.02521
0
0.148459
0.151261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f22b087ab319568e891a7406ef151ad2f4d6b818
509
py
Python
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
assignment2.py
talsperre/random-walk
5c810f571c9de28926850e1ad70ff4c29df9c0f4
[ "MIT" ]
null
null
null
import numpy as np N = 100 R = 10000 R_range = range(R) size = (N, 3) C = np.zeros((N, 3)) k = 1 print ("100") print ("STEP: ", k) for i in range(N): print ("He ", C[i, 0], " ", C[i, 1], " ", C[i, 2]) k += 1 for j in range(R): A = np.random.uniform(-1, 1, size) B = np.sum(np.multiply(A, A), axis=1) B = np.sqrt(B)...
18.851852
53
0.489194
109
509
2.256881
0.330275
0.04878
0.105691
0.138211
0.390244
0.390244
0.390244
0.390244
0.390244
0.390244
0
0.084656
0.257367
509
27
54
18.851852
0.566138
0
0
0.4
0
0
0.054902
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.24
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f22fac0a3ced91e4e4e5768a9d363783d0f24bd3
1,462
py
Python
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
3
2017-03-02T07:11:37.000Z
2017-03-03T06:13:32.000Z
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
null
null
null
parallel/images_common.py
minrk/ipython-cse17
16a9059c7054a8bd4977a3cb8b09c100ea779069
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib.pyplot as plt from skimage.io import imread def plot_corners(img, corners, show=True): """Display the image and plot all contours found""" plt.imshow(img, cmap='gray') plt.plot(corners[:,1], corners[:,0], 'r+', markeredgewidth=1.5, markersize=8) # Plot corners plt.axis('ima...
29.24
96
0.666211
202
1,462
4.717822
0.430693
0.04617
0.029381
0.044071
0.052466
0
0
0
0
0
0
0.005277
0.222298
1,462
49
97
29.836735
0.832894
0.197674
0
0
0
0
0.016874
0
0
0
0
0
0
1
0.129032
false
0
0.16129
0
0.387097
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23235dddab2a9fffc993f7fe1be533663c51d2b
290
py
Python
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
src/calc.py
ceIery/epic7-speed-calculator
2f91e57117e2b6873772e6a703e47241570ab75f
[ "MIT" ]
null
null
null
""" Given a base speed value and a list of percentages, calculates the speed value for each percentage """ def get_speeds(percents, base): speeds = [] for percent in percents: speeds.append(round(((int)(base) * ((int)(percent) / 100)))) print(speeds) return speeds
24.166667
78
0.662069
39
290
4.897436
0.666667
0.104712
0
0
0
0
0
0
0
0
0
0.013158
0.213793
290
11
79
26.363636
0.824561
0.337931
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2330e7134a6c2ae1cacee5b851dbdfec9f5f1d4
11,762
py
Python
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
null
null
null
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
1
2018-01-06T00:24:06.000Z
2018-01-06T00:24:06.000Z
src/magi/actions/base.py
personalrobotics/magipy
6f86d6938168f580f667cfc093cf7e9f218e2853
[ "BSD-3-Clause" ]
null
null
null
"""Base classes, context managers, and exceptions for MAGI actions.""" from abc import ABCMeta, abstractmethod import logging from openravepy import KinBody, Robot LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.INFO) class SaveAndJump(object): """ Save the state of the environment and jump th...
32.672222
85
0.655841
1,359
11,762
5.591611
0.18028
0.033162
0.01895
0.031978
0.401763
0.312936
0.283853
0.23911
0.20279
0.18134
0
0.000934
0.271552
11,762
359
86
32.763231
0.885971
0.466502
0
0.335821
0
0
0.029735
0
0
0
0
0
0.007463
1
0.171642
false
0.044776
0.022388
0
0.380597
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f233b62fa43bf27f7df361b2d0940e083df21551
6,471
py
Python
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
src/core/python/core/io/od.py
railtoolkit/OpenLinTim
27eba8b6038946ce162e9f7bbc0bd23045029d51
[ "MIT" ]
null
null
null
from typing import List from core.exceptions.input_exceptions import (InputFormatException, InputTypeInconsistencyException) from core.model.graph import Graph from core.model.impl.fullOD import FullOD from core.model.impl.mapOD import MapOD from core.model.infrastructure ...
44.020408
126
0.626642
844
6,471
4.735782
0.191943
0.056042
0.019515
0.021016
0.487616
0.482612
0.405054
0.398549
0.379034
0.367025
0
0.002888
0.304281
6,471
146
127
44.321918
0.88494
0.386803
0
0.333333
0
0
0.031045
0.012532
0
0
0
0
0
1
0.083333
false
0.027778
0.138889
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23575bb8b4e289c914a5be32dd736b94767c391
4,395
py
Python
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
3
2020-09-08T16:55:44.000Z
2021-12-04T15:35:07.000Z
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
null
null
null
kriging/_kriging.py
ERSSLE/ordinary_kriging
f983081e4f12b0bae03bd042a6f451c65dcb2759
[ "MIT" ]
2
2021-08-25T09:35:50.000Z
2021-12-07T08:19:11.000Z
# encoding: utf-8 """ Ordinary Kriging interpolation is a linear estimation of regionalized variables. It assumes that the data change into a normal distribution, and considers that the expected value of regionalized variable Z is unknown. The interpolation process is similar to the weighted sliding average, an...
35.731707
100
0.597952
649
4,395
3.975347
0.269646
0.034109
0.015504
0.009302
0.153488
0.125969
0.115504
0.077519
0.077519
0.041085
0
0.02766
0.251422
4,395
122
101
36.02459
0.756535
0.281456
0
0
0
0
0.007666
0
0
0
0
0
0
1
0.1
false
0
0.057143
0.014286
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23806bdb5c4b2e6ddeae98b2f41f0141fe5c5b9
1,410
py
Python
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
14
2018-05-27T19:34:59.000Z
2022-02-09T12:02:38.000Z
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
4
2018-05-28T02:44:07.000Z
2022-03-02T14:55:20.000Z
crypto-scrapers/scrapers/spiders/coin_market_cap.py
chnsh/crypto-index-fund
6c4122b868372ba99aba4f703e85d8ee12af07de
[ "MIT" ]
1
2022-03-07T05:26:47.000Z
2022-03-07T05:26:47.000Z
from datetime import datetime from locale import * import scrapy from injector import Injector from scrapers.items import CoinMarketCapItem from scrapers.utils import UrlListGenerator setlocale(LC_NUMERIC, '') class CoinMarketCapSpider(scrapy.Spider): name = "cmc" custom_settings = { 'ITEM_PIPELINE...
33.571429
76
0.565248
164
1,410
4.780488
0.481707
0.061224
0.066327
0
0
0
0
0
0
0
0
0.017034
0.292199
1,410
41
77
34.390244
0.768537
0
0
0
0
0
0.078723
0.021277
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23af2303a08de830f84db88bf6e00cef4e25589
4,361
py
Python
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
crawler/cli.py
NicolasLM/crawler
15ed6441fef3b68bfadc970f597271191fe66cf8
[ "MIT" ]
null
null
null
from collections import OrderedDict from urllib.parse import urlparse import click import rethinkdb as r import redis import crawler.conf as conf # cli does not need to be thread-safe conn = r.connect(host=conf.RethinkDBConf.HOST, db=conf.RethinkDBConf.DB) domains = r.table('domains') @click.group...
33.806202
79
0.64022
543
4,361
5.092081
0.252302
0.0434
0.034358
0.024593
0.233273
0.179747
0.124051
0.110669
0.083906
0.083906
0
0.004661
0.212795
4,361
128
80
34.070313
0.800757
0.086907
0
0.180851
0
0
0.172711
0
0
0
0
0
0
1
0.085106
false
0
0.095745
0
0.180851
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23b010b735f63cc59ac899de4d7a1e041082294
9,667
py
Python
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
run.py
keyunluo/Pytorch-DDP
ff91affdd2c4cebe1719e9a46f118405c308fd1f
[ "Apache-2.0" ]
null
null
null
# -8*- coding: utf-8 -*- import torch import torch.nn as nn import torch.optim as optim import torch.multiprocessing as mp import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader, Dataset from torch.nn.parallel import DistributedDataParallel from torch.utils.data.distributed import DistributedSamp...
39.618852
150
0.602359
1,170
9,667
4.760684
0.228205
0.010772
0.027469
0.017953
0.175224
0.158528
0.124237
0.124237
0.077558
0.077558
0
0.015598
0.283749
9,667
243
151
39.781893
0.78885
0.005276
0
0.121359
0
0
0.037099
0
0
0
0
0
0.004854
1
0.07767
false
0
0.048544
0.009709
0.174757
0.014563
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23c95d3f1d786e4a9f7ff9ea7ec7de8d8f85605
373
py
Python
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
newsletter/urls.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
from django.urls import path from .views import * app_name = 'newsletter' urlpatterns = [ path('pixel/', my_image, name='pixel'), path('click/<str:uuid>/', click_redirect, name='click'), path('notification/', notification, name='notification'), path('sendtest/<str:slug>', sendtest, name='sendtest'), ...
26.642857
61
0.659517
45
373
5.4
0.466667
0.057613
0
0
0
0
0
0
0
0
0
0
0.142091
373
13
62
28.692308
0.759375
0
0
0
0
0
0.310992
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f23ec17cf55792ab6ef9150b36b5c3e6f5471fbb
6,491
py
Python
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
1
2021-02-13T10:48:13.000Z
2021-02-13T10:48:13.000Z
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
null
null
null
vesc_driver/src/mathdir/cubic_spline_planner.py
Taek-16/vesc_study
c4f8e56a2530b17622ca73e9eba57830a1b51ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ cubic spline planner Author: Atsushi Sakai """ import math import numpy as np import bisect from scipy.spatial import distance class Spline: """ Cubic Spline class """ def __init__(self, x, y): self.b, self.c, self.d, self.w = [], [], [], [] self.x = x ...
24.130112
131
0.475582
995
6,491
3.031156
0.162814
0.028183
0.021883
0.01061
0.392573
0.340849
0.306366
0.28183
0.241379
0.187666
0
0.02636
0.362964
6,491
268
132
24.220149
0.703023
0.088122
0
0.355422
0
0.006024
0.037156
0.011378
0
0
0
0
0
1
0.096386
false
0
0.036145
0
0.271084
0.006024
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f240eb401196f0b66c32fe422e4a7253f5e5528f
1,469
py
Python
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
mojave_setup/fonts.py
RuchirChawdhry/macOS-Mojave-Setup
5e61fe8c20abc42e63fcbd1c7e310aab8cc02a1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import subprocess as sp class Fonts: FONTS = [ "source-code-pro", "source-sans-pro", "source-serif-pro", "roboto", "roboto-mono", "roboto-slab", "open-sans", "open-sans-condensed", "lato", ...
22.953125
80
0.479238
143
1,469
4.888112
0.601399
0.050072
0.031474
0
0
0
0
0
0
0
0
0.003138
0.349217
1,469
63
81
23.31746
0.728033
0.029272
0
0
0
0
0.373596
0.016152
0
0
0
0
0
1
0.035714
false
0
0.017857
0
0.107143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2430c615c25842a6a15c7289e5e98e1e77f49ce
1,817
py
Python
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
src/neighborly/core/residence.py
ShiJbey/neighborly
5af1e3211f1ef0e25803790850e7cd3d3a49be69
[ "MIT" ]
null
null
null
from typing import Any, Dict from ordered_set import OrderedSet from neighborly.core.ecs import Component from neighborly.core.engine import AbstractFactory, ComponentDefinition class Residence(Component): __slots__ = "owners", "former_owners", "residents", "former_residents", "_vacant" def __init__(self) ...
32.446429
85
0.63071
199
1,817
5.537688
0.261307
0.054446
0.083485
0.098004
0.181488
0
0
0
0
0
0
0.000732
0.248211
1,817
55
86
33.036364
0.806003
0.035773
0
0
0
0
0.063182
0
0
0
0
0
0
1
0.170732
false
0
0.097561
0.073171
0.414634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2439cb603c2e5bb9b0700a3b097f6415267d55a
15,518
py
Python
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
1
2019-10-08T20:31:16.000Z
2019-10-08T20:31:16.000Z
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
84
2018-03-06T16:02:30.000Z
2020-09-01T18:17:54.000Z
tests/SBHRun_Environment.py
SD2E/synbiohub_adapter
492f9ef1054b17d790654310b895bb7ad155808e
[ "MIT" ]
1
2019-02-06T17:17:54.000Z
2019-02-06T17:17:54.000Z
import threading import time import pandas as pd import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt import os import fnmatch import random import re import getpass import sys from rdflib import Graph from synbiohub_adapter.SynBioHubUtil import * from sbol import * """ This class will...
33.661605
110
0.660974
2,072
15,518
4.775579
0.195946
0.042446
0.009702
0.016271
0.318343
0.261445
0.199697
0.165235
0.152299
0.135927
0
0.007362
0.238497
15,518
460
111
33.734783
0.829991
0.163681
0
0.229167
0
0
0.097857
0.022608
0
0
0
0.004348
0
1
0.107639
false
0.006944
0.052083
0.020833
0.236111
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f245528c941762eda827c561627c5aa634c97c9f
2,842
py
Python
setup.py
Unidata/drilsdown
55aca7168fb390f31c36729605401564e9b82c56
[ "MIT" ]
3
2018-05-25T00:19:12.000Z
2021-01-08T15:54:36.000Z
setup.py
suvarchal/drilsdown
e82f58396f640fef847353caf1bd4b2bf016c7a6
[ "MIT" ]
11
2017-10-31T20:15:24.000Z
2019-12-16T21:01:55.000Z
setup.py
suvarchal/drilsdown
e82f58396f640fef847353caf1bd4b2bf016c7a6
[ "MIT" ]
10
2018-02-08T22:23:28.000Z
2019-09-29T23:25:19.000Z
import os from six import iteritems from setuptools import setup from setuptools.command.develop import develop from setuptools.command.install import install import subprocess PACKAGE_NAME = 'drilsdown' SOURCES = { 'ipython_IDV': 'projects/ipython_IDV', 'idv_teleport': 'projects/IDV_teleport', 'ramadda_publi...
32.295455
105
0.60943
317
2,842
5.381703
0.457413
0.049824
0.058617
0.054513
0.184056
0.126612
0.064478
0.064478
0.064478
0
0
0.009108
0.26601
2,842
87
106
32.666667
0.808725
0.165377
0
0.055556
0
0
0.29108
0.030303
0
0
0
0
0
1
0.041667
false
0
0.083333
0
0.152778
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f24567e433386b2908e8d4a58f10fb0b2a6b3b98
2,129
py
Python
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
ejercicios/Ejercicio6.py
Xavitheforce/Ejercicios_Iteracion
e840439e1277b5946592128d5c771d895c2fac2c
[ "Apache-2.0" ]
null
null
null
from datetime import datetime class Banco(): def __init__(self): self.cuentas = { '1':{ 'nombre': 'Marcos Martinez', 'balance': 173735, 'tipo': 1, 'movimientos': [] },'2':{ 'nombre': 'Alejandro Sanchez', 'balance': 1342, 'tipo': 0, 'movi...
39.425926
184
0.622828
241
2,129
5.419087
0.307054
0.092649
0.075038
0.107198
0.264165
0.174579
0.136294
0.087289
0.087289
0.087289
0
0.013253
0.220291
2,129
54
185
39.425926
0.772289
0
0
0.169811
0
0
0.296714
0
0
0
0
0
0
1
0.056604
false
0
0.018868
0
0.150943
0.09434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f2490fc27568d943c3ececc3e75fce355b5da3ff
3,497
py
Python
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
advent/days/day17/day.py
RuedigerLudwig/advent2021
ce069d485bb34b4752ec4e89f195f7cc8cf084cc
[ "Unlicense" ]
null
null
null
from __future__ import annotations from itertools import product from typing import Iterator day_num = 17 def part1(lines: Iterator[str]) -> int: probe = Target.from_str(next(lines)) mx = max(y for _, y in probe.get_possible()) return mx * (mx + 1) >> 1 def part2(lines: Iterator[str]) -> int: prob...
31.223214
82
0.501859
455
3,497
3.630769
0.167033
0.043584
0.03632
0.021792
0.259685
0.21247
0.21247
0.183414
0.101695
0.101695
0
0.016635
0.398341
3,497
111
83
31.504505
0.768536
0
0
0.255556
0
0
0.00143
0
0
0
0
0
0
1
0.111111
false
0
0.033333
0.011111
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