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
a3ee8470edc038ce5afdd46d3446170b34e86c08
6,596
py
Python
hoomd/communicator.py
EdwardZX/hoomd-blue
c87ac3f136534e8a80359a2faceeb730f445da21
[ "BSD-3-Clause" ]
204
2018-11-26T21:15:14.000Z
2022-03-31T17:17:21.000Z
hoomd/communicator.py
EdwardZX/hoomd-blue
c87ac3f136534e8a80359a2faceeb730f445da21
[ "BSD-3-Clause" ]
769
2019-02-15T08:58:04.000Z
2022-03-31T17:36:48.000Z
hoomd/communicator.py
YMWani/hoomd-blue
e574b49f0c2c6df3a1eac9cbb86fe612f1ee4c18
[ "BSD-3-Clause" ]
91
2018-10-04T21:07:46.000Z
2022-03-26T02:44:11.000Z
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """MPI communicator.""" from hoomd import _hoomd import hoomd import contextlib class Communicator(object): """MPI communicator. Args: mpi_c...
34.715789
80
0.632656
805
6,596
5.021118
0.278261
0.025977
0.063088
0.0381
0.241465
0.195448
0.175656
0.161801
0.149431
0.149431
0
0.005248
0.306701
6,596
189
81
34.899471
0.878635
0.475591
0
0.350649
0
0
0.062092
0
0
0
0
0
0
1
0.103896
false
0.012987
0.064935
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f15add28c75465b292cc3d301905a5d66f9500
1,169
py
Python
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
nlp/handler.py
rgschmitz1/tcss702
b0fdd7b6107401dc297b467c9e63773dfb8fd487
[ "MIT" ]
null
null
null
from minio import Minio import json import os from .Inspector import Inspector from .topic_model import topic_model #def handle(event): def handle(event, context): with open("/var/openfaas/secrets/minio-access-key") as f: access_key = f.read() with open("/var/openfaas/secrets/minio-secret-key") as f: ...
24.87234
74
0.622754
139
1,169
5.136691
0.460432
0.05042
0.039216
0.053221
0.086835
0.086835
0
0
0
0
0
0.003421
0.249786
1,169
46
75
25.413043
0.810718
0.171942
0
0
0
0
0.12578
0.079002
0
0
0
0
0
1
0.032258
false
0
0.16129
0
0.225806
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f1d6f2fedc4710e7669c09fd2ad1b4f7d2b866
803
py
Python
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
src/pve_exporter/cli.py
jmangs/prometheus-pve-exporter
2947a1247d854791114eb5ed348a250739540708
[ "Apache-2.0" ]
null
null
null
""" Proxmox VE exporter for the Prometheus monitoring system. """ import sys from argparse import ArgumentParser from pve_exporter.http import start_http_server def main(args=None): """ Main entry point. """ parser = ArgumentParser() parser.add_argument('config', nargs='?', default='pve.yml', ...
32.12
78
0.646326
100
803
5.1
0.52
0.052941
0.1
0
0
0
0
0
0
0
0
0.014563
0.230386
803
24
79
33.458333
0.81068
0.0934
0
0
0
0
0.215603
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f41aa5108b3692f20a54704fcb143543339d31
12,692
py
Python
workers/repo_info_worker/repo_info_worker.py
vinodkahuja/augur
a7688af262c2f971767962d4a20110daf4b1179a
[ "MIT" ]
2
2020-08-27T17:34:38.000Z
2020-11-05T20:31:35.000Z
workers/repo_info_worker/repo_info_worker.py
BenjaminChilson/augur
8346be0b757c907e9b67ba870a9ace32a1b87b11
[ "MIT" ]
9
2021-04-16T23:42:53.000Z
2021-05-04T04:26:55.000Z
workers/repo_info_worker/repo_info_worker.py
BenjaminChilson/augur
8346be0b757c907e9b67ba870a9ace32a1b87b11
[ "MIT" ]
7
2019-03-25T13:26:42.000Z
2020-12-30T18:43:42.000Z
#SPDX-License-Identifier: MIT import logging, os, sys, time, requests, json from datetime import datetime from multiprocessing import Process, Queue import pandas as pd import sqlalchemy as s from workers.worker_base import Worker # NOTE: This worker primarily inserts rows into the REPO_INFO table, which serves the pr...
41.75
183
0.554365
1,405
12,692
4.864769
0.217082
0.021068
0.028676
0.023409
0.259254
0.243745
0.235699
0.226335
0.226335
0.220483
0
0.002766
0.344863
12,692
303
184
41.887789
0.819242
0.102112
0
0.322314
0
0
0.395764
0.01292
0
0
0
0
0
1
0.024793
false
0
0.024793
0
0.099174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f6015f3b9c537d076933e65004a8315446ca82
11,482
py
Python
src/main/python/main.py
SarthakJariwala/Shockley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
1
2020-04-08T06:33:47.000Z
2020-04-08T06:33:47.000Z
src/main/python/main.py
SarthakJariwala/Schokley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
null
null
null
src/main/python/main.py
SarthakJariwala/Schokley-Queisser-Calculator
5f9cfd4c97b8141e8b4ee8d15fa5f3cccfe25b7e
[ "MIT" ]
2
2020-05-31T02:57:55.000Z
2020-07-30T13:24:22.000Z
from fbs_runtime.application_context.PyQt5 import ApplicationContext, cached_property from fbs_runtime.platform import is_windows, is_mac # system imports import sys # module imports from PyQt5 import uic, QtWidgets from PyQt5.QtWidgets import QMessageBox import numpy as np import matplotlib.pyplot as plt import matp...
38.659933
222
0.592406
1,497
11,482
4.335337
0.205077
0.070262
0.012327
0.024807
0.283051
0.235131
0.205855
0.186749
0.152851
0.138367
0
0.031431
0.293416
11,482
297
223
38.659933
0.76852
0.112088
0
0.21393
0
0.004975
0.068717
0
0
0
0
0
0
1
0.079602
false
0
0.059701
0.0199
0.21393
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f604410a10116c403796e4d6e056235535c4f9
9,832
py
Python
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
helpus/core.py
tov101/HelpUs
6b53d9651cf45c191774be2f70b70b130251d2a6
[ "MIT" ]
null
null
null
import io import logging import os import sys from PyQt5 import QtGui, QtCore, QtWidgets from helpus import icon_file_path from helpus import __version__ LOGGER = logging.getLogger('HelpUs') LOGGER.setLevel(logging.DEBUG) class XStream(QtCore.QObject): _stdout = None _stderr = None messageWritten = QtCo...
31.015773
111
0.610151
1,029
9,832
5.617104
0.270165
0.049481
0.011419
0.011073
0.219377
0.182872
0.087197
0.055017
0.036678
0.022145
0
0.002325
0.299939
9,832
316
112
31.113924
0.837426
0.088385
0
0.201878
0
0.004695
0.022902
0
0
0
0
0
0
1
0.079812
false
0.004695
0.032864
0.004695
0.234742
0.004695
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f6dd9ede6bbc22ab1ea49e8e955647bc30a83d
2,206
py
Python
biothings/hub/dataindex/indexer_schedule.py
newgene/biothings.api
e3278695ac15a55fe420aa49c464946f81ec019d
[ "Apache-2.0" ]
30
2017-07-23T14:50:29.000Z
2022-02-08T08:08:16.000Z
biothings/hub/dataindex/indexer_schedule.py
kevinxin90/biothings.api
8ff3bbaecd72d04db4933ff944898ee7b7c0e04a
[ "Apache-2.0" ]
163
2017-10-24T18:45:40.000Z
2022-03-28T03:46:26.000Z
biothings/hub/dataindex/indexer_schedule.py
newgene/biothings.api
e3278695ac15a55fe420aa49c464946f81ec019d
[ "Apache-2.0" ]
22
2017-06-12T18:30:15.000Z
2022-03-01T18:10:47.000Z
import math class Schedule(): def __init__(self, total, batch_size): self._batch_size = batch_size self._state = "" self.total = total self.scheduled = 0 self.finished = 0 @property def _batch(self): return math.ceil(self.scheduled / self._batch_size) ...
24.241758
87
0.56165
241
2,206
4.925311
0.236515
0.083404
0.085931
0.074136
0.434709
0.288964
0.214827
0.214827
0.214827
0.178602
0
0.02075
0.322756
2,206
90
88
24.511111
0.773762
0
0
0.25
0
0
0.121034
0.023119
0
0
0
0
0
1
0.180556
false
0
0.013889
0.069444
0.305556
0.152778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3f93f71de692d828156d343cfeb58d0babb5f0e
1,248
py
Python
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
32
2020-08-31T01:28:29.000Z
2022-03-19T05:40:05.000Z
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
null
null
null
pretraining/model_ensemble.py
VITA-Group/Adv-SS-Pretraining
4ffbebea582f858ec6165f082f52ded1fc9b817d
[ "MIT" ]
7
2020-09-19T14:03:47.000Z
2020-12-10T00:42:08.000Z
''' model ensemble for cifar10 // input size(32,32) ''' import torch import torchvision import copy import torch.nn as nn from resnetv2 import ResNet50 as resnet50v2 def split_resnet50(model): return nn.Sequential( model.conv1, model.layer1, model.layer2, mode...
23.54717
54
0.604167
152
1,248
4.842105
0.421053
0.043478
0.081522
0.085598
0.067935
0
0
0
0
0
0
0.088203
0.273237
1,248
52
55
24
0.723264
0.038462
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.15625
0.03125
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fa8d70909c40648b30be357bd41df712b21d5f
1,519
py
Python
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
scripts/ccdf.py
glciampaglia/HoaxyBots
db8d2b7d9927d5d4d94ded125f9785590dace906
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Function that implement Complement the Complementary Cumulative Distribution Function (CCDF). """ # # written by Chengcheng Shao <sccotte@gmail.com> import numpy as np import pandas as pd def ccdf(s): """ Parameters: `s`, series, the values of s should be variable to be ha...
25.745763
72
0.601712
237
1,519
3.818565
0.320675
0.024309
0.023204
0.029834
0.444199
0.435359
0.371271
0.371271
0.371271
0.371271
0
0.007136
0.262014
1,519
58
73
26.189655
0.800178
0.351547
0
0.366667
0
0
0.005476
0
0
0
0
0
0
1
0.1
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fac0d6ce92c1972de436f2ce748bbe19017407
5,335
py
Python
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
null
null
null
lifelines/fitters/kaplan_meier_fitter.py
eliracho37/lifelines
b1c6c2732d1ccfc2ae08f7178371d0f95ae3027b
[ "MIT" ]
1
2020-05-06T14:46:25.000Z
2020-05-06T14:46:25.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np import pandas as pd from lifelines.fitters import UnivariateFitter from lifelines.utils import _preprocess_inputs, _additive_estimate, StatError, inv_normal_cdf,\ median_survival_times from lifelines.plotting import plot_loglogs cla...
51.298077
171
0.662418
692
5,335
4.930636
0.328035
0.023447
0.020516
0.009672
0.096131
0.079719
0.066823
0.046893
0.024033
0.024033
0
0.007459
0.246111
5,335
103
172
51.796117
0.840875
0.339831
0
0
0
0.019608
0.082511
0.009268
0
0
0
0
0.019608
1
0.078431
false
0
0.117647
0
0.294118
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fad8e543716f6089f3ea4419938d3d14b1b941
8,498
py
Python
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfe
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
3
2021-02-26T06:26:00.000Z
2022-02-20T08:58:20.000Z
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
pydmfet/qcwrap/pyscf_rhf.py
fishjojo/pydmfet
93cfc655314933d3531b5733521a1f95a044f6cb
[ "MIT" ]
null
null
null
import numpy as np from pydmfet import tools from .fermi import find_efermi, entropy_corr from pyscf import ao2mo, gto, scf, dft, lib from pydmfet.qcwrap import fermi import time from functools import reduce def scf_oei( OEI, Norb, Nelec, smear_sigma = 0.0): OEI = 0.5*(OEI.T + OEI) eigenvals, eigenvecs = np.l...
27.324759
120
0.567075
1,274
8,498
3.642857
0.17033
0.02047
0.011635
0.014006
0.249084
0.209653
0.165266
0.11463
0.11463
0.11463
0
0.025
0.298659
8,498
310
121
27.412903
0.753691
0.03036
0
0.105263
0
0
0.023801
0
0
0
0
0
0
1
0.052632
false
0
0.046053
0
0.138158
0.065789
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fcab0b445701487209c1560ead48389dc4c643
2,067
py
Python
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
9
2020-05-31T09:22:40.000Z
2021-09-15T18:15:15.000Z
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
1
2020-11-15T11:38:45.000Z
2020-11-15T11:38:45.000Z
odepy/collision_space.py
yuemingl/ode-python-1
a9a12d9d3b7e611874a8d30f6a5c0b83b6087f86
[ "MIT" ]
2
2020-11-14T21:47:01.000Z
2021-08-03T02:28:10.000Z
# -*- coding: utf-8 -*- from .common import loadOde from .common import dGeomID from .common import dSpaceID from .common import dVector3 from ctypes import POINTER from ctypes import CFUNCTYPE from ctypes import c_void_p from ctypes import c_int32 dNearCallback = CFUNCTYPE(None, c_void_p, dGeomID, dGeomID) def dSi...
45.933333
104
0.786164
211
2,067
7.592417
0.218009
0.071161
0.069913
0.044944
0.092385
0.092385
0.092385
0
0
0
0
0.022863
0.111272
2,067
44
105
46.977273
0.849211
0.01016
0
0.108108
0
0
0.176614
0.033757
0
0
0
0
0
1
0.054054
false
0
0.216216
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
a3fdeb4319b73c8b5241edc4f4a1fca818eec403
4,279
py
Python
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
pctest/test_publish.py
DaveWK/pyth-client
4332ef3287f584be46ec38ddd800cae8d4e7b792
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # pip3 install websockets import asyncio import websockets import json import datetime import sys class test_publish: idnum = 1 def __init__( self, sym, price, spread ): self.symbol = sym self.pidnum = test_publish.idnum test_publish.idnum += 1 self.sidnum = test_publish.idnum ...
28.151316
77
0.597803
525
4,279
4.773333
0.270476
0.030726
0.031923
0.019154
0.252993
0.186353
0.148843
0.110535
0.035116
0
0
0.015546
0.263379
4,279
151
78
28.337748
0.779505
0.093947
0
0.245902
0
0
0.18483
0.010872
0
0
0
0
0
1
0.040984
false
0
0.040984
0
0.122951
0.032787
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fdf673713dab6653653e81925c27451e5f5544
1,866
py
Python
Python/other/merge_interval.py
TechSpiritSS/NeoAlgo
08f559b56081a191db6c6b1339ef37311da9e986
[ "MIT" ]
897
2020-06-25T00:12:52.000Z
2022-03-24T00:49:31.000Z
Python/other/merge_interval.py
AnshikaAgrawal5501/NeoAlgo
d66d0915d8392c2573ba05d5528e00af52b0b996
[ "MIT" ]
5,707
2020-06-24T17:53:28.000Z
2022-01-22T05:03:15.000Z
Python/other/merge_interval.py
AnshikaAgrawal5501/NeoAlgo
d66d0915d8392c2573ba05d5528e00af52b0b996
[ "MIT" ]
1,817
2020-06-25T03:51:05.000Z
2022-03-29T05:14:07.000Z
''' Given an array of intervals, merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6]....
29.619048
95
0.659164
281
1,866
4.281139
0.274021
0.086451
0.119701
0.01995
0.243558
0.157107
0.078138
0.078138
0
0
0
0.048332
0.212755
1,866
62
96
30.096774
0.770592
0.257235
0
0.28
0
0
0.139935
0
0
0
0
0
0
1
0.04
false
0
0
0
0.08
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a3fe08a8aed62efc53ccd8e1fe4f7bf8c6183509
9,708
py
Python
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
tests/test_all.py
InnovativeTravel/humilis-lambdautils
344e13efb68d19f61f0be8178eb6cc2219913fb0
[ "MIT" ]
null
null
null
"""Unit tests.""" import inspect import json from mock import Mock import os import sys import uuid import pytest # Add the lambda directory to the python library search path lambda_dir = os.path.join( os.path.dirname(inspect.getfile(inspect.currentframe())), '..') sys.path.append(lambda_dir) import lambdautils...
41.844828
79
0.642872
1,212
9,708
4.986799
0.160066
0.007942
0.011913
0.015884
0.513236
0.445235
0.364328
0.312045
0.239907
0.239742
0
0.01226
0.210239
9,708
231
80
42.025974
0.776053
0.108982
0
0.20122
0
0
0.144041
0.040037
0
0
0
0
0.115854
1
0.091463
false
0.012195
0.04878
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4300329d7c7ed5214d1d6d7a95fd6dd634fbc6d1
11,269
py
Python
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
8
2017-07-04T10:07:32.000Z
2022-01-02T10:31:43.000Z
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
14
2020-02-11T21:42:38.000Z
2022-03-28T16:00:55.000Z
authserver/maildaemons/forwarder/server.py
jdelic/authserver
e800664436b252fcdf224a9af46a1122c87be3ca
[ "MIT" ]
1
2020-03-01T10:39:28.000Z
2020-03-01T10:39:28.000Z
#!/usr/bin/env python3 -u # -* encoding: utf-8 *- import argparse import asyncore import json import logging import signal import sys import os from types import FrameType from typing import Tuple, Sequence, Any, Union, Optional, List, Dict from concurrent.futures import ThreadPoolExecutor as Pool import daemon from...
45.623482
119
0.604401
1,301
11,269
5.066103
0.273636
0.026703
0.010924
0.018207
0.22288
0.198908
0.151874
0.134881
0.131543
0.104385
0
0.007034
0.293549
11,269
246
120
45.808943
0.820877
0.094152
0
0.134409
0
0
0.204733
0.006775
0
0
0
0.004065
0
1
0.043011
false
0.005376
0.091398
0
0.166667
0.005376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430070d2630f84dfb573574ae265484cbf0ee429
2,074
py
Python
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
null
null
null
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
1
2021-06-02T00:51:06.000Z
2021-06-02T00:51:06.000Z
services/backend/project/api/sites.py
kzkaneoka/custom-job-search
ca6054aee979cb1eff701dc5ba0cf56fb92baf44
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup, element class Indeed: def __init__(self, words, location, offset): self.url = "https://www.indeed.com/jobs?as_and={}&l={}&sort=date&start={}".format( "+".join(set(d.strip().lower() for d in words.split(",") if d)), "+".join(list(d.lowe...
38.407407
90
0.450338
214
2,074
4.299065
0.383178
0.054348
0.03587
0.052174
0.11087
0.067391
0.067391
0
0
0
0
0.004894
0.408872
2,074
53
91
39.132075
0.745514
0
0
0.041667
0
0
0.114754
0.023626
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.229167
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430328989c54e456016360148c864a60ebe10a5f
6,405
py
Python
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
efficientdet/dataset/csv_.py
HyunjiEllenPak/automl
fedf04adf12c5fd11045ea06e2f5c11a5a5490c4
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 yhenon (https://github.com/yhenon/) Copyright 2017-2018 Fizyr (https://fizyr.com) 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-...
37.023121
119
0.577518
840
6,405
4.292857
0.222619
0.062396
0.057682
0.013311
0.4731
0.457571
0.457571
0.457571
0.457571
0.426511
0
0.034031
0.284309
6,405
173
120
37.023121
0.752618
0.309446
0
0.444444
0
0
0.152853
0
0
0
0
0
0
1
0.066667
false
0
0.1
0
0.244444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430510812312a4bfda7f6ca962f49716cd0833a8
3,610
py
Python
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
SimpleBudget/SimpleBudget/budgets/tests.py
speratus/SimpleBudget
d4903db8693694572c4bcb367fe4a318a3867d68
[ "MIT" ]
null
null
null
from django.test import TestCase from .validators import validate_budget_period from .models import Budget, Expense, Payment from django.contrib.auth.models import User from django.core.exceptions import ValidationError class ExpenseTestCases(TestCase): def setUp(self) -> None: user = User.objects.create...
39.67033
122
0.495568
351
3,610
4.977208
0.376068
0.052089
0.048655
0.022324
0.172868
0.130509
0.130509
0.130509
0.087006
0.087006
0
0.043236
0.404155
3,610
90
123
40.111111
0.768945
0
0
0.1125
0
0
0.187535
0
0
0
0
0
0.075
1
0.0625
false
0.025
0.0625
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4306c6bd0579b126c04f1694e74e21eaed99d124
3,440
py
Python
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/abacus/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.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) import re from spack.package import * class Abacus(MakefilePackage): """ABACUS (Atomic-orbital Based Ab-initio Com...
29.655172
92
0.57907
379
3,440
5.139842
0.440633
0.032341
0.01848
0.034908
0.205852
0.188398
0.12885
0.067248
0.032854
0
0
0.085351
0.29157
3,440
115
93
29.913043
0.713993
0.115407
0
0.113636
0
0.011364
0.274081
0.100629
0
0
0
0
0
1
0.022727
false
0.022727
0.022727
0
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43099e0956c66d804368b7d95ddbb6f01a3756de
2,349
py
Python
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.2/spark/shared/addcountry2dataset.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
import csv from os import listdir from os.path import isfile, join from osgeo import ogr from multiprocessing import Pool driver = ogr.GetDriverByName('GeoJSON') countryFile = driver.Open("../data/external/countries.json") layer = countryFile.GetLayer() class Point(object): """ Wrapper for ogr point """ de...
27.313953
116
0.635164
313
2,349
4.670927
0.399361
0.03078
0.028728
0.025992
0.099863
0
0
0
0
0
0
0.012557
0.254151
2,349
85
117
27.635294
0.821918
0.168157
0
0
0
0
0.093048
0.016205
0
0
0
0
0
1
0.16
false
0
0.1
0.08
0.46
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430aa61162281dff31190e84ebaac0dead9910f0
3,126
py
Python
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
ai-experiments/sudoku/rdisplay.py
Henchel-Santillan/open-ai
545bf8468330dce7e705c17e0ac4ce3889f20d5b
[ "MIT" ]
null
null
null
import cv2 import numpy as np def process_core(image): ''' Returns an inverted preprocessed binary image, with noise reduction achieved with greyscaling, Gaussian Blur, Otsu's Threshold, and an open morph. ''' #apply greyscaling, Gaussian Blur, and Otsu's Threshold greyscale = cv2.cvtColor...
35.931034
102
0.636596
408
3,126
4.796569
0.39951
0.035769
0.024527
0.022994
0.094021
0.031681
0.031681
0
0
0
0
0.037428
0.273512
3,126
86
103
36.348837
0.824306
0.252399
0
0.044444
0
0
0
0
0
0
0
0
0
1
0.111111
false
0.022222
0.044444
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
430abd204ed6b789ffeb3c172d2bcf921345ff43
7,419
py
Python
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
2
2019-05-23T02:07:03.000Z
2019-06-08T18:56:05.000Z
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
pythia/tasks/base_task.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. """ Tasks come above datasets in hierarchy level. In case you want to implement a new task, you need to inherit ``BaseTask`` class. You need to implement ``_get_available_datasets`` and ``_preprocess_item`` functions to complete the implementation. You can check the so...
31.841202
91
0.604529
845
7,419
5.11716
0.276923
0.041628
0.032377
0.022202
0.157493
0.106383
0.021277
0
0
0
0
0.002162
0.314059
7,419
232
92
31.978448
0.847514
0.298558
0
0.078947
0
0
0.110634
0.014315
0
0
0
0.00431
0
1
0.131579
false
0.008772
0.035088
0.026316
0.22807
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430c92ccfdcf3dc35e86f6e05e4602bd002c581a
6,982
py
Python
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
null
null
null
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
1
2019-11-12T03:52:01.000Z
2019-11-12T03:52:01.000Z
appimagebuilder/orchestrator.py
AppImageCrafters/AppImageBuilder
dd041050e65f8eff28f878a092fd07bcf3ec5a4d
[ "MIT" ]
null
null
null
# Copyright 2021 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publi...
37.138298
83
0.660556
741
6,982
6.016194
0.221323
0.046658
0.060565
0.040377
0.200763
0.131898
0.083445
0.023777
0.023777
0
0
0.001747
0.262246
6,982
187
84
37.336898
0.863716
0.092524
0
0.19863
0
0
0.036076
0.003797
0
0
0
0
0
1
0.054795
false
0
0.10274
0.006849
0.219178
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430cfcded466d6e4b55330f3c637f5af1e8d4960
2,743
py
Python
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
API_Collections/googlemap_geocode.py
Musketeer-Liu/Auto_Coding_Tools_Box
96ffe3f194eb3571d290086400ef518cef4e0774
[ "MIT" ]
null
null
null
# python3 --> Enter Python Shell # from geocode import getGeocodeLocation # getGeocodeLocation("Place you wanto to query") import httplib2 import json def getGeocodeLocation(inputString): google_api_key = "AIzaSyDZHGnbFkjZcOEgYPpDqlO2YhBHKsNxhnE" locatationString = inputString.replace(" ", "+") url = ('...
66.902439
932
0.679913
329
2,743
5.580547
0.483283
0.071895
0.034858
0.052288
0.147059
0.107843
0.051198
0.051198
0.051198
0
0
0.093788
0.102078
2,743
40
933
68.575
0.651644
0.771783
0
0
0
0.083333
0.267652
0.064039
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430da45d8833848dec38a5b05491d18df5c37b6a
1,717
py
Python
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
null
null
null
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
50
2021-03-28T03:06:19.000Z
2021-10-18T12:36:16.000Z
backend/core/actions/actionGenerator.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
1
2021-07-30T07:12:46.000Z
2021-07-30T07:12:46.000Z
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
27.253968
78
0.670355
219
1,717
5.146119
0.47032
0.063886
0.034605
0.050577
0.333629
0.310559
0.202307
0.202307
0.202307
0.202307
0
0.013657
0.232382
1,717
62
79
27.693548
0.841426
0.39371
0
0.628571
0
0
0.219748
0.022265
0
0
0
0
0
1
0.171429
false
0
0
0
0.457143
0.114286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430dcb1829dec99ac70255fe07e1c633f6a84f85
5,877
py
Python
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
null
null
null
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
1
2018-11-30T14:09:40.000Z
2018-12-03T12:41:01.000Z
lib/csv/csv.py
arnscott/gcounter
ffb6628f1b1f0e6c70168ff738fd51fa08e0df18
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2018 Aaron Michael Scott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
34.775148
109
0.612047
740
5,877
4.791892
0.291892
0.060914
0.037225
0.022561
0.318387
0.242527
0.230118
0.212634
0.196842
0.196842
0
0.000992
0.313936
5,877
168
110
34.982143
0.878472
0.353582
0
0.481928
0
0
0.087973
0
0
0
0
0
0
1
0.120482
false
0.012048
0.036145
0.012048
0.26506
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430e631a7ab886f89000f1e0dc6f369df4ae43f7
1,056
py
Python
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
7
2017-02-16T15:25:47.000Z
2021-11-08T13:10:15.000Z
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
null
null
null
Module01/LearningQGIS_ThirdEdition_Code/Chapter6_code/export_map.py
karant17/Test
e44bf79f597d53de2b891372ffccf7f13c74ede3
[ "MIT" ]
7
2017-03-06T08:47:27.000Z
2021-12-11T12:42:43.000Z
from PyQt4.QtGui import QImage, QPainter from PyQt4.QtCore import QSize # configure the output image width = 800 height = 600 dpi = 92 img = QImage(QSize(width, height), QImage.Format_RGB32) img.setDotsPerMeterX(dpi / 25.4 * 1000) img.setDotsPerMeterY(dpi / 25.4 * 1000) # get the map layers and extent layers ...
36.413793
151
0.773674
124
1,056
6.572581
0.548387
0.022086
0.039264
0.02454
0
0
0
0
0
0
0
0.029064
0.120265
1,056
29
152
36.413793
0.848224
0.125
0
0
0
0
0.031425
0.028058
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430f1a041d4b52037c87f1c1a590ae76e5b36f2e
13,604
py
Python
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-10T17:35:41.000Z
2022-03-04T10:38:58.000Z
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
3
2022-02-02T09:12:18.000Z
2022-02-16T13:42:30.000Z
tools/generate_cropped_dataset.py
DIVA-DIA/DIVA-DAF
0ae3b873d04f1852d9053cb4cb2fbc7bda73471c
[ "MIT" ]
null
null
null
""" Load a dataset of historic documents by specifying the folder where its located. """ import argparse # Utils import itertools import logging import math from datetime import datetime from pathlib import Path from torchvision.datasets.folder import has_file_allowed_extension, pil_loader from torchvision.transforms...
39.777778
120
0.585049
1,634
13,604
4.574663
0.173195
0.049231
0.035318
0.018194
0.37097
0.288696
0.240268
0.191171
0.143411
0.136455
0
0.009315
0.321376
13,604
341
121
39.894428
0.800368
0.135622
0
0.196172
0
0.019139
0.13391
0.044464
0
0
0
0
0.009569
1
0.057416
false
0
0.043062
0.004785
0.148325
0.009569
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
430f4b6111489ee13ac7ae5b12340f3777b684e0
11,275
py
Python
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
13
2021-07-05T08:44:33.000Z
2021-10-13T09:57:58.000Z
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
117
2021-07-06T11:21:50.000Z
2021-10-06T15:48:50.000Z
practice/4_tracking/tracker.py
OrangeRedeng/CV-SUMMER-CAMP-2021
74a65d0b21e4876e1fc1c3d931af76193f36e617
[ "Apache-2.0" ]
43
2021-04-26T07:45:14.000Z
2021-11-06T11:19:05.000Z
import numpy as np import math import logging as log import sys from tqdm import tqdm from common.feature_distance import calc_features_similarity from common.common_objects import DetectedObject, validate_detected_object, Bbox from common.common_objects import get_bbox_center, get_dist, calc_bbox_area from common.find...
41.300366
123
0.655787
1,493
11,275
4.600134
0.119223
0.093186
0.024461
0.014851
0.351776
0.23078
0.151427
0.097117
0.097117
0.052126
0
0.005308
0.264745
11,275
272
124
41.452206
0.82316
0.036718
0
0.130233
0
0
0.074115
0.004425
0
0
0
0
0.065116
1
0.106977
false
0
0.046512
0.009302
0.227907
0.004651
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431041bc3b78a2b35eead16f02c1cdb50d1dd82f
16,308
py
Python
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
gm2m/managers.py
mikewolfd/django-gm2m
a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771
[ "MIT" ]
null
null
null
from django.db import router from django.db.models import Q, Manager from django.db import connections from .contenttypes import ct, get_content_type from .query import GM2MTgtQuerySet class GM2MBaseManager(Manager): use_in_migration = True def __init__(self, instance): super(GM2MBaseM...
35.841758
81
0.531886
1,896
16,308
4.325949
0.128692
0.044989
0.066569
0.053889
0.501707
0.459278
0.401366
0.342965
0.312119
0.262497
0
0.002944
0.375215
16,308
454
82
35.920705
0.802041
0.143488
0
0.342193
0
0
0.035938
0.005425
0
0
0
0
0
1
0.096346
false
0.003322
0.016611
0.013289
0.196013
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43109599c3c8fc1c990f73e67e01c2d6cb021aa0
6,802
py
Python
rastreador-de-bolso/TwitterListener.py
vitorduarte/RastreadorDeBolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
1
2020-10-15T21:36:06.000Z
2020-10-15T21:36:06.000Z
rastreador-de-bolso/TwitterListener.py
vitorduarte/RastreadorDeBolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
3
2021-06-08T21:38:20.000Z
2022-01-13T02:46:26.000Z
rastreador-de-bolso/TwitterListener.py
BambataTech/rastreador-de-bolso
5c3bab222fced6f0d7367299b5007a628a408b4f
[ "MIT" ]
null
null
null
from selenium.webdriver.chrome.options import Options from selenium import webdriver import logging import coloredlogs import os import pathlib import time import twitter as tt from utils import retry from fetch_likes import get_user_likes, login from conf.settings import USER_ID, USERNAME, PASSWORD CURR_PATH = path...
36.569892
92
0.58718
822
6,802
4.592457
0.205596
0.028609
0.035762
0.012715
0.439205
0.342517
0.27894
0.259603
0.229404
0.229404
0
0.000876
0.328727
6,802
185
93
36.767568
0.825887
0.019994
0
0.213793
0
0
0.128117
0
0
0
0
0
0
1
0.055172
false
0.013793
0.075862
0.006897
0.17931
0.041379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4313dd60cdb94904d246c40eddbdc84286d54a32
857
py
Python
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
torch_lib/Nets.py
troncosoae/jetson-exp
0c1a46b969b95bb9c350f78955ae6ca7f41b43b5
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class MediumNet(nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d( 3, out_channels=6, kernel_size=5, padding=0) self.pool1 = nn.MaxPool2d(kernel_size=2, stride=2) self.conv2 = nn....
31.740741
70
0.584597
134
857
3.634328
0.358209
0.020534
0.073922
0.073922
0.229979
0.229979
0.135524
0.135524
0
0
0
0.07717
0.274212
857
26
71
32.961538
0.705788
0.04084
0
0
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4315cbe9d3768c563f263560ae3ec49245d0ab6e
8,101
py
Python
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
beancount_bot/bot.py
dumbPy/beancount_bot
388a17f165c22b30e7f6377161eb5bf63578168a
[ "MIT" ]
null
null
null
import traceback import telebot from telebot import apihelper from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton, MessageEntity, Message, CallbackQuery from beancount_bot import transaction from beancount_bot.config import get_config, load_config from beancount_bot.dispatcher import Dispatcher from b...
30.340824
178
0.641155
980
8,101
5.122449
0.205102
0.023904
0.02988
0.050797
0.243028
0.193227
0.163745
0.1
0.1
0.0749
0
0.001787
0.240341
8,101
266
179
30.454887
0.813942
0.108011
0
0.194631
0
0.006711
0.186266
0.014663
0
0
0
0
0
1
0.080537
false
0.006711
0.080537
0
0.214765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4317b20c71fc0c90d2e65c623d90563c13f6fda9
8,933
py
Python
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
2
2019-11-30T09:02:42.000Z
2019-12-02T10:24:29.000Z
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
null
null
null
test/unit/metrics/test_group_sklearn_wrappers.py
GeGao2014/fairlearn
b0841c8b07ead6a285bdbc0ea61cac2338cbc96e
[ "MIT" ]
1
2020-03-24T14:42:04.000Z
2020-03-24T14:42:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pytest import numpy as np import sklearn.metrics as skm import fairlearn.metrics as metrics # ====================================================== a = "a" b = "b" c = "c" Y_true = [0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0...
39.179825
98
0.636069
1,198
8,933
4.40985
0.12187
0.102215
0.022714
0.037857
0.71872
0.682188
0.656256
0.58622
0.544198
0.544198
0
0.016635
0.165566
8,933
227
99
39.352423
0.692112
0.149558
0
0.348837
0
0
0.016761
0
0
0
0
0
0.178295
1
0.116279
false
0
0.031008
0
0.147287
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4317fc5d9fcdfa4c3f22eb8a8bb944e1c61c7e2a
12,833
py
Python
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
12
2018-10-26T19:33:05.000Z
2022-01-17T11:47:59.000Z
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
9
2020-01-28T22:30:55.000Z
2022-03-11T23:32:04.000Z
deeplearning/tf_util.py
cbschaff/nlimb
f0564b00bab1b3367aaa88163e49bebc88f349bb
[ "MIT" ]
3
2019-07-09T14:56:01.000Z
2019-11-18T06:58:41.000Z
""" Adapted from OpenAI Baselines. """ import numpy as np import tensorflow as tf # pylint: ignore-module import random import copy import os import functools import collections import multiprocessing def switch(condition, then_expression, else_expression): """Switches between two operations depending on a scala...
34.590296
116
0.580924
1,690
12,833
4.280473
0.210651
0.017694
0.009953
0.015759
0.172104
0.132983
0.096212
0.060547
0.053083
0.0423
0
0.01033
0.230577
12,833
370
117
34.683784
0.722301
0.262137
0
0.098712
0
0
0.026281
0.005213
0
0
0
0
0.017167
1
0.167382
false
0.008584
0.055794
0.017167
0.364807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431830fa7f1548920feb149a4d5dc17216d7a063
1,695
py
Python
Util/constant.py
RoboCupULaval/StrategyAI
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
13
2018-03-14T10:20:10.000Z
2021-12-10T05:36:47.000Z
Util/constant.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
200
2016-04-29T23:13:01.000Z
2018-03-13T14:36:39.000Z
Util/constant.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
45
2015-07-04T18:57:39.000Z
2018-01-11T16:11:13.000Z
# Under MIT License, see LICENSE.txt """ Module définissant des constantes de programmations python pour l'IA """ from enum import Enum ROBOT_RADIUS = 90 ROBOT_DIAMETER = ROBOT_RADIUS * 2 ROBOT_CENTER_TO_KICKER = 60 BALL_RADIUS = 21 MAX_PLAYER_ON_FIELD_PER_TEAM = 6 BALL_OUTSIDE_FIELD_BUFFER = 200 # Radius and angle...
22.6
84
0.728614
254
1,695
4.610236
0.551181
0.075149
0.056362
0.046114
0
0
0
0
0
0
0
0.047513
0.20531
1,695
74
85
22.905405
0.821826
0.258997
0
0
0
0
0.008084
0
0
0
0
0
0
1
0.045455
false
0
0.022727
0.022727
0.522727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431a5a90835e15a36f13f4092d02d4382895d659
1,570
py
Python
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
6
2020-12-04T00:08:02.000Z
2021-06-12T05:23:25.000Z
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
6
2020-12-09T11:40:01.000Z
2021-09-23T09:03:18.000Z
sample-demo-lambda-app/lambda_function.py
sriharshams-aws/aws-codeguru-profiler-python-demo-application
36e63bc6364871e6a7b29437c1fb68243d2c54f4
[ "Apache-2.0" ]
21
2020-12-09T01:35:48.000Z
2022-01-28T09:18:55.000Z
import boto3 import logging import os from random import randrange from urllib.request import urlopen # It is not recommended to enable DEBUG logs in production, # this is just to show an example of a recommendation # by Amazon CodeGuru Profiler. logging.getLogger('botocore').setLevel(logging.DEBUG) SITE = 'http://w...
27.54386
81
0.659236
206
1,570
4.873786
0.514563
0.02988
0.033865
0.043825
0.035857
0
0
0
0
0
0
0.01598
0.242675
1,570
56
82
28.035714
0.828427
0.153503
0
0.052632
0
0
0.105144
0.015885
0
0
0
0
0
1
0.078947
false
0
0.131579
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431b587034ff91b11e453596c7cd2a1cc508eb0c
920
py
Python
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
4
2020-07-26T20:41:03.000Z
2020-08-04T05:36:32.000Z
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
null
null
null
setup.py
panchambanerjee/access_spotify
d1c50d1553718755d58d034e8d2049f986ef5f84
[ "MIT" ]
1
2020-08-04T05:36:34.000Z
2020-08-04T05:36:34.000Z
#!/usr/bin/env python import setuptools from setuptools import setup from os import path # Read the package requirements with open("requirements.txt", "r") as f: requirements = [line.rstrip("\n") for line in f if line != "\n"] # Read the contents of the README file this_directory = path.abspath(path.dirname(__fi...
31.724138
104
0.706522
125
920
5.064
0.632
0.094787
0.060032
0.094787
0
0
0
0
0
0
0
0.003947
0.173913
920
28
105
32.857143
0.828947
0.094565
0
0
0
0
0.264174
0.062726
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431c4388fab05fa311c4c60aa774db64074aff3d
528
py
Python
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
1
2021-01-29T04:54:23.000Z
2021-01-29T04:54:23.000Z
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
null
null
null
hearthstone/hslog/utils.py
bertokhoury/python-hearthstone
635a8a14b85f468c1ab1d0bc9d0bcffaa00fda43
[ "MIT" ]
null
null
null
from hearthstone.enums import GameTag, TAG_TYPES def parse_enum(enum, value): if value.isdigit(): value = int(value) elif hasattr(enum, value): value = getattr(enum, value) else: raise Exception("Unhandled %s: %r" % (enum, value)) return value def parse_tag(tag, value): tag = parse_enum(GameTag, tag) if...
22.956522
74
0.702652
77
528
4.727273
0.363636
0.098901
0.093407
0.10989
0.137363
0
0
0
0
0
0
0
0.168561
528
22
75
24
0.829157
0
0
0.222222
0
0
0.083333
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
431e555f5efee68273402bccef7dcb0a30ea9d0c
2,364
py
Python
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
ejemplo_clase_00.py
ernestoarzabala/Curso-Python-Utch
ed5cd89ed85a1021d78fd17d495b3b3ec0203c77
[ "Unlicense" ]
null
null
null
# Archivo ejemplo 00 de creacion de clases en Python from math import gcd # greatest common denominator = Maximo Comun Divisor (MCD) class Fraccion: """ La clase Fraccion: Una fraccion es un part de enteros: un numerador (num) y un denominador (den !=0 ) cuyo MCD es 1. """ def __init__(self,numer...
38.754098
164
0.651861
321
2,364
4.697819
0.361371
0.027851
0.026525
0.018568
0.35809
0.35809
0.35809
0.312997
0.249337
0.249337
0
0.00737
0.253807
2,364
60
165
39.4
0.846939
0.410321
0
0.142857
0
0
0.173949
0
0
0
0
0
0
1
0.178571
false
0
0.035714
0
0.392857
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
43204edf29ab75f14a0b24a7c9fd04d677528ff0
732
py
Python
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
null
null
null
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
8
2021-01-05T00:06:26.000Z
2022-03-12T01:05:06.000Z
recs/live_project_popularity_recommender.py
WingCode/live-project
977dfbcaade35d8173dbb6ace102fe8998f1cdf4
[ "MIT" ]
4
2021-01-04T07:23:17.000Z
2022-03-18T12:29:37.000Z
import os import pandas as pd class LiveProjectPopularityBasedRecs: def __init__(self): self.charts = {} charts_folder = "charts" if os.path.isdir(charts_folder): for file in os.listdir("charts"): name, ext = file.split('.') if ext == "csv" an...
25.241379
101
0.545082
85
732
4.576471
0.470588
0.154242
0.061697
0.092545
0.143959
0.143959
0
0
0
0
0
0.004132
0.338798
732
28
102
26.142857
0.799587
0
0
0.1
0
0
0.091781
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.4
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43245976f12a77315f00f3cf0db335fcb32e0255
647
py
Python
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
2
2016-09-09T04:19:01.000Z
2019-02-15T20:28:13.000Z
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
67
2016-06-02T19:37:56.000Z
2018-02-22T05:23:45.000Z
pce/src/testing/test_pce.py
elise-baumgartner/onramp
beb3c807264fcb70d8069ff2e3990b0ce3f59912
[ "BSD-3-Clause" ]
9
2015-06-22T22:10:22.000Z
2016-04-26T15:35:45.000Z
#!../env/bin/python """A simple test script for the PCE portion of OnRamp. Usage: ./test_pce.py This script is only intended to be run in a fresh install of the repository. It has side-effects that could corrupt module and user data if run in a production setting. Prior to running this script, ensure that onramp/pce...
26.958333
79
0.723338
107
647
4.205607
0.635514
0.031111
0.026667
0
0
0
0
0
0
0
0
0.001898
0.185471
647
23
80
28.130435
0.851992
0.7017
0
0
0
0
0.172043
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
4327e63a016b0fdf98132c5f404968581fab3fee
1,860
py
Python
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
182
2019-09-25T18:48:09.000Z
2022-03-22T01:22:21.000Z
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
38
2019-09-11T00:51:35.000Z
2022-03-30T12:05:19.000Z
scribdl/test/test_download.py
fatshotty/scribd-downloader
d07e301c0a7781cf0b8cf38846061e043e8b86e9
[ "MIT" ]
83
2019-10-11T12:07:29.000Z
2022-03-31T05:06:47.000Z
from ..downloader import Downloader import os import pytest @pytest.fixture def cwd_to_tmpdir(tmpdir): os.chdir(str(tmpdir)) def test_audiobook_download(cwd_to_tmpdir, monkeypatch): audiobook_url = "https://www.scribd.com/audiobook/237606860/100-Ways-to-Motivate-Yourself-Change-Your-Life-Forever" audio...
38.75
119
0.768817
274
1,860
4.959854
0.361314
0.03532
0.05298
0.083885
0.360559
0.198676
0.10596
0.067697
0.067697
0
0
0.064496
0.124731
1,860
47
120
39.574468
0.77027
0.037097
0
0
0
0.088235
0.220917
0.037472
0
0
0
0
0.235294
1
0.147059
false
0
0.088235
0
0.235294
0.029412
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432a6cd43a1645c5ef69788411b16a04cd68ac58
20,941
py
Python
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
443
2018-02-08T02:53:48.000Z
2020-10-13T10:01:55.000Z
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
27
2020-10-14T10:01:52.000Z
2022-03-12T00:49:47.000Z
yasql/apps/sqlorders/views.py
Fanduzi/YaSQL
bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5
[ "Apache-2.0" ]
148
2018-03-15T06:07:25.000Z
2020-08-17T14:58:45.000Z
# -*- coding:utf-8 -*- # edit by fuzongfei import base64 import datetime # Create your views here. import json from django.http import Http404, HttpResponse from django.utils import timezone from django_filters.rest_framework import DjangoFilterBackend from rest_framework import filters from rest_framework.exceptions ...
41.715139
111
0.633351
2,027
20,941
6.418352
0.178096
0.053805
0.041507
0.030669
0.568486
0.542045
0.507148
0.494927
0.476249
0.476249
0
0.00997
0.243207
20,941
501
112
41.798403
0.810954
0.021441
0
0.472868
0
0.002584
0.09277
0.010384
0
0
0
0
0
1
0.069767
false
0
0.043928
0
0.423773
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432ad11a5c271d697e37438e64317a7886323133
1,489
py
Python
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
perp_adj.py
shmakn99/Knowledge-Graph-VG
ce2b0d6e16199357f1afc4aa7e58f74aae35e023
[ "MIT" ]
null
null
null
import glove_util as gut import numpy as np from sklearn.decomposition import TruncatedSVD import json with open('freq_count_pred.json') as f: freq_count_pred = json.load(f) def get_pc(sentences): svd = TruncatedSVD(n_components=1, n_iter=7, random_state=0) svd.fit(sentences) return svd.components_ def weight...
22.560606
181
0.725319
221
1,489
4.742081
0.316742
0.120229
0.099237
0.145038
0.290076
0.137405
0.137405
0.137405
0.137405
0.137405
0
0.026583
0.141034
1,489
65
182
22.907692
0.792807
0
0
0.26087
0
0
0.108798
0.018805
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.195652
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432f6dd85dd7a23f729a99a79b5f40586fb8f07f
2,732
py
Python
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
150
2016-10-05T11:09:36.000Z
2022-03-06T16:24:41.000Z
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
27
2017-03-02T03:37:02.000Z
2022-02-10T04:59:54.000Z
dino/validation/events/message/limit_msg_length.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
21
2016-11-11T07:51:48.000Z
2020-04-26T21:38:33.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
36.918919
114
0.688507
353
2,732
5.181303
0.410765
0.032805
0.028431
0.017496
0.030618
0
0
0
0
0
0
0.010942
0.2306
2,732
73
115
37.424658
0.859182
0.189239
0
0.085106
0
0
0.150704
0.01044
0
0
0
0
0
1
0.085106
false
0
0.170213
0
0.446809
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
432f8e360fc047fc0c5026f477fadfd50ec95d5c
4,779
py
Python
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
null
null
null
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
null
null
null
zabbix/prom2zabbix.py
tldr-devops/telegraf-monitoring-agent-setup
1f0b0f658acf9e685c121ffaee658bbe3fbad022
[ "MIT" ]
1
2022-03-31T20:26:21.000Z
2022-03-31T20:26:21.000Z
#!/usr/bin/env python # Script for parsing prometheus metrics format and send it into zabbix server # MIT License # https://github.com/Friz-zy/telegraf-monitoring-agent-setup import re import os import sys import time import json import socket import optparse try: from urllib.request import urlopen except: fr...
32.958621
122
0.514124
515
4,779
4.697087
0.345631
0.054568
0.037205
0.031005
0.096734
0.071931
0.022323
0.022323
0
0
0
0.012477
0.312408
4,779
144
123
33.1875
0.723676
0.111948
0
0.082569
0
0.009174
0.19229
0.022469
0.009174
0
0
0
0
1
0.018349
false
0
0.082569
0
0.110092
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4331808474e580c548bdad9e356ef4402fccebc7
6,239
py
Python
NAS/run_NAS.py
gatech-sysml/CompOFA
baf561f14a561547ff51933e45f90ddf00cbb3cf
[ "Apache-2.0" ]
20
2021-04-18T09:13:06.000Z
2022-03-29T03:54:23.000Z
NAS/run_NAS.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-07-02T16:08:17.000Z
2022-02-16T09:20:47.000Z
NAS/run_NAS.py
compofa-blind-review/compofa-iclr21
a97b726f17519e666c6fcdb4ec0b90cfa64d8d9f
[ "Apache-2.0" ]
2
2021-09-06T06:48:20.000Z
2021-12-02T12:11:30.000Z
# CompOFA – Compound Once-For-All Networks for Faster Multi-Platform Deployment # Under blind review at ICLR 2021: https://openreview.net/forum?id=IgIk8RRT-Z # # Implementation based on: # Once for All: Train One Network and Specialize it for Efficient Deployment # Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song ...
34.28022
118
0.703478
831
6,239
5.115523
0.358604
0.03952
0.016467
0.014114
0.092214
0.037638
0.025876
0.015526
0
0
0
0.024755
0.197147
6,239
181
119
34.469613
0.823717
0.178234
0
0.109589
0
0
0.191221
0.034952
0
0
0
0
0
1
0.006849
false
0
0.143836
0.006849
0.157534
0.075342
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433408402a1699c513f68c745b4d958c3d3e01cc
375
py
Python
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
actvenv.py
lastone9182/console-keep
250b49653be9d370a1bb0f1c39c5f853c2eaa47e
[ "MIT" ]
null
null
null
import os # virtualenv SCRIPTDIR = os.path.realpath(os.path.dirname(__file__)) venv_name = '_ck' osdir = 'Scripts' if os.name is 'nt' else 'bin' venv = os.path.join(venv_name, osdir, 'activate_this.py') activate_this = (os.path.join(SCRIPTDIR, venv)) # Python 3: exec(open(...).read()), Python 2: execfile(...) exec(op...
34.090909
62
0.714667
57
375
4.438596
0.526316
0.094862
0.079051
0
0
0
0
0
0
0
0
0.005935
0.101333
375
11
62
34.090909
0.744807
0.181333
0
0
0
0
0.101639
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43342d0254660446a56231ce55513c2e38b5ae8e
1,036
py
Python
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
testing/scripts/checklicenses.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import sys import common def main_run(args): with common.temporary_file() as tempfile_path: rc = common...
22.042553
72
0.655405
144
1,036
4.527778
0.548611
0.055215
0.055215
0
0
0
0
0
0
0
0
0.008568
0.21139
1,036
46
73
22.521739
0.789474
0.169884
0
0
0
0
0.116822
0
0
0
0
0
0
1
0.068966
false
0
0.137931
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43352b59b8e176e10113ef95c3a83be9ee114213
2,139
py
Python
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
1
2019-11-19T12:22:46.000Z
2019-11-19T12:22:46.000Z
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
autoPyTorch/utils/benchmarking/benchmark_pipeline/for_autonet_config.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
from autoPyTorch.utils.config.config_option import ConfigOption from autoPyTorch.pipeline.base.sub_pipeline_node import SubPipelineNode import traceback class ForAutoNetConfig(SubPipelineNode): def fit(self, pipeline_config, autonet, instance, data_manager, run_id, task_id): for config_file in self.get_co...
41.941176
102
0.622721
263
2,139
4.855513
0.26616
0.087706
0.070478
0.037588
0.198121
0.154268
0.154268
0.124511
0.124511
0.124511
0
0.015524
0.277232
2,139
51
103
41.941176
0.810479
0
0
0.2
0
0
0.037401
0
0
0
0
0
0
1
0.088889
false
0
0.066667
0
0.311111
0.044444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
43355f2d68e669881638faa623ef2c93af39b15e
913
py
Python
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
31
2016-03-14T09:48:02.000Z
2020-08-12T18:23:47.000Z
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
2
2018-05-24T11:18:58.000Z
2021-10-03T09:57:37.000Z
csv/query_csv.py
RobustPerception/python_examples
c79e8f4745fe255fc327e31e96a2065dedca23c1
[ "Apache-2.0" ]
27
2016-04-14T17:46:48.000Z
2021-10-03T08:51:11.000Z
import csv import requests import sys """ A simple program to print the result of a Prometheus query as CSV. """ if len(sys.argv) != 3: print('Usage: {0} http://prometheus:9090 a_query'.format(sys.argv[0])) sys.exit(1) response = requests.get('{0}/api/v1/query'.format(sys.argv[1]), params={'query': s...
25.361111
74
0.671413
126
913
4.793651
0.484127
0.046358
0.046358
0.059603
0
0
0
0
0
0
0
0.015564
0.155531
913
35
75
26.085714
0.767834
0.094195
0
0.095238
0
0
0.17246
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
43369a6ebfc0d1acdeab1dc4fb9b48324cf2ec3d
4,696
py
Python
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
null
null
null
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
null
null
null
vehicle/tests.py
COS301-SE-2020/ctrlintelligencecapstone
ddfc92408ed296c6bf64b2dd071b948a1446ede8
[ "MIT" ]
1
2021-05-18T02:53:10.000Z
2021-05-18T02:53:10.000Z
from rest_framework.test import APITestCase from rest_framework.test import APIRequestFactory import requests import pytest import json from django.core.management import call_command from django.db.models.signals import pre_save, post_save, pre_delete, post_delete, m2m_changed from rest_framework.test import APIClien...
23.48
118
0.5773
510
4,696
5.137255
0.229412
0.074809
0.096183
0.104198
0.664886
0.583206
0.498855
0.498855
0.498855
0.449237
0
0.019093
0.286201
4,696
199
119
23.59799
0.76253
0.097104
0
0.516129
0
0
0.196923
0.072189
0
0
0
0
0.072581
1
0.072581
false
0.008065
0.072581
0
0.153226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4337ba6700b6f7409e4f2ff2a13fe2038bd8af6e
4,229
py
Python
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
3
2017-02-23T07:59:15.000Z
2021-01-16T18:49:32.000Z
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
null
null
null
book_figures/chapter5/fig_posterior_cauchy.py
aragilar/astroML
d3f6279eb632957662338761cb559a1dcd541fb0
[ "BSD-2-Clause" ]
1
2021-01-16T18:49:36.000Z
2021-01-16T18:49:36.000Z
""" Posterior for Cauchy Distribution --------------------------------- Figure 5.11 The solid lines show the posterior pdf :math:`p(\mu|{x_i},I)` (top-left panel) and the posterior pdf :math:`p(\gamma|{x_i},I)` (top-right panel) for the two-dimensional pdf from figure 5.10. The dashed lines show the distribution of ap...
32.782946
79
0.64105
645
4,229
4.130233
0.356589
0.004505
0.01952
0.031532
0.15991
0.144895
0.135886
0.081081
0.081081
0.045796
0
0.041935
0.154174
4,229
128
80
33.039063
0.702824
0.39773
0
0.059701
0
0
0.053493
0
0
0
0
0
0
1
0.029851
false
0
0.089552
0
0.149254
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4337eb54a2cf6f8bdc85fd9f00b9444d1da0bf1a
9,090
py
Python
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
plaso/formatters/file_system.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The file system stat event formatter.""" from __future__ import unicode_literals from dfvfs.lib import definitions as dfvfs_definitions from plaso.formatters import interface from plaso.formatters import manager from plaso.lib import errors class FileStatEventFormatter(interface.Conditio...
33.791822
79
0.706931
1,047
9,090
5.842407
0.195798
0.072258
0.049698
0.031388
0.565637
0.479974
0.453327
0.420795
0.420795
0.407062
0
0.038073
0.193839
9,090
268
80
33.91791
0.79667
0.216392
0
0.396104
0
0
0.261949
0.111191
0
0
0.047076
0
0
1
0.025974
false
0
0.032468
0
0.207792
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433b76089cf8c989828e437cbbad09a9205ff737
8,440
py
Python
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
qualtrics_iat/qualtrics_tools.py
ycui1/QualtricsIAT
c81b12e2669e1e58b4653e85c0d22ac5a821b174
[ "MIT" ]
null
null
null
from pathlib import Path import requests from requests_toolbelt.multipart.encoder import MultipartEncoder # api_token = "iNKzBVNVAoTMhwnT2amhZRAP4dTBjkEVw9AbpRWg" # brand_center = "mdanderson.co1" # data_center = "iad1" # headers = {"x-api-token": api_token} class QualtricsTool: """Data model to manage Qualtrics...
45.621622
120
0.632464
1,040
8,440
4.8875
0.166346
0.029904
0.031477
0.012984
0.385993
0.322447
0.303167
0.28015
0.266378
0.246705
0
0.002766
0.271682
8,440
184
121
45.869565
0.824142
0.216588
0
0.296
0
0
0.172392
0.073905
0
0
0
0
0
1
0.104
false
0
0.024
0
0.232
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
433fe053f9b13b1595ca272851794d156b8d5378
11,693
py
Python
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
portfolio/gui/tabresults/righttable.py
timeerr/portfolio
256032eb638048f3cd3c824f2bb4976a8ec320b1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from datetime import datetime from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget, QAbstractItemView, QMenu, QMessageBox from PyQt5.QtGui import QCursor from PyQt5.QtCore import Qt, pyqtSignal, QObject from portfolio.db.fdbhandler import results, strategies, balances def updatingdata(func...
39.107023
120
0.584281
1,274
11,693
5.171115
0.215856
0.019126
0.039466
0.021858
0.365209
0.304341
0.274287
0.228597
0.205525
0.154523
0
0.003056
0.328316
11,693
298
121
39.238255
0.835752
0.215086
0
0.353293
0
0
0.044037
0
0
0
0
0
0
1
0.041916
false
0
0.02994
0
0.107784
0.005988
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
434140c6bb3287e6ed3f82da31b35ca3a7bbad65
451
py
Python
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
1
2015-02-24T06:30:12.000Z
2015-02-24T06:30:12.000Z
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
null
null
null
setup.py
NikolaiT/proxychecker
cd6a024668826c415f91e909c98e4110ffc8c10d
[ "BSD-3-Clause" ]
2
2015-03-19T11:30:49.000Z
2020-03-29T12:08:01.000Z
#!/usr/bin/env python from distutils.core import setup VERSION = "0.0.1" setup( author='Nikolai Tschacher', name = "proxychecker", version = VERSION, description = "A Python proxychecker module that makes use of socks", url = "http://incolumitas.com", license = "BSD", author_email = "admin...
26.529412
73
0.656319
51
451
5.764706
0.745098
0.095238
0
0
0
0
0
0
0
0
0
0.008242
0.192905
451
16
74
28.1875
0.799451
0.044346
0
0
0
0
0.425581
0.048837
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4346fdc0a3d3d41ed572ed723800bf5f1dc198ab
1,574
py
Python
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
28
2019-09-09T08:12:31.000Z
2021-12-17T00:09:14.000Z
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
33
2019-11-07T05:36:04.000Z
2022-01-29T01:14:57.000Z
sbin/preload_findit_coverage_2.py
cariaso/metapub
bfa361dd6e5de8ee0859e596d490fb478f7dcfba
[ "Apache-2.0" ]
10
2019-09-09T10:04:05.000Z
2021-06-08T16:00:14.000Z
from __future__ import absolute_import, print_function, unicode_literals # "preload" for FindIt #2: iterate over same journal list, but actually # load a PubMedArticle object on each PMID. (no list output created) from metapub import FindIt, PubMedFetcher from metapub.findit.dances import the_doi_2step from config...
30.269231
96
0.628971
204
1,574
4.622549
0.421569
0.050901
0.044539
0.054083
0.182397
0.182397
0.182397
0
0
0
0
0.023417
0.267471
1,574
51
97
30.862745
0.794449
0.086404
0
0.054054
0
0
0.038381
0
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.189189
0.081081
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4348293155a11622c60c701da79d91d559f0de88
48,209
py
Python
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
1
2020-06-09T18:54:09.000Z
2020-06-09T18:54:09.000Z
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
2
2020-06-09T18:54:32.000Z
2021-01-22T21:05:43.000Z
specs/dxgi.py
linkmauve/apitrace
a22dda1ac2f27cd014ac7a16e7b7b6ebc9f14ae1
[ "MIT" ]
1
2020-11-07T20:55:34.000Z
2020-11-07T20:55:34.000Z
########################################################################## # # Copyright 2014 VMware, Inc # Copyright 2011 Jose Fonseca # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
41.523686
344
0.733245
4,791
48,209
7.023377
0.191401
0.065619
0.04012
0.045648
0.318464
0.244376
0.20277
0.171773
0.161283
0.143927
0
0.017536
0.115207
48,209
1,160
345
41.559483
0.771328
0.029019
0
0.19833
0
0
0.390517
0.222227
0
0
0
0
0
1
0
false
0
0.001044
0
0.001044
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2897501c4860742a9eedfd04efe05fea8a41e0
1,465
py
Python
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
code/camera_calib.py
nitchith/CarND-Advanced-Lane-Lines
8e9e4d369f95f2076aa3b99c9015ac95c20037fc
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob import matplotlib.pyplot as plt def camera_calibrate(images_list, nx=9, ny=6, show_corners=False): # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) objp = np.zeros((ny*nx,3), np.float32) objp[:,:2] = np.mgrid[0:nx,0:ny].T.reshape(-1,2) # Ar...
34.069767
83
0.610239
205
1,465
4.321951
0.478049
0.009029
0.029345
0
0
0
0
0
0
0
0
0.038679
0.276451
1,465
43
83
34.069767
0.79717
0.258703
0
0.074074
0
0
0
0
0
0
0
0
0
1
0.037037
false
0
0.148148
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
4a2c8215b731a53474eb2fa6ab29c369314e2b86
22,135
py
Python
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
94
2017-02-06T11:01:02.000Z
2022-03-19T16:20:50.000Z
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
564
2016-08-30T16:23:46.000Z
2022-03-31T01:41:16.000Z
src/stratis_cli/_actions/_pool.py
stratis-storage/stratis-cli
16efcfe50558785ff44a1570ca554edb2006f8d2
[ "Apache-2.0" ]
41
2016-09-13T12:31:42.000Z
2022-03-23T09:42:04.000Z
# Copyright 2021 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.830283
92
0.614954
2,293
22,135
5.757087
0.148277
0.037118
0.012954
0.019695
0.54511
0.499886
0.479736
0.461859
0.454587
0.414135
0
0.00065
0.305308
22,135
600
93
36.891667
0.85784
0.251683
0
0.347826
0
0
0.077081
0
0
0
0
0
0.002899
1
0.049275
false
0
0.057971
0
0.127536
0.008696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2d85e10d7ec8df4402f2b20294f47dcb467eb8
16,294
py
Python
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
backend/src/contaxy/schema/auth.py
Felipe-Renck/contaxy
532d1f01aad1ea8155bc10216acedca601d37889
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from enum import Enum from typing import Dict, List, Optional import pydantic from fastapi import HTTPException, Path, status from pydantic import BaseModel, EmailStr, Field from contaxy.schema.exceptions import ClientValueError from contaxy.schema.shared import MAX_DESCRIPTION...
37.457471
266
0.651774
1,948
16,294
5.384497
0.209446
0.042997
0.051483
0.049576
0.446086
0.391744
0.341119
0.299171
0.29488
0.29488
0
0.014057
0.257764
16,294
434
267
37.543779
0.853233
0.327912
0
0.2
0
0.044444
0.396443
0.015932
0
0
0
0.004608
0
1
0.011111
false
0.033333
0.033333
0.003704
0.37037
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2f072d42921424ab487e97b0b0a7b2ce429f4d
1,193
py
Python
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
19
2020-08-28T08:35:21.000Z
2021-03-08T18:42:46.000Z
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
3
2020-08-31T15:57:55.000Z
2020-09-05T09:34:09.000Z
setup.py
richarddwang/hugdatafast
714ebac89cb6c616a53ec5da50d0c1c50c6f2a3e
[ "Apache-2.0" ]
null
null
null
import setuptools from hugdatafast.__init__ import __version__ with open("README.md", "r") as fh: long_description = fh.read() REQUIRED_PKGS = [ 'fastai>=2.0.8', 'fastscore>=1.0.1', # change of store_attr api 'datasets', ] setuptools.setup( name="hugdatafast", version=__version__, author=...
33.138889
77
0.68399
128
1,193
6.179688
0.71875
0.075853
0.04804
0.075853
0
0
0
0
0
0
0
0.016632
0.19363
1,193
36
78
33.138889
0.805613
0.020117
0
0
0
0
0.473459
0.038527
0
0
0
0
0
1
0
false
0
0.060606
0
0.060606
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a2f0deb5d53bf6a5794ae465d5f56eb3c3bd2c5
3,591
py
Python
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
null
null
null
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
3
2022-01-31T10:24:53.000Z
2022-03-29T12:30:04.000Z
tests/scripts/test_repository_actor_definition.py
drehak/leapp
062c76859e6b4a68592c6a387e44a2c1d36949ff
[ "Apache-2.0" ]
null
null
null
import pytest from leapp.repository.actor_definition import ActorDefinition, ActorInspectionFailedError, MultipleActorsError from leapp.exceptions import UnsupportedDefinitionKindError from leapp.repository import DefinitionKind from helpers import repository_dir import logging import mock _FAKE_META_DATA = { 'de...
49.875
118
0.601225
342
3,591
6.081871
0.25731
0.042308
0.063462
0.100962
0.305769
0.286058
0.286058
0.286058
0.238942
0.238942
0
0
0.29741
3,591
71
119
50.577465
0.824415
0.010025
0
0.190476
0
0
0.161835
0.078807
0
0
0
0
0.238095
1
0.015873
false
0
0.111111
0
0.126984
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a33a995384ea8c9d2b8647bf4341ccfb7cc9243
1,135
py
Python
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
2
2018-01-20T02:24:20.000Z
2018-06-07T18:16:59.000Z
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
WebHtmlExample/WebHtmlExample.py
lilei644/python-learning-example
71910a32bc8b3b8f23ba13babb583af453405bbe
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import re # 设置请求头 # 更换一下爬虫的User-Agent,这是最常规的爬虫设置 headers = { "User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'} # 获取天气信息 def get_weather(): html = requests.get("http://www.wea...
31.527778
142
0.65022
168
1,135
4.22619
0.565476
0.016901
0.042254
0.053521
0.188732
0.138028
0.138028
0.138028
0.138028
0.138028
0
0.054898
0.181498
1,135
35
143
32.428571
0.709365
0.100441
0
0.173913
0
0.043478
0.300493
0.023645
0
0
0
0
0
1
0.086957
false
0
0.130435
0
0.217391
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a3450cf5aa9171992cee7901efa3fe712343d3d
1,158
py
Python
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
1
2020-09-03T14:46:35.000Z
2020-09-03T14:46:35.000Z
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
1
2021-09-09T12:54:09.000Z
2021-09-14T07:47:58.000Z
Codi/diode.py
JosepFanals/HELM
feb579f37eb0850ba2a7acef18f8d3d78b9e599c
[ "MIT" ]
null
null
null
import numpy as np import math import matplotlib.pyplot as plt U = 5 # equival a l'E R = 2 # equival a R1 R2 = 3 P = 1.2 Vt = 0.026 Is = 0.000005 n = 200 # profunditat Vd = np.zeros(n) # sèries Vl = np.zeros(n) I1 = np.zeros(n) I1[0] = U / R # inicialització de les sèries Vd[0] = Vt * math.log(1 + I1[0] / Is)...
19.3
76
0.541451
223
1,158
2.811659
0.313901
0.028708
0.051037
0.031898
0.124402
0.054226
0.054226
0
0
0
0
0.062871
0.272021
1,158
59
77
19.627119
0.680902
0.183074
0
0.097561
0
0
0.016077
0
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.170732
0.121951
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a37446fd29ea2b6044d47c4ec0b0027825d51e4
2,623
py
Python
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
import pytest from whylogs.app.session import get_or_create_session, get_session, get_logger, reset_default_session, session_from_config from whylogs.app.config import SessionConfig from whylogs.app.session import Session from pandas import util def test_get_global_session(): _session = None session = get_o...
26.23
122
0.716737
324
2,623
5.540123
0.17284
0.05571
0.042897
0.070195
0.438997
0.367131
0.249582
0.209471
0.209471
0.209471
0
0.002338
0.184522
2,623
99
123
26.494949
0.83684
0
0
0.449275
0
0
0.050744
0
0
0
0
0
0.231884
1
0.115942
false
0
0.072464
0
0.188406
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a379f8a8c2abcf1cc5791849c692674276f7e20
851
py
Python
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
import enum BASELINE = "baseline" ENERGY = "energy" MAX_PRICE = "max_price" START_PRICE = "starting_price" INCREMENT = "increment" MIN_PRICE = "min_price" MAX_LOT_SIZE = "max_lot_size_wh" NAMESERVER_AGENT_AMOUNT = 3 ATTRIBUTE_LIST_LENGTH = 50 NEXT_ENERGY_CONSUMPTION = "next_energy_consumption" NEXT_ENERGY_GENERATION ...
24.314286
57
0.788484
119
851
5.142857
0.319328
0.107843
0.091503
0.081699
0.297386
0.142157
0.094771
0
0
0
0
0.013587
0.135135
851
34
58
25.029412
0.817935
0
0
0.071429
0
0
0.300823
0.137485
0
0
0
0
0
1
0
false
0
0.035714
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a37bdd049a40072735c67bea9e8cc13a3a7a335
1,553
py
Python
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
19
2018-01-28T14:35:40.000Z
2020-12-04T03:04:02.000Z
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
8
2018-06-02T14:28:28.000Z
2021-08-06T10:22:37.000Z
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
21
2018-02-25T14:07:48.000Z
2020-05-28T23:10:52.000Z
from django.contrib.auth.models import User from django.test import TestCase from django.test import Client from django.urls import reverse from target import models from django.utils import timezone # Create your tests here. class URLSWork(TestCase): @classmethod def setUpTestData(cls): target = mod...
33.76087
78
0.63812
185
1,553
5.297297
0.335135
0.055102
0.140816
0.132653
0.323469
0.323469
0.323469
0.323469
0.323469
0.323469
0
0.015319
0.2434
1,553
45
79
34.511111
0.818723
0.01481
0
0.25
0
0
0.088351
0.013743
0
0
0
0
0.15
1
0.05
false
0.025
0.15
0
0.225
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a39a497868bd170b5a86c4ae6d32db864cbebc8
7,240
py
Python
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
""" Autonomous dataset collection of data for jetson nano John Marangola - marangol@bc.edu """ import datasets import json from datasets import Board, ChessPiece, PieceColor, PieceType #from realsense_utils import RealSenseCamera import preprocessing as pr import cv2 import pandas as pd import os from os.path import...
31.754386
180
0.604144
971
7,240
4.356334
0.325438
0.016548
0.005674
0.010402
0.09669
0.078251
0.058865
0.058865
0.040189
0.040189
0
0.02487
0.283564
7,240
227
181
31.894273
0.79063
0.12942
0
0.036036
0
0
0.079957
0.02549
0
0
0
0
0
1
0.036036
false
0
0.117117
0
0.18018
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a3cf72d3d9f4ab9e1a082a0ec19d609ba13facf
528
py
Python
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
import unittest from translator import english_to_french, french_to_english class TestenglishToFrench(unittest.TestCase): def test1(self): self.assertEqual(english_to_french(["Hello"]), "Bonjour") self.assertNotEqual(english_to_french(["Bonjour"]), "Hello") class TestfrenchToEnglish(unittest.TestC...
35.2
68
0.727273
58
528
6.275862
0.362069
0.074176
0.123626
0.131868
0.236264
0.236264
0.236264
0
0
0
0
0.004396
0.138258
528
15
69
35.2
0.795604
0
0
0.166667
0
0
0.10586
0
0
0
0
0
0.333333
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
4a3d8daa44bdf458c650e19786cc3f1f2403777e
3,553
py
Python
tests/ut/python/parallel/test_auto_parallel_transformer.py
huxian123/mindspore
ec5ba10c82bbd6eccafe32d3a1149add90105bc8
[ "Apache-2.0" ]
2
2021-04-22T07:00:59.000Z
2021-11-08T02:49:09.000Z
tests/ut/python/parallel/test_auto_parallel_transformer.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
tests/ut/python/parallel/test_auto_parallel_transformer.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
1
2021-05-10T03:30:36.000Z
2021-05-10T03:30:36.000Z
# 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...
30.62931
114
0.665072
479
3,553
4.768267
0.352818
0.035026
0.019702
0.028459
0.15324
0.056042
0.056042
0
0
0
0
0.031873
0.22291
3,553
115
115
30.895652
0.795364
0.157895
0
0.142857
0
0
0.005037
0
0
0
0
0
0
1
0.155844
false
0
0.103896
0.012987
0.402597
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a3dd5e26114808a45a3424f7c019a215fa96e04
6,227
py
Python
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
30.826733
78
0.605107
686
6,227
5.209913
0.294461
0.040291
0.043649
0.033576
0.362899
0.260772
0.175154
0.116396
0.116396
0.078064
0
0.021141
0.29356
6,227
201
79
30.9801
0.791316
0.508431
0
0.064516
0
0
0.195149
0.063433
0
0
0
0
0
1
0.096774
false
0
0.016129
0
0.387097
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a3e2e6cca24d36e7e6072a43d4a7616c515981f
1,446
py
Python
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
from __future__ import absolute_import # Copyright (c) 2010-2017 openpyxl import pytest from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml @pytest.fixture def GradientFillProperties(): from ..fill import GradientFillProperties return GradientFillProperties ...
23.322581
55
0.64177
139
1,446
6.546763
0.302158
0.030769
0.035165
0.032967
0.138462
0.138462
0.138462
0.138462
0.138462
0.138462
0
0.015962
0.263485
1,446
61
56
23.704918
0.838498
0.02213
0
0.409091
0
0
0.095609
0.029745
0
0
0
0
0.090909
1
0.136364
false
0
0.136364
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4054b106f4552f95f762ef5c1bcfd72acaebe7
19,509
py
Python
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
71
2015-10-25T16:50:18.000Z
2022-03-02T03:46:19.000Z
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
336
2015-02-11T22:39:54.000Z
2022-02-22T18:42:32.000Z
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
24
2016-09-11T17:12:10.000Z
2022-02-24T22:57:09.000Z
# Copyright (c) 2014-2021, Dr Alex Meakins, Raysect Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
49.767857
120
0.65703
2,693
19,509
4.383587
0.126996
0.033884
0.055061
0.030241
0.532317
0.439983
0.34028
0.252181
0.218806
0.158153
0
0.020592
0.248244
19,509
391
121
49.895141
0.784331
0.144087
0
0.118705
0
0.010791
0.047544
0.008326
0
0
0
0
0
1
0.014388
false
0.003597
0.032374
0.003597
0.057554
0.035971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a42eafd975ea0137426e4612231c34ec1b242ab
4,041
py
Python
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
16
2022-02-23T11:46:18.000Z
2022-03-29T07:35:33.000Z
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
1
2022-03-15T13:51:36.000Z
2022-03-16T02:56:15.000Z
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
3
2022-02-24T02:06:05.000Z
2022-03-13T11:31:16.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import datetime import os import pathlib import random import sys from loguru import logger sys.path.append('../..') from similarities import BM25Similarity from similarities.utils import http_get from similarities.data_loader import Searc...
35.761062
113
0.717644
577
4,041
4.861352
0.287695
0.064171
0.024955
0.018538
0.356506
0.346524
0.312299
0.290196
0.264528
0.264528
0
0.013322
0.145509
4,041
112
114
36.080357
0.799015
0.21752
0
0.338028
0
0.028169
0.169459
0
0
0
0
0
0
1
0.028169
false
0
0.140845
0
0.197183
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a43a63b067e2c9d49aadc213c2c322feea2bc14
14,531
py
Python
tb/test_arp_64.py
sergachev/verilog-ethernet
cef6b47bb3b969120cabce3b89b0c98bb47ca6a9
[ "MIT" ]
2
2020-01-09T05:58:04.000Z
2022-01-04T03:29:00.000Z
tb/test_arp_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
null
null
null
tb/test_arp_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
1
2021-09-25T05:45:18.000Z
2021-09-25T05:45:18.000Z
#!/usr/bin/env python """ Copyright (c) 2014-2018 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
31.727074
77
0.671874
2,026
14,531
4.441757
0.127838
0.062229
0.074675
0.076008
0.675853
0.600845
0.551172
0.435271
0.400267
0.351595
0
0.058942
0.24809
14,531
457
78
31.796499
0.76469
0.08967
0
0.390533
0
0
0.029991
0.003332
0
0
0.063011
0
0.177515
1
0.011834
false
0
0.014793
0
0.029586
0.02071
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4404fe1d92ad81158f3995d99e25353d3c8492
4,315
py
Python
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
2
2021-07-27T06:57:36.000Z
2021-08-16T04:17:41.000Z
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
null
null
null
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
1
2021-11-06T05:32:40.000Z
2021-11-06T05:32:40.000Z
import random import sys import subprocess def pip_install(module: str): subprocess.run([sys.executable, "-m", "pip", "-q", "--disable-pip-version-check", "install", module]) try: import requests except: print("'requests' module not found! Trying to install... ") pip_install("requests")...
36.567797
145
0.526999
528
4,315
4.204545
0.356061
0.032432
0.029279
0.043243
0.27973
0.233784
0.196396
0.128378
0.111712
0.111712
0
0.026445
0.290151
4,315
117
146
36.880342
0.698008
0
0
0.242424
0
0.050505
0.339924
0.041448
0
0
0
0
0
1
0.050505
false
0
0.050505
0
0.171717
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a48326e1bcc0c4ce67dffee3193eed37eb8dfe4
2,881
py
Python
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
89
2017-10-31T05:38:30.000Z
2021-11-06T11:53:19.000Z
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
74
2017-11-07T13:06:33.000Z
2021-05-06T14:26:19.000Z
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
56
2017-11-04T13:54:56.000Z
2021-06-18T18:05:46.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2017 beyond-blockchain.org. 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 l...
57.62
116
0.701493
382
2,881
5.164921
0.424084
0.091232
0.152053
0.05778
0.23112
0.171313
0.14293
0.14293
0.100355
0
0
0.012525
0.140923
2,881
49
117
58.795918
0.784646
0.204443
0
0
0
0
0.408494
0.018389
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4861b9f42f405c3f1bc83a1f33fe81d2ee9835
33,928
py
Python
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
null
null
null
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
null
null
null
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
1
2022-03-31T13:47:50.000Z
2022-03-31T13:47:50.000Z
""" Usage: main.py [<project>] Options: <project> Path to the .uvprojx file (Keil® µVision5 Project File). The .uvoptx file (Keil® µVision5 Project Options file) will be located automatically as it shall be adjacent to the .uvprojx file, having the same filenam...
38.207207
122
0.528855
3,563
33,928
4.91524
0.13556
0.015075
0.005653
0.006167
0.289499
0.222235
0.181979
0.150688
0.141438
0.121852
0
0.002513
0.378272
33,928
887
123
38.250282
0.827629
0.099593
0
0.255287
0
0
0.080453
0.017676
0
0
0
0.001127
0
1
0.028701
false
0
0.016616
0
0.18429
0.004532
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4b8d448257463b5f6347e3da0f24a94bac2394
10,816
py
Python
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
null
null
null
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
null
null
null
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
1
2020-10-07T12:44:47.000Z
2020-10-07T12:44:47.000Z
from glob import glob import sys import os import numpy as np import random from mpunet.utils import create_folders import argparse def get_parser(): parser = argparse.ArgumentParser(description="Prepare a data folder for a" "CV experiment setup.") parser.add_a...
41.125475
91
0.606971
1,504
10,816
4.152926
0.182846
0.026897
0.027217
0.024656
0.270413
0.198687
0.154019
0.079731
0.058918
0.036824
0
0.006419
0.294194
10,816
262
92
41.282443
0.811763
0.127589
0
0.05
0
0
0.20608
0.004587
0
0
0
0
0.011111
1
0.038889
false
0
0.05
0
0.105556
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4cc74674f055ddea956ccb55ba03b1e2719b21
1,964
py
Python
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
1
2021-12-04T14:57:48.000Z
2021-12-04T14:57:48.000Z
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
52
2019-12-04T05:47:10.000Z
2020-06-09T03:26:12.000Z
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
8
2019-12-04T08:26:00.000Z
2020-06-09T07:40:11.000Z
#!/usr/bin/python """ (C) Copyright 2018 Intel 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 ...
40.081633
79
0.67057
302
1,964
4.311258
0.456954
0.069124
0.096774
0.119816
0.036866
0.036866
0.036866
0.036866
0.036866
0.036866
0
0.051713
0.212322
1,964
48
80
40.916667
0.789916
0.589613
0
0
0
0
0.136364
0.13369
0
0
0
0
0
1
0.157895
false
0
0.105263
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4f4bc06c12566c84246f7896cf490e49f35766
2,059
py
Python
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
null
null
null
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
null
null
null
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
3
2019-12-02T23:01:24.000Z
2022-01-26T04:48:41.000Z
import numpy as np import sys sys.path.append('/homes/rlreed/workspace/unotran/src') from coarseBounds import computeBounds, Grouping import pickle from makeDLPbasis import makeBasis as makeDLP from makeKLTbasis import makeBasis as makeKLT import sph import sph_dgm import pydgm def buildGEO(ass_map): fine_map = [...
27.453333
115
0.644973
289
2,059
4.422145
0.408305
0.06651
0.014085
0.00626
0.014085
0.014085
0.014085
0.014085
0.014085
0
0
0.02448
0.206411
2,059
74
116
27.824324
0.75765
0.016513
0
0
0
0
0.086053
0.040554
0
0
0
0
0
1
0.037736
false
0
0.169811
0
0.245283
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a4fd2b57960e4af2acbb3603c634154bea6e80b
9,280
py
Python
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.57085
245
0.691487
1,028
9,280
6.033074
0.142023
0.081264
0.1693
0.059336
0.652693
0.568526
0.523702
0.486295
0.382941
0.382941
0
0.002573
0.246228
9,280
246
246
37.723577
0.88406
0.578772
0
0.064103
0
0
0.11083
0
0
0
0
0
0
1
0.179487
false
0
0.025641
0.025641
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a5059beb09af2b372b1d15c442329a32a505195
1,770
py
Python
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
1
2021-02-16T14:26:30.000Z
2021-02-16T14:26:30.000Z
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
null
null
null
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
null
null
null
from .gcore.queries import GetNetworkFee, GetBalance from .gcore.mutations import SendCoin from typing import List, Optional from .exc import SendLimitError, InvalidClientObject class Send: def __init__(self, address: str, cryptocurrency: str, amount: float): self.address = address self.cryptocurr...
33.396226
114
0.627684
170
1,770
6.423529
0.405882
0.115385
0.049451
0.076923
0.071429
0
0
0
0
0
0
0.009531
0.288701
1,770
52
115
34.038462
0.857824
0
0
0.090909
0
0
0.071186
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0.022727
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
4a51566e6f537d3c7defee7d9f6dd2e1ce52fbb6
2,190
py
Python
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
94
2016-09-22T09:13:19.000Z
2022-03-30T07:35:35.000Z
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
1
2020-11-22T03:05:05.000Z
2020-11-22T03:05:05.000Z
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
38
2017-06-11T22:03:04.000Z
2022-03-10T07:46:39.000Z
# -*- coding: utf-8 -*- try: from urlparse import urlparse, urlunsplit except ImportError: from urllib.parse import urlparse, urlunsplit class URL(object): DEFAULT_SCHEME = ["http", "https"] def __init__(self, url, allowed_scheme=None): self._url = url self.url = urlparse(self._url) ...
31.73913
94
0.581279
286
2,190
4.318182
0.185315
0.068016
0.053441
0.022672
0.0583
0
0
0
0
0
0
0.002609
0.3
2,190
68
95
32.205882
0.803001
0.009589
0
0.092593
0
0.018519
0.047531
0
0
0
0
0
0
1
0.12963
false
0
0.055556
0.018519
0.425926
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a533004a2f846794254f71446a4268346a94d9f
550
py
Python
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
from .base import Service from ..requests.dimension import CreateDimensionsRequest, DimensionsListRequest class DimensionService(Service): def create(self, data): request = CreateDimensionsRequest( self.client, params={'method': 'add'}, data=data ) retu...
28.947368
79
0.616364
46
550
7.326087
0.521739
0.059347
0.094955
0.142433
0
0
0
0
0
0
0
0
0.294545
550
19
80
28.947368
0.868557
0
0
0.142857
0
0
0.034483
0
0
0
0
0
0
1
0.142857
false
0
0.142857
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
4a54146d12e005b9045dcbb5b4f63178061f1a78
7,338
py
Python
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
252
2021-05-19T11:12:43.000Z
2022-03-02T10:39:10.000Z
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
from typing import List from typing import Union from pyspark.sql import DataFrame from pyspark.sql import functions as F from pyspark.sql.window import Window def filter_all_not_null(df: DataFrame, reference_columns: List[str]) -> DataFrame: """ Filter rows which have NULL values in all the specified column...
38.020725
120
0.710139
980
7,338
5.096939
0.217347
0.093093
0.073674
0.044845
0.180581
0.108509
0.094494
0.061662
0.061662
0.046847
0
0.013169
0.213546
7,338
192
121
38.21875
0.852365
0.459526
0
0.1375
0
0
0.11446
0.081836
0
0
0
0
0
1
0.0625
false
0
0.0625
0
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
4a544c66c68a458b980a2174bdc25da63354dc6e
6,088
py
Python
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import os import reframe.utility.sanity as sn import reframe as rfm @rfm.required_version('>=2.16-dev0') @rfm.simple_test c...
42.873239
79
0.53433
764
6,088
4.113874
0.307592
0.018136
0.040089
0.03818
0.300986
0.24658
0.186128
0.134903
0
0
0
0.048207
0.308311
6,088
141
80
43.177305
0.698171
0.102989
0
0.089286
0
0.017857
0.198531
0.048118
0
0
0
0.007092
0.017857
1
0.026786
false
0.008929
0.026786
0
0.080357
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a5505f918153846b19b1a912cedc52b11e1b4e9
1,552
py
Python
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() install_requires = [] # install_re...
30.431373
71
0.614046
181
1,552
5.19337
0.580111
0.111702
0.067021
0.06383
0
0
0
0
0
0
0
0.018487
0.233247
1,552
50
72
31.04
0.771429
0.233892
0
0
0
0
0.39932
0.017842
0
0
0
0
0
1
0.027778
false
0
0.111111
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
4a5c703189126174bfc5a0bc0302603a5b45186d
583
py
Python
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
9
2019-03-14T01:54:31.000Z
2021-11-26T13:00:32.000Z
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
null
null
null
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
2
2019-08-19T06:00:04.000Z
2021-07-15T01:23:52.000Z
import unittest from Observers import Observer, ObserverMailServer, ObserverPbx from Subjects import Subject, SubjectEflow class UtVisitor(unittest.TestCase): def test_observer(self): # Create observers pbx = ObserverPbx() ms = ObserverMailServer() # Create subject ...
21.592593
63
0.626072
56
583
6.357143
0.589286
0.106742
0
0
0
0
0
0
0
0
0
0
0.29331
583
26
64
22.423077
0.864078
0.113208
0
0
0
0
0.02924
0
0
0
0
0
0.071429
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a5f2654f1609f5c5550084dae95f8a37c34d9e6
4,247
py
Python
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
""" Day 04 """ from logger import logger def main() -> None: """ Import the puzzle input, process and display the results. """ puzzle_input = import_list() logger.debug(puzzle_input) final_score = play_bingo(puzzle_input) for result in final_score: logger.info(f"The final score i...
32.419847
80
0.53732
515
4,247
4.299029
0.207767
0.041102
0.036134
0.051942
0.216802
0.150858
0.127823
0.109756
0.109756
0.109756
0
0.009399
0.373676
4,247
130
81
32.669231
0.822932
0.208147
0
0.287671
0
0
0.075246
0.018735
0
0
0
0
0.013699
1
0.041096
false
0
0.041096
0
0.109589
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a612749e70c643dade9a21e3ef7dab25d3f46e9
1,982
py
Python
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig _eif_parameters: Dict[str, Dict[str, Any]] = { "extension_level": { "defaultValue": None, ...
33.033333
180
0.676085
230
1,982
5.713043
0.5
0.042618
0.061644
0.031963
0
0
0
0
0
0
0
0.00812
0.19223
1,982
59
181
33.59322
0.812617
0
0
0.12963
0
0.055556
0.42886
0.041372
0
0
0
0
0
1
0.018519
false
0
0.092593
0.018519
0.12963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a614519b633b8e43e30737c32c7066d2365e9ab
5,548
py
Python
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
null
null
null
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
null
null
null
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
1
2021-07-09T19:58:54.000Z
2021-07-09T19:58:54.000Z
""" Convenience classes for assembling graph models. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Han Altae-Tran and Bharath Ramsundar" __copyright__ = "Copyright 2016, Stanford University" __license__ = "MIT" import tensorflow as tf f...
32.635294
82
0.6469
685
5,548
5.029197
0.221898
0.067925
0.026415
0.030479
0.52598
0.455443
0.320755
0.306821
0.265602
0.218868
0
0.002073
0.217376
5,548
169
83
32.828402
0.79134
0.231435
0
0.477273
0
0
0.085171
0
0
0
0
0
0.022727
1
0.181818
false
0
0.068182
0.090909
0.375
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a629d479574b8f27c92b3a96ac0d80522d6e255
992
py
Python
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
1
2018-04-17T23:58:46.000Z
2018-04-17T23:58:46.000Z
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
8
2019-12-04T23:08:00.000Z
2022-02-13T22:48:26.000Z
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( UserListView, UserUpdateView, UserProfileView, UserDeleteView, AcceptInvitationView, SpecialtyListView, SpecialtyCreateView, SpecialtyUpdateView, SpecialtyDeleteView ) app_name = 'users' urlpatterns = [ path('', UserListView.as_view(), name='list'), ...
39.68
97
0.708669
100
992
6.88
0.34
0.078488
0.130814
0.110465
0
0
0
0
0
0
0
0
0.126008
992
24
98
41.333333
0.793541
0
0
0
0
0
0.243952
0.056452
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
4a6439ff07d926ead0739ddd1b337b6e86927570
8,197
py
Python
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-07-07T21:23:38.000Z
2021-07-07T21:23:38.000Z
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-04-11T14:30:32.000Z
2021-04-11T14:30:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
39.791262
99
0.595218
1,005
8,197
4.734328
0.269652
0.079235
0.053594
0.025221
0.262926
0.184741
0.148382
0.125263
0.105507
0.089533
0
0.007398
0.323899
8,197
205
100
39.985366
0.851137
0.376601
0
0.25
0
0
0.042006
0.004501
0
0
0
0.009756
0
1
0.125
false
0
0.0625
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
4a655d791ecdecd8d04559095721de06fb34dc2a
2,380
py
Python
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
8
2016-11-01T05:43:48.000Z
2022-01-27T02:12:29.000Z
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
null
null
null
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
3
2016-11-01T05:44:01.000Z
2019-05-15T04:04:57.000Z
#!/usr/bin/env python # encoding: utf-8 import sys import getopt import re import os import pylab as plt import numpy as np # Define the variables for which the residuals will be plotted variables = ["Ux", "Uy", "T", "p_rgh", "k", "epsilon"] # Get the arguments of the script def usage(): print("Usage: residuals....
34.492754
114
0.64958
355
2,380
4.335211
0.343662
0.02729
0.02729
0.037037
0.202729
0.166342
0.166342
0.133853
0.063678
0.063678
0
0.005333
0.212185
2,380
68
115
35
0.815467
0.305462
0
0.12
0
0
0.198286
0
0
0
0
0
0
1
0.02
false
0
0.12
0
0.14
0.02
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
4a6a1474e56bbc2b491bd544f9d2c60a78d79285
1,216
py
Python
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
4
2018-01-02T01:10:03.000Z
2019-02-09T23:37:13.000Z
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
4
2018-01-05T16:46:35.000Z
2019-03-19T22:10:36.000Z
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
2
2016-12-09T22:36:58.000Z
2018-07-22T12:58:06.000Z
from .gpxfile import get_hr_measurements from .utils import interpolate from operator import itemgetter def __calculate_moving_sums(points, window): """ Calculates hr moving sums of the window len """ time, hrs = zip(*points) moving_sum = sum(hrs[0:window]) sums = [(time[0], moving_sum)] for i, t ...
39.225806
80
0.693257
166
1,216
4.849398
0.385542
0.086957
0.047205
0.057143
0
0
0
0
0
0
0
0.017782
0.213816
1,216
30
81
40.533333
0.824268
0.184211
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0