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
54afe8421a6919e6ea315d052ac2b1d84c0d0ecd
387
py
Python
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
model-creator.py
LouisRoss/spiking-model-packager
de75a923e7332b73cb7252300af91d4620b6e801
[ "MIT" ]
null
null
null
import sys import json from h5model import h5model if len(sys.argv) < 2: print('Usage: ' + sys.argv[0] + ' ' + '<model name>') exit(1) modelName = sys.argv[1] model = h5model(modelName) model.createModel() if model.responseStatus >= 400: print("Unable to create model '" + modelName + "': " + model.errorMessage...
22.764706
95
0.687339
51
387
5.215686
0.529412
0.078947
0
0
0
0
0
0
0
0
0
0.033846
0.160207
387
17
96
22.764706
0.784615
0
0
0.153846
0
0
0.121134
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54b2b1435e7c0cbedc57669a7f3b6443192e3d9f
4,887
py
Python
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
1
2018-11-30T21:56:14.000Z
2018-11-30T21:56:14.000Z
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
null
null
null
settings/base.py
anthill-gaming/media
cc3292be8bd83aba6054e420124adabcfa4e3a8b
[ "MIT" ]
null
null
null
from anthill.framework.utils.translation import translate_lazy as _ from anthill.platform.conf.settings import * import os # Build paths inside the application like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in ...
27
108
0.529568
447
4,887
5.653244
0.407159
0.066878
0.071231
0.0926
0.247329
0.221211
0.20459
0.148397
0.04907
0
0
0.015882
0.278494
4,887
180
109
27.15
0.700794
0.095764
0
0.246377
0
0.007246
0.402365
0.115028
0
0
0
0
0
1
0
false
0
0.021739
0
0.021739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54b51b30bb070d1462b530e3aafb5daba4e65245
2,787
py
Python
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
6
2017-10-27T16:59:53.000Z
2021-03-02T06:08:48.000Z
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
68
2016-01-26T10:48:16.000Z
2021-11-16T10:09:49.000Z
odmltables/gui/wizutils.py
fabianschlebusch/python-odmltables
90a7833516afe8864b40947f4a1757830a0dc44c
[ "BSD-3-Clause" ]
7
2015-11-24T12:40:18.000Z
2021-04-14T08:02:53.000Z
# -*- coding: utf-8 -*- import os, sys from PyQt5.QtWidgets import (QWizard, QMessageBox) from PyQt5.QtGui import QPixmap from PyQt5.QtCore import pyqtSlot, Qt try: import odmltables have_odmltables = True except: have_odmltables = False from .settings import Settings class OdmltablesWizard(QWizard): ...
32.406977
86
0.588805
286
2,787
5.583916
0.458042
0.033813
0.031309
0.022542
0.038823
0.028804
0
0
0
0
0
0.006718
0.305705
2,787
85
87
32.788235
0.818605
0.164693
0
0
0
0
0.094723
0.019031
0
0
0
0
0
1
0.078431
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
54b6c94b65480166ee80c689e0b477e97f134499
25,440
py
Python
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
trainLib.py
dorukb/ceng445-trainSim
01af1c556dbce4e3f1c07fc16a21cd94cdeb7884
[ "MIT" ]
null
null
null
import math #constants and globals background = '0' NORTH = 0 EAST = 1 SOUTH = 2 WEST = 3 dirs = {0 : "NORTH", 1 : "EAST", 2 : "SOUTH", 3 : "WEST"} class CellElement(): #CellELement Interface for the subclasses #Subclasses: RegularRoad, Switch, LevelCrossing, Bridge, Station def setPosition(self, x, y): ...
39.564541
190
0.596502
3,172
25,440
4.772068
0.135246
0.030521
0.02114
0.024047
0.518597
0.487547
0.459536
0.44857
0.435291
0.408403
0
0.013682
0.313365
25,440
643
191
39.564541
0.852874
0.305149
0
0.697183
0
0
0.01764
0
0
0
0
0
0
1
0.192488
false
0
0.002347
0.098592
0.420188
0.00939
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54b7f3a8b8887e8d822b83c326d0049cfae95c7f
25,083
py
Python
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
9
2020-01-28T23:07:43.000Z
2022-02-10T00:36:23.000Z
nar_module/nar/preprocessing/nar_preprocess_cafebiz_2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
import argparse import glob import json import os import os.path import re import sys from collections import Counter, defaultdict from datetime import datetime from os import path import numpy as np import pandas as pd import tensorflow as tf from acr_module.acr.acr_module_service import get_all_file, load_json_conf...
42.950342
176
0.670653
3,184
25,083
4.926193
0.142588
0.020402
0.028562
0.020593
0.486516
0.392031
0.336691
0.316863
0.311508
0.297354
0
0.012646
0.224455
25,083
583
177
43.024014
0.793657
0.214408
0
0.272472
0
0.005618
0.177642
0.065135
0
0
0
0.001715
0
1
0.061798
false
0.005618
0.058989
0.002809
0.171348
0.042135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54b9d0d77aa935ba65cfcd82b3fdde8db5a12f2f
1,457
py
Python
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
8
2020-03-28T15:42:39.000Z
2021-07-26T17:40:59.000Z
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
1
2021-08-19T08:52:19.000Z
2021-08-19T08:52:19.000Z
data/data_utils.py
ivankreso/LDN
76740ef77fcec851f8abc2380251a9491dc0cdc3
[ "MIT" ]
1
2021-12-06T08:05:59.000Z
2021-12-06T08:05:59.000Z
import math def oversample(all_paths, per_class_split, oversample_ids, class_names): union = set() all_sum = 0 print('Oversample stats:') print('Total images before =', len(all_paths[0])) for i in oversample_ids: duplicates = 1 print(f'id = {i} -> {class_names[i]} : num of oversampled =', len(per_cla...
30.354167
90
0.680165
217
1,457
4.373272
0.313364
0.05058
0.054795
0.044257
0.103267
0
0
0
0
0
0
0.012616
0.18394
1,457
47
91
31
0.785534
0
0
0.052632
0
0
0.095402
0
0
0
0
0
0.026316
1
0.131579
false
0
0.026316
0
0.210526
0.184211
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54bbf057df21a564d7a670875ca4d351e87df738
1,181
py
Python
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_932_beautiful_array.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 932 python3 # [932] Beautiful Array # Difficulty: Medium # https://leetcode.com/problems/beautiful-array # # An array nums of length n is beautiful if: # # nums is a permutation of the integers in the range [1, n]. # For every 0 <= i < j < n, there is no index k with i < k < j where 2 * nums[k] == nums[i] + nums...
21.87037
102
0.556308
177
1,181
3.661017
0.463277
0.064815
0.033951
0.052469
0.055556
0
0
0
0
0
0
0.043902
0.305673
1,181
53
103
22.283019
0.746341
0.458933
0
0
0
0
0.039216
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54bc883a34e91f4283ceaf8207e99c37307465c6
894
py
Python
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
null
null
null
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
null
null
null
asynchronous/py27/asynchronous/producer_consumer/async_eventlet.py
fs714/concurrency-example
fbff041804b9c46fb7f21ebbae22acff745c7b0c
[ "Apache-2.0" ]
1
2020-03-10T15:47:05.000Z
2020-03-10T15:47:05.000Z
import eventlet from eventlet.green import urllib2 import logging logging.basicConfig() logger = logging.getLogger(__file__) logger.setLevel(logging.DEBUG) def consumer(task_queue): while True: next_task = task_queue.get() next_task() task_queue.task_done() class Task(object): def _...
21.285714
55
0.644295
119
894
4.546218
0.487395
0.116451
0.062847
0.062847
0.055453
0
0
0
0
0
0
0.020619
0.240492
894
41
56
21.804878
0.776141
0
0
0
0
0
0.073826
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54bd473259faa4301d10d34795bb5bf05e6048e5
32,426
py
Python
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/api/controllers/v1/controller_fs.py
etaivan/stx-config
281e1f110973f96e077645fb01f67b646fc253cc
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 UnitedStack Inc. # 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/licen...
40.481898
104
0.587923
3,616
32,426
4.97677
0.127765
0.080685
0.020004
0.01956
0.547733
0.498
0.453101
0.400144
0.371027
0.326184
0
0.004905
0.339851
32,426
800
105
40.5325
0.835794
0.112348
0
0.358929
0
0
0.124535
0.0118
0
0
0
0
0
1
0.041071
false
0
0.035714
0.001786
0.135714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54bd765684733907c0e0f4fdff1bc9c5e51272ef
1,298
py
Python
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
12
2021-12-15T06:08:28.000Z
2022-03-25T06:27:38.000Z
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
null
null
null
tests/test_label_smoothing_ce.py
waking95/easy-bert
576678343c251a134748941d1aa5e3368786337e
[ "MIT" ]
1
2022-02-10T02:59:51.000Z
2022-02-10T02:59:51.000Z
import unittest import torch from easy_bert.losses.label_smoothing_loss import LabelSmoothingCrossEntropy class MyTestCase(unittest.TestCase): def test(self): print('test~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~') lsce = LabelSmoothingCrossEntropy() ...
36.055556
101
0.523112
135
1,298
4.851852
0.340741
0.012214
0.059542
0.050382
0.377099
0.377099
0.377099
0.334351
0.268702
0.268702
0
0.027053
0.202619
1,298
35
102
37.085714
0.605797
0.094761
0
0.37037
0
0
0.224786
0.215385
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.259259
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54be3891db6fb2756f21aef061add0f576fa4d9b
747
py
Python
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
Algorithms/Sort/Merge Sort/src.py
NikhilCodes/DSA-Warehouse
f68c3c7c092dc624381e956b065f849d738b5359
[ "MIT" ]
null
null
null
""" ALGORITHM : Merge Sort WORST CASE => { PERFORMANCE: O(n log(n)) SPACE: O(n) } """ def merge_sort(arr): size = len(arr) if size == 1: return arr elif size == 2: if arr[1] > arr[0]: return [arr[0], arr[1]] mid = len(arr) // 2 lef...
20.189189
48
0.497992
103
747
3.427184
0.359223
0.127479
0.101983
0.084986
0
0
0
0
0
0
0
0.039256
0.352075
747
36
49
20.75
0.690083
0.124498
0
0
0
0
0.013115
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.190476
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54bf36b4e97ce13f93c4eda7288e2207a9d1c577
2,295
py
Python
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/dollarama.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
import scrapy from locations.items import GeojsonPointItem from urllib.parse import urlencode from scrapy.selector import Selector from locations.hours import OpeningHours Days = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] class DollaramaSpider(scrapy.Spider): name = "dollarama" item_attributes = {"brand": "D...
33.26087
83
0.547277
228
2,295
5.385965
0.504386
0.058632
0.061889
0.027687
0
0
0
0
0
0
0
0.00565
0.305882
2,295
68
84
33.75
0.765223
0
0
0
0
0
0.216993
0.036166
0
0
0
0
0
1
0.056604
false
0
0.09434
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54c063aa9c40b1e765ddd298550866419dd317e0
4,614
py
Python
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
null
null
null
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
null
null
null
faces/recognize_faces_video.py
rummens1337/vision-assignment
8735e95224be702f1bb33066eef80f098b347b1f
[ "MIT" ]
1
2020-01-06T09:55:35.000Z
2020-01-06T09:55:35.000Z
# import the necessary packages from imutils.video import VideoStream import face_recognition import imutils import pickle import time import cv2 import os # https://www.pyimagesearch.com/2018/06/18/face-recognition-with-opencv-python-and-deep-learning/ # https://www.pyimagesearch.com/2018/06/11/how-to-build-a-custom-f...
36.912
97
0.6114
629
4,614
4.45787
0.351351
0.032097
0.012839
0.012839
0.060628
0.037803
0
0
0
0
0
0.022181
0.296489
4,614
124
98
37.209677
0.841651
0.461855
0
0
0
0
0.072398
0
0
0
0.001645
0
0
1
0
false
0
0.12069
0
0.12069
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
54c067d1a064f439200439939a3af3a79e1fca5f
3,298
py
Python
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
1
2020-08-14T19:41:45.000Z
2020-08-14T19:41:45.000Z
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
pytint/machine_io.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
from pytint.interpreters import FiniteAutomaton from typing import List, Union, Dict, Iterable import collections import yaml class IncompleteMachine(Exception): def __init__(self, missing: str, machine_type: str): self.missing = missing self.machine_type = machine_type def __str__(self): ...
36.644444
109
0.608854
389
3,298
4.992288
0.241645
0.096292
0.040165
0.026262
0.100412
0.067971
0.043254
0.043254
0.043254
0
0
0.002134
0.289569
3,298
89
110
37.05618
0.826718
0.034263
0
0.076923
0
0
0.071384
0
0
0
0
0
0
1
0.061538
false
0.015385
0.061538
0.015385
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
54c4b203b6a2600da692213b5eb8857816d71318
2,203
py
Python
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
1
2021-08-12T17:16:02.000Z
2021-08-12T17:16:02.000Z
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
null
null
null
ppocr/utils/special_character.py
ZacksTsang/PaddleOCR
c716553f6f369d191b91690a81936a19173a7c33
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -* # Copyright (c) 2020 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 # # U...
43.196078
213
0.576033
341
2,203
3.612903
0.422287
0.048701
0.048701
0.058442
0
0
0
0
0
0
0
0.023132
0.23468
2,203
51
214
43.196078
0.707592
0.302769
0
0
0
0
0.142761
0.073401
0
0
0
0
0
1
0.08
false
0
0
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49a74574e4d388966ade396ad88447197a6c63e8
1,944
py
Python
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
690
2016-02-05T22:46:03.000Z
2022-03-28T18:59:49.000Z
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
190
2015-03-06T16:57:21.000Z
2022-02-02T21:56:07.000Z
dynamic_rest/datastructures.py
reinert/dynamic-rest
aaf3973f69b53ed317b9c8468942523715814fa8
[ "MIT" ]
117
2016-05-05T13:51:07.000Z
2022-02-28T18:25:56.000Z
"""This module contains custom data-structures.""" import six class TreeMap(dict): """Tree structure implemented with nested dictionaries.""" def get_paths(self): """Get all paths from the root to the leaves. For example, given a chain like `{'a':{'b':{'c':None}}}`, this method would...
29.907692
77
0.513374
236
1,944
4.199153
0.381356
0.045409
0.012109
0.032291
0
0
0
0
0
0
0
0.001685
0.389403
1,944
64
78
30.375
0.833193
0.417695
0
0.071429
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.035714
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49a855768d0faa6b5929b201dd9c0e69c1e8d0cf
1,860
py
Python
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
Sumo_programs/probablyGoodCode/Lyall's_Test_File.py
senornosketchy/ENGG1000-R2R
5c6880e81560079d22c8dbbadd9c7fdd1e585aa4
[ "MIT" ]
null
null
null
""" Created on Thu Mar 22 15:07:43 2018 @author: Tanvee First attempt at an program for the EV3 bot. The main aim of this is to develop an algorithm to search clockwise for and identify close objects, before rushing to meet them. """ print(0) from time import sleep import sys, os # Import the ev3dev specific library f...
21.882353
98
0.716667
280
1,860
4.710714
0.535714
0.015921
0.015163
0.027293
0.030326
0
0
0
0
0
0
0.022207
0.201075
1,860
84
99
22.142857
0.865411
0.36129
0
0.054054
0
0
0.049234
0
0
0
0
0
0.162162
1
0.081081
false
0
0.081081
0
0.162162
0.162162
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49a92b917ad9d386c28bdce310accefac0f211c6
2,075
py
Python
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
null
null
null
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-11-04T13:47:28.000Z
2021-11-04T13:47:28.000Z
handler_loud/chat.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-10-20T14:44:19.000Z
2021-10-20T14:44:19.000Z
from logging import getLogger from random import randrange import re from simone.handlers import Registry, exclude_private from .models import Shout # Based loosely on https://github.com/desert-planet/hayt/blob/master/scripts/loud.coffee class Loud(object): ''' Learns and repeats LOUD MESSAGES! To add n...
33.467742
88
0.578313
275
2,075
4.330909
0.476364
0.033585
0.042821
0.035264
0
0
0
0
0
0
0
0.002738
0.295904
2,075
61
89
34.016393
0.812457
0.234699
0
0
0
0
0.157521
0.016785
0
0
0
0
0
1
0.088235
false
0
0.147059
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
49a9a3178fb4042aad889e7fe746a420d38ecae5
1,013
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/web-crawler.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(|V| + |E|) # Space: O(|V|) # """ # This is HtmlParser's API interface. # You should not implement it, or speculate about its implementation # """ class HtmlParser(object): def getUrls(self, url): """ :type url: str :rtype List[str] """ pass class Solution(object): ...
25.325
69
0.515301
115
1,013
4.469565
0.478261
0.048638
0.046693
0
0
0
0
0
0
0
0
0.00156
0.367226
1,013
39
70
25.974359
0.800312
0.240869
0
0
0
0
0.011494
0
0
0
0
0
0
1
0.15
false
0.05
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49aacdd586494ba24976083e9c7c711f99d594ea
1,132
py
Python
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
data_split.py
TalSchuster/FewRel
af68f52b13977ca29808c38a54995363f76cdcad
[ "MIT" ]
null
null
null
import os import random from shutil import copyfile import json random.seed(123) ROOT_PATH = './data/' k = 5 target_path = './data/wiki_5_splits/' ''' Splits the training set to 5 folds. In each split, the held out set is used for test. ''' path = os.path.join(ROOT_PATH, 'train_wiki' + '.json') data = json.load(op...
25.155556
88
0.655477
182
1,132
3.912088
0.357143
0.067416
0.05618
0.067416
0.182584
0.182584
0.182584
0.089888
0.089888
0
0
0.007659
0.19258
1,132
44
89
25.727273
0.771335
0
0
0
0
0.034483
0.13282
0.067372
0
0
0
0
0
1
0
false
0
0.137931
0
0.137931
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49add70868769fd8f813dafc8912a925207ca004
4,011
py
Python
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
rocket.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
import math import os from curses_tools import draw_frame, get_frame_size def _limit(value, min_value, max_value): """Limit value by min_value and max_value.""" if value < min_value: return min_value if value > max_value: return max_value return value def _apply_acceleration(speed,...
31.335938
115
0.607828
546
4,011
4.298535
0.245421
0.063911
0.040903
0.015339
0.285471
0.217299
0.217299
0.172987
0.145718
0.145718
0
0.016517
0.305659
4,011
127
116
31.582677
0.822621
0.182747
0
0.195122
0
0
0.068738
0
0
0
0
0
0
1
0.073171
false
0
0.036585
0
0.170732
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49ae3d28975be04fc1299eea9d4febbbbbb376de
7,963
py
Python
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/roll.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
1
2022-03-08T22:07:50.000Z
2022-03-08T22:07:50.000Z
import secrets import asyncio from datetime import datetime, timedelta import discord from discord.ext import commands from database import DatabasePersonality, DatabaseDeck class Roll(commands.Cog): def __init__(self, bot): """Initial the cog with the bot.""" self.bot = bot #### Commands #...
41.259067
154
0.615346
1,036
7,963
4.49807
0.175676
0.05794
0.050215
0.018026
0.254721
0.165451
0.098712
0.079614
0.028755
0.015021
0
0.003828
0.278287
7,963
192
155
41.473958
0.806856
0.055256
0
0.097744
0
0.015038
0.121459
0.031267
0
0
0.001069
0
0
1
0.037594
false
0
0.045113
0
0.165414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49aebc3c829e124d35af1e1fc14ed2a19ad3ba06
9,218
py
Python
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
ATIVIDAS UF/exemplos.py
alverad-katsuro/Python
6ba3cc604fd9cde3ee012fcf17bbf6cd944e8c38
[ "MIT" ]
null
null
null
from math import log def ef_cache(): acerto = eval(input("Digite a quantidade de acertos: ")) acessos = eval(input("Digite a quantidade de acessos: ")) e = acerto / acessos return e def bit_dados(): cap = eval(input("Digite a capacidade da cache: ")) byte = eval(input("Digite a quantidade de...
43.895238
129
0.653179
1,370
9,218
4.288321
0.128467
0.03217
0.048511
0.051745
0.644596
0.558809
0.494809
0.451745
0.42434
0.408
0
0.03541
0.20959
9,218
209
130
44.105263
0.770931
0.001844
0
0.299435
0
0.022599
0.433246
0
0
0
0
0
0
1
0.090395
false
0
0.00565
0
0.129944
0.389831
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49af0bc491e51d1946b18c865a7ad51bc62f12c7
15,786
py
Python
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
66
2017-01-05T11:28:34.000Z
2022-03-04T08:42:01.000Z
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
36
2016-12-30T10:46:58.000Z
2022-01-09T22:56:10.000Z
supvisors/tests/test_mainloop.py
julien6387/supvisors
4e32bce566dec2cf9e9a213a3698178030eb869b
[ "Apache-2.0" ]
12
2017-03-04T04:53:51.000Z
2022-01-28T13:03:22.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ====================================================================== # Copyright 2017 Julien LE CLEACH # # 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 Lice...
43.607735
110
0.705752
2,171
15,786
4.893137
0.113772
0.066271
0.015062
0.014591
0.677116
0.628448
0.582886
0.533183
0.512849
0.47303
0
0.020309
0.179653
15,786
361
111
43.728532
0.8
0.173128
0
0.483333
0
0.004167
0.133535
0.051521
0
0
0
0
0.320833
1
0.075
false
0.004167
0.029167
0.004167
0.108333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49afc71691a68c9b40e3421c08e29b8368b54b60
2,815
py
Python
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
null
null
null
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
null
null
null
wolf_control/scripts/mission.py
ncsurobotics/SW8S-ROS
9f7f5811fe1a1a8d5d0de0b791ce757fcaeb5759
[ "MIT" ]
1
2022-03-30T19:12:52.000Z
2022-03-30T19:12:52.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, TransformStamped from std_msgs.msg import String from enum import Enum import tf2_ros import math class mission_states(Enum): STOP = -1 SUBMERGE = 0 MOVE_TO_GATE = 1 MOVE_THROUGH_GATE = 2 def checkTolerance(current, wanted): t...
38.040541
105
0.596448
319
2,815
5.034483
0.31348
0.072852
0.089664
0.054795
0.335616
0.212951
0.083437
0.083437
0.054795
0.054795
0
0.019874
0.320782
2,815
73
106
38.561644
0.820084
0.008881
0
0.264706
0
0
0.044118
0.009326
0
0
0
0
0
1
0.029412
false
0.014706
0.088235
0
0.205882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49b1fd488e00bd5cbf7211a994c7ac528083422a
21,956
py
Python
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
31
2020-03-05T12:27:21.000Z
2022-03-07T04:00:18.000Z
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
null
null
null
xinshuo_visualization/prob_stat_vis.py
xinshuoweng/Xinshuo_PyToolbox
ce4cf0398f24c5a611af9d94dc0bf2a9104a3716
[ "MIT" ]
12
2020-07-06T05:06:58.000Z
2021-11-18T14:43:20.000Z
# Author: Xinshuo Weng # email: xinshuo.weng@gmail.com import matplotlib.pyplot as plt, numpy as np # import seaborn as sns # from pandas import DataFrame # from sklearn.neighbors import NearestNeighbors from terminaltables import AsciiTable from collections import Counter from .private import save_vis_close_helper, ...
49.674208
269
0.660867
3,048
21,956
4.567257
0.143373
0.011134
0.016378
0.015013
0.313124
0.244595
0.203218
0.183248
0.16098
0.141656
0
0.01001
0.240117
21,956
442
270
49.674208
0.824383
0.146247
0
0.189274
0
0
0.131684
0
0
0
0
0
0.135647
1
0.015773
false
0
0.018927
0
0.050473
0.0347
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49b384eb266010cb19d2dcb98f62539f08a56ecd
2,530
py
Python
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
28
2019-03-29T13:34:57.000Z
2019-07-04T09:27:07.000Z
bin/sweep_rhoref.py
lukaselflein/sarah_folderstructure
a725271db3d8b5b28b24918b3daf0942fa04dcd8
[ "MIT" ]
null
null
null
"""Vary the rhoref parameter to find a sane value. Copyright 2019 Simulation Lab University of Freiburg Author: Lukas Elflein <elfleinl@cs.uni-freiburg.de> """ from __future__ import print_function import os import shutil #import multiprocessing #import sys import random from loop_cost_functions import calc_cost_fun...
28.75
84
0.617787
345
2,530
4.388406
0.373913
0.02642
0.015852
0.027741
0
0
0
0
0
0
0
0.026507
0.239526
2,530
87
85
29.08046
0.760395
0.231621
0
0.12963
0
0
0.123631
0
0
0
0
0
0
1
0.074074
false
0.018519
0.12963
0.018519
0.240741
0.203704
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49ba5224fd8503eb5f417c4656d1970b4252f78d
714
py
Python
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
currency_converter.py
patricianicolentan/currency-converters
e398796c99a0bb2a16fba9888baed0e289884237
[ "MIT" ]
null
null
null
# Converts user-defined currencies using Google import webbrowser, os, selenium from selenium import webdriver driver = webdriver.Firefox() headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} currencyX = input("O...
39.666667
149
0.710084
94
714
5.308511
0.691489
0.02004
0
0
0
0
0
0
0
0
0
0.042834
0.14986
714
18
150
39.666667
0.779242
0.063025
0
0
0
0.083333
0.384025
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
49bd3fd869f70ef4d24196d954aa248d999405b6
714
py
Python
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-10T13:44:15.000Z
2022-03-16T20:20:39.000Z
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
1
2021-05-17T16:11:54.000Z
2021-05-19T19:38:50.000Z
04_threading_yield.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-17T16:36:12.000Z
2022-03-18T15:07:14.000Z
import napari import time from napari._qt.qthreading import thread_worker import numpy as np # create a viewer window viewer = napari.Viewer() # https://napari.org/guides/stable/threading.html @thread_worker def loop_run(): while True: # endless loop print("Hello world", time.time()) time.sleep(0....
20.4
49
0.676471
99
714
4.79798
0.565657
0.050526
0
0
0
0
0
0
0
0
0
0.007055
0.205882
714
34
50
21
0.830688
0.240896
0
0
0
0
0.044402
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
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
49c08ac397715e801d537d9aef1fa2cc32d852d3
3,915
py
Python
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
1
2021-06-27T15:49:18.000Z
2021-06-27T15:49:18.000Z
""" This module provides a ``CompositePKModel`` which allows for basic retrieval and saving of models with composite keys. It is limited to the above tasks, and any use of the model past this is not guaranteed to work. A model with composite PK should look something like this:: from composite_pk import compos...
32.090164
89
0.614049
470
3,915
4.923404
0.319149
0.038029
0.030251
0.024633
0.15471
0.138289
0.097666
0.097666
0.097666
0.058773
0
0.001455
0.297573
3,915
121
90
32.355372
0.84
0.339719
0
0.109091
0
0
0.016783
0
0
0
0
0
0
1
0.127273
false
0
0.036364
0.018182
0.418182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49c3520395affa81361da9069657257acb15bac3
8,299
py
Python
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
import numpy as np import torch import time from scipy import optimize from scipy.stats import norm import tmac.probability_distributions as tpd import tmac.fourier as tfo def tmac_ac(red_np, green_np, optimizer='BFGS', verbose=False, truncate_freq=False): """ Implementation of the Two-channel motion artifact cor...
49.106509
156
0.662128
1,136
8,299
4.59331
0.205986
0.042162
0.049828
0.018398
0.293407
0.210042
0.161748
0.146033
0.090839
0.071292
0
0.008232
0.253525
8,299
168
157
49.39881
0.83406
0.256657
0
0
0
0
0.029649
0
0
0
0
0
0
1
0.061224
false
0
0.071429
0.020408
0.193878
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49c41f791b3306b65a7220115c0864d09f5d6134
2,166
py
Python
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T14:10:27.000Z
2020-11-23T12:46:08.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T18:57:37.000Z
2021-10-21T11:10:12.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
1
2021-12-01T08:55:28.000Z
2021-12-01T08:55:28.000Z
from arguments import get_args import numpy as np from network.models import MLP_Net from utils.utils import get_env_params import torch import os, gym """ script to watch the demo of the ESIL """ # process the inputs def process_inputs(o, g, o_mean, o_std, g_mean, g_std, args): o_clip = np.clip(o, -args.clip_obs...
40.111111
96
0.636657
308
2,166
4.227273
0.331169
0.049155
0.018433
0.02765
0.132104
0.127496
0.078341
0.033794
0
0
0
0.001834
0.244691
2,166
53
97
40.867925
0.79401
0.077562
0
0
0
0
0.062179
0
0
0
0
0
0
1
0.025
false
0
0.15
0
0.2
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49c547bb09c7eed025dfa278cd31af58e1182d17
4,397
py
Python
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
2
2019-07-18T18:35:31.000Z
2021-09-12T14:00:58.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
1
2020-04-26T04:22:26.000Z
2020-05-11T08:54:44.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
null
null
null
#utf8 from __future__ import print_function, division import subprocess import os import os.path import sys import time default_tmp_mesh_filename = '/tmp/Mesh_1.med' # salome 9.x may be too new for this script, some version released in 2018 is better # salome_app = '/media/sf_OneDrive/Salome-9.8.0/salome' salome_app =...
43.97
120
0.705254
630
4,397
4.673016
0.326984
0.030571
0.036685
0.029891
0.258832
0.236413
0.149457
0.129755
0.100543
0.100543
0
0.010854
0.182852
4,397
99
121
44.414141
0.808517
0.215147
0
0.12
0
0
0.148849
0.031459
0
0
0
0
0
1
0.12
false
0
0.08
0.013333
0.24
0.106667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49c7ae5b76fbf1b02e8d130eadfb4143e44dcc80
8,141
py
Python
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
3
2020-09-23T13:06:41.000Z
2022-01-14T10:14:20.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
65
2020-09-23T13:22:41.000Z
2022-03-17T11:02:42.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
4
2020-09-25T11:28:45.000Z
2021-11-01T12:00:13.000Z
"""Values for controlled vocabularies from ENA. Taken from - https://ena-docs.readthedocs.io/en/latest/submit/reads/webin-cli.html """ # Constants for platform definitions. LS454 = "LS454" ILLUMINA = "ILLUMINA" PACBIO_SMRT = "PACBIO_SMRT" IONTORRENT = "ION_TORRENT" CAPILLARY = "CAPILLARY" ONT = "OXFOR...
27.59661
91
0.737624
1,002
8,141
5.59481
0.217565
0.046557
0.013914
0.008562
0.377631
0.175169
0.106315
0.070282
0
0
0
0.053307
0.186586
8,141
294
92
27.690476
0.793265
0.062155
0
0
0
0
0.218703
0.003003
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
49caba94d9ddd16a821b2ba8d9ea2e815b9e25e0
1,292
py
Python
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
import board import time import random import usb_hid from adafruit_hid.mouse import Mouse from adafruit_hid.keyboard import Keyboard mouse = Mouse(usb_hid.devices) goright=True while True: #2 parts to sequence, move mostly right, then mostly left # set up for big move #longwait=random.randint(250,35...
25.84
66
0.666409
173
1,292
4.947977
0.445087
0.121495
0.035047
0.035047
0.091122
0.091122
0
0
0
0
0
0.04277
0.239938
1,292
49
67
26.367347
0.828921
0.218266
0
0.064516
0
0
0.061
0
0
0
0
0
0
1
0
false
0
0.193548
0
0.193548
0.129032
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49ce339e404139f63103f0e97e83fc72d1aded23
15,097
py
Python
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
from Bio.SeqIO import parse from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq from Bio.Alphabet import IUPAC, generic_dna from Bio import Alphabet, Entrez from Bio.SeqUtils import GC from Bio.Blast import NCBIWWW, NCBIXML from Bio import pairwise2 from Bio.pairwise2 import format_alignme...
39.111399
110
0.540703
1,594
15,097
5.018821
0.16813
0.05
0.031875
0.027
0.42175
0.392375
0.353375
0.303625
0.292
0.273
0
0.007158
0.333709
15,097
385
111
39.212987
0.78815
0.027886
0
0.353659
0
0
0.210447
0.028164
0
0
0
0
0
1
0.042683
false
0.003049
0.033537
0
0.094512
0.198171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49d5165d59fc22ca8bcab148e06413fa005d535e
2,799
py
Python
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import xlrd import csv import sys import getopt # input configuration iColDate = 0 iColTransactionType = 1 iColAmount = 3 iColDescription = 6 transactionType = 'Repayment' descriptionType = 'Interest' #output configuration outHeader = ['Datum', 'Typ', 'Wert'] outType = 'Zinsen' outDelimiter = ';' ...
29.15625
198
0.649875
323
2,799
5.575851
0.321981
0.06663
0.084398
0.039978
0.367574
0.075514
0.048862
0.048862
0.048862
0
0
0.015288
0.205431
2,799
95
199
29.463158
0.794514
0.196856
0
0.15942
0
0
0.075995
0
0
0
0
0
0
1
0.028986
false
0
0.057971
0.014493
0.101449
0.028986
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49d5fecaf1e79a501de0719400a144c921ff2ac0
1,096
py
Python
lib/python3.7/site-packages/vine/__init__.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
13
2018-03-28T23:07:01.000Z
2022-03-12T06:01:21.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
5
2018-03-28T23:07:05.000Z
2021-12-09T19:02:00.000Z
"""Promises, promises, promises.""" from __future__ import absolute_import, unicode_literals import re from collections import namedtuple from .abstract import Thenable from .promises import promise from .synchronization import barrier from .funtools import ( maybe_promise, ensure_promise, ppartial, preplace...
26.095238
68
0.699818
133
1,096
5.37594
0.548872
0.061538
0.05035
0.06993
0.181818
0.181818
0.181818
0.181818
0.181818
0
0
0.007455
0.143248
1,096
41
69
26.731707
0.753994
0.118613
0
0
0
0
0.249478
0.045929
0
0
0
0
0
1
0
false
0
0.241379
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49d6bd8f68e9b38cfe513863c74dbe676a8959d2
1,965
py
Python
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-06-18T15:26:49.000Z
2021-08-11T18:57:39.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
2
2019-08-22T20:11:46.000Z
2019-08-22T22:35:17.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-07-06T15:41:53.000Z
2021-01-27T17:59:13.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt from LLC_Membranes.timeseries.forecast_ctrw import System from LLC_Membranes.llclib import file_rw import names residues = ["GCL", "SOH"] wt = 10 path = "/home/bcoscia/Documents/Gromacs/Transport/NaGA3C11" colors = ['blue', 'red'] opacity = 1 n...
32.213115
128
0.692112
339
1,965
3.870206
0.324484
0.010671
0.033537
0.060976
0.42378
0.3125
0.193598
0.144817
0.144817
0.080793
0
0.047702
0.125191
1,965
60
129
32.75
0.715532
0.010178
0
0.08
0
0
0.074074
0.03858
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49d70088af3c73de71bed44ae91ad6608da6929f
1,275
py
Python
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
def string_to_list(string,array): x=input(string) i=1 while x[i]!=']': if x[i]!=',': j=i temp='' while x[j]!=',': if x[j]==']': break temp+=x[j] j+=1 i=j array.append(i...
24.519231
59
0.542745
196
1,275
3.387755
0.219388
0.149096
0.075301
0.105422
0.259036
0.153614
0.11747
0
0
0
0
0.032294
0.295686
1,275
52
60
24.519231
0.707127
0
0
0.12766
0
0
0.172414
0
0
0
0
0
0
1
0.021277
false
0
0
0
0.021277
0.148936
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49d77fe266bda3b95de391977fa5e234a79bc1d6
3,000
py
Python
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Added tariff Revision ID: 4dbaa3104f4 Revises: 1d6f96d1df Create Date: 2015-05-27 16:00:09.343862 """ # revision identifiers, used by Alembic. revision = '4dbaa3104f4' down_revision = '1d6f96d1df' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_name): ...
32.967033
85
0.685667
371
3,000
5.390836
0.245283
0.084
0.105
0.12
0.4585
0.404
0.334
0.2425
0.1975
0.078
0
0.020535
0.139667
3,000
90
86
33.333333
0.754359
0.095667
0
0.133333
0
0
0.213513
0.008585
0
0
0
0
0
1
0.1
false
0.033333
0.033333
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49da0b5cb2458b175611bedd60d99e1e2e8ba045
4,970
py
Python
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
#imports import os import subprocess from colorama import init,Fore, Back, Style import asyncio import urllib.parse import time from time import perf_counter init(convert=True) #vars ver = "Beta, Lots of commits going on!" ping = 0 pings = [] tempping = 0 searches = 0 base = 300 delay = 0 gotQ = "" dropTime = 0 reqTime...
37.938931
217
0.567203
659
4,970
4.546282
0.362671
0.066088
0.056409
0.042056
0.25267
0.25267
0.226636
0.166555
0.166555
0.166555
0
0.016725
0.254125
4,970
130
218
38.230769
0.740761
0.035412
0
0.3
0
0.033333
0.314943
0.013793
0
0
0
0
0
1
0.033333
false
0
0.058333
0
0.141667
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49da88047bb20d46e7f9d9dfc0e2238764393527
10,360
py
Python
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # calc_qual.py # # A program to calculate the quality factors and magnetic angle within some defined region # of an Athena++ disk using MPI # # To run: # mpirun -n [n] python calc_qual.py [options] # for [n] cores. # import numpy as np import os import sys sys.path.insert(0, '/home/per29/rds/rd...
40.948617
175
0.598359
1,506
10,360
3.946879
0.209163
0.030283
0.013122
0.017497
0.341016
0.306359
0.257402
0.210633
0.138795
0.099092
0
0.032656
0.263996
10,360
252
176
41.111111
0.746885
0.103378
0
0.102941
0
0.019608
0.181828
0.014602
0
0
0
0
0
1
0.004902
false
0
0.058824
0
0.063725
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49dbc6af92d52afcc0e8a89b6aa09a1a1c7354f4
16,726
py
Python
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
1
2017-11-23T04:18:03.000Z
2017-11-23T04:18:03.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
5
2018-08-24T11:13:29.000Z
2018-08-29T00:40:36.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
null
null
null
import ctypes import struct import time from fixate.core.common import bits from fixate.core.exceptions import InstrumentError, InstrumentNotConnected import fixate.config import fixate.core.discover def open(ftdi_description=""): """Open is the public api for the bit bang driver for discovering and opening a con...
36.679825
117
0.598589
2,092
16,726
4.489962
0.152964
0.02108
0.0346
0.045992
0.411051
0.33674
0.316193
0.274247
0.25157
0.205472
0
0.018642
0.310475
16,726
455
118
36.76044
0.795803
0.114193
0
0.22561
0
0
0.047116
0.004622
0
0
0.002208
0
0
1
0.082317
false
0.003049
0.02439
0.015244
0.338415
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49dd8d278f7b65614e35a417984b39bb22fa9ca9
5,621
py
Python
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
import unittest from nose.tools import eq_, ok_, raises from sqlalchemy import create_engine, MetaData, Column, Integer, func from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from geoalchemy2 import Geometry from sqlalchemy.exc import DataError, IntegrityError, InternalE...
29.898936
79
0.637609
683
5,621
5.061493
0.204978
0.036448
0.034712
0.02748
0.428406
0.349147
0.293318
0.252242
0.234886
0.216373
0
0.021201
0.244796
5,621
187
80
30.058824
0.793168
0.066714
0
0.395349
0
0
0.046645
0.0065
0
0
0
0
0
1
0.131783
false
0
0.124031
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49df0f9be98b9b2a452a359335aef6fd2e914b5c
940
py
Python
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- utf-8 -*- # Definition for singly-linked list with a random pointer. # class RandomListNode: # def __init__(self, x): # self.label = x # self.next = None # self.random = None class Solution: # @param head, a RandomListNode # @return a RandomListNode def ...
22.926829
58
0.554255
114
940
4.464912
0.421053
0.035363
0.039293
0
0
0
0
0
0
0
0
0.011254
0.338298
940
40
59
23.5
0.807074
0.282979
0
0.090909
0
0
0.012048
0
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e017e3c7994fdc80e6366ccb4d6c457be60b26
1,904
py
Python
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
from data_reader import Vocabulary, transform_data, save_vocabularies, Corpus from model import build_model from keras.callbacks import ModelCheckpoint def train(args): # ARGUMENTS training_file=args.data minibatch=64 max_sent_len_words=30 epochs=args.epochs corpus=Corpus(training_f...
33.403509
184
0.719538
277
1,904
4.718412
0.389892
0.036725
0.045907
0.03443
0.255547
0.172915
0.172915
0.172915
0.172915
0.172915
0
0.009938
0.154412
1,904
56
185
34
0.801863
0.028887
0
0
0
0.066667
0.221378
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e1f87f1d26cc79c1491809b52a416913e40d98
6,198
py
Python
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
1
2021-12-02T05:15:58.000Z
2021-12-02T05:15:58.000Z
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 AI Singapore # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.113772
93
0.649564
733
6,198
5.390177
0.321965
0.019489
0.015186
0.009871
0.112377
0.102759
0.087573
0.074918
0.074918
0.074918
0
0.003078
0.266054
6,198
166
94
37.337349
0.865465
0.408842
0
0.125
0
0
0.134727
0.022358
0
0
0
0
0
1
0.0625
false
0
0.1125
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e20e1482e371d2d36af2e6abc0d413c62cd098
1,119
py
Python
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
1
2019-05-18T04:34:59.000Z
2019-05-18T04:34:59.000Z
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
from .base import * # 後で確認できるよう、ファイルとして残しておく EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' # filebasedを使う場合は、メールの保存先も指定すること # '.' の場合、カレントディレクトリに保存される # EMAIL_FILE_PATH = '.' EMAIL_FILE_PATH = str(pathlib.Path(BASE_DIR).joinpath('logs')) ADMINS = [('Admin1', 'admin1@example.com')] # 開発モードでもADMI...
25.431818
66
0.570152
92
1,119
6.76087
0.576087
0.043408
0.057878
0.07074
0.109325
0.109325
0
0
0
0
0
0.003681
0.271671
1,119
44
67
25.431818
0.759509
0.151028
0
0.060606
0
0
0.433263
0.21822
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e262c808a1276127a4a16b770e3d39b6997140
7,494
py
Python
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
from dateutil.relativedelta import relativedelta from uuid import uuid4 import unittest import pytz from django.test import TestCase from django.utils.timezone import datetime from core.tests.helpers import CoreProviderMachineHelper, CoreMachineRequestHelper, CoreInstanceHelper from service.machine import process_m...
40.508108
102
0.665999
846
7,494
5.599291
0.156028
0.04391
0.070298
0.033988
0.432341
0.379143
0.322778
0.238337
0.210682
0.155373
0
0.028954
0.253403
7,494
184
103
40.728261
0.817694
0.054844
0
0.253425
0
0
0.088126
0
0
0
0
0
0.19863
1
0.061644
false
0.027397
0.054795
0
0.150685
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e3a9de96ed6a59b374bbb066c35f87db59257f
3,455
py
Python
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DeviceZoneRemote(RemoteModel): """ Zones defined on a traffic filtering device. On devices that do not natively support zones (e.g., Cisco routers), there is one zone per interface, plus an additional 'intern...
31.697248
186
0.600868
334
3,455
6.176647
0.356287
0.100824
0.041202
0.052351
0.301987
0.223946
0.150267
0.113427
0.056229
0.056229
0
0
0.304486
3,455
109
187
31.697248
0.85851
0.577713
0
0.206897
0
0
0.180272
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e502e61c40a6d5ce473d9fc363be1b2927b0ab
1,019
py
Python
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
null
null
null
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
1
2018-01-09T20:51:34.000Z
2018-01-09T20:51:34.000Z
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
null
null
null
from django.utils.timezone import now class NotHistorical(TypeError): """No related history model found.""" def get_history_model_for_model(model): """Find the history model for a given app model.""" try: manager_name = model._meta.simple_history_manager_attribute except AttributeError: ...
36.392857
68
0.677134
120
1,019
5.541667
0.45
0.108271
0.045113
0
0
0
0
0
0
0
0
0
0.22473
1,019
27
69
37.740741
0.841772
0.128557
0
0
0
0
0.079128
0
0
0
0
0
0
1
0.111111
false
0
0.055556
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
49e6d32460dd6b58678d99ca2b2edccf4f319501
1,174
py
Python
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
""" A student is taking a cryptography class and has found anagrams to be very useful. Two strings are anagrams of each other if the first string's letters can be rearranged to form the second string. In other words, both strings must contain the same exact letters in the same exact frequency. For example, bacdc an...
30.894737
83
0.70017
200
1,174
4.07
0.445
0.058968
0.029484
0.044226
0.12285
0.12285
0.12285
0.12285
0.12285
0
0
0.003375
0.24276
1,174
38
84
30.894737
0.912261
0.683135
0
0.111111
0
0
0.027397
0
0
0
0
0
0
1
0
false
0
0
0
0
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49e795b64e0b3cac7465448efafac4bd98ed4236
267
py
Python
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
2
2017-02-06T15:42:27.000Z
2021-01-14T15:13:08.000Z
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
null
null
null
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
6
2016-07-30T19:57:19.000Z
2019-08-06T03:44:54.000Z
from flask_login import LoginManager from PhoenixNow.model import User login_manager = LoginManager() login_manager.login_view = "regular.signin" @login_manager.user_loader def load_user(user_id): user = User.query.filter_by(id=user_id).first() return user
24.272727
51
0.794007
39
267
5.179487
0.538462
0.178218
0
0
0
0
0
0
0
0
0
0
0.11985
267
10
52
26.7
0.859574
0
0
0
0
0
0.052434
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49ea4f99ec3b4e468aba9dc32ef313173fda7ba3
6,995
py
Python
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
2
2020-01-23T04:01:02.000Z
2020-08-18T19:20:27.000Z
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
null
null
null
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
null
null
null
"""Unit tests for the General Linear group.""" import warnings import tests.helper as helper import geomstats.backend as gs import geomstats.tests from geomstats.geometry.general_linear import GeneralLinear RTOL = 1e-5 class TestGeneralLinear(geomstats.tests.TestCase): def setUp(self): gs.random.seed(...
32.840376
74
0.501358
815
6,995
4.195092
0.133742
0.029248
0.020181
0.131032
0.647558
0.576777
0.568002
0.513308
0.449839
0.449839
0
0.063447
0.348821
6,995
212
75
32.995283
0.687157
0.005718
0
0.5
0
0
0.000863
0
0
0
0
0
0.113636
1
0.102273
false
0
0.034091
0
0.142045
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49eb7a1d598ee46402c3d994c365fef1314082ef
454
py
Python
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) import feladatok class TestEBetukSzama6(TestCase): def test_feladat06(self): aktualis = fela...
32.428571
92
0.746696
62
454
5.370968
0.629032
0.054054
0.054054
0.096096
0
0
0
0
0
0
0
0.012953
0.14978
454
14
92
32.428571
0.849741
0
0
0
0
0
0.101099
0
0
0
0
0
0.090909
1
0.090909
false
0
0.272727
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
49ef52693c6a396a1581cc399d1886b8613380b6
1,067
py
Python
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # Convert Yosys JSON to simple text hypergraph for performance testing import sys, json node_count = 0 edge2node = {} netlist = None with open(sys.argv[1]) as jf: netlist = json.load(jf) top_module = None for name, module in sorted(netlist["modules"].items()): if "attributes" not in modul...
24.25
76
0.665417
169
1,067
4.153846
0.390533
0.064103
0.031339
0.042735
0
0
0
0
0
0
0
0.019231
0.171509
1,067
43
77
24.813953
0.774887
0.084349
0
0.151515
0
0
0.094359
0
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f13b101323835947d8e0f19cb369eece2aefcf
3,966
py
Python
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
1
2020-02-18T12:52:02.000Z
2020-02-18T12:52:02.000Z
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
null
null
null
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
null
null
null
from Tkinter import * import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.autograd as autograd from torch.autograd import Variable master = Tk() goal = 0 var_goal = StringVar() GAMMA = 0.9 last_state = Variable(torch.Tensor([0,0,0,0,0,0])).u...
28.73913
122
0.660111
570
3,966
4.461404
0.221053
0.031459
0.028313
0.023594
0.21628
0.187181
0.1337
0.10696
0.065277
0.037751
0
0.027523
0.202975
3,966
137
123
28.948905
0.776969
0.015633
0
0.038462
0
0
0.010376
0
0
0
0
0
0
1
0.067308
false
0
0.076923
0
0.173077
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f1fc4e36bfb8c6234c3e939d335df6e0c3dae5
500
py
Python
Engine/Shaders/compile_all_shader.py
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Engine/Shaders/compile_all_shader.py
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Engine/Shaders/compile_all_shader.py
yushroom/FishEngine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
import os import sys compiler = r'../Binary/RelWithDebInfo/ShaderCompiler' #compiler = r'../Binary/Debug/ShaderCompiler' shader_dirs = ['.', './Editor'] count = 0 for d in shader_dirs: for fn in os.listdir(d): print(fn) ext = fn.split('.')[-1] if ext in ['surf', 'shader']: cmd = compiler + ' ' + os.path.ab...
22.727273
62
0.624
72
500
4.305556
0.513889
0.058065
0.096774
0
0
0
0
0
0
0
0
0.009756
0.18
500
22
63
22.727273
0.746341
0.088
0
0
0
0
0.221491
0.085526
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f2ebec4bd34c27d749eb184a9d941a3fa4ea04
14,058
py
Python
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
55
2019-05-09T06:43:05.000Z
2021-12-08T05:56:43.000Z
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
5
2019-09-08T15:33:28.000Z
2021-04-17T17:30:53.000Z
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
16
2019-08-08T07:15:35.000Z
2021-12-07T15:34:41.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from rbb_swagger_server.models.base_model_ import Model from rbb_swagger_server.models.simulation_environment_detailed import SimulationEnvironmentDetailed # noqa: F40...
34.20438
413
0.660905
1,537
14,058
5.866623
0.075472
0.073195
0.175668
0.043473
0.63591
0.529888
0.480093
0.270711
0.259177
0.212266
0
0.015862
0.264547
14,058
410
414
34.287805
0.856272
0.457391
0
0.265306
0
0
0.119226
0.0103
0
0
0
0
0
1
0.190476
false
0
0.061224
0
0.353742
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f3758e9d44d3107ec62931b01722d7ad937589
5,857
py
Python
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
3
2021-05-05T23:40:39.000Z
2021-05-13T03:35:22.000Z
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
41
2021-04-27T01:48:28.000Z
2022-03-14T20:11:24.000Z
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
2
2021-07-06T18:27:19.000Z
2022-01-25T03:56:49.000Z
import docker import os import sys import pandas as pd import warnings from src.PRM import PRM from pathlib import Path from src.util import prepare_path_docker __all__ = ['PathLinker'] class PathLinker(PRM): required_inputs = ['nodetypes', 'network'] @staticmethod def generate_inputs(data, filename_map)...
42.751825
177
0.626771
717
5,857
4.983264
0.357043
0.035264
0.014274
0.009516
0.095718
0.048139
0.048139
0.048139
0.048139
0.048139
0
0.002144
0.283422
5,857
136
178
43.066176
0.849178
0.314495
0
0.121622
0
0
0.134805
0.022857
0
0
0
0
0
1
0.040541
false
0
0.108108
0
0.189189
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f40691673fa4f67fa8dd4ced6c7bd474270052
4,978
py
Python
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
1
2019-12-26T14:55:03.000Z
2019-12-26T14:55:03.000Z
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .base import Hypothesiser from ..base import Property from ..types.multihypothesis import MultipleHypothesis from ..types.prediction import (TaggedWeightedGaussianStatePrediction, WeightedGaussianStatePrediction) from ..types.state import TaggedWeightedGaussi...
45.669725
96
0.606268
427
4,978
6.978923
0.30445
0.053691
0.018456
0.008054
0.127517
0.087919
0.087919
0.087919
0.087919
0.087919
0
0.000914
0.340498
4,978
108
97
46.092593
0.906793
0.276416
0
0.133333
0
0
0.055425
0.008504
0
0
0
0
0
1
0.016667
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49f6c77afc94bafb870dc3b17a265d3485c6c64e
2,909
py
Python
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
35
2018-05-25T16:48:23.000Z
2022-03-15T14:35:07.000Z
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
3
2018-03-18T13:03:09.000Z
2020-01-17T12:09:12.000Z
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
14
2018-05-25T16:48:24.000Z
2022-01-04T12:56:31.000Z
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from sklearn.cross_validation import train_test_split import utils import glob, os import pca.dataanalyzer as da, pca.pca as pca from sklearn.metrics import accuracy_score # visulaize ...
36.822785
127
0.700928
438
2,909
4.550228
0.442922
0.035123
0.027597
0.050176
0.092323
0.080281
0.080281
0.080281
0
0
0
0.025838
0.148505
2,909
79
128
36.822785
0.778765
0.268133
0
0
0
0
0.167693
0.110848
0
0
0
0
0
1
0
false
0
0.22
0
0.22
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49fab0bf939b0f4cf2782196c0ddc5090bf9b5e5
4,508
py
Python
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
3
2020-08-30T16:11:49.000Z
2021-03-05T12:09:30.000Z
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
null
null
null
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
2
2019-07-24T15:12:31.000Z
2019-09-20T02:17:28.000Z
# -*- coding: utf-8 -*- import time import numpy as np from qulab.device import BaseDriver, QInteger, QOption, QReal, QString, QVector class Driver(BaseDriver): error_command = '*ESR?' support_models = ['AFG3102'] quants = [ QOption('Output',ch=1, set_cmd='OUTP%(ch)d %(option)s', get_...
53.035294
132
0.618234
674
4,508
4.074184
0.289318
0.032775
0.09177
0.101967
0.358339
0.304443
0.267662
0.261835
0.245812
0.22906
0
0.033804
0.166593
4,508
84
133
53.666667
0.697099
0.114685
0
0.033898
0
0
0.382175
0.060423
0
0
0
0
0
1
0.033898
false
0
0.050847
0
0.152542
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
49fc564845398fd6fccf8887fc72513069095963
1,357
py
Python
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
1
2020-12-03T02:41:07.000Z
2020-12-03T02:41:07.000Z
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
null
null
null
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn """ 输入3个句子,每个句子由5个单词构成,每个单词词向量10维 batch=3, seq_len=5, Embedding=10 """ # 设置LSTM参数,词向量维数10,隐藏元维度20,2个LSTM隐藏层,双向LSTM bilstm = nn.LSTM(input_size=10, hidden_size=20, num_layers=2, bidirectional=True) # 如下表示输入句子 input = torch.randn(5, 3, 10) # 初始化的隐藏元和记忆元,通常维度一样 ...
41.121212
106
0.740604
209
1,357
4.665072
0.30622
0.092308
0.01641
0.061538
0.289231
0.289231
0.289231
0.235897
0.235897
0.235897
0
0.05668
0.089904
1,357
32
107
42.40625
0.732794
0.496684
0
0
0
0
0.051926
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b700ba706143879736399c02f81312c27b36379e
513
py
Python
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
import nekos from ..utils import admin_cmd @borg.on(admin_cmd(pattern = "tcat$")) async def hmm(cat): if cat.fwd_from: return reactcat = nekos.textcat() await cat.edit(reactcat) @borg.on(admin_cmd(pattern = "why$")) async def hmm(cat): if cat.fwd_from: return whycat = nekos...
21.375
38
0.619883
73
513
4.260274
0.342466
0.102894
0.106109
0.135048
0.511254
0.308682
0.308682
0.308682
0.308682
0
0
0
0.247563
513
23
39
22.304348
0.805699
0
0
0.45
0
0
0.02729
0
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b700c7a198400a2306ffbc65c60b311d50ca469c
2,518
py
Python
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
7
2020-05-30T05:57:39.000Z
2022-03-05T06:09:26.000Z
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
2
2020-05-30T15:12:44.000Z
2020-10-06T12:54:41.000Z
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
1
2020-03-03T19:37:44.000Z
2020-03-03T19:37:44.000Z
import time import continuous_threading def test_thread(): class Thread(continuous_threading.Thread): def _run(self, *args, **kwargs): print('here') th = Thread() th.start() time.sleep(0.1) def test_continuous(): class CountingThread(continuous_threading.ContinuousThread): ...
25.18
106
0.608817
319
2,518
4.595611
0.30094
0.042974
0.060027
0.04502
0.225784
0.18895
0.159618
0.126876
0.126876
0.126876
0
0.019284
0.27919
2,518
99
107
25.434343
0.78843
0.142573
0
0.369231
0
0
0.052632
0
0
0
0
0
0.030769
1
0.169231
false
0
0.046154
0
0.276923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b7065834b7518e12325dc5b9284ed2b6d23d7a2b
5,221
py
Python
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
47
2016-04-21T19:51:17.000Z
2022-02-25T14:13:30.000Z
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
421
2016-04-20T18:45:24.000Z
2022-03-14T14:50:41.000Z
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
20
2016-09-10T20:25:27.000Z
2021-10-06T16:02:47.000Z
import os import sys import globus_sdk from globus_sdk.tokenstorage import SQLiteAdapter from ._old_config import invalidate_old_config # internal constants _CLIENT_DATA_CONFIG_KEY = "auth_client_data" # env vars used throughout this module GLOBUS_ENV = os.environ.get("GLOBUS_SDK_ENVIRONMENT") GLOBUS_PROFILE = os.e...
34.348684
88
0.679755
668
5,221
5.118263
0.332335
0.023399
0.0389
0.022229
0.0506
0
0
0
0
0
0
0.030235
0.23348
5,221
151
89
34.576159
0.824088
0.329822
0
0.04878
0
0
0.181234
0.084771
0
0
0
0
0
1
0.109756
false
0.012195
0.060976
0
0.280488
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b70b18ff12c786f422768e26c9e8b6e9b54e1407
2,281
py
Python
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 """Graph Optimizer Base""" import copy from .. import logging, utils class GraphOptimizerBase(object): """optimizer graph to improve performance """ def __init__(self): self._logger = logging.getLogger('.'.join(__name__.split('.')[:-1] + [self.__class__._...
29.623377
112
0.615081
277
2,281
4.790614
0.353791
0.040693
0.054258
0.036172
0.069329
0
0
0
0
0
0
0.004857
0.277948
2,281
76
113
30.013158
0.80085
0.147742
0
0.108696
0
0
0.015005
0
0
0
0
0
0
1
0.195652
false
0
0.043478
0.065217
0.369565
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
b70b7e3ec23c6100b7d22c2fc18a52d85615b5ef
3,299
py
Python
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
15
2021-11-03T04:33:22.000Z
2022-03-30T18:24:57.000Z
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
null
null
null
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
21
2021-11-03T04:34:11.000Z
2022-03-22T10:17:06.000Z
import numpy as np from pydub import AudioSegment import random import sys import io import os import glob import IPython from td_utils import * from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Model, load_model, Sequential from tensorflow.keras.layers import Dense, Activation...
34.726316
109
0.632313
469
3,299
4.362473
0.336887
0.031281
0.055718
0.025415
0.328446
0.22043
0.166178
0.166178
0.166178
0.166178
0
0.035685
0.252501
3,299
95
110
34.726316
0.792376
0.265232
0
0.169811
0
0
0.088285
0.019525
0
0
0
0
0
1
0.018868
false
0
0.283019
0
0.320755
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b70ca02982a56be8fc00bc20da13192c0eb44f5a
1,753
py
Python
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
3
2020-05-13T21:48:26.000Z
2020-10-18T14:42:00.000Z
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
null
null
null
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
1
2022-02-27T01:04:38.000Z
2022-02-27T01:04:38.000Z
# ===================================================== # Copyright (c) 2017-present, AUROMIND Ltd. # ===================================================== import os from network import NeuralNetwork from experiments import Experiment from utils import save_object, load_object # ------------------------------------...
31.872727
84
0.497433
158
1,753
5.21519
0.348101
0.050971
0.084951
0.050971
0.271845
0.235437
0.14199
0.11165
0.11165
0.11165
0
0.002994
0.237878
1,753
55
85
31.872727
0.613772
0.22818
0
0.125
0
0
0.051339
0
0
0
0
0
0
1
0.125
false
0
0.125
0.03125
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b70d32e911f44e99f8dbffab2918320edced91af
4,353
py
Python
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
6
2017-01-18T00:11:19.000Z
2022-02-10T08:18:00.000Z
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
3
2017-05-11T13:54:42.000Z
2020-08-12T06:15:43.000Z
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
4
2017-05-11T13:27:33.000Z
2019-10-29T02:02:24.000Z
#!/usr/bin/env python # # ___INFO__MARK_BEGIN__ ####################################################################################### # Copyright 2016-2021 Univa Corporation (acquired and owned by Altair Engineering Inc.) # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file e...
33.484615
172
0.574546
499
4,353
4.799599
0.39479
0.056785
0.030063
0.020042
0.107307
0.061795
0
0
0
0
0
0.012022
0.254767
4,353
129
173
33.744186
0.726264
0.348955
0
0
0
0
0.295858
0
0
0
0
0
0
1
0.012987
false
0
0.012987
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
b70d6fb35471bf494fd9d6d6d9ddbd3c3ad564bf
6,789
py
Python
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
1
2020-02-28T16:21:00.000Z
2020-02-28T16:21:00.000Z
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
null
null
null
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
2
2019-06-28T21:36:01.000Z
2019-08-19T07:55:51.000Z
#!/usr/bin/env python3 import os import sys import runpy from intelhex import IntelHex #import lz4.frame import subprocess import shutil def get_section_from_elf(elf,section_name): objdump = shutil.which('objdump') cmd = [ objdump,elf,'-h','--section='+section_name] out="" res=subprocess.run(cmd, stdou...
37.098361
162
0.627338
976
6,789
4.129098
0.190574
0.11464
0.051613
0.049132
0.253846
0.216129
0.163772
0.122581
0.092308
0.092308
0
0.022794
0.243924
6,789
182
163
37.302198
0.762322
0.092944
0
0.18705
0
0.007194
0.128239
0
0
0
0.000652
0
0.014388
1
0.021583
false
0
0.043165
0.007194
0.086331
0.100719
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b70e5693b800019c043a966f67e793acac17d9e5
3,819
py
Python
application/views/service/service.py
celerysoft/scholar-tool-manager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
null
null
null
application/views/service/service.py
celerysoft/scholar-tool-manager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
3
2019-04-29T22:55:49.000Z
2020-05-14T14:35:42.000Z
application/views/service/service.py
celerysoft/ScholarToolManager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask import make_response, Blueprint from app import derive_import_root, add_url_rules_for_blueprint from application import exception from application.model.service import Service from application.model.service_template import ServiceTemplate from application.util.database import session...
38.19
101
0.625556
418
3,819
5.449761
0.260766
0.035558
0.021071
0.023705
0.289728
0.184372
0.160667
0.122915
0.087796
0.048288
0
0.002907
0.279393
3,819
99
102
38.575758
0.824855
0.005499
0
0.157895
0
0
0.040042
0
0
0
0
0
0
1
0.065789
false
0
0.105263
0
0.263158
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b713b15110cb69ba0de9387f17cdd3a78231774b
3,736
py
Python
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
2
2022-03-30T03:07:26.000Z
2022-03-30T17:35:21.000Z
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
null
null
null
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
null
null
null
"""Exogenous parameters are anything "uncontrollable" that affect the design; these are what we consider robustness against and are typically drawn from some distribution """ from typing import Optional, Sequence, Tuple, Union import jax import jax.numpy as jnp from jax._src.prng import PRNGKeyArray import numpy as np...
35.580952
87
0.608405
475
3,736
4.696842
0.303158
0.036307
0.016136
0.02017
0.083819
0.060063
0.045719
0.045719
0.045719
0
0
0.007373
0.310225
3,736
104
88
35.923077
0.858362
0.396681
0
0
0
0
0
0
0
0
0
0
0
1
0.12
false
0
0.12
0
0.34
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b7176f2e0dac30c4e5404b6399ccd7f4159c21b1
4,955
py
Python
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
import re from courspider.faculty_calendar_resources.department import Department from courspider.faculty_calendar_resources.url import URL from courspider.course import Course class DepartmentCalendar: def __init__(self, session, url): """ Initialize a new Department Calendar for the given url ...
40.284553
795
0.618365
581
4,955
5.144578
0.263339
0.03011
0.081298
0.008364
0.252258
0.198729
0.198729
0.093677
0.093677
0.093677
0
0.007168
0.239758
4,955
122
796
40.614754
0.786302
0.268819
0
0.036364
0
0.018182
0.242993
0.225999
0
0
0
0
0
1
0.109091
false
0
0.072727
0
0.381818
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b718b1cb323c068a0fab21f464ad842ab3d200e7
2,924
py
Python
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | CastExpressionParserInfo_UnitTest.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-10-04 09:14:16 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 ...
34.4
113
0.499316
210
2,924
6.8
0.466667
0.136555
0.077031
0.091036
0.387955
0.323529
0.172269
0.172269
0.172269
0.172269
0
0.01107
0.25855
2,924
84
114
34.809524
0.647601
0.288988
0
0.416667
0
0.020833
0.08067
0
0
0
0
0
0.083333
1
0.041667
false
0
0.166667
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b71d1eb99d842362c6523cbc96a06ae382953062
1,746
py
Python
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
import collections import dataclasses import itertools @dataclasses.dataclass(frozen=True) class Point: x: int y: int @dataclasses.dataclass(frozen=True) class Segment: start: Point stop: Point @property def slope(self): dy = self.stop.y - self.start.y dx = self.stop.x - sel...
23.594595
83
0.57331
267
1,746
3.696629
0.262172
0.091185
0.06079
0.042553
0.203647
0.096251
0
0
0
0
0
0.021652
0.285796
1,746
73
84
23.917808
0.769848
0.038946
0
0.08
0
0
0.009564
0
0
0
0
0
0
1
0.1
false
0
0.06
0.02
0.34
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b71eb8d88a38241242bcf5b67fab2d3309817366
8,427
py
Python
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
import contextlib from redbot.core import commands, Config from redbot.core.utils.menus import menu, DEFAULT_CONTROLS import discord import aiohttp import random slytherin = "https://cdn.shopify.com/s/files/1/1325/3287/products/HP8040B_930f8033-607f-41ee-a8e4-fa90871ce7a7.png?v=1546231154" gryffindor = "https://cdn1...
48.154286
174
0.657411
1,017
8,427
5.325467
0.276303
0.067208
0.040805
0.05336
0.391617
0.343981
0.319055
0.183715
0.139402
0.129062
0
0.044644
0.221194
8,427
174
175
48.431034
0.780436
0.009375
0
0.172185
0
0.086093
0.302926
0
0
0
0
0
0
1
0.019868
false
0
0.039735
0
0.099338
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b721a7e3b07e02d858ee3ed05e23ae34bf1e9c54
781
py
Python
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
idadevelho=0 s=0 f=0 for p in range(1,3): print('---{}º pessoa---'.format(p)) nome=str(input('digite o {}º nome: '.format(p))).strip() idade=int(input('digite a idade da {}º pessoa: '.format(p))) peso=float(input('digite o peso da {}º pessoa: '.format(p))) sexo=str(input('sexo[M/F]: ')).upper()...
27.892857
67
0.581306
122
781
3.721311
0.393443
0.061674
0.085903
0.092511
0.070485
0
0
0
0
0
0
0.020339
0.244558
781
27
68
28.925926
0.749153
0
0
0.166667
0
0
0.262821
0
0
0
0
0
0
1
0
false
0
0
0
0
0.208333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b7243a1265f9290fb4007832856d3ae61b5b1b98
1,158
py
Python
tests/conftest.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
284
2015-01-09T12:02:28.000Z
2022-03-27T14:30:46.000Z
tests/conftest.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
799
2015-02-26T08:49:46.000Z
2022-03-31T16:09:26.000Z
tests/conftest.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
120
2015-01-30T18:00:56.000Z
2022-03-28T06:24:43.000Z
import pytest # from pytest_factoryboy import register def pytest_addoption(parser): parser.addoption( "--slow", action="store_true", default=False, help="run slow tests", ) parser.addoption( "--all", action="store_true", default=False, help="run all tests", ) def _is_connection_psql...
30.473684
78
0.636442
148
1,158
4.824324
0.351351
0.042017
0.058824
0.084034
0.42437
0.401961
0.401961
0.176471
0.176471
0.176471
0
0
0.255613
1,158
37
79
31.297297
0.828306
0.032815
0
0.172414
0
0
0.162791
0
0
0
0
0
0
1
0.103448
false
0
0.068966
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b72448ecc9aed4165b8b074fbdda6ef50c31088e
2,210
py
Python
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
null
null
null
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
null
null
null
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
1
2020-03-28T02:57:32.000Z
2020-03-28T02:57:32.000Z
import subprocess from mimetypes import MimeTypes from os import devnull, getcwd, listdir, makedirs, walk from os.path import basename, dirname, exists, isfile, join, splitext from pprint import pprint from urllib.request import pathname2url ALLOWED_AUDIO_MIMETYPES = ['audio/mpeg'] ALLOWED_IMAGE_MIMETYPES = ['image/jp...
26.95122
89
0.687783
338
2,210
4.236686
0.278107
0.050279
0.030726
0.03352
0.150838
0.124302
0.124302
0.124302
0.124302
0.124302
0
0.016049
0.182353
2,210
81
90
27.283951
0.776425
0.011312
0
0.067797
0
0
0.106276
0
0
0
0
0
0
1
0.101695
false
0
0.101695
0
0.288136
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b724c571207a17423525239296130cc889afe81a
6,169
py
Python
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
1
2019-01-22T05:36:23.000Z
2019-01-22T05:36:23.000Z
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
null
null
null
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
null
null
null
import sys import difflib import errno import json import logging import functools import os import pytest from shell import shell from diag_paranoia import diag_paranoia, filtered_overview, sanitize_errors VALIDATOR_IMAGE = "datawire/ambassador-envoy-alpine:v1.5.0-116-g7ccb25882" DIR = os.path.dirname(__file__) E...
31.635897
120
0.595396
712
6,169
5.054775
0.230337
0.033343
0.027786
0.028341
0.325924
0.261739
0.250347
0.210058
0.210058
0.158377
0
0.005711
0.261955
6,169
194
121
31.798969
0.784757
0.014913
0
0.236641
0
0
0.19482
0.025734
0
0
0
0
0.015267
1
0.038168
false
0
0.076336
0
0.137405
0.114504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b7253bf44267f3981869514c6f90cf8cf83b6b75
538
py
Python
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import googlemaps import sys import os gmaps = googlemaps.Client(key=os.environ["GOOGLE_API_KEY"]) print(gmaps) filename = sys.argv[1] with open(filename) as f: data = json.load(f) for d in data: if d.get("address") and not d.get("latitude"): result = gmaps.geocode(...
23.391304
59
0.633829
79
538
4.291139
0.556962
0.047198
0.094395
0
0
0
0
0
0
0
0
0.006977
0.200743
538
23
60
23.391304
0.781395
0.039033
0
0
0
0
0.147002
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b7262426be3d901c9e4c8163e1aff5cbb71a7660
48,109
py
Python
tardis/plasma/properties/continuum_processes.py
AlexHls/tardis
5d6e2299f35953a65e2c974994c55fe4aa3caae9
[ "BSD-3-Clause" ]
null
null
null
tardis/plasma/properties/continuum_processes.py
AlexHls/tardis
5d6e2299f35953a65e2c974994c55fe4aa3caae9
[ "BSD-3-Clause" ]
1
2020-07-20T16:45:52.000Z
2020-07-20T16:45:52.000Z
tardis/plasma/properties/continuum_processes.py
jordi5/tardis
2e1cb75c91ea842526b0c7c80a13cc8646178813
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np import pandas as pd from numba import prange, njit from tardis import constants as const from tardis.plasma.exceptions import PlasmaException from tardis.plasma.properties.base import ( ProcessingPlasmaProperty, Input, TransitionProbabilitiesProperty, ) from tardis.plasm...
33.155755
127
0.642749
5,747
48,109
5.073082
0.093788
0.031007
0.01739
0.028091
0.498577
0.402058
0.343337
0.307426
0.272303
0.220408
0
0.007025
0.266166
48,109
1,450
128
33.178621
0.818802
0.256937
0
0.301703
0
0
0.073491
0.029852
0
0
0
0.003448
0
1
0.059611
false
0
0.009732
0.002433
0.248175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b72a583373d3c6cb8d5d4af07ff2faff1162f56a
2,550
py
Python
examples/avatar_example.py
ZSD-tim/dayu_widgets
31c2530bdc4161d9311574d9850c2e9471e53072
[ "MIT" ]
157
2019-03-10T05:55:21.000Z
2022-03-31T09:07:00.000Z
examples/avatar_example.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
16
2019-07-15T11:30:53.000Z
2021-12-16T14:17:59.000Z
examples/avatar_example.py
kanbang/dayu_widgets
6ff101e6c6f8fcf10e5cb578023a12ccdcef9164
[ "MIT" ]
56
2019-06-19T03:35:27.000Z
2022-03-22T08:07:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################### # Author: Mu yanru # Date : 2019.2 # Email : muyanru345@163.com ################################################################### from dayu_widgets.avatar import MAvatar from dayu_widgets.divider import...
34.931507
87
0.59098
279
2,550
5.179211
0.376344
0.044291
0.083045
0.029066
0.077509
0
0
0
0
0
0
0.006312
0.25451
2,550
72
88
35.416667
0.753814
0.056078
0
0
0
0
0.076447
0
0
0
0
0
0
1
0.037736
false
0
0.188679
0
0.245283
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b72c5b0b453dbcbfe1f73085f19a64855959a7ec
1,254
py
Python
ch9/note9.4.py
YChanHuang/Python-for-every-body-notes
771db11ceb00341b533b4b1bf5235fb988978f65
[ "MIT" ]
null
null
null
ch9/note9.4.py
YChanHuang/Python-for-every-body-notes
771db11ceb00341b533b4b1bf5235fb988978f65
[ "MIT" ]
null
null
null
ch9/note9.4.py
YChanHuang/Python-for-every-body-notes
771db11ceb00341b533b4b1bf5235fb988978f65
[ "MIT" ]
null
null
null
#Assignment 9.4 #print('Hello World') fname = input('Enter name: ') if len(fname) < 1 : fname = 'mbox-short.txt' handle = open(fname) di = {} #create an empty dictionary for line in handle: line = line.rstrip() wds = line.split() #the second for-loop to print each word in the list for w in wds : ...
29.857143
83
0.585327
187
1,254
3.925134
0.438503
0.024523
0.016349
0.019074
0.108992
0.108992
0.108992
0.108992
0.108992
0.108992
0
0.012318
0.287879
1,254
41
84
30.585366
0.80963
0.549442
0
0
0
0
0.069159
0
0
0
0
0
0
1
0
false
0
0
0
0
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
b72f78f385c7b5879e4c81e4664cd6e4111978d3
329
py
Python
altair/vegalite/v2/examples/step_chart.py
hydrosquall/altair
ded897b0967a88a467828b1e2c133bd92862de23
[ "BSD-3-Clause" ]
null
null
null
altair/vegalite/v2/examples/step_chart.py
hydrosquall/altair
ded897b0967a88a467828b1e2c133bd92862de23
[ "BSD-3-Clause" ]
null
null
null
altair/vegalite/v2/examples/step_chart.py
hydrosquall/altair
ded897b0967a88a467828b1e2c133bd92862de23
[ "BSD-3-Clause" ]
null
null
null
""" Step Chart ----------------- This example shows Google's stock price over time. """ import altair as alt from vega_datasets import data source = data.stocks() chart = alt.Chart(source).mark_line(interpolate = 'step-after').encode( x = 'date', y = 'price' ) chart.transform = [{"filter": "datum.symbol==='...
18.277778
71
0.638298
43
329
4.837209
0.790698
0
0
0
0
0
0
0
0
0
0
0
0.158055
329
17
72
19.352941
0.750903
0.240122
0
0
0
0
0.190083
0.086777
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b73291a3b8e47fc42f8a646649597c72205d287e
1,135
py
Python
computer vision/pose_module.py
Francois-Adham/OpenCV
ccbace109086d3f4fcccc1bd9261ac336cfc49ef
[ "MIT" ]
null
null
null
computer vision/pose_module.py
Francois-Adham/OpenCV
ccbace109086d3f4fcccc1bd9261ac336cfc49ef
[ "MIT" ]
null
null
null
computer vision/pose_module.py
Francois-Adham/OpenCV
ccbace109086d3f4fcccc1bd9261ac336cfc49ef
[ "MIT" ]
null
null
null
import cv2 as cv import mediapipe as mp class PoseDetector: def __init__(self, mode=False, complexity=1, smooth=False, confidence=0.5, tracking_confidence=0.5) -> None: self.mode = mode self.complexity = complexity self.smooth = smooth self.confidence = confidence s...
33.382353
121
0.661674
143
1,135
5.048951
0.34965
0.041551
0.041551
0.088643
0.083102
0.083102
0
0
0
0
0
0.010393
0.237004
1,135
34
122
33.382353
0.823326
0
0
0
0
0
0.011444
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b732eb90f353db0b4fec7fc27c2742a5319bf251
3,012
py
Python
Irene/base.py
mghasemi/Irene
2ecf58329310a0e98d1e28d4853ddb49f0a23311
[ "MIT" ]
12
2018-10-25T19:59:22.000Z
2022-03-08T03:27:29.000Z
Irene/base.py
mghasemi/Irene
2ecf58329310a0e98d1e28d4853ddb49f0a23311
[ "MIT" ]
1
2022-03-08T03:27:36.000Z
2022-03-08T05:42:26.000Z
Irene/base.py
mghasemi/Irene
2ecf58329310a0e98d1e28d4853ddb49f0a23311
[ "MIT" ]
null
null
null
r""" This is the base module for all other objects of the package. + `LaTeX` returns a LaTeX string out of an `Irene` object. + `base` is the parent of all `Irene` objects. """ def LaTeX(obj): r""" Returns LaTeX representation of Irene's objects. """ from sympy.core.core import all_classes ...
30.734694
98
0.534197
353
3,012
4.498584
0.300283
0.040302
0.018892
0.02267
0.116499
0.049118
0.049118
0
0
0
0
0.002599
0.361222
3,012
97
99
31.051546
0.822765
0.179615
0
0.19697
0
0
0.044877
0
0
0
0
0
0
1
0.075758
false
0.015152
0.136364
0.015152
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
b7340fcc54385aec310fcaab55c9c4530b0dc98a
1,617
py
Python
basic/fasta.py
JinyuanSun/my_bio_script
ceb84e2e32c38b0889956f12c380354d23b28dc1
[ "MIT" ]
null
null
null
basic/fasta.py
JinyuanSun/my_bio_script
ceb84e2e32c38b0889956f12c380354d23b28dc1
[ "MIT" ]
null
null
null
basic/fasta.py
JinyuanSun/my_bio_script
ceb84e2e32c38b0889956f12c380354d23b28dc1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # By Jinyuan Sun def fasta2dic(fastafilename): #read a fasta file into a dict fasta_dict = {} with open(fastafilename) as fastafile: for line in fastafile: if line[0] == ">": head = line.strip() fasta_dict[head] = '' else: ...
25.666667
82
0.568336
201
1,617
4.452736
0.358209
0.070391
0.02905
0
0
0
0
0
0
0
0
0.039604
0.312925
1,617
62
83
26.080645
0.765977
0.120594
0
0.088889
0
0
0.017693
0
0
0
0
0
0
1
0.111111
false
0
0.044444
0.022222
0.244444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b73487d3a2f5ed600768a510984d20ecb9e2c8c6
10,248
py
Python
tea_client/http.py
alefnula/tea-client
976416fe00ed075394064c86c42665dcda341c17
[ "Apache-2.0" ]
1
2020-12-22T16:06:09.000Z
2020-12-22T16:06:09.000Z
tea_client/http.py
alefnula/tea-client
976416fe00ed075394064c86c42665dcda341c17
[ "Apache-2.0" ]
null
null
null
tea_client/http.py
alefnula/tea-client
976416fe00ed075394064c86c42665dcda341c17
[ "Apache-2.0" ]
null
null
null
import enum from typing import Optional, Dict import httpx from tea import serde from tea_client import errors from tea_client.models import TeaClientModel class AuthorizationMethod(enum.Enum): basic = "Basic" token = "Token" jwt = "JWT" class HttpClient: """Generic requests handler. Handles ...
32.741214
79
0.518443
1,012
10,248
5.232213
0.179842
0.047592
0.028329
0.033994
0.577526
0.542965
0.542965
0.512937
0.49254
0.454391
0
0.00635
0.400664
10,248
312
80
32.846154
0.855747
0.270492
0
0.497462
0
0
0.070915
0.007768
0
0
0
0
0
1
0.030457
false
0
0.030457
0
0.121827
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b734d2e12cf5fc6c54fb0dd62f0ce018d2ee9551
3,809
py
Python
PRPConnector/TestPRPConnector.py
manuelbieri/PRP-APIConnect
78c4772dce22686da82cdd27e246724edd5bcf0a
[ "MIT" ]
null
null
null
PRPConnector/TestPRPConnector.py
manuelbieri/PRP-APIConnect
78c4772dce22686da82cdd27e246724edd5bcf0a
[ "MIT" ]
null
null
null
PRPConnector/TestPRPConnector.py
manuelbieri/PRP-APIConnect
78c4772dce22686da82cdd27e246724edd5bcf0a
[ "MIT" ]
null
null
null
import unittest from typing import List import Connector class PRPConnectorTest(unittest.TestCase): connection: Connector.PRPConnector = Connector.PRPConnector('admin', 'adminTest', 'https://marblch.pythonanywhere.com/') def test_test_message(self): response: dict = PRPConnectorTest.connection.test_...
56.850746
159
0.719349
440
3,809
5.997727
0.127273
0.090944
0.039409
0.06366
0.697613
0.674498
0.614627
0.579765
0.502084
0.491474
0
0.009225
0.146233
3,809
66
160
57.712121
0.802276
0
0
0.37037
0
0
0.163035
0.024678
0
0
0
0
0.314815
1
0.12963
false
0
0.055556
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
b73585b3b1af0b7be3ca9e5f9af38dd53d4fa51d
1,302
py
Python
competitors/VAE.py
umarov90/DeepFake
e65c72f255817532e8a8a3afe2138ae270477601
[ "Apache-2.0" ]
3
2021-01-28T08:08:20.000Z
2021-10-30T02:15:54.000Z
competitors/VAE.py
umarov90/DeepCellState
e65c72f255817532e8a8a3afe2138ae270477601
[ "Apache-2.0" ]
null
null
null
competitors/VAE.py
umarov90/DeepCellState
e65c72f255817532e8a8a3afe2138ae270477601
[ "Apache-2.0" ]
1
2022-03-09T14:56:49.000Z
2022-03-09T14:56:49.000Z
import tensorflow as tf from tensorflow import keras class VAE(keras.Model): def __init__(self, encoder, decoder, **kwargs): super(VAE, self).__init__(**kwargs) self.encoder = encoder self.decoder = decoder self.e_count = 0 def train_step(self, data): # if isinstance(...
35.189189
101
0.612135
161
1,302
4.689441
0.354037
0.055629
0.037086
0.023841
0.063576
0.063576
0.063576
0.063576
0
0
0
0.016129
0.285714
1,302
37
102
35.189189
0.795699
0.056068
0
0.071429
0
0
0.02447
0
0
0
0
0
0
1
0.107143
false
0
0.071429
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
b73713a84bd73916c488c2d607e11c9d22b75380
6,070
py
Python
extract/read_acc.py
YutoNakayachi/jankenEstimate
64ca3b6da78c1d84204d709c0c0a398277f4dafb
[ "MIT" ]
null
null
null
extract/read_acc.py
YutoNakayachi/jankenEstimate
64ca3b6da78c1d84204d709c0c0a398277f4dafb
[ "MIT" ]
null
null
null
extract/read_acc.py
YutoNakayachi/jankenEstimate
64ca3b6da78c1d84204d709c0c0a398277f4dafb
[ "MIT" ]
null
null
null
#from https://github.com/mfurukawa/imu_sensor/tree/master/src/Python # September 03, 2020 # Yuto Nakayachi from __future__ import unicode_literals ,print_function import serial from time import sleep import numpy as np import matplotlib.pyplot as plt import io import csv import time import datetime import stru...
27.590909
257
0.549918
819
6,070
3.91453
0.269841
0.037118
0.009981
0.013724
0.157829
0.119775
0.108546
0.079226
0.073612
0.073612
0
0.108728
0.331796
6,070
220
258
27.590909
0.681706
0.16771
0
0.233333
0
0
0.081086
0
0.013333
0
0
0
0
1
0.013333
false
0
0.08
0
0.093333
0.106667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b739279244be21a77769468b2146bbedb6b82ebb
4,544
py
Python
ctemail.py
dyike/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
47
2017-10-15T08:23:55.000Z
2021-03-21T04:05:25.000Z
ctemail.py
bobo18801737494/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
null
null
null
ctemail.py
bobo18801737494/CTEmail
d94416401198393df01f143047acb1fb7c227492
[ "MIT" ]
7
2017-10-16T02:23:12.000Z
2020-07-08T13:32:28.000Z
from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.header import Header from email.mime.base import MIMEBase from email import encoders import os import uuid import smtplib import re class CTEmail(object): def __i...
34.953846
102
0.569762
517
4,544
4.916828
0.332689
0.038946
0.020456
0.023603
0
0
0
0
0
0
0
0.006435
0.316021
4,544
130
103
34.953846
0.811454
0.144586
0
0.025
0
0
0.125443
0.019362
0
0
0
0
0
1
0.0625
false
0.025
0.125
0
0.2375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b73959dcfef900a0482e8a66a74254dfbae2b5e0
3,782
py
Python
alipay/aop/api/domain/RequestExtShopItem.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/RequestExtShopItem.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/RequestExtShopItem.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class RequestExtShopItem(object): def __init__(self): self._brand_code = None self._category_code = None self._description = None self._item_code = None self._kb...
28.870229
77
0.574299
464
3,782
4.396552
0.101293
0.078431
0.058824
0.041176
0.297549
0.190686
0.043137
0.02549
0
0
0
0.000392
0.324696
3,782
130
78
29.092308
0.798356
0.011105
0
0.126126
0
0
0.093683
0
0
0
0
0
0
1
0.153153
false
0
0.018018
0.063063
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b739c6c3b975479392baa34036d389264f7e0a34
9,644
py
Python
tornado/s3server.py
suocean16/osu_study
c86da00312b16ade5d7ed4586ffbe7ffc78781a1
[ "Apache-2.0" ]
9
2015-02-04T08:45:56.000Z
2017-06-25T02:01:30.000Z
tornado/s3server.py
suocean16/osu_study
c86da00312b16ade5d7ed4586ffbe7ffc78781a1
[ "Apache-2.0" ]
null
null
null
tornado/s3server.py
suocean16/osu_study
c86da00312b16ade5d7ed4586ffbe7ffc78781a1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.671875
76
0.606595
1,162
9,644
4.931153
0.251291
0.029319
0.058639
0.017103
0.334206
0.298429
0.247644
0.220768
0.207853
0.199127
0
0.014282
0.281211
9,644
255
77
37.819608
0.81232
0.153774
0
0.257732
0
0
0.052515
0.005424
0
0
0
0
0.005155
1
0.061856
false
0
0.051546
0
0.154639
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b73c912fbef2f1e9dcedeede8d2e7747a1107d54
6,697
py
Python
multitest_transport/api/test_result_api.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
multitest_transport/api/test_result_api.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
multitest_transport/api/test_result_api.py
maksonlee/multitest_transport
9c20a48ac856307950a204854f52be7335705054
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.596273
80
0.721368
841
6,697
5.552913
0.260404
0.029979
0.023126
0.017987
0.221627
0.09743
0.061242
0
0
0
0
0.003925
0.200986
6,697
160
81
41.85625
0.86881
0.245782
0
0.14
0
0
0.045519
0.006069
0
0
0
0
0
1
0.04
false
0
0.11
0
0.23
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b740609fa3b2a0150f07fc35f914d2369bdcd573
260
py
Python
visualize_loss/loss_verification.py
entn-at/RL-LightSpeech
c8ba120216c7c3117d2e7eae2eebe726bc02d6d3
[ "MIT" ]
1
2021-09-22T01:30:05.000Z
2021-09-22T01:30:05.000Z
visualize_loss/loss_verification.py
entn-at/LightSpeech
48250fbcede4b258ba13ab17e3e83afc5fe85a01
[ "MIT" ]
null
null
null
visualize_loss/loss_verification.py
entn-at/LightSpeech
48250fbcede4b258ba13ab17e3e83afc5fe85a01
[ "MIT" ]
1
2021-09-22T01:32:06.000Z
2021-09-22T01:32:06.000Z
import numpy as np loss_arr = np.array(list()) with open("total_loss.txt", "r") as f_loss: cnt = 0 for loss in f_loss.readlines(): cnt += 1 # print(loss) loss_arr = np.append(loss_arr, float(loss)) print(cnt)
23.636364
52
0.561538
40
260
3.5
0.575
0.15
0.128571
0
0
0
0
0
0
0
0
0.011111
0.307692
260
10
53
26
0.766667
0.042308
0
0
0
0
0.063291
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0