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
33c551e3be13713e0d89ec3534e197be874ca137
6,904
py
Python
scratchwork/subject_verb_object_extract_test.py
mathurma/KGQA
967cd851f84c73f284aee5fe94f8a3df66d5b638
[ "CC0-1.0" ]
null
null
null
scratchwork/subject_verb_object_extract_test.py
mathurma/KGQA
967cd851f84c73f284aee5fe94f8a3df66d5b638
[ "CC0-1.0" ]
null
null
null
scratchwork/subject_verb_object_extract_test.py
mathurma/KGQA
967cd851f84c73f284aee5fe94f8a3df66d5b638
[ "CC0-1.0" ]
null
null
null
import unittest from subject_verb_object_extract import findSVOs, printDeps, nlp # test the subject/verb/object_extraction class SubjectVerbOjectExtractTest(unittest.TestCase): def __init__(self, methodName: str): unittest.TestCase.__init__(self, methodName) # test def test_svo_1(self): ...
41.095238
185
0.551419
33c55acea8c81452bcccc706d9a5992ed7e9d61f
2,403
py
Python
data_plotter.py
i026e/python_ecg_graph
ed769f0fc49f2ee354350bf27f6d1e440bd3ab66
[ "MIT" ]
null
null
null
data_plotter.py
i026e/python_ecg_graph
ed769f0fc49f2ee354350bf27f6d1e440bd3ab66
[ "MIT" ]
null
null
null
data_plotter.py
i026e/python_ecg_graph
ed769f0fc49f2ee354350bf27f6d1e440bd3ab66
[ "MIT" ]
1
2021-03-12T20:14:36.000Z
2021-03-12T20:14:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Mar 28 09:28:11 2016 @author: pavel """ import global_settings as settings import parameter_types as prm class PlotterSettingsManager(prm.ParameterManager): COLOR_NAME_V = "color A" # for correct values COLOR_NAME_E = "color B" # for wrong value...
35.338235
87
0.623387
33c56a0230f9c19eaffc71358f5af1777ca66ed0
899
py
Python
leetcode/medium/220-Contains_duplicate_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/medium/220-Contains_duplicate_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/medium/220-Contains_duplicate_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #220 """ from typing import List class Solution: def containsNearbyAlmostDuplicate_BF(self, nums: List[int], k: int, t: int) -> bool: if not nums: return False # if target is 0 and array contains no duplicates # this is not possible, as (dup1 - dup2 == 0) ...
24.972222
88
0.565072
33c5b0438cb2127f1b2d6f6287b1a78afa31b247
5,097
py
Python
hyperts/hyper_ts.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
null
null
null
hyperts/hyper_ts.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-08T02:08:58.000Z
2021-12-08T02:08:58.000Z
hyperts/hyper_ts.py
newbei/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-07T01:32:44.000Z
2021-12-07T01:32:44.000Z
# -*- coding:utf-8 -*- """ """ import pickle import numpy as np from sklearn import metrics as sk_metrics from hypernets.dispatchers.in_process_dispatcher import InProcessDispatcher from hypernets.model.estimator import Estimator from hypernets.model.hyper_model import HyperModel from hypernets.utils imp...
39.207692
153
0.655287
33c5cb90628a65f21f565c26193af19965e44d80
1,296
py
Python
test/dom/test_entity.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/test_entity.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/test_entity.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
from TestSuite import EMPTY_NAMESPACE def test(tester): tester.startGroup('Entity') tester.startTest('Testing syntax') try: from xml.dom import Entity from xml.dom.Entity import Entity except: tester.error('Error in syntax', 1) tester.testDone() tester.startTest('Crea...
24.923077
73
0.662037
33c628f746e15bbba163772ff4fb4124d48b52bd
865
py
Python
solutions_automation/threebot/change_location.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
solutions_automation/threebot/change_location.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
solutions_automation/threebot/change_location.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from textwrap import dedent from jumpscale.packages.threebot_deployer.chats.change_location import ThreebotRedeploy from solutions_automation.utils.gedispatch import GedisChatBotPatch class ThreebotChangeLocation(GedisChatBotPatch, ThreebotRedeploy): PASSWORD = "Please enter the 3Bot password." NODE_POLICY =...
34.6
87
0.695954
33c6290a78f408615015ce2ae86fb8464781f4ac
23,391
py
Python
Web/Python/launcher.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
Web/Python/launcher.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
Web/Python/launcher.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import json import logging import os import string import subprocess import sys import time import uuid from random import choice from twisted.internet import reactor, defer from twisted.internet.task import deferLater from twisted.internet.defer import CancelledError from twisted.python import...
36.434579
156
0.529477
33c6342599f4e515b494401f1475f5570baaac9c
682
py
Python
PyXAB/synthetic_obj/Garland.py
WilliamLwj/PyXAB
a95c713090fe875bc557bc7b0e11ab000a921407
[ "MIT" ]
null
null
null
PyXAB/synthetic_obj/Garland.py
WilliamLwj/PyXAB
a95c713090fe875bc557bc7b0e11ab000a921407
[ "MIT" ]
null
null
null
PyXAB/synthetic_obj/Garland.py
WilliamLwj/PyXAB
a95c713090fe875bc557bc7b0e11ab000a921407
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implmentation of Garland """ # Author: Wenjie Li <li3549@purdue.edu> # License: MIT import numpy as np from PyXAB.synthetic_obj.Objective import Objective class Garland(Objective): def __init__(self): self.fmax = 1 def f(self, x): x = x[0] return x * (1-...
16.634146
79
0.589443
33c649c145801f19c277f236b94b4f80fc1c0bb1
2,003
py
Python
properconf/defaults.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
2
2020-09-30T22:41:04.000Z
2020-12-30T12:43:49.000Z
properconf/defaults.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
null
null
null
properconf/defaults.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
null
null
null
DEFAULT_SECRETS = """# ------------------------------------------------------------------- # This is an encrypted config file in YAML language # (https://en.wikipedia.org/wiki/YAML) # # Your can safely store here credentials like API keys and such, # and commit this file to your source version control system. # -------...
21.537634
93
0.582127
33c66682c73008de67b5d3bbde9a2fc00a9a590e
561
py
Python
notebooks/laff/util/onev.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
1
2019-12-27T21:12:29.000Z
2019-12-27T21:12:29.000Z
notebooks/laff/util/onev.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
notebooks/laff/util/onev.py
vishwesh5/Linear-Algebra---LAFF
8d8e711628ff99c544b01c93072f35bf6cb06d1e
[ "MIT" ]
null
null
null
from numpy import matrix from numpy import shape def onev(x): """ Set all components of x to one x can be a row and/or column vectors. """ assert type(x) is matrix and len(x.shape) is 2, \ "laff.onev: vector x must be a 2D numpy.matrix" m_x, n_x = x.shape asser...
23.375
63
0.534759
33c67d811d10da66b67447bf35ddf61ea9bfb927
22,576
py
Python
models/cite/TextANN/train.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
34
2019-02-04T14:57:08.000Z
2022-02-07T13:32:35.000Z
models/cite/TextANN/train.py
syyunn/DeepWTO
0e9f206ec2ce24b1afdf895bc81509dd84235b82
[ "Apache-2.0" ]
3
2020-03-02T05:06:24.000Z
2020-03-06T08:39:18.000Z
models/cite/TextANN/train.py
DeepWTO/deepwto-draft
c61dc02e4ce3e72e8423c712ddc5483f851443f5
[ "Apache-2.0" ]
4
2020-02-17T04:17:12.000Z
2022-02-07T14:27:01.000Z
# -*- coding:utf-8 -*- __author__ = 'Randolph' import os import sys import time import logging import numpy as np import tensorflow as tf from tensorboard.plugins import projector from models.citability.TextANN.model import TextANN from utils import checkpoints from utils import feed from sklearn.metrics import prec...
44.793651
80
0.498538
33c67e3fc77f34e48a1c2643d34d98ad65c3c1e5
31
py
Python
marvelapiwrapper/__init__.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/__init__.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/__init__.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
from .marvel import MarvelAPI
15.5
30
0.806452
33c6944fb6b8415fd7347a03387bfdb5b8a8cc97
495
py
Python
src/flamingo_api_server/pandas_patch.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
src/flamingo_api_server/pandas_patch.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
src/flamingo_api_server/pandas_patch.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
# Solving memory leak problem in pandas # https://github.com/pandas-dev/pandas/issues/2659#issuecomment-12021083 import pandas as pd from ctypes import cdll, CDLL try: cdll.LoadLibrary("libc.so.6") libc = CDLL("libc.so.6") libc.malloc_trim(0) except (OSError, AttributeError): libc = None __old_del = ge...
20.625
72
0.705051
33c6a839f562ad209d3cc97eebadd6f3fc5838f8
510
py
Python
pages/migrations/0007_searchbarinfotext_with_highlight.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
pages/migrations/0007_searchbarinfotext_with_highlight.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
pages/migrations/0007_searchbarinfotext_with_highlight.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# Generated by Django 2.2.3 on 2019-10-02 12:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pages', '0006_make_default_searchtext'), ] operations = [ migrations.AddField( model_name='searchbarinfotext', name=...
26.842105
154
0.65098
33c6af2af2e1169a8e857e5394c3bfe83531357d
1,711
py
Python
thingflow/filters/dispatch.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
38
2017-04-25T12:24:56.000Z
2021-01-12T17:01:43.000Z
thingflow/filters/dispatch.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
4
2017-08-04T22:39:15.000Z
2017-08-07T17:36:21.000Z
thingflow/filters/dispatch.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
14
2017-07-31T21:25:29.000Z
2022-02-06T08:09:07.000Z
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. from thingflow.base import OutputThing, InputThing, filtermethod class Dispatcher(OutputThing, InputThing): """Dispatch rules are a list of (predicate, port) pairs. See the documentation on the dispatch() extension me...
34.918367
76
0.670368
33c6c2e95de483502b30a7a06a5f11515e5932ad
473
py
Python
examples/one/histology/get_probe_trajectory.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
examples/one/histology/get_probe_trajectory.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
examples/one/histology/get_probe_trajectory.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
""" Get all probe trajectory, or filter by provenance, for a given session eID. """ # Author: Olivier Winter from one.api import ONE one = ONE() eid = 'dda5fc59-f09a-4256-9fb5-66c67667a466' # Get all trajectories for the session trajs = one.alyx.rest('trajectories', 'list', session=eid) del trajs # Filter by prove...
22.52381
90
0.735729
33c6c954b78080d73417ab31876fcc4038f5a88a
15,871
py
Python
HDF4_H5_NETCDF/source2.7/Cython/Compiler/Options.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/Options.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/Options.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
# # Cython - Compilation-wide options and pragma declarations # from __future__ import absolute_import class ShouldBeFromDirective(object): known_directives = [] def __init__(self, options_name, directive_name=None, disallow=False): self.options_name = options_name self.directive_name = dir...
35.745495
124
0.670468
33c6c99177c74992d1c8053b38c8e69936155659
1,836
py
Python
examples/cs106a/2-simplepython/graphical/pyramid.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
examples/cs106a/2-simplepython/graphical/pyramid.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2020-02-13T20:56:05.000Z
2020-02-19T18:32:56.000Z
examples/cs106a/2-simplepython/graphical/pyramid.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
#!/usr/bin/env python """CS106A Assignment 2 Example: Pyramid This program draw a pyramid consisting of bricks arranged in horizontal rows. """ from campy.graphics.gwindow import GWindow from campy.graphics.gobjects import GRect # Width of each brick (in pixels). BRICK_WIDTH = 60 # Height of each brick (in pixels). ...
28.6875
79
0.684096
33c73c52631a09ea0fefdeb9467991ae9c04321c
723
py
Python
python/paddle/v2/framework/tests/test_scatter_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_scatter_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/framework/tests/test_scatter_op.py
AI-books/Paddle
5b5f4f514047975ac09ec42b31e46dabf235e7dd
[ "Apache-2.0" ]
1
2020-06-04T04:27:15.000Z
2020-06-04T04:27:15.000Z
import unittest import numpy as np from op_test import OpTest class TestScatterOp(OpTest): def setUp(self): self.op_type = "scatter" ref_np = np.ones((3, 3)).astype("float32") index_np = np.array([1, 2]).astype("int32") updates_np = np.random.random((2, 3)).astype("float32") ...
27.807692
79
0.62379
33c760e8cf656c1c3fa85154e8b99eb3805226ec
43,828
py
Python
tests/test_schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
tests/test_schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
tests/test_schema_dict_util.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test of the utility functions for the schema dictionaries both path finding and easy information extraction """ import pytest import os import numpy as np from masci_tools.io.parsers.fleur.fleur_schema import InputSchemaDict, OutputSchemaDict from masci_tools.util.constants import FLEUR_DEFI...
43.180296
120
0.658848
33c7627aa145c96f14c2ef02714e512c51e9647c
3,936
py
Python
acl_version/src/reflection_based_transfer/train.py
ahclab/reflection
d09fd500e9ff74211e1eb15711d479bb204c7a83
[ "MIT" ]
4
2020-07-14T10:36:30.000Z
2021-04-22T04:20:42.000Z
acl_version/src/reflection_based_transfer/train.py
ahclab/reflection
d09fd500e9ff74211e1eb15711d479bb204c7a83
[ "MIT" ]
null
null
null
acl_version/src/reflection_based_transfer/train.py
ahclab/reflection
d09fd500e9ff74211e1eb15711d479bb204c7a83
[ "MIT" ]
2
2021-02-25T09:19:13.000Z
2021-08-18T09:16:29.000Z
import numpy import argparse import os import json import chainer from chainer import training from chainer.training import extensions from chainer import serializers from chainer import Variable # Reset numpy / cupy seed def reset_seed(seed): #random.seed(seed) numpy.random.seed(seed) if chainer.cuda.av...
33.355932
129
0.641514
33c76e3cc5fee56267aed217f9732a41dc0ecea1
5,939
py
Python
ingestion/functions/parsing/hongkong/hongkong.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
5
2020-04-16T13:54:24.000Z
2020-07-06T13:42:10.000Z
ingestion/functions/parsing/hongkong/hongkong.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
487
2020-04-16T00:56:09.000Z
2020-07-27T09:09:29.000Z
ingestion/functions/parsing/hongkong/hongkong.py
open-covid-data/healthmap-gdo-temp
5af5c9e2f7dcefa9039dc6b3a2e2c5094566fc2e
[ "MIT" ]
null
null
null
import json import os import sys from datetime import datetime import csv import common.ingestion_logging as logging # Layer code, like parsing_lib, is added to the path by AWS. # To test locally (e.g. via pytest), we have to modify sys.path. # pylint: disable=import-error try: import parsing_lib except ImportErro...
32.102703
128
0.526856
33c77b0acd8a36dd80ab300556081d4eb1f2e6e8
3,694
py
Python
experiments/ashvin/icml2020/hand/door/sparse/bc_sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/door/sparse/bc_sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/door/sparse/bc_sweep2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_stacked_path_loader import DictToMDPStackedPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies i...
30.03252
89
0.566053
33c78339493fe87cac8c937ee6d2be5c87a864a5
20,290
py
Python
utils/model/gen_uml.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
utils/model/gen_uml.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
utils/model/gen_uml.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
"""The Gaphor code generator. This file provides the code generator which transforms gaphor/UML/uml2.gaphor into gaphor/UML/uml2.py. Also a distutils tool, build_uml, is provided. Create a UML 2.0 datamodel from the Gaphor model file. To do this we do the following: 1. read the model file with the gaphor parser 2. C...
34.215852
102
0.545343
33c7e0a43032ebb985cbddeb1eff5e3c4abe9089
4,765
py
Python
lib-other/pylib/consensus/custommath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
161
2015-01-11T20:52:37.000Z
2022-02-14T04:44:13.000Z
lib-other/pylib/consensus/custommath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
3
2016-04-21T10:17:06.000Z
2022-01-09T14:38:06.000Z
lib-other/pylib/consensus/custommath.py
endolith/Truthcoin
448b35fb94f27e61f5989ead7ef87e03da2e9237
[ "MIT" ]
40
2015-01-19T16:44:14.000Z
2022-01-09T14:09:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Supporting math for the consensus mechanism. """ from __future__ import division from numpy import * from numpy.linalg import * def WeightedMedian(data, weights): """Calculate a weighted median. Args: data (list or numpy.array): data weights (list...
31.766667
160
0.628541
33c7e603a7453d5a45739936b685a0f39abf7cd5
660
py
Python
moto/kinesisvideo/exceptions.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
moto/kinesisvideo/exceptions.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
moto/kinesisvideo/exceptions.py
pgajdos/moto
9ec0ab45721bbc2f3770c38654d65faa6f562f77
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from moto.core.exceptions import RESTError class KinesisvideoClientError(RESTError): code = 400 class ResourceNotFoundException(KinesisvideoClientError): def __init__(self): self.code = 404 super(ResourceNotFoundException, self).__init__( ...
25.384615
63
0.686364
33c80ee485279f109b52193352466bbb39ad087d
3,057
py
Python
setup.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
setup.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
setup.py
fpcasale/limix
a6bc2850f243fe779991bb53a24ddbebe0ab74d2
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import sys from setuptools import find_packages, setup try: import pypandoc long_description = pypandoc.convert_file("README.md", "rst") except (OSError, IOError, ImportError): long_description = open("README.md").read() def setup_package(): src_pa...
31.84375
72
0.630029
33c82e3fab66a7c45f4c6c5feff3ab99fc522a4b
538
py
Python
invenio_jsonschemas/proxies.py
cernanalysispreservation/invenio-jsonschemas
5eccecbbdb55ee9407008ecece79b3841c7ee42f
[ "MIT" ]
null
null
null
invenio_jsonschemas/proxies.py
cernanalysispreservation/invenio-jsonschemas
5eccecbbdb55ee9407008ecece79b3841c7ee42f
[ "MIT" ]
null
null
null
invenio_jsonschemas/proxies.py
cernanalysispreservation/invenio-jsonschemas
5eccecbbdb55ee9407008ecece79b3841c7ee42f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2017-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Helper proxy to the state object.""" from __future__ import absolute_import, prin...
26.9
72
0.750929
33c85174f8a28ccf79f91430b154ac45da33dfe3
30,608
py
Python
pywick/models/classification/nasnet_mobile.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/classification/nasnet_mobile.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/classification/nasnet_mobile.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
# Source: https://github.com/Cadene/pretrained-models.pytorch/blob/master/pretrainedmodels/models/nasnet_mobile.py (License: BSD-3-Clause) """ NASNet Mobile following the paper: `Learning Transferable Architectures for Scalable Image Recognition <https://arxiv.org/abs/1707.07012>`_ """ # Thanks to Anastasiia (https:/...
46.944785
138
0.673713
33c8706f8418fd26edc99f3eae31d6f6fca7c23e
1,789
py
Python
appengine/monorail/services/test/service_manager_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/services/test/service_manager_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/services/test/service_manager_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Tests for the service_manager module.""" from __future__ import print_function from __future...
39.755556
76
0.818334
33c87d04356af74c4a413bcbfc8be82187e0f4e9
1,989
py
Python
thucvat/urls.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
thucvat/urls.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
thucvat/urls.py
alibaba1233456789/hieu_nguyen123
19728f33eae02cfdaa4d9190d9d3053d4267b992
[ "MIT" ]
null
null
null
"""thucvat URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
42.319149
82
0.706385
33c896e298d79bbd19efa3f04edd11b852097f58
4,037
py
Python
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
cloudcix_metrics/metrics.py
CloudCIX/metrics_cloudcix
4ce4cac2c90e920e5f745bbcf33d54efd34b6b67
[ "Apache-2.0" ]
null
null
null
# python import atexit import logging import subprocess import urllib3 from collections import namedtuple from datetime import datetime from multiprocessing.dummy import Pool as ThreadPool from typing import List, Dict, Callable, Optional, Any # libs import influxdb from cloudcix.conf import settings # Suppress Insec...
30.816794
119
0.680951
33c8bb4f34f3bc3a42b293545fb6ba650dc84931
7,551
py
Python
stage_2_semantic/not_used/utils_cos_onefile.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
2
2019-08-09T00:49:25.000Z
2019-09-30T06:37:07.000Z
stage_2_semantic/not_used/utils_cos_onefile.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
stage_2_semantic/not_used/utils_cos_onefile.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
import argparse import os import sys import random import numpy as np import time from tqdm import tqdm from collections import Counter import math def load_centroids(data_file): centroids = [] count = 0 with open(data_file, 'r') as fin: for line in fin: line = line[:-1].split() ...
35.450704
117
0.540988
33c8c2853cd5347e0760cf44d956f4c1ceb6dc55
557
py
Python
pennsieve/__init__.py
Pennsieve/pennsieve-python
3fa97ed72dcb0ca96958534ac2f7e25631f43ef2
[ "Apache-2.0" ]
2
2021-05-27T00:22:01.000Z
2021-12-04T17:17:16.000Z
pennsieve/__init__.py
Pennsieve/pennsieve-python
3fa97ed72dcb0ca96958534ac2f7e25631f43ef2
[ "Apache-2.0" ]
5
2021-03-29T12:16:06.000Z
2021-04-30T21:42:21.000Z
pennsieve/__init__.py
Pennsieve/pennsieve-python
3fa97ed72dcb0ca96958534ac2f7e25631f43ef2
[ "Apache-2.0" ]
null
null
null
from .client import Pennsieve from .config import DEFAULTS as DEFAULT_SETTINGS from .config import Settings from .models import ( BaseNode, Collection, DataPackage, Dataset, File, LinkedModelProperty, Model, ModelFilter, ModelJoin, ModelProperty, ModelSelect, ModelTemplat...
17.967742
48
0.691203
33c9177a484b9861165763e7b99f502a37e3c3e6
12,226
py
Python
src/crawl/unicrawl/spiders/artevelde_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
4
2021-09-24T16:17:57.000Z
2022-01-31T17:32:16.000Z
src/crawl/unicrawl/spiders/artevelde_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
23
2021-08-02T07:38:47.000Z
2022-02-11T14:16:56.000Z
src/crawl/unicrawl/spiders/artevelde_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
3
2021-11-20T06:06:44.000Z
2022-03-11T07:44:43.000Z
# -*- coding: utf-8 -*- from abc import ABC from pathlib import Path import scrapy from settings import YEAR, CRAWLING_OUTPUT_FOLDER BASE_URL_1 = "https://www.arteveldehogeschool.be/opleidingen/type/bachelor/" \ "type/postgraduaat/type/graduaat/type/bachelor-na-bachelor/categorie/{}" BASE_URL_2 = f"http...
50.106557
111
0.670129
33c925afd6eea4046c1341e2e0e5ab418326824c
172,556
py
Python
tests/scan/test_basic.py
kc611/aesara
6157b6512a6b79538dc03eac12179cf6d0a1b467
[ "BSD-3-Clause" ]
null
null
null
tests/scan/test_basic.py
kc611/aesara
6157b6512a6b79538dc03eac12179cf6d0a1b467
[ "BSD-3-Clause" ]
null
null
null
tests/scan/test_basic.py
kc611/aesara
6157b6512a6b79538dc03eac12179cf6d0a1b467
[ "BSD-3-Clause" ]
null
null
null
""" Questions and notes about scan that should be answered : * Scan seems to do copies of every input variable. Is that needed? answer : probably not, but it doesn't hurt also ( what we copy is aesara variables, which just cary information about the type / dimension of the data) * There is some of sc...
33.755086
95
0.546228
33c92bdd9884d53ebb21d133f9e22ffa50ff9ec2
4,166
py
Python
archetype/domain/footprints/exampleCallLettuce/buildingDMD.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
archetype/domain/footprints/exampleCallLettuce/buildingDMD.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
archetype/domain/footprints/exampleCallLettuce/buildingDMD.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
import lettuce as lt import torch import numpy as np import matplotlib.pyplot as plt import imageio import scipy.io from datetime import datetime import os # Not interactive to prevent trying to spawn a window plt.ioff() # get GPU ID GPUID = os.getenv('GPUID') print(GPUID) deviceName = 'cuda:'+str(GPUID) print(devic...
32.546875
133
0.68963
33c9559a90e5d2f590feb74cd6c62f2b28b1ab2b
3,193
py
Python
savu/plugins/ring_removal/raven_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/ring_removal/raven_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/ring_removal/raven_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
37.127907
78
0.663639
33c957505fa58f36d4ff7d4decd598460c8284a9
13,642
py
Python
src/agents/ppo_agent_stack_4.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
src/agents/ppo_agent_stack_4.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
src/agents/ppo_agent_stack_4.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F import cv2 import time class CNN(torch.nn.Module): def __init__(self, state_space, n_actions, device=torch.device("cpu")): super(CNN, self).__init__() self.device = device self.hidden_neurons = 512 self.stack = 4 ...
41.975385
127
0.596247
33c96c6e9a795354d08ad1a586e6f1e9bf0320b7
2,514
py
Python
models/query_attention.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
models/query_attention.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
models/query_attention.py
snji-khjuria/RelationClassificationFewShotModels
a5047f44a57a81ab3281bf1290fa149a4c456486
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import fewshot_re_kit import torch from torch import autograd, optim, nn from torch.autograd import Variable from torch.nn import functional as F class QueryAttentiveNetwork(fewshot_re_kit.framework.FewShotREModel): def __init__(self, sentence_encoder, hidden_size=230): f...
40.548387
98
0.624901
33c989c4b9c09e0dcaf94298fe5bb4135e284889
6,788
py
Python
scout/server/extensions.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/server/extensions.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/server/extensions.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import copy import json import logging import subprocess from subprocess import CalledProcessError from flask_bootstrap import Bootstrap from flask_debugtoolbar import DebugToolbarExtension from flask_ldap3_login import LDAP3LoginManager from flask_login import LoginManager from flask_mail impo...
27.152
88
0.584414
33c99b1e0a855bd8772425310651e748881842d2
1,677
gyp
Python
content/browser/devtools/devtools.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
content/browser/devtools/devtools.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/browser/devtools/devtools.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'devtools_protocol_handler', 'type': 'none', 'dependencies': [ '../../../third_party/WebKit/S...
32.882353
120
0.553965
33c9aa2fa91626f6b39140210ff01733d11c81bb
18,474
py
Python
src/fastapi_aad_auth/_version.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
29
2020-09-04T08:39:42.000Z
2022-01-21T08:43:48.000Z
src/fastapi_aad_auth/_version.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
86
2020-07-30T20:51:19.000Z
2022-03-30T16:55:24.000Z
src/fastapi_aad_auth/_version.py
Alex-Chekh/fastapi_aad_auth
4ad21fa76e7422da5d0799695bb547cd3e6224e0
[ "MIT" ]
11
2020-10-16T07:17:16.000Z
2022-02-09T17:13:55.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.458733
79
0.584984
33c9ab30a330a18b56dcf199763623f6c901e41c
8,950
py
Python
test/test_list.py
Smarsh/createsend-python
a1bf076d9f664df126aefe421f119c845c9b8cec
[ "MIT" ]
null
null
null
test/test_list.py
Smarsh/createsend-python
a1bf076d9f664df126aefe421f119c845c9b8cec
[ "MIT" ]
null
null
null
test/test_list.py
Smarsh/createsend-python
a1bf076d9f664df126aefe421f119c845c9b8cec
[ "MIT" ]
null
null
null
import unittest import urllib from createsend import * class ListTestCase(unittest.TestCase): def setUp(self): self.api_key = '123123123123123123123' CreateSend.api_key = self.api_key self.client_id = "87y8d7qyw8d7yq8w7ydwqwd" self.list_id = "e3c5f034d68744f7881fdccf13c2daee" self.list = List(s...
48.378378
200
0.735866
33c9b0de6c0e95d5ff0eb5a0e60437ff938e936e
2,027
py
Python
toontown/coghq/DistributedBattleFactory.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedBattleFactory.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedBattleFactory.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.battle.BattleBase import * from toontown.coghq import DistributedLevelBattle from direct.directnotify import DirectNotifyGlobal from toontown.toon import TTEmote from otp.avatar import Emote from toontown.battle i...
41.367347
116
0.745437
33c9cbba8dd857c9cbcaa24cae07068a164265d4
15,148
bzl
Python
lib/apple_support.bzl
erikkerber/apple_support
2ec0ef3eb2954371596fbb1a225fb244fcde31a9
[ "Apache-2.0" ]
null
null
null
lib/apple_support.bzl
erikkerber/apple_support
2ec0ef3eb2954371596fbb1a225fb244fcde31a9
[ "Apache-2.0" ]
null
null
null
lib/apple_support.bzl
erikkerber/apple_support
2ec0ef3eb2954371596fbb1a225fb244fcde31a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.845304
101
0.700092
33c9e10c2d222e915c5f9a751bcb72af1f35454c
19
py
Python
jme/jupy_tools/__version__.py
jmeppley/jupy_tools
822d44fbd336cdd391688e7438ec3ec53debe919
[ "MIT" ]
null
null
null
jme/jupy_tools/__version__.py
jmeppley/jupy_tools
822d44fbd336cdd391688e7438ec3ec53debe919
[ "MIT" ]
1
2020-12-15T21:35:02.000Z
2020-12-15T21:35:02.000Z
jme/jupy_tools/__version__.py
jmeppley/jupy_tools
822d44fbd336cdd391688e7438ec3ec53debe919
[ "MIT" ]
null
null
null
VERSION = '0.0.3a'
9.5
18
0.578947
33ca04aef353d821f10fb04e3315d1f4957898d4
3,711
py
Python
workers/tests/test_linear_scale_range.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
2
2019-12-03T12:49:47.000Z
2020-10-25T20:14:39.000Z
workers/tests/test_linear_scale_range.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
5
2019-12-03T10:32:48.000Z
2020-10-09T13:07:39.000Z
workers/tests/test_linear_scale_range.py
Open-EO/openeo-sentinelhub-python-driver
92f990f098065ffb658eba6dca291dd1d5fc70f2
[ "Apache-2.0" ]
4
2020-03-06T14:51:52.000Z
2020-11-24T10:30:18.000Z
import pytest import sys, os import xarray as xr import numpy as np sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import process from process._common import ProcessArgumentInvalid, ProcessArgumentRequired @pytest.fixture def generate_data(): def _construct( data = [[[[0...
42.170455
186
0.634061
33ca066251c86877d7cbe21e8a766d913b5f8c47
10,195
py
Python
doozerlib/cli/__init__.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
16
2018-11-06T16:49:03.000Z
2021-11-07T19:48:49.000Z
doozerlib/cli/__init__.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
479
2018-11-15T15:37:49.000Z
2022-03-31T08:39:44.000Z
doozerlib/cli/__init__.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
38
2018-11-07T14:33:15.000Z
2021-12-13T13:59:12.000Z
import asyncio import os import sys from functools import update_wrapper import click from doozerlib import dotconfig, version from doozerlib.cli import cli_opts from doozerlib.runtime import Runtime from doozerlib.util import yellow_print CTX_GLOBAL = None pass_runtime = click.make_pass_decorator(Runtime) context_s...
52.015306
168
0.676802
33ca13827465bc5bb4f2fd62780e414001cd37ca
509
py
Python
vyperlogix/django/templates/cached_templates.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/django/templates/cached_templates.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/django/templates/cached_templates.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # http://www.djangosnippets.org/snippets/507/ from django.template import loader from django.conf import settings template_cache = {} original_get_template = loader.get_template def cached_get_template(template_name): global template_cache t = template_cache.get...
28.277778
80
0.762279
33ca25e07d3643b3fa09e88f976433ccebd418fa
5,808
py
Python
hw5.py
yaelgat/hw5
26fe1f06bd598fde4c4d39b5d6047f5018d293e7
[ "Apache-2.0" ]
null
null
null
hw5.py
yaelgat/hw5
26fe1f06bd598fde4c4d39b5d6047f5018d293e7
[ "Apache-2.0" ]
null
null
null
hw5.py
yaelgat/hw5
26fe1f06bd598fde4c4d39b5d6047f5018d293e7
[ "Apache-2.0" ]
null
null
null
import json import pathlib from typing import Union, Tuple import numpy as np import re import pandas as pd from statistics import mean import math import matplotlib as plt class QuestionnaireAnalysis: """ Reads and analyzes data generated by the questionnaire experiment. Should be able to accept strings ...
37.960784
148
0.548726
33ca27bfc7f40c8cf8fdb81c332d9baab2e40800
9,021
py
Python
stoch_driver/parser/_input.py
mobergd/StochasticDiNT
a1d59ff5c21bdf4bb99d87363f3ef3cb745e6251
[ "Apache-2.0" ]
null
null
null
stoch_driver/parser/_input.py
mobergd/StochasticDiNT
a1d59ff5c21bdf4bb99d87363f3ef3cb745e6251
[ "Apache-2.0" ]
null
null
null
stoch_driver/parser/_input.py
mobergd/StochasticDiNT
a1d59ff5c21bdf4bb99d87363f3ef3cb745e6251
[ "Apache-2.0" ]
null
null
null
""" parses the input file for keywords """ from .find import first_capture from .find import all_captures from .pattern import capturing from .pattern import zero_or_more from .pattern import one_or_more from .pattern import series from .pattern import escape from .pattern import NONSPACE from .pattern import SPACE fr...
21.737349
70
0.648043
33ca2cdde980610ea4e340a1124e423569ff9831
10,182
py
Python
hs_app_timeseries/migrations/0005_auto_20160713_1905.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_app_timeseries/migrations/0005_auto_20160713_1905.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_app_timeseries/migrations/0005_auto_20160713_1905.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models import django.contrib.postgres.fields class Migration(migrations.Migration): dependencies = [ ('hs_app_timeseries', '0004_auto_20160526_2026'), ] operations = [ migrations.CreateModel( name='CVAggregationStati...
39.011494
150
0.550579
33ca3e61635312827e31dfa30102024bee5dddfd
214
py
Python
algorithms/1-99/70. Climbing Stairs.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
3
2020-10-28T20:14:30.000Z
2020-11-03T01:27:04.000Z
algorithms/1-99/70. Climbing Stairs.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
null
null
null
algorithms/1-99/70. Climbing Stairs.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
null
null
null
class Solution: def climbStairs(self, n: int) -> int: if n < 2: return 1 prev, curr = 1, 1 for _ in range(n-1): prev, curr = curr, prev + curr return curr
26.75
42
0.476636
33ca7bf98e56d2e4ef5d8c468a9c14505b48dc6f
5,977
py
Python
test/feature_library/test_feature_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
1
2020-10-28T13:12:53.000Z
2020-10-28T13:12:53.000Z
test/feature_library/test_feature_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
test/feature_library/test_feature_library.py
JasonChunZheng/pysindy
a9467c012faef0a7a072cfc2408b37978beb12c4
[ "MIT" ]
null
null
null
""" Unit tests for feature libraries. """ import pytest from scipy.sparse import coo_matrix from scipy.sparse import csc_matrix from scipy.sparse import csr_matrix from sklearn.exceptions import NotFittedError from sklearn.utils.validation import check_is_fitted from pysindy.feature_library import ConcatLibrary from p...
29.014563
85
0.69918
33ca8c483f349311797ca1cdc87a7315ef93e36d
10,780
py
Python
pytorch/eval_onemodel_tta.py
nipeone/dl
5dec328077accc18adac05ffd1ea27cd474b176c
[ "Apache-2.0" ]
null
null
null
pytorch/eval_onemodel_tta.py
nipeone/dl
5dec328077accc18adac05ffd1ea27cd474b176c
[ "Apache-2.0" ]
null
null
null
pytorch/eval_onemodel_tta.py
nipeone/dl
5dec328077accc18adac05ffd1ea27cd474b176c
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 from __future__ import print_function, division import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable from torchvision import models, transforms import time import os,argparse import copy from torch.utils.data import Data...
36.418919
108
0.589147
33ca8f848118fdeeeaa8adc4c0d7a82960f3b506
1,063
py
Python
SMLProject_G3/LRP/converter.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
1
2021-10-10T23:55:37.000Z
2021-10-10T23:55:37.000Z
SMLProject_G3/LRP/converter.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
null
null
null
SMLProject_G3/LRP/converter.py
pourmand1376/statistical-machine-learning-projects
c1ff4057beb4256c4d0a4743bb0e7a9ce44c938f
[ "MIT" ]
null
null
null
import torch from conv import Conv2d from linear import Linear from sequential import Sequential conversion_table = { 'Linear': Linear, 'Conv2d': Conv2d } def convert_vgg(module, modules=None): # First time if modules is None: modules = [] for m in module.childr...
25.926829
84
0.637817
33ca9a71184099f53e4779988bc4ec8de0a0c896
4,781
py
Python
visualization/memory_bptt/critic_gradients_watermaze_2d.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/memory_bptt/critic_gradients_watermaze_2d.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/memory_bptt/critic_gradients_watermaze_2d.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" For the heatmap, I index into the Q function with Q[state, action] """ import argparse import os import re from operator import itemgetter from pathlib import Path import joblib import matplotlib.pyplot as plt import numpy as np import torch from torch.autograd import Variable from rlkit.envs.pygame.water_maze i...
30.259494
84
0.607613
33caf974235c4121785fe0536d19aa07730c181c
7,380
py
Python
data/level/level1047.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level1047.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level1047.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 1047, 'move_count': 25, 'fall_ratio': 0, 'board_info': { (0, 1): { 'prev': (0, -1), 'next': (0, 1), 'base': (2, 1) }, (7, 1): { 'prev': (0, -1), 'next': (0, 1), 'base': (6, 1) ...
22.777778
34
0.194038
33cafdea19a7f2f3bb4fe844c08095327f19508d
35,537
py
Python
train/src/env_v27.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/env_v27.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/env_v27.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """classic Acrobot task""" import sys sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") sys.path.insert(2, "/home/yue/yuetin/collision_surrouding/catkin_workspace/install/lib/python3/dist-packages") # sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") # sys.pat...
41.083237
144
0.543799
33cb2c4e9ebed1f287f1c53f7897912140f8b612
378
py
Python
pandaharvester/harvestercore/cache_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvestercore/cache_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvestercore/cache_spec.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
""" Cache class """ from .spec_base import SpecBase class CacheSpec(SpecBase): # attributes attributesWithTypes = ('mainKey:text', 'subKey:text', 'data:blob', 'lastUpdate:timestamp' ) # constructo...
19.894737
49
0.481481
33cb3cb56010811ddd852b7638cd87df25bdbb8e
12,003
py
Python
cinder/volume/drivers/vmware/datastore.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/vmware/datastore.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/vmware/datastore.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2014 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
38.970779
79
0.583854
33cb3dfeb45c150fc175af5bd4400134ea79f1c4
2,684
py
Python
owtf/api/handlers/session.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/api/handlers/session.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/api/handlers/session.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
""" owtf.api.handlers.session ~~~~~~~~~~~~~~~~~~~~~~ """ import tornado.gen import tornado.httpclient import tornado.web from owtf.api.handlers.base import APIRequestHandler from owtf.lib import exceptions from owtf.managers.session import get_all_session_dicts, get_session_dict, add_session, add_target_to_session, ...
41.292308
121
0.656855
33cb4d000b806020e9573b7696b33b5f3c508a50
14,320
py
Python
SwissKnife/megazord.py
g0bel1n/megazord-backend
b7666610a7732374a381f19f761944b8bce044cb
[ "MIT" ]
1
2021-07-08T14:35:55.000Z
2021-07-08T14:35:55.000Z
SwissKnife/megazord.py
iSab01/megazord
b7666610a7732374a381f19f761944b8bce044cb
[ "MIT" ]
null
null
null
SwissKnife/megazord.py
iSab01/megazord
b7666610a7732374a381f19f761944b8bce044cb
[ "MIT" ]
null
null
null
# The SwissKnife is the center class of our project. It centralizes many of the functions we need. # ToDo LIST : # Early dropout import os import logging import coremltools as ct from tensorflow.keras import layers from tensorflow import nn, keras, data from tensorflow.keras.models import load_model from tensorflow ...
37.291667
139
0.61669
33cb716d46f6fc3201358490eda8528f4941de2c
1,015
py
Python
gmm_train.py
samiemostafavi/conditional-latency-probability-prediction
a196f2db8c6f30f8613797b6a23bffd77a01e1e3
[ "MIT" ]
null
null
null
gmm_train.py
samiemostafavi/conditional-latency-probability-prediction
a196f2db8c6f30f8613797b6a23bffd77a01e1e3
[ "MIT" ]
null
null
null
gmm_train.py
samiemostafavi/conditional-latency-probability-prediction
a196f2db8c6f30f8613797b6a23bffd77a01e1e3
[ "MIT" ]
null
null
null
import numpy as np from pr3d.de import ConditionalGaussianMM from utils import create_dataset dtype = 'float64' # 'float32' or 'float16' gmm_model = ConditionalGaussianMM( centers = 8, x_dim = 3, hidden_sizes = (16,16), dtype = dtype, ) np.random.seed(0) X,Y = create_dataset(n_samples = 10000, x_dim...
26.025641
73
0.646305
33cb7fa6fdd643ae44b9e50f07e30ab9acaa2e91
2,599
py
Python
tools/test_setup.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
35
2016-03-02T06:32:16.000Z
2021-12-17T22:57:22.000Z
tools/test_setup.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
80
2015-12-30T21:55:57.000Z
2021-03-13T10:38:47.000Z
tools/test_setup.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
17
2016-02-19T09:25:39.000Z
2021-12-17T22:57:33.000Z
""" Run this script to verify your setup, checking that: 1) All necessary packages are installed 2) The packages are sufficiently recent 3) User options are specified correctly Links to Windows installs for required packages: ----------------------------------------------- http://www.lfd.uci.edu/~gohlke/pythonlibs/#sh...
25.732673
79
0.662178
33cba07df7776a80c6c3f1d4fa2f24f5824bb338
21,093
py
Python
components/aws/sagemaker/tests/unit_tests/tests/train/test_train_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/sagemaker/tests/unit_tests/tests/train/test_train_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/sagemaker/tests/unit_tests/tests/train/test_train_component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from common.sagemaker_component import SageMakerJobStatus from train.src.sagemaker_training_spec import SageMakerTrainingSpec from train.src.sagemaker_training_component import ( SageMakerTrainingComponent, DebugRulesStatus, ) from tests.unit_tests.tests.train.test_train_spec import TrainingSpecTestCase import ...
38.916974
324
0.57218
33cbadf1a10954434b2c2613b50a91cd75e475fb
8,481
py
Python
docs/conf.py
agodbehere/with-venv
a8e5eeca790f3c6d31189ce22678989a2e78ef2f
[ "0BSD" ]
null
null
null
docs/conf.py
agodbehere/with-venv
a8e5eeca790f3c6d31189ce22678989a2e78ef2f
[ "0BSD" ]
null
null
null
docs/conf.py
agodbehere/with-venv
a8e5eeca790f3c6d31189ce22678989a2e78ef2f
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # with-venv documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # a...
30.728261
76
0.715717
33cbb61cf373760af9699cce5629ee8b3bc2bacb
13,811
py
Python
Baseline/baseline.py
aludi/DRS_parsing
d2beb56c31fa3ef38ebe16d5d1fa0cd27584f6ff
[ "MIT" ]
null
null
null
Baseline/baseline.py
aludi/DRS_parsing
d2beb56c31fa3ef38ebe16d5d1fa0cd27584f6ff
[ "MIT" ]
null
null
null
Baseline/baseline.py
aludi/DRS_parsing
d2beb56c31fa3ef38ebe16d5d1fa0cd27584f6ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re import statistics import nltk from nltk.corpus import wordnet as wn import numpy as np import plotille as pl def download_nltk_packages(): '''Downloads the NLTK packages necessary for this project.''' nltk.download('wordnet', quiet=True) def read_drs_data(file): '''Read...
38.904225
135
0.56455
33cbbf0c340e355abdfaa10e603cc7d1fbb65934
3,308
py
Python
scripts/00_fetch_proteomes.py
cmdoret/Acastellanii_genome_analysis
ae5111597431d1170cee0739c0fa258c97b8e65c
[ "MIT" ]
5
2019-07-29T09:41:12.000Z
2022-02-17T03:10:35.000Z
scripts/00_fetch_proteomes.py
cmdoret/Acastellanii_genome_analysis
ae5111597431d1170cee0739c0fa258c97b8e65c
[ "MIT" ]
null
null
null
scripts/00_fetch_proteomes.py
cmdoret/Acastellanii_genome_analysis
ae5111597431d1170cee0739c0fa258c97b8e65c
[ "MIT" ]
1
2019-12-05T08:19:33.000Z
2019-12-05T08:19:33.000Z
# Download proteome of input organism from NCBI import time import urllib from Bio import Entrez def safe_request(fun): """ Wraps function requesting data to allow safe errors and retry. Parameters ---------- fun : python function The python function that queries a server Ret...
28.517241
82
0.58162
33cbc14791ba8f2f2fe4e09fdcec78f8bf9ca394
3,279
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2017_10_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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 ...
47.521739
125
0.697469
33cbe672532f0c3f94f0904b1acf545c566a891f
1,532
py
Python
pandaharvester/harvesterextractor/aux_extractor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
7
2019-08-30T07:35:48.000Z
2022-02-13T14:46:53.000Z
pandaharvester/harvesterextractor/aux_extractor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
29
2019-09-20T14:04:37.000Z
2021-09-13T12:53:05.000Z
pandaharvester/harvesterextractor/aux_extractor.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
15
2019-07-30T11:48:29.000Z
2022-03-29T21:49:05.000Z
import re from .base_extractor import BaseExtractor # extractor for auxiliary input files class AuxExtractor(BaseExtractor): # constructor def __init__(self, **kwarg): self.containerPrefix = None BaseExtractor.__init__(self, **kwarg) # get auxiliary input files def get_aux_inputs(self...
37.365854
93
0.582898
33cc06886008f1c8457c17bfa5b856d31f962fe6
32,425
py
Python
test/quantization/test_numeric_suite_fx.py
sorenrasmussenai/pytorch
6c65ce8ee14faec577582ecd0e17ba436f32c8b3
[ "Intel" ]
null
null
null
test/quantization/test_numeric_suite_fx.py
sorenrasmussenai/pytorch
6c65ce8ee14faec577582ecd0e17ba436f32c8b3
[ "Intel" ]
null
null
null
test/quantization/test_numeric_suite_fx.py
sorenrasmussenai/pytorch
6c65ce8ee14faec577582ecd0e17ba436f32c8b3
[ "Intel" ]
null
null
null
import copy import math import torch import torch.nn as nn import torch.nn.functional as F from torch.quantization import default_dynamic_qconfig import torch.nn.quantized as nnq toq = torch.ops.quantized from torch.quantization.quantize_fx import ( convert_fx, prepare_fx, prepare_qat_fx, ) from torch.test...
37.791375
90
0.584056
33cc167ff2d0a7ee9e49bd3f61a38b0d34037e67
25,305
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/operations/_certificates_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/operations/_certificates_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/operations/_certificates_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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 ...
40.039557
169
0.664098
33cc17e9e1f52c2eee04454a2b009a9c90c0b6e9
46
py
Python
clerk/__init__.py
newsdev/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
40
2015-08-25T15:01:03.000Z
2020-11-14T09:18:38.000Z
clerk/__init__.py
lennybronner/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
13
2015-08-26T19:24:06.000Z
2017-02-01T03:32:00.000Z
clerk/__init__.py
newsdev/nyt-clerk
2c09c8be80bb6ff034f54e44b085e4248b7531ea
[ "Apache-2.0" ]
4
2015-08-26T04:40:49.000Z
2019-06-20T14:16:49.000Z
from clerk.cli import main __all__ = ['main']
15.333333
26
0.717391
33cc1a3171efdd3d83b18c08e89f73387e1df2fd
1,129
py
Python
pluginsmanager/model/system/system_port_mixing.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
pluginsmanager/model/system/system_port_mixing.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
pluginsmanager/model/system/system_port_mixing.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # 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,...
30.513514
74
0.692648
33cc48c698bbeb1a1decd52f97e794f1e047dc27
380
py
Python
proxyclient/v2/zones.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
proxyclient/v2/zones.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
proxyclient/v2/zones.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
""" zones interface """ from proxyclient import base class Zone(base.Resource): def __repr__(self): return "<Zone: %s>" % self.name class ZoneManager(base.Manager): resource_class = Zone def list(self, detail=False): return self._list('/zones?detail=%s' % detail, 'zones') def get(se...
20
63
0.623684
33cc4f9e969ff038f2f73f4f000fbc0cfcd5d598
1,092
py
Python
app/auth/forms.py
mwroffo/FastCardsOnline
fad98cad41036c6232951d1657a630cd5114c9d5
[ "MIT" ]
null
null
null
app/auth/forms.py
mwroffo/FastCardsOnline
fad98cad41036c6232951d1657a630cd5114c9d5
[ "MIT" ]
2
2018-07-25T01:05:40.000Z
2018-07-26T22:20:56.000Z
app/auth/forms.py
mwroffo/FastCardsOnline
fad98cad41036c6232951d1657a630cd5114c9d5
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import ValidationError, DataRequired, Email, EqualTo from app.models import User class RegistrationForm(FlaskForm): username = StringField('Username', validators=[DataRequired()]) e...
52
98
0.722527
33cc5a38a57308bb3050d3a0b8551fafc1cb9c5e
21,356
py
Python
NavPython/IronPython/Lib/distutils/sysconfig.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
76
2015-12-20T16:56:37.000Z
2021-12-13T09:40:48.000Z
NavPython/IronPython/Lib/distutils/sysconfig.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
8
2016-04-28T23:57:19.000Z
2022-03-02T21:54:02.000Z
NavPython/IronPython/Lib/distutils/sysconfig.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
18
2016-02-26T13:49:18.000Z
2021-11-10T11:15:14.000Z
"""Provide access to Python's configuration information. The specific configuration variables available depend heavily on the platform and configuration. The values may be retrieved using get_config_var(name), and the list of variables is available via get_config_vars().keys(). Additional convenience functions are a...
37.335664
94
0.574546
33cc5e022e00091fad3170abb44a19d2963c0deb
1,314
py
Python
tests/test_hugo.py
CIMAC-CIDC/cidc-taskmanager
f6fcadb06a300c905f88de8879198d6485e6fc6a
[ "MIT" ]
null
null
null
tests/test_hugo.py
CIMAC-CIDC/cidc-taskmanager
f6fcadb06a300c905f88de8879198d6485e6fc6a
[ "MIT" ]
14
2019-03-01T02:35:36.000Z
2019-05-28T18:31:24.000Z
tests/test_hugo.py
CIMAC-CIDC/cidc-taskmanager
f6fcadb06a300c905f88de8879198d6485e6fc6a
[ "MIT" ]
null
null
null
""" Testing for hugo tasks """ from unittest.mock import patch from framework.tasks.hugo_tasks import check_symbols_valid, build_gene_collection def test_build_gene_collection(): """ Test build_gene_collection """ tsv = ( "#\n" + "9606 1 A1BG - A1B|ABG|GAB|HYST2477 " + "MIM:138...
30.55814
98
0.54414
33cc77a66f629b0b91cb02115565a24adc358b3d
1,121
py
Python
projects/02_return_data/02_return_data_complex.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/02_return_data/02_return_data_complex.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/02_return_data/02_return_data_complex.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
from flask import Flask, jsonify import typing app = Flask(__name__) def get_persons() -> typing.List: person_data: typing.List = [] person_1: dict = { "name": "Nils", "location": "Dortmund" } person_2: dict = { "name": "Nicolas", "location": "Dortmund" ...
21.150943
52
0.603925
33cc7cbd47ec489a6dc212d19a5bcdc08375b304
140
py
Python
tests/try_finally_except.py
ZYAZP/python2
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
1,062
2015-11-18T01:04:33.000Z
2022-03-29T07:13:30.000Z
tests/try_finally_except.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
26
2015-11-17T06:58:07.000Z
2022-01-15T18:11:16.000Z
tests/try_finally_except.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
100
2015-11-17T09:01:22.000Z
2021-09-12T13:58:28.000Z
try: try: print 'try 1' assert False finally: print 'finally 1' except AssertionError: print 'except 1'
15.555556
25
0.557143
33cc83c5146e18ac688226f4cebec134c0c52119
4,957
py
Python
biopandas/pdb/tests/test_amino3to1.py
NPalopoli/biopandas
985dbaf06fd19ccd8cd2a81179f8100807792a2a
[ "BSD-3-Clause" ]
1
2020-04-14T16:46:24.000Z
2020-04-14T16:46:24.000Z
biopandas/pdb/tests/test_amino3to1.py
NPalopoli/biopandas
985dbaf06fd19ccd8cd2a81179f8100807792a2a
[ "BSD-3-Clause" ]
null
null
null
biopandas/pdb/tests/test_amino3to1.py
NPalopoli/biopandas
985dbaf06fd19ccd8cd2a81179f8100807792a2a
[ "BSD-3-Clause" ]
null
null
null
# BioPandas # Author: Sebastian Raschka <mail@sebastianraschka.com> # License: BSD 3 clause # Project Website: http://rasbt.github.io/biopandas/ # Code Repository: https://github.com/rasbt/biopandas import numpy as np from biopandas.pdb import PandasPdb import os def test_defaults(): TESTDATA_1t48 = os.path.join...
45.477064
79
0.34537
33cc88fc4ab83a83214c961529b28c978ba1d60f
2,988
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# 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 ...
45.969231
125
0.686747
33ccea5add96490bfd91609744882d69213f9697
997
py
Python
olive/ui/backend/qt/mainwindow/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/ui/backend/qt/mainwindow/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/ui/backend/qt/mainwindow/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
import logging from olive.ui.mainwindow import MainWindowPresenter as _MainWindowPresenter from olive.ui.mainwindow import Portal from ..acquisition import AcquisitionPresenter from ..devicehub import DeviceHubPresenter from ..protoedit import ProtocolEditorPresenter from .view import MainWindowView __all_...
26.236842
83
0.708124
33cceb674fc8996a3e01f3c82a5048620bb20a25
2,129
py
Python
setup.py
datalytyx/pipelinewise
6916b105bf1228945c9ae2988b329d9ddeb806d6
[ "Apache-2.0" ]
null
null
null
setup.py
datalytyx/pipelinewise
6916b105bf1228945c9ae2988b329d9ddeb806d6
[ "Apache-2.0" ]
3
2019-11-04T11:42:22.000Z
2019-12-03T12:15:19.000Z
setup.py
datalytyx/pipelinewise
6916b105bf1228945c9ae2988b329d9ddeb806d6
[ "Apache-2.0" ]
2
2019-11-29T12:30:05.000Z
2019-12-09T13:13:19.000Z
#!/usr/bin/env python from setuptools import find_packages, setup with open('README.md') as f: LONG_DESCRIPTION = f.read() setup(name='pipelinewise', version='0.12.2', description='PipelineWise', long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', autho...
33.265625
119
0.538751
33cd0c5b1fcbb0d030df05b6db0b3bd6930644f8
8,295
py
Python
hw07/dmia/classifiers/logistic_regression.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw07/dmia/classifiers/logistic_regression.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw07/dmia/classifiers/logistic_regression.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
import numpy as np from scipy import sparse class LogisticRegression: def __init__(self): self.w = None self.loss_history = None def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100, batch_size=200, verbose=False): """ Train this classifier using sto...
45.081522
88
0.412297
33cd269952ee730730014d6fb4e47e6b4ba16ef0
12,816
py
Python
runners/sparenet_gan_runner.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
98
2021-03-19T04:34:35.000Z
2022-03-04T20:02:34.000Z
runners/sparenet_gan_runner.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
24
2021-04-12T02:36:10.000Z
2022-03-19T02:39:50.000Z
runners/sparenet_gan_runner.py
zyh16143998882/SpareNet
1391a6828cf330ff32be8f5f3bcf90239b4ff92c
[ "MIT" ]
13
2021-03-23T03:35:09.000Z
2021-12-24T05:45:45.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import torch import random import logging from time import time import utils.misc as um from utils.p2i_utils import N_VIEWS_PREDEFINED from utils.model_init import discriminator_init, renderer_init import cuda.emd.emd_module as emd from...
36.933718
88
0.575218
33cd524d3cb320c47b89ad4ade3147011272c887
672
py
Python
output/cityscape/clean.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2017-08-28T13:13:48.000Z
2017-08-28T13:13:48.000Z
output/cityscape/clean.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
null
null
null
output/cityscape/clean.py
Definiter/Deformable-ConvNets
4a3795795d67b27d39d411bf46c0772208a2d7fa
[ "Apache-2.0" ]
1
2021-11-05T20:44:54.000Z
2021-11-05T20:44:54.000Z
import os for m in os.listdir('.'): if os.path.isdir(m): print m count = [] for f in os.listdir('{}/leftImg8bit_train'.format(m)): if ('params' in f or 'states' in f): count.append(f[-11:-7]) #print '{}/leftImg8bit_train/{}'.format(m, f) c...
37.333333
77
0.491071
33cd525a1af6643e70a9a65e1911672e53c69092
1,763
py
Python
main.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
main.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
main.py
Aggis15/T4NK0R
05d1791e51f50bcb44c56ca936e5a11b7de21fb1
[ "MIT" ]
null
null
null
import logging import discord from discord.ext import commands import json import os from dotenv import load_dotenv import wavelink load_dotenv() # Logging logging.basicConfig( filename="./logs/discordlogs.log", filemode="w", format="%(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger() ...
24.150685
87
0.681225
33cd9a5becebbd064264243a5d2711800238248f
135
py
Python
app/models/last_location.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
app/models/last_location.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
app/models/last_location.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
null
null
null
from pydantic import BaseModel class LastLocation(BaseModel): id: int area: str latitude: float longitude: float
19.285714
31
0.681481
33cdce5a57ae9bddb68d5f708fba70d00a7795b0
29,013
py
Python
evaluation/tools/ud_eval.py
AndyTheFactory/Romanian-Transformers
dd3001ae8c97c1f6c3fc7a1c755787f98b46152f
[ "MIT" ]
55
2020-04-20T19:11:45.000Z
2022-02-19T15:46:29.000Z
evaluation/tools/ud_eval.py
AndyTheFactory/Romanian-Transformers
dd3001ae8c97c1f6c3fc7a1c755787f98b46152f
[ "MIT" ]
1
2020-12-10T12:56:10.000Z
2020-12-11T14:15:17.000Z
evaluation/tools/ud_eval.py
AndyTheFactory/Romanian-Transformers
dd3001ae8c97c1f6c3fc7a1c755787f98b46152f
[ "MIT" ]
5
2020-04-29T18:20:23.000Z
2022-03-07T20:29:43.000Z
#!/usr/bin/env python3 # Compatible with Python 2.7 and 3.2+, can be used either as a module # or a standalone executable. # # Copyright 2017, 2018 Institute of Formal and Applied Linguistics (UFAL), # Faculty of Mathematics and Physics, Charles University, Czech Republic. # # This Source Code Form is subject to the t...
47.484452
163
0.588943
33cdd9c285526484ec8954e6dcec64331b4d3416
63
py
Python
paranoidsessions/models.py
mdineen/django-paranoid-sessions
3f0107d36dcc1411d141c895775e51a23e42c593
[ "MIT" ]
2
2017-03-10T23:22:07.000Z
2019-10-10T01:13:16.000Z
paranoidsessions/models.py
mdineen/django-paranoid-sessions
3f0107d36dcc1411d141c895775e51a23e42c593
[ "MIT" ]
2
2018-02-25T01:53:35.000Z
2018-02-25T01:53:44.000Z
paranoidsessions/models.py
mdineen/django-paranoid-sessions
3f0107d36dcc1411d141c895775e51a23e42c593
[ "MIT" ]
3
2015-02-20T06:16:19.000Z
2016-02-24T23:37:02.000Z
# No models, just need to convince Django I'm a legitimate app
31.5
62
0.761905
33cdf91166afd975166636697dfd1033713d830f
614
py
Python
tql/utils/config/timer.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/utils/config/timer.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/utils/config/timer.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : timer # @Time : 2019-06-20 11:26 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : import time from contextlib import contextmanager from .. import cprint @co...
26.695652
92
0.614007
33ce03d4a9ee364e4d41a5b98c587ac610bcec91
400
py
Python
expfactory_deploy/experiments/migrations/0012_repoorigin_name.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/experiments/migrations/0012_repoorigin_name.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
31
2021-03-08T21:30:47.000Z
2022-03-01T12:09:09.000Z
expfactory_deploy/experiments/migrations/0012_repoorigin_name.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-11-17 22:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('experiments', '0011_auto_20211029_1829'), ] operations = [ migrations.AddField( model_name='repoorigin', name='name'...
21.052632
60
0.605
33ce2648fa70989b93d414c4714fc2aff6937085
2,171
py
Python
tests/trinity/core/p2p-proto/test_node_data_request_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
tests/trinity/core/p2p-proto/test_node_data_request_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2019-04-30T06:22:12.000Z
2019-06-14T04:27:18.000Z
tests/trinity/core/p2p-proto/test_node_data_request_object.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2019-09-05T01:31:56.000Z
2019-09-17T09:09:16.000Z
import os import random import pytest from eth_utils import ( keccak, ValidationError, ) from trinity.protocol.eth.validators import GetNodeDataValidator def mk_node(): node_length = random.randint(0, 2048) node = os.urandom(node_length) return node def mk_node_data(n): if n == 0: ...
27.833333
76
0.739751
33ce2c5011efecaeed9583a7e80c76cd161dd621
2,680
py
Python
qnarre/prep/config/led.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/config/led.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/config/led.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.924051
103
0.593284
33ce366363e98d4cd038c0f93654dbe8e228fb90
5,556
py
Python
analysis_scripts/macros/fiji_z_align1.py
SpeerLab/STORM-UI-
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
1
2021-12-03T11:59:40.000Z
2021-12-03T11:59:40.000Z
analysis_scripts/macros/fiji_z_align1.py
SpeerLab/STORM-UI
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
null
null
null
analysis_scripts/macros/fiji_z_align1.py
SpeerLab/STORM-UI
232752dfa11e0fd2f4fda9fe0db36ac3ceb953d3
[ "MIT" ]
null
null
null
import os, re, time import glob from ini.trakem2 import ControlWindow, Project from ini.trakem2.display import Display, Patch, LayerSet from java.awt import Color from ij import IJ import math from ij.process import ImageStatistics as IS from ij import Prefs from ij import ImagePlus argv = getArgument() arg_array =...
32.115607
128
0.695824
33ce47368641dc143038b03dd15f2a6553fa1898
3,858
py
Python
extensions/iocompython/examples/ispy/iodevice.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
extensions/iocompython/examples/ispy/iodevice.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
extensions/iocompython/examples/ispy/iodevice.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
from kivy.config import ConfigParser import json from panel import Panel from iocompython import Root, MemoryBlock, bin2json # Size excludes signal state byte. osal_typeinfo = { "undef" : 0, "boolean" : 1, "char" : 1, "uchar" : 1, "short" : 2, "ushort" : 2, "int" : 4, "uint" : 4, ...
28.791045
89
0.571021
33ce546d6790ef2628277d11ea3698960c787f56
4,707
py
Python
wimp/xsec/SDNormalization.py
lopez86/WimpSim
096cf9f3e3e3d8e4552418a9f4f690593d099160
[ "MIT" ]
2
2020-09-25T10:48:24.000Z
2020-12-29T19:56:04.000Z
wimp/xsec/SDNormalization.py
lopez86/WimpSim
096cf9f3e3e3d8e4552418a9f4f690593d099160
[ "MIT" ]
1
2017-06-12T01:12:15.000Z
2017-06-17T06:33:16.000Z
wimp/xsec/SDNormalization.py
lopez86/PyWIMPs
096cf9f3e3e3d8e4552418a9f4f690593d099160
[ "MIT" ]
null
null
null
""" SDNormalization.py Normalize a nuclear cross section to a nucleon cross section. """ __author__ = "Jeremy P. Lopez" __date__ = "June 2017" __copyright__ = "(c) 2017, Jeremy P. Lopez" import numpy as np class SDNormalization: """ Class to normalize a spin-dependent cross section to a...
32.462069
86
0.534523