hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
f4a6961ad31d949e717af2cb053a6215c88efcb5
1,365
py
Python
standard_library/json_ops.py
ariannasg/python3-essential-training
9b52645f5ccb57d2bda5d5f4a3053681a026450a
[ "MIT" ]
1
2020-06-02T08:37:41.000Z
2020-06-02T08:37:41.000Z
standard_library/json_ops.py
ariannasg/python3-training
9b52645f5ccb57d2bda5d5f4a3053681a026450a
[ "MIT" ]
null
null
null
standard_library/json_ops.py
ariannasg/python3-training
9b52645f5ccb57d2bda5d5f4a3053681a026450a
[ "MIT" ]
null
null
null
#!usr/bin/env python3 # working with JSON data import json import urllib.request # use urllib to retrieve some sample JSON data req = urllib.request.urlopen("http://httpbin.org/json") data = req.read().decode('utf-8') print(data) # use the JSON module to parse the returned data obj = json.loads(data) # when the data...
22.75
65
0.586813
90f4612b34b2d935ffbaabd0c08ce7c6dfb5d703
11,952
py
Python
pea_simulator.py
nbeguier/pea-simulator
ef21cf3574d3a64d642135d7fdb38f2f73a59d60
[ "MIT" ]
null
null
null
pea_simulator.py
nbeguier/pea-simulator
ef21cf3574d3a64d642135d7fdb38f2f73a59d60
[ "MIT" ]
null
null
null
pea_simulator.py
nbeguier/pea-simulator
ef21cf3574d3a64d642135d7fdb38f2f73a59d60
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ PEA simulateur Copyright (c) 2020-2021 Nicolas Beguier Licensed under the MIT License Written by Nicolas BEGUIER (nicolas_beguier@hotmail.com) """ # Standard library imports from datetime import datetime from os.path import exists import pickle import sys # Third party library imports from...
31.206266
96
0.562667
7e6b5b813fedeb64636238338c9edb76b494ce99
107,728
py
Python
mne/viz/evoked.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
mne/viz/evoked.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
mne/viz/evoked.py
Macquarie-MEG-Research/mne-python
469c56a8d1c4edb84852816301ecd43e8ff78ebf
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Functions to plot evoked M/EEG data (besides topographies).""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # C...
44.942845
110
0.593727
cb4f1d565a9e3e59a34869aa82590392569d4e24
2,591
py
Python
src/test/tests/simulation/updateplots.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/updateplots.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/simulation/updateplots.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: updateplots.py # # Tests: libsim - connecting to simulation and retrieving data from it. # # Programmer: Kathleen Biagas # Date: June 18, 2014 # # Modifications: # Kathleen Biagas, Fri ...
29.11236
95
0.607487
ab59cbcb55f34e3eaae0de5c84eb6437c3a99e9b
179
py
Python
while_loops/prime numbers .py
amanchamola/while_loops
39a2ba01ff3ad71990e7c19660590f2f17f5b857
[ "MIT" ]
null
null
null
while_loops/prime numbers .py
amanchamola/while_loops
39a2ba01ff3ad71990e7c19660590f2f17f5b857
[ "MIT" ]
null
null
null
while_loops/prime numbers .py
amanchamola/while_loops
39a2ba01ff3ad71990e7c19660590f2f17f5b857
[ "MIT" ]
null
null
null
n=int(input()) d=2 flag = False while n>d : if n%d==0 : flag = True d+=1 if flag: print ("not prime") else: print ("prime")
9.944444
24
0.418994
ff80da7b126ec121013c0f1a5c3d9c306a491f75
10,038
py
Python
edward2/tensorflow/layers/normalization.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
edward2/tensorflow/layers/normalization.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
edward2/tensorflow/layers/normalization.py
debbiemarkslab/edward2
d071268c0439b434b508fe23abd938a5effb7a70
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.595506
80
0.671847
2b5f66b3f9dc64b65373d189b4039631225974cb
772
py
Python
src/zeep/asyncio/bindings.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
3
2017-04-01T16:05:52.000Z
2019-07-26T14:32:26.000Z
src/zeep/asyncio/bindings.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
3
2021-03-31T19:37:08.000Z
2021-12-13T20:32:23.000Z
src/zeep/asyncio/bindings.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
2
2020-11-18T09:49:46.000Z
2021-07-08T14:02:03.000Z
from zeep.wsdl import bindings __all__ = ["AsyncSoap11Binding", "AsyncSoap12Binding"] class AsyncSoapBinding(object): async def send(self, client, options, operation, args, kwargs): envelope, http_headers = self._create( operation, args, kwargs, client=client, options=options ) ...
26.62069
67
0.698187
bb55b76c19f34e59c577c5adb821b2c3d069ec69
1,018
py
Python
test_autolens/plot/lensing/all_lensing_objects_images.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/plot/lensing/all_lensing_objects_images.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
test_autolens/plot/lensing/all_lensing_objects_images.py
agarwalutkarsh554/PyAutoLens
72d2f5c39834446e72879fd119b591e52b36cac4
[ "MIT" ]
null
null
null
import autolens as al import autolens.plot as aplt plotter = aplt.MatPlot2D() plotter = aplt.MatPlot2D() grid = al.Grid.uniform(shape_2d=(100, 100), pixel_scales=0.05, sub_size=2) lens_galaxy = al.Galaxy( redshift=0.5, light=al.lp.SphericalExponential(centre=(0.0, 0.0), intensity=1.0), light_1...
29.085714
75
0.702358
b90ad47e282e6231557190f589eda89174c1e368
980
py
Python
HLTrigger/Configuration/python/HLT_75e33/psets/TrajectoryFilterForElectrons_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/psets/TrajectoryFilterForElectrons_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/psets/TrajectoryFilterForElectrons_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms TrajectoryFilterForElectrons = cms.PSet( ComponentType = cms.string('CkfBaseTrajectoryFilter'), chargeSignificance = cms.double(-1.0), constantValueForLostHitsFractionFilter = cms.double(2.0), extraNumberOfHitsBeforeTheFirstLoop = cms.int32(4), maxCCCLostHit...
36.296296
62
0.708163
6833b4576d5db593253c3da5ba23f7e638b80c31
1,046
py
Python
examples/advanced/fitspheres2.py
Gjacquenot/vtkplotter
dc865f28dec0c6f10de159dc1f8f20dd69ee74cf
[ "MIT" ]
null
null
null
examples/advanced/fitspheres2.py
Gjacquenot/vtkplotter
dc865f28dec0c6f10de159dc1f8f20dd69ee74cf
[ "MIT" ]
null
null
null
examples/advanced/fitspheres2.py
Gjacquenot/vtkplotter
dc865f28dec0c6f10de159dc1f8f20dd69ee74cf
[ "MIT" ]
1
2019-05-22T09:23:11.000Z
2019-05-22T09:23:11.000Z
""" For each point finds the 9 closest ones and fit a sphere color points based on the size of the sphere radius """ from __future__ import division, print_function from vtkplotter import * vp = Plotter(verbose=0, axes=0, bg="w") s = vp.load(datadir+"cow.vtk", alpha=0.3) # .subdivide() pts1, pts2, vals, cols = [], ...
29.055556
77
0.634799
7687a299bfc494091a67965b0fbb126b093db8f7
4,932
py
Python
embeddings_for_trees/data/jsonl_data_module.py
JetBrains-Research/embeddings-for-trees
4609ec341c6563ba11c02ebb57eb07dd866c499e
[ "MIT" ]
20
2020-01-24T11:22:40.000Z
2022-02-23T19:15:58.000Z
embeddings_for_trees/data/jsonl_data_module.py
JetBrains-Research/embeddings-for-trees
4609ec341c6563ba11c02ebb57eb07dd866c499e
[ "MIT" ]
5
2020-03-30T13:34:37.000Z
2022-02-20T12:22:42.000Z
embeddings_for_trees/data/jsonl_data_module.py
JetBrains-Research/embeddings-for-trees
4609ec341c6563ba11c02ebb57eb07dd866c499e
[ "MIT" ]
6
2020-02-10T21:01:12.000Z
2022-02-23T19:16:01.000Z
from os import path from os.path import basename from typing import List, Optional, Tuple import dgl import torch from commode_utils.common import download_dataset from commode_utils.vocabulary import build_from_scratch from omegaconf import DictConfig from pytorch_lightning import LightningDataModule from torch.utils...
45.666667
118
0.715937
8b279018139e02e398af185c029b2654c8bb8bc7
2,185
py
Python
vnpy_jqdata/jqdata_datafeed.py
fsksf/vnpy_jqdata
608c2a7766b0876f7569fe1e5dabd34f03ee28aa
[ "MIT" ]
null
null
null
vnpy_jqdata/jqdata_datafeed.py
fsksf/vnpy_jqdata
608c2a7766b0876f7569fe1e5dabd34f03ee28aa
[ "MIT" ]
null
null
null
vnpy_jqdata/jqdata_datafeed.py
fsksf/vnpy_jqdata
608c2a7766b0876f7569fe1e5dabd34f03ee28aa
[ "MIT" ]
null
null
null
from datetime import timedelta from typing import List, Optional from pytz import timezone import traceback import pandas as pd import jqdatasdk from vnpy.trader.datafeed import BaseDatafeed from vnpy.trader.setting import SETTINGS from vnpy.trader.constant import Interval from vnpy.trader.object import BarData, Hist...
28.012821
80
0.563844
3a3632f9a9bab22fa999cc9e12c3b0fdce460c5c
368
py
Python
ns-allinone-3.27/ns-3.27/src/config-store/bindings/modulegen_customizations.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
93
2019-04-21T08:22:26.000Z
2022-03-30T04:26:29.000Z
ns-allinone-3.27/ns-3.27/src/config-store/bindings/modulegen_customizations.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
12
2019-04-19T16:39:58.000Z
2021-06-22T13:18:32.000Z
ns-allinone-3.27/ns-3.27/src/config-store/bindings/modulegen_customizations.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
21
2019-05-27T19:36:12.000Z
2021-07-26T02:37:41.000Z
import os def post_register_types(root_module): enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',') # if GtkConfigStore support is disabled, disable the class wrapper if 'GtkConfigStore' not in enabled_features: try: root_module.classes.remove(root_module['ns3::GtkConfigSto...
33.454545
74
0.695652
66976f140976eaa008c67f48edb21fc4e303bff0
4,620
py
Python
tests/unit/test_misc.py
pburkindine/localstack-debug
bbdedc4e3af8074d586428a3a519e41f7445ce31
[ "Apache-2.0" ]
2
2021-11-19T00:06:54.000Z
2021-12-26T02:03:47.000Z
tests/unit/test_misc.py
SNOmad1/localstack
bae78a0d44a60893d49b27b3fc6562098a78decf
[ "Apache-2.0" ]
1
2021-12-03T01:36:52.000Z
2021-12-03T01:36:52.000Z
tests/unit/test_misc.py
SNOmad1/localstack
bae78a0d44a60893d49b27b3fc6562098a78decf
[ "Apache-2.0" ]
null
null
null
import asyncio import concurrent.futures import datetime import time import unittest import yaml from requests.models import Response from localstack import config from localstack.services.generic_proxy import GenericProxy, ProxyListener from localstack.utils import async_utils, config_listener from localstack.utils....
35.538462
99
0.656277
8e27453894c08188a6c0c3dca720651c3d0784ed
2,456
py
Python
mageck/mlesgeff.py
desertzk/liulab-mymageck
ab4fb11a2f9142a7703b780264b74d7e0a349add
[ "BSD-3-Clause" ]
null
null
null
mageck/mlesgeff.py
desertzk/liulab-mymageck
ab4fb11a2f9142a7703b780264b74d7e0a349add
[ "BSD-3-Clause" ]
null
null
null
mageck/mlesgeff.py
desertzk/liulab-mymageck
ab4fb11a2f9142a7703b780264b74d7e0a349add
[ "BSD-3-Clause" ]
null
null
null
''' sgRNA efficiency related functions ''' from __future__ import print_function import sys import numpy as np from mageck.mleclassdef import * import logging def read_sgrna_eff(args): ''' Read sgRNA efficiency score from file, and convert to initial prediction ''' if args.sgrna_efficiency != None: # e...
32.746667
188
0.690147
b094465bf5ba8e6005a47bc87f23b7db8ee730db
14,413
py
Python
django/test/simple.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/test/simple.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
null
null
null
django/test/simple.py
mitsuhiko/django
156b1e97b52ba0608ae91b08a6cb9a8381cbe055
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
import unittest as real_unittest from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models import get_app, get_apps from django.test import _doctest as doctest from django.test.utils import setup_test_environment, teardown_test_environment from django.test.testcases...
40.147632
115
0.615555
91dc0ddccab3eddb2d83ba427aafce63073d72b8
913
py
Python
utils/metrics/Nll.py
debashishc/texygan-analysis
f44d559b15da988080bc1a1d84399db04e69d755
[ "MIT" ]
881
2018-02-06T18:20:34.000Z
2022-03-29T13:18:12.000Z
utils/metrics/Nll.py
debashishc/texygan-analysis
f44d559b15da988080bc1a1d84399db04e69d755
[ "MIT" ]
48
2018-02-13T21:31:24.000Z
2021-07-03T13:35:21.000Z
utils/metrics/Nll.py
debashishc/texygan-analysis
f44d559b15da988080bc1a1d84399db04e69d755
[ "MIT" ]
224
2018-02-07T04:48:31.000Z
2022-03-18T12:26:25.000Z
import numpy as np from utils.metrics.Metrics import Metrics class Nll(Metrics): def __init__(self, data_loader, rnn, sess): super().__init__() self.name = 'nll-oracle' self.data_loader = data_loader self.sess = sess self.rnn = rnn def set_name(self, name): se...
26.085714
83
0.580504
d6a7b9b83218241f8033d83b1b7282d0d832b2dc
2,251
py
Python
aio.api.github/tests/test_abstract_base.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
1
2021-12-09T19:24:48.000Z
2021-12-09T19:24:48.000Z
aio.api.github/tests/test_abstract_base.py
phlax/abstracts
53fbbee68d1f56effe0ded1ed4e28be870693877
[ "Apache-2.0" ]
392
2021-08-24T15:55:32.000Z
2022-03-28T14:26:22.000Z
aio.api.github/tests/test_abstract_base.py
envoyproxy/pytooling
db8b60184f8a61b3184a111b0cfaff4780511b46
[ "Apache-2.0" ]
3
2021-10-06T13:43:11.000Z
2021-11-29T13:48:56.000Z
from unittest.mock import MagicMock, PropertyMock import pytest from aio.api.github.abstract import base def test_abstract_base_githubentity_constructor(): entity = base.GithubEntity("GITHUB", "DATA") assert entity._github == "GITHUB" assert entity.data == "DATA" assert entity.github == "GITHUB" ...
30.835616
79
0.637494
821260de464090fa7e03e18e074e0a8a76b108dc
3,524
py
Python
gbmgeometry/utils/gbm_time.py
drJfunk/gbmgeometry
ca11005c349546ed962bb1bbc4f66d8022ea79a1
[ "MIT" ]
4
2019-10-31T06:28:13.000Z
2020-03-28T14:31:07.000Z
gbmgeometry/utils/gbm_time.py
drJfunk/gbmgeometry
ca11005c349546ed962bb1bbc4f66d8022ea79a1
[ "MIT" ]
4
2020-03-04T16:16:39.000Z
2020-04-08T11:28:03.000Z
gbmgeometry/utils/gbm_time.py
drJfunk/gbmgeometry
ca11005c349546ed962bb1bbc4f66d8022ea79a1
[ "MIT" ]
7
2017-10-26T09:32:37.000Z
2022-03-21T16:32:20.000Z
import astropy.time as time import astropy.units as u import numpy as np class GBMTime(object): def __init__(self, time_object): self._time_object = time_object self._current_mjd = self._time_object.mjd # get the Fermi MET from the MET self._calculate_met_from_mjd() se...
23.184211
98
0.592509
3d6dac9aa511860a68f7416332e64d0c2c0f7c1c
1,378
py
Python
app/accelerators/movidius/runtests.py
xscanpix/project-cs-ht18
aeb864be868613995e8a4075714d146e95c74d72
[ "Apache-2.0" ]
1
2018-11-06T12:14:40.000Z
2018-11-06T12:14:40.000Z
app/accelerators/movidius/runtests.py
xscanpix/project-cs-ht18
aeb864be868613995e8a4075714d146e95c74d72
[ "Apache-2.0" ]
1
2018-11-15T12:00:32.000Z
2018-11-15T12:00:32.000Z
app/accelerators/movidius/runtests.py
xscanpix/project-cs-ht18
aeb864be868613995e8a4075714d146e95c74d72
[ "Apache-2.0" ]
null
null
null
import argparse import os from pprint import pprint import numpy as np from mymov.helpers import load_settings from tests.helpers import load_test_config from tests.tests import run_tests, gen_model, compile_tf, MovidiusTest if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-...
33.609756
108
0.669086
24c1063497a72bee61dd20294e2576888308e07c
3,413
py
Python
app/app/settings.py
changji2069/django-rest-api
994ee97137df6581485a3a4f2d1cdc5d51f83c45
[ "MIT" ]
null
null
null
app/app/settings.py
changji2069/django-rest-api
994ee97137df6581485a3a4f2d1cdc5d51f83c45
[ "MIT" ]
null
null
null
app/app/settings.py
changji2069/django-rest-api
994ee97137df6581485a3a4f2d1cdc5d51f83c45
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. 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 # Bu...
25.281481
91
0.685614
fd32329bd6e7a7bab0da8de17519f0407c988dfb
6,909
py
Python
backend/gunt_31916/settings.py
crowdbotics-apps/gunt-31916
66b36d3fdc46bc85de9f6cfed4d0d3375e04ed54
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/gunt_31916/settings.py
crowdbotics-apps/gunt-31916
66b36d3fdc46bc85de9f6cfed4d0d3375e04ed54
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/gunt_31916/settings.py
crowdbotics-apps/gunt-31916
66b36d3fdc46bc85de9f6cfed4d0d3375e04ed54
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for gunt_31916 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
29.525641
112
0.730207
82cfb8516540759b2176bbfe524e5248aabf79d4
51
py
Python
src/gfl/api/listener/__init__.py
mingt2019/GFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
123
2020-06-05T13:30:38.000Z
2022-03-30T08:39:43.000Z
src/gfl/api/listener/__init__.py
GalaxyLearning/PFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
13
2020-06-19T13:09:47.000Z
2021-12-22T03:09:24.000Z
src/gfl/api/listener/__init__.py
GalaxyLearning/GFL
b8e027d2e8cdcc27c85a00744f8790d6db3cc4a3
[ "MIT" ]
35
2020-06-08T15:52:21.000Z
2022-03-25T11:52:42.000Z
from gfl.api.listener.http_app import HttpListener
25.5
50
0.862745
a132af8d776324c0ea5cf31d5b8fcfd1b7dafcbc
192,101
py
Python
lib/viewvc.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
null
null
null
lib/viewvc.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
null
null
null
lib/viewvc.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
null
null
null
# -*-python-*- # # Copyright (C) 1999-2018 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit h...
36.850374
95
0.616441
420189969bf4563b8cf581da5b36870eda316cbb
238
py
Python
topCoder/srms/300s/srm361/div2/search_box.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/300s/srm361/div2/search_box.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/300s/srm361/div2/search_box.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
import re class SearchBox: def find(self, text, search, wholeWord, start): if wholeWord == 'Y': search = r'\b%s\b' % search m = re.compile(search).search(text, start) return m.start() if m else -1
26.444444
51
0.571429
06be715ed0522ef932cb7f6bcb55a88df528fb92
6,631
py
Python
tests/px_file_test.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
149
2016-03-27T20:39:37.000Z
2022-03-01T07:53:42.000Z
tests/px_file_test.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
85
2016-06-06T17:33:54.000Z
2022-02-14T06:06:58.000Z
tests/px_file_test.py
walles/px
e513e51de56d581b8ea1483acebf24547caec86d
[ "MIT" ]
9
2016-05-05T11:22:13.000Z
2021-03-04T12:03:59.000Z
import re import sys from px import px_file if sys.version_info.major >= 3: # For mypy PEP-484 static typing validation from typing import List # NOQA def test_lsof_to_files(): lsof = "" lsof += "\0".join(["p123", "\n"]) lsof += "\0".join(["fcwd", "a ", "tDIR", "n/", "\n"]) lsof += "\0".jo...
30.140909
87
0.566732
4fa4de8d3241676cedaed966bc044b5f1e367a82
282
py
Python
compiler/example_configs/big_config_scn4m_subm.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
compiler/example_configs/big_config_scn4m_subm.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
compiler/example_configs/big_config_scn4m_subm.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
word_size = 32 num_words = 128 tech_name = "scn4m_subm" process_corners = ["TT"] supply_voltages = [ 5.0 ] temperatures = [ 25 ] output_path = "temp" output_name = "sram_{0}_{1}_{2}".format(word_size,num_words,tech_name) drc_name = "magic" lvs_name = "netgen" pex_name = "magic"
18.8
70
0.705674
c7f1915bfdf7eeb482a2c4b3a10895716bfe1c27
58
py
Python
Client/game/client/log/logger.py
wuyueqpwoa/BloodyBlock
74d5a8a623c3b0c01cafb4c6a4d2d89c10efb9c4
[ "Apache-2.0" ]
null
null
null
Client/game/client/log/logger.py
wuyueqpwoa/BloodyBlock
74d5a8a623c3b0c01cafb4c6a4d2d89c10efb9c4
[ "Apache-2.0" ]
null
null
null
Client/game/client/log/logger.py
wuyueqpwoa/BloodyBlock
74d5a8a623c3b0c01cafb4c6a4d2d89c10efb9c4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ 日志工具 """ def log(*args): print args
6.444444
15
0.568966
1fe7510e2a66710d5838d56e44f296723ff1eea8
10,170
py
Python
src/utils.py
h1w/voice-welcome
08d12358146a112fe304be4c31dcdd41bb0ea396
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
h1w/voice-welcome
08d12358146a112fe304be4c31dcdd41bb0ea396
[ "BSD-3-Clause" ]
null
null
null
src/utils.py
h1w/voice-welcome
08d12358146a112fe304be4c31dcdd41bb0ea396
[ "BSD-3-Clause" ]
null
null
null
import wave def ConvertPcmToWav(name, output_name): with open(name, 'rb') as pcmfile: pcmdata = pcmfile.read() with wave.open(output_name, 'wb') as wavfile: wavfile.setparams((1, 2, 44100, 1, 'NONE', 'NONE')) wavfile.writeframes(pcmdata) def localtime_support_func(correct_time): ...
93.302752
208
0.608948
1ce3f6f5bf2ba78f724dafa28a1526c3251ecc4b
518
py
Python
filenamescrambleint.py
voussoir/cmd
9ecfc43751c42d4cdd288b8a1b28ba3a7fa6c650
[ "BSD-3-Clause" ]
6
2020-01-30T13:36:53.000Z
2022-02-05T08:14:56.000Z
filenamescrambleint.py
voussoir/cmd
9ecfc43751c42d4cdd288b8a1b28ba3a7fa6c650
[ "BSD-3-Clause" ]
null
null
null
filenamescrambleint.py
voussoir/cmd
9ecfc43751c42d4cdd288b8a1b28ba3a7fa6c650
[ "BSD-3-Clause" ]
1
2020-01-30T13:36:33.000Z
2020-01-30T13:36:33.000Z
''' Drag a file on top of this .py file, and it will have its filename scrambled into a combination of 12 digits. ''' import os import random import string import sys from voussoirkit import pathclass argv = sys.argv[1:] for path in pathclass.glob_many(argv): newname = [random.choice(string.digits) for x in ran...
24.666667
63
0.714286
060807268963c0d6f1e6fd4a8ec3ef36d43da8b1
1,723
py
Python
pendulum_experiments/exp_common.py
numahha/wmopo
1557dab2e8168c1f2e53ffbc435b4000680f1d28
[ "MIT" ]
1
2022-01-01T10:45:53.000Z
2022-01-01T10:45:53.000Z
pendulum_experiments/exp_common.py
numahha/wmopo
1557dab2e8168c1f2e53ffbc435b4000680f1d28
[ "MIT" ]
1
2022-03-03T17:03:35.000Z
2022-03-03T17:03:35.000Z
pendulum_experiments/exp_common.py
numahha/wmopo
1557dab2e8168c1f2e53ffbc435b4000680f1d28
[ "MIT" ]
null
null
null
from regression import DynamicsRegression from nll_estimation import NLLRegression import torch import numpy as np from env_def import EnvDef def default_c_hat(sa): #print("hello") return 0. class ExpCommon(): def __init__(self,m_step_flag=False, hidden_unit_num=8, B_d...
31.327273
131
0.654092
7aa451f26240bf0b95300e8cca22b12ec9f4b923
1,454
py
Python
sustainableCityManagement/main_project/ML_models/bikes_usage_prediction.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/ML_models/bikes_usage_prediction.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
null
null
null
sustainableCityManagement/main_project/ML_models/bikes_usage_prediction.py
Josh-repository/Dashboard-CityManager-
6287881be9fb2c6274a755ce5d75ad355346468a
[ "RSA-MD" ]
1
2021-05-13T16:33:18.000Z
2021-05-13T16:33:18.000Z
import numpy as np import math import sys import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.linear_model import Ridge from sklearn.linear_model import LinearRegression from ..Config.config_handler import read_config config_vals = read_config("Bike_API") # Time Series Pr...
38.263158
133
0.738652
9199bf112c71d122f3b11bdca0c0825727b72a5f
10,262
py
Python
pyAnVIL/anvil/fhir/client.py
mmtmn/client-apis
215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f
[ "Apache-2.0" ]
1
2022-01-12T21:50:44.000Z
2022-01-12T21:50:44.000Z
pyAnVIL/anvil/fhir/client.py
mmtmn/client-apis
215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f
[ "Apache-2.0" ]
null
null
null
pyAnVIL/anvil/fhir/client.py
mmtmn/client-apis
215adae0b7f401b4bf62e7bd79b6a8adfe69cf4f
[ "Apache-2.0" ]
null
null
null
"""Instances of this class handle authorizing and talking to Google Healthcare API FHIR Service.""" import logging import threading from urllib.parse import urlparse from fhirclient import client from fhirclient.models.meta import Meta from fhirclient.models.bundle import Bundle from anvil.fhir.smart_auth import Goo...
45.608889
186
0.58663
172b837c0985e9196af3263683a12018484ee4d2
22
py
Python
hlfbt/serial_console/__init__.py
hlfbt/serial-console
f9c770ea841c8ac1283b84f5883326363d4db1a8
[ "MIT" ]
null
null
null
hlfbt/serial_console/__init__.py
hlfbt/serial-console
f9c770ea841c8ac1283b84f5883326363d4db1a8
[ "MIT" ]
null
null
null
hlfbt/serial_console/__init__.py
hlfbt/serial-console
f9c770ea841c8ac1283b84f5883326363d4db1a8
[ "MIT" ]
null
null
null
from . import console
11
21
0.772727
c18704645a55a0b457b7cef7bee1171b3d206c10
721
py
Python
Semana4/Aula6-Hadoop/q8Reducer.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
Semana4/Aula6-Hadoop/q8Reducer.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
Semana4/Aula6-Hadoop/q8Reducer.py
cglsoft/DataScience-FDSII
18c1de0f6cb1471aee88f9a547c242fbbc61fa19
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys numberOfOcorr = 0 totalPath = 0 mostPopular = None oldKey = None for line in sys.stdin: data_mapped = line.strip().split("\t") if len(data_mapped) != 2: # Something has gone wrong. Skip this line. continue thisKey, thisPath = data_mapped if ...
24.862069
104
0.613037
23b29f73096843a64339adea3a80950609f9a28b
1,683
py
Python
pyscf/lo/test/test_nao.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
1
2018-05-02T19:55:30.000Z
2018-05-02T19:55:30.000Z
pyscf/lo/test/test_nao.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
null
null
null
pyscf/lo/test/test_nao.py
nmardirossian/pyscf
57c8912dcfcc1157a822feede63df54ed1067115
[ "BSD-2-Clause" ]
1
2018-12-06T03:10:50.000Z
2018-12-06T03:10:50.000Z
#!/usr/bin/env python import unittest from functools import reduce import numpy from pyscf import gto from pyscf import scf from pyscf.lo import nao mol = gto.Mole() mol.verbose = 0 mol.output = None mol.atom = ''' O 0. 0. 0 1 0. -0.757 0.587 1 0. 0.757 0.587''' mol.basis = '...
28.525424
75
0.607249
ba22fa61c99c4656a3ea833772fc6faa29ea4c89
7,234
py
Python
examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
from .scene_stadium import SinglePlayerStadiumScene from .env_bases import MJCFBaseBulletEnv import numpy as np import pybullet from robot_locomotors import Hopper, Walker2D, HalfCheetah, Ant, Humanoid, HumanoidFlagrun, HumanoidFlagrunHarder class WalkerBaseBulletEnv(MJCFBaseBulletEnv): def __init__(self, robot, r...
35.635468
166
0.700581
da9a615070cbdc91da3f3619727658907d744338
4,977
py
Python
angr/knowledge_plugins/functions/soot_function.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/knowledge_plugins/functions/soot_function.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/knowledge_plugins/functions/soot_function.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import os import networkx from collections import defaultdict from .function import Function class SootFunction(Function): """ A representation of a function and various information about it. """ def __init__(self, function_manager, addr, name=None, syscall=None): """ Function constr...
37.421053
114
0.640547
4a32e134f90ceef3fb5744f8eef75133126dd46c
9,781
py
Python
alf/algorithms/predictive_representation_learner_test.py
1nF0rmed/alf
84bf56379d5fb552fb43365c5a77d8edc46d06c3
[ "Apache-2.0" ]
null
null
null
alf/algorithms/predictive_representation_learner_test.py
1nF0rmed/alf
84bf56379d5fb552fb43365c5a77d8edc46d06c3
[ "Apache-2.0" ]
null
null
null
alf/algorithms/predictive_representation_learner_test.py
1nF0rmed/alf
84bf56379d5fb552fb43365c5a77d8edc46d06c3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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...
44.257919
80
0.458644
acdb01d3d3f5f913d3e7525c8e210687055cc9e9
20,145
py
Python
python/pyspark/sql/functions.py
varadharajan/spark
a71cbbdea581573192a59bf8472861c463c40fcb
[ "Apache-2.0", "MIT" ]
null
null
null
python/pyspark/sql/functions.py
varadharajan/spark
a71cbbdea581573192a59bf8472861c463c40fcb
[ "Apache-2.0", "MIT" ]
null
null
null
python/pyspark/sql/functions.py
varadharajan/spark
a71cbbdea581573192a59bf8472861c463c40fcb
[ "Apache-2.0", "MIT" ]
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 us...
36.895604
100
0.655051
0974ac9a15d5dd47e826ff7270370c7c1cd1114c
8,505
py
Python
open/Dell/code/common/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
open/Dell/code/common/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
open/Dell/code/common/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
34.433198
169
0.623516
ce2212f0bac1442a91d91db103a287bf798be66e
1,266
py
Python
tests/urls.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
null
null
null
tests/urls.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
1
2015-07-13T16:52:33.000Z
2015-07-16T20:24:59.000Z
tests/urls.py
ercpe/django-two-factor-auth
76866dd310903b3a34526becaa0a5012dea7debe
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url, include from django.contrib import admin from two_factor.admin import AdminSiteOTPRequired from two_factor.views import LoginView from two_factor.urls import urlpatterns as tf_urls from two_factor.gateways.twilio.urls import urlpatterns as tf_twilio_urls from .views import ...
28.133333
77
0.659558
1c6d09948e07da2cb0e44b8404d5023c1f81baf3
27,616
py
Python
external/AR/pytracking/evaluation/uavdataset.py
tzhhhh123/Stark
eaf7df3baf27ac064938f831211ae64659bc6808
[ "MIT" ]
376
2021-03-27T12:29:17.000Z
2022-03-29T01:22:15.000Z
external/AR/pytracking/evaluation/uavdataset.py
wp8733684/Stark
ba59f9596b06bc687d726f991e1e7fce8af6b5a5
[ "MIT" ]
75
2021-03-31T12:44:45.000Z
2022-03-28T09:02:57.000Z
external/AR/pytracking/evaluation/uavdataset.py
wp8733684/Stark
ba59f9596b06bc687d726f991e1e7fce8af6b5a5
[ "MIT" ]
82
2021-03-26T10:07:57.000Z
2022-03-29T11:08:27.000Z
import numpy as np from pytracking.evaluation.data import Sequence, BaseDataset, SequenceList from pytracking.utils.load_text import load_text class UAVDataset(BaseDataset): """ UAV123 dataset. Publication: A Benchmark and Simulator for UAV Tracking. Matthias Mueller, Neil Smith and Bernard G...
92.053333
129
0.576477
d3d9c71ad9a5f54a2d32c65aa02eb134eef16d6b
2,443
py
Python
server/api/models/inference_group.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
2
2021-07-13T07:57:48.000Z
2021-11-18T08:20:38.000Z
server/api/models/inference_group.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
null
null
null
server/api/models/inference_group.py
NUS-CS-MComp/cs-cloud-computing-music-personality
35cc926bef83fb8be3c6af680862343a67cd6e1c
[ "Apache-2.0" ]
null
null
null
from .base import BaseModel from boto3.dynamodb.conditions import Key class InferenceGroupModel(BaseModel): """ Inference user group index-referencing model :param BaseModel: Inherit from base data model :type BaseModel: BaseModel :return: Inference user group index-referencing model object :...
26.554348
83
0.607041
c6dea6080d08009e3189d25ae58c9ba227d148ee
2,096
py
Python
formulaic/parser/types/token.py
CamDavidsonPilon/formulaic
7afb4e4029860f081e16473621595e2c47634933
[ "MIT" ]
null
null
null
formulaic/parser/types/token.py
CamDavidsonPilon/formulaic
7afb4e4029860f081e16473621595e2c47634933
[ "MIT" ]
null
null
null
formulaic/parser/types/token.py
CamDavidsonPilon/formulaic
7afb4e4029860f081e16473621595e2c47634933
[ "MIT" ]
null
null
null
from enum import Enum from .factor import Factor from .term import Term class Token: class Kind(Enum): OPERATOR = 'operator' VALUE = 'value' NAME = 'name' PYTHON = 'python' __slots__ = ('token', '_kind', 'source', 'source_start', 'source_end') def __init__(self, token='...
25.560976
96
0.593034
09f4b780b501920170f2776fd396faf57622b856
2,931
py
Python
tests/handlers/v2/test_errors.py
homebysix/consoleme
ff800dd154c4a2be30ff7350f58d92ea4c8446d0
[ "Apache-2.0" ]
2,835
2020-12-09T19:07:24.000Z
2022-03-31T06:38:44.000Z
tests/handlers/v2/test_errors.py
homebysix/consoleme
ff800dd154c4a2be30ff7350f58d92ea4c8446d0
[ "Apache-2.0" ]
179
2020-12-10T01:51:25.000Z
2022-03-31T02:06:06.000Z
tests/handlers/v2/test_errors.py
homebysix/consoleme
ff800dd154c4a2be30ff7350f58d92ea4c8446d0
[ "Apache-2.0" ]
219
2020-12-09T21:30:56.000Z
2022-03-31T05:57:36.000Z
import ujson as json from tornado.testing import AsyncHTTPTestCase class TestNotFoundHandler(AsyncHTTPTestCase): def get_app(self): from consoleme.config import config self.config = config from consoleme.routes import make_app return make_app(jwt_validator=lambda x: {}) def ...
40.150685
86
0.61276
df2ba17e67fe59ec50981b83518cb7720bbd67aa
52,552
py
Python
sarpy/annotation/afrl_elements/DetailObjectInfo.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
1
2021-07-05T15:14:03.000Z
2021-07-05T15:14:03.000Z
sarpy/annotation/afrl_elements/DetailObjectInfo.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
1
2021-08-31T10:27:15.000Z
2021-08-31T19:42:04.000Z
sarpy/annotation/afrl_elements/DetailObjectInfo.py
bombaci-vsc/sarpy
3e31e9d7fca77612b60f2507f6f7068d1660a3e2
[ "MIT" ]
1
2021-07-17T12:49:57.000Z
2021-07-17T12:49:57.000Z
""" Definition for the DetailObjectInfo AFRL labeling object """ __classification__ = "UNCLASSIFIED" __authors__ = ("Thomas McCullough", "Thomas Rackers") import logging from typing import Optional, List import numpy from sarpy.compliance import string_types from sarpy.io.xml.base import Serializable, Arrayable, cr...
39.483095
115
0.63284
7a6e2aebf0bcfc76362d80f0333b6c2549bddf95
209
py
Python
erptask/erptask/doctype/erptask/test_erptask.py
beshoyAtefZaki/erptask
85eb67a1ef9618994a9d39d50cfc5ec05c17d74c
[ "MIT" ]
null
null
null
erptask/erptask/doctype/erptask/test_erptask.py
beshoyAtefZaki/erptask
85eb67a1ef9618994a9d39d50cfc5ec05c17d74c
[ "MIT" ]
null
null
null
erptask/erptask/doctype/erptask/test_erptask.py
beshoyAtefZaki/erptask
85eb67a1ef9618994a9d39d50cfc5ec05c17d74c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Beshoy Atef and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class Testerptask(unittest.TestCase): pass
19
50
0.76555
7a91af179ab54191171bda12b911b857c2d9bd22
6,764
py
Python
framework/SupervisedLearning/ScikitLearn/LinearModel/LassoLars.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
1
2022-03-10T18:54:09.000Z
2022-03-10T18:54:09.000Z
framework/SupervisedLearning/ScikitLearn/LinearModel/LassoLars.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
null
null
null
framework/SupervisedLearning/ScikitLearn/LinearModel/LassoLars.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 t...
59.858407
136
0.560615
d7647beab46de9c8ac6f680970f88588a8a6e7de
4,360
py
Python
google/cloud/security/common/gcp_type/backend_service.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
1
2018-03-26T08:15:21.000Z
2018-03-26T08:15:21.000Z
google/cloud/security/common/gcp_type/backend_service.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
google/cloud/security/common/gcp_type/backend_service.py
pombredanne/forseti-security
68a9a88243460065e00b6c131b3d9abd0331fb37
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security 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 ap...
31.366906
76
0.631651
9d36c0a2016c1f7cf825f268d9272587f5d7034f
4,610
py
Python
husky_directory/services/reducer.py
UWIT-IAM/uw-husky-directory
0eae8ca8fddec183964adfd26f4935357eae963d
[ "MIT" ]
null
null
null
husky_directory/services/reducer.py
UWIT-IAM/uw-husky-directory
0eae8ca8fddec183964adfd26f4935357eae963d
[ "MIT" ]
87
2020-11-17T20:31:25.000Z
2022-03-31T16:37:45.000Z
husky_directory/services/reducer.py
UWIT-IAM/uw-husky-directory
0eae8ca8fddec183964adfd26f4935357eae963d
[ "MIT" ]
null
null
null
from collections import OrderedDict from functools import cached_property from logging import Logger from typing import Dict, Optional, Tuple from injector import inject from husky_directory.models.pws import ListPersonsOutput, NamedIdentity, ResultBucket from husky_directory.util import is_similar, readable_list c...
37.177419
100
0.655531
98a8dc79f6fd8d18be085c8627f5cc58cb0f4276
5,623
py
Python
src/manipin_json/jsondef.py
deeso/json-search-replace
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
1
2019-02-08T14:42:45.000Z
2019-02-08T14:42:45.000Z
src/manipin_json/jsondef.py
deeso/manipin-json
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
null
null
null
src/manipin_json/jsondef.py
deeso/manipin-json
d1dd75cfaecb65bf8fcbad0c80a0bd839eccaa8d
[ "Apache-2.0" ]
null
null
null
# define a key matching language # -- E:{'k1':v1, 'k2':v2} <-- Exact structure match # -- S:{'k1':v1 } <-- Only this value is needed structure match # -- E:[v1, v2] <-- Exact structure match # -- S:[v1, v2] <-- Only values v1 and v2 are needed # -- E:{'k1':v1, 'k2':v2} <-- Exact structure match # -- {'k1':v1, 'k2':XX}...
30.895604
72
0.552552
298efccfd926da1ea13d17989e056b78a950849d
376
py
Python
chapterthree/howmanyguests.py
cmotek/python_crashcourse
29cbdd6699cd17192bb599d235852d547630d110
[ "Apache-2.0" ]
null
null
null
chapterthree/howmanyguests.py
cmotek/python_crashcourse
29cbdd6699cd17192bb599d235852d547630d110
[ "Apache-2.0" ]
null
null
null
chapterthree/howmanyguests.py
cmotek/python_crashcourse
29cbdd6699cd17192bb599d235852d547630d110
[ "Apache-2.0" ]
null
null
null
guestlist = ['Barack Obama', 'Stanley Kubrick', 'Thomas Pynchon'] message = (f"How does McDonalds sound, {guestlist[0]}?") print(message) message = (f"How does McDonalds sound, {guestlist[1]}?") print(message) message = (f"How does McDonalds sound, {guestlist[2]}?") print(message) print(f"We've got approximately, {l...
34.181818
91
0.720745
bbb018b59f0429f761e17f25818848689a98338a
1,879
py
Python
src/day_07.py
bengosney/Advent-Of-Code-2021
47747d9fbc92bca0d44d986eee4b49f809df7770
[ "MIT" ]
null
null
null
src/day_07.py
bengosney/Advent-Of-Code-2021
47747d9fbc92bca0d44d986eee4b49f809df7770
[ "MIT" ]
4
2021-11-30T16:17:02.000Z
2021-12-13T14:22:57.000Z
src/day_07.py
bengosney/Advent-Of-Code-2021
47747d9fbc92bca0d44d986eee4b49f809df7770
[ "MIT" ]
null
null
null
# Standard Library import multiprocessing as mp import sys from functools import lru_cache, partial # First Party from utils import read_input def move_crabs_to(crabs: list[int], position: int) -> int: return sum(abs(position - crab) for crab in crabs) def part_1(input: str) -> int: crabs = list(map(int, i...
19.778947
69
0.620543
fca55da3e197cb41ec47c39b9623009b79280219
4,583
py
Python
scripts/trns_validate_KBaseAssembly.FA.py
srividya22/transform
89f8f60d973be886864f94bcb5502f1e80fbf541
[ "MIT" ]
null
null
null
scripts/trns_validate_KBaseAssembly.FA.py
srividya22/transform
89f8f60d973be886864f94bcb5502f1e80fbf541
[ "MIT" ]
null
null
null
scripts/trns_validate_KBaseAssembly.FA.py
srividya22/transform
89f8f60d973be886864f94bcb5502f1e80fbf541
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This code is part of KBase project to validate #the fastq and fasta files from __future__ import print_function import math import sys, getopt import os.path import subprocess import json import gzip import io import cStringIO desc1 = ''' NAME trns_validate_KBaseAssembly.FA -- Validate...
27.608434
90
0.583679
c95179d56bb8a75ca36e206b56f3e5ed9097aa93
10,293
py
Python
snmp_interface_4.py
mkevenaar/SysAdminBoard
abf63603a12d8db0a068c3cf8fbaa6c800ef88ed
[ "MIT" ]
293
2015-01-01T12:33:12.000Z
2022-03-29T23:50:48.000Z
snmp_interface_4.py
mkevenaar/SysAdminBoard
abf63603a12d8db0a068c3cf8fbaa6c800ef88ed
[ "MIT" ]
7
2015-08-05T12:55:23.000Z
2019-08-28T20:50:01.000Z
snmp_interface_4.py
mkevenaar/SysAdminBoard
abf63603a12d8db0a068c3cf8fbaa6c800ef88ed
[ "MIT" ]
81
2015-01-21T03:12:26.000Z
2021-10-05T12:26:00.000Z
#!/usr/bin/env python """snmp_interface: module called to generate SNMP monitoring data formatted for use with StatusBoard iPad App # How To Calculate Bandwidth Utilization Using SNMP # http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a008009496e.shtml """ from pysnmp.entity.rfc3413.oneliner im...
42.709544
143
0.633926
e92809fd953f7a63d250ab8264367833fdb845cc
7,221
py
Python
train_fair.py
CuriousCat-7/fashion-mnist
de556ffca9234def3baa6d61a730e8b98d832a76
[ "MIT" ]
1
2020-06-05T09:06:03.000Z
2020-06-05T09:06:03.000Z
train_fair.py
CuriousCat-7/fashion-mnist
de556ffca9234def3baa6d61a730e8b98d832a76
[ "MIT" ]
null
null
null
train_fair.py
CuriousCat-7/fashion-mnist
de556ffca9234def3baa6d61a730e8b98d832a76
[ "MIT" ]
null
null
null
import torch from torchvision import datasets, models, transforms import torch.optim as optim import model import utils import time import argparse import os import csv from datetime import datetime # from tensorboardX import SummaryWriter parser = argparse.ArgumentParser() parser.add_argument("--model", type=str, def...
33.742991
104
0.618197
bee23cd272545e083618e52d45dc21836ca2e895
1,907
py
Python
app/database_models/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
1
2020-07-28T13:28:42.000Z
2020-07-28T13:28:42.000Z
app/database_models/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
app/database_models/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
from app import db class TweetsModel(db.Model): __tablename__ = 'jobs' id = db.Column(db.Integer, primary_key=True) rawTweet = db.Column(db.String()) cleanedTweet = db.Column(db.String()) retweetCount = db.Column(db.String()) favoriteCount = db.Column(db.String()) isReply = db.Column(db....
34.053571
114
0.673309
14898c7458e26ff6b427a3c48acc1044024189c7
1,980
py
Python
couchjs/scons/scons-local-2.0.1/SCons/Tool/suncc.py
Gussy/bigcouch
9e67d3f754186ce8368503509ae041a2847f2b7c
[ "Apache-2.0" ]
73
2015-03-19T04:04:52.000Z
2021-08-16T10:45:11.000Z
couchjs/scons/scons-local-2.0.1/SCons/Tool/suncc.py
Gussy/bigcouch
9e67d3f754186ce8368503509ae041a2847f2b7c
[ "Apache-2.0" ]
5
2016-04-26T13:19:25.000Z
2017-03-11T14:11:22.000Z
couchjs/scons/scons-local-2.0.1/SCons/Tool/suncc.py
Gussy/bigcouch
9e67d3f754186ce8368503509ae041a2847f2b7c
[ "Apache-2.0" ]
13
2015-03-27T05:21:42.000Z
2017-05-22T11:45:30.000Z
"""SCons.Tool.suncc Tool-specific initialization for Sun Solaris (Forte) CC and cc. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010...
33.559322
95
0.732323
03238b23af745b87b091e3271ca38d4f926a471c
7,796
py
Python
utils.py
abcp4/pt.darts
51acc1d8b5a11c98ee150f59f0cc57e67115d204
[ "MIT" ]
null
null
null
utils.py
abcp4/pt.darts
51acc1d8b5a11c98ee150f59f0cc57e67115d204
[ "MIT" ]
null
null
null
utils.py
abcp4/pt.darts
51acc1d8b5a11c98ee150f59f0cc57e67115d204
[ "MIT" ]
null
null
null
""" Utilities """ import os import logging import shutil import torch import torchvision.datasets as dset import numpy as np import preproc class ImageFolderWithPaths(dset.ImageFolder): """Custom dataset that includes image file paths. Extends torchvision.datasets.ImageFolder """ # override the __geti...
35.598174
124
0.641226
f162a3416c8758227c75b5dd38bc2608f68c396b
2,548
py
Python
code/compute_alignment_graphs.py
Ung0d/NeuroAlign
c73fd6f2d9c2fdb2e627a13ea1c45fb069e36ca4
[ "Apache-2.0" ]
2
2020-04-07T08:51:47.000Z
2021-05-27T15:37:51.000Z
code/compute_alignment_graphs.py
Ung0d/NeuroAlign
c73fd6f2d9c2fdb2e627a13ea1c45fb069e36ca4
[ "Apache-2.0" ]
null
null
null
code/compute_alignment_graphs.py
Ung0d/NeuroAlign
c73fd6f2d9c2fdb2e627a13ea1c45fb069e36ca4
[ "Apache-2.0" ]
null
null
null
import ProcessSeq import numpy as np import argparse import sys sys.path.append('./ProcessSeq') import AnchorSet parser = argparse.ArgumentParser(description='Computes edge sets of alignment graphs for all ref alignments in ./data') parser.add_argument("-r", type=int, default=7, help="the kmer radius") parser.add_argu...
34.90411
119
0.67033
7e3ef36405ea0346006c01bd14fdcfa0dc1b6896
674
py
Python
manage.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
manage.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
manage.py
Hegelim/twitterweather
fb509da7413878d6088d7545fef870e0e721e87a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'twitterweathersite.settings') try: from django.core.management import execute_from_command_line ...
29.304348
82
0.683976
bedfe1aef388638dd63038b36f4300035f9c04e2
3,118
py
Python
tests/integration_test.py
andreasbossard/deutschland
6f561256c707e21f81b54b139b9acb745b901298
[ "Apache-2.0" ]
445
2021-07-26T22:00:26.000Z
2022-03-31T08:31:08.000Z
tests/integration_test.py
andreasbossard/deutschland
6f561256c707e21f81b54b139b9acb745b901298
[ "Apache-2.0" ]
30
2021-07-27T15:42:23.000Z
2022-03-26T16:14:11.000Z
tests/integration_test.py
andreasbossard/deutschland
6f561256c707e21f81b54b139b9acb745b901298
[ "Apache-2.0" ]
28
2021-07-27T10:48:43.000Z
2022-03-26T14:31:30.000Z
import datetime from deutschland.bundesanzeiger import Bundesanzeiger from deutschland.bundesnetzagentur import Rufzeichen from deutschland.bundeswahlleiter import Bundeswahlleiter from deutschland.handelsregister import Handelsregister from deutschland.handelsregister.registrations import Registrations def test_for...
34.644444
87
0.714561
c58dbc51ab6e4ad6ae107937d77db814e335b0bf
5,505
py
Python
lp/ui/marc.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
lp/ui/marc.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
lp/ui/marc.py
edsu/launchpad
7524b4ec0850b19f058cb325749a35f8a1acb194
[ "MIT" ]
null
null
null
""" Extracts selected MARC data to a friendly Python dictionary. """ import os import re import json # turn the 043 codes into human readable strings based on the table list at # http://www.loc.gov/standards/codelists/gacs.xml gacs_file = os.path.join(os.path.dirname(__file__), "gacs.json") gacs_dict = json.loads(o...
37.965517
86
0.534242
a986fdb47a6e65bec96ec2750de60d735e3595e6
6,275
py
Python
synapse/api/constants.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
null
null
null
synapse/api/constants.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
null
null
null
synapse/api/constants.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2017 Vector Creations Ltd # Copyright 2018-2019 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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...
26.588983
88
0.709641
4164affe0236b1b972f280fededd756d1333220a
7,052
py
Python
profiling/timing.py
ElieKadoche/floris
d18f4d263ecabf502242592f9d60815a07c7b89c
[ "Apache-2.0" ]
null
null
null
profiling/timing.py
ElieKadoche/floris
d18f4d263ecabf502242592f9d60815a07c7b89c
[ "Apache-2.0" ]
1
2019-03-02T00:29:12.000Z
2019-03-02T04:59:54.000Z
profiling/timing.py
ElieKadoche/floris
d18f4d263ecabf502242592f9d60815a07c7b89c
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np import time import matplotlib.pyplot as plt import memory_profiler from floris.simulation import Floris from conftest import SampleInputs def time_profile(input_dict): floris = Floris.from_dict(input_dict.floris) start = time.perf_counter() floris.steady_state_atmospheric_c...
35.616162
111
0.643931
4fba405c92cb77187f7a85319721c9abf6cce343
263
py
Python
ifitwala_ed/asset/doctype/stock_ledger_entry/stock_ledger_entry.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
ifitwala_ed/asset/doctype/stock_ledger_entry/stock_ledger_entry.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
ifitwala_ed/asset/doctype/stock_ledger_entry/stock_ledger_entry.py
nbhatti/ifitwala_ed
3e38ebb94c9e7d551b5404344076d6053f2fee21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, ifitwala and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class StockLedgerEntry(Document): pass
23.909091
49
0.779468
aaac6f4a6e0ead0ed207492cbe1c6a1061d32166
14,508
py
Python
sdks/python/apache_beam/typehints/trivial_inference_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2022-01-11T19:43:12.000Z
2022-01-15T15:45:20.000Z
sdks/python/apache_beam/typehints/trivial_inference_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
7
2022-01-04T21:44:54.000Z
2022-03-19T12:42:37.000Z
sdks/python/apache_beam/typehints/trivial_inference_test.py
harrydrippin/beam
4b413bbb5f8807b0f7a284fd818f2772f036fe55
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-15T19:31:54.000Z
2022-01-31T18:54:23.000Z
# # 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 us...
33.739535
80
0.628136
6e65894e2c5b9c175719865cffeb5db73645c7d7
647
py
Python
python/federatedml/nn/backend/pytorch/custom/loss.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
3,787
2019-08-30T04:55:10.000Z
2022-03-31T23:30:07.000Z
python/federatedml/nn/backend/pytorch/custom/loss.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,439
2019-08-29T16:35:52.000Z
2022-03-31T11:55:31.000Z
python/federatedml/nn/backend/pytorch/custom/loss.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,179
2019-08-29T16:18:32.000Z
2022-03-31T12:55:38.000Z
# Copyright 2019 The FATE 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...
34.052632
75
0.741886
133831a0cc29df6a38b856484df9cdb29c102e75
1,525
py
Python
pcat2py/class/26f3b76c-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/26f3b76c-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/26f3b76c-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 26f3b76c-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
40.131579
170
0.615082
98a055ff70c4510f671df57eeae314b5c92fbe86
2,241
py
Python
src/lgr_manage/views/reference_lgr.py
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
null
null
null
src/lgr_manage/views/reference_lgr.py
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
null
null
null
src/lgr_manage/views/reference_lgr.py
GuillaumeBlanchet/lgr-django
429ca5ddb9311cfb1a7ddc906b32d57780585f40
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import views from django.contrib import messages from django.http import HttpResponse from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from django.views.generic.detail import SingleObjectMixin from lgr_models.models import RefLgr from lgr_...
32.955882
95
0.722445
74f783628f7105df40698a9cce9839a701a1fc4d
10,513
py
Python
skylink/skylink.py
enourbakhsh/SkyLink
3fd7d919145344515cc9d8ede90518a234421d51
[ "MIT" ]
null
null
null
skylink/skylink.py
enourbakhsh/SkyLink
3fd7d919145344515cc9d8ede90518a234421d51
[ "MIT" ]
null
null
null
skylink/skylink.py
enourbakhsh/SkyLink
3fd7d919145344515cc9d8ede90518a234421d51
[ "MIT" ]
null
null
null
""" SkyLink """ import numpy as np from astropy.table import Table, vstack from astropy.coordinates import SkyCoord from .fof import fastmatch from busypal import BusyPal import pandas as pd import pickle import os import sys import subprocess import inspect import time import colored as cl import datetime fof_path = i...
42.735772
347
0.648816
a988f522ca866b5f32b089d7ea997f7f4cd5be60
737
py
Python
leetCode/P4_MedianofTwoSortedArrays.py
itsvinayak/cracking_the_codeing_interview
7347f7e831b306c4c4314bd2d41809a5b5741497
[ "MIT" ]
4
2020-07-19T03:49:43.000Z
2021-06-29T07:13:39.000Z
leetCode/P4_MedianofTwoSortedArrays.py
itsvinayak/cracking_the_codeing_interview
7347f7e831b306c4c4314bd2d41809a5b5741497
[ "MIT" ]
1
2020-04-01T06:40:45.000Z
2020-04-01T06:41:22.000Z
leetCode/P4_MedianofTwoSortedArrays.py
itsvinayak/cracking_the_codeing_interview
7347f7e831b306c4c4314bd2d41809a5b5741497
[ "MIT" ]
1
2020-08-14T18:14:04.000Z
2020-08-14T18:14:04.000Z
class Solution: def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float: tempArr = [] i = 0 j = 0 m = len(nums1) n = len(nums2) while i < m and j < n: if nums1[i] < nums2[j]: tempArr.append(nums1[i]) ...
27.296296
83
0.39213
600702bf4a6a35d30d76aabd6c3b2554d5d13a4b
11,859
py
Python
src/azure-cli/azure/cli/command_modules/botservice/bot_json_formatter.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
4
2016-08-23T06:19:01.000Z
2018-03-20T22:47:15.000Z
src/azure-cli/azure/cli/command_modules/botservice/bot_json_formatter.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
120
2018-03-27T19:14:40.000Z
2020-12-10T23:53:35.000Z
src/azure-cli/azure/cli/command_modules/botservice/bot_json_formatter.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
11
2018-08-23T21:31:06.000Z
2020-09-03T21:39:51.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.116379
247
0.633865
b91bf33544ae4ababd27303f149a1d0fd53396d7
3,823
py
Python
tests/examples/market_maker/test_on_chain_market_maker.py
ehanoc/vyper
26403f41bc714d3de32dbab5eacb70ccdaffa2d5
[ "MIT" ]
1
2019-02-21T09:49:52.000Z
2019-02-21T09:49:52.000Z
tests/examples/market_maker/test_on_chain_market_maker.py
LayerXcom/vyper
26403f41bc714d3de32dbab5eacb70ccdaffa2d5
[ "MIT" ]
1
2019-02-22T23:21:51.000Z
2019-02-23T00:46:17.000Z
tests/examples/market_maker/test_on_chain_market_maker.py
LayerXcom/vyper
26403f41bc714d3de32dbab5eacb70ccdaffa2d5
[ "MIT" ]
1
2019-02-18T18:50:53.000Z
2019-02-18T18:50:53.000Z
import pytest @pytest.fixture def market_maker(get_contract): with open('examples/market_maker/on_chain_market_maker.vy') as f: contract_code = f.read() return get_contract(contract_code) TOKEN_NAME = "Vypercoin" TOKEN_SYMBOL = "FANG" TOKEN_DECIMALS = 18 TOKEN_INITIAL_SUPPLY = (21 * 10 ** 6) TOKEN_T...
41.554348
110
0.723516
0f26685d2f63fb290c2569e2a99fd96e88ef0d18
5,829
py
Python
transfer/client.py
IsaPeter/PythonProjects
62885fa6d4180e7b2c83fbb67541dc3fc3e29489
[ "Apache-2.0" ]
null
null
null
transfer/client.py
IsaPeter/PythonProjects
62885fa6d4180e7b2c83fbb67541dc3fc3e29489
[ "Apache-2.0" ]
null
null
null
transfer/client.py
IsaPeter/PythonProjects
62885fa6d4180e7b2c83fbb67541dc3fc3e29489
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/enc python3 import socket, os, json, sys, argparse target_address = '127.0.0.1' target_port = 9999 file_data = {'name':'','size':'','method':''} file_upload = False file_download = False file_name = "" out_fname = "" list_files = False recv_len = 1024 def parsing_arguments(): global target_address, ta...
34.087719
158
0.51381
98dd29ea6a3331b8d79ec8164497be4c9b166f1a
3,386
py
Python
metrics/fvd/score.py
MLIA/srvp
05661faf767cdb33d40fc328679bbe50c3a1f938
[ "Apache-2.0" ]
64
2020-02-24T03:17:39.000Z
2022-03-11T07:40:26.000Z
metrics/fvd/score.py
MLIA/srvp
05661faf767cdb33d40fc328679bbe50c3a1f938
[ "Apache-2.0" ]
12
2020-06-15T07:17:09.000Z
2021-08-23T12:41:51.000Z
metrics/fvd/score.py
MLIA/srvp
05661faf767cdb33d40fc328679bbe50c3a1f938
[ "Apache-2.0" ]
17
2020-02-25T13:01:11.000Z
2022-01-19T04:42:43.000Z
# Copyright 2020 Mickael Chen, Edouard Delasalles, Jean-Yves Franceschi, Patrick Gallinari, Sylvain Lamprier # 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/licens...
37.208791
116
0.654164
a0570fd1126205a0eb670cf64e479e0d3b0a02d4
19,457
py
Python
superset/connectors/elastic/models.py
zuxqoj/incubator-superset
de5972610998d8faf1dfe2036aee07a2ffbc4509
[ "Apache-2.0" ]
null
null
null
superset/connectors/elastic/models.py
zuxqoj/incubator-superset
de5972610998d8faf1dfe2036aee07a2ffbc4509
[ "Apache-2.0" ]
null
null
null
superset/connectors/elastic/models.py
zuxqoj/incubator-superset
de5972610998d8faf1dfe2036aee07a2ffbc4509
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=C,R,W # pylint: disable=invalid-unary-operand-type from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime import json import logging from elasticsearch...
33.316781
89
0.593668
12014f7ed1c19585faa1d319d55dadb538d7ca54
4,344
py
Python
airflow/providers/amazon/aws/example_dags/example_eks_with_fargate_profile.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/providers/amazon/aws/example_dags/example_eks_with_fargate_profile.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/providers/amazon/aws/example_dags/example_eks_with_fargate_profile.py
pyerbiz/airflow
5216e9cbab29edda3d7510c5b7faea7add4ce08e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# 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...
35.317073
104
0.738029
509d77c00473377e4236c16b919d664f9651f9b4
4,264
py
Python
python/ray/tune/config_parser.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "Apache-2.0" ]
1
2018-06-25T08:00:51.000Z
2018-06-25T08:00:51.000Z
python/ray/tune/config_parser.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "Apache-2.0" ]
1
2018-01-26T05:11:04.000Z
2018-01-26T05:11:04.000Z
python/ray/tune/config_parser.py
songqing/ray
166000b089ee15d44635ebca00f12320f51ce587
[ "Apache-2.0" ]
1
2020-10-16T08:42:32.000Z
2020-10-16T08:42:32.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import json from ray.tune import TuneError from ray.tune.result import DEFAULT_RESULTS_DIR from ray.tune.trial import Resources def json_to_resources(data): if data is None or data == "nu...
32.549618
79
0.605535
fd5a25effc5388a0487d34942b144b6890ac6ad3
5,801
py
Python
lib/tests/streamlit/ReportSession_test.py
rajvijay68/streamlit
b94473302f77980ff090ab81fb8a7022388e593e
[ "Apache-2.0" ]
1
2020-03-26T11:38:20.000Z
2020-03-26T11:38:20.000Z
lib/tests/streamlit/ReportSession_test.py
rubmu/streamlit
7f15c0f2cb8711a128d1671d73ff297af45f07c0
[ "Apache-2.0" ]
null
null
null
lib/tests/streamlit/ReportSession_test.py
rubmu/streamlit
7f15c0f2cb8711a128d1671d73ff297af45f07c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2020 Streamlit 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 applicabl...
38.417219
85
0.686433
862948610d114c504ce24b421b7f184206baa0b5
8,318
py
Python
tensorflow/python/kernel_tests/bias_op_test.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
101
2016-12-03T11:40:52.000Z
2017-12-23T02:02:03.000Z
tensorflow/python/kernel_tests/bias_op_test.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
9
2016-12-14T03:27:46.000Z
2017-09-13T02:29:07.000Z
tensorflow/python/kernel_tests/bias_op_test.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
47
2016-12-04T12:37:24.000Z
2018-01-14T18:13:07.000Z
# Copyright 2015 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...
42.438776
80
0.644265
93cd6219fc824ed7050e241badb44b61669b0bb1
9,972
py
Python
mac/google-cloud-sdk/lib/surface/compute/diagnose/export_logs.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/surface/compute/diagnose/export_logs.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/surface/compute/diagnose/export_logs.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. 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 requir...
38.061069
80
0.717308
35d54dd2df8af7d48f462f758fa1bc5e22645121
2,416
py
Python
src/test/python/programmingtheiot/part03/integration/app/DeviceDataManagerWithMqttClientOnly.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
6
2021-06-15T20:30:53.000Z
2022-01-20T20:09:41.000Z
src/test/python/programmingtheiot/part03/integration/app/DeviceDataManagerWithMqttClientOnly.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
null
null
null
src/test/python/programmingtheiot/part03/integration/app/DeviceDataManagerWithMqttClientOnly.py
NULishengZhang/piot-python-components
006674bc42443bb2a843bfd7dfa5b55be9843961
[ "MIT" ]
9
2020-11-19T20:05:44.000Z
2022-02-25T05:17:31.000Z
##### # # This class is part of the Programming the Internet of Things # project, and is available via the MIT License, which can be # found in the LICENSE file at the top level of this repository. # # Copyright (c) 2020 by Andrew D. King # import logging import unittest from time import sleep from programmingthe...
29.463415
105
0.772351
70fd40d70910570216d7a4b381607a86284a5a89
6,500
py
Python
pykt/plugins.py
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
1
2021-05-14T00:40:10.000Z
2021-05-14T00:40:10.000Z
pykt/plugins.py
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
1
2021-07-07T05:29:15.000Z
2021-07-07T05:29:15.000Z
pykt/plugins.py
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
null
null
null
import io import os import ast import functools import re import sys import textwrap from tempfile import NamedTemporaryFile from typing import Callable, Dict, List, Tuple, Union try: from argparse_dataclass import dataclass as ap_dataclass from argparse_dataclass import ArgumentParser except: ArgumentPar...
35.519126
91
0.591231
0849aabaf35496294b60e56c3bd52d900e72fe85
3,208
py
Python
backend/scripts/load_neighborhoods.py
violetaria/saveourfaves-server
f8777b137c2fb8a715afa3408a0a081cec3b93b9
[ "MIT" ]
1
2020-03-26T18:14:51.000Z
2020-03-26T18:14:51.000Z
backend/scripts/load_neighborhoods.py
violetaria/saveourfaves-server
f8777b137c2fb8a715afa3408a0a081cec3b93b9
[ "MIT" ]
2
2020-03-26T19:37:49.000Z
2020-03-27T00:01:26.000Z
backend/scripts/load_neighborhoods.py
violetaria/saveourfaves-server
f8777b137c2fb8a715afa3408a0a081cec3b93b9
[ "MIT" ]
null
null
null
import json import django import sys import os # os.environ['DJANGO_SETTINGS_MODULE'] = 'carebackend.settings.base' sys.path.append(os.path.dirname(__file__) + '/..') django.setup() from places.models import Neighborhood, NeighborhoodEntry, Place, Area from django.contrib.gis.geos import Polygon import pandas as pd fro...
40.1
77
0.619701
04d7c4b2c296579f1473a38f3e38845256f986c5
40,802
py
Python
registry/testcases/functional_testcases/test_service.py
anandrgitnirman/snet-marketplace-service
f31bf741094476b9cb26277f1165deb2856257b1
[ "MIT" ]
14
2019-02-12T09:14:52.000Z
2021-03-11T18:42:22.000Z
registry/testcases/functional_testcases/test_service.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
1,079
2019-01-10T04:31:24.000Z
2022-03-29T06:16:42.000Z
registry/testcases/functional_testcases/test_service.py
prashantramangupta/snet-marketplace-service
7c293054e4b0207deefecc46defd743c064472a4
[ "MIT" ]
20
2018-12-18T13:06:41.000Z
2021-09-17T11:13:01.000Z
import json from datetime import datetime as dt from unittest import TestCase from unittest.mock import patch from uuid import uuid4 from common.constant import StatusCode from registry.application.handlers.service_handlers import create_service from registry.application.handlers.service_handlers import get_daemon_con...
40.438057
206
0.50451
59633741ddc8bb1c0a10e758bccf83f03d85ac65
2,735
py
Python
Assignment_3_chaos_and_pendulums/Pre-GitHub-versions/Phys440_Assignment03_Prob2 (3).py
KayaBaber/Computational-Physics
1117733d33f9035a8e9a137bfdb88478bf477d78
[ "MIT" ]
null
null
null
Assignment_3_chaos_and_pendulums/Pre-GitHub-versions/Phys440_Assignment03_Prob2 (3).py
KayaBaber/Computational-Physics
1117733d33f9035a8e9a137bfdb88478bf477d78
[ "MIT" ]
null
null
null
Assignment_3_chaos_and_pendulums/Pre-GitHub-versions/Phys440_Assignment03_Prob2 (3).py
KayaBaber/Computational-Physics
1117733d33f9035a8e9a137bfdb88478bf477d78
[ "MIT" ]
null
null
null
''' Kaya Baber Physics 440 - Computational Physics Assignment 3 Problem 2 ''' from scipy.integrate import odeint import numpy as np import matplotlib.pyplot as plt import math def f(thetas, t, b, gamma, omega): #pendulum driven-damped function theta=thetas[0] thetaDot=thetas[1] thetaDouble=-b*thetaDot ...
31.079545
151
0.684461
eefcd4d1244008525aa53e3f3d2d021f4b29b40d
4,210
py
Python
locallibrary/settings.py
skupriienko/django_local_library
2bc2b380b806b6d83bd02cafe0370c835f55269b
[ "MIT" ]
null
null
null
locallibrary/settings.py
skupriienko/django_local_library
2bc2b380b806b6d83bd02cafe0370c835f55269b
[ "MIT" ]
null
null
null
locallibrary/settings.py
skupriienko/django_local_library
2bc2b380b806b6d83bd02cafe0370c835f55269b
[ "MIT" ]
null
null
null
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import ...
29.236111
102
0.718527
1f1256410ab8d9acb1d856b473029ce665a7ef85
93
py
Python
backend/.venv/lib/python3.7/enum.py
yszar/flask-vue-case
c8dd46f9b58a51c330aca048b22181f09c7b2782
[ "MIT" ]
2
2019-01-25T18:18:59.000Z
2019-01-28T17:20:59.000Z
backend/.venv/lib/python3.7/enum.py
yszar/flask-vue-case
c8dd46f9b58a51c330aca048b22181f09c7b2782
[ "MIT" ]
19
2018-11-23T06:43:42.000Z
2019-04-28T00:32:47.000Z
backend/.venv/lib/python3.7/enum.py
yszar/flask-vue-case
c8dd46f9b58a51c330aca048b22181f09c7b2782
[ "MIT" ]
1
2020-03-25T09:27:23.000Z
2020-03-25T09:27:23.000Z
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/enum.py
93
93
0.806452
bd9f8d77a2d6eb145b9fa5e877337d0caace1ae2
10,686
py
Python
picknmix/picknmix.py
FarazFe/picknmix
3225b72be177b72036a1404c506f4806e9ca0f37
[ "MIT" ]
null
null
null
picknmix/picknmix.py
FarazFe/picknmix
3225b72be177b72036a1404c506f4806e9ca0f37
[ "MIT" ]
null
null
null
picknmix/picknmix.py
FarazFe/picknmix
3225b72be177b72036a1404c506f4806e9ca0f37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pick n Mix is a simple stacking tool for stacking Sci-Kit learn models of your picks. It provided 2 classes: Layer and Stack. Layer is a parallel combination of models, while Stack combine Layers to create a stacking model""" from copy import deepcopy import numpy as np import warnings impo...
36.223729
138
0.561669
f91ce3bd9ccecbbd09de28d8400de5eedb03ba57
646
py
Python
nomnom/migrations/0011_auto_20200414_1638.py
tluderer/nomnom-server
0cdfe9a6d873d87edda56fad27b8dae99b317ab7
[ "MIT" ]
null
null
null
nomnom/migrations/0011_auto_20200414_1638.py
tluderer/nomnom-server
0cdfe9a6d873d87edda56fad27b8dae99b317ab7
[ "MIT" ]
4
2021-04-14T15:40:03.000Z
2021-04-14T15:40:36.000Z
nomnom/migrations/0011_auto_20200414_1638.py
tluderer/nomnom-server
0cdfe9a6d873d87edda56fad27b8dae99b317ab7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-04-14 16:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nomnom', '0010_auto_20200414_1631'), ] operations = [ migrations.AlterField( model_name='ingredientset', name='amoun...
24.846154
62
0.589783
08b20c4bcadfbb49f301222e13604c78dd4fc6ca
290
py
Python
jaxns/prior_transforms/__init__.py
fehiepsi/jaxns
9cf9366f11ace564e21f938edf4d090fb5de137d
[ "Apache-2.0" ]
null
null
null
jaxns/prior_transforms/__init__.py
fehiepsi/jaxns
9cf9366f11ace564e21f938edf4d090fb5de137d
[ "Apache-2.0" ]
null
null
null
jaxns/prior_transforms/__init__.py
fehiepsi/jaxns
9cf9366f11ace564e21f938edf4d090fb5de137d
[ "Apache-2.0" ]
null
null
null
from jaxns.prior_transforms.common import * from jaxns.prior_transforms.deterministic import * from jaxns.prior_transforms.identifiable import * from jaxns.prior_transforms.levy import * from jaxns.prior_transforms.mixture import * from jaxns.prior_transforms.prior_chain import PriorChain
41.428571
57
0.858621
7466e8138b6f5775e0669ccd61e5f3004e9249a4
35,975
py
Python
evalml/tests/automl_tests/test_iterative_algorithm.py
peterataylor/evalml
917f07845c4a319bb08c7aaa8df9e09623df11c8
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/automl_tests/test_iterative_algorithm.py
peterataylor/evalml
917f07845c4a319bb08c7aaa8df9e09623df11c8
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/automl_tests/test_iterative_algorithm.py
peterataylor/evalml
917f07845c4a319bb08c7aaa8df9e09623df11c8
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch import numpy as np import pandas as pd import pytest from skopt.space import Categorical, Integer, Real from evalml.automl.automl_algorithm import ( AutoMLAlgorithmException, IterativeAlgorithm, ) from evalml.model_family import ModelFamily from evalml.pipelines import ( Bi...
33.747655
123
0.630605
53b44948425c6b3d8fe3277b00d622fee9036796
328
py
Python
pymcbdsc/exceptions.py
ktooi/pymcbdsc
5fccd02adad21ed6e25f955357fc8daad075ae17
[ "MIT" ]
null
null
null
pymcbdsc/exceptions.py
ktooi/pymcbdsc
5fccd02adad21ed6e25f955357fc8daad075ae17
[ "MIT" ]
1
2021-01-22T06:15:55.000Z
2021-01-22T06:15:55.000Z
pymcbdsc/exceptions.py
ktooi/pymcbdsc
5fccd02adad21ed6e25f955357fc8daad075ae17
[ "MIT" ]
null
null
null
class FailureAgreeMeulaAndPpError(Exception): """ MEULA と Privacy Policy への未同意であることを示す例外。 Minecraft Bedrock Edition のサーバをダウンロードする為には、 MEULA と Privacy Policy に同意する必要がありますが、 同意せずにダウンロードしようとした場合にこの例外が Raise します。 TODO: 例外のメッセージに、 MEULA 及び Privacy Policy への同意が必要であるということがわかりやすいメッセージを追加する。 """ ...
27.333333
85
0.756098
34e1ecc8bae9a918d86f5f13887a9ddf8a1e627a
3,155
py
Python
test_helper.py
AndyRae/uk-box-office
b40249ede430e66c2b01a0bbc00b4ab275817bee
[ "MIT" ]
null
null
null
test_helper.py
AndyRae/uk-box-office
b40249ede430e66c2b01a0bbc00b4ab275817bee
[ "MIT" ]
5
2020-05-24T18:57:33.000Z
2022-02-06T13:00:36.000Z
test_helper.py
AndyRae/uk-box-office
b40249ede430e66c2b01a0bbc00b4ab275817bee
[ "MIT" ]
null
null
null
import pytest from unittest.mock import patch, Mock import unittest from datetime import datetime, timedelta import pandas as pd import helper @patch("helper.pd.read_csv") @pytest.mark.parametrize( "test_input,expected", [ ("20TH CENTRUY FOX", "20TH CENTURY FOX",), ("WARNER BROS.", "WARNER BR...
29.485981
86
0.586054
85e46e73e698c388fa96b0566ce69a4957c9da81
2,308
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/JoinResourceGroupRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/JoinResourceGroupRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/JoinResourceGroupRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# 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...
34.969697
76
0.775563
f9e606769c62168b4ef4af5082f00c6aceacb880
5,011
py
Python
docs/conf.py
dhinakg/BitSTAR
f2693c5a0612e58e337511023f8f9e4f25543e33
[ "Apache-2.0" ]
6
2017-04-29T03:45:56.000Z
2018-05-27T02:03:13.000Z
docs/conf.py
dhinakg/BitSTAR
f2693c5a0612e58e337511023f8f9e4f25543e33
[ "Apache-2.0" ]
18
2017-04-12T20:26:05.000Z
2018-06-23T18:11:55.000Z
docs/conf.py
dhinakg/BitSTAR
f2693c5a0612e58e337511023f8f9e4f25543e33
[ "Apache-2.0" ]
16
2017-04-30T05:04:15.000Z
2019-08-15T04:59:09.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Starbot documentation build configuration file, created by # sphinx-quickstart on Fri Mar 31 00:14:27 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
30.005988
79
0.683696
d94bba06b081285a9b011ac112ab365d2868111e
1,377
py
Python
flink-ml-operator/src/test/python/input_output_row.py
rohankumardubey/dl-on-flink
60646aa9520f49619b64e9ff03ce73959e8a3858
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2022-02-03T23:54:10.000Z
2022-02-03T23:54:10.000Z
flink-ml-operator/src/test/python/input_output_row.py
rohankumardubey/dl-on-flink
60646aa9520f49619b64e9ff03ce73959e8a3858
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
flink-ml-operator/src/test/python/input_output_row.py
rohankumardubey/dl-on-flink
60646aa9520f49619b64e9ff03ce73959e8a3858
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
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...
37.216216
75
0.708061
b909bdc1dff1391c8dcfaee628e9b27ccc1ec2b2
420
py
Python
old_code/costum_loss_functions.py
pgruening/dlbio
0c4e468bcd5d7e298fbecba13003bcae36889486
[ "MIT" ]
1
2020-10-08T11:14:48.000Z
2020-10-08T11:14:48.000Z
old_code/costum_loss_functions.py
pgruening/dlbio
0c4e468bcd5d7e298fbecba13003bcae36889486
[ "MIT" ]
5
2020-03-24T18:01:02.000Z
2022-03-12T00:17:24.000Z
old_code/costum_loss_functions.py
pgruening/dlbio
0c4e468bcd5d7e298fbecba13003bcae36889486
[ "MIT" ]
1
2021-11-29T10:31:28.000Z
2021-11-29T10:31:28.000Z
class INetworkLossFunction(object): def __call__(self, y_true, y_pred): raise NotImplementedError class CostumMetric(INetworkLossFunction): def __init__(self, name, mode, func): self.mode = mode self.__name__ = name self.func = func # NOTE: This base code is meant for usi...
26.25
61
0.67619