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
4a011eb0ea7b466201169588425bd5340a0cfb89
2,121
py
Python
sinkhorn_663/log_domain_skh.py
congwei-yang/663-Final-Project
3502a00167075e8a7b7cca1da01e7352e2f1c674
[ "MIT" ]
null
null
null
sinkhorn_663/log_domain_skh.py
congwei-yang/663-Final-Project
3502a00167075e8a7b7cca1da01e7352e2f1c674
[ "MIT" ]
null
null
null
sinkhorn_663/log_domain_skh.py
congwei-yang/663-Final-Project
3502a00167075e8a7b7cca1da01e7352e2f1c674
[ "MIT" ]
2
2021-09-22T02:08:57.000Z
2021-11-23T23:14:39.000Z
from numpy import zeros, reshape, log, exp from numpy import sum as npsum from numba import jit @jit(nopython = True, parallel = True) def row_softmin(A, lam): """ Computes row softmin of a matrix :param A: Matrix to compute row softmin :param lam: Regularization parameter :return: Row softmin of a...
32.630769
99
0.609618
4a011ed76d75f5c4c07d528202461bf57d5df31e
120,052
py
Python
4. Sensitivity Analysis, Appendix A/PF_FP_EC_RB.py
rioarya/Land-Conversion_Woody-Biomass-Utilization-Scenarios
0042fd4333212e65735f3643ecb59971d1bd9466
[ "MIT" ]
null
null
null
4. Sensitivity Analysis, Appendix A/PF_FP_EC_RB.py
rioarya/Land-Conversion_Woody-Biomass-Utilization-Scenarios
0042fd4333212e65735f3643ecb59971d1bd9466
[ "MIT" ]
null
null
null
4. Sensitivity Analysis, Appendix A/PF_FP_EC_RB.py
rioarya/Land-Conversion_Woody-Biomass-Utilization-Scenarios
0042fd4333212e65735f3643ecb59971d1bd9466
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 13 15:21:55 2019 @author: raryapratama """ #%% #Step (1): Import Python libraries, set land conversion scenarios general parameters import numpy as np import matplotlib.pyplot as plt from scipy.integrate import quad import seaborn as sns import pandas as...
34.477886
268
0.706152
4a011f256228518dec00d3ab3b20f9fbe49bf7c1
487
py
Python
env/Lib/site-packages/plotly/validators/scatter3d/textfont/_size.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scatter3d/textfont/_size.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scatter3d/textfont/_size.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="size", parent_name="scatter3d.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
34.785714
87
0.64271
4a011f817b82ffc6c0c11887726e5d53ecc0fd75
1,576
py
Python
makeplugin.py
Kolbo5/FanFicFare
cf2ae9b12631bfeeb9198ca686f9e58d4579aeb3
[ "Apache-2.0" ]
1
2020-03-26T05:44:01.000Z
2020-03-26T05:44:01.000Z
makeplugin.py
Kolbo5/FanFicFare
cf2ae9b12631bfeeb9198ca686f9e58d4579aeb3
[ "Apache-2.0" ]
null
null
null
makeplugin.py
Kolbo5/FanFicFare
cf2ae9b12631bfeeb9198ca686f9e58d4579aeb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2018, Jim Miller # 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...
30.901961
89
0.631345
4a011ff0351bd9780d1a4806fa9d08a1520c43c0
2,979
py
Python
src/arch/x86/isa/insts/general_purpose/string/store_string.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
135
2016-10-21T03:31:49.000Z
2022-03-25T01:22:20.000Z
src/arch/x86/isa/insts/general_purpose/string/store_string.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
35
2017-03-10T17:57:46.000Z
2022-02-18T17:34:16.000Z
src/arch/x86/isa/insts/general_purpose/string/store_string.py
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
48
2016-12-08T12:03:13.000Z
2022-02-16T09:16:13.000Z
# Copyright (c) 2007-2008 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware imp...
42.557143
72
0.746224
4a011ff6ed749dd118f43874b5e435ac584d7438
18,132
py
Python
torchbenchmark/models/nvidia_deeprecommender/nvtrain.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/nvidia_deeprecommender/nvtrain.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/nvidia_deeprecommender/nvtrain.py
LaudateCorpus1/benchmark
2a8528f91dfbbd880e514b4deefa692a48c32af8
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017 NVIDIA Corporation # to run against cuda: # --gpu_ids 0 --path_to_train_data Netflix/N1W_TRAIN --path_to_eval_data Netflix/N1W_VALID --hidden_layers 512,512,1024 --non_linearity_type selu --batch_size 128 --logdir model_save --drop_prob 0.8 --optimizer momentum --lr 0.005 --weight_decay 0 --aug_st...
41.39726
327
0.627234
4a011ffe6a61ef32e0b2da05c4c16ff644700492
22,820
py
Python
salt/pillar/makostack.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
salt/pillar/makostack.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/pillar/makostack.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- ''' Simple and flexible YAML ext_pillar which can read pillar from within pillar. .. versionadded:: 2016.3.0 This custom saltstack ``ext_pillar`` is a direct ripoff of the 'stack' ext_pillar, simply ported to use mako instead of jinja2 for templating. It supports the following features: - mu...
40.822898
88
0.478834
4a01205e4b6d5d8ef32f2f11ae9af2fd2571c7bc
6,079
py
Python
onnx/backend/test/case/node/rnn.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
1
2022-02-04T07:45:14.000Z
2022-02-04T07:45:14.000Z
onnx/backend/test/case/node/rnn.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
onnx/backend/test/case/node/rnn.py
How-Wang/onnx
c940fa3fea84948e46603cab2f86467291443beb
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore from typing import Any, Tuple import onnx from ..base import Base from . import expect class ...
31.994737
132
0.536272
4a0121e3de116896df7f920580869efca35249f4
638
py
Python
manage.py
mohan488/restaurant_choices
03663aa2fd467ed3dfe0fa49097a68a0201adc37
[ "MIT" ]
null
null
null
manage.py
mohan488/restaurant_choices
03663aa2fd467ed3dfe0fa49097a68a0201adc37
[ "MIT" ]
null
null
null
manage.py
mohan488/restaurant_choices
03663aa2fd467ed3dfe0fa49097a68a0201adc37
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'restaurant_choices.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: r...
29
82
0.688088
4a0122409dae530dac8fe1b1ac5d2bb914a01cb8
3,500
py
Python
maipc/RNN/processing.py
nPironio/maipc
776e1d53063005d89ce463883c20ea5519a8b8d0
[ "BSD-3-Clause" ]
null
null
null
maipc/RNN/processing.py
nPironio/maipc
776e1d53063005d89ce463883c20ea5519a8b8d0
[ "BSD-3-Clause" ]
null
null
null
maipc/RNN/processing.py
nPironio/maipc
776e1d53063005d89ce463883c20ea5519a8b8d0
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Dict import madmom as md import numpy as np NN_DTYPE = np.float32 def get_blstms(RNN: str) -> List[md.ml.nn.layers.BidirectionalLayer]: """ Get the input and bidirectional LSTM layers of a trained model Args: RNN: path to madmom trained NN Returns: list of layers """ rnn = md.ml.nn....
33.653846
113
0.742
4a012266a945c4f73140631f54688f9ac0930f21
4,703
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/network/rnatparam.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/network/rnatparam.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/network/rnatparam.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
31.777027
188
0.729109
4a0123445b0e21f1682293beec7db416b9f03e54
9,351
py
Python
mkt/versions/tests/test_models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/versions/tests/test_models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/versions/tests/test_models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os.path from django.conf import settings import mock import path from nose.tools import eq_ import amo import amo.tests from mkt.files.models import File, Platform from mkt.files.tests.test_models import UploadTest as BaseUploadTest from mkt.site.fixtures import fixture from mkt.versio...
35.154135
81
0.64977
4a0124266c7321b851f607e697f6037e3800060c
2,373
py
Python
projects/causal_scene_generation/causal_model/game_characters/vae_svi/models/encoder.py
amoskowitz14/causalML
6c21033b05c82b3ba55efce6258c38669287eaa9
[ "MIT" ]
354
2018-12-21T15:20:21.000Z
2021-01-02T14:48:51.000Z
projects/causal_scene_generation/causal_model/game_characters/vae_svi/models/encoder.py
amoskowitz14/causalML
6c21033b05c82b3ba55efce6258c38669287eaa9
[ "MIT" ]
5
2021-04-15T20:38:12.000Z
2022-03-12T00:52:29.000Z
projects/causal_scene_generation/causal_model/game_characters/vae_svi/models/encoder.py
amoskowitz14/causalML
6c21033b05c82b3ba55efce6258c38669287eaa9
[ "MIT" ]
112
2019-05-21T22:10:43.000Z
2020-12-29T05:52:07.000Z
import torch import torch.nn as nn from utils.utils import Flatten def get_cnn_encoder(image_channels=3): return nn.Sequential( nn.Conv2d(image_channels, 8, kernel_size=5, stride=2), nn.BatchNorm2d(8), nn.ReLU(), nn.Conv2d(8, 16, kernel_size=5, stride=2), ...
38.274194
130
0.578592
4a01242b1bf68033e31c544442114ae45f0a33a2
3,020
py
Python
lib/jammy/models/azurefirewall/azure_firewall_nat_rule.py
girishmotwani/jammy
58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb
[ "MIT" ]
2
2020-11-06T07:46:37.000Z
2021-01-14T01:41:04.000Z
lib/jammy/models/azurefirewall/azure_firewall_nat_rule.py
girishmotwani/jammy
58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb
[ "MIT" ]
3
2020-12-28T20:43:11.000Z
2020-12-28T20:45:25.000Z
lib/jammy/models/azurefirewall/azure_firewall_nat_rule.py
girishmotwani/jammy
58ca1e741800781e6bebc761a0a8e4d4f8ef9bfb
[ "MIT" ]
1
2021-01-14T01:41:10.000Z
2021-01-14T01:41:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
47.1875
82
0.646026
4a01248d04fbfa176c165775352d140ccf742896
333
py
Python
src/bel_resources/__main__.py
pybel/bel-resources
c02be74fa305d085f825ea7996ff9cf208588219
[ "MIT" ]
null
null
null
src/bel_resources/__main__.py
pybel/bel-resources
c02be74fa305d085f825ea7996ff9cf208588219
[ "MIT" ]
null
null
null
src/bel_resources/__main__.py
pybel/bel-resources
c02be74fa305d085f825ea7996ff9cf208588219
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Entrypoint module, in case you use ``python3 -m bel_resources``. Why does this file exist, and why ``__main__``? For more info, read: - https://www.python.org/dev/peps/pep-0338/ - https://docs.python.org/3/using/cmdline.html#cmdoption-m """ from .cli import main if __name__ == '__main__'...
22.2
68
0.66967
4a01255f2fda692e136ab4f7050333701aac75ab
8,199
py
Python
procrastinate/psycopg2_connector.py
peopledoc/procrastinate
f7bc2a3016f6d5e5196368caf92b42320cfe1825
[ "MIT" ]
129
2019-09-14T16:04:52.000Z
2021-09-22T07:12:25.000Z
procrastinate/psycopg2_connector.py
peopledoc/procrastinate
f7bc2a3016f6d5e5196368caf92b42320cfe1825
[ "MIT" ]
389
2019-08-16T07:56:41.000Z
2021-09-27T12:56:24.000Z
procrastinate/psycopg2_connector.py
peopledoc/procrastinate
f7bc2a3016f6d5e5196368caf92b42320cfe1825
[ "MIT" ]
17
2019-09-21T09:14:00.000Z
2021-09-18T01:15:35.000Z
import contextlib import functools import logging import re from typing import Any, Callable, Dict, Optional import psycopg2 import psycopg2.errors import psycopg2.pool from psycopg2.extras import Json, RealDictCursor from procrastinate import connector, exceptions logger = logging.getLogger(__name__) def wrap_exc...
35.803493
88
0.629711
4a0126d5ef2af5643c1610ec7ad7a11063b3d496
1,587
py
Python
Graph/P02_DepthFirstSearch.py
akhileshsantoshwar/DataStructures-using-python
9465af2a40e05daabeed45be5ed118591b0e7150
[ "MIT" ]
null
null
null
Graph/P02_DepthFirstSearch.py
akhileshsantoshwar/DataStructures-using-python
9465af2a40e05daabeed45be5ed118591b0e7150
[ "MIT" ]
null
null
null
Graph/P02_DepthFirstSearch.py
akhileshsantoshwar/DataStructures-using-python
9465af2a40e05daabeed45be5ed118591b0e7150
[ "MIT" ]
null
null
null
# Author: AKHILESH SANTOSHWAR class Graph(): def __init__(self): self.vertex = {} # for printing the Graph vertexes def printGraph(self): print(self.vertex) for i in self.vertex.keys(): print(i,' -> ', ' -> '.join([str(j) for j in self.vertex[i]])) # for adding the...
25.596774
74
0.544423
4a0127dc06f6f34788b098fd9d05389fa6b82b26
6,378
py
Python
mobilenet_v2.py
foamliu/DeepIQA
f47c285b2f84806857af46cf04691c887492616c
[ "MIT" ]
2
2019-10-28T06:59:03.000Z
2019-10-28T11:48:25.000Z
mobilenet_v2.py
foamliu/DeepIQA
f47c285b2f84806857af46cf04691c887492616c
[ "MIT" ]
null
null
null
mobilenet_v2.py
foamliu/DeepIQA
f47c285b2f84806857af46cf04691c887492616c
[ "MIT" ]
null
null
null
import os import torch from torch import nn from torch.quantization import QuantStub, DeQuantStub from torchsummary import summary from config import device def _make_divisible(v, divisor, min_value=None): """ This function is taken from the original tf repo. It ensures that all layers have a channel nu...
35.631285
107
0.590624
4a012903bf088d4b245c470845ec9c9dc8b31530
1,924
py
Python
tests.py
ToniIvars/flask-url-shortener
77dd7b8739403bcf27d689445e6e760c4545e26c
[ "MIT" ]
null
null
null
tests.py
ToniIvars/flask-url-shortener
77dd7b8739403bcf27d689445e6e760c4545e26c
[ "MIT" ]
null
null
null
tests.py
ToniIvars/flask-url-shortener
77dd7b8739403bcf27d689445e6e760c4545e26c
[ "MIT" ]
null
null
null
import unittest from app import app import json class URLTests(unittest.TestCase): def setUp(self): app.config['TESTING'] = True app.config['WTF_CSRF_ENABLED'] = False app.config['DEBUG'] = False self.app = app.test_client() def tearDown(self): with open('urls.json'...
37.72549
108
0.640852
4a012a2587f11de074ce1f3c726b9554865e06c9
1,526
py
Python
Interpolation/Other/Show masters of next glyph.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/Other/Show masters of next glyph.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Interpolation/Other/Show masters of next glyph.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Show Masters of Next Glyph # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from builtins import str __doc__=""" Shows all masters for the next glyph. """ from Foundation import NSRange from PyObjCTools.AppHelper import callAfter zeroPosition = NSRange() zeroPositi...
33.173913
95
0.787025
4a012ae0263dca7df26be3da8f9f7c4c21326393
655
pyde
Python
sketches/schwellenwert/schwellenwert.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/schwellenwert/schwellenwert.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/schwellenwert/schwellenwert.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint def setup(): global akt size(800, 640) this.surface.setTitle("Schwellenwert-Akt") akt = loadImage("akt.jpg"); image(akt, 0, 0) noLoop() def index(x, y): return(x + y * akt.width) def draw(): akt.filter(GRAY) akt.loadPixels() for y in range(a...
20.46875
52
0.500763
4a012b348e93f9fddaaedf1b4e69e6c3ed233433
2,765
py
Python
scitbx/math/tests/tst_uniform_rotation_matrix.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
scitbx/math/tests/tst_uniform_rotation_matrix.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
scitbx/math/tests/tst_uniform_rotation_matrix.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function import math, random from scitbx import matrix from scitbx.array_family import flex from six.moves import range # ----------------------------------------------------------------------------- # simplified form of surface integral for spherical harmonic (l...
31.781609
79
0.585172
4a012b698d6c219105db0597dcd52eb765507d38
556
py
Python
preta.py
Develable/Rutap-Bot-2019
e141cc2cb60572eb35f9e952679d511d66edbba3
[ "MIT" ]
2
2020-05-23T09:44:41.000Z
2020-05-23T11:15:32.000Z
preta.py
develable/Rutap-Bot-2019
e141cc2cb60572eb35f9e952679d511d66edbba3
[ "MIT" ]
null
null
null
preta.py
develable/Rutap-Bot-2019
e141cc2cb60572eb35f9e952679d511d66edbba3
[ "MIT" ]
1
2020-10-31T13:58:45.000Z
2020-10-31T13:58:45.000Z
# -*- coding:utf-8 -*- ######################################################### # Rutap Bot 2019 Timeform Module (By. Preta) # # 모든 저작권은 Preta가 소유합니다. 모든 권리를 보유합니다. # ######################################################### import time, datetime def timeform(dt1): now = datetime.datetime.now() ...
30.888889
57
0.478417
4a012ca769afdf6ce35e5f5aabe09729e5e1db74
4,228
py
Python
manage_aws_services.py
jumapeter/aws_services
cb13c37983aebeb1e2d1e0b6307e168aab47970a
[ "MIT" ]
null
null
null
manage_aws_services.py
jumapeter/aws_services
cb13c37983aebeb1e2d1e0b6307e168aab47970a
[ "MIT" ]
null
null
null
manage_aws_services.py
jumapeter/aws_services
cb13c37983aebeb1e2d1e0b6307e168aab47970a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from configparser import ConfigParser import boto3 import argparse # Read & parse commandline arguments parser = argparse.ArgumentParser() parser.add_argument('-s', '--service', dest='aws_service', choices=['iam', 'ec2', 'rds', 's3', 'ecr', 'ecs'], help="List instances of AWS services", r...
33.555556
171
0.595317
4a012cc058495a05c74b625b04f3d34d91d0fdeb
6,278
py
Python
src/yolov5/utils/downloads.py
etiennecollin/glycine-max-mitosis-ml
cacd68f2a56df078cb1193bcc7ed4a0f86a659d4
[ "MIT" ]
1
2022-02-17T13:37:47.000Z
2022-02-17T13:37:47.000Z
src/yolov5/utils/downloads.py
etiennecollin/glycine-max-mitosis-ml
cacd68f2a56df078cb1193bcc7ed4a0f86a659d4
[ "MIT" ]
null
null
null
src/yolov5/utils/downloads.py
etiennecollin/glycine-max-mitosis-ml
cacd68f2a56df078cb1193bcc7ed4a0f86a659d4
[ "MIT" ]
1
2022-02-16T02:23:09.000Z
2022-02-16T02:23:09.000Z
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Download utils """ import os import platform import subprocess import time import urllib from pathlib import Path from zipfile import ZipFile import requests import torch def gsutil_getsize(url=''): # gs://bucket/file size https://cloud.google.com/storage/docs/gsu...
39.987261
120
0.617713
4a012cddb29e4e546bf46971b113a335f343b574
651
py
Python
ESP32/FT.py
Redns/WO
4996f768623b2f26dd5e765d87d2d7d6074af0af
[ "MIT" ]
1
2021-05-09T10:26:42.000Z
2021-05-09T10:26:42.000Z
ESP32/FT.py
Redns/WO
4996f768623b2f26dd5e765d87d2d7d6074af0af
[ "MIT" ]
null
null
null
ESP32/FT.py
Redns/WO
4996f768623b2f26dd5e765d87d2d7d6074af0af
[ "MIT" ]
null
null
null
from machine import UART import network, usocket, time #创建wlan对象 wl = network.WLAN(network.STA_IF) wl.active(True) uart = UART(2, baudrate=115200, rx=16, tx=17, timeout=10) #服务器和ESP32应在同一个局域网下,否则无法通信 wl.connect('wifi_name', 'wifi_password') #在WIFI连接完毕前不能连接socket while not wl.isconnected(): pass #创建usocket对象并...
17.131579
57
0.677419
4a012d5a155ee2e74662bfe204b79723a1d0adbe
8,106
py
Python
advrush/adv_train.py
nutellamok/advrush
a15b26a4ef4e919783676b67647ec0ec8723d3b6
[ "Apache-2.0" ]
8
2021-12-10T02:52:12.000Z
2022-03-05T01:51:48.000Z
advrush/adv_train.py
nutellamok/advrush
a15b26a4ef4e919783676b67647ec0ec8723d3b6
[ "Apache-2.0" ]
null
null
null
advrush/adv_train.py
nutellamok/advrush
a15b26a4ef4e919783676b67647ec0ec8723d3b6
[ "Apache-2.0" ]
4
2021-12-10T03:03:46.000Z
2022-03-24T08:45:26.000Z
import os import sys import time import glob import numpy as np import torch import utils import logging import argparse import torch.nn as nn import genotypes import torch.utils import torchvision.datasets as dset import torch.backends.cudnn as cudnn from torch.autograd import Variable from model import NetworkCIFAR ...
37.527778
100
0.697138
4a012dfb707def9476d729941e068f808e192c3d
3,826
py
Python
cyber/python/cyber_py/examples/record.py
dustinksi/Edith
09f151612fadd2155b89c208e2af91c41d837a03
[ "Apache-2.0" ]
3
2020-02-07T13:09:50.000Z
2020-08-31T12:37:48.000Z
cyber/python/cyber_py/examples/record.py
dustinksi/Edith
09f151612fadd2155b89c208e2af91c41d837a03
[ "Apache-2.0" ]
null
null
null
cyber/python/cyber_py/examples/record.py
dustinksi/Edith
09f151612fadd2155b89c208e2af91c41d837a03
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # **************************************************************************** # Copyright 2020 The Edith Author. 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 o...
32.423729
78
0.655776
4a012ea30201dc246202f4696f2759f385e32e71
13,794
py
Python
autotest/utilities/test_gdal_rasterize.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
2
2018-03-22T22:31:00.000Z
2021-07-16T01:34:47.000Z
autotest/utilities/test_gdal_rasterize.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
3
2019-02-27T00:43:06.000Z
2019-06-28T21:57:10.000Z
autotest/utilities/test_gdal_rasterize.py
trundev/gdal
d5777940975f2784980ef0b7561eeeb655fd0ab5
[ "MIT" ]
1
2021-11-21T02:33:51.000Z
2021-11-21T02:33:51.000Z
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: gdal_rasterize testing # Author: Even Rouault <even dot rouault @ spatialys.com> # ########################################################...
33.808824
189
0.633464
4a012f85055fa4c3ee8730577192c7505f7088a1
6,704
py
Python
domainbed/hparams_registry.py
arobey1/mbdg
b4e768a6d31ab1e2cb0f0a3aad76832895068876
[ "MIT" ]
27
2021-06-16T23:59:49.000Z
2022-03-15T16:17:54.000Z
domainbed/hparams_registry.py
arobey1/mbdg
b4e768a6d31ab1e2cb0f0a3aad76832895068876
[ "MIT" ]
2
2021-08-30T12:23:08.000Z
2021-11-16T19:35:26.000Z
domainbed/hparams_registry.py
arobey1/mbdg
b4e768a6d31ab1e2cb0f0a3aad76832895068876
[ "MIT" ]
5
2021-06-17T07:14:18.000Z
2022-01-13T04:00:06.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import numpy as np from domainbed.lib import misc import os def _define_hparam(hparams, hparam_name, default_val, random_val_fn): hparams[hparam_name] = (hparams, hparam_name, default_val, random_val_fn) def _hparams(algorithm, dataset, rand...
39.204678
88
0.614708
4a012fc7324674457ef6d7cb2c525a1617939794
161
py
Python
mundo1/parte2/ex012.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo1/parte2/ex012.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo1/parte2/ex012.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
p = float(input("Qual é o preço do produto? R$")) print(f"O produto que custava R${p}, na promoção com desconto de 5% vai custar R${(p - ((p * 5)/100)):0.2f}.")
53.666667
110
0.627329
4a012fe6297787eb507ff35a66296c9fea2f0dcf
278
py
Python
Music.py
lifeofbaka/Star-Quest
73d6d901214a5c0a27417d13a1558ee3e7aafcfe
[ "MIT" ]
null
null
null
Music.py
lifeofbaka/Star-Quest
73d6d901214a5c0a27417d13a1558ee3e7aafcfe
[ "MIT" ]
null
null
null
Music.py
lifeofbaka/Star-Quest
73d6d901214a5c0a27417d13a1558ee3e7aafcfe
[ "MIT" ]
null
null
null
import pygame as pg import os pg.init() pg.mixer.init() # Returns error. Music only plays a bit like sound when player keys pressed. def My_Room_Music(): sound = pg.mixer.Sound(os.path.join('Music', 'Video Dungeon Crawl.wav')) sound.set_volume(0.05) sound.play(-1)
27.8
77
0.708633
4a0130a0172500d69fd22a351e028794e82ecd63
15,071
py
Python
docs/conf.py
loven-doo/aiohttp
01ef966b261bc6a8934b3c53c79c92f019b404a7
[ "Apache-2.0" ]
1
2020-08-12T01:31:16.000Z
2020-08-12T01:31:16.000Z
docs/conf.py
loven-doo/aiohttp
01ef966b261bc6a8934b3c53c79c92f019b404a7
[ "Apache-2.0" ]
202
2021-01-04T03:40:45.000Z
2022-03-31T08:08:47.000Z
docs/conf.py
loven-doo/aiohttp
01ef966b261bc6a8934b3c53c79c92f019b404a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # aiohttp documentation build configuration file, created by # sphinx-quickstart on Wed Mar 5 12:35:35 2014. # # 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 file. # # Al...
34.806005
119
0.659412
4a01312d7d6cbb266d5e8ccb6aedbb5607369d71
78,949
py
Python
tests/unit/gapic/errorreporting_v1beta1/test_error_stats_service.py
Ashish-Maradapa/python-error-reporting
c8e91b01908ecabe4fb51307970195f15916e3b7
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/errorreporting_v1beta1/test_error_stats_service.py
Ashish-Maradapa/python-error-reporting
c8e91b01908ecabe4fb51307970195f15916e3b7
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/errorreporting_v1beta1/test_error_stats_service.py
Ashish-Maradapa/python-error-reporting
c8e91b01908ecabe4fb51307970195f15916e3b7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.066056
135
0.676905
4a01327cdaa0554f0ccab7e202c8befbad762cad
5,500
py
Python
Ryu/transinfo_server.py
JoshuaYu-crash/C4EP2-2021
62e2e5a2fb396c598e7e8a265515c342fb78f63e
[ "MIT" ]
null
null
null
Ryu/transinfo_server.py
JoshuaYu-crash/C4EP2-2021
62e2e5a2fb396c598e7e8a265515c342fb78f63e
[ "MIT" ]
null
null
null
Ryu/transinfo_server.py
JoshuaYu-crash/C4EP2-2021
62e2e5a2fb396c598e7e8a265515c342fb78f63e
[ "MIT" ]
null
null
null
from sqlalchemy import Column, String, create_engine, Integer, Boolean from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base import transinfo_pb2_grpc import transinfo_pb2 import logging import grpc import time from concurrent import futures import redis from config import Conf...
28.795812
229
0.631818
4a0132fa86de3baa6fbdcf0b327f45144edf7358
376
py
Python
helper.py
aayushgupta97/advent_of_code_2020
dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c
[ "MIT" ]
null
null
null
helper.py
aayushgupta97/advent_of_code_2020
dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c
[ "MIT" ]
null
null
null
helper.py
aayushgupta97/advent_of_code_2020
dbf5291f1cf4bd5855bbc54cb560ac3c7a7ac26c
[ "MIT" ]
null
null
null
import functools def printsol(func): @functools.wraps(func) def wrapper(*args, **kwargs): ret = func(*args, **kwargs) print("The Solution to the problem for {} is {}".format(func.__name__, ret)) return wrapper def read_text_file(fname): with open(f"data/{fname}", "r") as f: r...
26.857143
84
0.619681
4a01339cefcbb653737df4d5c619076c3c02fca5
1,398
py
Python
ARCH_FILES/src/main.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
ARCH_FILES/src/main.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
ARCH_FILES/src/main.py
Andrew95496/hypergraze
224719eb661a4069923355930ef3b5f0aca44dde
[ "MIT" ]
null
null
null
# import sys # sys.path.append('/Users/drewskikatana/hypergraze/config') # sys.path.append('/Users/drewskikatana/hypergraze/modules') # import re # import psycopg2 # # ? My modules # from configs import config as cf # from modules import get_text # def main(): # # Regex Code # try: # text = get_tex...
22.548387
79
0.54578
4a0133d317dcb508959429bc3cf189417ab179ec
1,124
py
Python
hbase_kernel/images.py
f-cg/hbase_kernel
d107719d51c8f72b0c6323dab43b5ec9e9ec80ea
[ "BSD-3-Clause" ]
null
null
null
hbase_kernel/images.py
f-cg/hbase_kernel
d107719d51c8f72b0c6323dab43b5ec9e9ec80ea
[ "BSD-3-Clause" ]
null
null
null
hbase_kernel/images.py
f-cg/hbase_kernel
d107719d51c8f72b0c6323dab43b5ec9e9ec80ea
[ "BSD-3-Clause" ]
null
null
null
import base64 import imghdr import os # from IPython. _TEXT_SAVED_IMAGE = "hbase_kernel: saved image data to:" image_setup_cmd = """ display () { TMPFILE=$(mktemp ${TMPDIR-/tmp}/bash_kernel.XXXXXXXXXX) cat > $TMPFILE echo "%s $TMPFILE" >&2 } """ % _TEXT_SAVED_IMAGE def display_data_for_image(filename):...
22.48
59
0.618327
4a0134e8b0f2730e110dde84cbc42edaa5b05e5a
1,061
py
Python
core/jobs/types/feedback_validation_errors.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
5,422
2015-08-14T01:56:44.000Z
2022-03-31T23:31:56.000Z
core/jobs/types/feedback_validation_errors.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
14,178
2015-08-14T05:21:45.000Z
2022-03-31T23:54:10.000Z
core/jobs/types/feedback_validation_errors.py
nbaddam/oppia
e58b81e57007f25537ba8ed71b42bfd9ae661799
[ "Apache-2.0" ]
3,574
2015-08-14T04:20:06.000Z
2022-03-29T01:52:37.000Z
# coding: utf-8 # # Copyright 2021 The Oppia 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 requi...
35.366667
74
0.755891
4a013562c6e3988dad025463ff932e03506bad1d
597
py
Python
M4nifest01.py
password520/M4nifest0_CAM_Hacking
b7841afb00cd87ad33afc947fca1203fea03cd16
[ "MIT" ]
7
2021-09-08T10:48:24.000Z
2022-03-29T06:43:56.000Z
M4nifest01.py
M4nifest0-Black-Hat-Hacking/M4nifest0_CAM_Hacking
8196b76650bcea20b8f43cf7b9dd1ffa2d05000a
[ "MIT" ]
null
null
null
M4nifest01.py
M4nifest0-Black-Hat-Hacking/M4nifest0_CAM_Hacking
8196b76650bcea20b8f43cf7b9dd1ffa2d05000a
[ "MIT" ]
4
2021-09-08T10:48:29.000Z
2021-11-15T23:08:51.000Z
print(colored(""" ███╗ ███╗██╗ ██╗███╗ ██╗██╗███████╗███████╗███████╗████████╗ ██████╗ ████╗ ████║██║ ██║████╗ ██║██║██╔════╝██╔════╝██╔════╝╚══██╔══╝██╔═████╗ ██╔████╔██║███████║██╔██╗ ██║██║█████╗ █████╗ ███████╗ ██║ ██║██╔██║ ██║╚██╔╝██║╚════██║██║╚██╗██║██║██╔══╝ ██╔══╝ ╚════██║ ██║ ██...
39.8
76
0.026801
4a01367cc209e568e00838246ff94d2c3091c9b9
33,961
py
Python
homeassistant/components/fritz/common.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/fritz/common.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/fritz/common.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for AVM FRITZ!Box classes.""" from __future__ import annotations from collections.abc import Callable, ValuesView from dataclasses import dataclass, field from datetime import datetime, timedelta from functools import partial import logging from types import MappingProxyType from typing import Any, TypedDic...
33.06816
128
0.612556
4a01370c11dbc0d92d4323ffbc146fab61cfb317
3,888
py
Python
preprocess.py
ahforoughi/face-identification
d148c08e744f0224f29991bbb6c416d048d7c11d
[ "MIT" ]
null
null
null
preprocess.py
ahforoughi/face-identification
d148c08e744f0224f29991bbb6c416d048d7c11d
[ "MIT" ]
null
null
null
preprocess.py
ahforoughi/face-identification
d148c08e744f0224f29991bbb6c416d048d7c11d
[ "MIT" ]
null
null
null
from PIL import Image from matplotlib import image import numpy as np from numpy.linalg import norm import numpy as np import cv2 import math from autocrop import Cropper cropper = Cropper() def detect_face(pixels, mtcnn_detector, retina_detector): # check which model is used check_mtcnn = 1 # detect f...
30.375
102
0.634774
4a013773ddb7456ed7048624d1a4cf9e49e809be
376
py
Python
examples/03_interval.py
lucasb-eyer/cherrypy-spam-protector
eea2ebc8ae7da068429d252bceb8e307e4821894
[ "Unlicense" ]
1
2017-11-08T16:39:55.000Z
2017-11-08T16:39:55.000Z
examples/03_interval.py
lucasb-eyer/cherrypy-spam-protector
eea2ebc8ae7da068429d252bceb8e307e4821894
[ "Unlicense" ]
null
null
null
examples/03_interval.py
lucasb-eyer/cherrypy-spam-protector
eea2ebc8ae7da068429d252bceb8e307e4821894
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import cherrypy from spamprotector import IPProtector cherrypy.tools.protect_low_frequency = IPProtector(interval_dt=15.0, interval_reqs=5, mindt_seconds=None) class MyView(object): @cherrypy.expose @cherrypy.tools.protect_low_frequency() def index(self): return "You may ham...
25.066667
105
0.763298
4a0137f75f2a8b8d01692085dc17be617ac3c983
13,795
py
Python
tests/pmap_test.py
proteneer/jax
52d73e43ef5cb9e4fe4cca715a35f190fee28c89
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/pmap_test.py
proteneer/jax
52d73e43ef5cb9e4fe4cca715a35f190fee28c89
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/pmap_test.py
proteneer/jax
52d73e43ef5cb9e4fe4cca715a35f190fee28c89
[ "ECL-2.0", "Apache-2.0" ]
1
2020-03-29T04:19:27.000Z
2020-03-29T04:19:27.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.321256
81
0.599855
4a013a3c1fc4246f01d43679d4eefc7a023de50f
23,062
py
Python
userbot/plugins/archive.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
userbot/plugins/archive.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
userbot/plugins/archive.py
RiderFA/Dark_Userbot
480df539bfeae994d59649a54d2478ed24b445bb
[ "MIT" ]
null
null
null
""" usage: reply with file : .rar , .7z create archived file unzip usage: reply with zipped file .unzipper Coded by @furki """ import asyncio import os import shutil import tarfile import time import zipfile from datetime import datetime import patoolib from hachoir.metadata import extractMetadata from hachoir.parse...
39.899654
120
0.5405
4a013bce9c88e0a77468cf5718e7e2aa5eff5467
6,516
py
Python
build/scripts/fetch_from_sandbox.py
schmidek/catboost
cb598acb045f13307c46fb5c32b49bbd78cfd122
[ "Apache-2.0" ]
null
null
null
build/scripts/fetch_from_sandbox.py
schmidek/catboost
cb598acb045f13307c46fb5c32b49bbd78cfd122
[ "Apache-2.0" ]
null
null
null
build/scripts/fetch_from_sandbox.py
schmidek/catboost
cb598acb045f13307c46fb5c32b49bbd78cfd122
[ "Apache-2.0" ]
null
null
null
import urllib2 import random import sys import time import os import logging import subprocess import json import itertools import optparse import fetch_from ORIGIN_SUFFIX = '?origin=fetch-from-sandbox' MDS_PREFIX = 'http://storage-int.mds.yandex.net/get-sandbox/' def parse_args(): parser = optparse.OptionPars...
30.448598
138
0.672652
4a013c2b2f035128d2474281a1d6c0d82469246d
3,852
py
Python
var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
mt-empty/spack
4573261de5b32bb22289752b9023aa767b50b700
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import platform import subprocess from spack import * class IntelOneapiMpi(IntelOneApiLibraryPackage): """Intel on...
40.978723
127
0.638629
4a013d15be658043b8473ea44f1aad0183bf5d4c
246
py
Python
Leetcode/0754. Reach a Number/0754.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0754. Reach a Number/0754.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0754. Reach a Number/0754.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def reachNumber(self, target: int) -> int: ans = 0 pos = 0 target = abs(target) while pos < target: ans += 1 pos += ans while (pos - target) & 1: ans += 1 pos += ans return ans
15.375
44
0.504065
4a013e24748f76dbed2d84b2d87828d5e8558353
9,695
py
Python
conformer/preprocess/ksponspeech.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
conformer/preprocess/ksponspeech.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
conformer/preprocess/ksponspeech.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
import os import re import unicodedata from typing import Union import pandas as pd from tqdm import tqdm from conformer.preprocess.types import KsponSpeechVocabType, SpeechModeType PERCENT_FILES = { '087797': '퍼센트', '215401': '퍼센트', '284574': '퍼센트', '397184': '퍼센트', '501006': '프로', '502173':...
33.663194
110
0.537597
4a013ed8539d78cfc9d24a1c982d5dd3a9e76559
2,236
py
Python
mrp/examples/11_elasticsearch/a02es_indexer.py
colesbury/fairo
9e50a3aa7369c68c80e84d80abd5fcdee8a9277a
[ "MIT" ]
null
null
null
mrp/examples/11_elasticsearch/a02es_indexer.py
colesbury/fairo
9e50a3aa7369c68c80e84d80abd5fcdee8a9277a
[ "MIT" ]
null
null
null
mrp/examples/11_elasticsearch/a02es_indexer.py
colesbury/fairo
9e50a3aa7369c68c80e84d80abd5fcdee8a9277a
[ "MIT" ]
null
null
null
"""Demo AlephZero logs -> ElasticSearch.""" import a0 import elasticsearch import json import signal class A02ES_Indexer: def __init__(self): # Connect to the local elasticsearch engine. self._es = elasticsearch.Elasticsearch( "http://localhost:9200", request_timeout=10 ) ...
31.055556
84
0.571109
4a01403583d133c46b12c754de90e3874951dabb
6,897
py
Python
neutron/tests/api/test_extension_driver_port_security.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2016-03-25T21:13:13.000Z
2016-03-25T21:13:13.000Z
neutron/tests/api/test_extension_driver_port_security.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2021-03-21T11:39:22.000Z
2021-03-21T11:39:22.000Z
neutron/tests/api/test_extension_driver_port_security.py
wwriverrat/neutron
1d0aadb6fcf40048e899df6688bda98744c2a999
[ "Apache-2.0" ]
1
2021-03-21T11:37:18.000Z
2021-03-21T11:37:18.000Z
# Copyright 2015 OpenStack Foundation # 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 requ...
44.496774
79
0.679861
4a01403e46de9f38e45ae57bc08d4a42b2a85bbf
4,278
py
Python
model/mnist_dataset.py
MapleLeafKiller/tensorflow-triplet-loss
ac349e344a647c5aeed7248926a76a0fe64f4cb7
[ "MIT" ]
null
null
null
model/mnist_dataset.py
MapleLeafKiller/tensorflow-triplet-loss
ac349e344a647c5aeed7248926a76a0fe64f4cb7
[ "MIT" ]
null
null
null
model/mnist_dataset.py
MapleLeafKiller/tensorflow-triplet-loss
ac349e344a647c5aeed7248926a76a0fe64f4cb7
[ "MIT" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
37.858407
95
0.675082
4a01422460217cbfd0917c6efd9dca8b1ca89062
250
py
Python
snapchat_problems/problem_1.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
snapchat_problems/problem_1.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
snapchat_problems/problem_1.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
"""This problem was asked by Snapchat. Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required. For example, given [(30, 75), (0, 50), (60, 150)], you should return 2. """
50
75
0.724
4a014229367e4539de28c131ba01603c8169bb33
70
py
Python
gumo/dev_server/infrastrucutre/__init__.py
gumo-py/gumo-dev-server
a8c5c92dcda022f7e640ecc525b4f0ebb0ed4cdd
[ "MIT" ]
null
null
null
gumo/dev_server/infrastrucutre/__init__.py
gumo-py/gumo-dev-server
a8c5c92dcda022f7e640ecc525b4f0ebb0ed4cdd
[ "MIT" ]
29
2019-07-27T09:38:59.000Z
2021-06-25T15:24:17.000Z
gumo/dev_server/infrastrucutre/__init__.py
gumo-py/gumo-dev-server
a8c5c92dcda022f7e640ecc525b4f0ebb0ed4cdd
[ "MIT" ]
1
2019-08-23T00:49:39.000Z
2019-08-23T00:49:39.000Z
from gumo.core.infrastructure import MockAppEngineEnvironment # noqa
35
69
0.857143
4a014283c8650112323007992fe702702707ad66
5,967
py
Python
venv/Lib/site-packages/setuptools/command/sdist.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1,318
2019-07-11T10:34:39.000Z
2022-03-29T15:05:19.000Z
venv/Lib/site-packages/setuptools/command/sdist.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
387
2019-09-05T16:33:09.000Z
2022-03-31T10:43:39.000Z
venv/Lib/site-packages/setuptools/command/sdist.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
66
2019-11-11T15:33:12.000Z
2022-03-01T07:55:55.000Z
from distutils import log import distutils.command.sdist as orig import os import sys import io import contextlib from .py36compat import sdist_add_defaults import pkg_resources _default_revctrl = list def walk_revctrl(dirname=''): """Find all files under revision control""" for ep in pkg_resources.iter_en...
31.405263
75
0.593431
4a01435de1378c683fac4e5d77b6d9e031cf8ea8
538
py
Python
dpad_manager.py
puzzlestory/royal-flush-telegram-bot
b06b84665b3efcce77144083217ab66b1be20643
[ "MIT" ]
3
2021-07-07T16:56:14.000Z
2021-08-15T19:07:15.000Z
dpad_manager.py
puzzlestory/t-royal-flush-telegram-bot
b06b84665b3efcce77144083217ab66b1be20643
[ "MIT" ]
null
null
null
dpad_manager.py
puzzlestory/t-royal-flush-telegram-bot
b06b84665b3efcce77144083217ab66b1be20643
[ "MIT" ]
1
2020-10-19T17:47:58.000Z
2020-10-19T17:47:58.000Z
from json import loads from urllib import request, parse from env import DP_URL def write_dp(sub_page, content): full_url = ''.join([DP_URL, sub_page]) data = parse.urlencode({'text' : content}).encode('utf-8') req = request.Request(full_url, data) with request.urlopen(req) as response: return res...
26.9
60
0.697026
4a0144779b218e7f4e2baac4f37ac5aac55b93c9
1,193
py
Python
yapylib/tools/generate_words.py
twocucao/YaPyLib
8fe56f35b9f45d3c7f688ab5842c3a1e50688e01
[ "MIT" ]
2
2017-05-21T01:58:37.000Z
2018-02-23T15:35:14.000Z
yapylib/tools/generate_words.py
twocucao/YaPyLib
8fe56f35b9f45d3c7f688ab5842c3a1e50688e01
[ "MIT" ]
1
2021-06-08T19:12:08.000Z
2021-06-08T19:12:08.000Z
yapylib/tools/generate_words.py
twocucao/YaPyLib
8fe56f35b9f45d3c7f688ab5842c3a1e50688e01
[ "MIT" ]
null
null
null
""" 1. 从字幕中抽取所有单词,并且进行还原 2. """ import os import re from collections import Counter def get_all_words(filename): """ :param filename: :return: """ print(filename) all_words = set() try: all_words = re.findall("[a-zA-Z]+", open(filename).read(), flags=re.ASCII) except Exception:...
24.346939
98
0.588433
4a0144b33ef8766f696d88d0cb803c91ac3c89f2
14,849
py
Python
python/unitytrainers/bc/trainer.py
jacksonJabba/ActiveRagdollAssaultCourse
2969a341ccf2036ef74c900653c2578125a6e6bc
[ "Apache-2.0" ]
1
2018-07-21T20:44:36.000Z
2018-07-21T20:44:36.000Z
python/unitytrainers/bc/trainer.py
Sohojoe/ActiveRagdollDeliberatePractice
20c50e5bd4f15a27f31ee82393f8f43eec3bd70b
[ "Apache-2.0" ]
null
null
null
python/unitytrainers/bc/trainer.py
Sohojoe/ActiveRagdollDeliberatePractice
20c50e5bd4f15a27f31ee82393f8f43eec3bd70b
[ "Apache-2.0" ]
null
null
null
# # Unity ML-Agents Toolkit # ## ML-Agent Learning (Imitation) # Contains an implementation of Behavioral Cloning Algorithm import logging import os import numpy as np import tensorflow as tf from unityagents import AllBrainInfo from unitytrainers.bc.models import BehavioralCloningModel from unitytrainers.buffer imp...
48.526144
121
0.630278
4a0144cc51b02001045db15e2663f12aa11133ed
631
py
Python
Hello.py
kristy2018/PRACTICA1.1
b5519facd235d3bd45afe42fddf47a8bf2cd636a
[ "MIT" ]
null
null
null
Hello.py
kristy2018/PRACTICA1.1
b5519facd235d3bd45afe42fddf47a8bf2cd636a
[ "MIT" ]
null
null
null
Hello.py
kristy2018/PRACTICA1.1
b5519facd235d3bd45afe42fddf47a8bf2cd636a
[ "MIT" ]
null
null
null
from pade.misc.utility import display_message from pade.misc.common import set_ams, start_loop from pade.core.agent import Agent from pade.acl.aid import AID class AgenteHelloWorld(Agent): def __init__(self, aid): super(AgenteHelloWorld, self).__init__(aid=aid, debug=False) display_message(self.ai...
27.434783
68
0.719493
4a0144ffcf29cf22ba0363503849cc72c0e95d9e
12,039
py
Python
code/python/TimeSeriesAPIforDigitalPortals/v2/fds/sdk/TimeSeriesAPIforDigitalPortals/model/vendor_chart_iq_time_series_eod_list_meta.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/TimeSeriesAPIforDigitalPortals/v2/fds/sdk/TimeSeriesAPIforDigitalPortals/model/vendor_chart_iq_time_series_eod_list_meta.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/TimeSeriesAPIforDigitalPortals/v2/fds/sdk/TimeSeriesAPIforDigitalPortals/model/vendor_chart_iq_time_series_eod_list_meta.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.T...
44.921642
158
0.58975
4a01455a7173574cc93985126b672a13357269be
58,838
py
Python
sdk/python/pulumi_aws/opsworks/static_web_layer.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/opsworks/static_web_layer.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/opsworks/static_web_layer.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
51.748461
258
0.690608
4a014568b422f6c0b610015eea2a842d8ab46ef2
656
py
Python
GWP/2D/1.1.2/resample/cor.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
GWP/2D/1.1.2/resample/cor.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
GWP/2D/1.1.2/resample/cor.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
##!/usr/bin/python import numpy as np import pylab as plt import seaborn as sns sns.set_context('poster') plt.subplot(1,1,1) data = np.genfromtxt(fname='cor.dat') for x in range(1,data.shape[-1]): plt.plot(data[:,0],data[:,x],'k--',lw=2) plt.xlabel('$time$') plt.ylabel('$C(t)$') #plt.title('traj') #plt.subp...
21.16129
63
0.603659
4a0145b9a9f5cc3818640d0aeae3806cf4d572f0
379
py
Python
sp_api/base/sales_enum.py
Camille-cmd/python-amazon-sp-api
00a169a0b16700e1498550742f384de74fca4aa3
[ "MIT" ]
213
2020-12-20T09:43:47.000Z
2022-03-30T10:00:41.000Z
sp_api/base/sales_enum.py
Camille-cmd/python-amazon-sp-api
00a169a0b16700e1498550742f384de74fca4aa3
[ "MIT" ]
173
2021-01-02T10:24:27.000Z
2022-03-31T08:27:48.000Z
sp_api/base/sales_enum.py
Camille-cmd/python-amazon-sp-api
00a169a0b16700e1498550742f384de74fca4aa3
[ "MIT" ]
109
2021-01-06T03:16:47.000Z
2022-03-24T11:41:29.000Z
from enum import Enum class Granularity(str, Enum): HOUR = 'Hour' DAY = 'Day' WEEK = 'Week' MONTH = 'Month' YEAR = 'Year' TOTAL = 'Total' class BuyerType(str, Enum): B2B = 'B2B' # Business to business. B2C = 'B2C' # Business to customer. ALL = 'All' # Both of above class FirstD...
15.791667
39
0.577836
4a0145da101f32c2a7f335df35cd0a891186b29c
869
py
Python
rect_win.py
aletbm/PruebaPSD
8038ed129e172c6a28886e459d2f7d2be822e0e2
[ "MIT" ]
null
null
null
rect_win.py
aletbm/PruebaPSD
8038ed129e172c6a28886e459d2f7d2be822e0e2
[ "MIT" ]
null
null
null
rect_win.py
aletbm/PruebaPSD
8038ed129e172c6a28886e459d2f7d2be822e0e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 26 20:44:40 2020 @author: Mariano Llamedo Soria llamedom@frba.utn.edu.ar Analizamos el módulo de una ventana rectangular de acuerdo al resultado calculado algebraicamente. """ import numpy as np import matplotlib.pyplot as plt import...
27.15625
104
0.627158
4a0145fce79484389cf7ba42ab97d17c7cc56b9c
17,653
py
Python
sonnet_finder.py
mbollmann/sonnet-finder
8f74b0ce21b62309f33159474a4130be23b0fa87
[ "MIT" ]
10
2021-08-20T10:36:15.000Z
2021-11-03T08:16:04.000Z
sonnet_finder.py
mbollmann/sonnet-finder
8f74b0ce21b62309f33159474a4130be23b0fa87
[ "MIT" ]
null
null
null
sonnet_finder.py
mbollmann/sonnet-finder
8f74b0ce21b62309f33159474a4130be23b0fa87
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Usage: sonnet-finder.py TEXTFILE [options] Finds snippets in iambic pentameter in an English-language text and tries to combine them to a rhyming sonnet. Arguments: TEXTFILE Text file to produce a sonnet from. Options: -o, --output TSVFILE If given, writes all found...
31.636201
107
0.536963
4a0146fbe07be8b09766d7e70fab0c1ea8d14ba7
899
py
Python
example/example/urls.py
zmrenwu/django-mptt-comments
14c9b949d93a43c36357660282033f391195f629
[ "MIT" ]
32
2018-11-06T04:10:19.000Z
2020-08-26T02:34:48.000Z
example/example/urls.py
alice314272/django-mptt-comments
14c9b949d93a43c36357660282033f391195f629
[ "MIT" ]
2
2019-05-16T08:16:51.000Z
2020-05-14T14:43:07.000Z
example/example/urls.py
alice314272/django-mptt-comments
14c9b949d93a43c36357660282033f391195f629
[ "MIT" ]
7
2018-11-06T04:15:04.000Z
2020-09-09T10:26:58.000Z
"""example URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
35.96
79
0.689655
4a0147a9aeaad40710b10ddd85c0cc413f4c2654
90,662
py
Python
tests/block_tools.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/block_tools.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
tests/block_tools.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
import asyncio import math import copy import logging import os import random import shutil import ssl import sys import tempfile import time from argparse import Namespace from dataclasses import replace from pathlib import Path from typing import Callable, Dict, List, Optional, Tuple, Any, Union from blspy import Au...
43.399713
120
0.611281
4a0148884fe805bd8a9357c3694bc65aa312ac84
14,552
py
Python
processor/processor.py
jiangwenj02/CurveNet-V1
781f14f41349af97350d65ab3993851063bee87c
[ "MIT" ]
null
null
null
processor/processor.py
jiangwenj02/CurveNet-V1
781f14f41349af97350d65ab3993851063bee87c
[ "MIT" ]
null
null
null
processor/processor.py
jiangwenj02/CurveNet-V1
781f14f41349af97350d65ab3993851063bee87c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=W0201 import sys import argparse import yaml import numpy as np import random import os.path as osp # torch import torch import torch.nn as nn import torch.optim as optim # torchlight import torchlight from torchlight import str2bool from torchlight import DictAction from torchl...
42.17971
152
0.601292
4a0149e9a05bd7c9c0c8b4076fdb226e62443a16
32,059
py
Python
Joy_QA_Platform/httprunner/testcase.py
bzc128/Joy_QA_Platform
d3325331cd832a22e91ad895ab793577609aabc4
[ "Apache-2.0" ]
123
2019-03-01T06:07:43.000Z
2021-12-11T07:59:20.000Z
Joy_QA_Platform/httprunner/testcase.py
bzc128/Joy_QA_Platform
d3325331cd832a22e91ad895ab793577609aabc4
[ "Apache-2.0" ]
8
2019-03-06T06:33:34.000Z
2021-06-10T21:13:55.000Z
Joy_QA_Platform/httprunner/testcase.py
bzc128/Joy_QA_Platform
d3325331cd832a22e91ad895ab793577609aabc4
[ "Apache-2.0" ]
54
2019-03-01T02:25:13.000Z
2021-12-23T16:55:17.000Z
# encoding: utf-8 import ast import collections import io import itertools import json import os import random import re from httprunner import exception, logger, utils from httprunner.compat import OrderedDict, basestring, numeric_types from httprunner.utils import FileUtils # TODO 正则漏掉了@符号 variable_regexp = r"\$(...
34.50915
113
0.541969
4a014b5f0743fad5e621d3f7a52eddaafdee946a
76,005
py
Python
src/main_dlg.py
TheSin-/terracoin-masternode-tool
9d670c89a428cdbdc359234c0d1b83ce6ff569a2
[ "MIT" ]
null
null
null
src/main_dlg.py
TheSin-/terracoin-masternode-tool
9d670c89a428cdbdc359234c0d1b83ce6ff569a2
[ "MIT" ]
null
null
null
src/main_dlg.py
TheSin-/terracoin-masternode-tool
9d670c89a428cdbdc359234c0d1b83ce6ff569a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Bertrand256 # Created on: 2017-03 import base64 import binascii import datetime import json import os import platform import re import sys import threading import time import bitcoin import logging from PyQt5 import QtCore from PyQt5 import QtWidgets from PyQt5....
47.592361
146
0.565805
4a014e17abb80fd972d55415a5ace1a220fe802f
1,825
py
Python
heist/scripts/heist_client.py
Xenovortex/RG2021_projects
36444fbfbbbad021a6ba9c6b128e4ef161773636
[ "MIT" ]
null
null
null
heist/scripts/heist_client.py
Xenovortex/RG2021_projects
36444fbfbbbad021a6ba9c6b128e4ef161773636
[ "MIT" ]
null
null
null
heist/scripts/heist_client.py
Xenovortex/RG2021_projects
36444fbfbbbad021a6ba9c6b128e4ef161773636
[ "MIT" ]
1
2021-07-08T14:13:10.000Z
2021-07-08T14:13:10.000Z
#!/usr/bin/env python3 import rospy from std_msgs.msg import Int32 import rogata_library as rgt import numpy as np def visibility(guard,thief,wall_objects,max_seeing_distance): distance = np.linalg.norm(thief-guard) direction = (thief-guard)/distance direction = np.arctan2(direction[1],direction[0]) ...
29.918033
97
0.624658
4a014e7939c35debc845f88c1162cc13e04d8675
517
py
Python
src/coalescenceml/step/output.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
1
2022-03-22T17:48:55.000Z
2022-03-22T17:48:55.000Z
src/coalescenceml/step/output.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
2
2022-02-18T18:48:12.000Z
2022-02-19T18:14:38.000Z
src/coalescenceml/step/output.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
1
2022-02-10T02:52:22.000Z
2022-02-10T02:52:22.000Z
from typing import Any, Iterator, NamedTuple, Tuple, Type class Output: """Special object to store namedtuple with immutable name.""" def __init__(self, **kwargs: Type[Any]): self.outputs = NamedTuple("CoalescenceOutput", **kwargs) def items(self) -> Iterator[Tuple[str, Type[Any]]]: """I...
30.411765
69
0.646035
4a014fdd32ba9bbd0bc5d6dae6ed1634410a910f
1,791
py
Python
data/p4VQE/R4/benchmark/startCirq703.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq703.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq703.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=11 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.428571
77
0.696817
4a01504ed5c863fa171005ec8612ae4a54e0d40d
4,906
py
Python
kubernetes/client/models/v1beta1_custom_resource_definition_status.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_custom_resource_definition_status.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_custom_resource_definition_status.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
31.248408
129
0.626784
4a01518129bcacc33ddadda225867af8049226f0
2,533
py
Python
homeassistant/components/yolink/__init__.py
OverFlow636/core
e28f20cdf369c682b6617d9ae67110f230cf6ef8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/yolink/__init__.py
OverFlow636/core
e28f20cdf369c682b6617d9ae67110f230cf6ef8
[ "Apache-2.0" ]
null
null
null
homeassistant/components/yolink/__init__.py
OverFlow636/core
e28f20cdf369c682b6617d9ae67110f230cf6ef8
[ "Apache-2.0" ]
null
null
null
"""The Detailed Hello World Push integration.""" import asyncio from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from . import hub from .const import DOMAIN PLATFORMS = ["sensor"] async def async_setup(hass: HomeAssistant, config: dict): """Set up the Hello Worl...
32.896104
101
0.690091
4a01531192bf22dbeb78e644536b5f1ef9922707
396
py
Python
customer/migrations/0017_ordermodel_is_shipped.py
pappan-123/Food
a5df233b580f4172d63c6e36544e903946c985d4
[ "MIT" ]
null
null
null
customer/migrations/0017_ordermodel_is_shipped.py
pappan-123/Food
a5df233b580f4172d63c6e36544e903946c985d4
[ "MIT" ]
null
null
null
customer/migrations/0017_ordermodel_is_shipped.py
pappan-123/Food
a5df233b580f4172d63c6e36544e903946c985d4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-09-23 10:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('customer', '0016_auto_20210923_1406'), ] operations = [ migrations.AddField( model_name='ordermodel', name='is_shipp...
20.842105
53
0.608586
4a0153694001d06066cfaf18dddbd83558fc8305
646
py
Python
01_Aulas_Introdutorias/Aula17_pacote_requests.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
2
2020-02-20T23:27:14.000Z
2021-09-03T00:42:29.000Z
01_Aulas_Introdutorias/Aula17_pacote_requests.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
null
null
null
01_Aulas_Introdutorias/Aula17_pacote_requests.py
CaioHenriqueMachado/Contribuindo_com_Python
a35ad2a4d3e2baad191432bdf162cc4ca8568f5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 21 13:58:16 2021 @author: caio """ # Instalando pacote requests #cmd: pip install requests # Usando api viacep import requests response = requests.get('https://viacep.com.br/ws/01001000/json/') #POKEMON POKEAPI: https://pokeapi.co/api/v2/poke...
17.944444
66
0.70743
4a0154caf622a44dd83e45576901bfaeaaa38dda
5,849
py
Python
cogs/greet.py
xKynn/RDGreeter
6172d05d4b3668dba114ae09d3b9938f3356e325
[ "MIT" ]
1
2018-03-11T12:22:37.000Z
2018-03-11T12:22:37.000Z
cogs/greet.py
xKynn/RDGreeter
6172d05d4b3668dba114ae09d3b9938f3356e325
[ "MIT" ]
null
null
null
cogs/greet.py
xKynn/RDGreeter
6172d05d4b3668dba114ae09d3b9938f3356e325
[ "MIT" ]
null
null
null
import discord import texttable from discord.ext import commands from utils import db as greeterDB class Greet: def __init__(self, bot): self.bot = bot def is_admin(ctx): """ Check if the caller has manage_guild """ perm = ctx.author.guild_permissions.manage_guild or ctx.author.id == ...
44.992308
118
0.586767
4a01550c0c4c28192d182c3b52a68470157d5679
2,640
py
Python
dashboard/dashboard/main_test.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
dashboard/dashboard/main_test.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
dashboard/dashboard/main_test.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest import webapp2 import webtest from dashboard import main from dashboard.common import testing_common from dashboard.common import utils fro...
33.417722
72
0.614773
4a01553e3da74efcf0eb4a9ff4c0cc3d3b916b23
1,253
py
Python
jdcloud_sdk/services/dcap/apis/ModifyLevelRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/dcap/apis/ModifyLevelRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/dcap/apis/ModifyLevelRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
28.477273
75
0.704709
4a01557121db2b5a99a8eaf9595a5663f7294f22
27,044
py
Python
botbowl/core/pathfinding/python_pathfinding.py
hadarshavit/botbowl
eec77bdda427d5e245de6f5e136e06886183b2c7
[ "Apache-2.0" ]
null
null
null
botbowl/core/pathfinding/python_pathfinding.py
hadarshavit/botbowl
eec77bdda427d5e245de6f5e136e06886183b2c7
[ "Apache-2.0" ]
null
null
null
botbowl/core/pathfinding/python_pathfinding.py
hadarshavit/botbowl
eec77bdda427d5e245de6f5e136e06886183b2c7
[ "Apache-2.0" ]
null
null
null
""" ========================== Author: Niels Justesen Year: 2020 ========================== This module contains pathfinding functionalities for botbowl. """ from typing import Tuple, List, Optional from botbowl.core.table import Rules from botbowl.core.model import Square from botbowl.core.forward_model import treat_...
42.656151
258
0.629493
4a0155b0baa0426936aea465fea26b23d98f9b3e
818
py
Python
misc/parse_templates.py
hitoto/openshift-diy-php-hitoto
3fed311516b89e42380248488a595b1f83887375
[ "MIT" ]
1
2019-04-14T20:30:27.000Z
2019-04-14T20:30:27.000Z
misc/parse_templates.py
hitoto/openshift-diy-php-hitoto
3fed311516b89e42380248488a595b1f83887375
[ "MIT" ]
null
null
null
misc/parse_templates.py
hitoto/openshift-diy-php-hitoto
3fed311516b89e42380248488a595b1f83887375
[ "MIT" ]
null
null
null
import os, re, shutil internalIp = os.environ['OPENSHIFT_DIY_IP'] runtimeDir = os.environ['OPENSHIFT_HOMEDIR'] + "/app-root/runtime" repoDir = os.environ['OPENSHIFT_HOMEDIR'] + "/app-root/runtime/repo" f = open(repoDir + '/misc/templates/httpd.conf.tpl', 'r') conf = f.read().replace('{{OPENSHIFT_INTERNAL_IP}}', inter...
37.181818
156
0.706601
4a0155b241c1479ff6b9ce2bd68e8c0a0cd30f5f
132,522
py
Python
src/azure-cli/azure/cli/command_modules/storage/_params.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
1
2021-11-17T18:09:28.000Z
2021-11-17T18:09:28.000Z
src/azure-cli/azure/cli/command_modules/storage/_params.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
1
2021-09-14T14:15:25.000Z
2021-09-14T14:30:44.000Z
src/azure-cli/azure/cli/command_modules/storage/_params.py
GalGrinblat/azure-cli
b30b9cf9f90d01b9b6708cc56b82e32cd7182dae
[ "MIT" ]
2
2021-07-07T12:43:11.000Z
2021-07-09T19:30:53.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
70.04334
166
0.655061
4a0155ff2262c0768d45920e712b06aeed6ea390
61,397
py
Python
qiskit/_quantumprogram.py
drmandaarbpande/qiskit-sdk-py
04065ed68be2dbe25aefa1d153057f6f3986ae7b
[ "Apache-2.0" ]
3
2021-11-08T11:46:42.000Z
2021-12-27T10:13:38.000Z
qiskit/_quantumprogram.py
drmandaarbpande/qiskit-sdk-py
04065ed68be2dbe25aefa1d153057f6f3986ae7b
[ "Apache-2.0" ]
2
2021-11-09T14:57:09.000Z
2022-01-12T12:35:58.000Z
artifacts/old_dataset_versions/original_commits_v02/qiskit-terra/qiskit-terra#342/after/_quantumprogram.py
MattePalte/Bugs-Quantum-Computing-Platforms
0c1c805fd5dfce465a8955ee3faf81037023a23e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 IBM RESEARCH. 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 requ...
40.207597
98
0.551558
4a0156a4e27cf2115de4d61bddfc4351db4e7446
1,167
py
Python
tests/test_HomoscedasticGPRegression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
148
2021-05-27T20:52:51.000Z
2022-03-16T22:49:48.000Z
tests/test_HomoscedasticGPRegression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
9
2021-06-21T18:45:07.000Z
2021-11-08T14:42:30.000Z
tests/test_HomoscedasticGPRegression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
27
2021-06-01T18:29:02.000Z
2022-03-02T06:56:03.000Z
import unittest import numpy as np import torch np.random.seed(42) torch.manual_seed(42) class TestHomoscedasticGPRegression(unittest.TestCase): def _generate_mock_data(self, n_samples, n_features): from sklearn.datasets import make_regression return make_regression(n_samples, n_features, rando...
29.175
132
0.702656
4a0156dfd55bc96fff6d0ebedac0683aa12d39af
988
py
Python
magicicon.py
armaan115/magicicon
ac71dc823c9121fa0b6dd504668551f3a97e62ff
[ "MIT" ]
1
2019-05-23T00:41:44.000Z
2019-05-23T00:41:44.000Z
magicicon.py
armaan115/magicicon
ac71dc823c9121fa0b6dd504668551f3a97e62ff
[ "MIT" ]
null
null
null
magicicon.py
armaan115/magicicon
ac71dc823c9121fa0b6dd504668551f3a97e62ff
[ "MIT" ]
null
null
null
from __future__ import print_function import subprocess import sys def convert(filename,outputfile): import cloudconvert as c # to write output to output.txt o=open('output.txt', 'w') def get_extension(filename): import os.path return os.path.splitext(filename)[1] ...
24.7
109
0.635628
4a0156e0fa422d89bed2632f807715d6424a027d
1,689
py
Python
src/robot/reporting/stringcache.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
1
2015-03-11T14:59:20.000Z
2015-03-11T14:59:20.000Z
src/robot/reporting/stringcache.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/reporting/stringcache.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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...
30.709091
75
0.657194
4a015772aa9a111c73d0a4f620f09e5f602d331b
1,340
py
Python
Scripts/Test/MotorController.py
AwesomeTac0/TacoBot--LitterBox
83a1628b616236b8a4af5444f61180d164f20c1b
[ "MIT" ]
null
null
null
Scripts/Test/MotorController.py
AwesomeTac0/TacoBot--LitterBox
83a1628b616236b8a4af5444f61180d164f20c1b
[ "MIT" ]
null
null
null
Scripts/Test/MotorController.py
AwesomeTac0/TacoBot--LitterBox
83a1628b616236b8a4af5444f61180d164f20c1b
[ "MIT" ]
null
null
null
import time from adafruit_motor import stepper from adafruit_motorkit import MotorKit kit = MotorKit() # Motor motorSwitcher = { 1: kit.stepper1.onestep, 2: kit.stepper2.onestep } # Style styleSwitcher = { "S": stepper.SINGLE, "D": stepper.DOUBLE, "I": stepper.INTERLEAVE,...
23.103448
99
0.648507
4a01583f62cdbbf67116cab75245290a9e7fed08
9,696
py
Python
path.py
chrisbloecker/as1-final
ff260a8511e0c22ebb58662ec188251b3cc47311
[ "MIT" ]
null
null
null
path.py
chrisbloecker/as1-final
ff260a8511e0c22ebb58662ec188251b3cc47311
[ "MIT" ]
null
null
null
path.py
chrisbloecker/as1-final
ff260a8511e0c22ebb58662ec188251b3cc47311
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This module provides modelling of obstacles in a scene and path planning to # avoid those obstacles. Currently, Obstacles can be boxes that are described # by scaling and translating unit cubes. # # Author: Christopher Blöcker import numpy as np from abc import ABC, abstractmethod from ...
36.86692
117
0.57632
4a01584f114390f68f7400eb7c45c44e158b8862
2,313
py
Python
tests/test_provider_hashicorp_hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_hashicorp_hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_hashicorp_hcp.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_hashicorp_hcp.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:10 UTC) def test_provider_import(): import terrascript.provider.hashicorp.hcp def test_resource_import(): from terrascript.resource.hashicorp.hcp import hcp_aws_network_peering from terrascript.reso...
32.577465
85
0.806312
4a015876d1862f011a93594adc2e4a5b6f7994cd
2,870
py
Python
mercurial/hgweb/wsgicgi.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
mercurial/hgweb/wsgicgi.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
mercurial/hgweb/wsgicgi.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# hgweb/wsgicgi.py - CGI->WSGI translator # # Copyright 2006 Eric Hopper <hopper@omnifarious.org> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. # # This was originally copied from the public domain code at # http://www.python.org...
31.538462
75
0.619512
4a01588dbc9cf0beb44b28ce2a9d49b6e988bc17
36,560
py
Python
test/functional/p2p_compactblocks.py
CodeIsTheKey/raptoreum
8a44d39f985c503f08969f91e0c946042c173496
[ "MIT" ]
1
2021-12-18T04:44:10.000Z
2021-12-18T04:44:10.000Z
test/functional/p2p_compactblocks.py
CodeIsTheKey/raptoreum
8a44d39f985c503f08969f91e0c946042c173496
[ "MIT" ]
null
null
null
test/functional/p2p_compactblocks.py
CodeIsTheKey/raptoreum
8a44d39f985c503f08969f91e0c946042c173496
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """CompactBlocksTest -- test compact blocks (BIP 152, without segwit support, version 1) """ from test_framew...
45.929648
134
0.672183
4a0158e7cbe0434aa21b9b4041470ef056ed1bf8
4,032
py
Python
python/tvm/topi/bifrost/dense.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
2
2020-04-17T02:25:16.000Z
2020-11-25T11:39:43.000Z
python/tvm/topi/bifrost/dense.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
python/tvm/topi/bifrost/dense.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.681416
94
0.620784
4a015be578579aa2168a3d907cf3bff7ffd8a536
1,376
py
Python
migrations/versions/c4670f3bb828_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
421
2017-02-16T15:02:51.000Z
2022-03-06T07:12:14.000Z
migrations/versions/c4670f3bb828_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
3,143
2017-02-14T16:47:25.000Z
2022-03-30T11:25:20.000Z
migrations/versions/c4670f3bb828_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
280
2017-04-06T19:51:32.000Z
2022-03-16T09:21:27.000Z
"""empty message Revision ID: c4670f3bb828 Revises: 0aaac86a48dc Create Date: 2017-05-03 13:59:37.296261 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "c4670f3bb828" down_revision = "0aaac86a48dc" branch_labels = None depends_on = None def upgrade(): # ...
30.577778
80
0.651163
4a015d752e4b8454670e2113396b56939e72935e
2,618
py
Python
test/multivec_test.py
4dn-dcic/clodius
aa31b3d90a5a9fec883c20cab31ad4d347cd52cd
[ "MIT" ]
null
null
null
test/multivec_test.py
4dn-dcic/clodius
aa31b3d90a5a9fec883c20cab31ad4d347cd52cd
[ "MIT" ]
1
2019-03-28T20:08:01.000Z
2019-03-28T20:08:01.000Z
test/multivec_test.py
4dn-dcic/clodius
aa31b3d90a5a9fec883c20cab31ad4d347cd52cd
[ "MIT" ]
null
null
null
from __future__ import print_function import click.testing as clt import clodius.cli.aggregate as cca import clodius.cli.convert as ccc import clodius.db_tiles as cdt import os import os.path as op import sqlite3 import sys import tempfile testdir = op.realpath(op.dirname(__file__)) def test_bedfile_to_multivec(): ...
30.8
87
0.625286
4a015d8f27a56d78100017e30c04ce9809095ed4
4,516
py
Python
noxfile.py
pchauhan-qlogic/google-resumable-media-python
3230b467b92e210e402ee45da5f89886f0ba9079
[ "Apache-2.0" ]
1
2019-07-30T14:24:08.000Z
2019-07-30T14:24:08.000Z
noxfile.py
pchauhan-qlogic/google-resumable-media-python
3230b467b92e210e402ee45da5f89886f0ba9079
[ "Apache-2.0" ]
null
null
null
noxfile.py
pchauhan-qlogic/google-resumable-media-python
3230b467b92e210e402ee45da5f89886f0ba9079
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.582278
75
0.63264
4a015de21b588d1e499d523d5cd405195e15d666
25
py
Python
otree_mturk_utils/__init__.py
chkgk/custom-waiting-page-for-mturk
47928641d89471061e63c424d12e83f3ad2153d0
[ "MIT" ]
4
2018-04-18T23:41:57.000Z
2019-06-27T11:24:46.000Z
otree_mturk_utils/__init__.py
chkgk/custom-waiting-page-for-mturk
47928641d89471061e63c424d12e83f3ad2153d0
[ "MIT" ]
10
2018-01-03T13:34:29.000Z
2021-06-10T20:19:26.000Z
otree_mturk_utils/__init__.py
chkgk/custom-waiting-page-for-mturk
47928641d89471061e63c424d12e83f3ad2153d0
[ "MIT" ]
4
2017-10-27T10:51:28.000Z
2020-01-21T13:32:25.000Z
__version__ = '0.0.3'
5
21
0.56
4a015e522df35b5ef4fedc2f490486f9b22626f9
2,189
py
Python
python/phonenumbers/data/region_FR.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
1
2020-04-16T21:40:27.000Z
2020-04-16T21:40:27.000Z
python/phonenumbers/data/region_FR.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
python/phonenumbers/data/region_FR.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
1
2018-10-24T20:48:56.000Z
2018-10-24T20:48:56.000Z
"""Auto-generated file, do not edit by hand. FR metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_FR = PhoneMetadata(id='FR', country_code=33, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[1-9]\\d{8}', possible_length=(9,)), ...
99.5
199
0.66423
4a015fea30a1dd575da4afab49542e9682e63ad2
61,878
py
Python
python/paddle/distributed/passes/ps_trainer_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/distributed/passes/ps_trainer_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/distributed/passes/ps_trainer_pass.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2022 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 appli...
43.210894
205
0.544555
4a016064cb187681c7631c7c544c538d88c63a82
3,774
py
Python
code/redis_support_py3/mqtt_message_processing_py3.py
NanoDataCenter/nano_data_center
76ad521e1a5139a37df80214af1413d2fd4ade60
[ "MIT" ]
2
2018-02-21T03:46:51.000Z
2019-12-24T16:40:51.000Z
code/redis_support_py3/mqtt_message_processing_py3.py
NanoDataCenter/nano_data_center
76ad521e1a5139a37df80214af1413d2fd4ade60
[ "MIT" ]
7
2020-07-16T19:54:08.000Z
2022-03-02T03:29:07.000Z
code/redis_support_py3/mqtt_message_processing_py3.py
NanoDataCenter/nano_data_center
76ad521e1a5139a37df80214af1413d2fd4ade60
[ "MIT" ]
2
2018-04-16T07:02:35.000Z
2020-07-23T21:57:19.000Z
import time class MQTT_Message_Processing(object): def __init__(self): self.message_handlers = {} self.message_handlers["analog_input" ] = self.process_analog_input self.message_handlers["flat" ] = self.process_flat_input self.message_handlers["pulse_flow" ] = self.process_pul...
34.623853
96
0.630366