hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
aa98c00f1e2784586e8ec1a8103f6480107e952e
1,021
py
Python
adaptive_filter/lms.py
runngezhang/pyaec
4db53af0f418171a89a8e3a2dd26c28166b3aaae
[ "Apache-2.0" ]
2
2021-07-21T11:57:15.000Z
2021-07-23T08:33:19.000Z
adaptive_filter/lms.py
zqhy-bigtime/pyaec
ca2ae14eb1656bde7671cd6bc8b8865322a7ee5a
[ "Apache-2.0" ]
null
null
null
adaptive_filter/lms.py
zqhy-bigtime/pyaec
ca2ae14eb1656bde7671cd6bc8b8865322a7ee5a
[ "Apache-2.0" ]
1
2021-06-18T09:06:39.000Z
2021-06-18T09:06:39.000Z
# Copyright 2020 ewan xu<ewan_xu@outlook.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 agree...
32.935484
79
0.592556
99c54803b9a8cf6d24cad012199abfced53a5f7a
7,451
py
Python
src/testproject/sdk/drivers/webdriver/remote.py
Fnckerpoi/python-opensdk
37e528ea613686975d58b230c16647324271a0bd
[ "Apache-2.0" ]
1
2021-07-15T06:57:21.000Z
2021-07-15T06:57:21.000Z
src/testproject/sdk/drivers/webdriver/remote.py
xjc90s/python-opensdk
5ae1032f16bbcda7405e8c2943ec0c1e0e941fbc
[ "Apache-2.0" ]
null
null
null
src/testproject/sdk/drivers/webdriver/remote.py
xjc90s/python-opensdk
5ae1032f16bbcda7405e8c2943ec0c1e0e941fbc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 TestProject (https://testproject.io) # # 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 ...
38.407216
115
0.696417
f0742d8228aaf19136958a7bebc567fbdbbba56a
80
py
Python
deepmath/deephol/jup_predict/default/st_enc.py
aahadley/deepmath
ad4426323be64bacd4a6727f1e48f4e54ee1e259
[ "Apache-2.0" ]
8
2019-12-12T19:13:28.000Z
2021-08-08T09:29:35.000Z
deepmath/deephol/jup_predict/default/st_enc.py
aahadley/deepmath
ad4426323be64bacd4a6727f1e48f4e54ee1e259
[ "Apache-2.0" ]
null
null
null
deepmath/deephol/jup_predict/default/st_enc.py
aahadley/deepmath
ad4426323be64bacd4a6727f1e48f4e54ee1e259
[ "Apache-2.0" ]
2
2020-10-02T11:55:03.000Z
2021-09-26T23:53:25.000Z
def _proof_state_encoding(predictor, state_emb): return state_emb.goal_emb
20
48
0.8125
10f7137253d0a5b5ead6ce3b3e9e32fc53d3d10b
390
py
Python
boared/boared/wsgi.py
joeltio/boared-django
51d5a969af0130753dfe61bdfe2191ee1685f4b5
[ "MIT" ]
null
null
null
boared/boared/wsgi.py
joeltio/boared-django
51d5a969af0130753dfe61bdfe2191ee1685f4b5
[ "MIT" ]
null
null
null
boared/boared/wsgi.py
joeltio/boared-django
51d5a969af0130753dfe61bdfe2191ee1685f4b5
[ "MIT" ]
null
null
null
""" WSGI config for boared project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
22.941176
78
0.784615
bf772276760dd81a9673e1c6795e3f467200e219
629
py
Python
user/migrations/0023_auto_20201217_1038.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
1
2021-02-03T15:09:45.000Z
2021-02-03T15:09:45.000Z
user/migrations/0023_auto_20201217_1038.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
25
2021-03-08T07:01:32.000Z
2022-03-31T09:05:30.000Z
user/migrations/0023_auto_20201217_1038.py
thapaliya19/covaplad
f3ff6db582165611d03dab6d227b4e5d81214d43
[ "MIT" ]
3
2021-02-22T15:06:56.000Z
2021-08-03T13:00:00.000Z
# Generated by Django 3.1.4 on 2020-12-17 04:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("user", "0022_auto_20201216_2333"), ] operations = [ migrations.RemoveConstraint( model_name="user", name="user_gende...
25.16
79
0.558029
7f6230301002c17c7ca5cc4a62a187cd8ee639e0
2,418
py
Python
ssz/sedes/container.py
pipermerriam/py-ssz
2a4f436778a50ec2c66fb792676d34dae4e6849a
[ "MIT" ]
null
null
null
ssz/sedes/container.py
pipermerriam/py-ssz
2a4f436778a50ec2c66fb792676d34dae4e6849a
[ "MIT" ]
null
null
null
ssz/sedes/container.py
pipermerriam/py-ssz
2a4f436778a50ec2c66fb792676d34dae4e6849a
[ "MIT" ]
null
null
null
from typing import ( Any, Dict, Generator, Sequence, Tuple, TypeVar, ) from eth_utils import ( to_dict, ) from mypy_extensions import ( TypedDict, ) from ssz.exceptions import ( DeserializationError, ) from ssz.hash import ( hash_eth2, ) from ssz.sedes.base import ( BaseSed...
29.487805
99
0.659222
83d4cdae201e46f223649e7a5f4ab5860c632d58
683
py
Python
app/core/migrations/0002_tag.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
aldhiramdans/recipe-app-api
2c9f0902372a5eb23c4a19c06611379e7540ed73
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-03-26 09:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.458333
118
0.616398
299d8940edb9809817034c2c5edadb8cf78a5767
5,795
py
Python
ImageTeam/resources/archiver/archiver_url.py
ralph-gee/training_clone
76c3a8457dcd01fe78fe467a1f70998723c67400
[ "Apache-2.0" ]
null
null
null
ImageTeam/resources/archiver/archiver_url.py
ralph-gee/training_clone
76c3a8457dcd01fe78fe467a1f70998723c67400
[ "Apache-2.0" ]
null
null
null
ImageTeam/resources/archiver/archiver_url.py
ralph-gee/training_clone
76c3a8457dcd01fe78fe467a1f70998723c67400
[ "Apache-2.0" ]
null
null
null
"""This program archives images from a set of cameras. To use this program: python archiver.py <input_file> <duration> <interval> where: <input_file> is the path to the two-column space-separated input file. The first column is the integer camera ID, and the second column is the camera URL. <duration> is the archivin...
27.079439
80
0.627437
34b6dd79db32047201f4ce6e344f48cc547abf6b
1,857
py
Python
src/parse_MEDIC_dictionary.py
fshdnc/disease_normalization
68b8fc118fe0f971fbd056ad2bffb44caa0e7abf
[ "Apache-2.0" ]
1
2021-01-28T09:24:27.000Z
2021-01-28T09:24:27.000Z
src/parse_MEDIC_dictionary.py
fshdnc/disease_normalization
68b8fc118fe0f971fbd056ad2bffb44caa0e7abf
[ "Apache-2.0" ]
1
2019-07-08T03:25:30.000Z
2019-12-13T08:33:55.000Z
src/parse_MEDIC_dictionary.py
fshdnc/disease_normalization
68b8fc118fe0f971fbd056ad2bffb44caa0e7abf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin7env python3 # coding:utf8 from collections import namedtuple '''read in MEDIC terminology, terminology file from DNorm system a lot of files in DNorm-0.0.7/data not looked into read in MEDIC terminology into namedtuples read-in format: DiseaseName DiseaseID AltDiseaseIDs Definition (usually none) Par...
35.037736
104
0.754443
9911e19980b44372dfffadd53967ba04092b9d98
3,688
py
Python
main.py
Dranixia/dranixia
250354a47db107f5e55e9f873b227976b33041ee
[ "MIT" ]
1
2020-05-21T14:35:02.000Z
2020-05-21T14:35:02.000Z
main.py
Dranixia/dranixia
250354a47db107f5e55e9f873b227976b33041ee
[ "MIT" ]
3
2020-04-02T21:07:22.000Z
2021-02-10T18:26:06.000Z
main.py
Dranixia/UCU-Semester-Work
250354a47db107f5e55e9f873b227976b33041ee
[ "MIT" ]
null
null
null
""" Butynets' Danylo Python 3.8 """ import sys from time import sleep from modules.music_adt import MusicADT class Menu: """ Class for working with Research Program. """ def __init__(self): """ Initialize menu and program. """ print("Welcome to the Genre Research (Spo...
27.939394
87
0.529284
94c20d988be3eb4c909eb2237f05229d34c1d8fe
2,092
py
Python
enaml/validation/regex_validator.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/validation/regex_validator.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/validation/regex_validator.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ import re from traits.api import Str, Property, cached_property from .validator import Validato...
27.526316
79
0.551147
2090a216c1dcb25099f7de4c9bd5fbf9d8451f92
234
py
Python
stobu/elms/states.py
NovelLab/storybuilder
bc52fc999718db29fb9aa83c787950a842e15f3f
[ "MIT" ]
null
null
null
stobu/elms/states.py
NovelLab/storybuilder
bc52fc999718db29fb9aa83c787950a842e15f3f
[ "MIT" ]
1
2021-03-11T02:28:02.000Z
2021-03-11T02:28:02.000Z
stobu/elms/states.py
NovelLab/storybuilder
bc52fc999718db29fb9aa83c787950a842e15f3f
[ "MIT" ]
null
null
null
"""Define data name of state file.""" # Official Libraries from enum import Enum __all__ = ( 'StateItem', ) # Main class StateItem(Enum): NAME = 'name' def __str__(self) -> str: return self.value
13
37
0.589744
407af9da49c00d5c0f3f3f8373418852a8ca3392
1,137
py
Python
setup.py
chpmrc/django-easygeoip
ce16bb52e935fa8c7c7468ff0187c0acefdc1524
[ "MIT" ]
2
2019-03-26T03:52:15.000Z
2020-02-09T13:20:39.000Z
setup.py
chpmrc/django-easygeoip
ce16bb52e935fa8c7c7468ff0187c0acefdc1524
[ "MIT" ]
1
2016-08-25T13:47:17.000Z
2016-08-25T14:28:43.000Z
setup.py
chpmrc/django-easygeoip
ce16bb52e935fa8c7c7468ff0187c0acefdc1524
[ "MIT" ]
2
2015-12-18T10:02:48.000Z
2016-06-28T01:13:27.000Z
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-easygeoip', version='0.0.3'...
33.441176
109
0.649077
d171cdb625a594cf26c22c6b61b42746f4d4cdba
3,557
py
Python
core/broker.py
xlcbingo1999/CloudSimPy
de515eceb5d177142bb154deff0d44c58f6aca88
[ "MIT" ]
null
null
null
core/broker.py
xlcbingo1999/CloudSimPy
de515eceb5d177142bb154deff0d44c58f6aca88
[ "MIT" ]
null
null
null
core/broker.py
xlcbingo1999/CloudSimPy
de515eceb5d177142bb154deff0d44c58f6aca88
[ "MIT" ]
null
null
null
from core.job import Job from core.machine import MachineConfig import sys from playground.Non_DAG.utils.tools import debugPrinter, infoPrinter import time from tqdm import tqdm, trange class JobBroker(object): job_cls = Job def __init__(self, env, job_configs): self.env = env self.simulation ...
46.194805
139
0.660669
1b95aa947d8e6f4e85ec1dcab8b39f3ace48f148
2,260
py
Python
tests/operators/test_gcs_to_sftp_system.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2017-06-25T14:18:15.000Z
2017-06-25T14:18:15.000Z
tests/operators/test_gcs_to_sftp_system.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
3
2020-07-07T20:39:24.000Z
2021-09-29T17:34:46.000Z
tests/operators/test_gcs_to_sftp_system.py
suensummit/airflow
37a342d0e96a91ce2d34085e225a4e86f54c4e21
[ "Apache-2.0" ]
1
2020-11-04T03:17:51.000Z
2020-11-04T03:17:51.000Z
# -*- coding: utf-8 -*- # # 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 #...
34.769231
78
0.718142
b7e98ab09bd9f9693a632d708e605bf216543ad3
5,506
py
Python
assignment1/cs231n/classifiers/linear_classifier.py
Lion-HuangGz/CS231nAssignment
9adfdeda1c892c468c7bab9661fe8eb4d1063510
[ "MIT" ]
419
2019-09-02T08:25:31.000Z
2022-03-28T06:09:47.000Z
assignment1/cs231n/classifiers/linear_classifier.py
Pichenze/CS231nAssignment
9adfdeda1c892c468c7bab9661fe8eb4d1063510
[ "MIT" ]
9
2019-09-28T09:03:40.000Z
2020-11-11T08:21:13.000Z
assignment1/cs231n/classifiers/linear_classifier.py
Pichenze/CS231nAssignment
9adfdeda1c892c468c7bab9661fe8eb4d1063510
[ "MIT" ]
164
2019-09-20T07:58:04.000Z
2022-03-15T11:31:25.000Z
from cs231n.classifiers.linear_svm import * from cs231n.classifiers.softmax import * class LinearClassifier(object): def __init__(self): self.W = None def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100, batch_size=200, verbose=False): """ Train this linea...
41.398496
97
0.533418
b729c1567e0282b65348bf31e419dbdfc9dbc2be
1,800
py
Python
questions/53032423/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
302
2017-03-04T00:05:23.000Z
2022-03-28T22:51:29.000Z
questions/53032423/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
30
2017-12-02T19:26:43.000Z
2022-03-28T07:40:36.000Z
questions/53032423/main.py
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
388
2017-07-04T16:53:12.000Z
2022-03-18T22:20:19.000Z
import os import sys from PyQt5 import QtCore, QtGui, QtWidgets dir_path = os.path.dirname(os.path.realpath(__file__)) positions_button_KA = [(330, 70, 10, 20),(270, 110, 10, 20),(300, 110, 10, 20),(360, 110, 10, 20),(330, 150, 10, 20), (180, 190, 10, 20),(240, 190, 10, 20),(300, 190, 10, 20),(...
36.734694
118
0.565
a8761efbcbee9496abae4ea6c61f55a6696260e4
27,361
py
Python
test/qa/rpc-tests/bip68-112-113-p2p.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
26
2018-11-30T09:01:34.000Z
2020-03-11T00:41:52.000Z
test/qa/rpc-tests/bip68-112-113-p2p.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
3
2019-01-01T09:06:22.000Z
2019-04-01T10:06:01.000Z
test/qa/rpc-tests/bip68-112-113-p2p.py
MagnaChain/MagnaChain-dev-master
c83e7a8b9e8f9ae8684a0e3a11f1eeb42dfa1272
[ "MIT" ]
24
2018-11-30T03:32:53.000Z
2020-03-20T04:30:34.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The MagnaChain Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import ComparisonTestFramework from test_framework.util import * fr...
50.574861
177
0.649574
5c41f219d03341c71aea49382e8d5a6ed7e50e2c
265
py
Python
setup.py
Fatalerr/pcaptools
b08c64b731e32d25912eadfb261ca6a445bb0d56
[ "Apache-2.0" ]
null
null
null
setup.py
Fatalerr/pcaptools
b08c64b731e32d25912eadfb261ca6a445bb0d56
[ "Apache-2.0" ]
null
null
null
setup.py
Fatalerr/pcaptools
b08c64b731e32d25912eadfb261ca6a445bb0d56
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from setuptools import setup setup( name = 'pcaptools', version = '0.1', description = "This is a convinence tool for pcap analysis", author = 'Jun Liu', author_email = "liujun.gz@live.com", package_dir = "pcaptools" )
20.384615
64
0.633962
56ee1f8eb0fee2fef112c7fd7f471c3bde3ac267
9,640
py
Python
boto3/dynamodb/types.py
cno-io/pacu
a63f1a7fe37bda09a9f5f01f7523815df31487c8
[ "BSD-3-Clause" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
boto3/dynamodb/types.py
cno-io/pacu
a63f1a7fe37bda09a9f5f01f7523815df31487c8
[ "BSD-3-Clause" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
boto3/dynamodb/types.py
cno-io/pacu
a63f1a7fe37bda09a9f5f01f7523815df31487c8
[ "BSD-3-Clause" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
32.348993
79
0.568361
5b722c03f81a5e4ac537b9ccd2edc85c661f3b81
7,442
py
Python
meshsegnet.py
ZhangPingping/MeshSegNet
f7f4e41919bd270f6baf0d776b466a1e394e3d54
[ "MIT" ]
100
2020-06-24T11:24:06.000Z
2022-03-31T07:15:09.000Z
meshsegnet.py
ZhangPingping/MeshSegNet
f7f4e41919bd270f6baf0d776b466a1e394e3d54
[ "MIT" ]
37
2020-06-24T05:27:17.000Z
2022-03-31T16:35:53.000Z
meshsegnet.py
ZhangPingping/MeshSegNet
f7f4e41919bd270f6baf0d776b466a1e394e3d54
[ "MIT" ]
54
2020-06-15T13:16:46.000Z
2022-03-31T08:42:10.000Z
import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import numpy as np class STN3d(nn.Module): def __init__(self, channel): super(STN3d, self).__init__() self.conv1 = torch.nn.Conv1d(channel, 64, 1) self.conv2 = torch.nn.Conv1d(64, 128, 1) ...
37.969388
119
0.581564
2f855485e8713b57d9f1534e10ca14e66a40c28d
3,487
py
Python
venv/lib/python3.6/site-packages/botocore/__init__.py
owenabrams/greyapp
05e1a7a7719f9974cb4424154c11338567383f96
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/botocore/__init__.py
owenabrams/greyapp
05e1a7a7719f9974cb4424154c11338567383f96
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/botocore/__init__.py
owenabrams/greyapp
05e1a7a7719f9974cb4424154c11338567383f96
[ "MIT" ]
null
null
null
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http...
37.494624
78
0.704044
90b82e59552d096aca9fbece500b6f96b5426d29
108
py
Python
kibitzr/__init__.py
cescobarresi/kibitzr
629f894d8d102657bc2c27edda2eb47ff51f1fa8
[ "MIT" ]
null
null
null
kibitzr/__init__.py
cescobarresi/kibitzr
629f894d8d102657bc2c27edda2eb47ff51f1fa8
[ "MIT" ]
null
null
null
kibitzr/__init__.py
cescobarresi/kibitzr
629f894d8d102657bc2c27edda2eb47ff51f1fa8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Peter Demin' __email__ = 'kibitzrrr@gmail.com' __version__ = '5.3.4'
18
33
0.648148
16b339b80fdf529c13c710561ed38636a71de451
17,337
py
Python
src/allennlp/fortex/allennlp/allennlp_processors.py
Piyush13y/forte-wrappers
250df428a8705f769d53eb070f89c3f66e713015
[ "Apache-2.0" ]
3
2021-06-17T18:52:00.000Z
2022-01-11T19:15:21.000Z
src/allennlp/fortex/allennlp/allennlp_processors.py
Piyush13y/forte-wrappers
250df428a8705f769d53eb070f89c3f66e713015
[ "Apache-2.0" ]
66
2021-03-30T15:04:11.000Z
2022-03-24T04:35:11.000Z
src/allennlp/fortex/allennlp/allennlp_processors.py
Piyush13y/forte-wrappers
250df428a8705f769d53eb070f89c3f66e713015
[ "Apache-2.0" ]
10
2021-03-16T19:48:31.000Z
2022-03-01T05:48:17.000Z
# Copyright 2021 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
41.775904
80
0.580839
6f5e9e48847a97eeda7383fb09160ce23265342b
2,292
py
Python
NetLights.py
5N6R/NetLights
516cee397d36308bfe2d28af8caf5a9fe0bfda15
[ "MIT" ]
2
2017-02-11T08:54:50.000Z
2022-01-25T12:13:26.000Z
NetLights.py
5N6R/NetLights
516cee397d36308bfe2d28af8caf5a9fe0bfda15
[ "MIT" ]
null
null
null
NetLights.py
5N6R/NetLights
516cee397d36308bfe2d28af8caf5a9fe0bfda15
[ "MIT" ]
null
null
null
#(c) 2017, coded 5n6r #!/usr/bin/env python3 import dns.resolver import dns.rdtypes import os, sys, re from tkinter import * ip=["81.218.119.11","209.88.198.133","77.88.8.7", "77.88.8.3","208.67.222.123", "208.67.220.123","156.154.70.4","156.154.71.4"] red=yellow=green=black=0 rez=[red,yellow,green,black] def mou...
28.65
105
0.635689
c19123ae3f60bc720c1ce9dfaf0dc2036541df95
413
py
Python
ticket/migrations/0007_auto_20210113_1743.py
hossamhsn74/django-dmtech-task
5cea908b9a4b9e1f7052e3aa46385e1a599be09f
[ "MIT" ]
null
null
null
ticket/migrations/0007_auto_20210113_1743.py
hossamhsn74/django-dmtech-task
5cea908b9a4b9e1f7052e3aa46385e1a599be09f
[ "MIT" ]
null
null
null
ticket/migrations/0007_auto_20210113_1743.py
hossamhsn74/django-dmtech-task
5cea908b9a4b9e1f7052e3aa46385e1a599be09f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-01-13 15:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ticket', '0006_ticket_code'), ] operations = [ migrations.AlterField( model_name='ticketqrcode', name='code', ...
21.736842
81
0.602906
162c20e7287fe04b9239b303b98ac61360e228a1
2,442
py
Python
aliyun-python-sdk-linkwan/aliyunsdklinkwan/request/v20190301/CountRentedJoinPermissionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-linkwan/aliyunsdklinkwan/request/v20190301/CountRentedJoinPermissionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-linkwan/aliyunsdklinkwan/request/v20190301/CountRentedJoinPermissionsRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.911765
93
0.777232
ded1c3b369c844e37ba6f31ee037e0dc4bda3660
123
py
Python
Thefirstandlastoccurence.py
Arnabsaha6/Snakify
df0c1112ae8a56a275044f786bfd89f746e3ca85
[ "MIT" ]
null
null
null
Thefirstandlastoccurence.py
Arnabsaha6/Snakify
df0c1112ae8a56a275044f786bfd89f746e3ca85
[ "MIT" ]
null
null
null
Thefirstandlastoccurence.py
Arnabsaha6/Snakify
df0c1112ae8a56a275044f786bfd89f746e3ca85
[ "MIT" ]
null
null
null
Code: s = input() if s.count('f') == 1: print(s.find('f')) elif s.count('f') >= 2: print(s.find('f'), s.rfind('f'))
20.5
36
0.495935
6f2142fbe976ca5b5ece92226b1b0d8fb8097ff8
4,743
bzl
Python
dev-infra/bazel/api-golden/index.bzl
yuchenghu/angular-cn
e926e3dab8cc304b537aecd703e756a2de90448f
[ "MIT" ]
17
2021-04-29T11:00:59.000Z
2021-05-25T10:11:24.000Z
dev-infra/bazel/api-golden/index.bzl
yuchenghu/angular-cn
e926e3dab8cc304b537aecd703e756a2de90448f
[ "MIT" ]
1
2021-04-05T16:16:34.000Z
2021-04-05T16:16:34.000Z
dev-infra/bazel/api-golden/index.bzl
yuchenghu/angular-cn
e926e3dab8cc304b537aecd703e756a2de90448f
[ "MIT" ]
2
2021-01-13T02:18:19.000Z
2021-01-13T02:22:38.000Z
load("//dev-infra/bazel:extract_js_module_output.bzl", "extract_js_module_output") load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary", "nodejs_test") nodejs_test_args = [ # Needed so that node doesn't walk back to the source directory. # From there, the relative imports would point to .ts files. ...
37.054688
115
0.660342
f7d7be3b8ae1f41fd7761fc57ac06133e0ef5914
4,193
py
Python
wiggle/wiggle.py
gatechzhu/wiggle
664c1909ae768456e662e249fb51c5899334fc3b
[ "MIT" ]
15
2017-07-20T12:55:44.000Z
2021-12-17T04:10:30.000Z
wiggle/wiggle.py
gatechzhu/wiggle
664c1909ae768456e662e249fb51c5899334fc3b
[ "MIT" ]
null
null
null
wiggle/wiggle.py
gatechzhu/wiggle
664c1909ae768456e662e249fb51c5899334fc3b
[ "MIT" ]
4
2018-02-02T03:44:35.000Z
2021-02-26T11:37:58.000Z
import numpy as np import matplotlib.pyplot as plt def insert_zeros(trace, tt=None): """Insert zero locations in data trace and tt vector based on linear fit""" if tt is None: tt = np.arange(len(trace)) # Find zeros zc_idx = np.where(np.diff(np.signbit(trace)))[0] x1 = tt[zc_idx] x2...
27.051613
79
0.55855
4301d7478c8d2ea7b163e4391cdac8d81b1ad7ef
711
py
Python
examples/ManagedApp.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
2
2015-01-12T14:47:19.000Z
2018-10-03T09:27:22.000Z
examples/ManagedApp.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
null
null
null
examples/ManagedApp.py
tescalada/npyscreen-restructure
0833bbbdec18439182f102d2147f3756fa98aadd
[ "BSD-2-Clause" ]
1
2020-03-20T20:19:33.000Z
2020-03-20T20:19:33.000Z
#!/usr/bin/env python # encoding: utf-8 """ ExampleManaged.py Created by Nicholas Cole on 2007-02-22. """ import npyscreen, curses class MyTestApp(npyscreen.NPSAppManaged): def onStart(self): self.registerForm("MAIN", MainForm()) class MainForm(npyscreen.Form): def create(self): self.add...
21.545455
97
0.66526
d224ce42847ee92d46b1f471ee1226b4c7f69232
19,801
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/ebgp_multihop/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/ebgp_multihop/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/ebgp_multihop/config/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
40.327902
423
0.608858
4661e025308b6a6034d3d7a0dcfcdf513554b5b1
1,930
py
Python
sdk/python/pulumi_azure_native/resources/v20201001/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/resources/v20201001/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/resources/v20201001/_enums.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'DeploymentMode', 'ExpressionEvaluationOptionsScopeType', 'ManagedServiceIdentityType', 'OnErrorDepl...
29.692308
433
0.714508
5378dce43b6ac085a35ed1a3b8f5b8a948caa0f2
496
py
Python
cloudrunner_server/version.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
2
2016-03-31T08:45:29.000Z
2021-04-28T15:18:45.000Z
cloudrunner_server/version.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
null
null
null
cloudrunner_server/version.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # /******************************************************* # * Copyright (C) 2013-2014 CloudRunner.io <info@cloudrunner.io> # * # * Proprietary and confidential # * This file is part of CloudRunner Server. # * # * CloudRunner S...
31
65
0.528226
283da40436d0049da146ec666cd79375edc6e44b
2,644
py
Python
pal/runner/intel_64bit_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
pal/runner/intel_64bit_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
pal/runner/intel_64bit_runner.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
import os import copy from pal.runner.abstract_runner import AbstractRunner from pal.parser import parse_registers from pal.parser import parse_instructions class Intel64bitRunner(AbstractRunner): def run(self, generators): input_root = self.config.pal_data_dir output_root = self.config.pal_output...
43.344262
80
0.642209
008504d7a8f0caeb399718724b18a4fd1e4f0720
6,525
py
Python
app/api/v1/statistics/image.py
kalraid/HoloLibraryAPI
5470b279ae6922f85353c8ecf73a9fc13d83552a
[ "Apache-2.0" ]
1
2022-01-27T02:30:39.000Z
2022-01-27T02:30:39.000Z
app/api/v1/statistics/image.py
kalraid/HoloLibraryAPI
5470b279ae6922f85353c8ecf73a9fc13d83552a
[ "Apache-2.0" ]
31
2021-09-20T01:21:24.000Z
2022-02-08T01:29:18.000Z
app/api/v1/statistics/image.py
kalraid/HoloLibraryAPI
5470b279ae6922f85353c8ecf73a9fc13d83552a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json from falcon.asgi import Request, WebSocket from falcon.errors import WebSocketDisconnected import log from app.api.common import BaseResource from app.database import get_session from app.model import DrawStatistics, HoloTwitterDraw, HoloTwitterCustomDraw, DrawStatisticsMenual, \ ...
42.647059
114
0.583602
f624a7acd674d5bfcb80b6847c5eef0d2305f4f2
21,942
py
Python
finch/processes/utils.py
cjauvin/finch
02647cac669ac01572203ded7a8384f3324f4e0e
[ "Apache-2.0" ]
null
null
null
finch/processes/utils.py
cjauvin/finch
02647cac669ac01572203ded7a8384f3324f4e0e
[ "Apache-2.0" ]
null
null
null
finch/processes/utils.py
cjauvin/finch
02647cac669ac01572203ded7a8384f3324f4e0e
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta import logging from multiprocessing.pool import ThreadPool from pathlib import Path import re import json from typing import ( Callable, Deque, Dict, Generator, Iterable, List, Optional, Tuple, Union, ) import zipfile import cftime import netCDF4 impor...
33.245455
112
0.624328
a157f4a329b35ee3b506298ef625b31cc824a351
4,886
py
Python
ExaTrkXPlots/performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
ExaTrkXPlots/performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
ExaTrkXPlots/performance.py
rlf23240/ExaTrkXPlotting
777ca91e6b0d4389a643bca166c5413f8fc98ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from ExaTrkXPlotting import plot import sklearn.metrics @plot('exatrkx.performance.score_distribution', ['truth', 'score']) def score_distribution( ax, data, log_scale=True, bins=50, title=None ): """ Plot score distribution for true and fak...
24.676768
92
0.602743
c4ac886c6c0018757f6c0a51e04b9801244a5ce6
623
py
Python
contrib/qt_translations.py
Nearkitai/Nearkitai
305125d13a97b9816909d8c0bf14dad337e93bb7
[ "MIT" ]
null
null
null
contrib/qt_translations.py
Nearkitai/Nearkitai
305125d13a97b9816909d8c0bf14dad337e93bb7
[ "MIT" ]
null
null
null
contrib/qt_translations.py
Nearkitai/Nearkitai
305125d13a97b9816909d8c0bf14dad337e93bb7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Helpful little script that spits out a comma-separated list of # language codes for Qt icons that should be included # in binary transfer distributions import glob import os import re import sys if len(sys.argv) != 3: sys.exit("Usage: %s $QTDIR/translations $NEARKITAIDIR/src/qt/locale"%sys....
27.086957
112
0.685393
eedc2ae73017a47f985b8ec32aa1644ef2dbd4a0
1,850
py
Python
mindhome_alpha/erpnext/education/doctype/fees/test_fees.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/education/doctype/fees/test_fees.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/education/doctype/fees/test_fees.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import nowdate from frappe.utils.make_random import get_random from erpnext.education.doctype.program.test_program import make_pro...
33.035714
100
0.728649
e3fd0c4837adad01c0b54da00f0f9083520abc70
13,140
py
Python
EffectPFC/Network_BG.py
Olimaol/Cognitive-Learning-Agent
c60a6021432eb3d500cb269d6c49c69c3cf5abe7
[ "MIT" ]
null
null
null
EffectPFC/Network_BG.py
Olimaol/Cognitive-Learning-Agent
c60a6021432eb3d500cb269d6c49c69c3cf5abe7
[ "MIT" ]
null
null
null
EffectPFC/Network_BG.py
Olimaol/Cognitive-Learning-Agent
c60a6021432eb3d500cb269d6c49c69c3cf5abe7
[ "MIT" ]
null
null
null
""" Basal Ganglia Model based on the version of F. Escudero Modified by A. Schwarz Version 1.0 - 29.05.2018 """ from ANNarchy import Constant, Neuron, Synapse, Population, Projection, Uniform, setup from parameters import params from changed_val import changed import numpy as np np.random.seed() setup(num_threads=param...
35.13369
200
0.641781
e1994b337edaa962da0285d26e4d796f4e50217d
2,903
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/_configuration.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/_configuration.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/aio/_configuration.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.590164
134
0.696521
0c8d334a8bb7b6db17b9554061854afb250f7a74
2,335
py
Python
ASIS_Exps/network/ASIS_utils.py
Fawkes7/mmdetection3d
7d5a339c699a73b3c8d65de5e48c7407f8640b23
[ "Apache-2.0" ]
1
2020-11-20T23:10:34.000Z
2020-11-20T23:10:34.000Z
ASIS_Exps/network/ASIS_utils.py
Fawkes7/mmdetection3d
7d5a339c699a73b3c8d65de5e48c7407f8640b23
[ "Apache-2.0" ]
null
null
null
ASIS_Exps/network/ASIS_utils.py
Fawkes7/mmdetection3d
7d5a339c699a73b3c8d65de5e48c7407f8640b23
[ "Apache-2.0" ]
null
null
null
import torch def pairwise_distance(fm): B,C,N = fm.size() fm2 = fm.permute(0,2,1) # [B,N,5] dist = [] for i in range(B): f = fm2[i] l1 = torch.abs(torch.sub(f, f.unsqueeze(1))).sum(-1) # [N,N] dist.append(l1) return torch.stack(dist) # [B,N,N] def knn_thre(adj_matrix, k=...
35.923077
114
0.643683
afd2505cf2c45d3c5536ea3d2bf73fa8566c9b79
6,767
py
Python
app/pylibs/win32/Cryptodome/Hash/MD4.py
skylex77/PokeMapGT
dbef69236fd8ec492d00bd067b430686451cc102
[ "MIT" ]
2,557
2016-07-19T22:20:45.000Z
2022-01-25T10:53:35.000Z
app/pylibs/win32/Cryptodome/Hash/MD4.py
skylex77/PokeMapGT
dbef69236fd8ec492d00bd067b430686451cc102
[ "MIT" ]
1,360
2016-07-20T02:06:42.000Z
2021-07-27T12:46:40.000Z
app/pylibs/win32/Cryptodome/Hash/MD4.py
skylex77/PokeMapGT
dbef69236fd8ec492d00bd067b430686451cc102
[ "MIT" ]
607
2016-07-20T03:34:04.000Z
2022-01-05T14:57:09.000Z
# =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redi...
36.187166
80
0.572041
d02dffdec38794244126b03e1d4880023e911cb2
1,094
py
Python
src/project_2/src/inverse.py
anurag-b/project_2_cmsc498F
736626e0144cf45ebeddd341cfcb4fcdac679c3f
[ "MIT" ]
null
null
null
src/project_2/src/inverse.py
anurag-b/project_2_cmsc498F
736626e0144cf45ebeddd341cfcb4fcdac679c3f
[ "MIT" ]
null
null
null
src/project_2/src/inverse.py
anurag-b/project_2_cmsc498F
736626e0144cf45ebeddd341cfcb4fcdac679c3f
[ "MIT" ]
null
null
null
#!/usr/bin/python from project_2.kinematics import * import argparse parser = argparse.ArgumentParser(description='Inverse Kinematics Tester') parser.add_argument('-x0', default=0.0, type=float) parser.add_argument('-y0', default=0.0, type=float) parser.add_argument('-theta0', default=0.0, type=float) pars...
30.388889
73
0.683729
765a77b374386b0921a62bd2e539b867d7d4babc
123
py
Python
locations/admin.py
Cortador-de-Grama-Autonomo/Software-Api-Gateway
0e8273c874a3f3821479e54e602d6e74cfe3d8fe
[ "MIT" ]
null
null
null
locations/admin.py
Cortador-de-Grama-Autonomo/Software-Api-Gateway
0e8273c874a3f3821479e54e602d6e74cfe3d8fe
[ "MIT" ]
1
2021-09-08T02:13:05.000Z
2021-09-08T02:13:05.000Z
locations/admin.py
Cortador-de-Grama-Autonomo/Software-Api-Gateway
0e8273c874a3f3821479e54e602d6e74cfe3d8fe
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Locations # Register your models here. admin.site.register(Locations)
24.6
32
0.821138
ddc14c6287991c811190f149687eeb6cb68ca241
1,399
py
Python
MVPA/task002/create_evds.py
psychoinformatics-de/studyforrest-paper-auditorydecoding
afdbf544b462b45e8981e085177f23404946c5a1
[ "MIT" ]
1
2018-02-15T19:34:17.000Z
2018-02-15T19:34:17.000Z
MVPA/task002/create_evds.py
psychoinformatics-de/studyforrest-paper-auditorydecoding
afdbf544b462b45e8981e085177f23404946c5a1
[ "MIT" ]
null
null
null
MVPA/task002/create_evds.py
psychoinformatics-de/studyforrest-paper-auditorydecoding
afdbf544b462b45e8981e085177f23404946c5a1
[ "MIT" ]
null
null
null
from mvpa2.suite import eventrelated_dataset, zscore import numpy as np def fx(dataset, behav_file, motion_file, polynomial_order, run_number): print("events -> %s" % behav_file) print("nuisance -> %s" % motion_file) tsds = dataset behav_txt = np.recfromcsv(behav_file, delimiter=',') ...
32.534884
82
0.601858
f9236ffcff942246710809a87e8df118cbdedd2b
104,577
py
Python
tensor2tensor/models/transformer.py
sciforce/tensor2tensor
47e6209685727c4121b6b66e8662dffc7e0afb99
[ "Apache-2.0" ]
1
2019-07-26T01:57:23.000Z
2019-07-26T01:57:23.000Z
tensor2tensor/models/transformer.py
sciforce/tensor2tensor
47e6209685727c4121b6b66e8662dffc7e0afb99
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/transformer.py
sciforce/tensor2tensor
47e6209685727c4121b6b66e8662dffc7e0afb99
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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...
36.476107
80
0.708923
42b1ef9d63ec549b06a487045f423884eee58cd8
48,667
py
Python
sdk/python/pulumi_azure_native/sql/v20200801preview/extended_server_blob_auditing_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/extended_server_blob_auditing_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/sql/v20200801preview/extended_server_blob_auditing_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities fro...
60.231436
834
0.693797
61076ede9d82da1c83bf483faaf799ff5d473d2a
4,226
py
Python
audio/learner.py
mogwai/fastai-audio
15bf9dfead9a869f575615564ad846b890527ea3
[ "MIT" ]
157
2019-05-31T06:14:58.000Z
2020-09-02T20:26:41.000Z
audio/learner.py
mogwai/fastai-audio
15bf9dfead9a869f575615564ad846b890527ea3
[ "MIT" ]
31
2019-07-08T18:43:15.000Z
2020-09-04T12:15:45.000Z
audio/learner.py
mogwai/fastai_audio
15bf9dfead9a869f575615564ad846b890527ea3
[ "MIT" ]
60
2019-06-03T20:32:23.000Z
2020-09-02T20:26:43.000Z
from .data import * from torch.nn import Conv2d, Sequential, Module def adapt_conv(conv: Conv2d, n_channels: int, pretrained: bool = False, init: Optional[Callable] = None, padding_mode: str = 'zeros'): '''Create a new layer that adapts `conv` to accept `n_channels` inputs. Copies existing w...
52.825
141
0.677709
16680523cacd4cd3a6fa61fe3d07af16022c96d3
519
py
Python
content_n_exceptions/ex120_word_counts.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
3
2020-11-28T08:26:54.000Z
2020-12-23T18:37:37.000Z
content_n_exceptions/ex120_word_counts.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
1
2020-10-22T02:05:11.000Z
2020-10-22T02:05:53.000Z
content_n_exceptions/ex120_word_counts.py
Alyssonmach/learning-python-with-codes
e5ef70f3b56712e98449b3053eb34416b8025cb1
[ "MIT" ]
null
null
null
def count_words(filename): """Count the approximate number of words in a file.""" try: with open(filename, 'r', encoding='utf-8') as f_obj: contents = f_obj.read() except FileNotFoundError: msg = "Sorry, the file " + filename + " does not exist." print(msg) else: ...
39.923077
82
0.587669
dc3a6cae86db732d7d467b4fd5f18711e2aad777
10,078
py
Python
src/modeling/predict_lyft.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
44
2020-12-09T06:15:15.000Z
2022-03-31T02:37:47.000Z
src/modeling/predict_lyft.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
null
null
null
src/modeling/predict_lyft.py
pfnet-research/kaggle-lyft-motion-prediction-4th-place-solution
0bc51075db31a747eeebb7f4775a3cd26ad5f870
[ "MIT" ]
7
2020-12-09T10:08:32.000Z
2021-08-17T01:53:51.000Z
import argparse from distutils.util import strtobool import numpy as np import torch from pathlib import Path from torch.utils.data import DataLoader from torch.utils.data.dataset import Subset from l5kit.evaluation import write_pred_csv from l5kit.data import LocalDataManager, ChunkedDataset from l5kit.dataset impor...
39.833992
122
0.661242
1627d49baed3ca1909354a5da9f55ca5423b15c5
268,494
py
Python
gluon/tools.py
pcwalden/web2py
2329bd3c4f3121e61efb4d4d36dbdb8ae6c6c90f
[ "BSD-3-Clause" ]
null
null
null
gluon/tools.py
pcwalden/web2py
2329bd3c4f3121e61efb4d4d36dbdb8ae6c6c90f
[ "BSD-3-Clause" ]
null
null
null
gluon/tools.py
pcwalden/web2py
2329bd3c4f3121e61efb4d4d36dbdb8ae6c6c90f
[ "BSD-3-Clause" ]
null
null
null
#!/bin/python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) Auth, Mail, PluginManager and various utilities ------------------------------------------------ """ import ...
41.665736
171
0.53599
682765589a45c42800bd9b53bb7ec7ff549d1fcd
107
py
Python
lang/py/cookbook/v2/source/cb2_17_8_exm_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_17_8_exm_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_17_8_exm_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
static PyObject* empty5(PyObject* self, PyObject* args) { return Py_None; /* ***WRONG*** */ }
17.833333
46
0.579439
8262bcf4f09ca8a541f73e9573d1ff42211d08ed
1,131
py
Python
scripts/vrf_scripts/01_deploy_vrf.py
garyb9/chainlink-mix
c4458c99cd13f1ec6fbed84a05c2a9c683842eb0
[ "MIT" ]
2
2021-12-06T10:12:46.000Z
2022-03-23T23:06:46.000Z
scripts/vrf_scripts/01_deploy_vrf.py
garyb9/chainlink-mix
c4458c99cd13f1ec6fbed84a05c2a9c683842eb0
[ "MIT" ]
2
2022-02-27T22:08:43.000Z
2022-02-27T22:08:48.000Z
scripts/vrf_scripts/01_deploy_vrf.py
garyb9/chainlink-mix
c4458c99cd13f1ec6fbed84a05c2a9c683842eb0
[ "MIT" ]
2
2021-11-08T17:54:16.000Z
2021-12-02T02:28:27.000Z
#!/usr/bin/python3 from brownie import VRFConsumer, VRFCoordinatorMock, LinkToken, config, network from scripts.helpful_scripts import ( get_account, get_verify_status, LOCAL_BLOCKCHAIN_ENVIRONMENTS, ) from scripts.deploy_mocks import deploy_mocks def depoly_vrf(): account = get_account() print(f"...
29.763158
86
0.678161
e04a0eeae7612cc2beb93d2ca084fb1209c83800
1,221
py
Python
aln2fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
1
2017-06-19T15:15:26.000Z
2017-06-19T15:15:26.000Z
aln2fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
null
null
null
aln2fasta.py
ba1/BioParsing
8a0257d4765a7bc86fef7688762abbeaaf3cef07
[ "MIT" ]
null
null
null
''' Created on Oct 20, 2015 @author: bardya ''' import os import argparse import sys from Bio import SeqIO def parse_args(): parser = argparse.ArgumentParser(description='build multifasta files from aln files') parser.add_argument('-i', dest='infilepath', metavar='<aln_file_path>', type=argparse.FileType...
27.133333
105
0.665848
14232426432fec2a2289cd9484a3bf23dd5c2c14
2,110
py
Python
drone/9_games/42_43_44_run_on_course/droneapp/models/course.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
drone/9_games/42_43_44_run_on_course/droneapp/models/course.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
drone/9_games/42_43_44_run_on_course/droneapp/models/course.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
import logging import time from droneapp.models.base import Singleton logger = logging.getLogger(__name__) class BaseCourse(metaclass=Singleton): def __init__(self, name, drone): self.name = name self.status = 0 self.is_running = False self.start_time = None self.elapse...
21.530612
56
0.54218
174efd8a1027b52cf2bd0ee721dd8fce07a29924
1,474
py
Python
nipype/interfaces/minc/tests/test_auto_Convert.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/minc/tests/test_auto_Convert.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
2
2018-04-17T19:18:16.000Z
2020-03-04T22:05:02.000Z
nipype/interfaces/minc/tests/test_auto_Convert.py
oesteban/nipype
c14f24eba1da08711bbb894e049ee858ed740096
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..minc import Convert def test_Convert_inputs(): input_map = dict( args=dict(argstr='%s', ), chunk=dict(argstr='-chunk %d', ), clobber=dict( argstr='-clobber', usedefa...
30.081633
67
0.559701
29a2cff9f7c4c0bbc20c0f1a93391ce66e31c224
623
py
Python
words.py
arnavpshah/c0deex-python-2
4336ac93191cc1bd258936fa139ce64f536fd090
[ "MIT" ]
null
null
null
words.py
arnavpshah/c0deex-python-2
4336ac93191cc1bd258936fa139ce64f536fd090
[ "MIT" ]
null
null
null
words.py
arnavpshah/c0deex-python-2
4336ac93191cc1bd258936fa139ce64f536fd090
[ "MIT" ]
null
null
null
'''Function to get random word from list''' import random WORDLIST = 'wordlist.txt' def get_random_word(min_word_length): """Gets a random word without using extra memory """ num_words_processed = 0 curr_word = None without opne(WORDLIST 'r') as f: for word in f: if '(' in wo...
27.086957
58
0.571429
87bd091723b49a59c33acd8b8d6c26f91371c084
1,325
py
Python
custom_components/ge_home/entities/common/ge_water_heater.py
87racer/ha_gehome
8b8741aec9b07bc13c270c1377a5e68c149d6f91
[ "MIT" ]
null
null
null
custom_components/ge_home/entities/common/ge_water_heater.py
87racer/ha_gehome
8b8741aec9b07bc13c270c1377a5e68c149d6f91
[ "MIT" ]
null
null
null
custom_components/ge_home/entities/common/ge_water_heater.py
87racer/ha_gehome
8b8741aec9b07bc13c270c1377a5e68c149d6f91
[ "MIT" ]
null
null
null
import abc import logging from typing import Any, Dict, List, Optional from homeassistant.components.water_heater import WaterHeaterEntity from homeassistant.const import ( TEMP_FAHRENHEIT, TEMP_CELSIUS ) from gehomesdk import ErdCode, ErdMeasurementUnits from ...const import DOMAIN from .ge_erd_entity import ...
28.804348
84
0.725283
3a97941960ade3f2eae4d4c1d0d4d8068010f244
5,448
py
Python
src/skmultiflow/trees/numeric_attribute_regression_observer_multi_target.py
PGijsbers/scikit-multiflow
f18a433cb7247aee0c5e7028536cc05045eec88f
[ "BSD-3-Clause" ]
null
null
null
src/skmultiflow/trees/numeric_attribute_regression_observer_multi_target.py
PGijsbers/scikit-multiflow
f18a433cb7247aee0c5e7028536cc05045eec88f
[ "BSD-3-Clause" ]
null
null
null
src/skmultiflow/trees/numeric_attribute_regression_observer_multi_target.py
PGijsbers/scikit-multiflow
f18a433cb7247aee0c5e7028536cc05045eec88f
[ "BSD-3-Clause" ]
null
null
null
from skmultiflow.trees.attribute_class_observer import AttributeClassObserver from skmultiflow.trees.numeric_attribute_binary_test import \ NumericAttributeBinaryTest from skmultiflow.trees.attribute_split_suggestion import \ AttributeSplitSuggestion class NumericAttributeRegressionObserverMultiTarget(Attribu...
37.061224
78
0.590675
82203e170e590bca946f9ba5f2105a59e4dd1259
12,223
py
Python
homeassistant/components/ezviz/config_flow.py
jonasjeeliasson/core
0301706fc631ad1f2cd2532667ba9dfe2f856198
[ "Apache-2.0" ]
1
2020-12-18T12:23:04.000Z
2020-12-18T12:23:04.000Z
homeassistant/components/ezviz/config_flow.py
jonasjeeliasson/core
0301706fc631ad1f2cd2532667ba9dfe2f856198
[ "Apache-2.0" ]
51
2020-07-06T14:35:48.000Z
2022-03-31T06:01:47.000Z
homeassistant/components/ezviz/config_flow.py
jonasjeeliasson/core
0301706fc631ad1f2cd2532667ba9dfe2f856198
[ "Apache-2.0" ]
2
2020-06-03T20:24:39.000Z
2020-06-06T19:52:09.000Z
"""Config flow for ezviz.""" import logging from pyezviz.client import EzvizClient, HTTPError, InvalidURL, PyEzvizError from pyezviz.test_cam_rtsp import AuthTestResultFailed, InvalidHost, TestRTSPAuth import voluptuous as vol from homeassistant.config_entries import CONN_CLASS_CLOUD_POLL, ConfigFlow, OptionsFlow fro...
32.594667
88
0.624315
a1fcaaf45af33a39e9b376617294eb3a3d009ad4
8,464
py
Python
cinder/tests/unit/attachments/test_attachments_api.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/attachments/test_attachments_api.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/tests/unit/attachments/test_attachments_api.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
46.762431
79
0.562736
09f9d4af5df074b3a38475aef8a5465d3054bcbf
18,941
py
Python
kicost/distributors/api_partinfo_kitspace.py
Miceuz/KiCost
e442524ca152be1cc406395c771d7047bfc990bf
[ "MIT" ]
1
2020-03-06T08:08:24.000Z
2020-03-06T08:08:24.000Z
kicost/distributors/api_partinfo_kitspace.py
Miceuz/KiCost
e442524ca152be1cc406395c771d7047bfc990bf
[ "MIT" ]
null
null
null
kicost/distributors/api_partinfo_kitspace.py
Miceuz/KiCost
e442524ca152be1cc406395c771d7047bfc990bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # MIT license # # Copyright (C) 2018 by XESS Corporation / Max Maisel / Hildo Guillardi Júnior # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, i...
51.191892
158
0.52352
34328efc26d6ae2c3126d8e770807525e689f942
3,641
py
Python
homeassistant/components/sharkiq/config_flow.py
paoloantinori/core
4bbc737954325e84e42572e8ce7e40116d1a271e
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sharkiq/config_flow.py
paoloantinori/core
4bbc737954325e84e42572e8ce7e40116d1a271e
[ "Apache-2.0" ]
45
2020-07-23T07:13:34.000Z
2022-03-31T06:01:55.000Z
homeassistant/components/sharkiq/config_flow.py
ajschmidt8/home-assistant
75153dd4a3061f27674f4adbd9283e6c46534e66
[ "Apache-2.0" ]
null
null
null
"""Config flow for Shark IQ integration.""" import asyncio from typing import Dict, Optional import aiohttp import async_timeout from sharkiqpy import SharkIqAuthError, get_ayla_api import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.const import CONF_PASSWORD, CONF...
33.1
84
0.642406
8f30f7440b3e96009d37d162643c3d876dfe0fdc
4,231
py
Python
DQM/Integration/python/clients/dt4ml_dqm_sourceclient-live_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
DQM/Integration/python/clients/dt4ml_dqm_sourceclient-live_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
DQM/Integration/python/clients/dt4ml_dqm_sourceclient-live_cfg.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-23T09:25:45.000Z
2021-11-23T09:25:45.000Z
from __future__ import print_function import FWCore.ParameterSet.Config as cms import sys import os from Configuration.Eras.Era_Run3_cff import Run3 process = cms.Process("DTDQM", Run3) unitTest = False if 'unitTest=True' in sys.argv: unitTest=True #---------------------------- #### Event Source #---------------...
32.79845
131
0.691562
2286a682b9fd6ae067ff4eeabea3ac54f348f8bc
318
py
Python
LGWebOSRemote/apps/openDisney+.py
ibrad3/small-projects
786a8a215fa63df63901d2eeb70653bfd2ceb1f7
[ "MIT" ]
null
null
null
LGWebOSRemote/apps/openDisney+.py
ibrad3/small-projects
786a8a215fa63df63901d2eeb70653bfd2ceb1f7
[ "MIT" ]
null
null
null
LGWebOSRemote/apps/openDisney+.py
ibrad3/small-projects
786a8a215fa63df63901d2eeb70653bfd2ceb1f7
[ "MIT" ]
null
null
null
from pylgtv import WebOsClient import sys import logging logging.basicConfig(stream=sys.stdout, level=logging.INFO) try: tv = WebOsClient('192.168.0.54') for x in tv.get_apps(): if x['title'] == 'Disney+': tv.launch_app(x['id']) except: print("Error connecting to TV")
21.2
59
0.622642
fdb47aaa102522cd0864c26f2e558e8f1425db65
15,163
py
Python
app/project/settings.py
giordan83/dockdj
8d57057b89cf2414e18e6cda733af944e32dbbe7
[ "MIT" ]
64
2015-10-04T02:54:06.000Z
2021-03-30T04:02:47.000Z
app/project/settings.py
kodani/elasticdock
a413be1075a0b3c5ac77bb2686b97ac39ef5cb1d
[ "MIT" ]
7
2015-10-05T15:11:34.000Z
2017-10-30T03:44:03.000Z
app/project/settings.py
kodani/elasticdock
a413be1075a0b3c5ac77bb2686b97ac39ef5cb1d
[ "MIT" ]
15
2015-11-13T21:02:48.000Z
2019-10-01T08:06:01.000Z
# -*- coding: utf-8 -*- """ Django settings for project project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/sett...
33.179431
101
0.563411
547fecc33b6b1b6d3f216782b15983150561ce11
3,897
py
Python
src/api/datalab/api/queryengine.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datalab/api/queryengine.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datalab/api/queryengine.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
38.97
111
0.649731
299d32633c4cbe8a9b5e95661fb5f19e488951fa
25
py
Python
tests/sample_ext/default_settings.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
5
2020-01-09T14:46:33.000Z
2021-04-23T15:25:11.000Z
tests/sample_ext/default_settings.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
111
2019-06-30T05:45:57.000Z
2022-03-28T11:15:29.000Z
tests/sample_ext/default_settings.py
pyapp-org/pyapp
46c9e8e3dbf1a872628fad8224b99b458972c92c
[ "BSD-3-Clause" ]
2
2019-05-29T09:01:10.000Z
2021-04-23T15:25:32.000Z
SAMPLE_EXT_VALUE = "123"
12.5
24
0.76
f7b197a518643842d062e79abf6a9ff8c1d2a9ed
44,391
py
Python
pandas/tests/frame/test_dtypes.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_dtypes.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/frame/test_dtypes.py
AakankshaAshok/pandas
6498bc1e8a12003640139db4794bd5cd2462c116
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from datetime import timedelta import numpy as np import pytest from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype import pandas as pd from pandas import ( Categorical, DataFrame, Series, Timedelta, Timestamp, _np_version_under1p14, ...
36.090244
88
0.516816
c259000b3f89c20345cd97d13c6a3eb2bd222fa3
4,723
py
Python
absql/__init__.py
chriscardillo/ABSQL
d911a15daee46a2f4e867f09e85c582fa987e5ed
[ "MIT" ]
null
null
null
absql/__init__.py
chriscardillo/ABSQL
d911a15daee46a2f4e867f09e85c582fa987e5ed
[ "MIT" ]
null
null
null
absql/__init__.py
chriscardillo/ABSQL
d911a15daee46a2f4e867f09e85c582fa987e5ed
[ "MIT" ]
null
null
null
from inspect import cleandoc from absql.files import parse, accepted_file_types from absql.files.loader import generate_loader from jinja2 import Template, DebugUndefined from absql.functions import default_functions from absql.text import ( clean_spacing, create_replacements, flatten_inputs, pretty_enc...
33.735714
84
0.623333
d38413e2e1059b9b04eb4d96927356d3f0e4f82d
6,408
py
Python
pirates/effects/HellFire.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/effects/HellFire.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/effects/HellFire.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.effects.HellFire from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import Par...
50.0625
195
0.697253
7c5ba6d4dbeddae2a70b083315ef63989c99b818
2,121
py
Python
logprog_ctl.py
gbhering/log-prog-2019
f9605aa44b7a46789aac0fac7a94f4fb52d36bf8
[ "Unlicense" ]
null
null
null
logprog_ctl.py
gbhering/log-prog-2019
f9605aa44b7a46789aac0fac7a94f4fb52d36bf8
[ "Unlicense" ]
3
2019-03-19T17:16:43.000Z
2019-03-21T20:48:32.000Z
logprog_ctl.py
gbhering/log-prog-2019
f9605aa44b7a46789aac0fac7a94f4fb52d36bf8
[ "Unlicense" ]
null
null
null
from collections import defaultdict, deque from logprog_scc import find_sccs class Kripke: """ K = < S(tates), R(elationships), L(abels) > """ def __init__(self, S=set(), R=set(), L=dict()): self.S = set(S) self.R = set(R) self.L = defaultdict(set, L) def checkNOT(phi): phi = ' '.join(phi) for s in self....
28.662162
94
0.558227
a35a551d751a52052da347d168aa6cdf0256e8d3
4,889
py
Python
step3/src/server/shakesapp_pb2.py
rick-c-goog/opentelemetry-trace-codelab-python
0ef58f2dd35363bc27c604b8ca861cd15ca108a9
[ "Apache-2.0" ]
3
2021-06-24T23:05:19.000Z
2022-02-24T16:02:29.000Z
step3/src/server/shakesapp_pb2.py
rick-c-goog/opentelemetry-trace-codelab-python
0ef58f2dd35363bc27c604b8ca861cd15ca108a9
[ "Apache-2.0" ]
null
null
null
step3/src/server/shakesapp_pb2.py
rick-c-goog/opentelemetry-trace-codelab-python
0ef58f2dd35363bc27c604b8ca861cd15ca108a9
[ "Apache-2.0" ]
4
2021-07-21T15:03:52.000Z
2021-12-25T17:32:05.000Z
# -*- coding: utf-8 -*- # Copyright 2021 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...
32.164474
329
0.776028
7a7585083380526fe4616adc5fd4c9fafb14b529
1,237
py
Python
r3/app/utils.py
timgates42/r3
cc6b4eb55c7ae30a8f75af2be165504565dbeb79
[ "Unlicense", "MIT" ]
49
2015-01-06T19:10:41.000Z
2021-08-01T03:39:39.000Z
r3/app/utils.py
timgates42/r3
cc6b4eb55c7ae30a8f75af2be165504565dbeb79
[ "Unlicense", "MIT" ]
3
2015-03-30T12:37:00.000Z
2021-06-09T20:31:54.000Z
r3/app/utils.py
timgates42/r3
cc6b4eb55c7ae30a8f75af2be165504565dbeb79
[ "Unlicense", "MIT" ]
12
2015-02-27T13:51:09.000Z
2021-06-09T20:30:59.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import logging from datetime import datetime DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' TIMEOUT = 15 def real_import(name): if '.' in name: return reduce(getattr, name.split('.')[1:], __import__(name)) return __import__(name) logger = logging.getLogger('R3Servic...
29.452381
122
0.643492
ed13148af7d21352997b0a2c8b8dedbd5edd4fb6
10,742
py
Python
svg_ultralight/query.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2019-10-26T01:49:58.000Z
2019-10-26T01:49:58.000Z
svg_ultralight/query.py
ShayHill/svg_writer
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
1
2020-01-29T13:15:58.000Z
2020-02-03T14:30:13.000Z
svg_ultralight/query.py
ShayHill/svg_ultralight
27e42350bd5304dabb0dd65e991e9cd3f8f1a3ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ """ Query an SVG file for bounding boxes :author: Shay Hill :created: 7/25/2020 Bounding boxes are generated with a command-line call to Inkscape, so an Inkscape installation is required for this to work. The bounding boxes are returned as BoundingBox instances, which ar...
33.154321
87
0.643456
c9fa3468016a0958a637b28de68a93eb5f827c96
15,552
py
Python
src/aoiktracecall/plugin/printing_plugin.py
AoiKuiyuyou/AoikTraceCall
8c09b69743fa4a29f83d9ed83290c33c928f5411
[ "MIT" ]
8
2016-09-25T08:28:23.000Z
2018-11-30T10:07:09.000Z
src/aoiktracecall/plugin/printing_plugin.py
AoiKuiyuyou/AoikTraceCall
8c09b69743fa4a29f83d9ed83290c33c928f5411
[ "MIT" ]
null
null
null
src/aoiktracecall/plugin/printing_plugin.py
AoiKuiyuyou/AoikTraceCall
8c09b69743fa4a29f83d9ed83290c33c928f5411
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import # Standard imports from inspect import isclass from pprint import pformat from traceback import format_exc # Internal imports from aoiktracecall.config import get_config from aoiktracecall.logging import print_error from aoiktracecall.logging import print_info fr...
26.539249
79
0.550604
0fad287e23bee913fbf895ffd7b8d186a05cbe56
1,698
py
Python
federatedscope/nlp/loss/character_loss.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
9
2022-03-24T07:59:37.000Z
2022-03-31T06:47:52.000Z
federatedscope/nlp/loss/character_loss.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
1
2022-03-28T13:52:17.000Z
2022-03-28T13:52:17.000Z
federatedscope/nlp/loss/character_loss.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
null
null
null
import torch from federatedscope.register import register_criterion """ Norm for Letters freq from FedEM: https://github.com/omarfoq/FedEM/blob/13f366c41c14b234147c2662c258b8a9db2f38cc/utils/constants.py """ CHARACTERS_WEIGHTS = { '\n': 0.43795308843799086, ' ': 0.042500849608091536, ',': 0.65595979115405...
30.872727
98
0.690224
43e8244daa4a15b85c340442e7d0ff5605958cc2
2,270
py
Python
models/test_model.py
xinetzone/CSA-inpaintin
00aeb87526323e3b9952ce5e68eaef1f471c437b
[ "CC-BY-4.0" ]
1
2021-02-27T11:14:15.000Z
2021-02-27T11:14:15.000Z
models/test_model.py
xinetzone/CSA-inpainting
00aeb87526323e3b9952ce5e68eaef1f471c437b
[ "CC-BY-4.0" ]
null
null
null
models/test_model.py
xinetzone/CSA-inpainting
00aeb87526323e3b9952ce5e68eaef1f471c437b
[ "CC-BY-4.0" ]
null
null
null
from torch import ByteTensor from torch.autograd import Variable from collections import OrderedDict import util.util as util from .base_model import BaseModel from . import networks class TestModel(BaseModel): def __init__(self, name, checkpoints_dir, gpu_ids, which_model_netG, which_epoch, ngf, batch_size, ...
42.830189
109
0.630396
1471dd5ef0e6b51d81e40d2e670c8405cc61b006
141
py
Python
ot2protocol/__init__.py
pozzo-group-robots/OT2Protocols2
2386dae2b7f18a8a42fb8b4a0b8d2c6b2f3ff440
[ "MIT" ]
2
2020-06-01T16:32:43.000Z
2021-12-01T16:57:36.000Z
ot2protocol/__init__.py
pozzo-group-robots/OT2Protocols2
2386dae2b7f18a8a42fb8b4a0b8d2c6b2f3ff440
[ "MIT" ]
3
2020-01-22T02:06:31.000Z
2020-07-19T18:58:51.000Z
ot2protocol/__init__.py
pozzo-group-robots/OT2Protocols2
2386dae2b7f18a8a42fb8b4a0b8d2c6b2f3ff440
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from .version import __version__ # noqa from .ot2protocol import * # noqa
35.25
64
0.808511
bbb6eb991430a4866bd0c4b90a332b2ae24c6645
16,459
py
Python
pybatch/info_mapBatchCommands.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
null
null
null
pybatch/info_mapBatchCommands.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
null
null
null
pybatch/info_mapBatchCommands.py
Nizarazo/instl
d04e9aede292caa1174447189a423726fa3bb97f
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Any import os import stat import zlib from pathlib import Path import logging log = logging.getLogger(__name__) from configVar import config_vars import aYaml import utils from .baseClasses import PythonBatchCommandBase from .fileSystemBatchCommands import MakeDirs from .fileSystemBatchComm...
47.84593
159
0.697065
971d2b8e065d25b0ae1245c0d443dcfca1ff267f
7,081
py
Python
test/test_projection.py
chrisantonellis/baemo
a38ea4f32d09a0813e2637ff1e2aa963f432b326
[ "MIT" ]
2
2016-12-08T00:11:58.000Z
2017-04-19T16:29:51.000Z
test/test_projection.py
chrisantonellis/pymongo_basemodel
a38ea4f32d09a0813e2637ff1e2aa963f432b326
[ "MIT" ]
null
null
null
test/test_projection.py
chrisantonellis/pymongo_basemodel
a38ea4f32d09a0813e2637ff1e2aa963f432b326
[ "MIT" ]
null
null
null
import sys; sys.path.append("../") import unittest from baemo.projection import Projection from baemo.exceptions import ProjectionMalformed from baemo.exceptions import ProjectionTypeMismatch class TestProjection(unittest.TestCase): # __init__ def test_init__no_params(self): p = Projection() ...
26.82197
87
0.51391
d8c2e616013af2d419f971ce448f25a810bba144
66,877
py
Python
python/cudf/cudf/core/frame.py
philtrade/cudf
a4d5c281c9ede5cd31aeaa6c0d131d932a951554
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/frame.py
philtrade/cudf
a4d5c281c9ede5cd31aeaa6c0d131d932a951554
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/frame.py
philtrade/cudf
a4d5c281c9ede5cd31aeaa6c0d131d932a951554
[ "Apache-2.0" ]
null
null
null
import functools import itertools import warnings from collections import OrderedDict import cupy import numpy as np import pandas as pd from pandas.api.types import is_dtype_equal import cudf import cudf._lib as libcudf from cudf._lib.nvtx import annotate from cudf._lib.scalar import as_scalar from cudf.core import ...
36.071737
86
0.541756
f4625202e574999d45e00007c89f654cfefc40cb
11,517
py
Python
flare/ase/otf.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
null
null
null
flare/ase/otf.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
null
null
null
flare/ase/otf.py
aaronchen0316/flare
47a2a89af635dfec6b41a873625ac2411da14ebb
[ "MIT" ]
null
null
null
""" :class:`ASE_OTF` is the on-the-fly training module for ASE, WITHOUT molecular dynamics engine. It needs to be used adjointly with ASE MD engine. """ import os import sys import inspect import pickle from time import time from copy import deepcopy import logging import numpy as np from flare.ase.npt import NPT_mo...
34.379104
95
0.611704
1419da2489479c359a497eed348b78f2dc48f53e
2,392
py
Python
ssseg/cfgs/gcnet/cfgs_cityscapes_resnet101os16.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
1
2021-05-28T06:42:37.000Z
2021-05-28T06:42:37.000Z
ssseg/cfgs/gcnet/cfgs_cityscapes_resnet101os16.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
ssseg/cfgs/gcnet/cfgs_cityscapes_resnet101os16.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
'''define the config file for cityscapes and resnet101os16''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'cityscapes', 'rootdir': 'data/CityScapes', 'aug_opts': [('Resize', {'output_size': (2048, 1024), 'keep_rati...
31.473684
110
0.576923
20515355e9215f1fa5a57d854f00a7e328dee7ce
3,285
py
Python
services/web/server/src/simcore_service_webserver/projects/module_setup.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
services/web/server/src/simcore_service_webserver/projects/module_setup.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
services/web/server/src/simcore_service_webserver/projects/module_setup.py
odeimaiz/osparc-simcore
71c2fc58dcfe067487dcd75cb70298a4d6237e97
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
""" projects management subsystem A project is a document defining a osparc study It contains metadata about the study (e.g. name, description, owner, etc) and a workbench section that describes the study pipeline """ import json import logging from pprint import pformat from aiohttp import web from serviceli...
31.586538
135
0.698021
d37a5637e29053c8550ae6915808c8dc7e9908b8
2,124
py
Python
keystone/tests/unit/test_shadow_users.py
chetanzope/keystone
13007a80d20521e75ad8803d6f1d11b2c50a1f69
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_shadow_users.py
chetanzope/keystone
13007a80d20521e75ad8803d6f1d11b2c50a1f69
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_shadow_users.py
chetanzope/keystone
13007a80d20521e75ad8803d6f1d11b2c50a1f69
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.62069
75
0.639831
12c8cc2da24058e7efcfc0043a1a6554162d7b54
859
py
Python
contacts/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
contacts/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
contacts/urls.py
mkimartinez/Lyfey
8a27ef7fea92146f043c68c7ef5ee3672014c3fc
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib.staticfiles import views as static_views from django.conf.urls.static import static from django.conf import settings import contacts.views as views from django.views.generic import ListView,DetailView from contacts.models import ContactForm # urlpatterns = [ # ...
45.210526
108
0.639115
dcc80f970f2adeaad9b1c67a7ad2bf849f1da64d
3,811
py
Python
benchmark/titanic/TT4.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
3
2021-09-01T10:42:46.000Z
2022-01-24T06:44:36.000Z
benchmark/titanic/TT4.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
null
null
null
benchmark/titanic/TT4.py
sumonbis/FairPreprocessing
c644dd38615f34dba39320397fb00d5509602864
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import sys sys.path.append('../../') from utils.packages import * from utils.ml_fairness import * from utils.standard_data import * # In[2]: # a map of more aggregated titles Title_Dictionary = { "Capt": "Officer", "Col":...
29.315385
118
0.567568
ecac6bf7d0a03e31a0a4aeef55402ff229bb9a2b
969
py
Python
mysite/medicare/urls.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
mysite/medicare/urls.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
mysite/medicare/urls.py
marufahmedtushar/Medi_Care
bc3dc9449924cfaf6fa1e0e8795af84169e45f69
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("",views.index, name="index"), path('about/', views.about, name='about'), path('contact/', views.contact, name='contact'), path('error/', views.doctorsearch, name='error'), path('doctor/', views.doctor, name='doctor'), path(...
40.375
78
0.659443
34930dff61ffaa800adf6910a2d992e13a38fdf7
2,818
py
Python
e2e/e2e/cmd.py
zramsay/ibc-rs
b1b9dac6132a2fd2a86fa1c6f0179f47db3e3454
[ "Apache-2.0" ]
null
null
null
e2e/e2e/cmd.py
zramsay/ibc-rs
b1b9dac6132a2fd2a86fa1c6f0179f47db3e3454
[ "Apache-2.0" ]
null
null
null
e2e/e2e/cmd.py
zramsay/ibc-rs
b1b9dac6132a2fd2a86fa1c6f0179f47db3e3454
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import logging as l import subprocess from dataclasses import dataclass, fields as datafields, is_dataclass from pathlib import Path from typing import Any, List, TypeVar, Generic, Type, Callable @dataclass class Config: config_file: Path relayer_cmd: str log_level: str...
26.336449
96
0.611781
676ef27ca4d31b489f2b993ed2f4361227703d17
692
py
Python
tests/timetest.py
Ibuprofen/zooplankton
8c16613495c2619bbeca25fa7ce5e8673cca0fd1
[ "MIT" ]
null
null
null
tests/timetest.py
Ibuprofen/zooplankton
8c16613495c2619bbeca25fa7ce5e8673cca0fd1
[ "MIT" ]
null
null
null
tests/timetest.py
Ibuprofen/zooplankton
8c16613495c2619bbeca25fa7ce5e8673cca0fd1
[ "MIT" ]
1
2016-05-15T05:38:06.000Z
2016-05-15T05:38:06.000Z
import time import random from itertools import count fps = 24 loop_delta = 1./fps current_time = target_time = time.time() for i in count(): #### loop frequency evaluation previous_time = current_time current_time = time.time() time_delta = current_time - previous_time print 'loop #%d frequency: ...
25.62963
78
0.669075
2e27baef58d4b38f795f40e311658d377e2a5add
1,198
py
Python
test/test3_queue.py
anandpskerala/amanobot
86b5c70157508248b0d8100074af466fcd547f4f
[ "MIT" ]
null
null
null
test/test3_queue.py
anandpskerala/amanobot
86b5c70157508248b0d8100074af466fcd547f4f
[ "MIT" ]
null
null
null
test/test3_queue.py
anandpskerala/amanobot
86b5c70157508248b0d8100074af466fcd547f4f
[ "MIT" ]
null
null
null
import time import queue import amanobot from amanobot.loop import OrderedWebhook def u(update_id): return { 'update_id': update_id, 'message': update_id } sequence = [ u(1), # initialize u(2), # no buffering u(4), # 1-gap u(3), # clear 2 u(7), # 2-gap u(5), # return, leave 1-gap ...
14.261905
59
0.491653
dd90ced3f89194af39f3401f6b8bbce3d42588cc
651
py
Python
src/main.py
Krzem5/Python-Automatic_Background_Remover
9a8f900ae496e92e000fbddbda70c64648f39d29
[ "BSD-3-Clause" ]
null
null
null
src/main.py
Krzem5/Python-Automatic_Background_Remover
9a8f900ae496e92e000fbddbda70c64648f39d29
[ "BSD-3-Clause" ]
null
null
null
src/main.py
Krzem5/Python-Automatic_Background_Remover
9a8f900ae496e92e000fbddbda70c64648f39d29
[ "BSD-3-Clause" ]
null
null
null
import cv2 def process(frame,bg): r,g,b=frame[:,:,0],frame[:,:,1],frame[:,:,2] br,bg,bb=bg[:,:,0],bg[:,:,1],bg[:,:,2] r=r.astype("uint8") g=g.astype("uint8") b=b.astype("uint8") br=br.astype("uint8") bg=bg.astype("uint8") bb=bb.astype("uint8") mask=(abs((r*0.241+g*0.691+b*0.068)-(br*0.241+bg*0.691+bb*0.068)...
17.594595
116
0.614439
29dc5d852d2cf88b17ec8925e1a6e845717cb9d2
399
py
Python
oleloweb_run.py
smehan/olelo
993ecb4288ffe8c78fee4474333b31387ea3d403
[ "BSD-3-Clause" ]
null
null
null
oleloweb_run.py
smehan/olelo
993ecb4288ffe8c78fee4474333b31387ea3d403
[ "BSD-3-Clause" ]
null
null
null
oleloweb_run.py
smehan/olelo
993ecb4288ffe8c78fee4474333b31387ea3d403
[ "BSD-3-Clause" ]
null
null
null
########################################################### # Copyright (C) 2018 Shawn Mehan <shawn dot mehan at shawnmehan dot com> # Initialization module for olelo flask web app ########################################################### # # -*- coding: utf-8 -*- # standard libs # 3rd-party libs # application li...
23.470588
72
0.491228
7ed73127e4a6cced5bc66ae0179220b2f862ff1f
4,005
py
Python
apps/reader/tests.py
ghuntley/NewsBlur
ce52a329c2624a5b596a25416606356cfbfe4d9c
[ "MIT" ]
null
null
null
apps/reader/tests.py
ghuntley/NewsBlur
ce52a329c2624a5b596a25416606356cfbfe4d9c
[ "MIT" ]
null
null
null
apps/reader/tests.py
ghuntley/NewsBlur
ce52a329c2624a5b596a25416606356cfbfe4d9c
[ "MIT" ]
null
null
null
from utils import json_functions as json from django.test.client import Client from django.test import TestCase from django.core.urlresolvers import reverse class ReaderTest(TestCase): fixtures = ['subscriptions.json', 'stories.json', '../../rss_feeds/fixtures/gawker1.json'] def setUp(self): self....
45.511364
122
0.581773
68cf069f1ef6e6af42c5ef416280f43d1f6ec35c
3,058
py
Python
code/test/test_layer_replacer/test_layer_replacer_sparse_facto_activation.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
1
2021-07-15T07:05:18.000Z
2021-07-15T07:05:18.000Z
code/test/test_layer_replacer/test_layer_replacer_sparse_facto_activation.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
2
2021-07-15T06:12:47.000Z
2021-07-16T10:05:36.000Z
code/test/test_layer_replacer/test_layer_replacer_sparse_facto_activation.py
lucgiffon/psm-nets
dec43c26281febf6e5c8b8f42bfb78098ae7101d
[ "MIT" ]
null
null
null
import logging from copy import deepcopy import tempfile import pathlib import unittest from keras.layers import Dense, Conv2D from keras.models import Sequential from keras.optimizers import Adam from palmnet.core.activation_palminizer import ActivationPalminizer from palmnet.core.faustizer import Faustizer from palm...
40.236842
105
0.635056
0781bfd325326a0b6142cfebd8e40ee8ded11063
3,708
py
Python
pymatgen/phonon/tests/test_plotter.py
frssp/pymatgen
bdd977f065b66191557c7398b31a1571bc541fdb
[ "MIT" ]
1
2018-10-10T02:37:10.000Z
2018-10-10T02:37:10.000Z
pymatgen/phonon/tests/test_plotter.py
frssp/pymatgen
bdd977f065b66191557c7398b31a1571bc541fdb
[ "MIT" ]
null
null
null
pymatgen/phonon/tests/test_plotter.py
frssp/pymatgen
bdd977f065b66191557c7398b31a1571bc541fdb
[ "MIT" ]
2
2020-04-30T14:19:12.000Z
2021-07-30T08:24:48.000Z
from __future__ import division, unicode_literals import unittest import os import json import scipy from io import open from pymatgen.phonon.dos import CompletePhononDos from pymatgen.phonon.plotter import PhononDosPlotter, PhononBSPlotter, ThermoPlotter from pymatgen.phonon.bandstructure import PhononBandStructureS...
37.454545
86
0.635653
809e7001dd9ab9c76baec241a692c77e1374fccb
2,981
py
Python
ulfs/graphing_common.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
2
2021-07-09T16:32:00.000Z
2022-03-21T17:32:39.000Z
ulfs/graphing_common.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
null
null
null
ulfs/graphing_common.py
asappresearch/texrel
dff447a99d56f2f92284df866fa01e7762dc6eac
[ "MIT" ]
1
2021-07-09T16:32:02.000Z
2021-07-09T16:32:02.000Z
import subprocess import json from typing import Iterable, Tuple, List, Optional def run(cmd_list, tail_lines=0): return '\n'.join(subprocess.check_output(cmd_list).decode('utf-8').split('\n')[- tail_lines:]).strip() def get_recent_logfiles(path, age_minutes): files = subprocess.check_output(['find', path, ...
31.378947
109
0.591748