hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1599c7d689bdb23980abc965d7263008352328
3,443
py
Python
nfnets/utils.py
bruinxiong/deepmind-research
4899440e3eb2dee9335c469c7f01aadcbf21cc72
[ "Apache-2.0" ]
1
2021-02-15T04:50:04.000Z
2021-02-15T04:50:04.000Z
nfnets/utils.py
bruinxiong/deepmind-research
4899440e3eb2dee9335c469c7f01aadcbf21cc72
[ "Apache-2.0" ]
null
null
null
nfnets/utils.py
bruinxiong/deepmind-research
4899440e3eb2dee9335c469c7f01aadcbf21cc72
[ "Apache-2.0" ]
1
2021-05-20T15:43:47.000Z
2021-05-20T15:43:47.000Z
# Copyright 2020 DeepMind Technologies Limited. 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 ...
31.87963
111
0.683706
4a1599c9df8991429c3206b0cb723f6a2d475331
1,171
py
Python
google-cloud-sdk/lib/surface/dataproc/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/lib/surface/dataproc/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/dataproc/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
27.232558
74
0.740393
4a1599da7bd38d6aeab01b9d322691d80b5c212a
17,674
py
Python
Software/MOTsc/TrackingKernel/tracker.py
liu-mengyang/MOTinAR
209412346841f2ac69b0e38a3502c9c728309752
[ "MIT" ]
3
2021-09-19T13:49:46.000Z
2021-12-13T12:41:29.000Z
Software/MOTsc/TrackingKernel/tracker.py
liu-mengyang/MOTinAR
209412346841f2ac69b0e38a3502c9c728309752
[ "MIT" ]
null
null
null
Software/MOTsc/TrackingKernel/tracker.py
liu-mengyang/MOTinAR
209412346841f2ac69b0e38a3502c9c728309752
[ "MIT" ]
null
null
null
import numpy as np from numba import jit from collections import deque import itertools import os import os.path as osp import time import torch import cv2 import csv import torch.nn.functional as F import ctypes from .build_model import build_fairmot, load_model from .fairmot.models.decode import mot_decode from .fai...
36.441237
115
0.59596
4a1599e6ba4dc1e64fcf7d970ba0ace1bfd128c6
7,027
py
Python
plotting.py
LiveActionCactus/quadcopter_simulation_python
f457835b4de4c418323dc8be1b21f52d05ef3e07
[ "MIT" ]
null
null
null
plotting.py
LiveActionCactus/quadcopter_simulation_python
f457835b4de4c418323dc8be1b21f52d05ef3e07
[ "MIT" ]
null
null
null
plotting.py
LiveActionCactus/quadcopter_simulation_python
f457835b4de4c418323dc8be1b21f52d05ef3e07
[ "MIT" ]
null
null
null
# Creates and visual animation of quadcopter state information # # By: Patrick Ledzian # Date: 18 Apr 2020 """ Creates and plays an animation of a 13-state quadcopter simulation. Works along with the quadcopter class descriptor found in quadcopter.py. """ # External Libraries import numpy as np import matplotlib.pypl...
44.194969
154
0.612637
4a159a2173099b23d5b06695e800eee68088490c
87
py
Python
pymatex/listener/__init__.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
1
2019-03-05T09:45:04.000Z
2019-03-05T09:45:04.000Z
pymatex/listener/__init__.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
null
null
null
pymatex/listener/__init__.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
null
null
null
from pymatex.listener.MatexAST import * from pymatex.listener.MatexASTVisitor import *
29
46
0.83908
4a159b973ca74513c45d8ba32b02c0973c115e75
11,116
py
Python
pyramid_autodoc/__init__.py
mfaraji/pyramid_autodoc
2f527f886309a1266befec8551bd9eb1bba2b6fe
[ "MIT" ]
null
null
null
pyramid_autodoc/__init__.py
mfaraji/pyramid_autodoc
2f527f886309a1266befec8551bd9eb1bba2b6fe
[ "MIT" ]
null
null
null
pyramid_autodoc/__init__.py
mfaraji/pyramid_autodoc
2f527f886309a1266befec8551bd9eb1bba2b6fe
[ "MIT" ]
null
null
null
""" Sphinx extension that is able to convert pyramid routes to rst """ import sys import docutils from docutils import nodes from docutils.parsers.rst import Directive, directives from pyramid.compat import PY3 from pyramid.compat import string_types from pyramid.config import Configurator from pyramid.scripting impor...
32.887574
79
0.574307
4a159b9a6ef32abab9b6c2226c8757dec82b701c
15,056
py
Python
pylinkvalidator/included/bs4/__init__.py
airsource/pylinkvalidator
5a52fea64ecdb867a3390a97c023765265d88d23
[ "MIT" ]
127
2015-07-06T03:19:23.000Z
2022-03-14T18:34:11.000Z
pylinkvalidator/included/bs4/__init__.py
airsource/pylinkvalidator
5a52fea64ecdb867a3390a97c023765265d88d23
[ "MIT" ]
32
2015-07-06T03:18:46.000Z
2020-12-14T13:14:23.000Z
pylinkvalidator/included/bs4/__init__.py
airsource/pylinkvalidator
5a52fea64ecdb867a3390a97c023765265d88d23
[ "MIT" ]
36
2015-08-06T18:44:53.000Z
2022-01-09T12:38:29.000Z
"""Beautiful Soup Elixir and Tonic "The Screen-Scraper's Friend" http://www.crummy.com/software/BeautifulSoup/ Beautiful Soup uses a pluggable XML or HTML parser to parse a (possibly invalid) document into a tree representation. Beautiful Soup provides provides methods and Pythonic idioms that make it easy to navigate...
38.506394
236
0.577378
4a159c7c8e03ac2eb75917f26c9e8af6b26ad772
73
py
Python
variables/prodna/__init__.py
rohithasrk-bidgely/cloudformation-config-generation
d72d362c77b220169b3ccdd0b4a921910f7172ff
[ "MIT" ]
null
null
null
variables/prodna/__init__.py
rohithasrk-bidgely/cloudformation-config-generation
d72d362c77b220169b3ccdd0b4a921910f7172ff
[ "MIT" ]
9
2018-07-09T08:46:12.000Z
2018-07-18T09:13:03.000Z
variables/uat/__init__.py
rohithasrk-bidgely/cloudformation-config-generation
d72d362c77b220169b3ccdd0b4a921910f7172ff
[ "MIT" ]
null
null
null
from .alarms import * from .variables import * from .components import *
18.25
25
0.753425
4a159c85bface6caa59de79899ee31ba519f4e35
939
py
Python
test-framework/test-suites/integration/tests/add/test_add_host_storage_partition.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/add/test_add_host_storage_partition.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/add/test_add_host_storage_partition.py
kmcm0/stacki
eb9dff1b45d5725b4986e567876bf61707fec28f
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import json from textwrap import dedent class TestAddHostStoragePartition: def test_no_args(self, host): result = host.run('stack add host storage partition') assert result.rc == 255 assert result.stderr == dedent('''\ error - "host" argument is required {host ...} {device=string} {size=integer} [mountpo...
28.454545
112
0.669862
4a159cdb863f3c2858a164495f57265fbd256df6
2,514
py
Python
torch/package/_file_structure_representation.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
1
2021-06-17T13:02:45.000Z
2021-06-17T13:02:45.000Z
torch/package/_file_structure_representation.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
null
null
null
torch/package/_file_structure_representation.py
vladap2013/pytorch
30367773056de95e006107d82ddaa3db5eeaa05a
[ "Intel" ]
null
null
null
from typing import Dict, List from ._glob_group import GlobPattern, _GlobGroup class Folder: def __init__(self, name: str, is_dir: bool): self.name = name self.is_dir = is_dir self.children: Dict[str, Folder] = {} def get_folder(self, folders: List[str]): # builds path of fol...
31.822785
79
0.58393
4a159d561b6ac457c93509b276e83b469b8ca496
766
py
Python
setup.py
kurgm/gwv
1a5cd57481c6312ebbb9a99e45b302f82a5e0e92
[ "MIT" ]
1
2020-01-16T16:56:00.000Z
2020-01-16T16:56:00.000Z
setup.py
kurgm/gwv
1a5cd57481c6312ebbb9a99e45b302f82a5e0e92
[ "MIT" ]
3
2017-12-21T13:30:25.000Z
2020-03-12T14:46:07.000Z
setup.py
kurgm/gwv
1a5cd57481c6312ebbb9a99e45b302f82a5e0e92
[ "MIT" ]
null
null
null
from distutils.command.build import build from setuptools import find_packages from setuptools import setup from gwv import __version__ class my_build(build): def _pre_build(self): import bdat bdat.main() def run(self): self._pre_build() build.run(self) setup( name="gw...
19.15
51
0.55483
4a159dd05c9b321fa7b6e82f2c2dee8ae9f495ae
1,902
py
Python
GameDriver.py
m4rquee/ai-dino
0d1be7676246166c25c5b52554724766ea0e96a9
[ "MIT" ]
1
2019-02-15T15:57:04.000Z
2019-02-15T15:57:04.000Z
GameDriver.py
m4rquee/ai-dino
0d1be7676246166c25c5b52554724766ea0e96a9
[ "MIT" ]
null
null
null
GameDriver.py
m4rquee/ai-dino
0d1be7676246166c25c5b52554724766ea0e96a9
[ "MIT" ]
null
null
null
import time import pyscreenshot as ImageGrab from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys class GameDriver(webdriver.Chrome): def __init__(self, executable_path='./chromedriver'): self.keys = [Keys.ARROW_UP, Keys.ARROW_DOWN, Key...
32.237288
89
0.659306
4a159dfdab315b704764997a7b5592735df9c44e
34,803
py
Python
pylxd/tests/mock_lxd.py
surfernsk/pylxd
8f641f2381f10b671854899da909a459485e57c3
[ "Apache-2.0" ]
247
2015-05-26T21:39:38.000Z
2022-03-23T23:56:12.000Z
pylxd/tests/mock_lxd.py
surfernsk/pylxd
8f641f2381f10b671854899da909a459485e57c3
[ "Apache-2.0" ]
417
2015-05-31T12:57:55.000Z
2022-03-28T14:35:09.000Z
pylxd/tests/mock_lxd.py
surfernsk/pylxd
8f641f2381f10b671854899da909a459485e57c3
[ "Apache-2.0" ]
170
2015-05-31T11:10:59.000Z
2022-01-18T01:36:17.000Z
import json def instances_POST(request, context): context.status_code = 202 return json.dumps( {"type": "async", "operation": "/1.0/operations/operation-abc?project=default"} ) def instance_POST(request, context): context.status_code = 202 if not request.json().get("migration", False): ...
29.950947
121
0.410367
4a159e631ad1abd365562bf10e8180b2e0b0aca4
149
py
Python
tests/__init__.py
tom-andersson/neuralprocesses
7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd
[ "MIT" ]
null
null
null
tests/__init__.py
tom-andersson/neuralprocesses
7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd
[ "MIT" ]
null
null
null
tests/__init__.py
tom-andersson/neuralprocesses
7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd
[ "MIT" ]
null
null
null
import os import sys # Add package to path. file_dir = os.path.dirname(__file__) sys.path.insert(0, os.path.abspath(os.path.join(file_dir, "..")))
18.625
65
0.718121
4a159e943e79c5d8a77b1e703c0cfbebb16473a5
3,342
py
Python
utils.py
WebVision-Capstone/WebVision-Cap
7ccdf5403b79cc51e061918623ce2c4b4c996c19
[ "MIT" ]
null
null
null
utils.py
WebVision-Capstone/WebVision-Cap
7ccdf5403b79cc51e061918623ce2c4b4c996c19
[ "MIT" ]
null
null
null
utils.py
WebVision-Capstone/WebVision-Cap
7ccdf5403b79cc51e061918623ce2c4b4c996c19
[ "MIT" ]
1
2020-12-12T16:02:06.000Z
2020-12-12T16:02:06.000Z
"""General utilities """ from typing import List import argparse import matplotlib.pyplot as plt import tensorflow as tf def plot_accuracy_loss(history: tf.keras.callbacks.History, acc_items: List[str], loss_items: List[str]): """Plot accuracy metrics and loss metric...
31.828571
77
0.413226
4a159f02de7df1fdc5bf9310361fc07206411688
992
py
Python
src/sima/post/internalpressuredesignfactor.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/post/internalpressuredesignfactor.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/post/internalpressuredesignfactor.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with InternalPressureDesignFactor # from enum import Enum from enum import auto class InternalPressureDesignFactor(Enum): """""" DESIGN_PRESSURE = auto() INCIDENTAL_PRESSURE = auto() PRODUCTION_CASING_WITH_TUBING_LEAK = auto() DRILLING_RISER_WITH_EXTREME_PRESSURE = auto() HYDROSTAT...
41.333333
85
0.714718
4a15a09b0f77eebdf2eedf1c29b20842020da231
6,158
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_softmax.py
2742195759/Paddle
ce034db1834af85539b22ab68492df9972ff3e69
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_softmax.py
2742195759/Paddle
ce034db1834af85539b22ab68492df9972ff3e69
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_softmax.py
2742195759/Paddle
ce034db1834af85539b22ab68492df9972ff3e69
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2021 PaddlePaddle 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...
38.974684
84
0.546281
4a15a10fa8c5130896fdfcba79f7d483e04013ea
15,584
py
Python
tests/rule_based_profiler/parameter_builder/test_parameter_container.py
pinsleepe/great_expectations
37329c906a5a159b54257dbcd897850177eecbcc
[ "Apache-2.0" ]
null
null
null
tests/rule_based_profiler/parameter_builder/test_parameter_container.py
pinsleepe/great_expectations
37329c906a5a159b54257dbcd897850177eecbcc
[ "Apache-2.0" ]
null
null
null
tests/rule_based_profiler/parameter_builder/test_parameter_container.py
pinsleepe/great_expectations
37329c906a5a159b54257dbcd897850177eecbcc
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List from great_expectations.execution_engine.execution_engine import MetricDomainTypes from great_expectations.rule_based_profiler.types import ( Domain, ParameterContainer, build_parameter_container, build_parameter_container_for_variables, get_fully_qualified_parame...
32.198347
99
0.462718
4a15a1babdcb7c77cf47122ef92fc9ad911f3d74
901
py
Python
python/src/main/python/pyalink/alink/tests/examples/operator/batch/test_lasso_reg.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/operator/batch/test_lasso_reg.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/operator/batch/test_lasso_reg.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np import pandas as pd from pyalink.alink import * class TestYuhe(unittest.TestCase): def test_lasso_reg_op(self): data = np.array([ [2, 1, 1], [3, 2, 1], [4, 3, 2], [2, 4, 1], [2, 2, 1], [4, 3, 2], ...
28.15625
99
0.507214
4a15a1d218b7406ee26d7ab656bc06e27087fb41
3,540
py
Python
arcade/earclip_module.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
1
2020-01-18T04:48:38.000Z
2020-01-18T04:48:38.000Z
arcade/earclip_module.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
null
null
null
arcade/earclip_module.py
markjoshua12/arcade
74a8012a001229cee677acbf2a285ef677c8b691
[ "MIT" ]
null
null
null
""" from: https://github.com/linuxlewis/tripy/blob/master/tripy.py """ from collections import namedtuple Point = namedtuple('Point', ['x', 'y']) def earclip(polygon): """ Simple earclipping algorithm for a given polygon p. polygon is expected to be an array of 2-tuples of the cartesian points of the p...
31.052632
120
0.591243
4a15a1edd9e9b860f6dcbd13ac78aba5b2cf676b
786
py
Python
examples/MNISTDemo.py
anjapago/pyTsetlinMachine
74ab0f4bed8620899ac371ac930ddbab50463b96
[ "MIT" ]
101
2019-06-14T13:03:28.000Z
2022-03-20T17:01:44.000Z
examples/MNISTDemo.py
anjapago/pyTsetlinMachine
74ab0f4bed8620899ac371ac930ddbab50463b96
[ "MIT" ]
6
2019-09-17T06:30:37.000Z
2021-07-30T00:12:46.000Z
examples/MNISTDemo.py
anjapago/pyTsetlinMachine
74ab0f4bed8620899ac371ac930ddbab50463b96
[ "MIT" ]
28
2019-06-14T12:59:51.000Z
2022-03-13T21:43:10.000Z
from pyTsetlinMachine.tm import MultiClassTsetlinMachine import numpy as np from time import time from keras.datasets import mnist (X_train, Y_train), (X_test, Y_test) = mnist.load_data() X_train = np.where(X_train.reshape((X_train.shape[0], 28*28)) > 75, 1, 0) X_test = np.where(X_test.reshape((X_test.shape[0], 28*...
31.44
135
0.71883
4a15a237314356cad80f58f570300b1228038e00
708
py
Python
audiovisual/indico_audiovisual/views.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
audiovisual/indico_audiovisual/views.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
audiovisual/indico_audiovisual/views.py
plourenco/indico-plugins-cern
5be71a552825afdd93a3bc7e7141335b8559c41a
[ "MIT" ]
null
null
null
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.core.plugins i...
30.782609
65
0.785311
4a15a24fb59621e1303318d22788608bb02ae4d8
1,782
py
Python
tests/image/convolution_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
1
2021-01-11T18:34:39.000Z
2021-01-11T18:34:39.000Z
tests/image/convolution_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
tests/image/convolution_test.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
# pylint: disable=not-callable, no-member, invalid-name, line-too-long, wildcard-import, unused-wildcard-import, missing-docstring, protected-access import pytest import torch from e3nn import rs from e3nn.image.convolution import Convolution @pytest.mark.parametrize('fuzzy_pixels', [False, True]) def test_equivaria...
27
148
0.59596
4a15a2cb792fd88a139b1cd0f34c72ac58e66737
2,155
py
Python
examples/adwords/v201806/basic_operations/remove_keyword.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
2
2019-07-11T13:01:56.000Z
2019-07-11T13:01:58.000Z
examples/adwords/v201806/basic_operations/remove_keyword.py
SoungMo/googleads-python-lib
fe86335c416e0571328c0a481c4b0cff863c01d9
[ "Apache-2.0" ]
null
null
null
examples/adwords/v201806/basic_operations/remove_keyword.py
SoungMo/googleads-python-lib
fe86335c416e0571328c0a481c4b0cff863c01d9
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
31.691176
77
0.697448
4a15a352db763b40def66f138c7d0ce317ec0ab2
4,541
py
Python
plex_mpv_shim/utils.py
romosborne/plex-mpv-shim
a454459e6a5b584f40841331604c8bfdf26d6c51
[ "MIT" ]
231
2019-08-18T06:25:17.000Z
2022-03-28T08:35:50.000Z
plex_mpv_shim/utils.py
romosborne/plex-mpv-shim
a454459e6a5b584f40841331604c8bfdf26d6c51
[ "MIT" ]
64
2019-08-18T00:40:36.000Z
2022-03-30T07:05:38.000Z
plex_mpv_shim/utils.py
romosborne/plex-mpv-shim
a454459e6a5b584f40841331604c8bfdf26d6c51
[ "MIT" ]
20
2019-08-19T21:02:36.000Z
2022-03-12T15:07:38.000Z
import logging import os import urllib.request, urllib.parse, urllib.error import socket import ipaddress import uuid import re import sys from .conf import settings from datetime import datetime from functools import wraps PLEX_TOKEN_RE = re.compile("(token|X-Plex-Token)=[^&]*") log = logging.getLogger("utils") ple...
28.030864
97
0.62211
4a15a40433bbc8d5b38312bbc0045eafe68fb949
484
py
Python
aoc/day02_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
aoc/day02_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
aoc/day02_2.py
GitOnUp/Advent2021
c9cd5a2d38a09389bdecac5f45be854da7aacee8
[ "MIT" ]
null
null
null
from aoc.day02_1 import yield_lines def run(): aim = 0 depth = 0 horizontal = 0 for direction, value in yield_lines(): if direction == 'forward': horizontal += value depth += aim * value elif direction == 'down': aim += value elif direction =...
21.043478
42
0.52686
4a15a5a870f96c1d003dff3a367dcde30d4d86d3
3,979
py
Python
mtcnn_pb2.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
null
null
null
mtcnn_pb2.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
null
null
null
mtcnn_pb2.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
1
2019-01-15T05:56:06.000Z
2019-01-15T05:56:06.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mtcnn.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflect...
35.526786
305
0.723046
4a15a6bae52d6a6586d909db70e48e2d696c645b
6,621
py
Python
py/add_card.py
Apop85/Lernkarten
ff092f4f856d50b56802333ad599789bbc0fb387
[ "MIT" ]
null
null
null
py/add_card.py
Apop85/Lernkarten
ff092f4f856d50b56802333ad599789bbc0fb387
[ "MIT" ]
null
null
null
py/add_card.py
Apop85/Lernkarten
ff092f4f856d50b56802333ad599789bbc0fb387
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- #### # File: search_all.py # Project: py #----- # Created Date: Thursday 08.08.2019, 23:52 # Author: rbald #----- # Last Modified: Tuesday 19.10.2021, 18:24 #----- # Copyright (c) 2019 rbald # This software is published under the MIT license. # Check http://www.opensource....
35.983696
143
0.601722
4a15a78a4e97ed01a99cbb2170187b67fd9da1b1
11,660
py
Python
napari_ndtiffs/affine.py
adamltyson/napari-ndtiffs
dcb00e68dedb0d3a618fe1dc47135051b82b1db8
[ "BSD-3-Clause" ]
null
null
null
napari_ndtiffs/affine.py
adamltyson/napari-ndtiffs
dcb00e68dedb0d3a618fe1dc47135051b82b1db8
[ "BSD-3-Clause" ]
null
null
null
napari_ndtiffs/affine.py
adamltyson/napari-ndtiffs
dcb00e68dedb0d3a618fe1dc47135051b82b1db8
[ "BSD-3-Clause" ]
null
null
null
"""Deskew utilities""" import logging from functools import lru_cache import numpy as np logger = logging.getLogger(__name__) cl = None try: import pyopencl as cl from pyopencl.array import empty, to_device logger.info("Using pyopencl for affine transforms") except ImportError: try: from s...
31.598916
91
0.613808
4a15a821b710253ad67c78439d49282b799bfd96
2,312
py
Python
runtime/image_classification/models/resnet50/gpus=2/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/image_classification/models/resnet50/gpus=2/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
runtime/image_classification/models/resnet50/gpus=2/stage2.py
vibhatha/pipedream
af6b811f5d01a68e9eb91065e5242fc1a075f279
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch class Stage2(torch.nn.Module): def __init__(self): super(Stage2, self).__init__() self.layer2 = torch.nn.Conv2d(1024, 2048, kernel_size=(1, 1), stride=(2, 2), bias=False) self.layer3 = torch.nn...
46.24
113
0.620242
4a15a8eba1dded74673be151dd2ab9421d6d23a1
523
py
Python
biobb_amber/test/unitests/test_pdb4amber/test_pdb4amber_pdb4amber.py
bioexcel/biobb_amber
84c61d07158ada71e0bce0fd99216a1b49e21787
[ "Apache-2.0" ]
null
null
null
biobb_amber/test/unitests/test_pdb4amber/test_pdb4amber_pdb4amber.py
bioexcel/biobb_amber
84c61d07158ada71e0bce0fd99216a1b49e21787
[ "Apache-2.0" ]
1
2021-09-23T06:30:35.000Z
2021-09-23T10:11:16.000Z
biobb_amber/test/unitests/test_pdb4amber/test_pdb4amber_pdb4amber.py
bioexcel/biobb_amber
84c61d07158ada71e0bce0fd99216a1b49e21787
[ "Apache-2.0" ]
null
null
null
from biobb_common.tools import test_fixtures as fx from biobb_amber.pdb4amber.pdb4amber_run import pdb4amber_run class TestPdb4amberRun(): def setUp(self): fx.test_setup(self, 'pdb4amber_run') def tearDown(self): fx.test_teardown(self) pass def test_pdb4amber_run(self): pd...
32.6875
89
0.720841
4a15a9704766214fd79a88d3ded01d8965e954ab
374
py
Python
mkt/operators/helpers.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/operators/helpers.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/operators/helpers.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
import jinja2 from jingo import register from tower import ugettext_lazy as _lazy from mkt.developers.helpers import mkt_page_title @register.function @jinja2.contextfunction def operators_page_title(context, title=None): section = _lazy('Operator Dashboard') title = u'%s | %s' % (title, section) if title e...
24.933333
63
0.772727
4a15a999cc7a530427c2f5c81b8f8aed5cb67e46
146
py
Python
app/worker_service/core/loggers.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/worker_service/core/loggers.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
app/worker_service/core/loggers.py
TheRayOfSeasons/worker-heavy-cicd
fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7
[ "MIT" ]
null
null
null
""" A script that imports a standartd centralized logger. """ import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO)
16.222222
53
0.773973
4a15ab6455d2609849fd95761c48dd0795890408
756
py
Python
code_builder.py
LiXuanqi/neeko
6a8978282dfb8d7ed0cb7fd2bfa0f662906cd12f
[ "MIT" ]
null
null
null
code_builder.py
LiXuanqi/neeko
6a8978282dfb8d7ed0cb7fd2bfa0f662906cd12f
[ "MIT" ]
null
null
null
code_builder.py
LiXuanqi/neeko
6a8978282dfb8d7ed0cb7fd2bfa0f662906cd12f
[ "MIT" ]
null
null
null
class CodeBuilder: INDENT_STEP = 4 def __init__(self, indent=0): self.code = [] self.indentLevel = indent def addLine(self, line): self.code.extend([" " * self.indentLevel, line, "\n"]) def indent(self): self.indentLevel += self.INDENT_STEP def dedent(self): ...
24.387097
62
0.603175
4a15ab78bac9706b48af3145400d4556d26bc6ad
11,555
py
Python
securetea/lib/malware_analysis/continuous_malware_defence.py
Off3nsiv3huNt/SecureTea-Project
ae55082d4a342f10099db4dead23267a517e1a66
[ "MIT" ]
257
2018-03-28T12:43:20.000Z
2022-03-29T07:07:23.000Z
securetea/lib/malware_analysis/continuous_malware_defence.py
Off3nsiv3huNt/SecureTea-Project
ae55082d4a342f10099db4dead23267a517e1a66
[ "MIT" ]
155
2018-03-31T14:57:46.000Z
2022-03-17T18:12:41.000Z
securetea/lib/malware_analysis/continuous_malware_defence.py
Off3nsiv3huNt/SecureTea-Project
ae55082d4a342f10099db4dead23267a517e1a66
[ "MIT" ]
132
2018-03-27T06:25:20.000Z
2022-03-28T11:32:45.000Z
# !/bin/python # -*- coding: utf-8 -*- u"""SecureTea Social Engineering Project: ╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐ ╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤ ╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴ Author: Digvijay Bhosale <digvijayb1729@gmail.com> August 19 2021 Version: 1.0 Module: SecureTea """ import subprocess import os i...
42.481618
120
0.522285
4a15aca110d1386c17ecd4e918e3a7cc7b95640e
629
py
Python
var/spack/repos/builtin/packages/py-rarfile/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-rarfile/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-rarfile/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyRarfile(PythonPackage): """RAR archive reader for Python.""" homepage = "ht...
31.45
93
0.717011
4a15ad0b5cd32442e4060a587fe04dc261a8448a
4,518
py
Python
viz/demo.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
1
2021-09-01T00:34:17.000Z
2021-09-01T00:34:17.000Z
viz/demo.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
viz/demo.py
Guoxs/DODT
f354cda6ef08465018fdeec1a8b4be4002e6a71f
[ "MIT" ]
null
null
null
import sys import cv2 import numpy as np import mayavi.mlab as mlab import moviepy.editor as mpy sys.path.append('/home/mooyu/Project/avod/') sys.path.append('/home/mooyu/Project/avod/wavedata') import avod import avod.builders.config_builder_util as config_builder from avod.builders.dataset_builder import DatasetBu...
35.023256
95
0.664675
4a15adeee8067a2817ddaaa14508d536651f2b56
7,127
py
Python
python/example_code/signv4/v4-signing-get-post.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/signv4/v4-signing-get-post.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
python/example_code/signv4/v4-signing-get-post.py
AkhmadRiswanda/aws-doc-sdk-examples
46dbd6e1002f4d5c056df3eb478c318501782a17
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This f...
46.279221
219
0.695945
4a15ae1b75dba57c048ba9f34a5a1aed3945e9be
5,954
py
Python
web/magmaweb/tests/test_functional.py
NLeSC/MAGMa
c48fd1b09785d08f3259bc7b25934eb9d16b5790
[ "Apache-2.0" ]
14
2015-08-13T17:29:23.000Z
2021-09-02T14:00:15.000Z
web/magmaweb/tests/test_functional.py
NLeSC/MAGMa
c48fd1b09785d08f3259bc7b25934eb9d16b5790
[ "Apache-2.0" ]
11
2015-05-12T13:54:23.000Z
2019-06-28T20:39:11.000Z
web/magmaweb/tests/test_functional.py
NLeSC/MAGMa
c48fd1b09785d08f3259bc7b25934eb9d16b5790
[ "Apache-2.0" ]
6
2016-04-14T11:14:28.000Z
2019-11-15T01:12:59.000Z
import tempfile import unittest import transaction import json from nose.plugins.attrib import attr from webtest import TestApp from magmaweb import main from magmaweb.user import DBSession, User from magmaweb.job import make_job_factory from magmaweb.tests.test_job import populateTestingDB @attr('functional') class ...
36.304878
77
0.4565
4a15ae1bad6d4fb79db47d7f61d42cf28c6ad872
1,625
py
Python
examples/adspygoogle/dfp/v201208/get_all_placements.py
krux/adspygoogle
6505a71122f45fe3e675f27f2c29f67a1768069b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
examples/adspygoogle/dfp/v201208/get_all_placements.py
krux/adspygoogle
6505a71122f45fe3e675f27f2c29f67a1768069b
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
examples/adspygoogle/dfp/v201208/get_all_placements.py
krux/adspygoogle
6505a71122f45fe3e675f27f2c29f67a1768069b
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-04-02T19:00:31.000Z
2020-08-06T03:28:38.000Z
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
33.163265
80
0.736
4a15aef9a09d6133c229ad389452ee8e6f3fe7bc
27,518
py
Python
mne/inverse_sparse/mxne_inverse.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
null
null
null
mne/inverse_sparse/mxne_inverse.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
null
null
null
mne/inverse_sparse/mxne_inverse.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
null
null
null
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Daniel Strohmeier <daniel.strohmeier@gmail.com> # # License: Simplified BSD import numpy as np from scipy import linalg, signal from ..source_estimate import (SourceEstimate, VolSourceEstimate, _BaseSourceE...
38.008287
79
0.624355
4a15af0eb505ce4156da96a41ae624249becec94
1,299
py
Python
2021/day3.py
kdassharma/AdventOfCode
b11f4b481e9f24be9957faac415dcd4d04d93cba
[ "Apache-2.0" ]
2
2020-12-02T06:01:37.000Z
2020-12-04T16:56:31.000Z
2021/day3.py
kdassharma/AdventOfCode2020
b11f4b481e9f24be9957faac415dcd4d04d93cba
[ "Apache-2.0" ]
null
null
null
2021/day3.py
kdassharma/AdventOfCode2020
b11f4b481e9f24be9957faac415dcd4d04d93cba
[ "Apache-2.0" ]
null
null
null
def findCommon(sequence): count1s = 0 for bit in sequence: if bit == "1": count1s += 1 if count1s > len(sequence) / 2: return "1" if count1s == len(sequence) / 2: return "-1" return "0" # Part 1 data = open('data/day3.txt') bits = [] for i in range(12): ...
22.016949
43
0.576597
4a15b042d0bd457c5c81c42c20ed297f7267fa8c
3,057
py
Python
ironsworn/oracles.py
daniel-duliga/trpg-journal
6f7d68fafe60c0f053d1435d1894a3b3430eaf30
[ "MIT" ]
null
null
null
ironsworn/oracles.py
daniel-duliga/trpg-journal
6f7d68fafe60c0f053d1435d1894a3b3430eaf30
[ "MIT" ]
null
null
null
ironsworn/oracles.py
daniel-duliga/trpg-journal
6f7d68fafe60c0f053d1435d1894a3b3430eaf30
[ "MIT" ]
null
null
null
from typing import List from core import random_tables; def _roll(oracle: List[str]): print(random_tables.roll_table(oracle)) def action(): _roll([ 'Scheme', 'Clash', 'Weaken', 'Initiate', 'Create', 'Swear', 'Avenge', 'Guard', 'Defeat', 'Control', 'Break', 'Risk', ...
14.488152
43
0.460255
4a15b06b96d7841b3d18e85c256a84287684842b
3,928
py
Python
LAN2018Oct24/LANcar/test-model.py
lotusxai/LAN-Workshops
e795e87021642bb54cf5328d3589d438ccad266b
[ "MIT" ]
1
2019-05-02T22:11:59.000Z
2019-05-02T22:11:59.000Z
LAN2018Oct24/LANcar/test-model.py
lotusxai/Hands-on-ML-Workshops
e795e87021642bb54cf5328d3589d438ccad266b
[ "MIT" ]
2
2019-03-18T15:28:55.000Z
2019-03-18T15:29:24.000Z
LAN2018Oct24/LANcar/test-model.py
lotusxai/Hands-on-ML-Workshops
e795e87021642bb54cf5328d3589d438ccad266b
[ "MIT" ]
1
2019-02-12T20:49:14.000Z
2019-02-12T20:49:14.000Z
#!/usr/bin/env python from __future__ import division import tensorflow as tf import params model = __import__(params.model) import cv2 import subprocess as sp import itertools import sys import os import preprocess import time import math import numpy as np import local_common as cm def deg2rad(deg): return...
31.934959
149
0.666242
4a15b0af19ec014b78e5a489484856f04dbcfa2d
74,409
py
Python
Estimating effect of drug combination on colon_cancer treatment.py
khanmustuffa11/AI-for-Medical-Treatment
03b9c5f84ea3b7ae4368f97770edc71f7d301b10
[ "MIT" ]
null
null
null
Estimating effect of drug combination on colon_cancer treatment.py
khanmustuffa11/AI-for-Medical-Treatment
03b9c5f84ea3b7ae4368f97770edc71f7d301b10
[ "MIT" ]
null
null
null
Estimating effect of drug combination on colon_cancer treatment.py
khanmustuffa11/AI-for-Medical-Treatment
03b9c5f84ea3b7ae4368f97770edc71f7d301b10
[ "MIT" ]
null
null
null
# coding: utf-8 # # Estimating Treatment Effect Using Machine Learning # Welcome to the first assignment of **AI for Medical Treatment**! # # You will be using different methods to evaluate the results of a [randomized control trial](https://en.wikipedia.org/wiki/Randomized_controlled_trial) (RCT). # # **You will ...
38.256555
619
0.680213
4a15b0d50d31512dc79017bfc6b260abbd303fc9
1,137
py
Python
loaders/chimera_dataset.py
Neural-Diffusion-Research/normalized-autoencoders
0c77f7e29289e336c0fe5e941aaec8baa4a4fb82
[ "MIT" ]
30
2021-06-23T10:46:45.000Z
2022-03-13T04:00:58.000Z
loaders/chimera_dataset.py
Neural-Diffusion-Research/normalized-autoencoders
0c77f7e29289e336c0fe5e941aaec8baa4a4fb82
[ "MIT" ]
12
2021-06-30T01:27:25.000Z
2022-02-10T02:59:42.000Z
loaders/chimera_dataset.py
Neural-Diffusion-Research/normalized-autoencoders
0c77f7e29289e336c0fe5e941aaec8baa4a4fb82
[ "MIT" ]
10
2021-06-24T23:29:46.000Z
2022-02-04T09:56:09.000Z
from torch.utils.data import Dataset class Chimera(Dataset): def __init__(self, ds, mode='horizontal'): self.ds = ds self.mode = mode def __len__(self): return len(self.ds) def __getitem__(self, i): img, lbl = self.ds[i] if self.mode == 'horizontal': h...
25.840909
55
0.46438
4a15b128e5ed46a0f00af70a13faacb6cb09b3fd
37,855
py
Python
src/lazydocs/generation.py
koaleksa/lazydocs
ebf6ea85601f4c630e788c66eab1cb6d0b7a3331
[ "MIT" ]
null
null
null
src/lazydocs/generation.py
koaleksa/lazydocs
ebf6ea85601f4c630e788c66eab1cb6d0b7a3331
[ "MIT" ]
null
null
null
src/lazydocs/generation.py
koaleksa/lazydocs
ebf6ea85601f4c630e788c66eab1cb6d0b7a3331
[ "MIT" ]
null
null
null
"""Main module for markdown generation.""" import datetime import importlib import importlib.util import inspect import os import pkgutil import re import subprocess import types from pydoc import locate from typing import Any, Callable, Dict, List, Optional _RE_BLOCKSTART_LIST = re.compile( r"(Args:|Arg:|Argumen...
34.539234
131
0.548673
4a15b1d9cbe38ce73879dc7d328698a43c2690ce
2,275
py
Python
azure-batch/azure/batch/models/node_update_user_parameter.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-batch/azure/batch/models/node_update_user_parameter.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-batch/azure/batch/models/node_update_user_parameter.py
jmalobicky/azure-sdk-for-python
61234a3d83f8fb481d1dd2386e54e888864878fd
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
46.428571
78
0.67033
4a15b26563567dd3a11bc6c085483d82e455658a
1,306
py
Python
python/alexa_skill/lambda_function.py
calestar/experiments
6bebf93706334d601694ba51bf4011f788757ff8
[ "MIT" ]
1
2021-11-03T02:23:13.000Z
2021-11-03T02:23:13.000Z
python/alexa_skill/lambda_function.py
calestar/experiments
6bebf93706334d601694ba51bf4011f788757ff8
[ "MIT" ]
4
2021-08-31T22:13:34.000Z
2022-02-14T03:36:40.000Z
python/alexa_skill/lambda_function.py
calestar/experiments
6bebf93706334d601694ba51bf4011f788757ff8
[ "MIT" ]
null
null
null
# Copyright (c) 2020, 2021 Jean-Sebastien Gelinas, see LICENSE at the root of the repository import json def send_response(success, result): response = { 'version': '1.0', 'sessionAttributes': {}, 'shouldEndSession': True, 'response': { 'outputSpeech' : { ...
25.607843
92
0.529096
4a15b2ddeac0bd5a6e932fea52897d55111fbba6
797
py
Python
507.perfect-number.py
elfgzp/leetCode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
3
2019-04-12T06:22:56.000Z
2019-05-04T04:25:01.000Z
507.perfect-number.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
507.perfect-number.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=507 lang=python3 # # [507] 完美数 # # https://leetcode-cn.com/problems/perfect-number/description/ # # algorithms # Easy (32.39%) # Total Accepted: 3.4K # Total Submissions: 10.4K # Testcase Example: '28' # # 对于一个 正整数,如果它和除了它自身以外的所有正因子之和相等,我们称它为“完美数”。 # # 给定一个 正整数 n, 如果他是完美数,返回 True,否则返回 Fal...
15.037736
62
0.51192
4a15b359ff7103a32d42ef15000756deba6e93ca
4,489
py
Python
zdo2021/main.py
JiriVales/zdo2021-vales
8cf22097d926b42814b4d366dfe49f1de70093a7
[ "MIT" ]
1
2021-05-26T14:58:58.000Z
2021-05-26T14:58:58.000Z
zdo2021/main.py
JiriVales/zdo2021-vales
8cf22097d926b42814b4d366dfe49f1de70093a7
[ "MIT" ]
null
null
null
zdo2021/main.py
JiriVales/zdo2021-vales
8cf22097d926b42814b4d366dfe49f1de70093a7
[ "MIT" ]
null
null
null
import numpy as np import skimage from skimage import data from skimage.morphology import label from skimage.color import rgb2gray from skimage import data from skimage.filters import gaussian from skimage.segmentation import active_contour import skimage.segmentation import scipy import numpy as np import scipy from s...
33.5
119
0.510581
4a15b39bc359ee70849b5c370afde703041f2ac2
21,544
py
Python
src/django_scim/adapters.py
15five/django_scim
d833026aaefaeed23e5a4a765c9d1ca699d94e01
[ "MIT" ]
39
2017-02-24T23:33:13.000Z
2022-03-31T23:31:20.000Z
src/django_scim/adapters.py
15five/django_scim
d833026aaefaeed23e5a4a765c9d1ca699d94e01
[ "MIT" ]
46
2017-09-22T20:57:41.000Z
2022-03-03T01:17:05.000Z
src/django_scim/adapters.py
15five/django_scim
d833026aaefaeed23e5a4a765c9d1ca699d94e01
[ "MIT" ]
25
2017-01-12T00:44:36.000Z
2021-12-03T14:48:24.000Z
""" Adapters are used to convert the data model described by the SCIM 2.0 specification to a data model that fits the data provided by the application implementing a SCIM api. For example, in a Django app, there are User and Group models that do not have the same attributes/fields that are defined by the SCIM 2.0 spec...
32.841463
107
0.569393
4a15b52b0d4ac478c42a07f7862d9b09160dfbe8
4,828
py
Python
tests/test_teleportation.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
238
2020-09-02T22:26:44.000Z
2022-03-31T17:49:55.000Z
tests/test_teleportation.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
87
2020-09-02T20:10:35.000Z
2022-03-16T16:49:47.000Z
tests/test_teleportation.py
pdxjohnny/rpyc
bc8f0223be8436fa77c71cda94cc6610d621a364
[ "MIT" ]
40
2020-09-13T19:53:51.000Z
2022-03-21T09:17:48.000Z
from __future__ import with_statement import subprocess import sys import os import rpyc import types import unittest import tracemalloc tracemalloc.start() from rpyc.utils.teleportation import export_function, import_function from rpyc.lib.compat import is_py_3k, is_py_gte38 from rpyc.utils.classic import teleport_fu...
34.985507
112
0.627589
4a15b577297a1cc185f582d54ce7977e7b496db1
9,458
py
Python
MassiveDisplay.py
Dahk/serverless_func_display
ecdd687a993323911461c04b381e73d7591c7a01
[ "MIT" ]
null
null
null
MassiveDisplay.py
Dahk/serverless_func_display
ecdd687a993323911461c04b381e73d7591c7a01
[ "MIT" ]
null
null
null
MassiveDisplay.py
Dahk/serverless_func_display
ecdd687a993323911461c04b381e73d7591c7a01
[ "MIT" ]
null
null
null
from IPython.display import display, HTML, Javascript import math, time class MassiveDisplay(): def __init__(self, idlist): self.progressTracker = { bar_id : 0 for bar_id in idlist } self.metrics_max = 5 self.count = len(idlist) self.stages = [self.co...
38.762295
117
0.532882
4a15b6a8ea272be38d5158a660932dc4ae1d41a6
5,174
py
Python
python/paddle/fluid/data.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/data.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/data.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2019 PaddlePaddle 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 app...
41.063492
88
0.615578
4a15b7e474baa787cf3de9f43b361d0c88c31b7a
74,664
py
Python
lingvo/core/base_input_generator.py
slowy07/lingvo
f38f82541f2332571005a2d06b3badc9d48576d8
[ "Apache-2.0" ]
null
null
null
lingvo/core/base_input_generator.py
slowy07/lingvo
f38f82541f2332571005a2d06b3badc9d48576d8
[ "Apache-2.0" ]
null
null
null
lingvo/core/base_input_generator.py
slowy07/lingvo
f38f82541f2332571005a2d06b3badc9d48576d8
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
41.342193
95
0.680676
4a15b86a50fabe20130acdacc82ad86a90f2218b
3,846
py
Python
plgx-esp-ui/polylogyx/blueprints/distributed.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
20
2019-12-09T13:55:13.000Z
2022-01-10T09:10:42.000Z
plgx-esp-ui/polylogyx/blueprints/distributed.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
13
2019-12-03T13:27:27.000Z
2021-12-03T05:22:49.000Z
plgx-esp-ui/polylogyx/blueprints/distributed.py
dhoomakethu/plgx-esp
b466b52a5e16a0d12a61e505e48add83bee5bad4
[ "MIT" ]
16
2019-11-15T11:45:06.000Z
2022-01-07T08:07:11.000Z
from sqlalchemy import or_ import json import datetime as dt from flask import jsonify, request, current_app from flask_restplus import Namespace, Resource, marshal from polylogyx.models import db from .utils import * from polylogyx.utils import require_api_key, create_tags, get_tags, validate_osquery_query from poly...
39.649485
209
0.611544
4a15b8ae7a52fc7ee28cbc15314623e9c4064086
8,547
py
Python
test_tinynumpy.py
almarklein/tinynumpy
41edac9123ecbb9222eb28bc3dee507451b9d748
[ "MIT" ]
9
2015-06-16T20:02:05.000Z
2021-03-02T23:13:14.000Z
test_tinynumpy.py
almarklein/tinynumpy
41edac9123ecbb9222eb28bc3dee507451b9d748
[ "MIT" ]
null
null
null
test_tinynumpy.py
almarklein/tinynumpy
41edac9123ecbb9222eb28bc3dee507451b9d748
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Almar Klein and Wade Brainerd # tinynumpy is distributed under the terms of the MIT License. """ Test suite for tinynumpy """ import os import sys import ctypes import pytest from _pytest import runner from pytest import raises, skip import tinynumpy as tnp # Numpy is ...
30.744604
81
0.505441
4a15b973785a011de465c5f99e5866667daaa034
1,149
py
Python
vsc-py-intellisense/dummy_example.py
ytingyeu/report-issue-examples
41d1cd04bf749d6191d852b546cd1caa660e2bac
[ "MIT" ]
null
null
null
vsc-py-intellisense/dummy_example.py
ytingyeu/report-issue-examples
41d1cd04bf749d6191d852b546cd1caa660e2bac
[ "MIT" ]
null
null
null
vsc-py-intellisense/dummy_example.py
ytingyeu/report-issue-examples
41d1cd04bf749d6191d852b546cd1caa660e2bac
[ "MIT" ]
null
null
null
class ClassA(object): def __init__(self): self._name = "Class A" def get_name(self): return self._name class ClassB(object): def __init__(self): self._name = "Class B" def get_name(self): return self._name class ClientsFactory(object): def __init__(self, root): ...
22.096154
70
0.633594
4a15b9754ffc0b57ba9bb551459b57c01c589cda
1,614
py
Python
utils/box_utils.py
mikito0011/Chainer_Mask_R-CNN
315a5b09897801c1f6f21270aa898dc2c4d96c65
[ "BSD-3-Clause" ]
153
2018-01-17T02:24:44.000Z
2021-05-23T06:27:30.000Z
utils/box_utils.py
mikito0011/Chainer_Mask_R-CNN
315a5b09897801c1f6f21270aa898dc2c4d96c65
[ "BSD-3-Clause" ]
2
2018-01-23T20:26:01.000Z
2018-06-16T01:38:43.000Z
utils/box_utils.py
mikito0011/Chainer_Mask_R-CNN
315a5b09897801c1f6f21270aa898dc2c4d96c65
[ "BSD-3-Clause" ]
31
2018-01-17T07:01:33.000Z
2020-12-09T20:02:35.000Z
import numpy as np import cupy import cv2 def resize_bbox(bbox, in_size, out_size): bbox_o = bbox.copy() y_scale = float(out_size[0]) / in_size[0] x_scale = float(out_size[1]) / in_size[1] bbox_o[:, 0] = y_scale * bbox[:, 1] bbox_o[:, 2] = y_scale * (bbox[:, 1]+bbox[:, 3]) bbox_o[:, 1] = x_scal...
35.866667
70
0.566914
4a15bb234e1662e77a4cd7fe508ac5295d778427
8,333
py
Python
docs/conf.py
hibellm/jira
bf935b4ede4c2b7cc36f8e1d779a60e602319d85
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
hibellm/jira
bf935b4ede4c2b7cc36f8e1d779a60e602319d85
[ "BSD-2-Clause" ]
null
null
null
docs/conf.py
hibellm/jira
bf935b4ede4c2b7cc36f8e1d779a60e602319d85
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # JIRA Python Client documentation build configuration file, created by # sphinx-quickstart on Thu May 3 17:01:50 2012. # # 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 # autogenerated fi...
33.465863
87
0.712348
4a15bbe930d51d4d2c54f378606042f2867ed185
862
py
Python
navigation/deprecated/kinect_test.py
ryanmccartney/Autonomous_Electric_Wheelchair
0e599de8ed9bba024e729b2286afb48146a350f5
[ "MIT" ]
3
2020-08-07T07:28:17.000Z
2021-08-02T21:38:42.000Z
navigation/deprecated/kinect_test.py
ryanmccartney/Autonomous_Electric_Wheelchair
0e599de8ed9bba024e729b2286afb48146a350f5
[ "MIT" ]
null
null
null
navigation/deprecated/kinect_test.py
ryanmccartney/Autonomous_Electric_Wheelchair
0e599de8ed9bba024e729b2286afb48146a350f5
[ "MIT" ]
1
2019-05-17T14:15:31.000Z
2019-05-17T14:15:31.000Z
#import the necessary modules import freenect import cv2 import numpy as np #function to get RGB image from kinect def get_video(): array,_ = freenect.sync_get_video() array = cv2.cvtColor(array,cv2.COLOR_RGB2BGR) return array #function to get depth image from kinect def get_depth(): array,_ = freen...
23.944444
49
0.62761
4a15bd8b0eda0b0fe3a98bbbc841762a9af520a6
418
py
Python
Examples/Basic/ping.py
NexInfinite/hivenpy
b20c37f68f2526a3455bbcfa1432f430ac1258cb
[ "MIT" ]
9
2020-07-30T09:31:28.000Z
2021-02-17T13:23:43.000Z
Examples/Basic/ping.py
NexInfinite/hivenpy
b20c37f68f2526a3455bbcfa1432f430ac1258cb
[ "MIT" ]
null
null
null
Examples/Basic/ping.py
NexInfinite/hivenpy
b20c37f68f2526a3455bbcfa1432f430ac1258cb
[ "MIT" ]
4
2020-07-30T18:17:50.000Z
2020-08-09T23:49:01.000Z
from Hiven.client import Bot, events #import events bot = Bot("Your Bot Token") @events.event def on_message(ctx): # this method gets called when a someone sends a message if ctx.author.id != bot.user.id: # checks if author of message is not bot account to prevent spam if ctx.message.content == "ping":...
34.833333
102
0.679426
4a15bdda3cb2542ad79ba584452c57bd991463ec
1,616
py
Python
trainers/encode_tools.py
stormraiser/disunknown
194cc01851fe26bc2f0ed87cdcc238c801f4a333
[ "MIT" ]
17
2021-09-13T19:47:15.000Z
2022-03-18T03:07:55.000Z
trainers/encode_tools.py
stormraiser/disunknown
194cc01851fe26bc2f0ed87cdcc238c801f4a333
[ "MIT" ]
null
null
null
trainers/encode_tools.py
stormraiser/disunknown
194cc01851fe26bc2f0ed87cdcc238c801f4a333
[ "MIT" ]
2
2022-01-31T02:31:11.000Z
2022-03-18T03:07:48.000Z
import math import torch def run_encoder(dataloader, encoder, device): output = None label = [] with torch.no_grad(): for batch in dataloader: if isinstance(batch, list): batch_image, batch_label = batch label.append(batch_label) else: batch_image = batch batch_output = encoder(batch_image.t...
28.350877
71
0.67203
4a15be7e8e0258b1aaec092fa83aeeef3b189faa
7,110
py
Python
hexa-beta/GLCD.py
projecthexa/hexa
d3ad27283903bf895c70a4f8aee2c0f899b0c797
[ "MIT" ]
7
2018-09-12T18:53:24.000Z
2021-01-04T04:21:36.000Z
hexa-beta/GLCD.py
SahajKhandelwal/hexa
d3ad27283903bf895c70a4f8aee2c0f899b0c797
[ "MIT" ]
null
null
null
hexa-beta/GLCD.py
SahajKhandelwal/hexa
d3ad27283903bf895c70a4f8aee2c0f899b0c797
[ "MIT" ]
3
2018-05-24T22:16:37.000Z
2019-03-14T10:05:42.000Z
__author__ = 'karthi' import time import RPi.GPIO as GPIO import fonts fontWidth = 6 currentScreen = 0 class LCD_GPIO(object): # Timing constants E_PULSE = 0.000000070 # Addess setup time 140ns E_DELAY = 0.000000100 # Data setup time 200ns def __init__(self, RST,RS,RW,E1,E2,CS1,CS2, D0, D1, D2, D3,...
29.259259
106
0.561885
4a15bef2660d2d4901173fdeabcd9d97a308058d
382
py
Python
plataform/urls.py
marssaljr/pharmalegre
05d275d858621fb62226585d8c5b6e12189615fb
[ "MIT" ]
null
null
null
plataform/urls.py
marssaljr/pharmalegre
05d275d858621fb62226585d8c5b6e12189615fb
[ "MIT" ]
null
null
null
plataform/urls.py
marssaljr/pharmalegre
05d275d858621fb62226585d8c5b6e12189615fb
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home, name="home"), path('cart/add/<str:id>', views.cart, name='cart_add'), path('cart/inc/<str:id>', views.item_increment, name='item_increment'), path('cart/del/<str:id>', views.item_decrement, name='item_decrement'), ...
34.727273
75
0.67801
4a15bf87728cfb07e5ed670c113ea01094db3f5b
2,669
py
Python
examples/python/alphabet_partitioned/alphabet_partitioned.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
examples/python/alphabet_partitioned/alphabet_partitioned.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
examples/python/alphabet_partitioned/alphabet_partitioned.py
awesome-archive/wallaroo
852c19ffad0ed75a767a658a9a72c355e3c4c1c8
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Wallaroo 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 or agreed ...
25.912621
75
0.66804
4a15bfdf47eff289ea73f93921f99d5a53e0877d
2,843
py
Python
src/barril/units/scalar_validation/_tests/test_scalar_min_max_validator.py
jaimeambrus/barril
2897a93c660a9064f954912cc44f000d8e06a085
[ "MIT" ]
null
null
null
src/barril/units/scalar_validation/_tests/test_scalar_min_max_validator.py
jaimeambrus/barril
2897a93c660a9064f954912cc44f000d8e06a085
[ "MIT" ]
null
null
null
src/barril/units/scalar_validation/_tests/test_scalar_min_max_validator.py
jaimeambrus/barril
2897a93c660a9064f954912cc44f000d8e06a085
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from barril.units import Scalar from barril.units.scalar_validation.scalar_min_max_validator import ( ScalarMinMaxValidator ) def _CreateTestCategories(db): db.AddCategory( category="test category", quantity_type="dimensionless", ...
38.418919
119
0.569117
4a15c0386228a1e0453d5b665e3b600c3bb35e37
1,612
py
Python
sec_scraper.py
bjk116/StockACTTracker
6d91dd49ca9aec3a005f6a681670da5ab0c7d4ca
[ "MIT" ]
null
null
null
sec_scraper.py
bjk116/StockACTTracker
6d91dd49ca9aec3a005f6a681670da5ab0c7d4ca
[ "MIT" ]
null
null
null
sec_scraper.py
bjk116/StockACTTracker
6d91dd49ca9aec3a005f6a681670da5ab0c7d4ca
[ "MIT" ]
null
null
null
import requests import datetime # zach will need to install this # pip install beautifulsoup4 # if that doesn't work # pip3 install beautifulsoup4 from bs4 import BeautifulSoup # pip3 install requests-html # or # pip install # Required as sec website is created in js and needs to be rendered from requests_html impor...
31
155
0.69727
4a15c18e5abaacb1f34bc0a0197b5c7e18538367
3,257
py
Python
data_management/test/test_scanned_map_tools/TemplateConfigTest.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/test/test_scanned_map_tools/TemplateConfigTest.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/test/test_scanned_map_tools/TemplateConfigTest.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
1
2018-10-25T15:52:41.000Z
2018-10-25T15:52:41.000Z
#------------------------------------------------------------------------------ # Copyright 2013 Esri # 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/LICENS...
34.284211
114
0.619896
4a15c22f97d5e055b3e5e40200f2ff49950ac12e
7,603
py
Python
sanic/request.py
matemax/sanic
ca419c151e404d8267434f42674d8c223b2edd60
[ "MIT" ]
1
2019-08-04T09:42:09.000Z
2019-08-04T09:42:09.000Z
sanic/request.py
matemax/sanic
ca419c151e404d8267434f42674d8c223b2edd60
[ "MIT" ]
null
null
null
sanic/request.py
matemax/sanic
ca419c151e404d8267434f42674d8c223b2edd60
[ "MIT" ]
1
2019-08-04T09:42:10.000Z
2019-08-04T09:42:10.000Z
from cgi import parse_header from collections import namedtuple from http.cookies import SimpleCookie from httptools import parse_url from urllib.parse import parse_qs, urlunparse try: from ujson import loads as json_loads except ImportError: from json import loads as json_loads from sanic.exceptions import I...
31.288066
77
0.587137
4a15c288de720d5a2635472947e914c6bc72d8ae
2,160
py
Python
parser/fase2/team22/Instrucciones/FunctionTrigonometric/Atanh.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team22/Instrucciones/FunctionTrigonometric/Atanh.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team22/Instrucciones/FunctionTrigonometric/Atanh.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
import math from Instrucciones.TablaSimbolos.Instruccion import Instruccion from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato, Tipo from Instrucciones.Excepcion import Excepcion from Instrucciones.TablaSimbolos import Instruccion3D as c3d from Optimizador.C3D import Valor as ClassValor from Optimizador.C3D import ...
51.428571
335
0.700926
4a15c36a1b3fa72126ffece343c99e4ff2f59867
15,109
py
Python
rpython/jit/codewriter/flatten.py
Qointum/pypy
c0ed88efbc135a75a535f4534ca1f3baf0bf39d8
[ "Apache-2.0", "OpenSSL" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/codewriter/flatten.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
idea2/pypyjs-3/deps/pypy/rpython/jit/codewriter/flatten.py
igormcoelho/neo-boa
c141b503183cab287744cd19be5dfd86d9bc8daf
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
from rpython.flowspace.model import Variable, Constant from rpython.jit.metainterp.history import AbstractDescr, getkind from rpython.rtyper.lltypesystem import lltype class SSARepr(object): def __init__(self, name): self.name = name self.insns = [] self._insns_pos = None # after being...
39.244156
79
0.551128
4a15c38ba93f38dec846a9c3f96eb8b3fd92d863
299
py
Python
data/clean_txt.py
iejMac/ScriptWriter
24358762643d48296a055850b82631877c04fe94
[ "MIT" ]
null
null
null
data/clean_txt.py
iejMac/ScriptWriter
24358762643d48296a055850b82631877c04fe94
[ "MIT" ]
null
null
null
data/clean_txt.py
iejMac/ScriptWriter
24358762643d48296a055850b82631877c04fe94
[ "MIT" ]
null
null
null
import os def get_txt(script_name): with open(os.path.join(TXT_DIR, script_name), "r") as f: st = f.read() return st TXT_DIR = "txt_dir" scripts = os.listdir(TXT_DIR) scripts = [get_txt(script_name) for script_name in scripts] for script in scripts: print(len(script))
10.310345
59
0.672241
4a15c3b71a2b00befe99c874ab3a2c8172f06a3f
14,430
py
Python
analyze.py
louisvillepublicmedia/2016-campaign-finance
fc54530356e3541ea750562fdb548f7dcdd0a124
[ "MIT" ]
null
null
null
analyze.py
louisvillepublicmedia/2016-campaign-finance
fc54530356e3541ea750562fdb548f7dcdd0a124
[ "MIT" ]
null
null
null
analyze.py
louisvillepublicmedia/2016-campaign-finance
fc54530356e3541ea750562fdb548f7dcdd0a124
[ "MIT" ]
null
null
null
import agate, os, itertools, time, datetime, glob from datetime import date text_type = agate.Text() tester = agate.TypeTester(force={ 'contb_receipt_dt': agate.Text() }) today = date.today() datestamp = str(today.year) + str(today.month) + str(today.day) ky_candidates_file = str(glob.glob('data/csv/process/*ky...
41.585014
264
0.670755
4a15c48152e1745b172bd9167adfba64c4805037
13,075
py
Python
workers/facade_worker/facade_worker/facade00mainprogram.py
pratikmishra356/augur
6f45fb7428af83b09a0c9dbf08116a59f58520aa
[ "MIT" ]
null
null
null
workers/facade_worker/facade_worker/facade00mainprogram.py
pratikmishra356/augur
6f45fb7428af83b09a0c9dbf08116a59f58520aa
[ "MIT" ]
null
null
null
workers/facade_worker/facade_worker/facade00mainprogram.py
pratikmishra356/augur
6f45fb7428af83b09a0c9dbf08116a59f58520aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2016-2018 Brian Warner # # 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...
42.041801
169
0.619426
4a15c6268e0cd825f3254893fd5970bf47d5d509
55
py
Python
fb.py
payz404/FBDownloader
af59dd66c76851e9e85a1da5cfb5299b20ac231b
[ "Apache-2.0" ]
null
null
null
fb.py
payz404/FBDownloader
af59dd66c76851e9e85a1da5cfb5299b20ac231b
[ "Apache-2.0" ]
null
null
null
fb.py
payz404/FBDownloader
af59dd66c76851e9e85a1da5cfb5299b20ac231b
[ "Apache-2.0" ]
null
null
null
from Main import * fb = fbDownloader() fb.Download()
11
19
0.690909
4a15c7aef85622d01c8b4cc39e5b3a3ab4b10c0c
712
py
Python
axelrod/tests/unit/test_negation.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_negation.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
null
null
null
axelrod/tests/unit/test_negation.py
t0nyt93/Axelroddd
66d95378d3ece8b32afeb1c77d305397bd9a815e
[ "MIT" ]
1
2019-03-11T08:56:09.000Z
2019-03-11T08:56:09.000Z
"""Tests for the Neg Strategy""" import axelrod from .test_player import TestPlayer C, D = axelrod.Actions.C, axelrod.Actions.D class TestNegation(TestPlayer): name = "Negation" player = axelrod.Negation expected_classifier = { 'memory_depth': 1, 'stochastic': True, 'makes_use_o...
24.551724
52
0.630618
4a15c87d561ea3f8954efb8602d0e8a7db532edc
939
py
Python
src/data/1068.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1068.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1068.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque def BFS(start, tree): search = deque() search.append(start) visited = {start[0]} # リストでやるとおそい #kyori = {} while len(search) > 0: # print(search) node, depth = search.popleft() depth_list[node] = depth # print(node,depth) # if n...
22.902439
48
0.514377
4a15c8ad3484167858dca62b2456d81fe21f277b
9,746
py
Python
acq4/drivers/nidaq/mock.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/drivers/nidaq/mock.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/drivers/nidaq/mock.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import six import sys, time, os import numpy as np import acq4.util.clibrary as clibrary import ctypes modDir = os.path.dirname(__file__) headerFiles = [os.path.join(modDir, "NIDAQmx.h")] cacheFile = os.path.join(modDir, 'NIDAQmx_headers_%s.cache' % sys.plat...
31.038217
123
0.552842
4a15c8d1140cde18e1ae721f2cbb9aab0edf4eb5
43,226
bzl
Python
external.bzl
filmil/kythe
a030ce48ddf46b171736d136af10f8462c5a302a
[ "Apache-2.0" ]
null
null
null
external.bzl
filmil/kythe
a030ce48ddf46b171736d136af10f8462c5a302a
[ "Apache-2.0" ]
null
null
null
external.bzl
filmil/kythe
a030ce48ddf46b171736d136af10f8462c5a302a
[ "Apache-2.0" ]
null
null
null
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") load("@rules_java//java:reposito...
35.901993
128
0.627562
4a15c9ef8bbe1406602bf5d332882026c818850d
4,371
py
Python
utils.py
rsj123/PassGAN
02f18a7b83c0ca8deb76c7c2cfacc5aeb99e7999
[ "MIT" ]
1
2021-03-22T07:58:15.000Z
2021-03-22T07:58:15.000Z
utils.py
rsj123/PassGAN
02f18a7b83c0ca8deb76c7c2cfacc5aeb99e7999
[ "MIT" ]
1
2020-03-10T00:09:12.000Z
2020-03-10T00:09:12.000Z
utils.py
rsj123/PassGAN
02f18a7b83c0ca8deb76c7c2cfacc5aeb99e7999
[ "MIT" ]
1
2020-03-09T08:07:41.000Z
2020-03-09T08:07:41.000Z
import collections import numpy as np import re def tokenize_string(sample): return tuple(sample.lower().split(' ')) class NgramLanguageModel(object): def __init__(self, n, samples, tokenize=False): if tokenize: tokenized_samples = [] for sample in samples: toke...
32.377778
94
0.586365
4a15caf21f502e3d03a090722faaab48b2c92faf
4,604
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/nios_srv_record.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/nios_srv_record.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
null
null
null
Collections-a-installer/community-general-2.4.0/plugins/modules/nios_srv_record.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Red Hat, Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: nios_srv_record author: "Blair Rampling (@brampling)" ...
28.245399
105
0.685056
4a15cc06745d0808d634d30f811ea58cc8004552
7,993
py
Python
aries_staticagent/module.py
hyperledger/aries-staticagent-python
6aa317a5330d64f610ee9cccb3d02211659b8a64
[ "Apache-2.0" ]
18
2019-06-20T18:19:36.000Z
2022-01-17T04:30:18.000Z
aries_staticagent/module.py
hyperledger/aries-staticagent-python
6aa317a5330d64f610ee9cccb3d02211659b8a64
[ "Apache-2.0" ]
16
2019-06-20T18:24:49.000Z
2021-05-19T17:38:40.000Z
aries_staticagent/module.py
hyperledger/aries-staticagent-python
6aa317a5330d64f610ee9cccb3d02211659b8a64
[ "Apache-2.0" ]
20
2019-06-20T16:54:13.000Z
2021-12-03T00:08:37.000Z
""" Module base class """ from abc import ABC from functools import partial from typing import ( Callable, ClassVar, Dict, Iterable, Mapping, TypeVar, Union, overload, ) from .message import MsgType, ProtocolIdentifier RouteFunc = TypeVar("RouteFunc", bound=Callable) class ModuleRo...
29.171533
87
0.552734
4a15cc1173dd59a379151eb3aa0b1ce47089da1f
4,604
py
Python
ravens/tasks/assembling_kits.py
OolongQian/ravens
5774494de040ab0e8b3a0a93772f55916fbf0e53
[ "Apache-2.0" ]
1
2021-09-15T16:27:05.000Z
2021-09-15T16:27:05.000Z
ravens/tasks/assembling_kits.py
roboticslab-uc3m/ravens
1e68b1c53610ea5370e0f5fc8c31182842090726
[ "Apache-2.0" ]
null
null
null
ravens/tasks/assembling_kits.py
roboticslab-uc3m/ravens
1e68b1c53610ea5370e0f5fc8c31182842090726
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Ravens 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 or...
33.122302
80
0.604692
4a15cc70456ad55394b0c86cbde3c38e8b5b7096
1,106
py
Python
project/api/models/tag.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/models/tag.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/models/tag.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
from django.db import models from django.utils.translation import gettext_lazy as _ class Tag(models.Model): name = models.CharField( verbose_name=_('Название'), max_length=50, ) category = models.CharField( verbose_name=_('Категория'), max_length=50, choices=( ...
26.333333
57
0.540687
4a15cc8598f69ca28f909a899fc26ef2fbb5d18a
688
py
Python
templates/django/{project.name}/urls.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
templates/django/{project.name}/urls.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
templates/django/{project.name}/urls.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
# -*- Python -*- # -*- coding: utf-8 -*- # # {project.authors} # {project.affiliations} # (c) {project.span} all rights reserved # # this file describes the primary url router for {project.name} # django imports from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf.urls...
24.571429
67
0.72093
4a15ccf09834ff7e41d165c5c2cee0f34deb48f9
11,773
py
Python
src/toil/fileStores/nonCachingFileStore.py
altairwei/toil
a11ae486971a51618da9abbc6cb46ef1e9f17874
[ "Apache-2.0" ]
null
null
null
src/toil/fileStores/nonCachingFileStore.py
altairwei/toil
a11ae486971a51618da9abbc6cb46ef1e9f17874
[ "Apache-2.0" ]
null
null
null
src/toil/fileStores/nonCachingFileStore.py
altairwei/toil
a11ae486971a51618da9abbc6cb46ef1e9f17874
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2018 Regents of the University of California # # 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 app...
42.197133
106
0.613013
4a15ce47f0456b3653144090c9651139a3eb0a18
1,304
py
Python
mms_exploit/qmg_files/code_exec/generate_color_table.py
googleprojectzero/SkCodecFuzzer
1ffd5b20121c0d6ae842de0da04d5e4d3df64f5c
[ "Apache-2.0" ]
289
2020-05-06T16:25:03.000Z
2022-03-07T10:52:23.000Z
mms_exploit/qmg_files/code_exec/generate_color_table.py
googleprojectzero/SkCodecFuzzer
1ffd5b20121c0d6ae842de0da04d5e4d3df64f5c
[ "Apache-2.0" ]
6
2020-05-09T02:33:35.000Z
2021-01-12T10:40:14.000Z
mms_exploit/qmg_files/code_exec/generate_color_table.py
googleprojectzero/SkCodecFuzzer
1ffd5b20121c0d6ae842de0da04d5e4d3df64f5c
[ "Apache-2.0" ]
71
2020-05-06T16:39:46.000Z
2022-03-06T12:31:57.000Z
import struct import sys import zlib def main(argv): if len(argv) != 5: print("Usage: %s <output file> <system command> <libhwui!ReadStreaEndError> <linker64!_dl_popen>" % argv[0]) return BPP = 4 COLORS = 38 OUTPUT_FILE = argv[1] COMMAND = bytearray(argv[2], encoding='ascii') ADDR_ReadStreaEndErro...
28.977778
112
0.606595
4a15ce7b256fb8c4c700ab56321185d37e345a02
4,907
py
Python
tests/otus/test_utils.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
null
null
null
tests/otus/test_utils.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
null
null
null
tests/otus/test_utils.py
ReeceHoffmann/virtool
f9befad060fe16fa29fb80124e674ac5a9c4f538
[ "MIT" ]
null
null
null
import pytest import virtool.otus.utils from virtool.otus.utils import find_isolate, format_isolate_name class TestVerify: def test_pass(self, test_merged_otu): """ Test that a valid otu and sequence list results in return value of ``None``. """ assert virtool.otus.utils.verify(t...
30.66875
87
0.647442
4a15cef4b96e2b9526035d1c80ae21bf202afd33
1,961
py
Python
stellar_sdk/xdr/change_trust_op.py
MartinThoma/py-stellar-base
07ab28cde7a7040f2262b224f9af8a3416c0e5ab
[ "Apache-2.0" ]
1
2021-07-06T01:34:08.000Z
2021-07-06T01:34:08.000Z
stellar_sdk/xdr/change_trust_op.py
MartinThoma/py-stellar-base
07ab28cde7a7040f2262b224f9af8a3416c0e5ab
[ "Apache-2.0" ]
36
2021-08-23T17:31:52.000Z
2022-03-28T01:39:00.000Z
stellar_sdk/xdr/change_trust_op.py
MartinThoma/py-stellar-base
07ab28cde7a7040f2262b224f9af8a3416c0e5ab
[ "Apache-2.0" ]
1
2021-07-06T01:33:40.000Z
2021-07-06T01:33:40.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from .asset import Asset from .int64 import Int64 __all__ = ["ChangeTrustOp"] class ChangeTrustOp: """ XDR Source Code -------------------------------------------...
25.467532
68
0.54921
4a15cf0811b743c2918c1fcd1f974e91c567141e
6,942
py
Python
examples/10_Low_Thrust_Orbit_Transfer.py
likping/OpenGoddard
0906ee85038de85d7683e19532df62fcd53a9e28
[ "MIT" ]
81
2017-03-06T07:38:42.000Z
2022-02-02T17:50:34.000Z
examples/10_Low_Thrust_Orbit_Transfer.py
likping/OpenGoddard
0906ee85038de85d7683e19532df62fcd53a9e28
[ "MIT" ]
10
2017-05-17T14:07:36.000Z
2021-10-17T05:36:28.000Z
examples/10_Low_Thrust_Orbit_Transfer.py
likping/OpenGoddard
0906ee85038de85d7683e19532df62fcd53a9e28
[ "MIT" ]
26
2017-05-21T17:29:23.000Z
2022-03-30T08:19:58.000Z
# -*- coding: utf-8 -*- # Copyright 2017 Interstellar Technologies Inc. All Rights Reserved. from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from OpenGoddard.optimize import Problem, Guess, Condition, Dynamics class Orbiter: def __init__(self): self.u_max = 0.01 ...
28.45082
80
0.662489
4a15d05c74d2139b6a7e61a330188cea036f9cb4
96
py
Python
venv/lib/python3.8/site-packages/libpasteurize/fixes/fix_fullargspec.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/libpasteurize/fixes/fix_fullargspec.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/libpasteurize/fixes/fix_fullargspec.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/56/56/6e/214e9036b0a5991baf0b89ad2c808bdf23028be45c1829d2f5f0f86fe4
96
96
0.895833
4a15d089b5457b8c899b6046bfd0cca4fc320524
937
py
Python
tests/e2e/process_thies-lnm/tests.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
tests/e2e/process_thies-lnm/tests.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
tests/e2e/process_thies-lnm/tests.py
actris-cloudnet/cloudnet-processing
1d1a67df3bad0beb7f8ec455e441ea06e8a32e55
[ "MIT" ]
null
null
null
from os import path import netCDF4 import pytest SCRIPT_PATH = path.dirname(path.realpath(__file__)) class TestProcessing: @pytest.fixture(autouse=True) def _fetch_params(self, params): self.full_path = params["full_path"] self.nc = netCDF4.Dataset(self.full_path) yield self....
29.28125
62
0.629669
4a15d0e75211f01e76c7e3320a29a404e6a5a975
4,409
py
Python
sbi_check_blacklist.py
haroldham/steembasicincome
ce5b78ce35dba9cedad6a44eda4cb332bad53e49
[ "MIT" ]
null
null
null
sbi_check_blacklist.py
haroldham/steembasicincome
ce5b78ce35dba9cedad6a44eda4cb332bad53e49
[ "MIT" ]
null
null
null
sbi_check_blacklist.py
haroldham/steembasicincome
ce5b78ce35dba9cedad6a44eda4cb332bad53e49
[ "MIT" ]
null
null
null
from beem import Steem from beem.nodelist import NodeList from beem.utils import formatTimeString from datetime import datetime, timedelta import requests import json import os import dataset from steembi.storage import TrxDB, MemberDB, ConfigurationDB, KeysDB, TransactionMemoDB from steembi.transfer_ops_stora...
41.990476
110
0.58993
4a15d230b21aadc3f8a0825ca0c2d81e24aa30b0
2,096
py
Python
pinax/announcements/models.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
34
2016-03-29T22:09:16.000Z
2022-03-22T11:15:23.000Z
pinax/announcements/models.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
33
2016-02-20T19:36:40.000Z
2021-12-14T15:49:55.000Z
pinax/announcements/models.py
craigds/pinax-announcements
ceaa4f0fcef25a5928a0cfbbf50c74a9afd263ab
[ "MIT" ]
19
2016-02-29T18:32:30.000Z
2022-03-28T21:15:15.000Z
from django.conf import settings from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ class Announcement(models.Model): """ A single announcement. """ DISMISSAL_NO = 1 DISMISSAL_SESSION = 2 DISMISS...
33.269841
94
0.70229
4a15d3d09feade89cbaa3135ad0049363487dce1
1,580
py
Python
tests/test_conversions.py
kkosmo/orbitize
5790100122f42224f9982e53d7338540a87c5fbc
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_conversions.py
kkosmo/orbitize
5790100122f42224f9982e53d7338540a87c5fbc
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_conversions.py
kkosmo/orbitize
5790100122f42224f9982e53d7338540a87c5fbc
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Test the orbitize.basis which converts orbital elements """ import pytest import numpy as np import orbitize.basis as basis def test_tau_t0_conversion(): """ Test conversion back and forth """ tau = 0.1 ref_epoch = 51000 # MJD period = 10 # years t0 = basis.tau_to_t0(tau, ref_epoch, pe...
27.719298
77
0.651266
4a15d55bc2017d4eaf2007775230f1cdaf32b229
772
py
Python
setup.py
farhadzaidi/send_mail
6bfa6a60db449c8d7b7a8878f87c3fe800524756
[ "MIT" ]
1
2021-11-24T14:30:21.000Z
2021-11-24T14:30:21.000Z
setup.py
farhadzaidi/send_mail
6bfa6a60db449c8d7b7a8878f87c3fe800524756
[ "MIT" ]
null
null
null
setup.py
farhadzaidi/send_mail
6bfa6a60db449c8d7b7a8878f87c3fe800524756
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', 'r') as desc: long_description = desc.read() setup( name='send_mail', version='0.0.2', description='Sending emails in python just became much easier', py_modules=['send_mail'], package_dir={'': 'src'}, classifiers=[ "Programming Language :: Python :: 3.6", ...
27.571429
79
0.708549
4a15d5666257811168e840f42cbe15dd26055259
4,397
py
Python
qpid/selector.py
gemmellr/qpid-python
e2ee8fd1dfb299d4dff68fe698e3f64414f00ab2
[ "Apache-2.0" ]
null
null
null
qpid/selector.py
gemmellr/qpid-python
e2ee8fd1dfb299d4dff68fe698e3f64414f00ab2
[ "Apache-2.0" ]
null
null
null
qpid/selector.py
gemmellr/qpid-python
e2ee8fd1dfb299d4dff68fe698e3f64414f00ab2
[ "Apache-2.0" ]
1
2021-01-28T17:43:54.000Z
2021-01-28T17:43: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...
26.172619
74
0.622015
4a15d6957255b6c810178a98172daa14c2644979
495
py
Python
World_1/005math.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/005math.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/005math.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
n1 = int(input('Digite um valor: ')) n2 = int(input('Outro valor: ')) so = n1 + n2 su = n1 - n2 m = n1 * n2 d = n1 / n2 di = n1 // n2 e = n1 ** n2 #print('A soma é {}, a subtração é {}, o produto é {}'.format(so, su, m)) print('A \033[4;30msoma\033[m é {}, a \033[4;31msubtração\033[m é {}, \n O \033[4;32mproduto\033[m ...
41.25
139
0.573737