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
f1b7cdef9de310ce5a7fb0146da43f000e1ce55f
18,861
py
Python
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
gitflow/context.py
abacusresearch/gitflow
81ea7f5d468f9b128cd593f62972f13352bd3a63
[ "MIT" ]
null
null
null
import atexit import os import re import shutil from enum import Enum from typing import List, Optional import collections from gitflow import cli, const, repotools, _, utils from gitflow.common import Result from gitflow.const import VersioningScheme from gitflow.properties import PropertyIO from gitflow.repotools i...
38.64959
117
0.564233
1,893
18,861
5.367142
0.151083
0.035827
0.022047
0.031496
0.31624
0.246752
0.204921
0.189961
0.142323
0.106201
0
0.000731
0.34733
18,861
487
118
38.728953
0.824614
0.030433
0
0.194444
0
0
0.063499
0.014713
0
0
0
0.002053
0
1
0.055556
false
0.002778
0.036111
0.022222
0.263889
0.019444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b87ee915b0b88ddd9829337e7a6f4316b55ca5
705
py
Python
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-07-08T23:16:19.000Z
2020-07-08T23:16:19.000Z
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-05-16T03:12:24.000Z
2020-05-16T03:14:42.000Z
LeetCode/1219_Path_with_Maximum_Gold/main.py
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
2
2020-05-16T03:25:16.000Z
2021-02-10T16:51:25.000Z
class Solution: def __init__(self): self.m = 0 self.n = 0 def dfs(self, y, x, grid) -> int: if y < 0 or y >= self.m or x < 0 or x >= self.n or grid[y][x] == 0: return 0 res = 0 tmpGrid = grid[y][x] grid[y][x] = 0 for y_, x_ in ((y, x - 1),...
32.045455
85
0.453901
120
705
2.6
0.233333
0.064103
0.096154
0.044872
0
0
0
0
0
0
0
0.029613
0.377305
705
22
86
32.045455
0.681093
0
0
0
0
0
0
0
0
0
0
0
0
1
0.157895
false
0
0
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b884785bf603bff438ce57a6af789de6bc8891
2,307
py
Python
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
test/test_modify_contact.py
peruana80/python_training
0070bdc07b22d80594c029984c9967e56ba51951
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from random import randrange def test_modify_contact_name(app, db, check_ui): if len(db.get_group_list()) == 0: app.contact.create(Contact(firstname="test")) old_contacts = db.get_contact_list() index = randrange(len(old_contacts)) contact = Contact(first_name...
56.268293
186
0.702211
292
2,307
5.263699
0.25
0.08458
0.063761
0.068315
0.514639
0.444372
0.405335
0.405335
0.382563
0.382563
0
0.009534
0.181621
2,307
41
187
56.268293
0.804555
0.306025
0
0.095238
0
0
0.231108
0.050378
0
0
0
0
0.142857
1
0.047619
false
0
0.095238
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b8db0ca9074a5d55378aaf5be9d198fcaa6a0b
734
py
Python
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
base.py
oknalv/linky
78fba19946e2212b10f3d1a5b27c7d9329556290
[ "MIT" ]
null
null
null
import webapp2 from webapp2_extras import sessions class BaseHandler(webapp2.RequestHandler): def dispatch(self): self.session_store = sessions.get_store(request=self.request) try: webapp2.RequestHandler.dispatch(self) finally: self.session_store.save_sessions(self.r...
29.36
69
0.647139
85
734
5.447059
0.364706
0.190065
0.103672
0.136069
0.151188
0.151188
0.151188
0
0
0
0
0.008961
0.239782
734
25
70
29.36
0.820789
0
0
0.1
0
0
0.034014
0
0
0
0
0
0
1
0.2
false
0
0.1
0.05
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1b9ea9a68748f5299174c8b988d634a02fb6fda
6,999
py
Python
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
2
2015-10-31T20:36:22.000Z
2021-10-05T12:08:10.000Z
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
null
null
null
tests/test_helpers.py
albertoalcolea/dbhelpers
c65f77a750cf46874ae7b5b0e6d4930e9df729af
[ "Apache-2.0" ]
null
null
null
import unittest try: from unittest.mock import Mock, call except ImportError: from mock import Mock, call from dbhelpers import cm_cursor, fetchiter, fetchone_nt, fetchmany_nt, fetchall_nt, fetchiter_nt class HelpersTestCase(unittest.TestCase): def test_cm_cursor(self): """ Creates a cont...
38.456044
96
0.570796
841
6,999
4.526754
0.117717
0.161545
0.085106
0.059102
0.711321
0.635671
0.563961
0.515629
0.462832
0.401103
0
0.036431
0.3019
6,999
181
97
38.668508
0.742734
0.043863
0
0.531469
0
0
0.039369
0
0
0
0
0
0.377622
1
0.055944
false
0
0.034965
0
0.097902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1baa95b451bcaf546bfb42baf9ea8122be52ea7
2,641
py
Python
scripts/joystick_node.py
kscottz/owi_arm
a08f1ed8a5bccfe8cca5a1fd1829beca15a1060f
[ "BSD-2-Clause" ]
null
null
null
scripts/joystick_node.py
kscottz/owi_arm
a08f1ed8a5bccfe8cca5a1fd1829beca15a1060f
[ "BSD-2-Clause" ]
null
null
null
scripts/joystick_node.py
kscottz/owi_arm
a08f1ed8a5bccfe8cca5a1fd1829beca15a1060f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # THIS SHEBANG IS REALLY REALLY IMPORTANT import rospy import roscpp import numpy as np from sensor_msgs.msg import Joy from std_msgs.msg import Int16MultiArray class JoystickNode(object): def __init__(self): # put away our toys cleanly rospy.on_shutdown(self.shutdown) ...
31.440476
74
0.540704
352
2,641
3.988636
0.340909
0.070513
0.017094
0.014245
0.15812
0.103989
0.061254
0
0
0
0
0.046777
0.336236
2,641
83
75
31.819277
0.754136
0.177584
0
0.125
0
0
0.037552
0
0
0
0
0
0
0
null
null
0
0.078125
null
null
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f1bc287fa4269a85fe5cdf284f15691d29943f53
650
py
Python
nomiapp/nomiapp/doctype/configuracion_isr/configuracion_isr.py
YefriTavarez/NomiApp
a532ae7a3871ee91ec6f17b4b46ba67db7a056b5
[ "MIT" ]
1
2016-12-29T13:58:28.000Z
2016-12-29T13:58:28.000Z
nomiapp/nomiapp/doctype/configuracion_isr/configuracion_isr.py
YefriTavarez/NomiApp
a532ae7a3871ee91ec6f17b4b46ba67db7a056b5
[ "MIT" ]
null
null
null
nomiapp/nomiapp/doctype/configuracion_isr/configuracion_isr.py
YefriTavarez/NomiApp
a532ae7a3871ee91ec6f17b4b46ba67db7a056b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Soldeva, SRL and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ConfiguracionISR(Document): pass @frappe.whitelist() def getRangosISR(): return frappe...
26
51
0.716923
86
650
5.337209
0.604651
0.052288
0.061002
0.074074
0.339869
0.239651
0.239651
0.239651
0.239651
0
0
0.014493
0.150769
650
25
52
26
0.817029
0.183077
0
0.235294
0
0
0.314394
0.128788
0
0
0
0
0
1
0.058824
false
0.058824
0.176471
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f1be0f593e7493f91a2f96246f4cf8a9df42b366
1,367
py
Python
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
4
2020-07-06T12:13:14.000Z
2021-07-29T12:45:27.000Z
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
62
2020-07-04T04:50:27.000Z
2021-08-19T21:06:10.000Z
electrumsv_sdk/builtin_components/electrumsv_server/local_tools.py
electrumsv/electrumsv-sdk
2d4b9474b2e2fc5518bba10684c5d5130ffb6328
[ "OML" ]
3
2021-01-21T09:22:45.000Z
2021-06-12T10:16:03.000Z
import logging import typing from electrumsv_sdk.utils import get_directory_name COMPONENT_NAME = get_directory_name(__file__) logger = logging.getLogger(COMPONENT_NAME) if typing.TYPE_CHECKING: from .electrumsv_server import Plugin class LocalTools: """helper for operating on plugin-specific state (like...
34.175
96
0.686906
168
1,367
5.261905
0.357143
0.091629
0.117647
0.126697
0.311086
0.311086
0.278281
0.154977
0
0
0
0.002825
0.223116
1,367
39
97
35.051282
0.829567
0.060717
0
0
0
0
0.096244
0
0
0
0
0
0.034483
1
0.068966
false
0
0.137931
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1be97cb28ba644933394a127fc92f299492f132
4,955
py
Python
cluster/core/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
3
2020-04-25T08:47:55.000Z
2020-11-04T11:18:21.000Z
cluster/core/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
11
2020-06-15T16:28:15.000Z
2021-11-29T17:11:07.000Z
source/include/python/http_parser.py
JarryShaw/broapt
5a6253af862cb618718d8fad69343a23ef2ac9e4
[ "BSD-3-Clause" ]
3
2019-07-24T02:41:37.000Z
2021-12-06T09:38:58.000Z
# -*- coding: utf-8 -*- # pylint: disable=all import base64 import binascii import contextlib import math import os import textwrap import time import urllib.parse from const import LOGS_PATH from logparser import parse from utils import is_nan, print_file # from utils import IPAddressJSONEncoder, is_nan, print_file ...
30.030303
128
0.594147
673
4,955
4.20951
0.210996
0.049418
0.038828
0.045182
0.340275
0.300741
0.261207
0.203318
0.203318
0.17155
0
0.007998
0.242987
4,955
164
129
30.213415
0.747267
0.134208
0
0.019608
0
0.019608
0.171368
0.070287
0
0
0
0
0
1
0.078431
false
0
0.107843
0
0.284314
0.107843
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c021de79d124febfa8a831e976cd4dc12aeed9
1,647
py
Python
src/compute_trust_values.py
johndpope/FacialRetargeting
5fb0c1da6af6c3d59aef264f567bfa7a244d0764
[ "MIT" ]
21
2020-08-19T02:52:16.000Z
2022-02-25T12:35:04.000Z
src/compute_trust_values.py
johndpope/FacialRetargeting
5fb0c1da6af6c3d59aef264f567bfa7a244d0764
[ "MIT" ]
3
2020-10-16T07:11:25.000Z
2021-06-30T10:26:04.000Z
src/compute_trust_values.py
johndpope/FacialRetargeting
5fb0c1da6af6c3d59aef264f567bfa7a244d0764
[ "MIT" ]
7
2020-08-24T08:30:53.000Z
2022-03-28T15:55:24.000Z
import numpy as np from src.compute_corr_coef import compute_corr_coef from utils.plotting import plot_similarities def compute_trust_values(dsk, do_plot=False): """ Compute trust values following formula 6 k:= number of blendshapes n:= num_features (num_markers*3) :param dsk: delta_sk vector (k...
26.564516
123
0.651488
252
1,647
4.055556
0.353175
0.093933
0.123288
0.02544
0.043053
0.043053
0.043053
0.043053
0
0
0
0.010383
0.23983
1,647
61
124
27
0.805911
0.226472
0
0
0
0
0.096035
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c16c5d4d00c03eee3d9db1e1fe2c9c3aca5189
2,042
py
Python
test/core/test_constant.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
8
2021-02-19T23:25:28.000Z
2021-09-24T20:11:13.000Z
test/core/test_constant.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
null
null
null
test/core/test_constant.py
haikusw/jaqalpaq
d507e894cb897756a1e51c99582b736254995b4e
[ "Apache-2.0" ]
null
null
null
import unittest from jaqalpaq.core.parameter import ParamType from jaqalpaq.core.constant import Constant from . import randomize from . import common class ConstantTester(unittest.TestCase): def test_valid_types(self): """Test that a Constant can only be created from valid types.""" valid_values...
37.127273
82
0.669931
244
2,042
5.393443
0.368852
0.045593
0.072948
0.091185
0.115502
0
0
0
0
0
0
0
0.246327
2,042
54
83
37.814815
0.855101
0.196866
0
0
0
0
0.004969
0
0
0
0
0
0.162162
1
0.108108
false
0
0.135135
0
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
f1c26fda7f69a42db47f3f5783c055c679831e9b
8,035
py
Python
src/richard/videos/migrations/0001_initial.py
pyvideo/richard
894f5380e07d7e66453fe730891a21aca32d8edb
[ "Apache-2.0" ]
51
2015-01-24T07:53:56.000Z
2020-08-30T12:19:39.000Z
src/richard/videos/migrations/0001_initial.py
westurner/richard
894f5380e07d7e66453fe730891a21aca32d8edb
[ "Apache-2.0" ]
34
2015-02-23T11:15:00.000Z
2016-01-04T11:25:42.000Z
src/richard/videos/migrations/0001_initial.py
westurner/richard
894f5380e07d7e66453fe730891a21aca32d8edb
[ "Apache-2.0" ]
16
2015-03-20T17:36:09.000Z
2022-01-07T01:04:17.000Z
# -*- coding: utf-8 -*- # richard -- video index system # Copyright (C) 2012, 2013, 2014, 2015 richard contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, eithe...
49.598765
191
0.571873
827
8,035
5.417171
0.247884
0.052232
0.040179
0.04933
0.566518
0.500893
0.422545
0.320089
0.227902
0.216741
0
0.014311
0.28687
8,035
161
192
49.906832
0.767539
0.093964
0
0.410072
0
0.007194
0.17541
0.012805
0
0
0
0
0
1
0
false
0
0.014388
0
0.035971
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c41c955777189a3b733180afda82b9ed458a7c
1,399
py
Python
descwl_shear_sims/tests/test_artifacts.py
LSSTDESC/descwl_shear_sims
1c696518104b7f301dd6c69571239431c6232110
[ "BSD-3-Clause" ]
null
null
null
descwl_shear_sims/tests/test_artifacts.py
LSSTDESC/descwl_shear_sims
1c696518104b7f301dd6c69571239431c6232110
[ "BSD-3-Clause" ]
11
2019-12-10T23:30:27.000Z
2019-12-24T13:59:32.000Z
descwl_shear_sims/tests/test_artifacts.py
LSSTDESC/wl-shear-testing-sims
6e4a0baa6f664b5bc52b08b55614eaa58c8b0748
[ "BSD-3-Clause" ]
null
null
null
""" copy-paste from my (beckermr) personal code here https://github.com/beckermr/metadetect-coadding-sims """ import numpy as np import galsim from descwl_shear_sims.masking import get_bmask_and_set_image from descwl_shear_sims.artifacts import ( generate_bad_columns, generate_cosmic_rays, ) def test_basic_m...
25.436364
68
0.719085
211
1,399
4.530806
0.279621
0.050209
0.112971
0.138075
0.65272
0.539749
0.539749
0.539749
0.518828
0.351464
0
0.043404
0.160114
1,399
54
69
25.907407
0.770213
0.072194
0
0.30303
0
0
0
0
0
0
0
0
0.151515
1
0.151515
false
0
0.121212
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c44279c1c78e6d3ae1d50d41837fb4c6fd7df0
2,270
py
Python
stylobate_mgmt/commands/init.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
stylobate_mgmt/commands/init.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
stylobate_mgmt/commands/init.py
digitaltembo/stylobate-mgmt
26483aab27d2496dcbd71d7de2f5780bc43a959e
[ "MIT" ]
null
null
null
from getpass import getpass import os from .utils import Command from .db import DB class Init(Command): name = 'init' description = "Initializes a new Stylobate project, forking the original" def add_args(self, parser): parser.add_argument( 'name', type=str, ...
33.382353
119
0.644934
290
2,270
4.927586
0.382759
0.06718
0.104969
0.075577
0.116165
0.06578
0
0
0
0
0
0
0.251982
2,270
67
120
33.880597
0.841578
0.065198
0
0.090909
0
0
0.293283
0.030747
0
0
0
0
0
1
0.068182
false
0.068182
0.090909
0
0.227273
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f1c47788397390c41f153d775e370f60b472f99d
628
py
Python
leetcode_submissions/7.reverse-integer.18198620.ac.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode_submissions/7.reverse-integer.18198620.ac.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode_submissions/7.reverse-integer.18198620.ac.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
1
2015-01-10T16:02:43.000Z
2015-01-10T16:02:43.000Z
#!/usr/bin/env python # Reverse Integer https://oj.leetcode.com/problems/reverse-integer/ # Reverse digits of an integer. # Example1: x = 123, return 321 # Example2: x = -123, return -321 #Math # Xilin SUN # Dec 7 2014 class Solution: # @return an integer def reverse(self, x): if x > 2147483646: ...
19.030303
68
0.593949
91
628
4.098901
0.43956
0.075067
0.072386
0.069705
0
0
0
0
0
0
0
0.164384
0.302548
628
33
69
19.030303
0.687215
0.353503
0
0.190476
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c529b5976d0a2cdf007169fc8e0ee8525206e1
1,400
py
Python
src/z3c/configurator/tests.py
zopefoundation/z3c.configurator
390416d2fa61ddf97c28e6af32eae3660bb725e2
[ "ZPL-2.1" ]
null
null
null
src/z3c/configurator/tests.py
zopefoundation/z3c.configurator
390416d2fa61ddf97c28e6af32eae3660bb725e2
[ "ZPL-2.1" ]
1
2021-01-08T15:34:08.000Z
2021-01-08T15:34:08.000Z
src/z3c/configurator/tests.py
zopefoundation/z3c.configurator
390416d2fa61ddf97c28e6af32eae3660bb725e2
[ "ZPL-2.1" ]
1
2015-04-03T05:49:32.000Z
2015-04-03T05:49:32.000Z
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
31.818182
78
0.620714
145
1,400
5.965517
0.565517
0.041619
0.03237
0.043931
0.087861
0
0
0
0
0
0
0.005988
0.165
1,400
43
79
32.55814
0.733961
0.342857
0
0
0
0
0.221629
0.12016
0
0
0
0
0
1
0.142857
false
0
0.190476
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c67bf4245b574bcd2ed4dfcba7d08e3e6e8419
174
py
Python
example.py
LucasHazardous/SkinReaper
c910cebe2aed3dd8e442515e4415f3e253e5a4ac
[ "MIT" ]
null
null
null
example.py
LucasHazardous/SkinReaper
c910cebe2aed3dd8e442515e4415f3e253e5a4ac
[ "MIT" ]
null
null
null
example.py
LucasHazardous/SkinReaper
c910cebe2aed3dd8e442515e4415f3e253e5a4ac
[ "MIT" ]
null
null
null
from skin_reaper import SkinReaper if __name__ == "__main__": r = SkinReaper() data = r.harvestLinks(5) r.setSkinPreview() r.collectRandom(data) r.kill()
21.75
34
0.666667
21
174
5.095238
0.714286
0.093458
0
0
0
0
0
0
0
0
0
0.007299
0.212644
174
8
35
21.75
0.773723
0
0
0
0
0
0.045714
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f1c6b2f9d9acd98dcef1131f691572e33395120a
528
py
Python
time_to_speech.py
besi/stereopi
c03a1ae990af67dde4e2cd832a20b49d697de230
[ "MIT" ]
2
2020-02-18T18:10:50.000Z
2020-08-04T21:00:29.000Z
time_to_speech.py
besi/stereopi
c03a1ae990af67dde4e2cd832a20b49d697de230
[ "MIT" ]
4
2020-02-19T10:46:02.000Z
2021-01-09T18:52:45.000Z
time_to_speech.py
besi/stereopi
c03a1ae990af67dde4e2cd832a20b49d697de230
[ "MIT" ]
null
null
null
# Credits go to <http://codereview.stackexchange.com/q/37522> import random import time def current_time(): '''Returns a tuple containing (hour, minute) for current local time.''' local_time = time.localtime(time.time()) return (local_time.tm_hour, local_time.tm_min) (hour, minute) = current_time() de...
22
75
0.657197
70
528
4.857143
0.514286
0.105882
0.064706
0
0
0
0
0
0
0
0
0.018824
0.195076
528
23
76
22.956522
0.781176
0.238636
0
0
0
0
0.063131
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.416667
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
f1c6e01e5913573733f519b9c5d164e6fed7195b
575
py
Python
setup.py
ckuzma/solar-viability-tester
c34d03d1914374279ca269ab402eb5074f7555a6
[ "MIT" ]
null
null
null
setup.py
ckuzma/solar-viability-tester
c34d03d1914374279ca269ab402eb5074f7555a6
[ "MIT" ]
2
2017-04-03T13:59:00.000Z
2017-04-06T04:57:50.000Z
setup.py
ckuzma/solar-viability-tester
c34d03d1914374279ca269ab402eb5074f7555a6
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='solar-viabili...
30.263158
89
0.707826
82
575
4.865854
0.621951
0.150376
0.150376
0
0
0
0
0
0
0
0
0.012658
0.175652
575
18
90
31.944444
0.829114
0.078261
0
0
0
0
0.329412
0.043137
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c78560c5fc55f8dc09c8791ab3fa9dcc1ccd67
31,028
py
Python
framework/framework.py
wbqhb/SEPC
1a5e03b70984b759b615424dc06f530d5de00f51
[ "MIT" ]
null
null
null
framework/framework.py
wbqhb/SEPC
1a5e03b70984b759b615424dc06f530d5de00f51
[ "MIT" ]
null
null
null
framework/framework.py
wbqhb/SEPC
1a5e03b70984b759b615424dc06f530d5de00f51
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/5/4 下午3:05 # @Author : godwaitup # @FileName: framework.py # original framework for joint extraction. import torch.optim as optim from torch import nn import os import data_loader import torch.nn.functional as F import numpy as np import json from functools import partial fro...
48.786164
223
0.561718
4,093
31,028
3.831664
0.071341
0.035707
0.013008
0.011222
0.629599
0.557738
0.495824
0.459351
0.423197
0.398648
0
0.015954
0.339403
31,028
635
224
48.862992
0.749183
0.040222
0
0.321586
0
0
0.02536
0
0
0
0
0
0
1
0.037445
false
0
0.022026
0
0.096916
0.004405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c88d2448c823f942e8276b943c094ce146f49b
799
py
Python
tests/settings.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
tests/settings.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
tests/settings.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
""" Settings for application when being run in the test suite. """ import os import sys # Add the directory containing this file to the search path sys.path.append(os.path.dirname(os.path.abspath(__file__))) # Import function to generate a self-signed cert dynamically from x509cert import gen_self_signed_cert DEBUG...
26.633333
70
0.787234
113
799
5.274336
0.575221
0.073826
0.07047
0.057047
0
0
0
0
0
0
0
0.008608
0.12766
799
29
71
27.551724
0.846485
0.366708
0
0
0
0
0.156187
0.05071
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1c8a2ea1e6774516b221761cec538d39be7d6c1
254
py
Python
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
learn-python/sort_with_key.py
barissimsek/gopython
7e2c1bdb20b2a908c601794ea9dbf71ea035a869
[ "Apache-2.0" ]
null
null
null
ips = [ '10.0.0.5', '10.5.3.1', '192.168.11.10', '2.2.2.2', '100.0.0.1', '20.3.2.4' ] def getKey(item): return tuple(int(part) for part in item.split('.')) def sort_ips(iplist): return sorted(ips, key=getKey) print(sort_ips(ips))
12.095238
52
0.566929
50
254
2.84
0.56
0.042254
0.042254
0
0
0
0
0
0
0
0
0.169903
0.188976
254
20
53
12.7
0.519417
0
0
0
0
0
0.215139
0
0
0
0
0
0
1
0.153846
false
0
0
0.153846
0.307692
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
1
0
0
0
1
f1c983b126df00c8a011720ca60d9fd2cfbf09df
5,330
py
Python
tbss_wm_atlas_stats.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
1
2016-02-08T18:31:36.000Z
2016-02-08T18:31:36.000Z
tbss_wm_atlas_stats.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
tbss_wm_atlas_stats.py
shanqing-cai/MRI_analysis
39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9
[ "BSD-4-Clause" ]
null
null
null
#!/usr/bin/python import os import sys import glob import argparse import tempfile import numpy as np from scipy.io import * from scipy import stats from subprocess import Popen, PIPE from scai_utils import * from get_qdec_info import get_qdec_info from read_xml_labels import read_xml_labels atlas_label_fn = \ "...
32.108434
149
0.547842
686
5,330
4.122449
0.301749
0.03819
0.019448
0.018034
0.141796
0.052334
0.052334
0.052334
0.033239
0
0
0.009509
0.289681
5,330
165
150
32.30303
0.737454
0.082927
0
0.036364
0
0.027273
0.213816
0.040913
0
0
0
0
0
0
null
null
0
0.109091
null
null
0.072727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f1cbb897fe4f7aa594e93ad56844d2bed4a73d65
1,995
py
Python
Alt_DE/psacard/psa_card/code/loadall_auction_items.py
royadityak94/Interview
40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f
[ "MIT" ]
null
null
null
Alt_DE/psacard/psa_card/code/loadall_auction_items.py
royadityak94/Interview
40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f
[ "MIT" ]
null
null
null
Alt_DE/psacard/psa_card/code/loadall_auction_items.py
royadityak94/Interview
40a7f7e2edddbb525bc6b71ea72d6cd2bda5708f
[ "MIT" ]
null
null
null
# Module to scrap all auction listings on the auction prices page from selenium import webdriver from bs4 import BeautifulSoup import csv import os # Utility to write as .csv file format def save_to_csv(data, SAVE_PATH, MODE): if not os.path.exists(SAVE_PATH.split('/')[0]): os.makedirs(SAVE_PATH.s...
37.641509
128
0.700752
264
1,995
5.07197
0.465909
0.047797
0.035848
0.04705
0.093353
0.074683
0.074683
0.074683
0.074683
0.074683
0
0.01036
0.177444
1,995
52
129
38.365385
0.805606
0.144361
0
0
0
0.027778
0.160389
0.103281
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1cbcf01c46f003c5909284f4d2d85198beda10f
96
py
Python
venv/lib/python3.8/site-packages/numpy/typing/tests/data/pass/numerictypes.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/typing/tests/data/pass/numerictypes.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/typing/tests/data/pass/numerictypes.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/7d/da/46/b543433b18dcfd975ecc18a25baa2105812baf0edc0bdbfae3890e1df2
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.34375
0
96
1
96
96
0.552083
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
f1ccaa26614fd533c6b9140b49b0a5e2c602d313
3,343
py
Python
onirim/card/_location.py
cwahbong/onirim-py
d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3
[ "MIT" ]
null
null
null
onirim/card/_location.py
cwahbong/onirim-py
d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3
[ "MIT" ]
null
null
null
onirim/card/_location.py
cwahbong/onirim-py
d1110c4280d54e3b8b2d1dcef31ee433f32cb7e3
[ "MIT" ]
null
null
null
"""Location cards.""" import logging from onirim.card._base import ColorCard from onirim import exception from onirim import util LOGGER = logging.getLogger(__name__) class LocationKind(util.AutoNumberEnum): """ Enumerated kinds of locations. Attributes: sun moon key """ ...
23.055172
80
0.606342
393
3,343
4.994911
0.284987
0.048905
0.024452
0.036679
0.172695
0.152318
0.108507
0.108507
0.108507
0.108507
0
0.003845
0.299731
3,343
144
81
23.215278
0.834686
0.211188
0
0.102941
0
0
0.019664
0
0
0
0
0.006944
0
1
0.161765
false
0.014706
0.058824
0.014706
0.397059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1ccfab0d2faebbdb592b40f848ee1bf3127a09c
4,247
py
Python
gitlabform/gitlabform/test/test_branches.py
rbartuzel/gitlabform
4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18
[ "MIT" ]
null
null
null
gitlabform/gitlabform/test/test_branches.py
rbartuzel/gitlabform
4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18
[ "MIT" ]
null
null
null
gitlabform/gitlabform/test/test_branches.py
rbartuzel/gitlabform
4027ef4d6bbbef7313ed6fcf07cef8fd1ad76d18
[ "MIT" ]
null
null
null
import pytest from gitlabform.gitlabform import GitLabForm from gitlabform.gitlabform.test import create_group, create_project_in_group, get_gitlab, create_readme_in_project, \ GROUP_NAME PROJECT_NAME = 'branches_project' GROUP_AND_PROJECT_NAME = GROUP_NAME + '/' + PROJECT_NAME @pytest.fixture(scope="module") d...
31.227941
117
0.721215
527
4,247
5.354839
0.119545
0.101347
0.090716
0.094259
0.788094
0.681786
0.614812
0.594259
0.594259
0.487597
0
0.001192
0.210031
4,247
135
118
31.459259
0.83994
0.01554
0
0.647619
0
0
0.384965
0.176442
0
0
0
0
0.133333
1
0.047619
false
0
0.028571
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1cdf2cb5f5f7dc477b7b2cf95774b2b25e88788
2,543
py
Python
bespin/layers.py
delfick/bespin
4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd
[ "MIT" ]
5
2017-04-05T00:46:41.000Z
2017-11-09T01:21:44.000Z
bespin/layers.py
delfick/bespin
4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd
[ "MIT" ]
69
2016-10-11T04:40:09.000Z
2022-01-12T23:57:27.000Z
bespin/layers.py
delfick/bespin
4fa21875f0cdc32a70b33cdc90ce5196c0a2cbcd
[ "MIT" ]
7
2016-10-11T04:32:21.000Z
2017-12-18T05:59:17.000Z
from bespin.errors import StackDepCycle class Layers(object): """ Used to order the creation of many stacks. Usage:: layers = Layers({"stack1": stack1, "stack2": "stack2, "stack3": stack3, "stack4": stack4}) layers.add_to_layers("stack3") for layer in layers.layered: #...
31.012195
98
0.563508
294
2,543
4.761905
0.306122
0.064286
0.074286
0.036429
0.06
0.06
0.06
0.06
0
0
0
0.01003
0.333464
2,543
81
99
31.395062
0.815929
0.274479
0
0.081633
0
0
0
0
0
0
0
0
0
1
0.102041
false
0
0.020408
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1ce356bd1c13f7cdfe09167b87b3a43fdb85c66
6,851
py
Python
src/pulsebox/events.py
rhosak/pulsebox
f2ce859ac5cd968bcd85a1e0eedf320414602a40
[ "MIT" ]
3
2019-02-23T23:15:48.000Z
2020-03-23T12:33:15.000Z
src/pulsebox/events.py
rhosak/pulsebox
f2ce859ac5cd968bcd85a1e0eedf320414602a40
[ "MIT" ]
null
null
null
src/pulsebox/events.py
rhosak/pulsebox
f2ce859ac5cd968bcd85a1e0eedf320414602a40
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """events.py Pulse sequence events for the Arduino Due pulsebox. Radim Hošák <hosak(at)optics.upol.cz> 2021 Quantum Optics Lab Olomouc """ from functools import reduce from pulsebox.codeblocks import state_change, loop, channel_states_to_odsr from pulsebox.config impor...
34.084577
80
0.618888
866
6,851
4.786374
0.284065
0.041013
0.010615
0.01737
0.072376
0.041978
0
0
0
0
0
0.01285
0.295723
6,851
200
81
34.255
0.846218
0.3671
0
0.198113
0
0
0.107186
0.006049
0
0
0
0.01
0
1
0.113208
false
0
0.028302
0.028302
0.254717
0.009434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1d17c8b8c557bcd6739e64fad4920995078f733
160
py
Python
7KYU/words_to_sentence.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
7KYU/words_to_sentence.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
7KYU/words_to_sentence.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
def words_to_sentence(words: list) -> str: """ This function create a string from a list of strings, separated by space. """ return ' '.join(words)
40
85
0.6625
23
160
4.521739
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.21875
160
4
86
40
0.832
0.45625
0
0
0
0
0.0125
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
f1d2400def017bc7e08b7a2881ecb907828aa29c
1,839
py
Python
saber/postprocessing/blob_detect/blob_detect.py
elenimath/saber
71acab9798cf3aee1c4d64b09453e5234f8fdf1e
[ "Apache-2.0" ]
12
2018-05-14T17:43:18.000Z
2021-11-16T04:03:33.000Z
saber/postprocessing/blob_detect/blob_detect.py
elenimath/saber
71acab9798cf3aee1c4d64b09453e5234f8fdf1e
[ "Apache-2.0" ]
34
2019-05-06T19:13:36.000Z
2021-05-06T19:12:35.000Z
saber/postprocessing/blob_detect/blob_detect.py
elenimath/saber
71acab9798cf3aee1c4d64b09453e5234f8fdf1e
[ "Apache-2.0" ]
3
2019-10-08T17:42:17.000Z
2021-07-28T05:52:02.000Z
# Copyright 2020 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
34.055556
86
0.707993
259
1,839
4.92278
0.486486
0.047059
0.053333
0.025098
0.064314
0.064314
0.064314
0.064314
0.064314
0
0
0.006676
0.185427
1,839
53
87
34.698113
0.844459
0.32137
0
0.064516
0
0
0.13047
0
0
0
0
0
0
1
0.096774
false
0
0.096774
0
0.258065
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1d2cd28a494d8ac54d14b248cb64af3757ff63c
3,291
py
Python
tests/test_analyzer.py
kozajaku/spectra-analyzer
00de0d89fc4f210dca05249a2e823c6c49f3e917
[ "MIT" ]
null
null
null
tests/test_analyzer.py
kozajaku/spectra-analyzer
00de0d89fc4f210dca05249a2e823c6c49f3e917
[ "MIT" ]
null
null
null
tests/test_analyzer.py
kozajaku/spectra-analyzer
00de0d89fc4f210dca05249a2e823c6c49f3e917
[ "MIT" ]
null
null
null
import pytest import os from tests import test_analyzer from spectra_analyzer import analyzer def file_ref(name): """Helper function for getting paths to testing spectra.""" file = os.path.join(os.path.dirname(test_analyzer.__file__), "test_analyzer", name) return file def normal...
31.644231
96
0.696141
440
3,291
5.027273
0.231818
0.189873
0.170886
0.09358
0.452984
0.395118
0.298825
0.298825
0.237794
0.195298
0
0.027937
0.206016
3,291
103
97
31.951456
0.818599
0.170465
0
0.306667
0
0
0.041372
0
0
0
0
0
0.426667
1
0.12
false
0
0.053333
0
0.226667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
f1d3dc26cb6e1253349d57f3b6bf5b06931d5da6
774
py
Python
forms_app/views.py
sudee404/forms_project
ba60e41d13d72c80f412a7928e32000db200ea17
[ "Apache-2.0" ]
null
null
null
forms_app/views.py
sudee404/forms_project
ba60e41d13d72c80f412a7928e32000db200ea17
[ "Apache-2.0" ]
null
null
null
forms_app/views.py
sudee404/forms_project
ba60e41d13d72c80f412a7928e32000db200ea17
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from .models import User from . import forms # Create your views here. def index(request): context = { 'django':'The Web Framework for Developers with a deadline' } return render(request,'index.html', context=context) def signup(request): sign_up = forms.User...
26.689655
67
0.639535
96
774
5.083333
0.479167
0.061475
0.116803
0.077869
0
0
0
0
0
0
0
0
0.241602
774
29
68
26.689655
0.831346
0.029716
0
0.08
0
0
0.14
0
0
0
0
0
0
1
0.12
false
0
0.12
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
f1d3eb9d9dab05a31381c38ed24576dd96752996
920
py
Python
python_submitty_utils/tests/test_string_utils.py
zeez2030/Submitty
7118944ff4adc6f15d76984eb10a1e862926d724
[ "BSD-3-Clause" ]
411
2016-06-14T20:52:25.000Z
2022-03-31T21:20:25.000Z
python_submitty_utils/tests/test_string_utils.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
5,730
2016-05-23T21:04:32.000Z
2022-03-31T10:08:06.000Z
python_submitty_utils/tests/test_string_utils.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
423
2016-09-22T21:11:30.000Z
2022-03-29T18:55:28.000Z
import unittest from submitty_utils import string_utils class TestUser(unittest.TestCase): def testNegativeLength(self): self.assertEqual(string_utils.generate_random_string(-1), '') def testZeroLength(self): self.assertEqual(string_utils.generate_random_string(0), '') def testPositiveL...
36.8
117
0.742391
110
920
5.863636
0.354545
0.170543
0.265116
0.348837
0.609302
0.609302
0.389147
0.313178
0
0
0
0.031169
0.163043
920
24
118
38.333333
0.806494
0.056522
0
0
1
0
0.009238
0
0
0
0
0
0.375
1
0.25
false
0
0.125
0
0.4375
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
f1d87b5f62ca7da3adff2398d764af03ea29ed10
486
py
Python
simple/file.py
asafonov/simple-backup
4e90162cb10219537da42c57d49f8f2409ba7148
[ "MIT" ]
null
null
null
simple/file.py
asafonov/simple-backup
4e90162cb10219537da42c57d49f8f2409ba7148
[ "MIT" ]
null
null
null
simple/file.py
asafonov/simple-backup
4e90162cb10219537da42c57d49f8f2409ba7148
[ "MIT" ]
null
null
null
import os class FileHandler: def __init__(self): self.directory = os.path.expanduser('~') + '/.simple_backup' if not os.path.exists(self.directory): os.mkdir(self.directory) def save (self, filename, data): f = open(self.directory + '/' + filename, 'w') f.write(da...
23.142857
68
0.549383
57
486
4.596491
0.473684
0.248092
0.114504
0.137405
0.198473
0
0
0
0
0
0
0
0.304527
486
20
69
24.3
0.775148
0
0
0.133333
0
0
0.039095
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.4
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f1d9fe63dcda29a6aafbbbb348278fbcaa1eb8c3
3,449
py
Python
metrics.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
metrics.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
metrics.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
import os import argparse import logging import numpy as np import SimpleITK as sitk logging.basicConfig(level=logging.INFO) from tqdm import tqdm import cv2 import sys from PIL import Image from sklearn import metrics def Accuracy(y_true, y_pred): TP = np.sum(np.logical_and(y_pred == 255, y_true == 255)) TN =...
35.556701
114
0.643665
551
3,449
3.854809
0.199637
0.051789
0.046139
0.092279
0.366761
0.319209
0.269303
0.269303
0.269303
0.231638
0
0.02462
0.199188
3,449
96
115
35.927083
0.744388
0.039722
0
0.155844
0
0
0.082022
0.019673
0
0
0
0
0
1
0.077922
false
0
0.12987
0
0.272727
0.064935
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1db626c6c51f4c9710e0e6d1e887229859a9043
2,757
py
Python
src/app/parser/parser.py
IliaValov/SofiaAirPurity
71d0b005a9f8f5bfabfae99d1f4f8e1d11825adf
[ "MIT" ]
null
null
null
src/app/parser/parser.py
IliaValov/SofiaAirPurity
71d0b005a9f8f5bfabfae99d1f4f8e1d11825adf
[ "MIT" ]
1
2021-12-02T23:20:51.000Z
2021-12-02T23:20:51.000Z
src/app/parser/parser.py
IliaValov/SofiaAirPurity
71d0b005a9f8f5bfabfae99d1f4f8e1d11825adf
[ "MIT" ]
1
2022-01-10T15:18:27.000Z
2022-01-10T15:18:27.000Z
from app.models.enums.station import Station class Parser: def __init__(self, data): self.data = data def getDataByStation(self, station): airDataForStation = {"timeSet": [], "level": [], "airType": [], "invalid": []} for d in self.data: if int(d.station) == station: ...
50.127273
132
0.602466
260
2,757
6.373077
0.142308
0.063368
0.033193
0.039228
0.757393
0.757393
0.757393
0.757393
0.757393
0.757393
0
0
0.256801
2,757
54
133
51.055556
0.808687
0
0
0.666667
0
0
0.089227
0
0
0
0
0
0
1
0.125
false
0
0.020833
0
0.270833
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f1dc37b00019bdcd4fd7800d93e149be0dfe2bdf
11,747
py
Python
synapse/tools/storm.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
216
2017-01-17T18:52:50.000Z
2022-03-31T18:44:49.000Z
synapse/tools/storm.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
2,189
2017-01-17T22:31:48.000Z
2022-03-31T20:41:45.000Z
synapse/tools/storm.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
44
2017-01-17T16:50:57.000Z
2022-03-16T18:35:52.000Z
import os import sys import copy import asyncio import logging import argparse import synapse.exc as s_exc import synapse.common as s_common import synapse.telepath as s_telepath import synapse.lib.cli as s_cli import synapse.lib.cmd as s_cmd import synapse.lib.node as s_node import synapse.lib.time as s_time import ...
29.589421
125
0.556823
1,397
11,747
4.600573
0.212598
0.034231
0.029096
0.014003
0.170842
0.137078
0.137078
0.129298
0.118718
0.118718
0
0.016973
0.327914
11,747
396
126
29.664141
0.797087
0.07338
0
0.164659
0
0
0.132979
0.001957
0
0
0
0
0
1
0.040161
false
0
0.064257
0
0.216867
0.144578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1dcbdb70b490e3b7a9741698dbd0c921ce6d7ff
374
py
Python
Feature Selection/variance-thresholding-binary-features.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
null
null
null
Feature Selection/variance-thresholding-binary-features.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
null
null
null
Feature Selection/variance-thresholding-binary-features.py
WyckliffeAluga/data-chronicles
5219fe9cdbafb9fd7be88727483952c4c13f2790
[ "MIT" ]
1
2021-02-09T12:22:55.000Z
2021-02-09T12:22:55.000Z
from sklearn.feature_selection import VarianceThreshold # Create feature matrix with: # Feature 0: 80% class 0 # Feature 1: 80% class 1 # Feature 2: 60% class 0, 40% class 1 X = [[0, 1, 0], [0, 1, 1], [0, 1, 0], [0, 1, 1], [1, 0, 0]] # Run threshold by variance thresholder = VarianceThreshold(thre...
23.375
60
0.628342
58
374
4.017241
0.431034
0.034335
0.038627
0.034335
0.051502
0.051502
0
0
0
0
0
0.119863
0.219251
374
15
61
24.933333
0.678082
0.360963
0
0.25
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1dd06b091ae6fa97dc90f3e28bc1d5770af8082
1,677
py
Python
scripts/03_BuildLITypeModels/14_TrainLemmaModel.py
danielplatt/LemmInflect
7db0633098409800fbe7056bdab7d6f5f144cebb
[ "MIT" ]
157
2019-05-11T21:17:20.000Z
2022-03-21T12:05:12.000Z
scripts/03_BuildLITypeModels/14_TrainLemmaModel.py
danielplatt/LemmInflect
7db0633098409800fbe7056bdab7d6f5f144cebb
[ "MIT" ]
10
2019-05-14T19:49:04.000Z
2021-06-03T13:15:16.000Z
scripts/03_BuildLITypeModels/14_TrainLemmaModel.py
danielplatt/LemmInflect
7db0633098409800fbe7056bdab7d6f5f144cebb
[ "MIT" ]
20
2019-08-21T12:40:51.000Z
2021-10-02T15:06:07.000Z
#!/usr/bin/python3 import sys sys.path.insert(0, '../..') # make '..' first in the lib search path import gzip import numpy from lemminflect.kmodels.ModelLemma import ModelLemma from lemminflect.kmodels.ModelLemmaInData import ModelLemmaInData from lemminflect.kmodels.ModelLemmaClasses import ModelLemm...
31.641509
75
0.690519
203
1,677
5.551724
0.394089
0.053239
0.056788
0.031943
0.035492
0
0
0
0
0
0
0.007468
0.20155
1,677
52
76
32.25
0.834205
0.097794
0
0.05
0
0
0.06503
0
0
0
0
0
0
1
0
false
0
0.175
0
0.175
0.225
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1dd06cdb53d42d5c3f71ef66179e31f525e4e55
9,006
py
Python
python/snips_nlu_parsers/builtin_entities.py
f-laurens/snips-nlu-parsers
82d24c0b4258acd1191af5d558b7592a18f2dada
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2019-04-17T15:10:39.000Z
2022-02-14T09:38:47.000Z
python/snips_nlu_parsers/builtin_entities.py
f-laurens/snips-nlu-parsers
82d24c0b4258acd1191af5d558b7592a18f2dada
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2019-04-07T19:36:24.000Z
2020-05-28T12:46:37.000Z
python/snips_nlu_parsers/builtin_entities.py
f-laurens/snips-nlu-parsers
82d24c0b4258acd1191af5d558b7592a18f2dada
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
43
2019-04-20T07:31:57.000Z
2022-01-12T16:24:13.000Z
# coding=utf-8 from __future__ import (absolute_import, division, print_function, unicode_literals) import json from _ctypes import byref, pointer from builtins import range, str from ctypes import c_char_p, string_at from snips_nlu_parsers.utils import (CStringArray, check_ffi_error, lib, ...
40.751131
87
0.67777
1,069
9,006
5.379794
0.1029
0.053208
0.028691
0.029734
0.623022
0.58216
0.532603
0.50113
0.482351
0.435055
0
0.003106
0.249167
9,006
220
88
40.936364
0.847382
0.108039
0
0.293333
0
0
0.098116
0.002655
0
0
0
0
0
1
0.073333
false
0
0.04
0
0.186667
0.006667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1decafed3dd9912b1ab456a5f7d5b245e48033e
521
py
Python
picoctf-2019/got/shellcode.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
9
2021-04-20T15:28:36.000Z
2022-03-08T19:53:48.000Z
picoctf-2019/got/shellcode.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
null
null
null
picoctf-2019/got/shellcode.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
6
2021-06-24T03:25:21.000Z
2022-02-20T21:44:52.000Z
import os;os.environ['TMPDIR'] = os.path.join(os.environ['HOME'], 'tmp') import pwn remote_binary = "/problems/got_5_c5119617c90aa544a639812dbc41e24e/vuln" def segfault(): try: pr = pwn.process(remote_binary) elf = pwn.ELF(remote_binary, False) print(elf.got) pr.sendlineafter("Inpu...
27.421053
72
0.629559
68
521
4.75
0.573529
0.111455
0.123839
0
0
0
0
0
0
0
0
0.06068
0.209213
521
18
73
28.944444
0.723301
0
0
0
0
0
0.195777
0.101727
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e15b839857a50eb242db9bce20dc2231b79a03
9,518
py
Python
miscellaneous/utils.py
tingyuansen/Weak_Lensing
f8f0833345687648c467b4dea7074d9596c81c14
[ "MIT" ]
null
null
null
miscellaneous/utils.py
tingyuansen/Weak_Lensing
f8f0833345687648c467b4dea7074d9596c81c14
[ "MIT" ]
null
null
null
miscellaneous/utils.py
tingyuansen/Weak_Lensing
f8f0833345687648c467b4dea7074d9596c81c14
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # *Author: Dezso Ribli* """ Util functions for training CNN on weak lesnsing maps. Mostly data loaders and data generators with some additional functionality. """ import numpy as np # https://github.com/IntelPython/mkl_fft/issues/11 #np.fft.restore_all() import cv2 import math...
37.179688
87
0.604434
1,433
9,518
3.796232
0.18702
0.023162
0.020588
0.039706
0.332537
0.309007
0.281066
0.263603
0.252206
0.225
0
0.014335
0.267073
9,518
255
88
37.32549
0.765482
0.165161
0
0.152439
0
0
0.090136
0.021375
0
0
0
0
0.018293
1
0.091463
false
0
0.02439
0
0.207317
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e232b6730dde2945dc690b0f6fddabcc0f6b8b
4,683
py
Python
bert/utils/common.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
bert/utils/common.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
bert/utils/common.py
rschoon/bert
5aeb394dd7c1fcf5995d2f7cd6a25ef3ac81ce13
[ "MIT" ]
null
null
null
import hashlib import io import json import os import re import struct def decode_bin(s, encoding=None): if encoding is None: encoding = "utf-8" if encoding in ("bin", "binary", "bytes", "raw"): return s return s.decode(encoding) class open_output(object): def __init__(self, filename,...
23.771574
74
0.558189
599
4,683
4.230384
0.263773
0.04341
0.044199
0.023678
0.136938
0.066298
0.050513
0.028414
0
0
0
0.006283
0.320308
4,683
196
75
23.892857
0.789821
0
0
0.143791
0
0
0.035028
0
0
0
0
0
0
1
0.196078
false
0.006536
0.039216
0.071895
0.424837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e2aa05c0131a4119034421ecbeb1cb9810d8c8
2,080
py
Python
boaphys/elements.py
janpipek/boaphys
f32d972e22ebede2f24bf69506125b7c59a4c8c0
[ "MIT" ]
null
null
null
boaphys/elements.py
janpipek/boaphys
f32d972e22ebede2f24bf69506125b7c59a4c8c0
[ "MIT" ]
null
null
null
boaphys/elements.py
janpipek/boaphys
f32d972e22ebede2f24bf69506125b7c59a4c8c0
[ "MIT" ]
null
null
null
class Element: def __init__(self, name : str, symbol : str, Z : int): self.name = name self.symbol = symbol self.Z = Z def __repr__(self): return "Element(\"{0}\", Z={1})".format(self.name, self.Z) def __str__(self): return self.symbol ...
27.012987
93
0.516827
242
2,080
4.247934
0.227273
0.074903
0.046693
0.062257
0.194553
0.134241
0.134241
0.134241
0.134241
0.134241
0
0.006792
0.362981
2,080
77
94
27.012987
0.769057
0.009135
0
0.152542
0
0
0.029669
0
0
0
0
0
0
1
0.220339
false
0
0
0.101695
0.508475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f1e338fa1474985107d12ea6bcd66b88abed94fc
2,924
py
Python
projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
100
2021-10-04T09:32:04.000Z
2022-03-30T11:23:53.000Z
projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
208
2021-10-04T16:56:40.000Z
2022-03-31T10:41:44.000Z
projects/vdk-plugins/airflow-provider-vdk/tests/hooks/test_vdkhook.py
vmware/versatile-data-kit
c4e10324a4f3203c58079cb18203880f68053f15
[ "Apache-2.0" ]
14
2021-10-11T14:15:13.000Z
2022-03-11T13:39:17.000Z
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 import logging import unittest from unittest import mock from vdk.plugin.control_api_auth.authentication import Authentication from vdk_provider.hooks.vdk import VDKHook log = logging.getLogger(__name__) # Monkey-patch the authentication logic to a...
38.986667
129
0.703146
398
2,924
4.824121
0.253769
0.05625
0.046875
0.06875
0.544271
0.524479
0.524479
0.524479
0.489063
0.459896
0
0.011227
0.177497
2,924
74
130
39.513514
0.78711
0.051642
0
0.173077
0
0.057692
0.332009
0.136199
0
0
0
0
0.076923
1
0.115385
false
0
0.096154
0.019231
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e3adf84f989f48fb009dcc9e422f44d758219c
720
py
Python
skater/util/logger.py
RPUTHUMA/Skater
317460b88065b41eebe6790e9efdbb0595cbe450
[ "UPL-1.0" ]
718
2017-05-19T22:49:40.000Z
2019-03-27T06:40:54.000Z
skater/util/logger.py
quant1729/Skater
b46a4abe3465ddc7b19ffc762ad45d1414b060a6
[ "UPL-1.0" ]
114
2017-05-24T16:55:59.000Z
2019-03-27T12:48:18.000Z
skater/util/logger.py
quant1729/Skater
b46a4abe3465ddc7b19ffc762ad45d1414b060a6
[ "UPL-1.0" ]
121
2017-05-22T17:20:19.000Z
2019-03-21T15:06:19.000Z
"""Funcs for logging""" import logging _CRITICAL = logging.CRITICAL _ERROR = logging.ERROR _WARNING = logging.WARNING _INFO = logging.INFO _DEBUG = logging.DEBUG _NOTSET = logging.NOTSET def build_logger(log_level, logger_name, capture_warning=True): logger = logging.Logger(logger_name) # All warnings are ...
24
63
0.740278
84
720
6.107143
0.452381
0.101365
0.097466
0.109162
0.14425
0
0
0
0
0
0
0
0.163889
720
29
64
24.827586
0.852159
0.073611
0
0.105263
0
0
0.078669
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e59d1d38ade7999a6cd5e7982c060b5e15cc11
575
py
Python
algorithms/code/leetcode/lc217_contains_duplicate/lc217_contains_duplicate.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
null
null
null
algorithms/code/leetcode/lc217_contains_duplicate/lc217_contains_duplicate.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
1
2022-02-16T11:28:56.000Z
2022-02-16T11:28:56.000Z
algorithms/code/leetcode/lc217_contains_duplicate/lc217_contains_duplicate.py
altermarkive/training
6a13f5b2f466156ad5db0e25da0e601d2404b4c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # https://leetcode.com/problems/contains-duplicate/ import unittest from typing import List class Solution: def containsDuplicate(self, nums: List[int]) -> bool: seen = set() for num in nums: if num in seen: return True seen.add(num)...
23
71
0.626087
76
575
4.631579
0.552632
0.022727
0.034091
0.051136
0.232955
0
0
0
0
0
0
0.044393
0.255652
575
24
72
23.958333
0.778037
0.123478
0
0
0
0
0
0
0
0
0
0
0.133333
1
0.2
false
0
0.133333
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f1e6fe5da799ee54688ff5ee8d7c10fc529546e8
1,818
py
Python
examples/hsmm-geo.py
bikash/pyhsmm
94fab0ea66072a639b20163c40db04c18069496c
[ "MIT" ]
1
2015-11-08T05:20:39.000Z
2015-11-08T05:20:39.000Z
examples/hsmm-geo.py
bikash/pyhsmm
94fab0ea66072a639b20163c40db04c18069496c
[ "MIT" ]
null
null
null
examples/hsmm-geo.py
bikash/pyhsmm
94fab0ea66072a639b20163c40db04c18069496c
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np np.seterr(divide='ignore') # these warnings are usually harmless for this code from matplotlib import pyplot as plt import copy, os import pyhsmm from pyhsmm.util.text import progprint_xrange ################### # generate data # ################### T = 1000 obs_d...
25.25
95
0.669417
230
1,818
5.095652
0.408696
0.046075
0.085324
0.064846
0.303754
0.303754
0.295222
0.295222
0.230375
0.230375
0
0.025914
0.172167
1,818
71
96
25.605634
0.752824
0.069857
0
0.177778
0
0
0.025721
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e7704fa789f92ccdaa67ed757a654c38ed5fda
2,644
py
Python
drf_nested/mixins/update_nested_mixin.py
promoteinternational/drf-nested
0042b9e4c100df4ae43a10684c30348160b39187
[ "MIT" ]
1
2020-01-05T07:23:48.000Z
2020-01-05T07:23:48.000Z
drf_nested/mixins/update_nested_mixin.py
promoteinternational/drf-nested
0042b9e4c100df4ae43a10684c30348160b39187
[ "MIT" ]
null
null
null
drf_nested/mixins/update_nested_mixin.py
promoteinternational/drf-nested
0042b9e4c100df4ae43a10684c30348160b39187
[ "MIT" ]
2
2019-08-12T07:36:57.000Z
2019-11-30T01:40:30.000Z
from django.db import transaction from rest_framework.exceptions import ValidationError from .base_nested_mixin import BaseNestedMixin class UpdateNestedMixin(BaseNestedMixin): @transaction.atomic def update(self, instance, validated_data): """ :param instance: :param validated_data: ...
44.066667
112
0.655825
298
2,644
5.489933
0.244966
0.071516
0.071516
0.056235
0.496333
0.469438
0.410147
0.355134
0.330073
0.330073
0
0
0.274962
2,644
59
113
44.813559
0.853417
0.156203
0
0.27027
0
0
0.05807
0
0
0
0
0
0
1
0.027027
false
0
0.081081
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1e8ea63244e88c3991257407c19f60101c1fe1a
27
py
Python
sbpack/version.py
jdidion/sbpack
84bd7867a0630a826280a702db715377aa879f6a
[ "Apache-2.0" ]
11
2020-08-12T09:33:46.000Z
2022-02-18T15:27:26.000Z
sbpack/version.py
jdidion/sbpack
84bd7867a0630a826280a702db715377aa879f6a
[ "Apache-2.0" ]
35
2020-06-12T16:52:36.000Z
2022-03-25T04:29:02.000Z
sbpack/version.py
jdidion/sbpack
84bd7867a0630a826280a702db715377aa879f6a
[ "Apache-2.0" ]
2
2021-09-27T16:17:26.000Z
2022-01-12T22:18:12.000Z
__version__ = "2021.10.07"
13.5
26
0.703704
4
27
3.75
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.111111
27
1
27
27
0.291667
0
0
0
0
0
0.37037
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f1e91dba84a62775f1e1edc376c14039a6a6b66f
179
py
Python
forayer/datasets/__init__.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
5
2021-09-06T13:50:44.000Z
2022-02-14T09:39:09.000Z
forayer/datasets/__init__.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
5
2021-09-07T06:53:41.000Z
2022-01-17T09:51:53.000Z
forayer/datasets/__init__.py
dobraczka/forayer
df6783f85fb063f58e8b96acef924f9fd2532227
[ "MIT" ]
null
null
null
"""Make datasets available.""" from forayer.datasets.oaei_kg import OAEIKGDataset from forayer.datasets.open_ea import OpenEADataset __all__ = ["OpenEADataset", "OAEIKGDataset"]
29.833333
50
0.804469
20
179
6.9
0.65
0.15942
0.275362
0
0
0
0
0
0
0
0
0
0.089385
179
5
51
35.8
0.846626
0.134078
0
0
0
0
0.174497
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
f1ed8dbfedb221a10fa60ea9b89b4d29afac3606
227
py
Python
challenge/admin.py
dpmpolo/anniv
27081ca5bc514050c10ecc5e5c0994a4d5a7066f
[ "MIT" ]
null
null
null
challenge/admin.py
dpmpolo/anniv
27081ca5bc514050c10ecc5e5c0994a4d5a7066f
[ "MIT" ]
null
null
null
challenge/admin.py
dpmpolo/anniv
27081ca5bc514050c10ecc5e5c0994a4d5a7066f
[ "MIT" ]
null
null
null
from django.contrib import admin from challenge.models import Goal, GoalInstance, SignificantOther # Register your models here. admin.site.register(Goal) admin.site.register(GoalInstance) admin.site.register(SignificantOther)
28.375
65
0.837004
28
227
6.785714
0.5
0.142105
0.268421
0
0
0
0
0
0
0
0
0
0.0837
227
7
66
32.428571
0.913462
0.114537
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f1ee53bc0c6e33469f0d38aac5f3576590fc8660
14,142
py
Python
allocate.py
tomdavsmi/ncl-spa
baa714071d18cc388ccc73702d78a53f7096db6e
[ "MIT" ]
null
null
null
allocate.py
tomdavsmi/ncl-spa
baa714071d18cc388ccc73702d78a53f7096db6e
[ "MIT" ]
null
null
null
allocate.py
tomdavsmi/ncl-spa
baa714071d18cc388ccc73702d78a53f7096db6e
[ "MIT" ]
null
null
null
import library import random import re def allocate(studPrefs,unassignedStudents,lecturerprefs,projLects,lectProjs,lecturercaps,projCaps,randomise,updates,iterationLimit): # Create projected preference list - first pass; add students not on lecturer's list for k, v in studPrefs.items(): for project in v: ...
38.53406
172
0.680031
1,398
14,142
6.877682
0.101574
0.029745
0.028081
0.040562
0.679563
0.627977
0.610192
0.602496
0.598336
0.590016
0
0.005402
0.214609
14,142
367
173
38.53406
0.860268
0.04172
0
0.646875
0
0
0.09171
0
0
0
0
0
0
1
0.009375
false
0.00625
0.009375
0
0.021875
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f067f028748782da40d03c616d1804024a0dea
3,271
py
Python
tests/models/classifiers/test_logistic.py
harmsm/epistasis
741b25b3e28015aeeba8d4efc94af1e1d811cd63
[ "Unlicense" ]
null
null
null
tests/models/classifiers/test_logistic.py
harmsm/epistasis
741b25b3e28015aeeba8d4efc94af1e1d811cd63
[ "Unlicense" ]
null
null
null
tests/models/classifiers/test_logistic.py
harmsm/epistasis
741b25b3e28015aeeba8d4efc94af1e1d811cd63
[ "Unlicense" ]
2
2020-04-02T00:58:24.000Z
2021-11-16T13:30:30.000Z
import pytest # External imports import numpy as np from gpmap import GenotypePhenotypeMap # Module to test import epistasis from epistasis.models.classifiers import * THRESHOLD = 0.2 @pytest.fixture def gpm(test_data): """ Create a genotype-phenotype map """ d = test_data[0] return GenotypePh...
27.258333
60
0.61174
366
3,271
5.346995
0.234973
0.069494
0.071538
0.202351
0.547777
0.523761
0.523761
0.499234
0.499234
0.499234
0
0.00692
0.293183
3,271
119
61
27.487395
0.839533
0.116172
0
0.480519
0
0
0.03352
0
0
0
0
0
0.181818
1
0.12987
false
0
0.064935
0
0.207792
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f1f07ae2628711dd9b1d256f9780dc722c6f8e53
381
py
Python
backend/notifications/admin.py
solitariaa/CMPUT404-project-socialdistribution
f9e23a10e209f8bf7ed062e105f44038751f7c74
[ "W3C-20150513" ]
1
2022-03-01T03:03:40.000Z
2022-03-01T03:03:40.000Z
backend/notifications/admin.py
solitariaa/CMPUT404-project-socialdistribution
f9e23a10e209f8bf7ed062e105f44038751f7c74
[ "W3C-20150513" ]
51
2022-02-09T06:18:27.000Z
2022-03-28T19:01:54.000Z
backend/notifications/admin.py
solitariaa/CMPUT404-project-socialdistribution
f9e23a10e209f8bf7ed062e105f44038751f7c74
[ "W3C-20150513" ]
2
2022-03-13T20:58:10.000Z
2022-03-19T06:29:56.000Z
from django.contrib import admin from .models import Notification class NotificationAdmin(admin.ModelAdmin): ordering = ('published',) search_fields = ('get_author',) list_display = ('id', 'get_author', 'published', 'summary') def get_author(self, obj: Notification): return obj.author.displa...
23.8125
63
0.727034
41
381
6.634146
0.658537
0.099265
0
0
0
0
0
0
0
0
0
0
0.15748
381
15
64
25.4
0.847352
0
0
0
0
0
0.12336
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
f1f2709a9b0d54f4549f4f5b2c964cce095a32f9
3,655
py
Python
example/experiments/01_experiment.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/experiments/01_experiment.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
null
null
null
example/experiments/01_experiment.py
dzwiedziu-nkg/credo-classify-framework
45417b505b4f4b20a7248f3487ca57a3fd49ccee
[ "MIT" ]
3
2020-06-19T15:41:19.000Z
2020-06-29T12:47:05.000Z
import bz2 import time import urllib.request import io from typing import List, Tuple from credo_cf import load_json_from_stream, progress_and_process_image, group_by_device_id, group_by_resolution, too_often, near_hot_pixel2, \ too_bright from credo_cf import xor_preprocess from credo_cf.commons.utils import get_...
31.782609
142
0.642681
507
3,655
4.335306
0.274162
0.038217
0.045041
0.044586
0.198817
0.153321
0.077343
0.077343
0.077343
0.047316
0
0.007565
0.240492
3,655
114
143
32.061404
0.784222
0.118468
0
0.128571
0
0.014286
0.120674
0
0
0
0
0
0
1
0.042857
false
0
0.114286
0
0.171429
0.171429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f2862dcb680020685252fc0444e7b7a36ac2b8
427
py
Python
apptweak/ios.py
gudhati/apptweak-api-python-library
f4a7f7e34548d6d216f3a297d63944c7adbf9667
[ "MIT" ]
5
2019-05-21T14:44:57.000Z
2020-10-30T04:08:13.000Z
apptweak/ios.py
gudhati/apptweak-api-python-library
f4a7f7e34548d6d216f3a297d63944c7adbf9667
[ "MIT" ]
1
2020-08-28T02:42:37.000Z
2020-08-28T07:52:54.000Z
apptweak/ios.py
gudhati/apptweak-api-python-library
f4a7f7e34548d6d216f3a297d63944c7adbf9667
[ "MIT" ]
5
2019-07-18T13:38:01.000Z
2021-06-09T04:12:35.000Z
from apptweak.plateform import * class Ios(Plateform): plateform_name = 'ios' def __init__(self): super().__init__(self.plateform_name) @classmethod def ratings(self, application_id, params = {}): return self.applications(application_id, API_END_PATH['ratings'], params) @classmet...
26.6875
81
0.697892
48
427
5.895833
0.583333
0.137809
0.120141
0
0
0
0
0
0
0
0
0
0.199063
427
15
82
28.466667
0.827485
0
0
0.181818
0
0
0.103045
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.090909
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f1f2f70605379c3a09598bf2b8739bb4f47caa1b
3,944
py
Python
30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py
zhaobingwang/python-samples
d59f84d2b967cc793cb9b8999f8cdef349fd6fd5
[ "MIT" ]
null
null
null
30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py
zhaobingwang/python-samples
d59f84d2b967cc793cb9b8999f8cdef349fd6fd5
[ "MIT" ]
null
null
null
30-Days-Of-Python/30-Days-Of-Python/19_file_handling.py
zhaobingwang/python-samples
d59f84d2b967cc793cb9b8999f8cdef349fd6fd5
[ "MIT" ]
null
null
null
print('---------- Opening Files for Reading ----------') f = open('./files/reading_file_example.txt') print(f) # <_io.TextIOWrapper name='./files/reading_file_example.txt' mode='r' encoding='cp936'> print('\t---------- read() ----------') # read(): read the whole text as string. If we want to limit the number of char...
31.806452
113
0.606491
542
3,944
4.333948
0.239852
0.056194
0.07152
0.078331
0.489144
0.43593
0.413367
0.338442
0.310345
0.281396
0
0.002979
0.148834
3,944
123
114
32.065041
0.696753
0.230223
0
0.526316
0
0.010526
0.533378
0.125208
0
0
0
0
0
1
0
false
0
0.031579
0
0.031579
0.326316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f6211abde32ba71ccaac35e7c39eb9935dfa7c
2,491
py
Python
data/grady-memorial-hospital/parse.py
Afellman/hospital-chargemaster
1b87bc64d95d97c0538be7633f9e469e5db624e2
[ "MIT" ]
34
2019-01-18T00:15:58.000Z
2022-03-26T15:01:08.000Z
data/grady-memorial-hospital/parse.py
wsheffel/hospital-chargemaster
b3473c798fd2f343f7f02c1e32496f9eea9fa94d
[ "MIT" ]
8
2019-01-16T22:06:11.000Z
2019-02-25T00:59:25.000Z
data/grady-memorial-hospital/parse.py
wsheffel/hospital-chargemaster
b3473c798fd2f343f7f02c1e32496f9eea9fa94d
[ "MIT" ]
10
2019-02-20T14:58:16.000Z
2021-11-22T21:57:04.000Z
#!/usr/bin/env python import os from glob import glob import json import pandas import datetime import sys here = os.path.dirname(os.path.abspath(__file__)) folder = os.path.basename(here) latest = '%s/latest' % here year = datetime.datetime.today().year output_data = os.path.join(here, 'data-latest.tsv') output_year...
29.654762
75
0.583701
318
2,491
4.490566
0.349057
0.042017
0.028011
0.023109
0.118347
0.033613
0.033613
0.033613
0
0
0
0.004464
0.28061
2,491
83
76
30.012048
0.792411
0.109996
0
0.033898
0
0
0.133394
0
0
0
0
0
0
1
0.016949
false
0
0.101695
0
0.135593
0.118644
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f62ac7868b351e283f53daaf44f5e2562dfc27
10,476
py
Python
DeterministicParticleFlowControl/tests/test_pytorch_kernel.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
6
2021-12-13T14:30:31.000Z
2022-01-24T07:54:57.000Z
DeterministicParticleFlowControl/tests/test_pytorch_kernel.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
10
2021-12-18T23:04:53.000Z
2022-02-05T02:06:34.000Z
DeterministicParticleFlowControl/tests/test_pytorch_kernel.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 10 07:20:39 2022 @author: maout """ import numpy as np from scipy.spatial.distance import cdist import torch #from score_function_estimators import my_cdist from typing import Union from torch.autograd import grad #%% select available device def set_device(): device...
37.683453
180
0.612447
1,491
10,476
4.22334
0.18444
0.041925
0.026679
0.019057
0.510719
0.494521
0.464507
0.441798
0.413054
0.397808
0
0.014371
0.262696
10,476
278
181
37.683453
0.80088
0.317106
0
0.283582
0
0
0.055916
0
0
0
0
0
0.029851
1
0.067164
false
0
0.037313
0.014925
0.179104
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f6905a9916f479816181eeb443cb6b650cc61b
11,075
py
Python
components.py
zachgk/tfcomponents
6c33349ab13549debfc9b347df795c82e38cfa73
[ "MIT" ]
null
null
null
components.py
zachgk/tfcomponents
6c33349ab13549debfc9b347df795c82e38cfa73
[ "MIT" ]
null
null
null
components.py
zachgk/tfcomponents
6c33349ab13549debfc9b347df795c82e38cfa73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import tensorflow as tf import tflearn from tflearn import variables as vs from tflearn import activations from tflearn import initializations from tflearn import losses from tflearn import utils def condition(cond, t, f): i...
34.182099
116
0.557562
1,131
11,075
5.312997
0.168877
0.033283
0.018306
0.029289
0.339324
0.300549
0.275254
0.275254
0.269096
0.269096
0
0.006302
0.340948
11,075
323
117
34.287926
0.816961
0.018781
0
0.3
0
0
0.066218
0
0
0
0
0
0.007692
1
0.080769
false
0.003846
0.030769
0.003846
0.211538
0.003846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1f9c0eee8a8c52481a3d1792850e6310a0a8163
1,984
py
Python
tests/unit/warnings_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
421
2015-06-02T16:29:59.000Z
2021-06-03T18:44:42.000Z
tests/unit/warnings_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
404
2015-06-02T20:23:42.000Z
2019-08-21T16:59:41.000Z
tests/unit/warnings_test.py
gamechanger/dusty
dd9778e3a4f0c623209e53e98aa9dc1fe76fc309
[ "MIT" ]
16
2015-06-16T17:21:02.000Z
2020-03-27T02:27:09.000Z
from ..testcases import DustyTestCase from dusty.warnings import Warnings class TestWarnings(DustyTestCase): def setUp(self): super(TestWarnings, self).setUp() self.warnings = Warnings() def test_warn(self): message_1 = 'Something is wrong, yo' message_2 = 'Yo this thing is al...
45.090909
229
0.689516
257
1,984
5.182879
0.233463
0.18018
0.084084
0.105105
0.63964
0.576577
0.5503
0.52027
0.385886
0.328829
0
0.011823
0.19002
1,984
43
230
46.139535
0.81705
0
0
0.314286
0
0.057143
0.245968
0
0
0
0
0
0.285714
1
0.2
false
0
0.057143
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
f1fa3f6469623ef44f7b253d9c5da8307b330081
4,655
py
Python
dndice.py
Ar4093/PythonUtils
fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3
[ "MIT" ]
null
null
null
dndice.py
Ar4093/PythonUtils
fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3
[ "MIT" ]
null
null
null
dndice.py
Ar4093/PythonUtils
fd2d1e0eab51c40cd75b42a513f6e76ea8f76bb3
[ "MIT" ]
null
null
null
from random import randint import re # Supported formats: # [A]dX[(L|H|K)n][.Y1[.Y2[...]]] # A - number of dice # X - number of sides of dice # . - operation: allowed are + - * x / # Ln/Hn/Kn - discard the Lowest n dice or Keep the Highest n dice. - will only apply the first of these, in order LHK # Y1,Y2,......
34.738806
140
0.478195
566
4,655
3.932862
0.293286
0.016173
0.016173
0.02965
0.293801
0.268194
0.248877
0.194519
0.173405
0.154987
0
0.020166
0.403437
4,655
133
141
35
0.781419
0.299033
0
0.35
0
0.025
0.042058
0.031705
0
0
0
0
0
1
0.025
false
0
0.025
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1fbbda465699c148d64aca8b6b9736f618761e2
2,471
py
Python
cfg/configure_model.py
dadelani/sentiment-discovery
0cbfc5f6345dacbf52f1f806a9e136a61ca35cf8
[ "BSD-3-Clause" ]
2
2019-04-24T08:23:54.000Z
2020-06-24T10:25:34.000Z
cfg/configure_model.py
mikekestemont/sentiment-discovery
84bf39846ddf6b099d99318214a013269b5b0e61
[ "BSD-3-Clause" ]
null
null
null
cfg/configure_model.py
mikekestemont/sentiment-discovery
84bf39846ddf6b099d99318214a013269b5b0e61
[ "BSD-3-Clause" ]
1
2019-03-23T08:07:33.000Z
2019-03-23T08:07:33.000Z
import os from sentiment_discovery.reparameterization import remove_weight_norm from sentiment_discovery.model import make_model class ModuleConfig(object): def __init__(self, parser): super(ModuleConfig, self).__init__() self.parser = parser def apply(self, cfg, opt): """make model and format model...
39.854839
93
0.718737
352
2,471
4.821023
0.321023
0.058338
0.100177
0.033589
0.032999
0.032999
0
0
0
0
0
0.004369
0.166329
2,471
61
94
40.508197
0.819417
0.048563
0
0
0
0
0.248793
0
0
0
0
0
0
1
0.056604
false
0
0.056604
0
0.150943
0.056604
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f1fcac439aa33bb2b7ada9c60628d61b4b1afd6c
4,309
py
Python
tests/backends/console/test_env.py
j5api/j5
d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7
[ "MIT" ]
10
2019-01-19T13:09:37.000Z
2021-06-18T13:40:10.000Z
tests/backends/console/test_env.py
j5api/j5
d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7
[ "MIT" ]
681
2019-01-22T18:12:23.000Z
2022-03-25T14:14:31.000Z
tests/backends/console/test_env.py
j5api/j5
d3158cfd3d0d19ed33aba0c5c2c1f17a38fe12c7
[ "MIT" ]
8
2019-02-22T21:45:47.000Z
2021-11-17T19:43:33.000Z
"""Tests for the ConsoleEnvironment and Console helper.""" from j5.backends.console import Console def test_console_instantiation() -> None: """Test that we can create a console.""" console = Console("MockConsole") assert type(console) is Console assert console._descriptor == "MockConsole" def tes...
31.918519
89
0.598283
514
4,309
4.877432
0.237354
0.039489
0.033506
0.02872
0.449541
0.343837
0.280415
0.280415
0.280415
0.280415
0
0.011301
0.281272
4,309
134
90
32.156716
0.798192
0.181016
0
0.287671
0
0
0.119743
0.006425
0
0
0
0
0.219178
1
0.219178
false
0
0.013699
0
0.424658
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f1ff198ad462185fb2910c252e87000aebf824f5
6,351
py
Python
backend/modules/cache.py
fheyen/ClaVis
528ca85dd05606d39761b5a00d755500cf1cd2f6
[ "MIT" ]
2
2021-01-11T20:09:32.000Z
2021-05-14T14:52:48.000Z
backend/modules/cache.py
fheyen/ClaVis
528ca85dd05606d39761b5a00d755500cf1cd2f6
[ "MIT" ]
null
null
null
backend/modules/cache.py
fheyen/ClaVis
528ca85dd05606d39761b5a00d755500cf1cd2f6
[ "MIT" ]
null
null
null
from os import listdir, remove, makedirs from os.path import isfile, join, exists import shutil import joblib from termcolor import cprint import json from pathlib import Path _cache_path = None _log_actions = True def init(cache_path, log_actions=True): """ Initializes the cache. Keyword Arguments: ...
26.352697
140
0.597859
767
6,351
4.805737
0.221643
0.048833
0.035269
0.024417
0.363266
0.32854
0.290016
0.263972
0.253391
0.233858
0
0.002462
0.296489
6,351
240
141
26.4625
0.822516
0.204377
0
0.362963
0
0.007407
0.163453
0.00461
0
0
0
0
0
1
0.088889
false
0
0.051852
0
0.192593
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b00a8aae5f5c462bd8742df1743968940cbb675
8,123
py
Python
training/data/sampler.py
jpjuvo/PANDA-challenge-raehmae
5748cd23f18e2dd36d56918dcee495b822d2a5cd
[ "MIT" ]
null
null
null
training/data/sampler.py
jpjuvo/PANDA-challenge-raehmae
5748cd23f18e2dd36d56918dcee495b822d2a5cd
[ "MIT" ]
null
null
null
training/data/sampler.py
jpjuvo/PANDA-challenge-raehmae
5748cd23f18e2dd36d56918dcee495b822d2a5cd
[ "MIT" ]
1
2021-04-20T04:37:47.000Z
2021-04-20T04:37:47.000Z
import torch import os import numpy as np import random import pandas as pd from sklearn.model_selection import StratifiedKFold from data.tileimages import * from data.multitask import * import fastai from fastai.vision import * class FoldSampler: def __init__(self, TRAIN, LABELS, mean, std, N, ...
40.819095
111
0.519266
891
8,123
4.530864
0.225589
0.020808
0.023532
0.013624
0.232351
0.224919
0.208075
0.208075
0.182314
0.182314
0
0.005217
0.386434
8,123
198
112
41.025253
0.804775
0.056752
0
0.164706
0
0
0.050621
0.010464
0
0
0
0
0
1
0.058824
false
0
0.058824
0.005882
0.170588
0.005882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b0127f18652a5554693ea5f44876da7eca25e09
281
py
Python
ABC/194/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/194/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/194/a.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input A, B = map(int, input().split()) # compute # output if A+B>=15 and B >= 8: print(1) elif A+B>=10 and B>=3: print(2) elif A+B >= 3: print(3) else: print(4) if __name__ == '__main__': main()
14.05
36
0.441281
42
281
2.761905
0.547619
0.068966
0.103448
0
0
0
0
0
0
0
0
0.063953
0.3879
281
19
37
14.789474
0.610465
0.071174
0
0
0
0
0.031128
0
0
0
0
0
0
1
0.083333
true
0
0
0
0.083333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7b0281efeed9226063f79960fa17b68b47603613
2,578
py
Python
test/graph/test_from_ase.py
yhtang/GraphDot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
9
2020-02-14T18:07:39.000Z
2021-12-15T12:07:31.000Z
test/graph/test_from_ase.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2020-03-19T19:07:26.000Z
2021-02-24T06:08:51.000Z
test/graph/test_from_ase.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T06:11:18.000Z
2021-05-07T11:56:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from ase.build import molecule from ase.lattice.cubic import SimpleCubic from graphdot.graph import Graph from graphdot.graph.adjacency import AtomicAdjacency adjacencies = [ AtomicAdjacency(shape='tent1', length_scale=1.0, zoom=1), AtomicAdjacency(s...
38.477612
79
0.660978
382
2,578
4.376963
0.172775
0.202153
0.085526
0.222488
0.639354
0.630383
0.582536
0.582536
0.529904
0.478469
0
0.052273
0.146625
2,578
66
80
39.060606
0.707727
0.016292
0
0.185185
0
0
0.050118
0.008682
0
0
0
0
0.111111
1
0.074074
false
0
0.092593
0
0.166667
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7b02e549c87583bcf554b71f024544d0bb0dac0a
2,735
py
Python
FEM/src/FemIo.py
BartSiwek/Neurotransmitter2D
200c1b7e74de0786b1bb52d456e227f9d64cebc6
[ "MIT" ]
null
null
null
FEM/src/FemIo.py
BartSiwek/Neurotransmitter2D
200c1b7e74de0786b1bb52d456e227f9d64cebc6
[ "MIT" ]
null
null
null
FEM/src/FemIo.py
BartSiwek/Neurotransmitter2D
200c1b7e74de0786b1bb52d456e227f9d64cebc6
[ "MIT" ]
null
null
null
import string import scipy import PslgIo, ElementAwarePslg def loadEle(filename): pslg = ElementAwarePslg.ElementAwarePslg() file = open(filename, "r") try: PslgIo.readFromFile(file, pslg, filename) finally: file.close() return pslg def saveFem(filename, femResults): #Open the ...
27.35
102
0.571115
301
2,735
5.189369
0.30897
0.049296
0.040973
0.03265
0.166453
0.112676
0.067862
0.067862
0.067862
0.067862
0
0.012137
0.30713
2,735
100
103
27.35
0.812137
0.02925
0
0.395062
0
0
0.049434
0
0
0
0
0
0
1
0.111111
false
0.012346
0.037037
0.012346
0.234568
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b04376d12aae979563b6b36b34ff0b76d2dcff0
3,466
py
Python
dianna/__init__.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/__init__.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/__init__.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
""" DIANNA: Deep Insight And Neural Network Analysis. Modern scientific challenges are often tackled with (Deep) Neural Networks (DNN). Despite their high predictive accuracy, DNNs lack inherent explainability. Many DNN users, especially scientists, do not harvest DNNs power because of lack of trust and understanding ...
42.790123
99
0.742643
483
3,466
5.15942
0.407867
0.028892
0.036116
0.032103
0.369181
0.369181
0.337079
0.243178
0.243178
0.198234
0
0.002147
0.193883
3,466
80
100
43.325
0.889764
0.644836
0
0.1
0
0
0.038154
0.023957
0
0
0
0
0
1
0.15
false
0
0.2
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
7b0494a9e41efc09a0891a5e4ffe2bfd4e84d0d3
2,925
py
Python
printer/gpio.py
3DRPP/printer
7826c7c82a5331d916d8ea038bd3a44aff6e35b5
[ "MIT" ]
null
null
null
printer/gpio.py
3DRPP/printer
7826c7c82a5331d916d8ea038bd3a44aff6e35b5
[ "MIT" ]
null
null
null
printer/gpio.py
3DRPP/printer
7826c7c82a5331d916d8ea038bd3a44aff6e35b5
[ "MIT" ]
null
null
null
try: import RPi.GPIO as GPIO except RuntimeError: print("Error importing RPi.GPIO! This is probably because you need " "superuser privileges. You can achieve this by using 'sudo' to run " "your script") gpios = [7, 8, 10, 11, 12, 13, 15, 16, 18, 19, 21, 22, 23, 24, 26, 29, 31, 32...
29.545455
79
0.523419
372
2,925
4.026882
0.258065
0.078104
0.048064
0.053405
0.389186
0.333111
0.280374
0.23765
0.23765
0.23765
0
0.025932
0.367179
2,925
98
80
29.846939
0.78336
0
0
0.378049
0
0
0.094701
0
0
0
0
0
0
1
0.121951
false
0.02439
0.02439
0
0.256098
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b04e005435865593cbdccc3f6d9e91235157df4
1,395
py
Python
simple_joint_subscriber/scripts/joint_subscriber.py
itk-thrivaldi/thrivaldi_examples
7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd
[ "Apache-2.0" ]
null
null
null
simple_joint_subscriber/scripts/joint_subscriber.py
itk-thrivaldi/thrivaldi_examples
7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd
[ "Apache-2.0" ]
1
2017-12-14T14:04:24.000Z
2017-12-14T16:58:05.000Z
simple_joint_subscriber/scripts/joint_subscriber.py
itk-thrivaldi/thrivaldi_examples
7c00ad4e1b4fa4b0f27c88e8c0147f8105b042fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import rospy # For all things ros with python # JointState is defined in sensor_msgs.msg # If you know a message but not where it is # call rosmsg info MSGNAME from the terminal from sensor_msgs.msg import JointState # This tutorial takes heavily from # http://wiki.ros.org/ROS/Tutorials/WritingP...
34.875
79
0.7319
197
1,395
5.076142
0.558376
0.039
0.026
0
0
0
0
0
0
0
0
0
0.194982
1,395
39
80
35.769231
0.890472
0.658781
0
0
0
0
0.133183
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b0521366a87b5722240ee07005b1b01f21cf17a
1,291
py
Python
src/lab4_cam/src/sawyercam.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
src/lab4_cam/src/sawyercam.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
src/lab4_cam/src/sawyercam.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Aran Sena 2018 # # Code example only, provided without guarantees # # Example for how to get both cameras streaming together # #### import rospy from intera_core_msgs.srv._IOComponentCommandSrv import IOComponentCommandSrv from intera_core_msgs.msg._IOComponentCommand import IOCompon...
33.102564
110
0.655306
145
1,291
5.6
0.524138
0.096059
0.093596
0.123153
0.152709
0.081281
0
0
0
0
0
0.0059
0.212239
1,291
38
111
33.973684
0.792527
0.109992
0
0
0
0.090909
0.262555
0.018502
0
0
0
0
0
0
null
null
0
0.136364
null
null
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
1
0
0
0
0
0
0
0
0
1
7b061600468274d3cebd155c75fff8f1303d7256
12,279
py
Python
citydata/crime.py
JackKirbyCook82/neighborhood
3805fa11890e121ffadcaaf8f02323434cb68519
[ "MIT" ]
null
null
null
citydata/crime.py
JackKirbyCook82/neighborhood
3805fa11890e121ffadcaaf8f02323434cb68519
[ "MIT" ]
null
null
null
citydata/crime.py
JackKirbyCook82/neighborhood
3805fa11890e121ffadcaaf8f02323434cb68519
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun May 2 2021 @name: CityData CensusTract Download Application @author: Jack Kirby Cook """ import sys import os.path import warnings import logging import regex as re MAIN_DIR = os.path.dirname(os.path.realpath(__file__)) MODULE_DIR = os.path.abspath(os.path.join(MAIN_DIR, ...
47.964844
197
0.710807
1,393
12,279
6.096195
0.213209
0.064885
0.044041
0.041333
0.235045
0.178521
0.127414
0.103745
0.097386
0.06041
0
0.004404
0.149361
12,279
255
198
48.152941
0.808617
0.037462
0
0.038251
0
0.016393
0.125551
0.049051
0
0
0
0
0.021858
1
0.043716
false
0.125683
0.103825
0.010929
0.349727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7b072a958ac36c49b32339e29f7e4de28848fadd
3,644
py
Python
apportionpy/experimental/boundary.py
btror/apportionpy
5b70dbeee4b197e41794bed061ea4a11f128d1c8
[ "MIT" ]
null
null
null
apportionpy/experimental/boundary.py
btror/apportionpy
5b70dbeee4b197e41794bed061ea4a11f128d1c8
[ "MIT" ]
null
null
null
apportionpy/experimental/boundary.py
btror/apportionpy
5b70dbeee4b197e41794bed061ea4a11f128d1c8
[ "MIT" ]
null
null
null
import math def estimate_lowest_divisor(method, divisor, populations, seats): """ Calculates the estimated lowest possible divisor. :param method: The method used. :type method: str :param divisor: A working divisor in calculating fair shares. :type divisor: float :param populations: Th...
30.881356
72
0.611416
416
3,644
5.283654
0.1875
0.063694
0.030027
0.027298
0.906278
0.8899
0.8899
0.850773
0.760692
0.760692
0
0.023866
0.310099
3,644
117
73
31.145299
0.850438
0.324369
0
0.786885
0
0
0.017007
0
0
0
0
0
0
1
0.032787
false
0
0.016393
0
0.114754
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7b0bcb46e200df6f78d9fe78eb07f700564fadd3
4,084
py
Python
csv_to_table.py
canary-for-cognition/multimodal-ml-framework
379963e2815165b28a28c983d32dd17656fba9a9
[ "MIT" ]
1
2021-11-10T10:28:01.000Z
2021-11-10T10:28:01.000Z
csv_to_table.py
canary-for-cognition/multimodal-ml-framework
379963e2815165b28a28c983d32dd17656fba9a9
[ "MIT" ]
null
null
null
csv_to_table.py
canary-for-cognition/multimodal-ml-framework
379963e2815165b28a28c983d32dd17656fba9a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np # import pylatex from pylatex import Document, Section, Tabular, Math, Axis, Subsection import pandas as pd import sys import os def main(): pm = u"\u00B1" filename = sys.argv[1] results = pd.read_csv(filename+'.csv') cols = results.col...
51.696203
131
0.578355
488
4,084
4.754098
0.256148
0.094828
0.080603
0.118534
0.3125
0.243103
0.228448
0.108621
0
0
0
0.011698
0.225514
4,084
78
132
52.358974
0.721783
0.027669
0
0.065574
0
0
0.160061
0
0
0
0
0
0
1
0.016393
false
0
0.081967
0
0.098361
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b0d0466817dc17050d1085421ef9276feb2fb86
2,803
py
Python
torch_audioset/vggish/model.py
Guillaume-oso/torch_audioset
e8852c53becef811784754a2de9c4617d8db2156
[ "MIT" ]
26
2020-03-25T21:19:33.000Z
2022-02-01T15:14:29.000Z
torch_audioset/vggish/model.py
Guillaume-oso/torch_audioset
e8852c53becef811784754a2de9c4617d8db2156
[ "MIT" ]
7
2020-05-31T07:57:05.000Z
2021-12-23T10:16:55.000Z
torch_audioset/vggish/model.py
Guillaume-oso/torch_audioset
e8852c53becef811784754a2de9c4617d8db2156
[ "MIT" ]
8
2020-10-27T16:22:55.000Z
2022-03-28T22:48:07.000Z
import os.path as osp import yaml import torch.nn as nn from torch import hub __all__ = ['get_vggish', 'vggish_category_metadata'] model_urls = { 'vggish': "https://github.com/w-hc/vggish/releases/download/v0.1/vggish_orig.pth", 'vggish_with_classifier': "https://github.com/w-hc/vggish/releases/download/v0.1...
29.197917
112
0.576882
373
2,803
4.126005
0.351206
0.02729
0.051982
0.023392
0.128655
0.096166
0.096166
0.062378
0.062378
0.062378
0
0.03672
0.29076
2,803
95
113
29.505263
0.737425
0.081698
0
0.169014
0
0.028169
0.10782
0.03594
0
0
0
0
0
1
0.098592
false
0
0.056338
0
0.253521
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b0d272861a3704f10e9a92801a2d879819c1a06
12,584
py
Python
common/cuchemcommon/data/helper/chembldata.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
common/cuchemcommon/data/helper/chembldata.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
common/cuchemcommon/data/helper/chembldata.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
import os import warnings import pandas import sqlite3 import logging from typing import List from dask import delayed, dataframe from contextlib import closing from cuchemcommon.utils.singleton import Singleton from cuchemcommon.context import Context warnings.filterwarnings("ignore", message=r"deprecated", categor...
39.202492
101
0.565559
1,398
12,584
4.912732
0.175966
0.030577
0.020821
0.03145
0.533925
0.50131
0.459377
0.444525
0.425451
0.385993
0
0.005983
0.335903
12,584
320
102
39.325
0.815843
0.112127
0
0.452174
0
0
0.348969
0.002474
0.004348
0
0
0.003125
0
1
0.056522
false
0
0.043478
0
0.152174
0.013043
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b0dd834a233f033a4537593bd1c545e5c4ea02a
769
py
Python
tests/app/users/migrations/0001_initial.py
silverlogic/djangorestframework-timed-auth-token
0884559c6b5e4021d7a8830ec5dd60f2799d0ee4
[ "MIT" ]
34
2015-05-22T00:02:49.000Z
2021-12-29T11:42:31.000Z
tests/app/users/migrations/0001_initial.py
silverlogic/djangorestframework-timed-auth-token
0884559c6b5e4021d7a8830ec5dd60f2799d0ee4
[ "MIT" ]
6
2015-05-22T00:04:50.000Z
2021-06-10T17:49:38.000Z
tests/app/users/migrations/0001_initial.py
silverlogic/djangorestframework-timed-auth-token
0884559c6b5e4021d7a8830ec5dd60f2799d0ee4
[ "MIT" ]
6
2015-05-25T17:44:50.000Z
2020-12-05T14:48:53.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(s...
29.576923
114
0.574772
71
769
6.042254
0.633803
0.076923
0
0
0
0
0
0
0
0
0
0.01105
0.293888
769
25
115
30.76
0.779006
0.027308
0
0
0
0
0.091153
0
0
0
0
0
0
1
0
false
0.052632
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7b0e27fa7adc3752fa6c840a8e64f5d20d45801c
370
py
Python
PyObjCTest/test_nsmachport.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsmachport.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsmachport.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools.TestSupport import * import objc import Foundation if hasattr(Foundation, 'NSMachPort'): class TestNSMachPort(TestCase): def testAlloc(self): obj = Foundation.NSMachPort.alloc() self.assertIsNot(obj, None) obj = obj.init() self.assertIsNot(o...
23.125
47
0.632432
37
370
6.108108
0.594595
0.176991
0.159292
0.19469
0
0
0
0
0
0
0
0
0.264865
370
15
48
24.666667
0.830882
0
0
0.166667
0
0
0.048649
0
0
0
0
0
0.166667
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b13d630c689e01a72a9bc979b93bb26fb000d70
7,125
py
Python
harmony.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
harmony.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
harmony.py
cyrushadavi/home_automation
dcf1dcc688b5021a0c16e68e372e38a28d819f3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 """Command line utility for querying the Logitech Harmony.""" import argparse import logging import json import sys import auth import client as harmony_client LOGGER = logging.getLogger(__name__) def login_to_logitech(args): """Logs in to the Logitech service. Args: args: ar...
29.442149
107
0.663719
921
7,125
4.955483
0.19544
0.028484
0.023663
0.038344
0.26972
0.189308
0.163891
0.082603
0
0
0
0.005452
0.227649
7,125
241
108
29.564315
0.823914
0.010386
0
0.205479
0
0
0.168349
0.00929
0
0
0
0
0
0
null
null
0.020548
0.041096
null
null
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7b15f666dd8b6c5e2030f1efa5c2aa16458ac78c
14,567
py
Python
workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py
sykang808/aws-well-architected-labs-kor
da021a9f7501088f871b08560673deac4488eef4
[ "Apache-2.0" ]
null
null
null
workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py
sykang808/aws-well-architected-labs-kor
da021a9f7501088f871b08560673deac4488eef4
[ "Apache-2.0" ]
null
null
null
workshop/static/Reliability/300_Testing_for_Resiliency_of_EC2_RDS_and_S3/Code/Python/WebAppLambda/deploy_web_lambda.py
sykang808/aws-well-architected-labs-kor
da021a9f7501088f871b08560673deac4488eef4
[ "Apache-2.0" ]
null
null
null
# # MIT No Attribution # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, distribute, subli...
39.800546
139
0.674126
1,697
14,567
5.608132
0.226282
0.023117
0.04203
0.062204
0.341284
0.281917
0.166334
0.129873
0.097089
0.088894
0
0.00848
0.214732
14,567
365
140
39.909589
0.823499
0.125283
0
0.276364
0
0.003636
0.278101
0.038177
0
0
0
0
0.014545
1
0.04
false
0.010909
0.029091
0.003636
0.123636
0.010909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b16d187420b13711f7fff210fdd319f14807224
483
py
Python
URI/1024.py
leilaapsilva/BabySteps
32b1e6439fa3be49c93a3cae0b4fbd0f03a713be
[ "MIT" ]
37
2020-10-01T03:50:42.000Z
2021-11-23T00:49:51.000Z
URI/1024.py
leilaapsilva/BabySteps
32b1e6439fa3be49c93a3cae0b4fbd0f03a713be
[ "MIT" ]
27
2020-10-03T23:16:13.000Z
2021-11-19T19:53:01.000Z
URI/1024.py
leilaapsilva/BabySteps
32b1e6439fa3be49c93a3cae0b4fbd0f03a713be
[ "MIT" ]
97
2020-10-01T11:39:01.000Z
2021-11-01T00:30:53.000Z
alpha = "abcdefghijklmnopqrstuvwxyz" n = int(raw_input()) for i in xrange(n): word = raw_input() aux_word = "" first_part = "" second_part = "" for j in xrange(len(word)-1, -1, -1): if(word[j].lower() in alpha): aux_word += chr(ord(word[j]) + 3) else: aux_word += word[j] middle = (len(word)/2) firs...
21
51
0.6294
81
483
3.567901
0.358025
0.16955
0.103806
0.131488
0
0
0
0
0
0
0
0.020513
0.192547
483
23
52
21
0.720513
0
0
0
0
0
0.053719
0.053719
0
0
0
0
0
0
null
null
0
0
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7b17163e98fca69e6d9d2a2ecd44f5b5e78cfd5c
6,095
py
Python
Coursework 2/nn_preprocess.py
martinferianc/Pattern-Recognition-EIE4
412d437582b236dadd81c0621935f6b3bd5dbad5
[ "MIT" ]
1
2019-08-20T11:17:56.000Z
2019-08-20T11:17:56.000Z
Coursework 2/nn_preprocess.py
martinferianc/Pattern-Recognition-EIE4
412d437582b236dadd81c0621935f6b3bd5dbad5
[ "MIT" ]
null
null
null
Coursework 2/nn_preprocess.py
martinferianc/Pattern-Recognition-EIE4
412d437582b236dadd81c0621935f6b3bd5dbad5
[ "MIT" ]
null
null
null
import numpy as np # For file manipulation and locating import os # For the progress bar from tqdm import tqdm # To create a deep copy of the data import copy # To load the pre-processed and split data from pre_process import load_data as ld # For normalization of the samples from sklearn.preprocessing import normalize...
33.674033
164
0.642986
847
6,095
4.42621
0.217237
0.028007
0.024006
0.032009
0.421179
0.327287
0.267805
0.249933
0.240331
0.157109
0
0.01701
0.26694
6,095
180
165
33.861111
0.822068
0.263495
0
0.212766
0
0
0.06509
0.01077
0
0
0
0
0
1
0.031915
false
0
0.06383
0
0.12766
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b180f7965af3a7127ae86b77bf7384badafe436
776
py
Python
src/main.py
M10han/image-scores
509e2e9f9d3a484631a97a2e025849c266f71c43
[ "MIT" ]
null
null
null
src/main.py
M10han/image-scores
509e2e9f9d3a484631a97a2e025849c266f71c43
[ "MIT" ]
1
2021-06-08T21:41:19.000Z
2021-06-08T21:41:19.000Z
src/main.py
M10han/image-scores
509e2e9f9d3a484631a97a2e025849c266f71c43
[ "MIT" ]
null
null
null
import pandas as pd import time from image_matcher import read_image, bjorn_score def main(data_location='../data/', data_file='input.csv'): df = pd.read_csv(data_location + data_file) score_list, runtime_list = [], [] for idx, row in df.iterrows(): image1_file, image2_file = data_location + \ ...
26.758621
58
0.643041
104
776
4.490385
0.394231
0.102784
0.068522
0
0
0
0
0
0
0
0
0.018487
0.233247
776
28
59
27.714286
0.766387
0
0
0
0
0
0.081186
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b1892266415333934744e874665f21d627beb7f
2,006
py
Python
build/lib.linux-x86_64-2.7/biograder/Encryptor.py
PayneLab/GenericDataAPI
9469328c4f845fbf8d97b5d80ad2077c9f927022
[ "MIT" ]
2
2021-04-25T18:36:29.000Z
2021-05-14T15:34:59.000Z
build/lib.linux-x86_64-2.7/biograder/Encryptor.py
PayneLab/GenericDataAPI
9469328c4f845fbf8d97b5d80ad2077c9f927022
[ "MIT" ]
null
null
null
build/lib.linux-x86_64-2.7/biograder/Encryptor.py
PayneLab/GenericDataAPI
9469328c4f845fbf8d97b5d80ad2077c9f927022
[ "MIT" ]
2
2020-11-23T02:09:57.000Z
2021-08-13T21:57:03.000Z
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding from cryptography.hazmat.primitives import serialization class Encryptor: def __init__(self): #Todo: read key from file ...
31.84127
97
0.602193
218
2,006
5.408257
0.431193
0.068702
0.07464
0.081425
0.281595
0.188295
0.128923
0.033927
0
0
0
0.008785
0.319043
2,006
62
98
32.354839
0.854319
0.162014
0
0.142857
0
0
0.030435
0
0
0
0
0.016129
0
1
0.119048
false
0.047619
0.095238
0
0.285714
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7b190c0f4573cd290b14012b9fc7b11615f31516
218
py
Python
elif_bayindir/phase_1/python_basic_1/day_6/q7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
elif_bayindir/phase_1/python_basic_1/day_6/q7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
elif_bayindir/phase_1/python_basic_1/day_6/q7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
# Question 7 # Find out the number of CPUs using import os print("Number of CPUs using:", os.cpu_count()) # Alternative, """ import multiprocessing print("Number of CPUs using:", multiprocessing.cpu_count()) """
18.166667
63
0.711009
30
218
5.1
0.533333
0.156863
0.235294
0.333333
0.287582
0
0
0
0
0
0
0.005464
0.16055
218
11
64
19.818182
0.830601
0.261468
0
0
0
0
0.318182
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
7b1bfc88d4da28ede06e1a7e0dc3ba09c6ec9cb9
3,081
py
Python
openstates/openstates-master/openstates/ia/__init__.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ia/__init__.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ia/__init__.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import re import datetime import lxml.html import requests from billy.utils.fulltext import text_after_line_numbers from .bills import IABillScraper from .legislators import IALegislatorScraper from .events import IAEventScraper from .votes import IAVoteScraper # Silencing unverified HTTPS request warnings. requests.p...
29.066038
72
0.563778
320
3,081
5.296875
0.415625
0.132743
0.023009
0.035398
0.189381
0.070796
0
0
0
0
0
0.08196
0.291139
3,081
105
73
29.342857
0.694139
0.024343
0
0.064516
0
0
0.318015
0.019314
0
0
0
0
0
1
0.032258
false
0
0.096774
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b1e18b2a4656893e78e78b318983823f4f03309
2,965
py
Python
dp_excel/ExcelFile.py
DmitryPaschenko/python_excel_writer
d23acbe44e3e7e786fd8fd8deb1f47263326199f
[ "MIT" ]
null
null
null
dp_excel/ExcelFile.py
DmitryPaschenko/python_excel_writer
d23acbe44e3e7e786fd8fd8deb1f47263326199f
[ "MIT" ]
null
null
null
dp_excel/ExcelFile.py
DmitryPaschenko/python_excel_writer
d23acbe44e3e7e786fd8fd8deb1f47263326199f
[ "MIT" ]
null
null
null
from openpyxl import Workbook from openpyxl.utils import get_column_letter from openpyxl.writer.excel import save_virtual_workbook class ExcelFile: def __init__(self, file_name): self.file_name = file_name self.workbook = Workbook() self.active_worksheet = self.workbook.active sel...
36.158537
158
0.651602
361
2,965
5.080332
0.213296
0.065976
0.113959
0.095965
0.207743
0.125954
0.125954
0.051254
0.051254
0
0
0.003142
0.248567
2,965
81
159
36.604938
0.820018
0.109275
0
0.042553
0
0
0.043599
0
0
0
0
0
0
1
0.212766
false
0
0.06383
0.021277
0.382979
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7b1ea6dc53dbed446cf8e4fe80ef8e9dd14dbdfd
435
py
Python
test/test_flow.py
williford/vipy
d7ce90cfa3c11363ca9e9fcb1fcea9371aa1b74d
[ "MIT" ]
13
2020-07-23T12:15:24.000Z
2022-03-18T13:58:31.000Z
test/test_flow.py
williford/vipy
d7ce90cfa3c11363ca9e9fcb1fcea9371aa1b74d
[ "MIT" ]
2
2020-02-26T00:58:40.000Z
2021-04-26T12:34:41.000Z
test/test_flow.py
williford/vipy
d7ce90cfa3c11363ca9e9fcb1fcea9371aa1b74d
[ "MIT" ]
2
2020-05-11T15:31:06.000Z
2021-09-16T14:01:33.000Z
import vipy from vipy.flow import Flow import numpy as np def test_flow(): imfrom = vipy.image.RandomScene(num_objects=1) imto = imfrom.clone().zeropad(5, 10).cornercrop(imfrom.height(), imfrom.width()) imf = Flow().imageflow(imfrom, imto) assert np.abs(np.median(imf.dx()) - 5) < 1 and np.abs(np.median...
25.588235
87
0.65977
65
435
4.230769
0.553846
0.087273
0.050909
0.094545
0.116364
0
0
0
0
0
0
0.02507
0.174713
435
16
88
27.1875
0.740947
0
0
0
0
0
0.08545
0.050808
0
0
0
0
0.090909
1
0.090909
false
0.090909
0.272727
0
0.363636
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
1
0
0
0
0
0
1
7b204556097cfdfd3ff88e8d7bc8bf1337b3e12c
660
py
Python
server/main.py
DarthBenro008/gh-release-paniker
757845b1eebef9d2219c88706fd4277f4261391f
[ "MIT" ]
5
2021-12-08T06:37:33.000Z
2021-12-20T17:17:18.000Z
server/main.py
DarthBenro008/gh-release-paniker
757845b1eebef9d2219c88706fd4277f4261391f
[ "MIT" ]
null
null
null
server/main.py
DarthBenro008/gh-release-paniker
757845b1eebef9d2219c88706fd4277f4261391f
[ "MIT" ]
null
null
null
from typing import Optional from fastapi import FastAPI app = FastAPI() import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) LED=21 BUZZER=23 GPIO.setup(LED,GPIO.OUT) def panikMode(): print("Entering PanikMode") GPIO.output(LED,GPIO.HIGH) GPIO.output(BUZZER,GPIO.HIGH) ...
16.5
33
0.672727
89
660
4.977528
0.449438
0.090293
0.085779
0.099323
0.117381
0
0
0
0
0
0
0.007286
0.168182
660
40
34
16.5
0.799636
0
0
0
0
0
0.114977
0
0
0
0
0
0
1
0.172414
false
0
0.137931
0.034483
0.413793
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b20674499d7148c6a6ca240f5128fad607757fd
8,656
py
Python
virtual/lib/python3.10/site-packages/bootstrap_py/tests/test_package.py
alex-mu/Moringa-blog
430ab9c1f43f2f0066369433ac3f60c41a51a01c
[ "MIT" ]
null
null
null
virtual/lib/python3.10/site-packages/bootstrap_py/tests/test_package.py
alex-mu/Moringa-blog
430ab9c1f43f2f0066369433ac3f60c41a51a01c
[ "MIT" ]
7
2021-03-30T14:10:56.000Z
2022-03-12T00:43:13.000Z
virtual/lib/python3.6/site-packages/bootstrap_py/tests/test_package.py
sarahsindet/pitch
c7a4256e19c9a250b6d88d085699a34f508eb86b
[ "Unlicense", "MIT" ]
1
2021-08-19T06:07:23.000Z
2021-08-19T06:07:23.000Z
# -*- coding: utf-8 -*- """bootstrap_py.tests.test_package.""" import unittest import os import shutil import tempfile from glob import glob from datetime import datetime from mock import patch from bootstrap_py import package from bootstrap_py.tests.stub import stub_request_metadata # pylint: disable=too-few-public-...
42.019417
79
0.586992
1,070
8,656
4.595327
0.135514
0.054098
0.076063
0.06569
0.576164
0.529184
0.478544
0.455359
0.41265
0.377466
0
0.009107
0.26421
8,656
205
80
42.22439
0.762914
0.080291
0
0.393548
0
0
0.107829
0.013367
0
0
0
0.004878
0.335484
1
0.109677
false
0
0.058065
0
0.187097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b2072a69cb5c6d86996ccfc0e3130c0fc1d1caa
383
py
Python
news_bl/main/migrations/0005_alter_article_urltoimage.py
noddy09/news_search
7bee6a3aeb6c8a5e9e01109635fbd53f5d808722
[ "MIT" ]
null
null
null
news_bl/main/migrations/0005_alter_article_urltoimage.py
noddy09/news_search
7bee6a3aeb6c8a5e9e01109635fbd53f5d808722
[ "MIT" ]
null
null
null
news_bl/main/migrations/0005_alter_article_urltoimage.py
noddy09/news_search
7bee6a3aeb6c8a5e9e01109635fbd53f5d808722
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-30 13:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20210830_0359'), ] operations = [ migrations.AlterField( model_name='article', name='urlToImage', ...
20.157895
47
0.5953
41
383
5.463415
0.853659
0
0
0
0
0
0
0
0
0
0
0.113971
0.289817
383
18
48
21.277778
0.709559
0.117493
0
0
1
0
0.130952
0.068452
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7b20cd11ee3f48070fe24a5a912f30b91ada5d46
1,175
py
Python
utils/migrate_cmds_idx_32bit.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
1
2015-07-30T18:33:14.000Z
2015-07-30T18:33:14.000Z
utils/migrate_cmds_idx_32bit.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
104
2015-01-20T18:44:36.000Z
2022-03-29T18:51:55.000Z
utils/migrate_cmds_idx_32bit.py
jzuhone/kadi
de4885327d256e156cfe42b2b1700775f5b4d6cf
[ "BSD-3-Clause" ]
2
2018-08-23T02:36:08.000Z
2020-03-13T19:24:36.000Z
from pathlib import Path import numpy as np import tables # Use snapshot from aug08 before the last update that broke things. with tables.open_file('cmds_aug08.h5') as h5: cmds = h5.root.data[:] print(cmds.dtype) # [('idx', '<u2'), ('date', 'S21'), ('type', 'S12'), ('tlmsid', 'S10'), # ('scs', 'u1'), ('step', '<...
31.756757
85
0.613617
183
1,175
3.836066
0.36612
0.068376
0.059829
0.076923
0.407407
0.376068
0.307692
0.307692
0.307692
0.307692
0
0.043744
0.163404
1,175
36
86
32.638889
0.670397
0.228085
0
0.173913
0
0
0.126386
0
0
0
0
0
0.173913
1
0
false
0
0.130435
0
0.130435
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
7b21a08900385c33387348bb5cf7b32f2eca5c0f
579
py
Python
1_estrutura_sequencial/18_velocidade_download.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/18_velocidade_download.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/18_velocidade_download.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 18. Faça um programa que peça o tamanho de um arquivo para download (em MB) e a velocidade de um link de Internet (em Mbps), calcule e informe o tempo aproximado de download do arquivo usando este link (em minutos). """ mb_arquivo = float(input('Informe o tamanho de um arquivo para download (em MB): ')) mbps_lin...
38.6
91
0.753022
93
579
4.602151
0.397849
0.028037
0.046729
0.056075
0.257009
0.163551
0.163551
0.163551
0.163551
0
0
0.008264
0.164076
579
14
92
41.357143
0.876033
0.374784
0
0
0
0
0.478754
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b2304794deb520b2f5f87d0e37dcca35db22896
4,802
py
Python
src/rte_pac/train_pyramid.py
UKPLab/conll2019-snopes-experiments
102f4a05cfba781036bd3a7b06022246e53765ad
[ "Apache-2.0" ]
5
2019-11-08T09:17:07.000Z
2022-01-25T19:37:06.000Z
src/rte_pac/train_pyramid.py
UKPLab/conll2019-snopes-experiments
102f4a05cfba781036bd3a7b06022246e53765ad
[ "Apache-2.0" ]
18
2020-01-28T22:17:34.000Z
2022-03-11T23:57:22.000Z
src/rte_pac/train_pyramid.py
UKPLab/conll2019-snopes-experiments
102f4a05cfba781036bd3a7b06022246e53765ad
[ "Apache-2.0" ]
1
2021-03-08T12:02:24.000Z
2021-03-08T12:02:24.000Z
import argparse import pickle import os import json from sklearn.metrics import confusion_matrix from utils.data_reader import embed_data_sets_with_glove, embed_data_set_given_vocab, prediction_2_label from utils.text_processing import vocab_map from common.util.log_helper import LogHelper from deep_models.MatchPyramid...
52.195652
139
0.641399
629
4,802
4.667727
0.246423
0.038147
0.063692
0.021798
0.230586
0.13624
0.032016
0.032016
0.032016
0.032016
0
0.005682
0.230321
4,802
91
140
52.769231
0.78869
0.024157
0
0.160494
0
0
0.189103
0.020085
0
0
0
0
0.049383
1
0.012346
false
0
0.111111
0.012346
0.135802
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b2354c08ba6d3f70427aa659e1ba9d3a3e03c13
854
py
Python
annotation/helpers/helpers/extract_noise.py
jim-schwoebel/allie
d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e
[ "Apache-2.0" ]
87
2020-08-07T09:05:11.000Z
2022-01-24T00:48:22.000Z
annotation/helpers/helpers/extract_noise.py
jim-schwoebel/allie
d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e
[ "Apache-2.0" ]
87
2020-08-07T19:12:10.000Z
2022-02-08T14:46:34.000Z
annotation/helpers/helpers/extract_noise.py
jim-schwoebel/allie
d85db041b91c81dfb3fd1a4d719b5aaaf3b6697e
[ "Apache-2.0" ]
25
2020-08-07T20:03:08.000Z
2022-03-16T07:33:25.000Z
import shutil, os, random from pydub import AudioSegment try: os.mkdir('noise') except: shutil.rmtree('noise') os.mkdir('noise') def extract_noise(filename, length): song = AudioSegment.from_mp3(filename) first = song[100:100+length] first.export(filename[0:-4]+'_noise.mp3') shutil.move(os.getcwd()+'/'+filename[...
27.548387
108
0.688525
134
854
4.343284
0.358209
0.068729
0.051546
0.07732
0.237113
0.120275
0.120275
0.120275
0.120275
0.120275
0
0.04047
0.103045
854
30
109
28.466667
0.719321
0
0
0.266667
0
0
0.122951
0
0
0
0
0
0
1
0.033333
false
0
0.066667
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7b248b5ee36bb65d830c7b56e66b0b390aa45baa
1,030
py
Python
ARMODServers/Apps/Apiv2/urls.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
1
2021-11-04T09:03:27.000Z
2021-11-04T09:03:27.000Z
ARMODServers/Apps/Apiv2/urls.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
null
null
null
ARMODServers/Apps/Apiv2/urls.py
Phantomxm2021/ARMOD-Dashboard
383cf0a5e72dc5a2651f43e693f06773d5b88bbd
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from Apps.Apiv2.views import GetARResourcesView, GetARExperienceDetailView from Apps.Apiv2.views import GetTagListView,GetARExperienceRecommendList,GetARExperiencePublicListView,GetARExperiencesView from Apps.Apiv2.views import GetARexperienceByTagsListView app_name = 'Apps.Users' urlp...
60.588235
123
0.794175
91
1,030
8.901099
0.373626
0.034568
0.08642
0.066667
0.160494
0.071605
0
0
0
0
0
0.004233
0.082524
1,030
17
124
60.588235
0.85291
0.006796
0
0
0
0
0.272994
0.142857
0
0
0
0
0
1
0
false
0
0.285714
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