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
be30c6f12931ff680481e45af1a532c7eab58cb2
1,089
py
Python
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
5
2017-10-23T13:13:09.000Z
2018-05-07T14:38:47.000Z
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
2
2018-04-18T08:15:52.000Z
2018-05-17T11:32:47.000Z
pyvmu/messages.py
JosephRedfern/VarienseVMU
e27c05a83124e024cd049b10f7d682f7f41a5c73
[ "MIT" ]
3
2017-09-06T18:05:21.000Z
2018-11-21T13:08:16.000Z
from collections import namedtuple Accelerometer = namedtuple('Accelerometer', ["timestamp", "x", "y", "z"]) Magnetometer = namedtuple('Magnetometer', ['timestamp', 'x', 'y', 'z']) Gyroscope = namedtuple('Gyroscope', ['timestamp', 'x', 'y', 'z']) Euler = namedtuple('Euler', ['timestamp', 'x', 'y', 'z']) Quaternion = ...
45.375
73
0.486685
73
1,089
7.082192
0.328767
0.019342
0.029014
0.092843
0
0
0
0
0
0
0
0
0.371901
1,089
23
74
47.347826
0.755848
0
0
0
0
0
0.337006
0.101928
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be313f1e475a00f009ff53d9286703681a5859de
2,847
py
Python
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/python-projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
2
2021-10-19T06:17:33.000Z
2021-10-19T06:17:37.000Z
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/Python-Projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
4
2021-10-19T06:04:36.000Z
2021-10-19T11:42:57.000Z
scripts/Caesar-Cipher/CaesarCipher.py
Pythobit/Python-Projects
1a6ee3f0f417846626dfa021af49c999771a0199
[ "MIT" ]
1
2021-10-19T06:55:26.000Z
2021-10-19T06:55:26.000Z
from __future__ import print_function import os import string import argparse try: maketrans = string.maketrans # python2 except AttributeError: maketrans = str.maketrans # python3 def caeser_cipher(string_: str, offset: int, decode: bool, file_: string) -> None: """Caeser Cipher implementation, reads ...
30.945652
88
0.663505
341
2,847
5.346041
0.375367
0.036204
0.032913
0.027427
0.039495
0
0
0
0
0
0
0.005034
0.232525
2,847
91
89
31.285714
0.829291
0.184053
0
0.032258
0
0
0.121854
0
0
0
0
0
0
1
0.032258
false
0
0.064516
0
0.112903
0.048387
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be31bc2fba335d1b861c92be573990bfd80133fd
8,217
py
Python
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/libs/permissions.py
BuildAMovement/whistler-kobocat
7f61dd0761bb0aa5b27c909bcff8c29453d3311d
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
from collections import defaultdict from django.contrib.contenttypes.models import ContentType from guardian.shortcuts import ( assign_perm, remove_perm, get_perms, get_users_with_perms) from onadata.apps.api.models import OrganizationProfile from onadata.apps.main.models.user_profile import UserProfi...
31.848837
77
0.69271
933
8,217
5.745981
0.150054
0.052229
0.028726
0.06883
0.415035
0.342846
0.271218
0.225145
0.216937
0.194926
0
0.000156
0.222344
8,217
257
78
31.972763
0.838811
0.086285
0
0.350785
0
0
0.06298
0.019016
0
0
0
0
0
1
0.041885
false
0
0.036649
0
0.230366
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be330b0c9754c05467f2b02c3762c1390226f3d3
10,078
py
Python
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
lanelines.py
gauborg/lane-finding-gborgaonkar
466313a0da7c245e25f0987afa953300501d5322
[ "MIT" ]
null
null
null
# Self-Driving Car Engineer Nanodegree # # ## Project: **Finding Lane Lines on the Road** # ## Import Packages #importing some useful packages import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import cv2 import math import moviepy image = mpimg.imread('test_images/solidWhiteRight...
36.514493
137
0.682675
1,498
10,078
4.489319
0.269025
0.010409
0.006543
0.008327
0.099033
0.071078
0.018141
0.013086
0.013086
0.013086
0
0.023149
0.224152
10,078
275
138
36.647273
0.836936
0.503671
0
0.04
0
0
0.070414
0.047932
0
0
0
0.003636
0
1
0.09
false
0.01
0.1
0
0.27
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be368e6b255149306c28292dd49ca28ab1a75535
553
py
Python
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
network/pytorch2onnx.py
MRsoymilk/toy-car
5bd51bf231781a17e1d7acb4654c3d4b6adbed41
[ "MIT" ]
null
null
null
import Net import configparser import torch from PIL import Image config = configparser.ConfigParser() config.read('./config.ini') MODEL = config.get("Network", "Model") transformations = Net.transformations net = Net.Net() net.eval() net.load_state_dict(torch.load(MODEL)) image = Image.open("./html/rwby.jpg") imag...
19.068966
49
0.703436
72
553
5.347222
0.541667
0.046753
0.046753
0
0
0
0
0
0
0
0
0.002079
0.130199
553
28
50
19.75
0.798337
0
0
0
0
0
0.106691
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be385b749f1c26b913c643d471ca79a2fd89e72b
724
py
Python
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/r-gridextra/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGridextra(RPackage): """Miscellaneous Functions for "Grid" Graphics. Provides a numb...
34.47619
95
0.754144
85
724
6.411765
0.8
0.044037
0
0
0
0
0
0
0
0
0
0.169903
0.146409
724
20
96
36.2
0.711974
0.524862
0
0
0
0
0.495413
0.391437
0
0
0
0
0
1
0
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be387cca53cfcab985ce1dca7b42033320d21418
2,707
py
Python
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
tuframework/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py
Magnety/tuFramework
b31cb34d476ef306b52da955021f93c91c14ddf4
[ "Apache-2.0" ]
null
null
null
import torch from tuframework.network_architecture.generic_UNet import Generic_UNet from tuframework.network_architecture.initialization import InitWeights_He from tuframework.training.network_training.tuframework_variants.data_augmentation.tuframeworkTrainerV2_insaneDA import \ tuframeworkTrainerV2_insaneDA from t...
44.377049
120
0.663465
345
2,707
4.828986
0.33913
0.062425
0.085834
0.132653
0.235294
0.186074
0.084034
0.084034
0
0
0
0.021047
0.24529
2,707
60
121
45.116667
0.79442
0
0
0
0
0
0.121451
0.078864
0
0
0
0
0
1
0.044444
false
0
0.133333
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
be3baf27f812f65c9b958afcfa252dbaf8d5e093
3,088
py
Python
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
ansible/playbooks/roles/repository/files/download-requirements/src/command/yum.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
from typing import List from src.command.command import Command class Yum(Command): """ Interface for `yum` """ def __init__(self, retries: int): super().__init__('yum', retries) def update(self, enablerepo: str, package: str = None, disablerepo...
27.81982
66
0.51943
346
3,088
4.508671
0.254335
0.063462
0.038462
0.04359
0.291667
0.260897
0.228846
0.198077
0.175641
0.175641
0
0.001019
0.364313
3,088
110
67
28.072727
0.793683
0.152526
0
0.196721
0
0
0.077391
0.02107
0
0
0
0
0
1
0.163934
false
0
0.032787
0
0.311475
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be4037367a1afa83a7501ca75f082c616c63c62c
625
py
Python
ros_tf_publisher.py
BrightLamp/PyLearningCodes
ed237528c41ab2a9832b88806732097ffae0a0ed
[ "MIT" ]
null
null
null
ros_tf_publisher.py
BrightLamp/PyLearningCodes
ed237528c41ab2a9832b88806732097ffae0a0ed
[ "MIT" ]
null
null
null
ros_tf_publisher.py
BrightLamp/PyLearningCodes
ed237528c41ab2a9832b88806732097ffae0a0ed
[ "MIT" ]
null
null
null
# encoding=utf-8 import rospy import tf if __name__ == '__main__': rospy.init_node('py_tf_broadcaster') br = tf.TransformBroadcaster() x = 0.0 y = 0.0 z = 0.0 roll = 0 pitch = 0 yaw = 1.57 rate = rospy.Rate(1) while not rospy.is_shutdown(): yaw = yaw + 0.1 roll...
24.038462
84
0.5104
76
625
3.973684
0.565789
0.019868
0
0
0
0
0
0
0
0
0
0.046272
0.3776
625
25
85
25
0.730077
0.0608
0
0
0
0
0.078767
0
0
0
0
0
0
1
0
false
0
0.095238
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
be40e740adf7c24c5c205687723b024d4eaf9752
2,674
py
Python
dataset_manager/technical_indicators.py
NightingaleV/bakalarska_prace-ann-algotrading
07866e092cb527a7e1d9d7050790d9ffd611dc83
[ "MIT" ]
null
null
null
dataset_manager/technical_indicators.py
NightingaleV/bakalarska_prace-ann-algotrading
07866e092cb527a7e1d9d7050790d9ffd611dc83
[ "MIT" ]
null
null
null
dataset_manager/technical_indicators.py
NightingaleV/bakalarska_prace-ann-algotrading
07866e092cb527a7e1d9d7050790d9ffd611dc83
[ "MIT" ]
null
null
null
# Imports import numpy as np class TechnicalIndicators: cci_constant = 0.015 def __init__(self): self.df = None # Exponentially-weighted moving average def ewma(self, periods): indicator = 'EWMA{}'.format(periods) self.df[indicator] = self.df['close'].ewm(span=periods).mean()...
31.093023
71
0.5819
336
2,674
4.502976
0.247024
0.071381
0.051553
0.074025
0.23265
0.153338
0.153338
0.10575
0.048909
0.048909
0
0.011488
0.283844
2,674
85
72
31.458824
0.77859
0.060583
0
0.338462
0
0
0.024351
0
0
0
0
0
0
1
0.153846
false
0
0.015385
0
0.338462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be44513cd298d38b88ee6e7730ed73cc8a97d105
5,979
py
Python
parlai/agents/drqa/config.py
shagunsodhani/ParlAI
5b634b844807372adfb0f6d6e5c42341ac8138f0
[ "BSD-3-Clause" ]
1
2017-06-26T07:46:33.000Z
2017-06-26T07:46:33.000Z
parlai/agents/drqa/config.py
shagunsodhani/ParlAI
5b634b844807372adfb0f6d6e5c42341ac8138f0
[ "BSD-3-Clause" ]
null
null
null
parlai/agents/drqa/config.py
shagunsodhani/ParlAI
5b634b844807372adfb0f6d6e5c42341ac8138f0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. import os import sys import...
51.102564
80
0.616993
754
5,979
4.742706
0.29443
0.098434
0.138702
0.031879
0.22623
0.142338
0.142338
0.074664
0.045302
0.025168
0
0.011261
0.257401
5,979
116
81
51.543103
0.794144
0.100184
0
0.022222
0
0
0.342655
0.004847
0
0
0
0
0
1
0.044444
false
0.011111
0.033333
0.011111
0.088889
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be451a5cb8b5c7262021b6003b4a6ffdd2ef5a5f
424
py
Python
run.py
pome-ta/CodeMirror
ef39c3032ea128d988c263ed97851860db9f977c
[ "MIT" ]
null
null
null
run.py
pome-ta/CodeMirror
ef39c3032ea128d988c263ed97851860db9f977c
[ "MIT" ]
null
null
null
run.py
pome-ta/CodeMirror
ef39c3032ea128d988c263ed97851860db9f977c
[ "MIT" ]
null
null
null
""" Pythonista3 app CodeMirror """ import pythonista.wkwebview as wkwebview import ui import pathlib uri = pathlib.Path('./main_index.html') class View(ui.View): def __init__(self): self.wv = wkwebview.WKWebView(flex='WH') self.wv.load_url(str(uri)) self.add_subview(self.wv) def will_close(self): ...
16.96
60
0.707547
58
424
4.982759
0.62069
0.083045
0.069204
0
0
0
0
0
0
0
0
0.002755
0.143868
424
24
61
17.666667
0.793388
0.061321
0
0
0
0
0.095116
0
0
0
0
0
0
1
0.153846
false
0
0.230769
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be47dbc95464f47bb2c554b62349cf2699343260
1,868
py
Python
search/tests/test_read_similarities.py
cotsog/pathways-backend
9231731359fc97833dbdbca33ac23eebeac4f715
[ "BSD-3-Clause" ]
null
null
null
search/tests/test_read_similarities.py
cotsog/pathways-backend
9231731359fc97833dbdbca33ac23eebeac4f715
[ "BSD-3-Clause" ]
null
null
null
search/tests/test_read_similarities.py
cotsog/pathways-backend
9231731359fc97833dbdbca33ac23eebeac4f715
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from search.read_similarities import build_manual_similarity_map from common.testhelpers.random_test_values import a_string, a_float class TestReadingManualTaskSimilarities(TestCase): def test_convert_matrix_to_map_from_topic_to_array_of_services(self): data = [ ...
32.206897
81
0.571734
165
1,868
6.121212
0.30303
0.110891
0.10396
0.118812
0.619802
0.619802
0.514851
0.348515
0.348515
0.348515
0
0.029253
0.304604
1,868
57
82
32.77193
0.748268
0
0
0.538462
0
0
0.147752
0
0
0
0
0
0.076923
1
0.076923
false
0
0.057692
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be47eadfdaf03e7261eb7070f1efcdf27e299506
7,535
py
Python
fortuna/fortuna.py
Zabamund/HackCPH18
3855547824c6277ca6f4e7b97c3ad0b3829e266b
[ "MIT" ]
3
2018-06-09T08:03:31.000Z
2018-11-23T20:18:06.000Z
fortuna/fortuna.py
Zabamund/HackCPH18
3855547824c6277ca6f4e7b97c3ad0b3829e266b
[ "MIT" ]
1
2020-03-30T20:23:17.000Z
2020-03-30T20:23:17.000Z
fortuna/fortuna.py
Zabamund/HackCPH18
3855547824c6277ca6f4e7b97c3ad0b3829e266b
[ "MIT" ]
2
2018-06-09T06:45:53.000Z
2018-06-09T15:36:36.000Z
""" Fortuna Python project to visualize uncertatinty in probabilistic exploration models. Created on 09/06/2018 @authors: Natalia Shchukina, Graham Brew, Marco van Veen, Behrooz Bashokooh, Tobias Stål, Robert Leckenby """ # Import libraries import numpy as np import glob from matplotlib import pyplot as plt import...
34.56422
145
0.584871
1,034
7,535
4.141199
0.259188
0.029426
0.035965
0.023354
0.226997
0.159972
0.146193
0.131714
0.100887
0.082205
0
0.014424
0.30073
7,535
218
146
34.56422
0.798254
0.228666
0
0.056075
0
0
0.0356
0.020114
0
0
0
0.004587
0
1
0.102804
false
0
0.084112
0.009346
0.252336
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be47eb6ac22a5716a180d2587e75ad448943ea4f
1,104
py
Python
resize.py
Linx3/6.867-Final-Project
374d7093159be0bc524b291bacad52741f6bdc95
[ "MIT" ]
3
2019-12-27T12:18:29.000Z
2020-02-10T22:40:36.000Z
resize.py
Linx3/6.867-Final-Project
374d7093159be0bc524b291bacad52741f6bdc95
[ "MIT" ]
null
null
null
resize.py
Linx3/6.867-Final-Project
374d7093159be0bc524b291bacad52741f6bdc95
[ "MIT" ]
2
2019-12-29T02:11:29.000Z
2020-02-10T19:49:41.000Z
from PIL import Image # open an image file (.bmp,.jpg,.png,.gif) you have in the working folder # //imageFile = "03802.png" import os arr=os.listdir() for imageFile in arr: if "png" in imageFile: im1 = Image.open(imageFile) # adjust width and height to your needs width = 416 heigh...
36.8
113
0.600543
141
1,104
4.702128
0.475177
0.054299
0.084465
0.120664
0.15083
0
0
0
0
0
0
0.038799
0.276268
1,104
29
114
38.068966
0.790989
0.566123
0
0
0
0
0.017316
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be4ff442cd8f9b517de533a73d5af1571d1d4790
2,517
py
Python
src/pipeline/sentence-retrieval/run.py
simonepri/fever-transformers
3e9c57b0b4e781f318438d48589a56db709124c4
[ "MIT" ]
8
2020-05-03T08:40:24.000Z
2022-01-25T18:47:44.000Z
src/pipeline/sentence-retrieval/run.py
simonepri/fever-transformers
3e9c57b0b4e781f318438d48589a56db709124c4
[ "MIT" ]
null
null
null
src/pipeline/sentence-retrieval/run.py
simonepri/fever-transformers
3e9c57b0b4e781f318438d48589a56db709124c4
[ "MIT" ]
3
2020-05-02T20:21:45.000Z
2022-01-25T18:48:28.000Z
#!/usr/bin/env python3 import argparse import bisect import csv import json import os from collections import defaultdict from functools import reduce from tqdm import tqdm def get_best_evidence(scores_file, max_sentences_per_claim): weighted_claim_evidence = defaultdict(lambda: []) with open(scores_file, "...
40.596774
109
0.65594
355
2,517
4.408451
0.276056
0.049201
0.107348
0.089457
0.31246
0.201917
0.139297
0.099681
0.099681
0.042173
0
0.00359
0.225268
2,517
61
110
41.262295
0.798974
0.008343
0
0
0
0
0.076954
0.01002
0
0
0
0
0
1
0.04
false
0
0.16
0
0.22
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be514c5db015a36e1e21cf77afc4f28e841509a0
4,455
py
Python
bot/__main__.py
KOTBOTS/Telegram-CloneBot
446d66ba46817f784e8de2b8bd2966865ee1965f
[ "MIT" ]
1
2021-11-10T05:06:00.000Z
2021-11-10T05:06:00.000Z
bot/__main__.py
KOTBOTS/Telegram-CloneBot
446d66ba46817f784e8de2b8bd2966865ee1965f
[ "MIT" ]
null
null
null
bot/__main__.py
KOTBOTS/Telegram-CloneBot
446d66ba46817f784e8de2b8bd2966865ee1965f
[ "MIT" ]
1
2022-01-30T08:50:28.000Z
2022-01-30T08:50:28.000Z
from telegram.ext import CommandHandler, run_async from bot.gDrive import GoogleDriveHelper from bot.fs_utils import get_readable_file_size from bot import LOGGER, dispatcher, updater, bot from bot.config import BOT_TOKEN, OWNER_ID, GDRIVE_FOLDER_ID from bot.decorators import is_authorised, is_owner from telegram.error...
40.87156
265
0.655892
557
4,455
5.166966
0.387792
0.017026
0.022238
0.028145
0
0
0
0
0
0
0
0.005811
0.227385
4,455
108
266
41.25
0.82423
0.0422
0
0.130435
0
0.043478
0.298921
0.062412
0
0
0
0.009259
0
1
0.076087
false
0.01087
0.108696
0
0.206522
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be520ba7720ed297f3538b6906896f4c66ca61d8
8,180
py
Python
src/pyfinlab/risk_models.py
AnaSan27/pyfinlab
509cc9544af5e1a5b2b642eca9ae02d383dd743c
[ "BSD-3-Clause" ]
1
2021-10-05T19:34:34.000Z
2021-10-05T19:34:34.000Z
src/pyfinlab/risk_models.py
AnaSan27/pyfinlab
509cc9544af5e1a5b2b642eca9ae02d383dd743c
[ "BSD-3-Clause" ]
null
null
null
src/pyfinlab/risk_models.py
AnaSan27/pyfinlab
509cc9544af5e1a5b2b642eca9ae02d383dd743c
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np from portfoliolab.utils import RiskMetrics from portfoliolab.estimators import RiskEstimators from pypfopt import risk_models as risk_models_ """ Available covariance risk models in PortfolioLab library. https://hudson-and-thames-portfoliolab-pro.readthedocs-hosted.com/en/latest...
49.575758
121
0.718093
895
8,180
6.192179
0.193296
0.083724
0.083003
0.081198
0.68044
0.631
0.588777
0.588777
0.488993
0.477806
0
0.007446
0.195477
8,180
164
122
49.878049
0.834676
0.178484
0
0.211009
0
0
0.203486
0.144021
0
0
0
0
0
1
0.009174
false
0
0.045872
0
0.073395
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be55e1c8b12cbd1b4bd83120c737d0990e906ce2
3,223
py
Python
citywok_ms/employee/routes.py
fossabot/CityWok-Manager
ccd31eb684ddeec5c741c9520c779d98eb0e3cc6
[ "MIT" ]
null
null
null
citywok_ms/employee/routes.py
fossabot/CityWok-Manager
ccd31eb684ddeec5c741c9520c779d98eb0e3cc6
[ "MIT" ]
null
null
null
citywok_ms/employee/routes.py
fossabot/CityWok-Manager
ccd31eb684ddeec5c741c9520c779d98eb0e3cc6
[ "MIT" ]
null
null
null
from citywok_ms.file.models import EmployeeFile, File import citywok_ms.employee.messages as employee_msg import citywok_ms.file.messages as file_msg from citywok_ms.employee.forms import EmployeeForm from citywok_ms.file.forms import FileForm from flask import Blueprint, flash, redirect, render_template, url_for from ...
33.926316
85
0.714552
413
3,223
5.317191
0.169492
0.10929
0.090164
0.045537
0.448998
0.386157
0.290528
0.275046
0.275046
0.255009
0
0.005547
0.16103
3,223
94
86
34.287234
0.806583
0
0
0.207792
0
0
0.113249
0.031958
0
0
0
0
0
1
0.090909
false
0
0.090909
0.025974
0.298701
0.025974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be5634f2d2873fa0b75fded2fda0cc44792517a3
9,041
py
Python
kitsune/customercare/cron.py
safwanrahman/Ford
87e91dea1cc22b1759eea81cef069359ccb5cd0b
[ "BSD-3-Clause" ]
1
2017-07-03T12:11:03.000Z
2017-07-03T12:11:03.000Z
kitsune/customercare/cron.py
feer56/Kitsune1
0b39cbc41cb7a067699ce8401d80205dd7c5138d
[ "BSD-3-Clause" ]
8
2020-06-05T18:42:14.000Z
2022-03-11T23:26:51.000Z
kitsune/customercare/cron.py
safwanrahman/Ford
87e91dea1cc22b1759eea81cef069359ccb5cd0b
[ "BSD-3-Clause" ]
null
null
null
import calendar from datetime import datetime, timedelta import json import logging import re import rfc822 from django.conf import settings from django.db.utils import IntegrityError import cronjobs from multidb.pinning import pin_this_thread from statsd import statsd from twython import Twython from kitsune.custom...
32.289286
79
0.605243
1,086
9,041
4.892265
0.314917
0.018822
0.037267
0.045737
0.121024
0.056465
0.042914
0.032373
0.032373
0.032373
0
0.0127
0.294547
9,041
279
80
32.405018
0.82032
0.203075
0
0.153846
0
0
0.140833
0.054673
0
0
0
0
0
1
0.035503
false
0.005917
0.088757
0
0.213018
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be5b35007ab39510b966782ec2dccb27e2f0b068
2,429
py
Python
checkAnnotation.py
ZZIDZZ/pytorch-ssd
8d3ad092825d6f05b8a3fa7c25be7b541bf86ed9
[ "MIT" ]
null
null
null
checkAnnotation.py
ZZIDZZ/pytorch-ssd
8d3ad092825d6f05b8a3fa7c25be7b541bf86ed9
[ "MIT" ]
null
null
null
checkAnnotation.py
ZZIDZZ/pytorch-ssd
8d3ad092825d6f05b8a3fa7c25be7b541bf86ed9
[ "MIT" ]
null
null
null
import argparse import sys import cv2 import os import os.path as osp import numpy as np if sys.version_info[0] == 2: import xml.etree.cElementTree as ET else: import xml.etree.ElementTree as ET parser = argparse.ArgumentParser( description='Single Shot MultiBox Detector ...
29.987654
84
0.588308
316
2,429
4.427215
0.43038
0.01787
0.03431
0.048606
0.15797
0.12223
0.08792
0.067191
0.067191
0.067191
0
0.010463
0.252367
2,429
81
85
29.987654
0.759912
0.084809
0
0.035714
0
0
0.11908
0
0
0
0
0
0
1
0.017857
false
0
0.142857
0
0.178571
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be5d745da0aee12618b5456e7d8cbede2e23e222
656
py
Python
venv/lib/python3.7/site-packages/convertdate/dublin.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/convertdate/dublin.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/convertdate/dublin.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of convertdate. # http://github.com/fitnr/convertdate # Licensed under the MIT license: # http://opensource.org/licenses/MIT # Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal> '''Convert to and from the Dublin day count''' from . import daycount EPOCH = 2415020 # Juli...
19.878788
54
0.762195
94
656
5.053191
0.446809
0.067368
0
0
0
0
0
0
0
0
0
0.023091
0.141768
656
32
55
20.5
0.820604
0.4375
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be5e4769d08439109a7dee5ae6c729de8b3ba612
1,232
py
Python
code/generate_thought_vectors.py
midas-research/text2facegan
3770333f16234fc9328d8254d1c1112fad15a16c
[ "MIT" ]
23
2020-04-09T19:17:46.000Z
2021-04-13T13:46:06.000Z
code/generate_thought_vectors.py
midas-research/text2facegan
3770333f16234fc9328d8254d1c1112fad15a16c
[ "MIT" ]
3
2020-02-16T16:21:38.000Z
2021-05-22T13:18:57.000Z
code/generate_thought_vectors.py
midas-research/text2facegan
3770333f16234fc9328d8254d1c1112fad15a16c
[ "MIT" ]
7
2020-02-27T22:27:33.000Z
2021-03-16T06:03:32.000Z
import os from os.path import join, isfile import re import numpy as np import pickle import argparse import skipthoughts import h5py def main(): parser = argparse.ArgumentParser() #parser.add_argument('--caption_file', type=str, default='Data/sample_captions.txt', # help='caption file') parser.add_argumen...
30.8
115
0.728896
175
1,232
4.92
0.36
0.063879
0.078978
0.052265
0.470383
0.470383
0.470383
0.470383
0.311266
0.123113
0
0.005576
0.126623
1,232
40
116
30.8
0.79461
0.160714
0
0
0
0
0.230844
0.165858
0
0
0
0
0
1
0.035714
false
0
0.285714
0
0.321429
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be5f92734068facbaab6ebcd59a70aae8bdb395f
415
py
Python
venv/Lib/site-packages/mcipc/rcon/response_types/difficulty.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/response_types/difficulty.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
venv/Lib/site-packages/mcipc/rcon/response_types/difficulty.py
Svesnav2/Discord-Bot-Minecraft-server-status
ee34948e741930567a3adb557197523f9d32ace1
[ "Unlicense" ]
null
null
null
"""Parsing responses from the difficulty command.""" from mcipc.rcon.functions import boolmap __all__ = ['parse'] SET = 'The difficulty has been set to (\\w+)' UNCHANGED = 'The difficulty did not change; it is already set to (\\w+)' def parse(text: str) -> bool: """Parses a boolean value from the text re...
21.842105
72
0.684337
58
415
4.827586
0.655172
0.185714
0.142857
0
0
0
0
0
0
0
0
0
0.195181
415
18
73
23.055556
0.838323
0.286747
0
0
0
0
0.362319
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be6134b8d63935100cb7803033cbd22148a4202a
1,558
py
Python
eth/beacon/aggregation.py
Bhargavasomu/py-evm
ee8f72d5a70805575a967cde0a43942e1526264e
[ "MIT" ]
null
null
null
eth/beacon/aggregation.py
Bhargavasomu/py-evm
ee8f72d5a70805575a967cde0a43942e1526264e
[ "MIT" ]
null
null
null
eth/beacon/aggregation.py
Bhargavasomu/py-evm
ee8f72d5a70805575a967cde0a43942e1526264e
[ "MIT" ]
null
null
null
from typing import ( Iterable, Tuple, ) from cytoolz import ( pipe ) from eth._utils import bls from eth._utils.bitfield import ( set_voted, ) from eth.beacon.enums import SignatureDomain from eth.beacon.typing import ( BLSPubkey, BLSSignature, Bitfield, CommitteeIndex, ) def verify_v...
23.253731
68
0.662388
165
1,558
6.072727
0.315152
0.06986
0.023952
0.045908
0.0998
0
0
0
0
0
0
0
0.245186
1,558
66
69
23.606061
0.852041
0.085366
0
0
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0.12
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
be6143e65d151cdd084aada126448567dcd0c1d7
7,090
py
Python
src/server/bos/controllers/v1/components.py
Cray-HPE/bos
a4a7fc58c884d951b6051093e1a4e2aeaba6740f
[ "MIT" ]
1
2022-03-15T18:17:11.000Z
2022-03-15T18:17:11.000Z
src/server/bos/controllers/v1/components.py
Cray-HPE/bos
a4a7fc58c884d951b6051093e1a4e2aeaba6740f
[ "MIT" ]
null
null
null
src/server/bos/controllers/v1/components.py
Cray-HPE/bos
a4a7fc58c884d951b6051093e1a4e2aeaba6740f
[ "MIT" ]
1
2022-03-06T12:47:06.000Z
2022-03-06T12:47:06.000Z
# Copyright 2021 Hewlett Packard Enterprise Development LP # # 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, modif...
36.173469
82
0.687729
914
7,090
5.199125
0.221007
0.071759
0.041667
0.05303
0.529672
0.492635
0.426347
0.369529
0.35101
0.35101
0
0.009847
0.226516
7,090
195
83
36.358974
0.856674
0.248237
0
0.569231
0
0
0.147104
0.005526
0
0
0
0.005128
0
1
0.092308
false
0
0.030769
0.007692
0.292308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be644a96343b814a2cf63e0bf374f535055ecf7e
6,856
py
Python
test/mitmproxy/addons/test_proxyserver.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
24,939
2015-01-01T17:13:21.000Z
2022-03-31T17:50:04.000Z
test/mitmproxy/addons/test_proxyserver.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
3,655
2015-01-02T12:31:43.000Z
2022-03-31T20:24:57.000Z
test/mitmproxy/addons/test_proxyserver.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
3,712
2015-01-06T06:47:06.000Z
2022-03-31T10:33:27.000Z
import asyncio from contextlib import asynccontextmanager import pytest from mitmproxy import exceptions from mitmproxy.addons.proxyserver import Proxyserver from mitmproxy.connection import Address from mitmproxy.proxy import layers, server_hooks from mitmproxy.proxy.layers.http import HTTPMode from mitmproxy.test i...
35.895288
111
0.622666
883
6,856
4.744054
0.235561
0.008594
0.006445
0.008594
0.499881
0.487945
0.412986
0.380998
0.318453
0.318453
0
0.01603
0.262981
6,856
190
112
36.084211
0.812982
0.024796
0
0.411765
0
0.013072
0.125671
0
0
0
0
0
0.104575
1
0.039216
false
0.006536
0.065359
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be64e074af6729b6171d5eed328bc46d2d983abb
19,608
py
Python
tensorflow_probability/python/distributions/masked.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "Apache-2.0" ]
1
2022-03-22T11:56:31.000Z
2022-03-22T11:56:31.000Z
tensorflow_probability/python/distributions/masked.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/masked.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.719149
88
0.708588
2,680
19,608
4.916791
0.172015
0.040981
0.015482
0.023526
0.257494
0.214237
0.166578
0.130379
0.099567
0.068984
0
0.006794
0.196807
19,608
469
89
41.808102
0.829894
0.375867
0
0.135659
0
0
0.055192
0.007392
0
0
0
0
0.027132
1
0.112403
false
0
0.042636
0.046512
0.337209
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be665e63998c0015bc21386a7c5b3385196a6cfb
5,403
py
Python
heuristic/improvement/reopt/disruption_updater.py
annalunde/master
2552d43713e8ebca0b0e57bc5bebd1eaeeac1875
[ "MIT" ]
1
2022-03-17T15:40:00.000Z
2022-03-17T15:40:00.000Z
heuristic/improvement/reopt/disruption_updater.py
annalunde/master
2552d43713e8ebca0b0e57bc5bebd1eaeeac1875
[ "MIT" ]
null
null
null
heuristic/improvement/reopt/disruption_updater.py
annalunde/master
2552d43713e8ebca0b0e57bc5bebd1eaeeac1875
[ "MIT" ]
null
null
null
import copy import pandas as pd from decouple import config from heuristic.construction.construction import ConstructionHeuristic from config.construction_config import * from simulation.simulator import Simulator from heuristic.improvement.reopt.new_request_updater import NewRequestUpdater class DisruptionUpdater: ...
40.931818
117
0.626504
631
5,403
5.026941
0.174326
0.167718
0.119798
0.137768
0.476671
0.395649
0.323455
0.311791
0.287201
0.254098
0
0.014214
0.296872
5,403
131
118
41.244275
0.820742
0.057561
0
0.274725
0
0
0.01063
0
0
0
0
0
0
1
0.065934
false
0.021978
0.076923
0
0.208791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be6ac11cc08ea3cf2a70097fa4537b051b80fea9
834
py
Python
tests/test_pyqrcodeng_issue13.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
254
2016-09-25T21:32:00.000Z
2022-03-30T09:56:14.000Z
tests/test_pyqrcodeng_issue13.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
102
2016-08-04T12:18:44.000Z
2022-03-23T09:09:51.000Z
tests/test_pyqrcodeng_issue13.py
dbajar/segno
f7d5669537b12d3ebb914ae6d0a0a1e14f8d25f5
[ "BSD-3-Clause" ]
34
2016-09-25T21:34:42.000Z
2022-03-30T08:19:03.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016 - 2020 -- Lars Heuer # All rights reserved. # # License: BSD License # """\ Test against issue <https://github.com/pyqrcode/pyqrcodeNG/pull/13/>. The initial test was created by Mathieu <https://github.com/albatros69>, see the above mentioned pull request. Adapted for Se...
21.947368
72
0.681055
112
834
4.892857
0.625
0.04927
0.071168
0.069343
0.09854
0.09854
0
0
0
0
0
0.031065
0.189448
834
37
73
22.540541
0.779586
0.420863
0
0.25
0
0
0.09188
0
0
0
0
0
0.1875
1
0.125
false
0
0.1875
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be6f25ab250ddab2ab944a4c759bdf74b87010ce
12,251
py
Python
usaspending_api/download/lookups.py
lenjonemcse/usaspending-api
cbffc4e0a0c2b1339c7a8bfe6b0d687b3731b6ce
[ "CC0-1.0" ]
1
2022-01-28T16:08:04.000Z
2022-01-28T16:08:04.000Z
usaspending_api/download/lookups.py
lenjonemcse/usaspending-api
cbffc4e0a0c2b1339c7a8bfe6b0d687b3731b6ce
[ "CC0-1.0" ]
null
null
null
usaspending_api/download/lookups.py
lenjonemcse/usaspending-api
cbffc4e0a0c2b1339c7a8bfe6b0d687b3731b6ce
[ "CC0-1.0" ]
null
null
null
""" This file defines a series of constants that represent the values used in the API's "helper" tables. Rather than define the values in the db setup scripts and then make db calls to lookup the surrogate keys, we'll define everything here, in a file that can be used by the db setup scripts *and* the application code...
42.835664
105
0.691862
1,196
12,251
6.717391
0.231605
0.034852
0.029126
0.027384
0.499502
0.446975
0.369305
0.316281
0.258402
0.250436
0
0.008891
0.192066
12,251
285
106
42.985965
0.802788
0.060893
0
0.372549
0
0
0.459001
0.153377
0
0
0
0.003509
0
1
0
false
0
0.054902
0
0.054902
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be7401e08d215565703c4b9fa33b7d5e7ca05a69
8,827
py
Python
src/evaluation_utils.py
philipp-hess/deep-learning-for-heavy-rainfall
dbec03245dd8db0c5f2f53af014b8dd8d80f245c
[ "MIT" ]
null
null
null
src/evaluation_utils.py
philipp-hess/deep-learning-for-heavy-rainfall
dbec03245dd8db0c5f2f53af014b8dd8d80f245c
[ "MIT" ]
null
null
null
src/evaluation_utils.py
philipp-hess/deep-learning-for-heavy-rainfall
dbec03245dd8db0c5f2f53af014b8dd8d80f245c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from scipy.stats import spearmanr from sklearn.metrics import f1_score, precision_score, recall_score from IPython.display import display, clear_output from sklearn.metrics import confusion_matrix import scipy.stats as st def continuous_to_categorical_with_quantiles(data: np.nda...
32.814126
116
0.605528
1,097
8,827
4.713765
0.161349
0.01315
0.010636
0.017018
0.511893
0.471476
0.437826
0.415007
0.381551
0.355444
0
0.013408
0.290246
8,827
268
117
32.936567
0.811971
0.117934
0
0.343949
0
0
0.043931
0.0227
0
0
0
0
0
1
0.133758
false
0
0.044586
0.038217
0.299363
0.038217
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be74846aa8bb878ca4aaee267b213fd10335d381
1,709
py
Python
poloniex_apis/api_models/deposit_withdrawal_history.py
xJuggl3r/anapolo
5ffd87594c75575c5a19b9f47bf1b6606cfcdd1b
[ "MIT" ]
null
null
null
poloniex_apis/api_models/deposit_withdrawal_history.py
xJuggl3r/anapolo
5ffd87594c75575c5a19b9f47bf1b6606cfcdd1b
[ "MIT" ]
null
null
null
poloniex_apis/api_models/deposit_withdrawal_history.py
xJuggl3r/anapolo
5ffd87594c75575c5a19b9f47bf1b6606cfcdd1b
[ "MIT" ]
null
null
null
from collections import defaultdict from poloniex_apis.api_models.ticker_price import TickerData class DWHistory: def __init__(self, history): self.withdrawals = defaultdict(float) self.deposits = defaultdict(float) self.history = history def get_dw_history(self): for deposit...
39.744186
87
0.599181
176
1,709
5.664773
0.215909
0.090271
0.076229
0.088265
0.373119
0.373119
0.373119
0.174524
0.174524
0.094283
0
0.000828
0.293154
1,709
42
88
40.690476
0.824503
0
0
0.111111
0
0
0.075527
0
0
0
0
0
0
1
0.083333
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be748f98db9ba8c29d78f47f7af4dd25c01061b7
7,320
py
Python
app/handler.py
vnrag/aws-pipeline-dashboard
679af73f8e777990840bc829a014e205f0c94ac0
[ "BSD-3-Clause" ]
null
null
null
app/handler.py
vnrag/aws-pipeline-dashboard
679af73f8e777990840bc829a014e205f0c94ac0
[ "BSD-3-Clause" ]
null
null
null
app/handler.py
vnrag/aws-pipeline-dashboard
679af73f8e777990840bc829a014e205f0c94ac0
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime,timezone import sys import boto3 import json def pipeline_event(event, context): state = get_final_state(event) if state is None: return event_time = datetime.strptime(event['time'], '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=timezone.utc) metric_data = [] if eve...
35.882353
396
0.593579
781
7,320
5.419974
0.215109
0.049374
0.046775
0.051973
0.409875
0.364044
0.299551
0.24498
0.230806
0.206237
0
0.014917
0.26735
7,320
203
397
36.059113
0.77438
0.046995
0
0.246835
0
0.006329
0.246951
0.007462
0
0
0
0
0
1
0.044304
false
0
0.025316
0
0.126582
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be74f9e10e7b3e7db834044fe7d0389031a09884
4,507
py
Python
cogs/commands.py
sudo-do/discord-chatbot
970af7d8b9275a518396648ebe5c33c291370d6a
[ "MIT" ]
1
2021-05-14T08:01:53.000Z
2021-05-14T08:01:53.000Z
cogs/commands.py
sudo-do/discord-chatbot
970af7d8b9275a518396648ebe5c33c291370d6a
[ "MIT" ]
null
null
null
cogs/commands.py
sudo-do/discord-chatbot
970af7d8b9275a518396648ebe5c33c291370d6a
[ "MIT" ]
null
null
null
import discord import sqlite3 from discord.ext import commands conn= sqlite3.connect("dbs/main.db") class Commands(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() @commands.cooldown(1, 30, commands.BucketType.guild) @commands.has_permissions(manage_channels=True) async def setchann...
36.942623
292
0.676503
659
4,507
4.584219
0.2261
0.037074
0.055611
0.037074
0.533929
0.503807
0.465409
0.419398
0.419398
0.419398
0
0.00435
0.183936
4,507
121
293
37.247934
0.81702
0
0
0.55102
0
0.071429
0.421123
0
0
0
0
0
0
1
0.020408
false
0
0.030612
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be75b53bc3cf75e488408e710557a7588ee69c9c
6,210
py
Python
poetry/console/commands/self/update.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
poetry/console/commands/self/update.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
poetry/console/commands/self/update.py
mgasner/poetry
44221689e05feb0cc93c231096334f8eefbf86fc
[ "MIT" ]
null
null
null
import hashlib import os import shutil import subprocess import sys import tarfile from functools import cmp_to_key from gzip import GzipFile try: from urllib.error import HTTPError from urllib.request import urlopen except ImportError: from urllib2 import HTTPError from urllib2 import urlopen from c...
27.972973
90
0.54847
654
6,210
5.11315
0.311927
0.027213
0.026914
0.023923
0.163278
0.129785
0.102871
0.102871
0.102871
0.102871
0
0.005939
0.349275
6,210
221
91
28.099548
0.821579
0.01401
0
0.230303
0
0
0.11832
0.01095
0
0
0
0
0
1
0.048485
false
0
0.139394
0.018182
0.278788
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be7730b08647563bbdf351876a21f2fa9df7d7f9
3,765
py
Python
main.py
rohit-k-das/crowdstrike-alerts
48c23357f819f90134f76cefb58f1355967363d4
[ "MIT" ]
3
2019-07-10T17:05:56.000Z
2019-10-18T22:34:08.000Z
main.py
rohit-k-das/crowdstrike-alerts
48c23357f819f90134f76cefb58f1355967363d4
[ "MIT" ]
1
2020-01-09T14:43:58.000Z
2020-02-06T11:24:04.000Z
main.py
rohit-k-das/crowdstrike-alerts
48c23357f819f90134f76cefb58f1355967363d4
[ "MIT" ]
2
2019-07-10T17:05:57.000Z
2019-10-18T22:34:09.000Z
import requests import crowdstrike_detection as crowdstrike import logging import click import urllib.parse import ConfigParser import os logging.basicConfig(level=logging.INFO, format='%(asctime)s %(name)-15s [%(levelname)-8s]: %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') logger = logging.get...
41.373626
176
0.661355
468
3,765
5.136752
0.358974
0.047421
0.097338
0.027454
0.183028
0.094842
0.032446
0.032446
0.032446
0
0
0.004913
0.18911
3,765
90
177
41.833333
0.782509
0.043293
0
0.130435
0
0
0.253545
0.009174
0
0
0
0
0
1
0.028986
false
0
0.101449
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be775d3a62274c2c57f452dafb16e1035b3dff0c
4,593
py
Python
Test3/yandexAPI3.py
klepik1990/YandexTestAPI
ded41ff607c0b209b51efbcaa13c8008156a5e0a
[ "MIT" ]
null
null
null
Test3/yandexAPI3.py
klepik1990/YandexTestAPI
ded41ff607c0b209b51efbcaa13c8008156a5e0a
[ "MIT" ]
null
null
null
Test3/yandexAPI3.py
klepik1990/YandexTestAPI
ded41ff607c0b209b51efbcaa13c8008156a5e0a
[ "MIT" ]
null
null
null
import requests import json HEADERS = {"Authorization": "OAuth AgAAAAA00Se2AAW1W1yCegavqkretMXBGkoUUQk", "Accept": "*/*"} URL = "https://cloud-api.yandex.net:443/v1/disk/" def get_folder_info(folder_name_1, folder_name_2, url=None, headers=None): """Получение информации о статусе папок на диске Args: ...
33.282609
125
0.674069
581
4,593
5.118761
0.216867
0.114324
0.062878
0.057162
0.589106
0.514459
0.514459
0.463013
0.434095
0.414257
0
0.015695
0.223166
4,593
137
126
33.525547
0.817825
0.35184
0
0.044444
0
0
0.141917
0.022312
0
0
0
0
0.022222
1
0.155556
false
0
0.044444
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
be78c46e8b283fc835a189209cd53b3fea610e40
3,208
py
Python
app/users/operator/views.py
trinanda/AQUR
2a415b05ba4c0113b05b6fa14fb454af2bad52ec
[ "MIT" ]
null
null
null
app/users/operator/views.py
trinanda/AQUR
2a415b05ba4c0113b05b6fa14fb454af2bad52ec
[ "MIT" ]
null
null
null
app/users/operator/views.py
trinanda/AQUR
2a415b05ba4c0113b05b6fa14fb454af2bad52ec
[ "MIT" ]
null
null
null
import os from collections import defaultdict from flask import render_template from flask_login import login_required from sqlalchemy import and_ from app import db from app.decorators import operator_required from app.models import Student, MonthNameList, Course, PaymentStatus, Payment, Teacher, Schedule from app.u...
40.1
118
0.711658
428
3,208
5.088785
0.238318
0.049587
0.035813
0.040404
0.342975
0.224977
0.162534
0.137741
0.096419
0.065197
0
0.00079
0.211035
3,208
79
119
40.607595
0.859739
0.1649
0
0.067797
0
0
0.031449
0.013852
0
0
0
0
0
1
0.016949
false
0
0.152542
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be7e9dc9b18c9759a533f45fd2110a059eb361f0
19,192
py
Python
pfile/accessor.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
pfile/accessor.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
pfile/accessor.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
"""File access utils""" __author__ = 'thorwhalen' # from ut.datapath import datapath import pickle import os from ut.util.importing import get_environment_variable import pandas as pd import ut.pfile.to as file_to import ut.pfile.name as pfile_name import ut.pstr.to as pstr_to from ut.serialize.local import Local from...
41.90393
125
0.634275
2,458
19,192
4.650936
0.110252
0.036127
0.05677
0.039363
0.538838
0.460549
0.398268
0.363366
0.324615
0.278254
0
0.003295
0.240934
19,192
457
126
41.995624
0.781439
0.193935
0
0.289116
0
0
0.047029
0
0
0
0
0.002188
0
1
0.129252
false
0.003401
0.040816
0.02381
0.278912
0.013605
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be7ea94dc71a3948ab59fd9c3e80bde2599bb1f1
4,309
py
Python
scripts/statistics.py
cstenkamp/MastersThesisText
d026f9c19819c83d99dfff12b594db9d061bfb31
[ "CC0-1.0" ]
null
null
null
scripts/statistics.py
cstenkamp/MastersThesisText
d026f9c19819c83d99dfff12b594db9d061bfb31
[ "CC0-1.0" ]
null
null
null
scripts/statistics.py
cstenkamp/MastersThesisText
d026f9c19819c83d99dfff12b594db9d061bfb31
[ "CC0-1.0" ]
null
null
null
import subprocess import git from os.path import dirname, join, abspath import pandas as pd from matplotlib import pyplot as plt import requests import io import zipfile import tempfile from datetime import timedelta FILENAME = join(dirname(__file__), "..", "thesis.tex") DISP_PAGESMAX = 80 DISP_WORDSMAX = 10000 def ...
38.132743
144
0.637503
611
4,309
4.330606
0.319149
0.034014
0.021164
0.015117
0.080121
0.057445
0.023432
0
0
0
0
0.013486
0.191228
4,309
113
145
38.132743
0.745768
0.042933
0
0.022472
0
0
0.126306
0.012631
0
0
0
0.00885
0
1
0.078652
false
0
0.11236
0
0.269663
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be7ef9e5cafc81c92530c829cae514f567ffa39a
1,966
py
Python
setup.py
TheFraserLab/enrich_pvalues
6c5065da5e6367cc39a045afbdfa1e78322857a6
[ "MIT" ]
1
2019-03-25T17:38:47.000Z
2019-03-25T17:38:47.000Z
setup.py
TheFraserLab/enrich_pvalues
6c5065da5e6367cc39a045afbdfa1e78322857a6
[ "MIT" ]
null
null
null
setup.py
TheFraserLab/enrich_pvalues
6c5065da5e6367cc39a045afbdfa1e78322857a6
[ "MIT" ]
null
null
null
"""Installation instructions for enrich_pvalues.""" import os from setuptools import setup import enrich_pvalues # For version VERSION=enrich_pvalues.__version__ GITHUB='https://github.com/MikeDacre/enrich_pvalues' with open('requirements.txt') as fin: REQUIREMENTS = [ i[0] for i in [j.split('>=') for j...
28.085714
77
0.61648
214
1,966
5.551402
0.579439
0.087542
0.063131
0
0
0
0
0
0
0
0
0.005442
0.252289
1,966
69
78
28.492754
0.802721
0.127162
0
0.08
0
0
0.411176
0.013529
0
0
0
0
0
1
0.02
false
0
0.06
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
be8016a800ed48d86a67fbff5afe5ec6d0a2e6a3
2,173
py
Python
examples/source/benchmarks/googlenet_model.py
ably77/dcos-tensorflow-tools
d434ff6c0cee6db9f62be583723dc2bee46ebbf2
[ "Apache-2.0" ]
7
2017-11-02T18:21:37.000Z
2019-06-20T20:46:51.000Z
scripts/tf_cnn_benchmarks/googlenet_model.py
Aetf/tf_benchmarks
b473961620de1b03cb34902960c820e195bea678
[ "Apache-2.0" ]
7
2017-10-19T20:45:25.000Z
2020-03-24T15:28:52.000Z
scripts/tf_cnn_benchmarks/googlenet_model.py
Aetf/tf_benchmarks
b473961620de1b03cb34902960c820e195bea678
[ "Apache-2.0" ]
4
2017-10-19T09:57:17.000Z
2019-01-22T05:33:25.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.465517
80
0.61942
339
2,173
3.908555
0.433628
0.083019
0.10566
0.030189
0.181132
0.158491
0.128302
0.128302
0.113208
0.076981
0
0.13456
0.199724
2,173
57
81
38.122807
0.627372
0.42752
0
0.214286
0
0
0.058824
0
0
0
0
0
0
1
0.107143
false
0
0.035714
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be82ffa5bc528b97777e4e4160bb45aca2d0d6ec
12,669
py
Python
process_ops.py
gcosne/generative_inpainting
1ae50277e5815a4f0c1e339ede0dbfae8e5036d1
[ "MIT" ]
11
2018-11-16T04:29:06.000Z
2019-07-25T08:11:47.000Z
process_ops.py
Yukariin/PEPSI
91aea1ae6f528d92ee19007ed132d3482b3a98cc
[ "MIT" ]
null
null
null
process_ops.py
Yukariin/PEPSI
91aea1ae6f528d92ee19007ed132d3482b3a98cc
[ "MIT" ]
1
2019-07-16T18:52:49.000Z
2019-07-16T18:52:49.000Z
import cv2 import numpy as np try: import scipy # scipy.ndimage cannot be accessed until explicitly imported from scipy import ndimage except ImportError: scipy = None def flip_axis(x, axis): x = np.asarray(x).swapaxes(axis, 0) x = x[::-1, ...] x = x.swapaxes(0, axis) return x def r...
38.861963
127
0.591207
1,697
12,669
4.26046
0.120801
0.03361
0.022822
0.03112
0.575242
0.539972
0.529046
0.513416
0.477593
0.477593
0
0.019158
0.311943
12,669
325
128
38.981538
0.810256
0.324809
0
0.278947
0
0
0.03255
0
0
0
0
0
0
1
0.052632
false
0
0.042105
0
0.147368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be84323ccf5c7d5239ba7b3bf5eba0ad7152ce2f
2,927
py
Python
fasm2bels/database/connection_db_utils.py
mithro/symbiflow-xc-fasm2bels
9ed029558bedca4e726969427dc4e62ecd6d5733
[ "ISC" ]
null
null
null
fasm2bels/database/connection_db_utils.py
mithro/symbiflow-xc-fasm2bels
9ed029558bedca4e726969427dc4e62ecd6d5733
[ "ISC" ]
null
null
null
fasm2bels/database/connection_db_utils.py
mithro/symbiflow-xc-fasm2bels
9ed029558bedca4e726969427dc4e62ecd6d5733
[ "ISC" ]
null
null
null
import functools def create_maybe_get_wire(conn): c = conn.cursor() @functools.lru_cache(maxsize=None) def get_tile_type_pkey(tile): c.execute('SELECT pkey, tile_type_pkey FROM phy_tile WHERE name = ?', (tile, )) return c.fetchone() @functools.lru_cache(maxsize=None...
21.364964
86
0.618039
417
2,927
4.031175
0.139089
0.080904
0.071386
0.066627
0.51517
0.468174
0.320048
0.166568
0.166568
0.1047
0
0.006173
0.280492
2,927
136
87
21.522059
0.792023
0
0
0.307692
0
0
0.155575
0
0
0
0
0
0.030769
1
0.138462
false
0
0.015385
0
0.323077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be84a1cf98701b670f1ef999229373bd7e2f389c
2,443
py
Python
ppr-api/src/services/payment_service.py
bcgov/ppr-deprecated
c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3
[ "Apache-2.0" ]
1
2019-11-15T19:07:25.000Z
2019-11-15T19:07:25.000Z
ppr-api/src/services/payment_service.py
bryan-gilbert/ppr
c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3
[ "Apache-2.0" ]
6
2021-03-03T05:18:35.000Z
2022-02-10T21:55:45.000Z
ppr-api/src/services/payment_service.py
bcgov/ppr-deprecated
c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3
[ "Apache-2.0" ]
null
null
null
"""A module that provides functionality for accessing the Payments API.""" import enum import http import logging import requests from fastapi import Depends, Header, HTTPException from fastapi.security.http import HTTPAuthorizationCredentials import auth.authentication import config import schemas.payment logger ...
35.405797
110
0.677855
269
2,443
5.981413
0.423792
0.054692
0.034804
0.039155
0.12803
0.12803
0.085768
0.085768
0.085768
0.085768
0
0
0.22718
2,443
68
111
35.926471
0.852225
0.149406
0
0.043478
0
0
0.138889
0
0
0
0
0
0
1
0.043478
false
0
0.195652
0
0.413043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be87bd0c5c2ff868bb6a502f0a693e022ddbbafe
1,049
py
Python
logger_decorator.py
jbhayback/reconciliation-manager
5de10a0ec89e397a4937d1764976c94cde06beee
[ "MIT" ]
null
null
null
logger_decorator.py
jbhayback/reconciliation-manager
5de10a0ec89e397a4937d1764976c94cde06beee
[ "MIT" ]
null
null
null
logger_decorator.py
jbhayback/reconciliation-manager
5de10a0ec89e397a4937d1764976c94cde06beee
[ "MIT" ]
null
null
null
from datetime import datetime import inspect def log_time(msg=None): def decorator(f): nonlocal msg if msg is None: msg = '{} time spent: '.format(f.__name__) def inner(*args, **kwargs): # check if the object has a logger global logger if ar...
25.585366
84
0.530029
121
1,049
4.46281
0.38843
0.074074
0.040741
0.074074
0
0
0
0
0
0
0
0.005917
0.355577
1,049
40
85
26.225
0.792899
0.030505
0
0.133333
0
0
0.074877
0
0
0
0
0
0
1
0.166667
false
0
0.066667
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
be8a2d82d13baa6e60ff4dbca25351bcb2190394
1,418
py
Python
critical/tasks.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
2
2020-06-06T06:50:38.000Z
2022-02-03T08:54:28.000Z
critical/tasks.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
5
2018-12-17T11:12:20.000Z
2020-11-27T10:28:51.000Z
critical/tasks.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
1
2021-08-19T06:02:44.000Z
2021-08-19T06:02:44.000Z
import logging from django.utils.safestring import mark_safe from django_rq import job from inline_static.css import transform_css_urls logger = logging.getLogger(__name__) @job def calculate_critical_css(critical_id, original_path): from .exceptions import CriticalException from .models import Critical ...
37.315789
94
0.74189
189
1,418
5.359788
0.322751
0.119447
0.055281
0.065153
0.276407
0.215202
0.094768
0.094768
0
0
0
0.005059
0.163611
1,418
37
95
38.324324
0.849073
0
0
0.137931
0
0
0.156559
0
0
0
0
0
0
1
0.034483
false
0
0.241379
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
be8c87105d1db21be6f93eb2ae080ad460d99a47
1,837
py
Python
test.py
wei2912/bce-simulation
65c19051417c871bce4585481eb06c5ba986a96f
[ "MIT" ]
null
null
null
test.py
wei2912/bce-simulation
65c19051417c871bce4585481eb06c5ba986a96f
[ "MIT" ]
1
2016-11-06T11:50:45.000Z
2016-11-06T11:53:49.000Z
test.py
wei2912/bce-simulation
65c19051417c871bce4585481eb06c5ba986a96f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ This script tests the simulations of the experiments. """ import math from utils import coin_var, needle_var def main(): needle_var_vals = [ (1.1, 1.0), (1.4, 1.0), (2.0, 1.0), (2.9, 1.0), (3.3, 1.0), (5.0, 1.0) ] ...
25.873239
108
0.491018
260
1,837
3.3
0.230769
0.037296
0.024476
0.009324
0.562937
0.435897
0.398601
0.398601
0.398601
0.317016
0
0.066998
0.341862
1,837
70
109
26.242857
0.64268
0.04736
0
0.313725
0
0
0.078116
0
0
0
0
0
0
1
0.019608
false
0
0.039216
0
0.058824
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be8d24f272fa353fa6c9d0869d13de96b4754241
1,960
py
Python
python/530.minimum-absolute-difference-in-bst.py
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
python/530.minimum-absolute-difference-in-bst.py
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
python/530.minimum-absolute-difference-in-bst.py
vermouth1992/Leetcode
0d7dda52b12f9e01d88fc279243742cd8b4bcfd1
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=530 lang=python3 # # [530] Minimum Absolute Difference in BST # # https://leetcode.com/problems/minimum-absolute-difference-in-bst/description/ # # algorithms # Easy (55.23%) # Total Accepted: 115.5K # Total Submissions: 209K # Testcase Example: '[4,2,6,1,3]' # # Given the root of a Binary S...
24.5
79
0.625
274
1,960
4.427007
0.39781
0.019786
0.032976
0.044518
0.10305
0
0
0
0
0
0
0.038961
0.253571
1,960
79
80
24.810127
0.790157
0.453571
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.038462
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be8d50256f2d9fce8a7ed11893b6cad92bc5a14b
2,769
py
Python
tensorflow/python/eager/remote_cloud_tpu_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
26
2019-11-10T15:33:34.000Z
2022-03-24T19:56:57.000Z
tensorflow/python/eager/remote_cloud_tpu_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
6
2022-01-15T07:17:47.000Z
2022-02-14T15:28:22.000Z
tensorflow/python/eager/remote_cloud_tpu_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
6
2020-03-29T11:10:53.000Z
2021-06-14T05:39:14.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.434211
80
0.717949
406
2,769
4.756158
0.32266
0.062144
0.093216
0.100984
0.331434
0.299327
0.299327
0.299327
0.203004
0.161574
0
0.02212
0.134706
2,769
75
81
36.92
0.783806
0.270495
0
0.12766
0
0
0.375251
0.323647
0
0
0
0
0.042553
1
0.021277
false
0
0.191489
0
0.234043
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
be8db6395c3bc7d6f2f0df95f16ef512dceb29b7
1,418
py
Python
test/functional/bsv-blocksize-params.py
gbtn/bitcoin-sv-gbtn
8b09d1aa072da819fb3309b0be85dae0f1ac9549
[ "MIT" ]
3
2018-12-03T03:55:08.000Z
2019-08-13T07:50:45.000Z
test/functional/bsv-blocksize-params.py
Chihuataneo/bitcoin-sv
d9b12a23dbf0d2afc5f488fa077d762b302ba873
[ "MIT" ]
1
2020-02-09T11:35:45.000Z
2020-02-09T11:35:45.000Z
test/functional/bsv-blocksize-params.py
Chihuataneo/bitcoin-sv
d9b12a23dbf0d2afc5f488fa077d762b302ba873
[ "MIT" ]
1
2018-11-25T03:18:52.000Z
2018-11-25T03:18:52.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test that the blockmaxsize and excessiveblocksize paramete...
34.585366
107
0.715797
174
1,418
5.666667
0.54023
0.052738
0.051724
0
0
0
0
0
0
0
0
0.01705
0.172779
1,418
40
108
35.45
0.823529
0.249647
0
0
0
0
0.091255
0
0
0
0
0
0.136364
1
0.181818
false
0
0.181818
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be8eb4d6e0f2ba30a5412f64a491cd5cc3dcacad
1,750
py
Python
yotta/test/cli/outdated.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
null
null
null
yotta/test/cli/outdated.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
null
null
null
yotta/test/cli/outdated.py
headlessme/yotta
947ab074b629c8f18ca91ab84ebaa29096b011c6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest # internal modules: from . import util from . import cli Test_Outdated = { 'module.json':'''{ "name": "test-outdated", "version": "...
27.777778
94
0.646286
223
1,750
5.044843
0.426009
0.058667
0.085333
0.066667
0.430222
0.430222
0.381333
0.381333
0.310222
0.310222
0
0.020209
0.18
1,750
62
95
28.225806
0.763763
0.159429
0
0.27907
0
0
0.4487
0.091655
0
0
0
0
0.116279
1
0.046512
false
0
0.069767
0
0.162791
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be8fca7576bb080c666d1d705dca421abd5cb1da
2,453
py
Python
A_Stocker/Stocker.py
Allen1218/Python_Project_Interesting
55d5e58e70e21d45c4bb9dc4d4c219f3a8385834
[ "Apache-2.0" ]
1
2021-02-03T12:08:06.000Z
2021-02-03T12:08:06.000Z
A_Stocker/Stocker.py
Allen1218/Python_Project_Interesting
55d5e58e70e21d45c4bb9dc4d4c219f3a8385834
[ "Apache-2.0" ]
null
null
null
A_Stocker/Stocker.py
Allen1218/Python_Project_Interesting
55d5e58e70e21d45c4bb9dc4d4c219f3a8385834
[ "Apache-2.0" ]
null
null
null
import threading import tushare as ts import pandas as pd import datetime STOCK = {#'002594':[1,170.15], ## 比亚迪 / 几手,成本价 '601012':[11,99.9], ## 隆基股份 '002340':[12,8.72], ## 格林美 '603259':[1,141.7], ## 药明康德 '002346':[10,10.68], ## 柘中股份 #'600438':[9,42.96], ## ...
30.6625
99
0.565838
325
2,453
4.156923
0.486154
0.022206
0.048853
0.079941
0.222058
0.108068
0.071058
0.071058
0.071058
0
0
0.089474
0.225438
2,453
79
100
31.050633
0.621579
0.172034
0
0.115385
0
0
0.202015
0.032746
0
0
0
0
0
1
0.019231
false
0
0.076923
0
0.096154
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9026a8dcf2d835f2e8c702efdeeb3e278299c1
1,011
py
Python
tests/extractors/test_etrade.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
null
null
null
tests/extractors/test_etrade.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
15
2018-05-01T12:48:30.000Z
2021-05-14T02:52:48.000Z
tests/extractors/test_etrade.py
mkazin/StatementRenamer
ef03c71f0e627a15a4bba08e45bfa90ecacd28fc
[ "Apache-2.0" ]
1
2019-07-09T22:59:50.000Z
2019-07-09T22:59:50.000Z
from datetime import datetime from statement_renamer.extractors.etrade import ETradeDateExtractor as EXTRACTOR_UNDER_TEST from statement_renamer.extractors.factory import ExtractorFactory TESTDATA = ( """ PAGE 1 OF 6 February 1, 2019 - March 31, 2019AccountNumber:####-####AccountType:ROTH IRA PAGE 5 OF ...
32.612903
124
0.75272
118
1,011
6.288136
0.516949
0.056604
0.072776
0.080863
0.053908
0
0
0
0
0
0
0.065192
0.150346
1,011
30
125
33.7
0.798603
0
0
0
0
0
0.043091
0
0
0
0
0
0.266667
1
0.133333
false
0
0.2
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
be986d230ef62a7e44ef6996ed58eb548aa4181b
4,004
py
Python
SciDataTool/Methods/VectorField/plot_3D_Data.py
BenjaminGabet/SciDataTool
7994441de4c54921d43750cacd8df761ba4bd421
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/plot_3D_Data.py
BenjaminGabet/SciDataTool
7994441de4c54921d43750cacd8df761ba4bd421
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/plot_3D_Data.py
BenjaminGabet/SciDataTool
7994441de4c54921d43750cacd8df761ba4bd421
[ "Apache-2.0" ]
null
null
null
def plot_3D_Data( self, *arg_list, is_norm=False, unit="SI", component_list=None, save_path=None, x_min=None, x_max=None, y_min=None, y_max=None, z_min=None, z_max=None, z_range=None, is_auto_ticks=True, is_auto_range=False, is_2D_view=False, is_same_s...
29.880597
99
0.610889
603
4,004
3.794362
0.237148
0.052448
0.028846
0.04021
0.27229
0.134178
0.049388
0.035839
0.035839
0
0
0.008151
0.325924
4,004
133
100
30.105263
0.83957
0.434815
0
0
0
0
0.008321
0
0
0
0
0
0
1
0.013514
false
0
0
0
0.013514
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9aae87c4295f41e5dad9ea47ddb818dd41be55
1,246
py
Python
mileage.py
vwfinley/mileage
eb880107c8c38d33706eac74d01a0d0516716cc7
[ "MIT" ]
null
null
null
mileage.py
vwfinley/mileage
eb880107c8c38d33706eac74d01a0d0516716cc7
[ "MIT" ]
null
null
null
mileage.py
vwfinley/mileage
eb880107c8c38d33706eac74d01a0d0516716cc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Some helpful links # https://docs.python.org/3/library/tkinter.html # https://www.python-course.eu/tkinter_entry_widgets.php import tkinter as tk class Application(tk.Frame): def __init__(self, root=None): super().__init__(root) self.root = root ...
28.318182
90
0.578652
168
1,246
4.220238
0.345238
0.078984
0.062059
0.06347
0.06488
0.06488
0
0
0
0
0
0.021763
0.26244
1,246
43
91
28.976744
0.749728
0.113162
0
0
0
0
0.043478
0
0
0
0
0
0
1
0.12
false
0
0.04
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
be9bd5f7d840a39915f5c547fcf6ced95fe85e75
1,087
py
Python
rankings/elo.py
ulternate/table_tennis_league
1762c5b606f149b27d9c06c82e825c948c47b56f
[ "MIT" ]
null
null
null
rankings/elo.py
ulternate/table_tennis_league
1762c5b606f149b27d9c06c82e825c948c47b56f
[ "MIT" ]
7
2017-08-18T04:15:16.000Z
2017-08-28T00:54:25.000Z
rankings/elo.py
mohamed-yahya-zakria/table-tennis-league
07cc6fe46100a4d4279c8a6ae5eea26984df4664
[ "MIT" ]
1
2017-08-18T11:24:00.000Z
2017-08-18T11:24:00.000Z
def elo(winner_rank, loser_rank, weighting): """ :param winner: The Player that won the match. :param loser: The Player that lost the match. :param weighting: The weighting factor to suit your comp. :return: (winner_new_rank, loser_new_rank) Tuple. This follows the ELO ranking method. """ ...
37.482759
73
0.720331
148
1,087
5
0.304054
0.175676
0.087838
0.102703
0.078378
0.078378
0
0
0
0
0
0.032184
0.199632
1,087
28
74
38.821429
0.818391
0.25299
0
0
0
0
0.030769
0
0
0
0
0
0
1
0.071429
false
0
0
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
be9c9dcbecf6ee782a06508d51f148623da5f942
3,766
py
Python
src/samplics/regression/glm.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
14
2021-05-03T19:59:58.000Z
2022-03-27T18:58:36.000Z
src/samplics/regression/glm.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
8
2021-06-17T01:13:01.000Z
2022-03-27T18:31:15.000Z
src/samplics/regression/glm.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
1
2022-03-28T06:58:55.000Z
2022-03-28T06:58:55.000Z
from __future__ import annotations from typing import Any, Callable, Optional, Union import numpy as np # import pandas as pd import statsmodels.api as sm from samplics.estimation.expansion import TaylorEstimator from samplics.utils.formats import dict_to_dataframe, fpc_as_dict, numpy_array, remove_nans from sampli...
32.747826
97
0.573022
522
3,766
3.963602
0.245211
0.047849
0.024166
0.0145
0.142098
0.071532
0.025133
0.018366
0
0
0
0.008853
0.310143
3,766
114
98
33.035088
0.787529
0.019118
0
0.111111
0
0
0.023319
0
0
0
0
0
0.022222
1
0.044444
false
0
0.077778
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9e12d7ef9f5aeb6611304d96bd16eabcc64477
2,563
py
Python
tests/test_scopes.py
leg100/scopes
6a31908acf44b9f65f25668230197ed13229a80d
[ "MIT" ]
null
null
null
tests/test_scopes.py
leg100/scopes
6a31908acf44b9f65f25668230197ed13229a80d
[ "MIT" ]
1
2021-11-15T17:47:40.000Z
2021-11-15T17:47:40.000Z
tests/test_scopes.py
leg100/scopes
6a31908acf44b9f65f25668230197ed13229a80d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `scopes` package.""" import os print(os.getenv('PYTHONPATH')) import pytest from click.testing import CliRunner from scopes.tasks import tasks, bolt, spout, builder from scopes.graph import G, build, topological_sort, traverse from scopes import cli @py...
22.286957
78
0.536871
341
2,563
3.982405
0.357771
0.025773
0.017673
0.030928
0.07511
0
0
0
0
0
0
0.022763
0.262973
2,563
114
79
22.482456
0.696136
0.18533
0
0.065574
0
0
0.084555
0
0
0
0
0
0.163934
1
0.196721
false
0
0.098361
0.032787
0.327869
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9e3afec2b413ef97912bf7c25f3305c1a3ab7c
1,055
py
Python
timeparse/LunarSolarConverter/__init__.py
tornadoyi/timeparse
1e44dbc6acdb07d6c023806d55034642c7ec0de9
[ "Apache-2.0" ]
null
null
null
timeparse/LunarSolarConverter/__init__.py
tornadoyi/timeparse
1e44dbc6acdb07d6c023806d55034642c7ec0de9
[ "Apache-2.0" ]
null
null
null
timeparse/LunarSolarConverter/__init__.py
tornadoyi/timeparse
1e44dbc6acdb07d6c023806d55034642c7ec0de9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'isee15' import LunarSolarConverter converter = LunarSolarConverter.LunarSolarConverter() def LunarToSolar(year, month, day, isleap = False): lunar = LunarSolarConverter.Lunar(year, month, day, isleap) solar = converter.LunarToSolar(lunar) return (solar.solarYear, sol...
28.513514
81
0.694787
116
1,055
6.25
0.37069
0.062069
0.066207
0.049655
0
0
0
0
0
0
0
0.021454
0.204739
1,055
36
82
29.305556
0.84267
0.019905
0
0
0
0
0.005814
0
0
0
0
0
0
1
0.125
false
0
0.041667
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9f7ef00ae244d09a69281d387b6fc00e3b787b
4,345
py
Python
examples/hello-pt/custom/cifar10validator.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
examples/hello-pt/custom/cifar10validator.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
examples/hello-pt/custom/cifar10validator.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.231481
114
0.643268
537
4,345
5.040968
0.35568
0.028445
0.033247
0.007388
0.104913
0.047285
0.031031
0.004433
0.004433
0.004433
0
0.010722
0.270196
4,345
107
115
40.607477
0.842952
0.163176
0
0.119403
0
0
0.073542
0.007741
0
0
0
0
0
1
0.044776
false
0
0.179104
0
0.358209
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9f9cd98cdf38a09e9b5c7bf41b9142f3bd6c42
4,220
py
Python
lambda/enable-traffic-mirroring.py
wrharding/aws-infra
5e913f8342b3a3b3a4599648c4a914f828b5bc18
[ "MIT" ]
1
2022-01-14T18:03:29.000Z
2022-01-14T18:03:29.000Z
lambda/enable-traffic-mirroring.py
wrharding/aws-infra
5e913f8342b3a3b3a4599648c4a914f828b5bc18
[ "MIT" ]
null
null
null
lambda/enable-traffic-mirroring.py
wrharding/aws-infra
5e913f8342b3a3b3a4599648c4a914f828b5bc18
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2020-2021 Chris Farris (https://www.chrisfarris.com) # 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 righ...
39.074074
129
0.679147
525
4,220
5.361905
0.428571
0.031261
0.021314
0.020604
0.083837
0.056838
0.032682
0.032682
0
0
0
0.008831
0.221801
4,220
107
130
39.439252
0.848356
0.345498
0
0
0
0
0.221164
0.027462
0
0
0
0
0
1
0.033898
false
0
0.084746
0
0.118644
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
be9fea8e8fc13061760196f0e3818adcd5989d77
9,088
py
Python
src/value_function.py
wu6u3/async_trpo
b6e3dd56775464b58f7433773e8b04d88cf3fdbc
[ "MIT" ]
6
2018-02-02T19:53:08.000Z
2021-12-06T19:48:19.000Z
src/value_function.py
wu6u3/async_trpo
b6e3dd56775464b58f7433773e8b04d88cf3fdbc
[ "MIT" ]
null
null
null
src/value_function.py
wu6u3/async_trpo
b6e3dd56775464b58f7433773e8b04d88cf3fdbc
[ "MIT" ]
2
2018-07-26T06:22:04.000Z
2019-03-06T10:05:18.000Z
""" State-Value Function Written by Patrick Coady (pat-coady.github.io) Modified by Tin-Yin Lai (wu6u3) into asynchronous version """ import tensorflow as tf import numpy as np from sklearn.utils import shuffle #import os class NNValueFunction(object): """ NN-based state-value function """ def __init__(self...
42.666667
121
0.575704
1,221
9,088
4.061425
0.181818
0.024198
0.038717
0.023997
0.580964
0.545876
0.505949
0.497076
0.490421
0.437588
0
0.016859
0.314701
9,088
212
122
42.867925
0.779383
0.242408
0
0.436508
0
0
0.028272
0
0
0
0
0
0
1
0.055556
false
0
0.02381
0.007937
0.119048
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea186d9537f0999c2f3875648b97a7c001cd71a
10,439
py
Python
gbe/views/make_bid_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
gbe/views/make_bid_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
gbe/views/make_bid_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
from django.views.generic import View from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.views.decorators.cache import never_cache from django.contrib import messages from django.http import HttpResponseRedirect from django.urls import reverse from...
36.121107
78
0.560111
1,082
10,439
5.11183
0.157116
0.037968
0.027843
0.033267
0.327427
0.286386
0.223468
0.197975
0.169047
0.153498
0
0.001916
0.350129
10,439
288
79
36.246528
0.813384
0.012166
0
0.328125
0
0
0.079364
0.004172
0
0
0
0
0
1
0.046875
false
0.003906
0.058594
0.007813
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea1d1375a8d223083e55cf97bff2f2ce8f4f7ba
6,977
py
Python
epicteller/core/dao/character.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/dao/character.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/dao/character.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import time from collections import defaultdict from typing import List, Optional, Iterable, Dict import base62 from sqlalchemy import select, and_ from sqlalchemy.dialects.mysql import insert as mysql_insert from epicteller.core.model.character import Character from epi...
36.528796
116
0.642826
887
6,977
4.854566
0.124014
0.014863
0.025546
0.071528
0.465165
0.385044
0.327682
0.228983
0.218532
0.167441
0
0.001155
0.255267
6,977
190
117
36.721053
0.82756
0.00602
0
0.312883
0
0
0.002019
0
0
0
0
0
0
1
0.006135
false
0
0.067485
0
0.184049
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea22b520ab74130906570943260ba5b3628befe
4,313
py
Python
examples/sentence_classfication/task_sentiment_classification_roformer_v2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
49
2022-03-15T07:28:16.000Z
2022-03-31T07:16:15.000Z
examples/sentence_classfication/task_sentiment_classification_roformer_v2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
examples/sentence_classfication/task_sentiment_classification_roformer_v2.py
Tongjilibo/bert4torch
71d5ffb3698730b16e5a252b06644a136787711e
[ "MIT" ]
null
null
null
#! -*- coding:utf-8 -*- # 情感分类例子,RoPE相对位置编码 # 官方项目:https://github.com/ZhuiyiTechnology/roformer-v2 # pytorch参考项目:https://github.com/JunnYu/RoFormer_pytorch from bert4torch.tokenizers import Tokenizer from bert4torch.models import build_transformer_model, BaseModel from bert4torch.snippets import sequence_padding, Call...
38.855856
176
0.703455
570
4,313
5.05614
0.331579
0.020819
0.027065
0.019431
0.298751
0.274115
0.247051
0.206801
0.179736
0.151978
0
0.010081
0.172038
4,313
110
177
39.209091
0.796976
0.074658
0
0
0
0
0.156754
0.126512
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0.012987
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea43752768259680c29953a0cec72ec71c5a8eb
1,329
py
Python
code_week12_713_719/is_graph_bipartite_hard.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week12_713_719/is_graph_bipartite_hard.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week12_713_719/is_graph_bipartite_hard.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 给定一个无向图graph,当这个图为二分图时返回true。 如果我们能将一个图的节点集合分割成两个独立的子集A和B,并使图中的每一条边的两个节点一个来自A集合,一个来自B集合,我们就将这个图称为二分图。 graph将会以邻接表方式给出,graph[i]表示图中与节点i相连的所有节点。每个节点都是一个在0到graph.length-1之间的整数。这图中没有自环和平行边: graph[i] 中不存在i,并且graph[i]中没有重复的值。 示例 1: 输入: [[1,3], [0,2], [1,3], [0,2]] 输出: true 解释: 无向图如下: 0----1 | | | | 3----2 我们可以将...
21.435484
117
0.51392
160
1,329
4.26875
0.44375
0.01757
0.01757
0.01757
0.04978
0.032211
0
0
0
0
0
0.042529
0.345372
1,329
61
118
21.786885
0.742529
0.394281
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea493d4dc7e2d4506520e5f797ce4cb0a9a2a6e
1,417
py
Python
data_preprocessing/decision_tree_regression.py
Frost199/Machine_Learning
8cf77c6cbbae7781ac6f2ffcc9218ad79472d287
[ "MIT" ]
null
null
null
data_preprocessing/decision_tree_regression.py
Frost199/Machine_Learning
8cf77c6cbbae7781ac6f2ffcc9218ad79472d287
[ "MIT" ]
null
null
null
data_preprocessing/decision_tree_regression.py
Frost199/Machine_Learning
8cf77c6cbbae7781ac6f2ffcc9218ad79472d287
[ "MIT" ]
1
2020-05-23T16:46:52.000Z
2020-05-23T16:46:52.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 17 06:44:47 2018 @author: Eleam Emmanuel """ import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.tree import DecisionTreeRegressor # importing the dataset dataset = pd.read_csv('Position_Salaries.csv') # take all the columns but leave the...
30.804348
92
0.740296
236
1,417
4.313559
0.508475
0.02947
0.013752
0.021611
0.08055
0.08055
0.08055
0.08055
0.08055
0
0
0.022241
0.14326
1,417
46
93
30.804348
0.81631
0.419901
0
0
0
0
0.125776
0.032609
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea4e663116d7a61eb7a7e77d69904ecfbbff62c
1,786
py
Python
user_messages/apps.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
null
null
null
user_messages/apps.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
null
null
null
user_messages/apps.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.conf import settings from django.core import checks from django.template import engines from django.template.backends.django import DjangoTemplates from django.utils.text import capfirst from django.utils.translation import gettext_lazy as _ @checks.register() def check_c...
33.698113
79
0.647816
195
1,786
5.758974
0.394872
0.062333
0.081923
0.058771
0.227961
0.197685
0.138914
0.0748
0
0
0
0.013964
0.278275
1,786
52
80
34.346154
0.857254
0
0
0.090909
0
0
0.255319
0.118701
0
0
0
0
0
1
0.022727
false
0
0.159091
0
0.295455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea66694bcf52b9fffd500768ba31f40d22d16ce
4,908
py
Python
server-python3/server.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
40
2016-11-20T09:48:27.000Z
2021-04-02T00:29:14.000Z
server-python3/server.py
Aaron-Ming/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
6
2018-01-07T03:43:22.000Z
2022-03-21T08:43:33.000Z
server-python3/server.py
glensc/websocket_terminal
42c24391d51c275eabf1f879fb312b9a3614f51e
[ "MIT" ]
20
2016-12-02T06:00:27.000Z
2021-08-15T11:40:34.000Z
import os import urllib.parse import eventlet import eventlet.green.socket # eventlet.monkey_patch() import eventlet.websocket import eventlet.wsgi import wspty.pipe from flask import Flask, request, redirect from wspty.EchoTerminal import EchoTerminal from wspty.EncodedTerminal import EncodedTerminal from wspty.Webso...
31.261146
115
0.647514
588
4,908
5.231293
0.284014
0.032185
0.021456
0.014304
0.06502
0.053316
0.03251
0.03251
0.03251
0.03251
0
0.00267
0.23696
4,908
156
116
31.461538
0.818692
0.004686
0
0.04918
0
0
0.101372
0
0
0
0
0
0
1
0.131148
false
0.02459
0.131148
0.016393
0.393443
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea71c525e82317994bbd637b8bebff771fe81eb
3,406
py
Python
tests/unit/test_roger_promote.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
null
null
null
tests/unit/test_roger_promote.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
47
2016-05-26T22:09:56.000Z
2018-08-08T20:33:39.000Z
tests/unit/test_roger_promote.py
seomoz/roger-mesos-tools
88b4cb3550a4b49d0187cfb5e6a22246ff6b9765
[ "Apache-2.0" ]
3
2017-09-20T22:39:03.000Z
2017-11-07T22:29:29.000Z
# -*- encoding: utf-8 -*- """ Unit test for roger_promote.py """ import tests.helper import unittest import os import os.path import pytest import requests from mockito import mock, Mock, when from cli.roger_promote import RogerPromote from cli.appconfig import AppConfig from cli.settings import Settings from cl...
28.383333
76
0.645919
401
3,406
5.239402
0.197007
0.04712
0.039981
0.034269
0.152308
0.088529
0.034269
0
0
0
0
0.00039
0.24633
3,406
119
77
28.621849
0.818076
0.016148
0
0.046512
0
0
0.13465
0.037403
0
0
0
0
0.069767
1
0.093023
false
0.046512
0.162791
0.011628
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bea77828d8025fc0087d40bc8239898137482a39
7,097
py
Python
data/collectors.py
papb/COVID-19
2dc8e683f55c494ca894727aca56f90e53b161f3
[ "MIT" ]
6
2020-03-24T22:03:34.000Z
2020-03-25T21:08:02.000Z
data/collectors.py
papb/COVID-19
2dc8e683f55c494ca894727aca56f90e53b161f3
[ "MIT" ]
null
null
null
data/collectors.py
papb/COVID-19
2dc8e683f55c494ca894727aca56f90e53b161f3
[ "MIT" ]
1
2020-03-27T20:25:03.000Z
2020-03-27T20:25:03.000Z
import json import pandas as pd import requests def load_dump_covid_19_data(): COVID_19_BY_CITY_URL='https://raw.githubusercontent.com/wcota/covid19br/master/cases-brazil-cities-time.csv' by_city=(pd.read_csv(COVID_19_BY_CITY_URL) .query('country == "Brazil"') .drop(columns=['c...
32.856481
121
0.479217
710
7,097
4.546479
0.269014
0.070632
0.018587
0.012392
0.288724
0.262701
0.247831
0.247831
0.223668
0.197026
0
0.011582
0.391715
7,097
215
122
33.009302
0.736159
0.03114
0
0.240437
0
0.010929
0.233806
0.069162
0
0
0
0.004651
0
1
0.04918
false
0.005464
0.016393
0
0.098361
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beaa8784fc43c71bc8bb5120744ac9a157c4e2a7
2,387
py
Python
PathPlanning/run.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
PathPlanning/run.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
PathPlanning/run.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
1
2020-09-25T18:31:34.000Z
2020-09-25T18:31:34.000Z
from planning_framework import path import cv2 as cv import numpy as np import argparse import matplotlib.pyplot as plt parser = argparse.ArgumentParser(description="Path Planning Visualisation") parser.add_argument( "-n", "--n_heuristic", default=2, help="Heuristic for A* Algorithm (default = 2). 0 f...
26.820225
86
0.607038
368
2,387
3.88587
0.304348
0.008392
0.008392
0.011189
0.202797
0.177622
0.158042
0.158042
0.158042
0.158042
0
0.055586
0.238793
2,387
88
87
27.125
0.731425
0.049016
0
0.239437
0
0
0.126711
0
0
0
0.005298
0
0
1
0.014085
false
0
0.070423
0
0.084507
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beaf6a34e9709a7f3a490a80d9b84b4126151d38
186
py
Python
Codeforces/problems/0136/A/136A.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
2
2021-07-27T10:46:47.000Z
2021-07-27T10:47:57.000Z
Codeforces/problems/0136/A/136A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
Codeforces/problems/0136/A/136A.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
n = int(input()) line = list(map(int, input().split())) l = {} res = "" for i, j in enumerate(line): l[j] = i+1 for k in range(n): res += str(l[k+1]) + " " print(res.rstrip())
15.5
38
0.516129
34
186
2.823529
0.588235
0.166667
0
0
0
0
0
0
0
0
0
0.013889
0.225806
186
12
39
15.5
0.652778
0
0
0
0
0
0.005348
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb013240bc0b9610971205973878d44dedde94f
323
py
Python
generatey.py
YiLisa/DSCI560-hw2
9cf4a40a6e4755ea1b0b68248e553fb4b6b7fdf4
[ "Apache-2.0" ]
null
null
null
generatey.py
YiLisa/DSCI560-hw2
9cf4a40a6e4755ea1b0b68248e553fb4b6b7fdf4
[ "Apache-2.0" ]
null
null
null
generatey.py
YiLisa/DSCI560-hw2
9cf4a40a6e4755ea1b0b68248e553fb4b6b7fdf4
[ "Apache-2.0" ]
null
null
null
import pandas as pd def main(): input = pd.read_csv('random_x.csv', header=None) x=input[0].tolist() y = [] for n in x: y.append(3*int(n)+6) df = pd.DataFrame(y) df.to_csv('output_y.csv', index=False, header=False) if __name__ == '__main__': main() print('generating y = 3x+6.....
21.533333
56
0.582043
53
323
3.320755
0.641509
0
0
0
0
0
0
0
0
0
0
0.020243
0.235294
323
15
57
21.533333
0.692308
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb0a9e7bb5a51ebb9a999b6f45ac4bb5d9df106
1,002
py
Python
setup.py
burn874/mtg
cef47f6ec0ca110bdcb885ec09d6f5aca517c3b2
[ "Apache-2.0" ]
null
null
null
setup.py
burn874/mtg
cef47f6ec0ca110bdcb885ec09d6f5aca517c3b2
[ "Apache-2.0" ]
null
null
null
setup.py
burn874/mtg
cef47f6ec0ca110bdcb885ec09d6f5aca517c3b2
[ "Apache-2.0" ]
null
null
null
import re from pkg_resources import parse_requirements import pathlib from setuptools import find_packages, setup README_FILE = 'README.md' REQUIREMENTS_FILE = 'requirements.txt' VERSION_FILE = 'mtg/_version.py' VERSION_REGEXP = r'^__version__ = \'(\d+\.\d+\.\d+)\'' r = re.search(VERSION_REGEXP, open(VERSION_FILE).r...
31.3125
94
0.739521
139
1,002
5.122302
0.539568
0.08427
0.053371
0.08427
0
0
0
0
0
0
0
0.002302
0.132735
1,002
31
95
32.322581
0.817031
0
0
0
0
0
0.260479
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb1a4b08f2fc3818a575158bc7a69b7e5f252c7
1,399
py
Python
avilla/core/resource/interface.py
RF-Tar-Railt/Avilla
0b6eff0e253d4c04a5c82f4f252b6a11b7d81e04
[ "MIT" ]
null
null
null
avilla/core/resource/interface.py
RF-Tar-Railt/Avilla
0b6eff0e253d4c04a5c82f4f252b6a11b7d81e04
[ "MIT" ]
1
2021-12-19T07:43:30.000Z
2021-12-19T07:43:30.000Z
avilla/core/resource/interface.py
RF-Tar-Railt/Avilla
0b6eff0e253d4c04a5c82f4f252b6a11b7d81e04
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass from avilla.core.platform import Base from avilla.core.resource import Resource, ResourceProvider @dataclass class ResourceMatchPrefix: resource_type: type[Resource] keypath: str | None = None platform: Base | None = None class Resou...
29.765957
97
0.647605
143
1,399
6.202797
0.272727
0.10823
0.047351
0.060879
0.184893
0.146561
0.146561
0.146561
0.10372
0
0
0
0.277341
1,399
46
98
30.413043
0.877349
0
0
0.216216
0
0
0
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb317bf51c8d955452bb7ade64a00caeb647030
8,722
py
Python
autotest/test_gwf_buy_lak01.py
scharlton2/modflow6
83ac72ee3b6f580aaffef6352cf15c1697d3ce66
[ "CC0-1.0" ]
3
2019-07-10T21:16:57.000Z
2021-10-08T00:56:20.000Z
autotest/test_gwf_buy_lak01.py
scharlton2/modflow6
83ac72ee3b6f580aaffef6352cf15c1697d3ce66
[ "CC0-1.0" ]
null
null
null
autotest/test_gwf_buy_lak01.py
scharlton2/modflow6
83ac72ee3b6f580aaffef6352cf15c1697d3ce66
[ "CC0-1.0" ]
3
2019-11-28T16:26:50.000Z
2020-02-05T11:08:37.000Z
# Test the buoyancy package and the variable density flows between the lake # and the gwf model. This model has 4 layers and a lake incised within it. # The model is transient and has heads in the aquifer higher than the initial # stage in the lake. As the model runs, the lake and aquifer equalize and # should end up...
29.073333
90
0.576015
1,192
8,722
4.143456
0.300336
0.006884
0.037862
0.040089
0.189917
0.178781
0.142134
0.03523
0.021462
0.021462
0
0.057552
0.278835
8,722
299
91
29.170569
0.727663
0.184132
0
0.073733
0
0
0.101019
0
0
0
0
0.003344
0.013825
1
0.018433
false
0
0.032258
0
0.0553
0.046083
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb37d345ad255de414b430caeba23a0fa10d2d1
441
py
Python
lesson-08/roll_dice_v1.0.py
hemiaoio/pylearning
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
1
2018-11-11T03:44:02.000Z
2018-11-11T03:44:02.000Z
lesson-08/roll_dice_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
lesson-08/roll_dice_v1.0.py
hemiaoio/learn-python
4b3885ed7177db4e6e03da80dd9ed69719c8d866
[ "MIT" ]
null
null
null
""" 功能:模拟掷骰子 版本:1.0 """ import random def roll_dice(): roll = random.randint(1, 6) return roll def main(): total_times = 100000 result_list = [0] * 6 for i in range(total_times): roll = roll_dice() result_list[roll-1] += 1 for i, x in enumerate(result_list): ...
15.206897
63
0.569161
65
441
3.6
0.492308
0.17094
0
0
0
0
0
0
0
0
0
0.046875
0.274376
441
28
64
15.75
0.684375
0.034014
0
0
0
0
0.058537
0
0
0
0
0
0
1
0.133333
false
0
0.066667
0
0.266667
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
beb557aa11e275e2f9691dee969a012dab3f26db
759
py
Python
composer/dataflow-python3/main.py
gxercavins/gcp-snippets
a90e4e9c922370face876aa7c56db610896e1a6f
[ "Apache-2.0" ]
2
2022-02-07T07:53:35.000Z
2022-02-23T18:46:03.000Z
composer/dataflow-python3/main.py
gxercavins/gcp-snippets
a90e4e9c922370face876aa7c56db610896e1a6f
[ "Apache-2.0" ]
1
2019-10-26T19:03:34.000Z
2019-10-26T19:03:48.000Z
composer/dataflow-python3/main.py
gxercavins/gcp-snippets
a90e4e9c922370face876aa7c56db610896e1a6f
[ "Apache-2.0" ]
6
2020-03-19T23:58:46.000Z
2022-02-07T07:53:37.000Z
import argparse import logging import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import SetupOptions def run(argv=None, save_main_session=True): """Dummy pipeline to test Python3 operator.""" parser = argparse.ArgumentParser() ...
27.107143
78
0.777339
101
759
5.544554
0.475248
0.160714
0.117857
0.075
0.15
0.15
0.15
0
0
0
0
0.006033
0.126482
759
27
79
28.111111
0.838612
0.079051
0
0
0
0
0.030303
0
0
0
0
0
0
1
0.058824
false
0
0.294118
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
0
0
0
0
0
1
0
beb69b31ba90004b6f8731fea0065e0f64e36216
1,412
py
Python
backend/garpix_page/setup.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
backend/garpix_page/setup.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
backend/garpix_page/setup.py
griviala/garpix_page
55f1d9bc6d1de29d18e15369bebcbef18811b5a4
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path here = path.join(path.abspath(path.dirname(__file__)), 'garpix_page') with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='garpix_page', version='2.23.0', description='', long_desc...
32.090909
69
0.607649
163
1,412
5.153374
0.564417
0.047619
0.119048
0.092857
0
0
0
0
0
0
0
0.035023
0.231586
1,412
43
70
32.837209
0.739171
0
0
0.05
0
0
0.478754
0.043909
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb76b3debe06f273a8ef3ec32c53943cd031a3b
20,225
py
Python
.kodi/addons/plugin.video.p2p-streams/resources/core/livestreams.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.p2p-streams/resources/core/livestreams.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.p2p-streams/resources/core/livestreams.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# -*- coding: utf-8 -*- """ p2p-streams (c) 2014 enen92 fightnight This file contains the livestream addon engine. It is mostly based on divingmule work on livestreams addon! Functions: xml_lists_menu() -> main menu for the xml list category addlista() -> add a new list. It'll ask for local or rem...
38.745211
303
0.514907
2,180
20,225
4.715138
0.155963
0.021792
0.021403
0.023154
0.506956
0.443623
0.419691
0.393715
0.330966
0.305283
0
0.021257
0.348727
20,225
521
304
38.819578
0.75911
0.059135
0
0.524138
0
0.002299
0.110133
0.006525
0
0
0
0
0
1
0.032184
false
0.032184
0.018391
0.002299
0.052874
0.006897
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb987a1f2b8198bf13096fe552301ac5d99117d
889
py
Python
api-reference-examples/python/te-tag-query/api-example-update.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
997
2015-03-13T18:04:03.000Z
2022-03-30T12:09:10.000Z
api-reference-examples/python/te-tag-query/api-example-update.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
444
2015-03-26T17:28:49.000Z
2022-03-28T19:34:05.000Z
api-reference-examples/python/te-tag-query/api-example-update.py
b-bold/ThreatExchange
6f8d0dc803faccf576c9398569bb52d54a4f9a87
[ "BSD-3-Clause" ]
294
2015-03-13T22:19:43.000Z
2022-03-30T08:42:45.000Z
#!/usr/bin/env python # ================================================================ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # ================================================================ import sys import json import TE TE.Net.setAppTokenFromEnvName("TX_ACCESS_TOKEN") postPar...
26.147059
86
0.620922
88
889
6.227273
0.602273
0.04927
0.076642
0.065693
0
0
0
0
0
0
0
0.023286
0.130484
889
33
87
26.939394
0.68564
0.285714
0
0.095238
0
0
0.122222
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
beb9a541895990f03cef5c41fda543323a1a2725
12,362
py
Python
loaner/web_app/backend/api/shelf_api_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/shelf_api_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/shelf_api_test.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.905085
86
0.729494
1,535
12,362
5.612378
0.183062
0.043761
0.051074
0.037145
0.543587
0.50888
0.437028
0.36123
0.312362
0.279745
0
0.013983
0.166963
12,362
294
87
42.047619
0.822587
0.079113
0
0.35124
0
0
0.065626
0.033166
0
0
0
0
0.14876
1
0.070248
false
0
0.061983
0
0.136364
0.004132
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bebb042aa5530a31d011f0dddb5b720502bac701
11,710
py
Python
ahrs/filters/complementary.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
ahrs/filters/complementary.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
ahrs/filters/complementary.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Complementary Filter ==================== Attitude quaternion obtained with gyroscope and accelerometer-magnetometer measurements, via complementary filter. First, the current orientation is estimated at time :math:`t`, from a previous orientation at time :math:`t-1`, and a given ...
41.232394
219
0.566695
1,644
11,710
3.965328
0.145377
0.034515
0.038349
0.042184
0.433809
0.353122
0.283019
0.23025
0.218592
0.192668
0
0.016172
0.255423
11,710
283
220
41.378092
0.731506
0.662254
0
0.035088
0
0
0.052731
0
0
0
0
0
0
1
0.087719
false
0.035088
0.035088
0
0.22807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bebb7eff935771339795abf6b86ab3ed10b32cc3
3,550
py
Python
tests/common/models/test_execution.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
41
2016-11-03T16:40:17.000Z
2019-05-23T08:39:17.000Z
tests/common/models/test_execution.py
Mirantis/ceph-lcm
fad9bad0b94f2ef608362953583b10a54a841d24
[ "Apache-2.0" ]
30
2016-10-14T10:54:46.000Z
2017-10-20T15:58:01.000Z
tests/common/models/test_execution.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
28
2016-09-17T01:17:36.000Z
2019-07-05T03:32:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
33.809524
77
0.719155
452
3,550
5.338496
0.29646
0.174057
0.096975
0.047244
0.343556
0.299627
0.298798
0.260671
0.056361
0.056361
0
0.005498
0.180282
3,550
104
78
34.134615
0.823711
0.174366
0
0.164179
0
0
0.079354
0.007558
0
0
0
0
0.268657
1
0.089552
false
0
0.029851
0
0.119403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bebf0f2b55c9070eb2aa8dd30568a2e408a3e498
842
py
Python
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/07_delete_and_earn.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
1
2022-01-17T19:51:15.000Z
2022-01-17T19:51:15.000Z
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/07_delete_and_earn.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
Problems/Study Plans/Dynamic Programming/Dynamic Programming I/07_delete_and_earn.py
andor2718/LeetCode
59874f49085818e6da751f1cc26867b31079d35d
[ "BSD-3-Clause" ]
null
null
null
# https://leetcode.com/problems/delete-and-earn/ class Solution: def deleteAndEarn(self, nums: list[int]) -> int: num_profits = dict() for num in nums: num_profits[num] = num_profits.get(num, 0) + num sorted_nums = sorted(num_profits.keys()) second_last_profit = 0 ...
42.1
76
0.609264
108
842
4.416667
0.342593
0.188679
0.100629
0.106918
0.113208
0.113208
0
0
0
0
0
0.010204
0.301663
842
19
77
44.315789
0.80102
0.054632
0
0
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec160209ec5f54fda5f5e3628b149076a57302b
7,019
py
Python
pytorch_keras_converter/API.py
sonibla/pytorch_keras_converter
21925b67b6eb3cbbfa8eb6d33f682d57dafd357d
[ "MIT" ]
17
2019-10-01T14:14:18.000Z
2021-04-25T13:32:24.000Z
pytorch_keras_converter/API.py
sonibla/pytorch_keras_converter
21925b67b6eb3cbbfa8eb6d33f682d57dafd357d
[ "MIT" ]
null
null
null
pytorch_keras_converter/API.py
sonibla/pytorch_keras_converter
21925b67b6eb3cbbfa8eb6d33f682d57dafd357d
[ "MIT" ]
2
2019-10-01T14:02:43.000Z
2019-10-01T14:14:19.000Z
""" Simple API to convert models between PyTorch and Keras (Conversions from Keras to PyTorch aren't implemented) """ from . import utility from . import tests from . import io_utils as utils import tensorflow def convert(model, input_shape, weights=True, quiet=True, i...
33.42381
78
0.581992
801
7,019
5.061174
0.213483
0.027134
0.01036
0.0148
0.561667
0.556981
0.540207
0.533547
0.518254
0.518254
0
0.004466
0.362017
7,019
209
79
33.583732
0.900849
0.496794
0
0.349398
0
0
0.0475
0
0
0
0
0
0
1
0.024096
false
0
0.048193
0
0.108434
0.096386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec1a22fa74c5c4f594a0551d336d70522ed93f7
1,734
py
Python
examples/enable_notifications.py
kjwill/bleak
7e0fdae6c0f6a78713e5984c2840666e0c38c3f3
[ "MIT" ]
null
null
null
examples/enable_notifications.py
kjwill/bleak
7e0fdae6c0f6a78713e5984c2840666e0c38c3f3
[ "MIT" ]
null
null
null
examples/enable_notifications.py
kjwill/bleak
7e0fdae6c0f6a78713e5984c2840666e0c38c3f3
[ "MIT" ]
1
2021-09-15T18:53:58.000Z
2021-09-15T18:53:58.000Z
# -*- coding: utf-8 -*- """ Notifications ------------- Example showing how to add notifications to a characteristic and handle the responses. Updated on 2019-07-03 by hbldh <henrik.blidh@gmail.com> """ import sys import logging import asyncio import platform from bleak import BleakClient from bleak import _logger...
27.52381
136
0.689158
230
1,734
5.095652
0.543478
0.061433
0.025597
0.030717
0.073379
0.073379
0.073379
0.073379
0.073379
0.073379
0
0.054363
0.193772
1,734
62
137
27.967742
0.783977
0.282584
0
0.055556
0
0
0.137031
0.075856
0
0
0
0
0
1
0.027778
false
0
0.222222
0
0.25
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec37dd307106b82f4f0bcaf14227eb2f2a4ba93
1,974
py
Python
dialogflow/history2xls.py
ray-hrst/temi-tools
8efb1e1af93a41bd98fe0ee8c1fd6fb44e788341
[ "MIT" ]
1
2020-06-04T19:30:57.000Z
2020-06-04T19:30:57.000Z
dialogflow/history2xls.py
ray-hrst/temi-tools
8efb1e1af93a41bd98fe0ee8c1fd6fb44e788341
[ "MIT" ]
1
2020-01-14T04:16:12.000Z
2020-01-14T04:16:12.000Z
dialogflow/history2xls.py
ray-hrst/temi-tools
8efb1e1af93a41bd98fe0ee8c1fd6fb44e788341
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Convert Dialogflow history to spreadsheet User must manually copy the history from the browser and save this in a text file. This reads the textfile, parses the data, and saves it to a spreadsheet. Example training sample: USER サワディカ Nov 4, 11:19 PM AGENT No matc...
27.802817
82
0.609422
241
1,974
4.879668
0.448133
0.042517
0.063776
0.048469
0.056122
0
0
0
0
0
0
0.01324
0.27305
1,974
70
83
28.2
0.806272
0.251266
0
0.0625
0
0
0.092593
0
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0.09375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec393e2a78f7bd8032716c650f164a7178aab68
25,176
py
Python
recognition/views.py
usathe71-u/Attendance-System-Face-Recognition
c73f660a6089e8ca9dd5c473efcf2bc78f13a207
[ "Apache-2.0" ]
3
2021-05-31T21:11:38.000Z
2021-07-22T18:29:47.000Z
recognition/views.py
usathe71-u/Attendance-System-Face-Recognition
c73f660a6089e8ca9dd5c473efcf2bc78f13a207
[ "Apache-2.0" ]
null
null
null
recognition/views.py
usathe71-u/Attendance-System-Face-Recognition
c73f660a6089e8ca9dd5c473efcf2bc78f13a207
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render,redirect from .forms import usernameForm,DateForm,UsernameAndDateForm, DateForm_2 from django.contrib import messages from django.contrib.auth.models import User import cv2 import dlib import imutils from imutils import face_utils from imutils.video import VideoStream from imutils.fa...
24.97619
167
0.722196
3,879
25,176
4.508378
0.116009
0.008234
0.014124
0.022301
0.688872
0.637694
0.602756
0.575766
0.550377
0.534881
0
0.014407
0.150858
25,176
1,008
168
24.97619
0.80363
0.122339
0
0.619125
0
0
0.120715
0.070747
0
0
0.000364
0
0
1
0.040519
false
0
0.056726
0.003241
0.165316
0.027553
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec698afd2c5801e7a05fe6be1339638668af844
856
py
Python
2018/05.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2018/05.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2018/05.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
import re import string DATA = '05.txt' def react(polymer): pairs = '|'.join([a + b + '|' + b + a for a, b in zip(string.ascii_lowercase, string.ascii_uppercase)]) length = len(polymer) while 1: polymer = re.sub(pairs, '', polymer) if len(polymer) == length: retu...
21.948718
108
0.53972
103
856
4.456311
0.407767
0.087146
0.087146
0.061002
0.156863
0.156863
0.156863
0.156863
0.156863
0
0
0.018966
0.32243
856
38
109
22.526316
0.772414
0
0
0.214286
0
0
0.01467
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0
0.178571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec79a34dea2c5eb7b1cdd952dbf003070a952c4
1,746
py
Python
WebServer.py
i3uex/CompareML
3d53d58117507db11ad08ca0b1c883ec0997840e
[ "MIT" ]
null
null
null
WebServer.py
i3uex/CompareML
3d53d58117507db11ad08ca0b1c883ec0997840e
[ "MIT" ]
null
null
null
WebServer.py
i3uex/CompareML
3d53d58117507db11ad08ca0b1c883ec0997840e
[ "MIT" ]
null
null
null
import json import cherrypy import engine class WebServer(object): @cherrypy.expose def index(self): return open('public/index.html', encoding='utf-8') @cherrypy.expose class GetOptionsService(object): @cherrypy.tools.accept(media='text/plain') def GET(self): return json.dumps({ ...
30.103448
120
0.611684
180
1,746
5.783333
0.377778
0.09414
0.054755
0.072046
0.134486
0.134486
0.134486
0.134486
0.09414
0.09414
0
0.00321
0.286369
1,746
57
121
30.631579
0.832263
0.184422
0
0.2
0
0
0.117561
0
0
0
0
0
0
1
0.114286
false
0
0.085714
0.085714
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec831a08a3c7355e5ebc6786562ec7da94bccbd
2,421
py
Python
cptk/core/fetcher.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
5
2021-12-25T01:49:45.000Z
2022-03-27T10:30:14.000Z
cptk/core/fetcher.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
39
2021-12-24T16:35:07.000Z
2022-03-18T23:15:14.000Z
cptk/core/fetcher.py
RealA10N/cptk
e500d948e91bb70661adc3c2539b149704c734a1
[ "Apache-2.0" ]
2
2022-01-12T19:13:20.000Z
2022-01-12T19:32:05.000Z
from __future__ import annotations from typing import TYPE_CHECKING import pkg_resources from bs4 import BeautifulSoup from requests import session from cptk.scrape import PageInfo from cptk.scrape import Website from cptk.utils import cptkException if TYPE_CHECKING: from cptk.scrape import Problem class Inva...
31.441558
79
0.646014
317
2,421
4.769716
0.359621
0.033069
0.027778
0.039683
0.083333
0.051587
0.051587
0.051587
0.051587
0.051587
0
0.000566
0.270549
2,421
76
80
31.855263
0.855606
0.224701
0
0.043478
0
0
0.070679
0
0
0
0
0
0
1
0.130435
false
0
0.195652
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec8b40804691cfab7d99feee2707b808f11aaed
15,006
py
Python
machine_learning/deep_reinforcement_learning_grasping/drlgrasp/drlgrasp/pybullet_envs/kuka_reach_with_visual.py
Hinson-A/guyueclass
e59129526729542dccefa6c7232378a00dc0175a
[ "Apache-2.0" ]
227
2021-01-20T05:34:32.000Z
2022-03-29T12:43:05.000Z
machine_learning/deep_reinforcement_learning_grasping/drlgrasp/drlgrasp/pybullet_envs/kuka_reach_with_visual.py
passYYYY/guyueclass
2054ccec2f5e6c002727a5561b494a1046484504
[ "Apache-2.0" ]
1
2021-04-22T05:56:00.000Z
2021-05-26T06:00:17.000Z
machine_learning/deep_reinforcement_learning_grasping/drlgrasp/drlgrasp/pybullet_envs/kuka_reach_with_visual.py
passYYYY/guyueclass
2054ccec2f5e6c002727a5561b494a1046484504
[ "Apache-2.0" ]
239
2021-01-28T02:59:53.000Z
2022-03-29T08:02:17.000Z
import pybullet as p import pybullet_data import gym from gym import spaces from gym.utils import seeding import numpy as np from math import sqrt import random import time import math import cv2 import torch import os def random_crop(imgs, out): """ args: imgs: shape (B,C,H,W) ...
36.159036
121
0.53212
1,757
15,006
4.349459
0.206033
0.032976
0.017796
0.021984
0.356582
0.316802
0.278069
0.255431
0.246009
0.222324
0
0.043787
0.362322
15,006
414
122
36.246377
0.754833
0.090097
0
0.219595
0
0
0.023853
0.003658
0
0
0
0
0
1
0.040541
false
0
0.047297
0
0.141892
0.010135
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bec8c0835477d8b4651705098efe6f5b0368b832
6,581
py
Python
tests/ut/cpp/python_input/gtest_input/pre_activate/ir_fusion_test.py
GeekHee/mindspore
896b8e5165dd0a900ed5a39e0fb23525524bf8b0
[ "Apache-2.0" ]
null
null
null
tests/ut/cpp/python_input/gtest_input/pre_activate/ir_fusion_test.py
GeekHee/mindspore
896b8e5165dd0a900ed5a39e0fb23525524bf8b0
[ "Apache-2.0" ]
null
null
null
tests/ut/cpp/python_input/gtest_input/pre_activate/ir_fusion_test.py
GeekHee/mindspore
896b8e5165dd0a900ed5a39e0fb23525524bf8b0
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.576531
110
0.647166
953
6,581
4.198321
0.193075
0.140965
0.052487
0.013997
0.446138
0.283179
0.217946
0.185954
0.145464
0.112472
0
0.066241
0.238414
6,581
195
111
33.748718
0.732043
0.117155
0
0.324324
0
0
0.015595
0
0
0
0
0
0
1
0.114865
false
0
0.027027
0.006757
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe1f4c025bf53ebda91717d8cd83c5c619dbfc64
7,044
py
Python
app.py
PolinaRomanchenko/Victorious_Secret_DSCI_532
e83bc19169a1736618ac55f2ade40741583089fd
[ "MIT" ]
null
null
null
app.py
PolinaRomanchenko/Victorious_Secret_DSCI_532
e83bc19169a1736618ac55f2ade40741583089fd
[ "MIT" ]
null
null
null
app.py
PolinaRomanchenko/Victorious_Secret_DSCI_532
e83bc19169a1736618ac55f2ade40741583089fd
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc import pandas as pd import numpy as np import altair as alt import vega_datasets alt.data_transformers.enable('default') alt.data_transformers.disable_max_rows() app = dash.Dash(__name__, assets_f...
38.917127
203
0.534923
779
7,044
4.662388
0.409499
0.007709
0.019273
0.006057
0.131057
0.116189
0.105176
0.087004
0.060573
0.037996
0
0.025105
0.355338
7,044
181
204
38.917127
0.774719
0.077371
0
0.214815
0
0
0.141167
0.011255
0
0
0
0
0
1
0.022222
false
0
0.059259
0
0.103704
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe2074c1f1219a5f9d1c7d8eeb8c9be145ffb2ea
5,982
py
Python
train.py
hjl-yul154/autodeeplab
1bd8399ac830fcafd506a4207b75e05682d1e260
[ "MIT" ]
1
2020-07-27T07:08:47.000Z
2020-07-27T07:08:47.000Z
train.py
hjl-yul154/autodeeplab
1bd8399ac830fcafd506a4207b75e05682d1e260
[ "MIT" ]
null
null
null
train.py
hjl-yul154/autodeeplab
1bd8399ac830fcafd506a4207b75e05682d1e260
[ "MIT" ]
null
null
null
import os import pdb import warnings import numpy as np import torch import torch.nn as nn import torch.utils.data import torch.backends.cudnn import torch.optim as optim import dataloaders from utils.utils import AverageMeter from utils.loss import build_criterion from utils.metrics import Evaluator from utils.step_...
38.844156
127
0.596122
731
5,982
4.716826
0.27223
0.023492
0.024362
0.013921
0.190835
0.152552
0.135731
0.110209
0.085847
0.069606
0
0.015342
0.269977
5,982
153
128
39.098039
0.774216
0.009361
0
0.195489
0
0.007519
0.105014
0.00574
0
0
0
0
0.007519
1
0.007519
false
0
0.120301
0
0.12782
0.045113
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
fe21c2ef055f99448891893a1c18824fdde9d61e
1,883
py
Python
test.py
xxaxdxcxx/miscellaneous-code
cdb88783f39e1b9a89fdb12f7cddfe62619e4357
[ "MIT" ]
null
null
null
test.py
xxaxdxcxx/miscellaneous-code
cdb88783f39e1b9a89fdb12f7cddfe62619e4357
[ "MIT" ]
null
null
null
test.py
xxaxdxcxx/miscellaneous-code
cdb88783f39e1b9a89fdb12f7cddfe62619e4357
[ "MIT" ]
null
null
null
class Solution: # dictionary keys are tuples, storing results # structure of the tuple: # (level, prev_sum, val_to_include) # value is number of successful tuples def fourSumCount(self, A, B, C, D, prev_sum=0, level=0, sums={}): """ :type A: List[int] :type B: List[int] ...
31.383333
79
0.463622
241
1,883
3.576763
0.282158
0.073086
0.081207
0.018561
0.162413
0.104408
0.078886
0.078886
0.078886
0
0
0.032258
0.407329
1,883
59
80
31.915254
0.740143
0.148168
0
0.181818
0
0
0.108231
0
0
0
0
0
0
1
0.022727
false
0
0
0
0.090909
0.159091
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0