hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
088b341f4c792ce7fd8b31d658f838205c3b37f6
48,539
py
Python
lingvo/core/base_model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
4
2019-06-08T00:19:06.000Z
2020-08-03T16:28:53.000Z
lingvo/core/base_model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
null
null
null
lingvo/core/base_model.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
5
2018-12-11T08:05:16.000Z
2020-05-30T03:40:13.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.239289
80
0.688807
088b406738b21c1ae802c353b1c03bbd223f8e57
8,756
py
Python
get_vol_primary_service_id_v2.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_vol_primary_service_id_v2.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
get_vol_primary_service_id_v2.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ # Author: Scott Chubb scott.chubb@netapp.com # Written for Python 3.6 and above # No warranty is offered, use at your own risk. # While these scripts have been # tested in lab situations, all use cases cannot be accounted for. # -i, -a, and -e are exclusive, using -e ignores any setting of -i o...
34.337255
79
0.59719
088b6cb1c5a5127b928daa6450d4636a65cd3ccb
13,315
py
Python
robocrys/condense/condenser.py
hackingmaterials/robocrystallographer
e79e14c6bf9bfffb78a25df1a633f943bf0180ca
[ "BSD-3-Clause-LBNL" ]
57
2018-12-19T15:42:13.000Z
2022-02-16T15:26:18.000Z
robocrys/condense/condenser.py
hackingmaterials/robocrystallographer
e79e14c6bf9bfffb78a25df1a633f943bf0180ca
[ "BSD-3-Clause-LBNL" ]
71
2018-12-19T20:56:40.000Z
2022-01-24T18:05:22.000Z
robocrys/condense/condenser.py
hackingmaterials/robocrystallographer
e79e14c6bf9bfffb78a25df1a633f943bf0180ca
[ "BSD-3-Clause-LBNL" ]
15
2018-12-19T04:40:54.000Z
2021-08-23T02:33:01.000Z
""" This module defines a class for condensing structures into dict representations. """ from typing import Any, Dict, List, Optional, Tuple from pymatgen.analysis.dimensionality import get_structure_components from pymatgen.analysis.local_env import CrystalNN, NearNeighbors from pymatgen.core.structure import Struct...
41.095679
88
0.642584
088b886c9f220d994b3ff5d8fa3c48662fdb5725
4,941
py
Python
examples/mid_band_polychord.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
null
null
null
examples/mid_band_polychord.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
99
2020-02-04T14:55:56.000Z
2022-03-30T21:35:57.000Z
examples/mid_band_polychord.py
edges-collab/edges-analysis
b5165c55b7ae4334f6ac0578ade76ad875612605
[ "MIT" ]
null
null
null
#!/usr/bin/python """ An example of running polychord for mid-band data. How to run:: python mid_band_polychord.py 0 5 """ import sys from os import makedirs from os.path import exists import numpy as np import PyPolyChord from PyPolyChord.settings import PolyChordSettings from edges_analysis.estimate.tools im...
25.734375
99
0.568306
088ba85dcfaf0ea0142dbfa0431b37c921fdf51a
746
py
Python
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_op.py
ProgrammerWaterworth/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
2
2021-06-29T22:00:47.000Z
2021-06-30T02:46:19.000Z
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_op.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
null
null
null
Chapter12/01-chapter-content/tensorflow/introduction_tensorflow/tensorflow_basic_op.py
araneto/Mastering-OpenCV-4-with-Python
c90305898f1413267404f1ac83075133299060bb
[ "MIT" ]
1
2019-10-03T20:34:43.000Z
2019-10-03T20:34:43.000Z
""" Basic Operations example using TensorFlow library. """ # Import required packages: import tensorflow as tf # path to the folder that we want to save the logs for Tensorboard logs_path = "./logs" # Define placeholders: X_1 = tf.placeholder(tf.int16, name="X_1") X_2 = tf.placeholder(tf.int16, name="X_2") # Define...
31.083333
98
0.699732
088bbc4e680e3d540a5801a700fab28d660a2a7e
347
py
Python
algorithms/tapeequilibrium/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/tapeequilibrium/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/tapeequilibrium/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import sys def tape_equilibrium(tape: list) -> int: parts = [0] * len(tape) parts[0] = tape[0] for index in range(1, len(tape)): parts[index] = tape[index] + parts[index - 1] result = sys.maxsize for idx in range(0, len(parts) - 1): result = min(result, abs(parts[-1] - 2 * parts...
20.411765
61
0.576369
088c2a6f1a26f10983b63b3a5d66aae6259cdf0f
4,181
py
Python
salt/modules/selinux.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/modules/selinux.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/modules/selinux.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Execute calls on selinux ''' # Import python libs import os # Import salt libs import salt.utils from salt._compat import string_types from salt.exceptions import CommandExecutionError def __virtual__(): ''' Check if the os is Linux, and then if selinux is running in permissive or enforcing mode. ...
25.493902
79
0.590529
088c363d8ac6214ca3cf6d373553297fbf984ee1
39,145
py
Python
experiments/training/trainer.py
Butters-cloud/Denoising-Normalizing-Flow
2aeafbaebc9b49737b602ccf65bbb60499c0119e
[ "MIT" ]
null
null
null
experiments/training/trainer.py
Butters-cloud/Denoising-Normalizing-Flow
2aeafbaebc9b49737b602ccf65bbb60499c0119e
[ "MIT" ]
null
null
null
experiments/training/trainer.py
Butters-cloud/Denoising-Normalizing-Flow
2aeafbaebc9b49737b602ccf65bbb60499c0119e
[ "MIT" ]
null
null
null
import logging import numpy as np import torch from torch import optim, nn from torch.autograd import grad from torch.utils.data import DataLoader from torch.utils.data.sampler import SubsetRandomSampler from torch.nn.utils import clip_grad_norm_ import random logger = logging.getLogger(__name__) class EarlyStoppin...
38.642646
198
0.594022
088c500314f91ce7a1d5f0c65bfe2e2d33986d2e
1,004
py
Python
src/som/primitives/ast/class_primitives.py
smarr/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
9
2015-02-03T23:24:23.000Z
2020-06-28T23:49:59.000Z
src/som/primitives/ast/class_primitives.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
null
null
null
src/som/primitives/ast/class_primitives.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
2
2016-08-28T23:25:20.000Z
2016-08-30T16:49:50.000Z
from som.primitives.primitives import Primitives from som.vmobjects.primitive import AstPrimitive as Primitive def _new(ivkbl, rcvr, args): return ivkbl.get_universe().new_instance(rcvr) def _name(ivkbl, rcvr, args): return rcvr.get_name() def _super_class(ivkbl, rcvr, args): return rcvr.get_super_...
30.424242
95
0.74004
088c968c2aa03d1ce94ed2351a3872d40acf3afe
10,605
py
Python
signalworks/dsp.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/dsp.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/dsp.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Digital Signal Processing """ from math import ceil, log2 from typing import Tuple, Union import numba import numpy as np from numpy.fft import fft, ifft, irfft, rfft from scipy import signal, stats from signalworks.tracking import TimeValue, Wave # TODO: make this "tracking"-free (?), and...
37.740214
114
0.576238
088ca8d36089b4a01c656581fee3a6e3f4d3c16d
1,832
py
Python
siliconcompiler/targets/freepdk45_demo.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
null
null
null
siliconcompiler/targets/freepdk45_demo.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
null
null
null
siliconcompiler/targets/freepdk45_demo.py
hohe/siliconcompiler
497f272c87c8f247dcd29db76c8d6ed0c0939e50
[ "Apache-2.0" ]
null
null
null
import siliconcompiler ############################################################################ # DOCS ############################################################################ def make_docs(): ''' Demonstration target for compiling ASICs with FreePDK45 and the open-source asicflow. ''' ch...
26.550725
79
0.503275
088ca9b66b1637800a1911032eb9c8b1557c65e3
3,425
py
Python
tests/_type/test_value_util.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_type/test_value_util.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_type/test_value_util.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._type import value_util from apysc._type.expression_string import ExpressionString from tests.testing_helper import assert_raises @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test_get_value_str_for...
36.827957
77
0.703942
088cae12a306ed3455264a42fb1d32d94dab7df8
1,877
py
Python
neighbors_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
null
null
null
neighbors_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
null
null
null
neighbors_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
5
2021-06-24T01:14:21.000Z
2021-08-24T02:17:37.000Z
from sklearn.pipeline import make_pipeline from sklearn.neighbors import KNeighborsRegressor from sklearn.impute import SimpleImputer from category_encoders import OneHotEncoder from sklearn.preprocessing import StandardScaler def bathroom_text_encoder(df): df1 = df.copy() df1['bathrooms_text'] = df['bathrooms_tex...
27.202899
172
0.664891
088cd554a4721146ffcc7d970121224a6bafc73c
4,457
py
Python
python/same-customer-multiple-stores/add-customer-dealerset.py
mykaarma/customer-api-examples
73348aba00413d9a7ad9b113c4a0849e7c780d6d
[ "Apache-2.0" ]
null
null
null
python/same-customer-multiple-stores/add-customer-dealerset.py
mykaarma/customer-api-examples
73348aba00413d9a7ad9b113c4a0849e7c780d6d
[ "Apache-2.0" ]
2
2020-10-22T06:49:11.000Z
2020-10-22T21:18:45.000Z
python/same-customer-multiple-stores/add-customer-dealerset.py
mykaarma/kcustomer-api-examples
1c63dfd2457f3fa1292b7eb5bb5f0292031fefe7
[ "Apache-2.0" ]
1
2020-11-08T11:33:52.000Z
2020-11-08T11:33:52.000Z
#add-customer-dealerset.py ''' Copyright 2020 myKaarma 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...
36.532787
119
0.672201
088d3534d93dd2393c01a54ab75627fdc872be89
1,304
py
Python
db/VoltDB2Table2Rec/lib/python/voltcli/__init__.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
1
2020-04-09T20:47:03.000Z
2020-04-09T20:47:03.000Z
db/VoltDB2Table2Rec/lib/python/voltcli/__init__.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
null
null
null
db/VoltDB2Table2Rec/lib/python/voltcli/__init__.py
scdblab/BG
e678e7063a0c49af8a0a88d6e2838ce103ad69de
[ "BSD-2-Clause" ]
3
2018-08-29T17:58:01.000Z
2020-04-05T18:14:09.000Z
# This file is part of VoltDB. # Copyright (C) 2008-2013 VoltDB Inc. # # This file contains original code and/or modifications of original code. # Any modifications made by VoltDB Inc. are licensed under the following # terms and conditions: # # Permission is hereby granted, free of charge, to any person obtaining # a...
44.965517
73
0.775307
088d3cc40a170fbb7aecc4ef6202a0a762b29180
5,235
py
Python
spark/metric-learning/sage/dblp-acm-tiny/positives.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/metric-learning/sage/dblp-acm-tiny/positives.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/metric-learning/sage/dblp-acm-tiny/positives.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
poss = [(1.0,0.859375,1.0,),(1.0,0.7912087912087912,1.0,),(1.0,0.7586206896551724,1.0,),(1.0,1.0,1.0,),(1.0,0.8907563025210085,1.0,),(1.0,1.0,1.0,),(1.0,1.0,1.0,),(1.0,0.8513513513513513,1.0,),(1.0,1.0,1.0,),(1.0,0.8958333333333334,1.0,),(1.0,0.6857142857142857,1.0,),(1.0,0.8206896551724138,1.0,),(1.0,0.885245901639344...
5,235
5,235
0.655205
088d3dd49de71057f91eadc8a073b274a8f17804
4,018
py
Python
aim2_metrics/aim/metrics/m2_jpeg_file_size.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
aim2_metrics/aim/metrics/m2_jpeg_file_size.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
aim2_metrics/aim/metrics/m2_jpeg_file_size.py
heseba/aim
938336a17c503390ec98a730a828e4b26e5900d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Metric: JPEG file size Description: The file size (in bytes) of an image, saved in the JPEG format (image quality 70). Category: Visual complexity > Information amount > Visual clutter. For details, see CL4 [1], A12 [2], and CL4 [3]. Funding in...
32.666667
90
0.575908
088d445d7ecf5932ccd9ce4e7cea0e0e73e152a2
1,383
py
Python
smrf/envphys/phys.py
scotthavens/smrf
a492d01a5eef994e00728c1cbed9f693879bbade
[ "CC0-1.0" ]
null
null
null
smrf/envphys/phys.py
scotthavens/smrf
a492d01a5eef994e00728c1cbed9f693879bbade
[ "CC0-1.0" ]
null
null
null
smrf/envphys/phys.py
scotthavens/smrf
a492d01a5eef994e00728c1cbed9f693879bbade
[ "CC0-1.0" ]
null
null
null
""" Created April 15, 2015 Collection of functions to calculate various physical parameters @author: Scott Havens """ import numpy as np from smrf.envphys import thermal_radiation def idewpt(vp): """ Calculate the dew point given the vapor pressure Args: vp - array of vapor pressure values in...
19.478873
64
0.603037
088d4cbd2402932e3d97cb86f3230445d71d3a51
26,590
py
Python
monary/monary.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
7
2015-02-26T15:22:55.000Z
2021-02-12T13:45:34.000Z
monary/monary.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
2
2015-07-21T19:41:59.000Z
2022-03-15T15:49:08.000Z
monary/monary.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
3
2015-03-16T18:15:39.000Z
2016-05-03T07:07:31.000Z
# Monary - Copyright 2011-2014 David J. C. Beach # Please see the included LICENSE.TXT and NOTICE.TXT for licensing information. import atexit import os.path import platform import sys from copy import deepcopy from ctypes import * PY3 = sys.version_info[0] >= 3 if PY3: # Python 3 bytes_type = bytes strin...
39.045521
97
0.577097
088d583719e096e1054d867fcd8952053d2b16b4
4,127
py
Python
xos/synchronizers/openstack/model_policies/model_policy_Slice.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/openstack/model_policies/model_policy_Slice.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/openstack/model_policies/model_policy_Slice.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from xos.config import Config def handle_delete(slice): from core.models import Controller, ControllerSlice, SiteDeployment, Network, NetworkSlice,NetworkTemplate, Slice from collections import defaultdict public_nets = [] private_net = None networks = Network.objects.filter(owner=slice) for ...
40.067961
117
0.636055
088d5a440b75f4f327c693b80963d3ccfd9caef7
5,112
py
Python
video_demo.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
video_demo.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
5
2021-03-19T03:28:49.000Z
2022-03-11T23:59:03.000Z
video_demo.py
tiahflorens/ict2019
47d35da2d834d1b11ba33a01465da8b10ac66f0c
[ "Apache-2.0" ]
null
null
null
from opt import opt import ntpath import os import sys import cv2 from tqdm import tqdm from SPPE.src.main_fast_inference import * from dataloader import VideoLoader, DetectionLoader, DetectionProcessor, Mscoco, DataWriter from fn import getTime from opt import opt from pPose_nms import write_json args = opt args.d...
36.514286
142
0.614632
088d6ea4ea844ce26f426ad8541708b71abe8bef
4,060
py
Python
backend/settings.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
backend/settings.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
backend/settings.py
lameinthebox/cid-backend
1258000ab7801ebe2f6aef2a4006d3b35c9c88d8
[ "MIT" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
26.535948
91
0.691626
088d81647ba5c425660060620491b41f160566cd
8,873
py
Python
model/practice.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
model/practice.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
model/practice.py
Stanford-PERTS/bele-library
ad2bbda6e7a03d3579b52b5de30771d9990cabac
[ "CC0-1.0" ]
null
null
null
""" Practice Model =========== Class representing user-uploaded practices Subclass of Content Model Always in a group under a user """ from google.appengine.api import search import logging import os import config import random import util import mandrill import searchable_properties as sndb from .contentOld import ...
38.24569
99
0.601262
088d83b80d3458547b5bfe75e35f8d25220e76b3
1,360
py
Python
examples/query_by_exact_name.py
FLIR/conservator-cli
4831b847a5777a21e2fdbf6336b16ad0f0afc25d
[ "MIT" ]
9
2021-02-05T23:30:50.000Z
2022-02-04T01:41:41.000Z
examples/query_by_exact_name.py
FLIR/conservator-cli
4831b847a5777a21e2fdbf6336b16ad0f0afc25d
[ "MIT" ]
48
2021-02-05T23:32:01.000Z
2022-03-25T20:51:01.000Z
examples/query_by_exact_name.py
FLIR/conservator-cli
4831b847a5777a21e2fdbf6336b16ad0f0afc25d
[ "MIT" ]
2
2021-03-18T00:33:19.000Z
2021-04-03T17:28:52.000Z
from FLIR.conservator.conservator import Conservator conservator = Conservator.default() project_name = "ADAS" # The "name" field is searched by default, but we need to add a filter # to make sure that the name is an exact match. Searches only check for # substring containment, so searching "ADAS" would match "ADAS"...
32.380952
79
0.757353
088d90ff5d6446a3b9f7cb8c2f306b554759315e
1,494
py
Python
ampligraph/latent_features/__init__.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
ampligraph/latent_features/__init__.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
ampligraph/latent_features/__init__.py
netsec/AmpliGraph
ac825df91e10f079fba2cd40eda273b0d360f452
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AmpliGraph Authors. All Rights Reserved. # # This file is Licensed under the Apache License, Version 2.0. # A copy of the Licence is available in LICENCE, or at: # # http://www.apache.org/licenses/LICENSE-2.0 # """This module includes neural graph embedding models and support functions. Knowle...
49.8
115
0.762383
088d9534c7c50a48c207e4c4b65b0b5640b9a53a
3,323
py
Python
app/models/auth.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
app/models/auth.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
2
2021-03-31T18:30:32.000Z
2021-12-13T19:44:07.000Z
app/models/auth.py
myadventure/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
""" auth.py Auth mongoengine models. """ from mongoengine import Document from mongoengine import fields from werkzeug.security import gen_salt from app.models.user import User class Client(Document): """Auth Client model.""" user_id = fields.IntField(null=False) user = fields.ReferenceField(User) ...
25.561538
65
0.648209
088d99b40d858e4628eb59fc1f4303a216f50581
3,249
py
Python
src/crawl/unicrawl/spiders/ucll_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
4
2021-09-24T16:17:57.000Z
2022-01-31T17:32:16.000Z
src/crawl/unicrawl/spiders/ucll_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
23
2021-08-02T07:38:47.000Z
2022-02-11T14:16:56.000Z
src/crawl/unicrawl/spiders/ucll_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
3
2021-11-20T06:06:44.000Z
2022-03-11T07:44:43.000Z
from abc import ABC from pathlib import Path import scrapy from settings import YEAR, CRAWLING_OUTPUT_FOLDER BASE_URL = 'https://onderwijsaanbod.limburg.ucll.be/opleidingen/n/' class UCLLProgramSpider(scrapy.Spider, ABC): """ Programs crawler for UC Leuven-Limburg """ name = 'ucll-programs' cu...
38.223529
111
0.573715
088d9a39984c1a10b94a4b4e78976520843c6ae3
26,956
py
Python
generateCrossrefXml.py
digirati-co-uk/elife-poa-xml-generation
4d142e824c62b1d28435b1077ab0ef3348b81ef4
[ "MIT" ]
1
2015-06-26T06:22:04.000Z
2015-06-26T06:22:04.000Z
generateCrossrefXml.py
digirati-co-uk/elife-poa-xml-generation
4d142e824c62b1d28435b1077ab0ef3348b81ef4
[ "MIT" ]
81
2015-01-06T01:46:02.000Z
2018-07-13T21:39:04.000Z
generateCrossrefXml.py
elifesciences/elife-poa-xml-generation
994187eda5eeabb3e213aed29c7298e55acd63a2
[ "MIT" ]
null
null
null
from xml.etree.ElementTree import Element, SubElement, Comment from xml.etree import ElementTree from xml.dom import minidom import datetime import time import os from git import * from generatePoaXml import * from xml_generation import * from parsePoaXml import * import settings """ """ class crossrefXML(object): ...
42.184664
100
0.629062
088da27967823987ae3882030795c4b851959311
1,854
py
Python
modules/tools/create_map/convert_map_txt2bin.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/create_map/convert_map_txt2bin.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/create_map/convert_map_txt2bin.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
32.526316
79
0.622977
088dafb0f171f6fc37c9dc2fcf3b9468291607be
232
py
Python
examples/how_to/get_config.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
1
2015-01-12T14:15:59.000Z
2015-01-12T14:15:59.000Z
examples/how_to/get_config.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
examples/how_to/get_config.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
""" An example of how to use JenkinsAPI to fetch the config XML of a job. """ from jenkinsapi.jenkins import Jenkins J = Jenkins('http://localhost:8080') jobName = 'create_fwrgmkbbzk' config = J[jobName].get_config() print config
21.090909
69
0.741379
088daffa7fc219092881d1bccb74c014abaf9f50
4,148
py
Python
tests/puzzles/test_scale_generator.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/puzzles/test_scale_generator.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/puzzles/test_scale_generator.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from puzzles.scale_generator import Scale class ScaleGeneratorTest(unittest.TestCase): def test_naming_scale(self): chromatic = Scale('c', 'chromatic') expected = 'C chromatic' actual = chromatic.name self.assertEqual(expected, actual) def test_chromatic_scale...
34.566667
79
0.545564
088db0c27d7bc54f79c0870f17d67bc5a1de838c
3,500
py
Python
bfgame/maps/skeletoncrypt/connectors.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bfgame/maps/skeletoncrypt/connectors.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bfgame/maps/skeletoncrypt/connectors.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.maps.base.connector import Connector from bfgame.tiles import doors, floors class DungeonSingleDoor(Connector): def write(self, level, origin, direction, new_piece, new_origin): confirmed_coordinates = set() confirmed_other_coordinates = set() level_coordinates = self.get_level_c...
44.871795
89
0.716857
088df19d6e66e77832eb0d212942ea484140f614
7,563
py
Python
differential_privacy/emnist/run_federated.py
JYWa/federated
8073bfa355f56db073349eefb0bcbafbf4e73733
[ "Apache-2.0" ]
null
null
null
differential_privacy/emnist/run_federated.py
JYWa/federated
8073bfa355f56db073349eefb0bcbafbf4e73733
[ "Apache-2.0" ]
null
null
null
differential_privacy/emnist/run_federated.py
JYWa/federated
8073bfa355f56db073349eefb0bcbafbf4e73733
[ "Apache-2.0" ]
1
2021-03-09T09:48:56.000Z
2021-03-09T09:48:56.000Z
# Copyright 2019, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
39.596859
91
0.737406
088e04539abe7dcdee6b132953f775004f3c384e
2,325
py
Python
modules/tools/gen_vehicle_protocol/gen.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/gen_vehicle_protocol/gen.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/gen_vehicle_protocol/gen.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
33.214286
81
0.664946
088e0875c23abad6a5a5234fc576ee0b39072f3f
340
py
Python
simpletello.py
nicastelo/DJI-TELLO-FACEDETECT
477cc2b04f96340445e4032a1c78b17fd50ea90e
[ "MIT" ]
2
2019-04-23T18:26:00.000Z
2020-08-16T21:50:00.000Z
simpletello.py
nicastelo/DJI-TELLO-FACEDETECT
477cc2b04f96340445e4032a1c78b17fd50ea90e
[ "MIT" ]
null
null
null
simpletello.py
nicastelo/DJI-TELLO-FACEDETECT
477cc2b04f96340445e4032a1c78b17fd50ea90e
[ "MIT" ]
1
2019-03-17T20:18:14.000Z
2019-03-17T20:18:14.000Z
from djitellopy import Tello import cv2 import time tello = Tello() tello.connect() tello.get_battery() tello.get_udp_video_address() print (tello.get_udp_video_address()) """ tello.takeoff() time.sleep(5) tello.move_left(100) time.sleep(5) tello.rotate_counter_clockwise(45) time.sleep(5) tello.land() time.sleep(...
12.592593
37
0.752941
088e0ad83b7f4386c3c6fe4363cadb8c61e3cdac
692
py
Python
tools/format_yaml.py
iscc/iscc-api
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
3
2022-01-04T09:37:10.000Z
2022-03-25T21:29:23.000Z
tools/format_yaml.py
iscc/iscc-api
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
27
2022-01-04T20:16:34.000Z
2022-03-11T11:10:26.000Z
tools/format_yaml.py
iscc/iscc-schema
c53af3ea5617e20454964c9fda78dce08de41b7b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pathlib import yaml HERE = pathlib.Path(__file__).parent.absolute() def reformat(): for f in HERE.parent.glob("**\*.yaml"): with open(f, "rt", encoding="utf-8") as infile: data = yaml.safe_load(infile) with open(f, "wt", encoding="utf-8", newline="\n") ...
23.862069
67
0.491329
088e104c1969f4373cc2c07a6cbc78eb0a0e4f39
6,659
py
Python
edb/schema/expr.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/schema/expr.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/schema/expr.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
30.131222
78
0.6088
088e4a223283f17e5db55935a0671e545e00306e
1,315
py
Python
pixelbuster/bench.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
6
2020-12-03T14:50:32.000Z
2022-02-04T03:15:44.000Z
pixelbuster/bench.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
pixelbuster/bench.py
Beinsezii/bsz-gimp-plugins
bb735ddbf47fa4f2d383f4e359518c0809ab6e09
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import ctypes from sys import platform EXTENSIONS = {"win32": ".dll", "linux": ".so"} import os.path pixelbuster = ctypes.CDLL( os.path.dirname(os.path.realpath(__file__)) + "/../pixelbuster" + EXTENSIONS.get(platform) ).pixelbuster pixelbuster.argtypes = [ctypes.c_char_p, ctypes.c_char_p, c...
19.057971
89
0.661597
088e5f01670669d5fa845768600d2781e02c9dd5
971
py
Python
alipay/aop/api/response/AlipayIserviceIotIntentQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayIserviceIotIntentQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayIserviceIotIntentQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.IntentQueryResponse import IntentQueryResponse class AlipayIserviceIotIntentQueryResponse(AlipayResponse): def __init__(self): super(AlipayIserviceIotInt...
32.366667
109
0.731205
088e8627b4cdd8879df8f579902b1a3075e529c7
126,368
py
Python
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Parsing.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Parsing.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Parsing.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2020-07-23T04:28:37.000Z
2020-07-23T04:28:37.000Z
# cython: auto_cpdef=True, infer_types=True, language_level=3, py2_import=True # # Parser # from __future__ import absolute_import # This should be done automatically import cython cython.declare(Nodes=object, ExprNodes=object, EncodedString=object, bytes_literal=object, StringEncoding=object, ...
33.546058
138
0.567256
088eacbe14af609fe827a96cb2800a49a764b181
369
py
Python
flask_slack/__init__.py
VeryCB/flask-slack
ec7e08e6603f0d2d06cfbaff6699df02ee507077
[ "BSD-3-Clause" ]
73
2015-01-09T13:33:36.000Z
2020-08-14T14:34:43.000Z
flask_slack/__init__.py
VeryCB/flask-slack
ec7e08e6603f0d2d06cfbaff6699df02ee507077
[ "BSD-3-Clause" ]
5
2015-10-10T05:10:56.000Z
2016-07-29T06:39:45.000Z
flask_slack/__init__.py
VeryCB/flask-slack
ec7e08e6603f0d2d06cfbaff6699df02ee507077
[ "BSD-3-Clause" ]
10
2015-08-11T19:17:44.000Z
2020-08-14T14:34:49.000Z
""" flask_slack ~~~~~~~~~~~~~~~ Slack extension for Flask. :copyright: (c) 2014 by VeryCB. :license: BSD, see LICENSE for more details. """ from .slack import Slack from .exceptions import SlackError from .utils import link_string __all__ = ['Slack', 'SlackError', 'link_string'] __version__ = '0...
20.5
48
0.661247
088ecb7ff43feee5a9c7238360d0a8703a37031a
5,046
py
Python
antarest/login/ldap.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
antarest/login/ldap.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/login/ldap.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
import logging from dataclasses import dataclass from typing import List, Optional, Dict import requests from antarest.core.config import Config from antarest.core.custom_types import JSON from antarest.login.model import UserLdap, Group, Role from antarest.login.repository import ( UserLdapRepository, RoleRe...
24.735294
78
0.550337
088f180b44edf85fa82870fe42c03dac79228c35
24,679
py
Python
Losses.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
Losses.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
Losses.py
Childhoo/Chen_Matcher
ca89a4774a083d10177186020c35f60c3e8b7b37
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import sys def distance_matrix_vector(anchor, positive): """Given batch of anchor descriptors and positive descriptors calculate distance matrix""" d1_sq = torch.sum(anchor * anchor, dim=1).unsqueeze(-1) d2_sq = torch.sum(positive * positive, dim=1).unsqueeze(-1) ep...
46.918251
129
0.655456
088f198d37bb2c430fafec2ad2ad05f75d1bea53
27,959
py
Python
python/convert43to44.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
python/convert43to44.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
python/convert43to44.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
import os,sys,glob,re,shutil #================================================================= def convert(): if os.path.isfile('claw1ez.data'): ndim = 1 rundata = make_rundata(1) make_setplot1(rundata) make_Makefile1() elif os.path.isfile('claw2ez.data'): ndim = 2 ...
29.06341
80
0.573411
088f1bed63b38d587f80e7e26965c4568b64a5c2
4,547
py
Python
Projects/P7 Clinton/main.py
jonnydc4/CS1400Winter2021
58e1520bcd2e43cc212517737e5b6b47cdbe1855
[ "Apache-2.0" ]
null
null
null
Projects/P7 Clinton/main.py
jonnydc4/CS1400Winter2021
58e1520bcd2e43cc212517737e5b6b47cdbe1855
[ "Apache-2.0" ]
null
null
null
Projects/P7 Clinton/main.py
jonnydc4/CS1400Winter2021
58e1520bcd2e43cc212517737e5b6b47cdbe1855
[ "Apache-2.0" ]
null
null
null
''' Name: Jonathon Carr Class: CS 1400-005 Due Date: 5/5/21 Project: Was Clinton Right? In this project I have to qualify or disqualify one of Bill Clinton's statements on the amount of jobs created by republicans and democrats from 1961 to 2012. Instructions: 1. Use command prompt to run this program 2. When passing...
34.44697
123
0.644601
088f1d4b25667afc79bc3b5aad55b12d71838037
10,767
py
Python
pyADVISE/data_step.py
lightnerdevtech/pyADVISE
7496729b57a777c5ac73d1ac08589b9794a77955
[ "Apache-2.0" ]
null
null
null
pyADVISE/data_step.py
lightnerdevtech/pyADVISE
7496729b57a777c5ac73d1ac08589b9794a77955
[ "Apache-2.0" ]
null
null
null
pyADVISE/data_step.py
lightnerdevtech/pyADVISE
7496729b57a777c5ac73d1ac08589b9794a77955
[ "Apache-2.0" ]
null
null
null
import pandas as pd path='C:/Users/alightner/Documents/Source_Updates/ESDB/Database/' import country_converter as coco cc = coco.CountryConverter() def transform_to_codes(data, col, new_col_name, name_type='ISO3'): data.replace('Congo, Dem. Rep.', 'DR Congo', inplace=True) data[col_name] = cc.convert(name...
33.231481
121
0.619671
088f226a5f3a0af76d0461fe01f3aac1e6b84b56
680
py
Python
var/spack/repos/builtin/packages/py-gcovr/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-gcovr/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-gcovr/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
############################################################################## # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyGcovr(PythonPa...
35.789474
93
0.638235
088f298f1b50c087766bb9801fb205e0bc6f3b65
1,088
py
Python
SoftLayer/CLI/mq/queue_list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/mq/queue_list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/CLI/mq/queue_list.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
"""List all queues on an account.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting import click @click.command() @click.argument('account-id') @click.option('--datacenter', help="Datacenter, E.G.: dal05") @click.option('--n...
31.085714
78
0.607537
088f36f37bf8be28cae44c83260d3be266e6c42c
4,215
py
Python
xbbo/search_algorithm/cem_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
xbbo/search_algorithm/cem_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
xbbo/search_algorithm/cem_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
import math import numpy as np from xbbo.search_algorithm.base import AbstractOptimizer from xbbo.configspace.space import DenseConfiguration, DenseConfigurationSpace from . import alg_register # from xbbo.configspace.feature_space import Uniform2Gaussian from xbbo.search_algorithm.base import AbstractOptimizer from x...
35.720339
97
0.599288
088f380106684571dd43110979ed114d10465ff6
10,681
py
Python
fonty/models/subscription.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
12
2018-05-02T05:59:31.000Z
2022-03-15T13:03:26.000Z
fonty/models/subscription.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
null
null
null
fonty/models/subscription.py
jamesssooi/font-cli
c98227606ad5c6ebeab01f70d754db29b8406f44
[ "Apache-2.0" ]
2
2018-05-02T05:59:40.000Z
2020-04-19T13:18:09.000Z
'''subscriptions.py''' import os import json import hashlib from datetime import datetime from typing import List, Tuple, Union, Any, cast import timeago import requests import dateutil.parser from termcolor import colored from fonty.lib.constants import SUBSCRIPTIONS_PATH, REPOSITORY_DIR, JSON_DUMP_OPTS from fonty.mo...
32.465046
100
0.596573
088f60f21f947019a9754a82ad4326b91b6e343b
1,277
py
Python
django_istio_opentracing/__init__.py
mizhexiaoxiao/django-istio-opentracing
635889ff2b1a587fbd2d9f380c69b36f6fca09f8
[ "MIT" ]
3
2020-11-06T14:59:54.000Z
2021-05-30T03:13:20.000Z
django_istio_opentracing/__init__.py
mizhexiaoxiao/django-istio-opentracing
635889ff2b1a587fbd2d9f380c69b36f6fca09f8
[ "MIT" ]
1
2021-05-30T23:30:19.000Z
2021-06-03T09:38:10.000Z
django_istio_opentracing/__init__.py
mizhexiaoxiao/django-istio-opentracing
635889ff2b1a587fbd2d9f380c69b36f6fca09f8
[ "MIT" ]
1
2021-09-29T09:09:40.000Z
2021-09-29T09:09:40.000Z
__name__ = "django_istio_opentracing" from opentracing.scope_managers import ThreadLocalScopeManager from opentracing.propagation import Format from jaeger_client import Config import os # deployment.yaml will set the following env for each service project_name = os.getenv("PROJECT_NAME", "PROJECT_NAME") namespace = o...
28.377778
74
0.681284
088f78cae53cdf954b58405cf59655336107639a
1,287
py
Python
flexget/plugins/metainfo/imdb_url.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/imdb_url.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/imdb_url.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import import re import logging from flexget import plugin from flexget.event import event log = logging.getLogger('metainfo_imdb_url') class MetainfoImdbUrl(object): """ Scan entry information for imdb url. """ schema = {'type': 'bool...
28.6
80
0.576535
088f7d965c78f951da9989229295b4f293f0690a
7,167
py
Python
experiments/ashvin/icml2020/mujoco/awr2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/awr2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/awr2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" Test twin sac against various environments. """ from gym.envs.mujoco import ( HalfCheetahEnv, AntEnv, Walker2dEnv, InvertedDoublePendulumEnv, HopperEnv, HumanoidEnv, SwimmerEnv, ) from gym.envs.classic_control import PendulumEnv from rlkit.data_management.env_replay_buffer import EnvRep...
30.497872
83
0.630529
088f8f16773f2e6065419b837952b670255146bf
748
py
Python
configs/selfsup/simdis_test/simdis_poskd_simproj_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simdis_test/simdis_poskd_simproj_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
configs/selfsup/simdis_test/simdis_poskd_simproj_resnet18_4xb64-coslr-200e_in30p.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
_base_ = [ '../_test_/models/simdis/resnet18_simdis_poskd_simproj.py', '../_test_/datasets/imagenet30p_mocov2_b64_cluster.py', '../_test_/schedules/sgd_coslr-200e_in30p_kd.py', '../_test_/default_runtime.py', ] # set base learning rate lr = 0.05 # additional hooks custom_hooks = [ dict(type='SimSi...
31.166667
75
0.739305
088f9fef94490f93e0a1cecd2da4c4812e80acbb
3,306
py
Python
ac/utils.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
ac/utils.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
ac/utils.py
DemisseG/Approximately_Covariant_CNN-
19c4b2363083ba25a2af17a2672da330ae9ed7fc
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division from typing import Tuple, List import math import numpy import torch def scheduled_learning(init: float, current_epoch: int, total_epoch: int) -> int: scale = lambda x, y :x * math.pow(0.2, y) if(current_epoch > int(total_epoch*0.8)): return scale(init...
34.8
111
0.604356
088fac030867d023d54cefa1728ead640b0c40a9
64,259
py
Python
src/sage/interfaces/maxima_abstract.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/maxima_abstract.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/maxima_abstract.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Abstract interface to Maxima Maxima is a free GPL'd general purpose computer algebra system whose development started in 1968 at MIT. It contains symbolic manipulation algorithms, as well as implementations of special functions, including elliptic functions and generalized hypergeometric f...
28.984664
163
0.509672
088fc345a2127f344e9c406f5a7589df7a5d724b
1,505
py
Python
setup.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
null
null
null
setup.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
null
null
null
setup.py
DashaSerdyuk/tacotron2
1a88669670750f8b0e1aff76abc8b1b15300e1dc
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from setuptools import find_packages, setup THIS_DIR = Path(__file__).parent def get_version(filename): from re import findall with open(filename) as f: metadata = dict(findall("__([a-z]+)__ = '([^']+)'", f.read())) return metadata['version'] setup( name='tacotron2'...
30.714286
92
0.574086
088fc871fc10c7567d1f359e408ca2b632e5294d
10,796
py
Python
homeassistant/components/light/flux_led.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-02-18T03:16:32.000Z
2019-02-18T03:16:32.000Z
homeassistant/components/light/flux_led.py
bwz3891923/home-assistant
ce7f678b9b505e25ab6d995bedd2fc6544e294f8
[ "Apache-2.0" ]
1
2019-02-09T15:44:11.000Z
2019-02-09T15:44:11.000Z
homeassistant/components/light/flux_led.py
pc-coholic/home-assistant
24914aade50f7f4f813380b58292d5e91dc47f41
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
""" Support for Flux lights. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.flux_led/ """ import logging import socket import random import voluptuous as vol from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_PROTOCOL from homeassistan...
31.567251
78
0.635606
088fd3495c374ea68610a78125220d87ab00cce2
1,158
py
Python
content_search/content_search.py
alldevic/ContentSearch
687bfd9a91c9a17639d03f573f0bf1021e740f64
[ "MIT" ]
null
null
null
content_search/content_search.py
alldevic/ContentSearch
687bfd9a91c9a17639d03f573f0bf1021e740f64
[ "MIT" ]
null
null
null
content_search/content_search.py
alldevic/ContentSearch
687bfd9a91c9a17639d03f573f0bf1021e740f64
[ "MIT" ]
null
null
null
import click import requests from bs4 import BeautifulSoup, Comment import html5lib @click.command() @click.option("--url", help="Source URL", required=True) @click.option("--out", help="Destination file", required=True) def main(url, out): """ A simple content parser for URL. This tool will find content ...
27.571429
139
0.648532
088fe500ddd29a58b5202155f7d18f156a189c49
1,030
py
Python
pw_toolchain/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_toolchain/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
1
2021-06-18T13:54:41.000Z
2021-06-18T13:54:41.000Z
pw_toolchain/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39.615385
79
0.678641
088ff06489153092fb625516ccb99b65841b6b4a
9,701
py
Python
pre_train.py
chenynCV/SENet
08b22d9961e3b2a6eb1b8cd25d33287d10eaddd5
[ "MIT" ]
10
2018-04-18T14:28:17.000Z
2022-01-09T03:02:14.000Z
pre_train.py
chenynCV/SENet
08b22d9961e3b2a6eb1b8cd25d33287d10eaddd5
[ "MIT" ]
3
2018-03-29T01:54:46.000Z
2018-11-11T14:07:55.000Z
pre_train.py
chenynCV/SENet
08b22d9961e3b2a6eb1b8cd25d33287d10eaddd5
[ "MIT" ]
7
2017-12-10T11:14:00.000Z
2019-11-14T04:22:26.000Z
import tensorflow as tf import numpy as np import os from tensorpack import imgaug, dataset, ModelDesc, InputDesc from tensorpack.dataflow import (PrefetchDataZMQ, BatchData) from dataflow_input import MyDataFlow import resnet_model from IPython import embed os.environ['CUDA_VISIBLE_DEVICES']= '0' init_lea...
41.995671
121
0.670756
088ff46e76b6eb07707aafe59412d52c69286bf5
2,099
py
Python
sumo_rl/agents/ql_agent.py
joaovitorblabres/sumo-rl
ec9d178cd0289366ba0a8648da52972d31d1026e
[ "MIT" ]
null
null
null
sumo_rl/agents/ql_agent.py
joaovitorblabres/sumo-rl
ec9d178cd0289366ba0a8648da52972d31d1026e
[ "MIT" ]
null
null
null
sumo_rl/agents/ql_agent.py
joaovitorblabres/sumo-rl
ec9d178cd0289366ba0a8648da52972d31d1026e
[ "MIT" ]
null
null
null
import numpy as np import random from sumo_rl.exploration.epsilon_greedy import EpsilonGreedy class QLAgent: def __init__(self, starting_state, state_space, action_space, alpha=0.1, gamma=0.95, exploration_strategy=EpsilonGreedy(), groupRecommendation=0.2): self.state = starting_state self.state...
39.603774
152
0.633635
0890395e5197832f83be2d9cdb4bf75c447fa31c
15,227
py
Python
sdk/cosmos/azure-cosmos/test/ttl_tests.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/test/ttl_tests.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/test/ttl_tests.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
#The MIT License (MIT) #Copyright (c) 2014 Microsoft Corporation #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, mod...
44.264535
175
0.659092
08903f90884a547ee03c8dddcc1bd5f78f0637e0
7,193
py
Python
utils/tf_utils.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
12
2020-03-06T10:30:17.000Z
2022-03-23T02:18:25.000Z
utils/tf_utils.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
5
2020-09-25T19:09:32.000Z
2022-02-09T23:36:28.000Z
utils/tf_utils.py
ahzz1207/ALBERT-TINYBERT
d7065a8c7316fd46bc6855ed238c45533e926c0e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.255605
80
0.704713
08905977be60b88d879e7b5fa886fd3b881b1a4b
2,163
py
Python
src/practica_extra3/practica_4.py
angelvalay/aplicaciones-opengl-graficacion
03877146c1f2049d5b4d6291487031726120e505
[ "Apache-2.0" ]
2
2019-10-15T03:56:49.000Z
2020-03-09T22:20:30.000Z
src/practica_extra3/practica_4.py
angelvalay/aplicaciones-opengl-graficacion
03877146c1f2049d5b4d6291487031726120e505
[ "Apache-2.0" ]
null
null
null
src/practica_extra3/practica_4.py
angelvalay/aplicaciones-opengl-graficacion
03877146c1f2049d5b4d6291487031726120e505
[ "Apache-2.0" ]
1
2020-03-09T22:20:31.000Z
2020-03-09T22:20:31.000Z
# Ejecucion: # python3 practica_4 from OpenGL.GLUT import * # GL Utilities Toolkit from OpenGL.GL import * from OpenGL.GLU import * import math import random import sys # Ancho y largo de la ventana AlturaVentana = 500 AnchuraVentana = 500 NEAR_Z = 1.0 # Que tan cerca esta FAR_Z = 5000.0 #Que tan lejos esta Xangle...
24.303371
81
0.655571
08905a34b649a04ffd31371f20b59dfe2685ef53
5,566
py
Python
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_20/exp8_rig_actual_sasha_architecture.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_20/exp8_rig_actual_sasha_architecture.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_20/exp8_rig_actual_sasha_architecture.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from multiworld.envs.pygame import PickAndPlaceEnv from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.sets.rl_launcher import disco_experiment if __name__ == "__main__": variant = dict( env_class=PickAndPlaceEnv, env_kwargs=dict( ...
31.094972
75
0.533417
0890686bf7b10a3117788f81757a5fbc74b402aa
13,884
py
Python
analysis_notebooks/scripts/data_analysis_helper.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
3
2017-04-28T20:35:57.000Z
2021-12-01T03:24:31.000Z
analysis_notebooks/scripts/data_analysis_helper.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
7
2018-08-03T15:45:54.000Z
2019-12-03T22:28:51.000Z
analysis_notebooks/scripts/data_analysis_helper.py
ncclementi/pygbe_lspr
0a73406701a74369206c33e0a3fd31d7b5f0cf55
[ "BSD-3-Clause" ]
1
2021-12-01T03:24:35.000Z
2021-12-01T03:24:35.000Z
import numpy from matplotlib import pyplot, rcParams from scipy.interpolate import interp1d, splev, splrep def wave_filter_interp(lambda_eval, lambda_interp): '''It removes the data points of a wavelength array, that are out of the range where the resulting interpolation is valid. Arguments: ---...
35.060606
98
0.641458
08906dfdc23b455917ea27f5f894adeaf50e8cce
6,033
py
Python
tests/h/presenters/annotation_searchindex_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/presenters/annotation_searchindex_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/presenters/annotation_searchindex_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from unittest import mock import pytest from h.presenters.annotation_searchindex import AnnotationSearchIndexPresenter from h.services.annotation_moderation import AnnotationModerationService @pytest.mark.usefixtures( "DocumentSea...
33.331492
86
0.631692
089072fd2933d4de299cd6f4841822f61a36e229
2,583
py
Python
espymetrics/app.py
mahmoud/espymetrics
d4754e597a2f483e2e0b1c3efc8694774227f907
[ "BSD-3-Clause" ]
52
2015-11-23T08:56:27.000Z
2021-08-31T11:12:21.000Z
espymetrics/app.py
mahmoud/espymetrics
d4754e597a2f483e2e0b1c3efc8694774227f907
[ "BSD-3-Clause" ]
2
2015-11-22T07:54:42.000Z
2015-11-22T08:08:06.000Z
espymetrics/app.py
mahmoud/espymetrics
d4754e597a2f483e2e0b1c3efc8694774227f907
[ "BSD-3-Clause" ]
13
2016-04-13T22:15:19.000Z
2020-12-18T08:26:54.000Z
# -*- coding: utf-8 -*- import json import argparse import datetime from clastic import Application, Middleware, render_basic, MetaApplication from clastic.errors import BadRequest from clastic.middleware import GetParamMiddleware from dal import LineDAL PORT = 8888 META_PORT = 8889 DEFAULT_DAL = 'line' DEFAULT_P...
26.090909
79
0.672087
0890d6cb72e88ac6e862929e79883be608c85481
11,354
py
Python
Lib/test/test_importlib/test_metadata_api.py
Froggo8311/cpython
617256867e21b231069fe9cd23f1f5ef5d3326a3
[ "0BSD" ]
null
null
null
Lib/test/test_importlib/test_metadata_api.py
Froggo8311/cpython
617256867e21b231069fe9cd23f1f5ef5d3326a3
[ "0BSD" ]
6
2022-02-16T18:34:09.000Z
2022-02-18T22:28:13.000Z
Lib/test/test_importlib/test_metadata_api.py
Froggo8311/cpython
617256867e21b231069fe9cd23f1f5ef5d3326a3
[ "0BSD" ]
null
null
null
import re import textwrap import unittest import warnings import importlib import contextlib from . import fixtures from importlib.metadata import ( Distribution, PackageNotFoundError, distribution, entry_points, files, metadata, requires, version, ) @contextlib.contextmanager def sup...
35.151703
86
0.616171
0890e08805a9acdd9b7704f85afdbc60f53dc720
2,366
py
Python
credit_scoring/metrics/_ks.py
minhtcuet/creditscoring
5a00f110b1936c7151a6e471cfb52b907b199f4d
[ "MIT" ]
2
2021-11-18T04:01:21.000Z
2021-12-08T07:50:35.000Z
credit_scoring/metrics/_ks.py
minhtcuet/creditscoring
5a00f110b1936c7151a6e471cfb52b907b199f4d
[ "MIT" ]
null
null
null
credit_scoring/metrics/_ks.py
minhtcuet/creditscoring
5a00f110b1936c7151a6e471cfb52b907b199f4d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import plotly.express as px from credit_scoring.metrics.credit_score import CreditScore class CalculatedKS(CreditScore): def ks(self) -> tuple: ''' Calculate the KS table of each decile, KS value, the deicile at KS :return: KS Tabel, KS value, Decile ''' ...
36.96875
97
0.676669
0890e1c8091a493da79fb8b2bd409b53141e3229
6,351
py
Python
molecule/verifier/testinfra.py
IlyesSemlali/molecule
34fc9079bcba2f6e19b5ea0d73c4cbf15c1987d8
[ "MIT" ]
null
null
null
molecule/verifier/testinfra.py
IlyesSemlali/molecule
34fc9079bcba2f6e19b5ea0d73c4cbf15c1987d8
[ "MIT" ]
null
null
null
molecule/verifier/testinfra.py
IlyesSemlali/molecule
34fc9079bcba2f6e19b5ea0d73c4cbf15c1987d8
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # 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...
28.868182
83
0.607306
0890f5ac6e975c7ce9dc28166e18e064b41d8244
1,146
py
Python
soft/compiler.tvm/customize.py
sztaylor/ck-env
86c7aa489553ce3f999e19bfe8afcfa9dea83346
[ "BSD-3-Clause" ]
80
2015-03-03T14:27:39.000Z
2022-01-04T15:37:01.000Z
soft/compiler.tvm/customize.py
sztaylor/ck-env
86c7aa489553ce3f999e19bfe8afcfa9dea83346
[ "BSD-3-Clause" ]
78
2016-02-20T07:47:05.000Z
2021-05-01T13:33:31.000Z
soft/compiler.tvm/customize.py
sztaylor/ck-env
86c7aa489553ce3f999e19bfe8afcfa9dea83346
[ "BSD-3-Clause" ]
22
2016-07-29T07:25:11.000Z
2021-02-08T16:18:26.000Z
# # Collective Knowledge (individual environment - setup) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: dividiti # import os ############################################################################## # customize directories to automatically find and regis...
20.464286
78
0.475567
0891070456903408ef4452e60b2f74642ea3850d
1,419
py
Python
thirdparty/nsiqcppstyle/rules/RULE_3_2_CD_do_not_use_special_characters_in_filename.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
171
2015-04-13T11:24:34.000Z
2022-03-26T00:56:38.000Z
thirdparty/nsiqcppstyle/rules/RULE_3_2_CD_do_not_use_special_characters_in_filename.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
620
2015-01-20T08:34:36.000Z
2022-03-30T11:05:33.000Z
thirdparty/nsiqcppstyle/rules/RULE_3_2_CD_do_not_use_special_characters_in_filename.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
56
2015-02-09T13:33:56.000Z
2022-03-19T04:52:51.000Z
""" Do not use the special characters in a filename. Only alphabets, numbers and underbars can be used for a filename. == Vilolation == /testdir/test-1.c <== Violation. - is used. /testdir1/test!1.c <== Violation. ! is used == Good == testdir/test.c testdir1/test_1.c """ from nsiqcppstyle_reporter...
29.5625
91
0.588443
089115317d953bf2a850686c1909db782c6c6deb
870
py
Python
plugins/aea-cli-benchmark/aea_cli_benchmark/case_tx_generate/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_tx_generate/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
plugins/aea-cli-benchmark/aea_cli_benchmark/case_tx_generate/__init__.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2021 Fetch.AI Limited # # 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 ...
41.428571
80
0.589655
089124d9d2a5155475ef12360928d64b79a7685a
14,965
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ht16k33/segments.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ht16k33/segments.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_ht16k33/segments.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: Radomir Dopieralski 2016 for Adafruit Industries # SPDX-FileCopyrightText: Tony DiCola 2016 for Adafruit Industries # # SPDX-License-Identifier: MIT """ Segment Displays ================= """ from time import sleep from adafruit_ht16k33.ht16k33 import HT16K33 __version__ = "4.1.3" __repo__...
31.57173
96
0.583628
089127c6f0ff07c692e0c6497548a360ea24421a
11,942
py
Python
python/tvm/tir/ir_builder.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
python/tvm/tir/ir_builder.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
python/tvm/tir/ir_builder.py
shoubhik/incubator-tvm
2bbfbb10ba53c649d110828b4978df12b4f3b3e2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.269608
99
0.549992
089145bdf1205199b9ac8e9f5f5543b7edd427c1
2,540
py
Python
datawinners/project/subject_question_creator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/project/subject_question_creator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/project/subject_question_creator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from django import forms from django.forms.widgets import HiddenInput from django.utils.translation import ugettext from datawinners.utils import translate, get_text_language_by_instruction from django.utils.translation import ugettext as _ class UniqueIdChoiceField(forms.ChoiceField): def __init__(self, entity_...
50.8
114
0.682283
0891518c22dba65c7cf2e40dd5b1da82f2198876
838
py
Python
celery/tests/test_task_abortable.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
2
2017-05-24T13:03:30.000Z
2017-09-04T08:24:19.000Z
celery/tests/test_task_abortable.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/tests/test_task_abortable.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
import unittest2 as unittest from celery.contrib.abortable import AbortableTask, AbortableAsyncResult class MyAbortableTask(AbortableTask): def run(self, **kwargs): return True class TestAbortableTask(unittest.TestCase): def test_async_result_is_abortable(self): t = MyAbortableTask() ...
26.1875
72
0.678998
089151d558eaa31169a6c5c066bc3b02f9877a0b
207
py
Python
wishes/urls.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
wishes/urls.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
wishes/urls.py
monofox/wedding
d9c4ee1da418e4e047eb628e98a473b8c20c56d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url #from wishes.views import WishList urlpatterns = patterns('', #url(r'^wishlist/$', WishList.as_view()), )
20.7
51
0.68599
08915d3f77d9b4477a1f7be3891b9a276424997b
5,141
py
Python
examples/vis_perturbations.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
6
2020-09-25T07:38:00.000Z
2022-03-11T09:09:22.000Z
examples/vis_perturbations.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-10-29T08:39:34.000Z
2021-02-09T14:07:09.000Z
examples/vis_perturbations.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-11-21T12:33:44.000Z
2020-11-21T12:33:44.000Z
import visgeom as vg from pylie import SO3, SE3 import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib.widgets import Slider, Button, RadioButtons, CheckButtons """Example - Visualizes different perturbations and the path they take along the manifold""" def vis_perturbations(): # De...
37.253623
121
0.626921
089177a1e53b649bd3c56ea5749d60615b623a81
4,484
py
Python
tests/test_adblock.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
tests/test_adblock.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
tests/test_adblock.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██...
33.714286
88
0.55107
089179bb65765e3ca49b01c12f256b8299a6c63b
130,368
py
Python
qcodes/instrument_drivers/Keysight/keysightb1500/message_builder.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/Keysight/keysightb1500/message_builder.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/instrument_drivers/Keysight/keysightb1500/message_builder.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
from typing import Iterable, Any from functools import wraps from operator import xor from typing import List, Union, Callable, TypeVar, cast, Optional from qcodes.utils.deprecate import issue_deprecation_warning from . import constants def as_csv(l: Iterable, sep: str = ',') -> str: """Returns items in iterab...
32.583854
83
0.555842
089186ed748e706ccbbdf60a2d391445b77a6a0d
848
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.631579
114
0.652123
0891986fe0cc1aa992e33b08c59e6f7a5d2658ad
4,517
py
Python
lib-other/deterministiclib/CustomMath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
161
2015-01-11T20:52:37.000Z
2022-02-14T04:44:13.000Z
lib-other/deterministiclib/CustomMath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
3
2016-04-21T10:17:06.000Z
2022-01-09T14:38:06.000Z
lib-other/deterministiclib/CustomMath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
40
2015-01-19T16:44:14.000Z
2022-01-09T14:09:49.000Z
from cdecimal import Decimal import copy, svd def AsMatrix(v): return map(lambda i: [i], v) def matrix_p(v): return type(v[0])==list def mean(v): return sum(v)*Decimal('1.0')/len(v) def replace_na(x, m): if type(x) in [int, float]: return x return m def GetWeight(Vec, AddMean=False): new=map(abs, Ve...
31.368056
91
0.582466
0891b7085ea5c3520256df65d7e93092a4c46eb7
125
py
Python
mianshi/sorted.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
mianshi/sorted.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
null
null
null
mianshi/sorted.py
soongxin/lint
2ca5c2d53500a585f839bd4a492ba0c5cf20fd91
[ "MIT" ]
1
2018-06-25T05:05:20.000Z
2018-06-25T05:05:20.000Z
d = {'d': 2, 'f': 2, 'c': 5, 'b': 6, 'a': 7} def f(x): key = x[1] return key s = sorted(d.items(), key=f) print(s)
13.888889
44
0.424
0891ba6d4ac55c03e95ee32dcd6696941c44eda2
2,228
py
Python
tests/server_tests.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
22
2015-11-16T18:24:23.000Z
2019-01-22T06:41:51.000Z
tests/server_tests.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
8
2016-01-26T21:55:15.000Z
2020-11-17T18:00:13.000Z
tests/server_tests.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
9
2015-11-28T19:32:14.000Z
2020-10-19T06:47:26.000Z
""" """ import mock import time from tornado import testing from tredis import exceptions from . import base class ServerTests(base.AsyncTestCase): @testing.gen_test def test_auth_raises_redis_error(self): with self.assertRaises(exceptions.RedisError): yield self.client.auth('boom-goe...
29.706667
73
0.657092
0891cdc9c7937abdd354467076ff582697af015d
7,293
py
Python
tests/test_auto_continue.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
tests/test_auto_continue.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
tests/test_auto_continue.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██...
29.526316
88
0.581517
0891f80bf1c97ec43ad5fbf4693c8cf88b39b591
3,470
py
Python
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/error_group_service_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/error_group_service_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-error-reporting-v1beta1/google/cloud/proto/devtools/clouderrorreporting/v1beta1/error_group_service_pb2_grpc.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from grpc.framework.common import cardinality from grpc.framework.interfaces.face import utilities as face_utilities import google.cloud.proto.devtools.clouderrorreporting.v1beta1.common_pb2 as google_dot_cloud_dot_proto_dot_devtools_dot...
51.029412
196
0.82219
089216731019044dc72395e2944494322bb99ca4
25,259
py
Python
openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
"""CoinGecko model""" __docformat__ = "numpy" # pylint:disable=unsupported-assignment-operation import logging from typing import Any, Dict, List, Optional, Tuple, Union import pandas as pd import regex as re from pycoingecko import CoinGeckoAPI from openbb_terminal.cryptocurrency.dataframe_helpers import ( lamb...
31.261139
113
0.55885
08922c5b0528906d9491d331d7f330f843774a9d
2,450
py
Python
env/Lib/site-packages/colorzero/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
10
2018-10-16T15:53:09.000Z
2020-08-19T06:06:23.000Z
env/Lib/site-packages/colorzero/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
23
2018-10-13T16:00:43.000Z
2019-04-27T19:08:58.000Z
env/Lib/site-packages/colorzero/__init__.py
Nitinsd96/Air-Pollution-Monitoring-System
4870223ce7b40b4ea465620a4c3d39cf617c6eff
[ "MIT" ]
2
2018-11-04T17:55:53.000Z
2018-11-18T17:33:27.000Z
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # The colorzero color library # Copyright (c) 2016-2018 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sourc...
42.241379
78
0.757551
08926b79da437034a1fb8c0a2e480c475d2468af
4,810
py
Python
src/python_bring_api/bring.py
blue1stone/python-bring-api
9b980294b459e650cbf7cf411f8a53220361272a
[ "MIT" ]
null
null
null
src/python_bring_api/bring.py
blue1stone/python-bring-api
9b980294b459e650cbf7cf411f8a53220361272a
[ "MIT" ]
null
null
null
src/python_bring_api/bring.py
blue1stone/python-bring-api
9b980294b459e650cbf7cf411f8a53220361272a
[ "MIT" ]
null
null
null
import requests import traceback class Bring: """ Unofficial Bring API interface. """ def __init__(self, mail, password): self.mail = mail self.password = password self.url = 'https://api.getbring.com/rest/v2/' self.uuid = '' self.name = '' ...
32.721088
180
0.5079
08927134428806e5419323179c9c2ac9d846a3fe
15,584
py
Python
.venv/Lib/site-packages/httpcore/_async/connection_pool.py
jefferdo/gpt-3-client
7acbc5f518fe3fcb55d0bdcbf93fc87b103b1148
[ "MIT" ]
5
2021-03-25T12:09:07.000Z
2021-06-07T06:33:43.000Z
env/Lib/site-packages/httpcore/_async/connection_pool.py
Venko15/MLT
d4b876bd0a53e2078c45923076d9ab304703612d
[ "MIT" ]
null
null
null
env/Lib/site-packages/httpcore/_async/connection_pool.py
Venko15/MLT
d4b876bd0a53e2078c45923076d9ab304703612d
[ "MIT" ]
null
null
null
import warnings from ssl import SSLContext from typing import ( AsyncIterator, Callable, Dict, List, Optional, Set, Tuple, Union, cast, ) from .._backends.auto import AsyncBackend, AsyncLock, AsyncSemaphore from .._backends.base import lookup_async_backend from .._exceptions import ...
38.574257
87
0.623396
089277e6dd71b803d292e3c7ef29dae92129ff70
37,195
py
Python
src/python/pants/backend/python/util_rules/pex.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
1
2021-02-22T18:11:26.000Z
2021-02-22T18:11:26.000Z
src/python/pants/backend/python/util_rules/pex.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/util_rules/pex.py
ericsun2/pants
49b446e5031b8c68cad6212b46f40b4fda3a0a3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import dataclasses import functools import itertools import logging import shlex from collections import defaultdict from dataclasses import dataclass f...
37.954082
114
0.655626
08927aa398d977442174f6e7780c142d3a4dca41
415
py
Python
src/jenn/tests/test_utils.py
colonelzentor/GENN
65376ddbb4084a7b687d3c059a09ed3dae065b1d
[ "MIT" ]
2
2021-05-10T13:57:03.000Z
2021-08-02T22:50:14.000Z
src/jenn/tests/test_utils.py
colonelzentor/GENN
65376ddbb4084a7b687d3c059a09ed3dae065b1d
[ "MIT" ]
4
2018-03-20T16:04:58.000Z
2021-03-30T14:48:20.000Z
src/jenn/tests/test_utils.py
shb84/JENN
65376ddbb4084a7b687d3c059a09ed3dae065b1d
[ "MIT" ]
1
2020-04-13T17:23:27.000Z
2020-04-13T17:23:27.000Z
import numpy as np from jenn.tests.test_problems import rosenbrock from jenn._utils import grad_check def test_grad_check(): """ Test that method to check gradient accuracy works, using the banana Rosenbrock function as a test example """ x0 = [np.array([1.25, -1.75]).reshape((2, 1))] f = lamb...
29.642857
64
0.681928
08927d405fdba4e245524a58c77e88078d485de6
23,333
py
Python
asposewordscloud/models/save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/save_options_data.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="save_options_data.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of...
43.049815
465
0.683795
0892807bb2d5ea0891db5e5b47a8f590dee90ee3
3,998
py
Python
leetcode_python/Depth-First-Search/friend-circles.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Depth-First-Search/friend-circles.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Depth-First-Search/friend-circles.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/XX_123_1_RJ/article/details/82656277 # http://bookshadow.com/weblog/2017/04/03/leetcode-friend-circles/ # IDEA : disjoint- set class Solution(object): def findCircleNum(self, M): """ :type M: List[List[int]] :rtype: int """ N = len(M) ...
29.835821
124
0.470485
08928a30dca3b79e65e0d411efecd1a984c795f2
6,532
py
Python
src/tools/dev/vtk_debug_parser/vtk_debug_trace_parser.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/dev/vtk_debug_parser/vtk_debug_trace_parser.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/dev/vtk_debug_parser/vtk_debug_trace_parser.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Script that parses vtk messages from VisIt's engine debug logs and # provides an xml report with possible vtk leaks. # Usage example: # (run visit with -vtk-debug to generate an engine debug log) # vtk_debug_t...
31.708738
92
0.533527
0892ada54bd0746bf6c77c16dad3a195a816c070
23,869
py
Python
keystone/tests/unit/mapping_fixtures.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/mapping_fixtures.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/mapping_fixtures.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.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 t...
23.30957
78
0.271649
089326949394d16b77c0246bcd5076a00c7ef1dc
2,084
py
Python
show_tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
show_tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
3
2015-02-15T18:31:10.000Z
2015-02-22T19:56:05.000Z
show_tweets.py
martincochran/score-minion
58197798a0a3a4fbcd54ffa0a2fab2e865985bfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 Martin Cochran # # 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 la...
28.162162
82
0.713052