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
cdfd4009029a872931c69808b1a6a9ea81b8ebbc
64
py
Python
venv/lib/python3.6/config-3.6m-x86_64-linux-gnu/python-config.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-04-17T13:35:50.000Z
2021-12-21T00:11:36.000Z
venv/lib/python3.6/config-3.6m-x86_64-linux-gnu/python-config.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2021-03-31T19:51:24.000Z
2021-06-10T23:05:09.000Z
venv/lib/python3.6/config-3.6m-x86_64-linux-gnu/python-config.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-10-01T08:47:35.000Z
2020-07-11T06:32:16.000Z
/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/python-config.py
64
64
0.796875
351397cd23f7b21865b1eca38c7b47473188173d
1,904
py
Python
dbScrapy/dbScrapy/middlewares.py
ViterbiDevelopment/Scrapy
c1ea9d8e4c905f82f63763d06fc19c3477310604
[ "Apache-2.0" ]
null
null
null
dbScrapy/dbScrapy/middlewares.py
ViterbiDevelopment/Scrapy
c1ea9d8e4c905f82f63763d06fc19c3477310604
[ "Apache-2.0" ]
null
null
null
dbScrapy/dbScrapy/middlewares.py
ViterbiDevelopment/Scrapy
c1ea9d8e4c905f82f63763d06fc19c3477310604
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class DbscrapySpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ...
33.403509
78
0.673319
bdeebc8be0cd39377ef3e642683de527cd436fce
926
py
Python
backend/api/favorites.py
papayaer/zeno
38cd3b7c5d9180baa91af6d49fbf77bb98a9ac27
[ "MIT" ]
null
null
null
backend/api/favorites.py
papayaer/zeno
38cd3b7c5d9180baa91af6d49fbf77bb98a9ac27
[ "MIT" ]
7
2020-03-24T17:56:41.000Z
2022-02-26T21:33:12.000Z
backend/api/favorites.py
papayaer/zeno
38cd3b7c5d9180baa91af6d49fbf77bb98a9ac27
[ "MIT" ]
null
null
null
from flask import current_app, jsonify, request, url_for from .api import api from models import db, Permission, User, Post, Favorite from .authentication import permission_required # 收藏了吗? @api.route('/posts/<int:id>/favoriting/', methods=['GET']) @permission_required(Permission.FOLLOW) def has_favorit(user, id): ...
28.060606
59
0.726782
417a44aa9bf9babfa2a73212de43645a1a32e61c
460
py
Python
server/main.py
sagarmohanty2k00/Stockiva
60f8fb06a4b414ad3d9c342da02250b5ac37989b
[ "MIT" ]
null
null
null
server/main.py
sagarmohanty2k00/Stockiva
60f8fb06a4b414ad3d9c342da02250b5ac37989b
[ "MIT" ]
null
null
null
server/main.py
sagarmohanty2k00/Stockiva
60f8fb06a4b414ad3d9c342da02250b5ac37989b
[ "MIT" ]
3
2022-01-26T16:52:18.000Z
2022-01-26T17:24:51.000Z
from fastapi import FastAPI app = FastAPI() @app.get('/') def home(): return {"message" : "hello"} @app.get('/users') def all_users(): return {"users" : [ { "name" : "sagar", "id" : 1, }, { "name" : "mohanty", "id" : 2, ...
17.037037
33
0.36087
6b97f46ccfdca51e95dea52fcefadeb430e513ac
126,551
py
Python
uruler.py
andycranston/uruler
c3dcaa135e672b8a458c045e41f79140317664f0
[ "MIT" ]
null
null
null
uruler.py
andycranston/uruler
c3dcaa135e672b8a458c045e41f79140317664f0
[ "MIT" ]
null
null
null
uruler.py
andycranston/uruler
c3dcaa135e672b8a458c045e41f79140317664f0
[ "MIT" ]
null
null
null
# # @(!--#) @(#) uruler.py, version 002, 29-july-2020 # # create a PNG file called "uruler.png" # # uses the Pillow library # # pip install -U Pillow # ################################################################################## # # imports # import sys import os from PIL import Image ######################...
98.94527
112
0.876967
a7e1652029118b8c37ecf1d5259d3bbedb9864cb
1,091
py
Python
src2/dispatch/rock_paper_scissor_3.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
7
2021-01-20T09:11:53.000Z
2022-03-15T12:19:06.000Z
src2/dispatch/rock_paper_scissor_3.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
null
null
null
src2/dispatch/rock_paper_scissor_3.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
10
2020-11-01T09:47:02.000Z
2021-11-02T12:59:50.000Z
class Weapon: possible_weapons = {"Paper", "Rock", "Scissor"} lookup_table = {("Scissor", "Scissor"): "TIE", ("Scissor", "Rock"): "Rock", ("Scissor", "Paper"): "Scissor", ("Rock", "Scissor"): "Rock", ("Rock", "Rock"): "TIE", ...
31.171429
66
0.484876
ecd7606274b625cc79da06208ef55c448756fd5f
2,082
py
Python
gui/component/datasource.py
acc-cosc-1336/cosc-1336-fall-2017-RobScaley
44c807ac95a6348f5643941d745b9232a127610e
[ "MIT" ]
null
null
null
gui/component/datasource.py
acc-cosc-1336/cosc-1336-fall-2017-RobScaley
44c807ac95a6348f5643941d745b9232a127610e
[ "MIT" ]
null
null
null
gui/component/datasource.py
acc-cosc-1336/cosc-1336-fall-2017-RobScaley
44c807ac95a6348f5643941d745b9232a127610e
[ "MIT" ]
null
null
null
class DataSource(object): def __init__(self, parent, diction): self.data = diction.dictionary self.parent = parent self.keys_list = list(self.data.keys()) self.keys_list_index = 0 self.event_listeners = {} def broadcastEvent(self, event_name): for ...
29.323944
69
0.607589
10165f160b8e12f86adc49c98b5204d470b5de93
84
py
Python
typings/sys_info.py
Argmaster/PyR3
6786bcb6a101fe4bd4cc50fe43767b8178504b15
[ "MIT" ]
2
2021-12-12T18:51:52.000Z
2022-02-23T09:49:16.000Z
src/blender/blender_autocomplete-master/2.92/sys_info.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
2
2021-11-08T12:09:02.000Z
2021-12-12T23:01:12.000Z
src/blender/blender_autocomplete-master/2.92/sys_info.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
import sys import typing def write_sysinfo(filepath): ''' ''' pass
7.636364
28
0.583333
c97b6e1178f1aeb136c35a9401911545962739a6
27,914
py
Python
vnpy/gateway/ctp/ctp_gateway.py
ZJMXX/vnpy
161d88774c7a161a4d024a9daa50447a73a1c43e
[ "MIT" ]
2
2021-04-22T09:44:19.000Z
2021-04-22T17:23:16.000Z
vnpy/gateway/ctp/ctp_gateway.py
ZJMXX/vnpy
161d88774c7a161a4d024a9daa50447a73a1c43e
[ "MIT" ]
null
null
null
vnpy/gateway/ctp/ctp_gateway.py
ZJMXX/vnpy
161d88774c7a161a4d024a9daa50447a73a1c43e
[ "MIT" ]
null
null
null
""" """ import sys import pytz from datetime import datetime from time import sleep from vnpy.api.ctp import ( MdApi, TdApi, THOST_FTDC_OAS_Submitted, THOST_FTDC_OAS_Accepted, THOST_FTDC_OAS_Rejected, THOST_FTDC_OST_NoTradeQueueing, THOST_FTDC_OST_PartTradedQueueing, THOST_FTDC_OST_All...
29.854545
99
0.57953
578f96ce3d1adebce9ff7565e2a61f42c0a4c635
1,761
py
Python
import data/abstract.py
elenisproject/internet-and-applications
4295c8c0c5af26793546e7cb0fe6e727966ea1a2
[ "MIT" ]
2
2021-03-15T15:07:00.000Z
2021-03-18T11:21:22.000Z
import data/abstract.py
elenisproject/internet-and-applications
4295c8c0c5af26793546e7cb0fe6e727966ea1a2
[ "MIT" ]
1
2021-03-31T20:07:42.000Z
2021-03-31T20:07:42.000Z
import data/abstract.py
elenisproject/internet-and-applications
4295c8c0c5af26793546e7cb0fe6e727966ea1a2
[ "MIT" ]
null
null
null
#------------------------------------------ EXTRACT DATA FROM pdf_json ------------------------------------------------- # # Insert abstract from json files into our database, # primary key(paper_id,spot), foreign key:(paper_id) # we are going to have 4 columns: paper_id, spot, body, section # #-------------------...
35.938776
129
0.579216
ea4013cec98debdf437b500dfa77bb9daeea0c87
3,478
py
Python
tests/common/helpers/drop_counters/fanout_drop_counter.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
tests/common/helpers/drop_counters/fanout_drop_counter.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
tests/common/helpers/drop_counters/fanout_drop_counter.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
import re import logging from abc import abstractmethod logger = logging.getLogger(__name__) MAX_OPENFLOW_RULE_ID = 65535 DEVICE_PORT_VLANS = 'device_port_vlans' TRUNK = 'Trunk' MODE = "mode" FAILED = 'failed' INVOCATION = 'invocation' STDOUT = 'stdout' class FanoutDropCounter: def __init__(self): self...
38.21978
111
0.672513
43ce43fd217de23d22b10038183b5ccf945d3bef
1,185
py
Python
datumaro/plugins/openvino_plugin/samples/mobilenet_v2_pytorch_interp.py
einstonlabs/datumaro
9eb5246febb4b4ae10c321fae80413bb87fb1a7d
[ "MIT" ]
null
null
null
datumaro/plugins/openvino_plugin/samples/mobilenet_v2_pytorch_interp.py
einstonlabs/datumaro
9eb5246febb4b4ae10c321fae80413bb87fb1a7d
[ "MIT" ]
null
null
null
datumaro/plugins/openvino_plugin/samples/mobilenet_v2_pytorch_interp.py
einstonlabs/datumaro
9eb5246febb4b4ae10c321fae80413bb87fb1a7d
[ "MIT" ]
9
2021-05-17T07:00:03.000Z
2021-06-26T02:15:10.000Z
# Copyright (C) 2021 Intel Corporation # # SPDX-License-Identifier: MIT from datumaro.components.extractor import Label, LabelCategories, AnnotationType from datumaro.util.annotation_util import softmax def process_outputs(inputs, outputs): # inputs = model input; array or images; shape = (B, H, W, C) # out...
30.384615
95
0.664979
462170ac035dad5d578550ac96d59d58b5058076
12,961
py
Python
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_generic_config.py
noironetworks/group-based-policy
58a4be9a90ed4833551ae7ce7a029f2ec065bd29
[ "Apache-2.0" ]
2
2017-12-13T10:33:28.000Z
2019-07-03T19:01:42.000Z
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_generic_config.py
noironetworks/group-based-policy
58a4be9a90ed4833551ae7ce7a029f2ec065bd29
[ "Apache-2.0" ]
4
2015-04-14T00:27:44.000Z
2020-08-31T11:20:17.000Z
gbpservice/contrib/tests/unit/nfp/configurator/agents/test_generic_config.py
noironetworks/group-based-policy
58a4be9a90ed4833551ae7ce7a029f2ec065bd29
[ "Apache-2.0" ]
4
2015-04-10T16:03:47.000Z
2020-08-31T06:06:32.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...
35.220109
79
0.628578
14be68cfa6bee5057581843cebad7a44b4ea641e
4,661
py
Python
src/bin/hub.py
NikkiBytes/mygene.info
5ec9bd7b73890acdcb2a68c8d57368f44dcdeb42
[ "Apache-2.0" ]
78
2017-05-26T08:38:25.000Z
2022-02-25T08:55:31.000Z
src/bin/hub.py
NikkiBytes/mygene.info
5ec9bd7b73890acdcb2a68c8d57368f44dcdeb42
[ "Apache-2.0" ]
105
2017-05-18T21:57:13.000Z
2022-03-18T21:41:47.000Z
src/bin/hub.py
NikkiBytes/mygene.info
5ec9bd7b73890acdcb2a68c8d57368f44dcdeb42
[ "Apache-2.0" ]
19
2017-06-12T18:31:54.000Z
2021-11-10T00:04:43.000Z
#!/usr/bin/env python import os, logging from functools import partial # shut some mouths... logging.getLogger("elasticsearch").setLevel(logging.ERROR) logging.getLogger("urllib3").setLevel(logging.ERROR) logging.getLogger("requests").setLevel(logging.ERROR) logging.getLogger('botocore').setLevel(logging.ERROR) loggin...
55.488095
147
0.670886
149cd9f371733eca11c9a6db19afc6edba6319e8
1,507
py
Python
PyPoll/main.py
Trumane12311/python-challenge
1a58b84b5e4b30047dd3ca3f367b92c43587a3f9
[ "RSA-MD" ]
null
null
null
PyPoll/main.py
Trumane12311/python-challenge
1a58b84b5e4b30047dd3ca3f367b92c43587a3f9
[ "RSA-MD" ]
null
null
null
PyPoll/main.py
Trumane12311/python-challenge
1a58b84b5e4b30047dd3ca3f367b92c43587a3f9
[ "RSA-MD" ]
null
null
null
import os import csv candidate_votes = {} candidates = [] total_votes = 0 polldata = os.path.join("Resources", "election_data.csv") with open(polldata, 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=",") headers = next(csvreader) for row in csvreader: candidates = row[2] if ca...
32.06383
73
0.660252
7026e00759a47bd47b3a9d4d120eabae3e61347a
6,653
py
Python
tools/validator.py
b00kwrm/artifacts
af4c2e545d3c0d277496c357c51a0e3f82216ecb
[ "Apache-2.0" ]
1
2020-04-02T21:24:01.000Z
2020-04-02T21:24:01.000Z
tools/validator.py
b00kwrm/artifacts
af4c2e545d3c0d277496c357c51a0e3f82216ecb
[ "Apache-2.0" ]
null
null
null
tools/validator.py
b00kwrm/artifacts
af4c2e545d3c0d277496c357c51a0e3f82216ecb
[ "Apache-2.0" ]
1
2020-04-24T12:39:22.000Z
2020-04-24T12:39:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tool to validate artifact definitions.""" from __future__ import print_function from __future__ import unicode_literals import argparse import logging import os import sys from artifacts import definitions from artifacts import errors from artifacts import reader from...
31.680952
80
0.651586
a57af4e5f745bceb01449a0cc4ac3195d2eaea32
1,116
py
Python
tramatego/src/tramatego/transforms/domain_to_hash.py
kvsaurav/QRadio
53299f5bd57b60f76596ed05ba7f1f65b255114d
[ "Apache-2.0" ]
95
2016-03-04T18:34:51.000Z
2021-08-30T03:43:17.000Z
tramatego/src/tramatego/transforms/domain_to_hash.py
netwrkspider/QRadio
53299f5bd57b60f76596ed05ba7f1f65b255114d
[ "Apache-2.0" ]
null
null
null
tramatego/src/tramatego/transforms/domain_to_hash.py
netwrkspider/QRadio
53299f5bd57b60f76596ed05ba7f1f65b255114d
[ "Apache-2.0" ]
21
2016-03-10T12:19:59.000Z
2020-05-09T18:54:00.000Z
#!/usr/bin/env python from canari.maltego.utils import debug, progress from canari.framework import configure #, superuser from canari.maltego.entities import Domain, Phrase from common.launchers import get_qradio_data __author__ = 'Zappus' __copyright__ = 'Copyright 2016, TramaTego Project' __credits__ = [] __lice...
24.8
115
0.71147
956ee94706d4bbf8ef51ca4b6020077ac36ca41a
851
py
Python
website/models.py
ishika4242/portfolio
dff74d13d91e9d7dccec9677d3804aa5b7cad7e7
[ "Apache-2.0" ]
null
null
null
website/models.py
ishika4242/portfolio
dff74d13d91e9d7dccec9677d3804aa5b7cad7e7
[ "Apache-2.0" ]
null
null
null
website/models.py
ishika4242/portfolio
dff74d13d91e9d7dccec9677d3804aa5b7cad7e7
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class Working(models.Model): title = models.CharField(max_length=100) descreption = models.CharField(max_length=100) image = models.ImageField(upload_to='pics') class Servicing(models.Model): title = models.CharField(max_length=100) descrep...
30.392857
50
0.740306
33244fd58141b00dc8ed163b19774ccab4e35c2d
6,218
py
Python
main.py
NFhbar/tenant-base
e501bc136c478574fd16f3e38bd781b671245d29
[ "MIT" ]
null
null
null
main.py
NFhbar/tenant-base
e501bc136c478574fd16f3e38bd781b671245d29
[ "MIT" ]
4
2019-01-09T21:40:37.000Z
2021-06-01T23:17:10.000Z
main.py
NFhbar/tenant-base
e501bc136c478574fd16f3e38bd781b671245d29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TenantBase Backend Key-value server implemented in SQlite and memmcached. To run the interface: $ python3 main.py -s database.sqlite Interface options are: Interface options: - set key value exptime - get key - delete key - exit To return all key-value pairs in db: $ python3 main.p...
32.051546
100
0.601319
6178bba65a848c8ab9d82c96c25c06a699270946
1,113
py
Python
output_trajectory.py
UcefMountacer/Direct_RGB-D_SLAM
3a3841ae9483b35420db8f82dd700fe1c143cac3
[ "MIT" ]
null
null
null
output_trajectory.py
UcefMountacer/Direct_RGB-D_SLAM
3a3841ae9483b35420db8f82dd700fe1c143cac3
[ "MIT" ]
null
null
null
output_trajectory.py
UcefMountacer/Direct_RGB-D_SLAM
3a3841ae9483b35420db8f82dd700fe1c143cac3
[ "MIT" ]
null
null
null
import numpy as np import utils.conversions as conv ''' traj = np.load('traj_0.npy') num = len(traj) absolute_pose_path = 'kf_index_level4.txt' f = open(absolute_pose_path) line = f.readlines() for i in range(num): trans = traj[i] quater = conv.trans_to_quater(trans) timestamp = line[i].split()[0] wi...
27.146341
69
0.62354
7a932bf8ef4b40c24a7c6f19afd4ef8d7d12563e
25,931
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/operations/_gallery_applications_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.492674
224
0.682272
798f23e2390854df2d542633b076813efe8a140e
165
py
Python
Dynamic Programming/11727.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
Dynamic Programming/11727.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
Dynamic Programming/11727.py
kjh9267/BOJ_Python
b4d2ae09c252cc9280df93ccecbd07880947827e
[ "Apache-2.0" ]
null
null
null
import sys n = int(sys.stdin.readline()) dp = [0]*1000 dp[0] = 1 dp[1] = 3 dp[2] = 5 for i in range(3,n): dp[i] = (dp[i-1] + dp[i-2] * 2)%10007 print(dp[n-1])
13.75
41
0.527273
0f3705a7360ba091cf5bc725a06e64d2eb7cb6c8
133
py
Python
example/run.py
SeanMabli/aiinpy
bd332fce454c489e236878c9da91bb86ec6dda14
[ "MIT" ]
null
null
null
example/run.py
SeanMabli/aiinpy
bd332fce454c489e236878c9da91bb86ec6dda14
[ "MIT" ]
null
null
null
example/run.py
SeanMabli/aiinpy
bd332fce454c489e236878c9da91bb86ec6dda14
[ "MIT" ]
null
null
null
import subprocess while True: print(subprocess.Popen("python3 gan-mnist.py", shell=True, stdout=subprocess.PIPE).communicate()[0])
33.25
102
0.774436
bbf2f223b919bb13a1823ba572899d45b0e1154c
2,295
py
Python
docs/source/parallel/brown2004_ray_library.py
sys-bio/roadrunner
f0a757771ef0e337ddf7409284910e1627c3ad71
[ "Apache-2.0" ]
29
2015-05-21T21:06:06.000Z
2021-12-06T15:33:30.000Z
docs/source/parallel/brown2004_ray_library.py
sys-bio/roadrunner
f0a757771ef0e337ddf7409284910e1627c3ad71
[ "Apache-2.0" ]
689
2015-01-27T21:45:59.000Z
2022-03-30T23:47:28.000Z
docs/source/parallel/brown2004_ray_library.py
sys-bio/roadrunner
f0a757771ef0e337ddf7409284910e1627c3ad71
[ "Apache-2.0" ]
23
2015-06-25T22:57:21.000Z
2021-11-06T02:03:28.000Z
import numpy as np from roadrunner import RoadRunner from roadrunner.testing import TestModelFactory as tmf from multiprocessing import cpu_count import ray import time from platform import platform import cpuinfo # pip install py-cpuinfo NCORES = cpu_count() NSIMS = 1000000 ray.init(ignore_reinit_error=True) @ra...
27.321429
97
0.667102
ee0d972d5e7aba17145ba2dc65dc7df32eb41c59
1,430
py
Python
app/server/calculator/Calculator/helper.py
Nidhikokande/601_final_project
2dbd18577a876c73bb0fcf7d10695257de44cafe
[ "MIT" ]
null
null
null
app/server/calculator/Calculator/helper.py
Nidhikokande/601_final_project
2dbd18577a876c73bb0fcf7d10695257de44cafe
[ "MIT" ]
null
null
null
app/server/calculator/Calculator/helper.py
Nidhikokande/601_final_project
2dbd18577a876c73bb0fcf7d10695257de44cafe
[ "MIT" ]
null
null
null
import functools class Helper(): @staticmethod def validateNumberInput(func): @functools.wraps(func) def wrapper(*args, **kwargs): counter = 0 containStringInput = False for item in args: if counter >= 1: if type(item) not i...
37.631579
94
0.502098
1cf57c012c5e74bebb99d348a83a915ceff0a5c9
693
py
Python
test/test_development.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_development.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
test/test_development.py
hyperonecom/h1-client-python
4ce355852ba3120ec1b8f509ab5894a5c08da730
[ "MIT" ]
null
null
null
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import sys import unittest import h1 from h1.model.tag import Tag globals()['Tag'] = Tag from h1.model.development import Development class TestDevelopment(unittest....
18.236842
79
0.652237
c57992e7e7758367c4ad9f742010856ca29f5ee2
5,114
py
Python
sarsa.py
rmoehn/tf-cartpole
fff596518ffdf4614376958c28532efa6381e570
[ "MIT" ]
null
null
null
sarsa.py
rmoehn/tf-cartpole
fff596518ffdf4614376958c28532efa6381e570
[ "MIT" ]
null
null
null
sarsa.py
rmoehn/tf-cartpole
fff596518ffdf4614376958c28532efa6381e570
[ "MIT" ]
null
null
null
import itertools import sys import time sys.path.append("../cartpole") import gym import matplotlib matplotlib.use('GTK3Agg') # pylint: disable=unused-import from matplotlib import pyplot as plt import numpy as np import tensorflow as tf # pylint: disable=unused-import from tensorflow.python import debug as tf_debug ...
27.058201
76
0.612632
2e20e28efd19b1958e354788a973bb4d1642c71f
11,965
py
Python
Aula27/exercicios/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula27/exercicios/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula27/exercicios/exercicio3.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Aula 21 - 16-12-2019 # Metodos da lista from geradorlista import lista_simples_int_str from geradorlista import lista_simples_inpura_int_str from geradorlista import lista_simples_int from geradorlista import lista_simples_str from geradorlista import lista_simples_impura from geradorlista import embaralhar from ger...
43.039568
2,200
0.637192
fef108c33c35c6a4dddc4c01a820a0d91391ac53
140
py
Python
server/wiki/apps.py
Jesterboxboy/mahjong-portal
c09362d69a81e81ed30c9159f3a35f9e9def4ac3
[ "MIT" ]
10
2018-02-12T10:30:22.000Z
2020-06-29T21:06:15.000Z
server/wiki/apps.py
Jesterboxboy/mahjong-portal
c09362d69a81e81ed30c9159f3a35f9e9def4ac3
[ "MIT" ]
62
2018-01-05T04:52:38.000Z
2021-04-10T07:14:45.000Z
server/wiki/apps.py
MahjongRepository/mahjong-leaderboard
77dfd26cb812c12fa7c2b11e862bb80a9135ccb0
[ "MIT" ]
8
2018-05-11T11:05:41.000Z
2021-03-10T08:10:50.000Z
from django.apps import AppConfig class WikiConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "wiki"
20
56
0.75
66d728fb7cf116117eebfb4441123f043eeac707
1,436
py
Python
api/apis/downloads.py
UQ-UQx/uqx_api
54c132ab345fa698be090c3ab4f72c8bd7b42bc3
[ "MIT" ]
3
2015-04-13T14:23:39.000Z
2018-02-13T15:09:30.000Z
api/apis/downloads.py
UQ-UQx/uqx_api
54c132ab345fa698be090c3ab4f72c8bd7b42bc3
[ "MIT" ]
7
2015-04-20T07:00:09.000Z
2021-12-13T19:45:12.000Z
api/apis/downloads.py
UQ-UQx/uqx_api
54c132ab345fa698be090c3ab4f72c8bd7b42bc3
[ "MIT" ]
3
2015-03-26T19:29:18.000Z
2016-01-19T23:17:00.000Z
import api.views from rest_framework import status from rest_framework.decorators import api_view from api.models import Log # Logging import logging logger = logging.getLogger(__name__) @api_view(['GET']) def download_os(request): """ Returns a count of operating systems which have downloaded videos from the...
35.02439
114
0.749304
1e780432237b4ac7d53dcd16947785232e113240
462
py
Python
Snippets and Basic Functions/File Operations/CSV/csv-to-buffer.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Snippets and Basic Functions/File Operations/CSV/csv-to-buffer.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
Snippets and Basic Functions/File Operations/CSV/csv-to-buffer.py
sckulkarni246/python-snippets-for-embedded-programmers
9dfd0b193f86a6de54598917f3d7088a60ec4abc
[ "MIT" ]
null
null
null
import csv def conv_strlist_to_numlist(strlist): numlist = [] for i in range(0,len(strlist)): numlist.append(int(strlist[i])) return numlist def get_data_from_csv(logfile): datalist = [] with open(logfile,'r') as f: reader = csv.reader(f) datalist = list(reader) for i in range(0,len(datalist)): if(len(d...
23.1
50
0.71645
f5f0ee58a6f8c0ccef2206d19884c8b2d98b4582
231
py
Python
src/skyciv/__init__.py
skyciv/skyciv-pip
38ec675e2e1c665689caae1283e2b45e9893be29
[ "MIT" ]
4
2021-04-01T16:33:24.000Z
2021-10-05T17:11:35.000Z
src/skyciv/__init__.py
skyciv/skyciv-pip
38ec675e2e1c665689caae1283e2b45e9893be29
[ "MIT" ]
1
2021-09-29T02:58:14.000Z
2021-09-30T22:23:41.000Z
src/skyciv/__init__.py
skyciv/skyciv-pip
38ec675e2e1c665689caae1283e2b45e9893be29
[ "MIT" ]
4
2021-02-18T17:51:00.000Z
2021-09-29T04:58:29.000Z
from skyciv.constants.skyciv_sections import SkyCivSections from skyciv.classes.api_object.api_object import ApiObject from skyciv.classes.model.model import Model from skyciv.lib.request import request sections = SkyCivSections
28.875
59
0.861472
59ba23f2f062cb2f92b052e66f039e0e8148e2bb
6,106
py
Python
faster_rcnn/lib/model/utils/net_utils.py
maddie157/BiDet
3cf7df65a50483e6bdd313d9d945c3dd6393e528
[ "MIT" ]
161
2020-03-08T10:37:00.000Z
2022-03-29T13:25:36.000Z
faster_rcnn/lib/model/utils/net_utils.py
maddie157/BiDet
3cf7df65a50483e6bdd313d9d945c3dd6393e528
[ "MIT" ]
41
2020-03-10T10:13:06.000Z
2022-02-16T22:28:29.000Z
faster_rcnn/lib/model/utils/net_utils.py
maddie157/BiDet
3cf7df65a50483e6bdd313d9d945c3dd6393e528
[ "MIT" ]
39
2020-03-15T22:33:38.000Z
2021-11-05T02:45:36.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import math import numpy as np from lib.model.utils.config import cfg import cv2 import pdb import random def save_net(fname, net): import h5py h5f = h5py.File(fname, mode='w') for k, v in net.state_dict...
31.637306
110
0.557648
7133d8bd12b62b8405edae4117cd91646e2f1272
679
py
Python
var/spack/repos/builtin/packages/perl-class-load-xs/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/perl-class-load-xs/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/perl-class-load-xs/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlClassLoadXs(PerlPackage): """This module provides an XS implementation for portions of...
35.736842
94
0.726068
b1a2d01417e636930ac2116804f7c79e02a92e07
337
py
Python
chapter08_lists/2019/list_problems.py
motazsaad/WDMM1405
9363c9557b3fe5dff66064bb4042bbe0f884757b
[ "Apache-2.0" ]
4
2019-03-01T09:27:43.000Z
2020-10-20T05:19:08.000Z
chapter08_lists/2019/list_problems.py
zainab8585/WDMM1405
9363c9557b3fe5dff66064bb4042bbe0f884757b
[ "Apache-2.0" ]
null
null
null
chapter08_lists/2019/list_problems.py
zainab8585/WDMM1405
9363c9557b3fe5dff66064bb4042bbe0f884757b
[ "Apache-2.0" ]
4
2019-02-19T18:43:34.000Z
2022-03-13T19:09:26.000Z
def is_even(num): if (num % 2) == 0: return True else: return False def is_odd(num): if (num % 2) == 0: return False else: return True print('even test') for i in range(11): print(i, 'is even?', is_even(i)) print('odd test') for i in range(11): print(i, 'is o...
15.318182
36
0.52819
a7ec651f464fb20bd003307b09c8f8399cf45535
25,304
py
Python
batchflow/research/research.py
abrikoseg/batchflow
f1060f452b9407477ac61cea2a658792deca29a6
[ "Apache-2.0" ]
87
2018-11-16T08:04:12.000Z
2022-03-24T20:08:44.000Z
batchflow/research/research.py
abrikoseg/batchflow
f1060f452b9407477ac61cea2a658792deca29a6
[ "Apache-2.0" ]
243
2018-11-29T02:03:55.000Z
2022-02-21T08:28:29.000Z
batchflow/research/research.py
abrikoseg/batchflow
f1060f452b9407477ac61cea2a658792deca29a6
[ "Apache-2.0" ]
35
2019-01-29T14:26:14.000Z
2021-12-30T01:39:02.000Z
#pylint:disable=logging-fstring-interpolation, too-many-arguments """ Research class for muliple parallel experiments. """ import os import datetime import csv import itertools import subprocess import re import glob import warnings import shutil import psutil import dill import multiprocess as mp import tqdm from .d...
40.812903
120
0.594926
e6042cf3e4d0670b43aaa0c37d21b6f2313011da
13,243
py
Python
trkRhinoPy.py
tkahng/trkRhinoPython
a7d11ed1007355393c141d1584528a49951cbab4
[ "MIT" ]
null
null
null
trkRhinoPy.py
tkahng/trkRhinoPython
a7d11ed1007355393c141d1584528a49951cbab4
[ "MIT" ]
null
null
null
trkRhinoPy.py
tkahng/trkRhinoPython
a7d11ed1007355393c141d1584528a49951cbab4
[ "MIT" ]
2
2020-11-05T22:24:10.000Z
2021-06-20T17:02:38.000Z
# -*- coding: utf-8 -*- import Rhino import rhinoscriptsyntax as rs import scriptcontext as sc import json import ast def intFlipBool(tf): return abs(tf-1) '''QuickTag''' def setQuickTag(obj, tagVal): rs.SetUserText(obj, 'tag', tagVal) def getQuickTag(tagVal): rs.Command('_SelKeyValue tag {}'.format(ta...
28.47957
152
0.645775
ca8a7a4627fb503739858eaaf686964767e7cbb4
5,376
py
Python
gbpservice/contrib/tests/unit/nfp/configurator/lib/test_filter.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
2
2017-12-13T10:33:28.000Z
2019-07-03T19:01:42.000Z
gbpservice/contrib/tests/unit/nfp/configurator/lib/test_filter.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
4
2015-04-14T00:27:44.000Z
2020-08-31T11:20:17.000Z
gbpservice/contrib/tests/unit/nfp/configurator/lib/test_filter.py
ansao-aci/group-based-policy
d80a94dcb51bfce6994cd18339d3c79a7cb54bfe
[ "Apache-2.0" ]
4
2015-04-10T16:03:47.000Z
2020-08-31T06:06:32.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...
39.822222
79
0.574591
1d0258f198c24a747b1c0af6e75d0d20c9e9299f
47,030
py
Python
alphafold/model/all_atom.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
45
2021-07-18T05:26:21.000Z
2022-03-15T18:22:48.000Z
alphafold/model/all_atom.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
33
2021-08-12T14:06:16.000Z
2022-03-31T18:47:49.000Z
alphafold/model/all_atom.py
milot-mirdita/alphafold
8a24cc8d22feb2b7ae9bf78f910ce97e9d4403e8
[ "Apache-2.0" ]
20
2021-07-18T03:34:47.000Z
2022-02-19T02:51:09.000Z
# Copyright 2021 DeepMind Technologies Limited # # 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 agr...
41.11014
82
0.692069
3d3455d9e99fcdc6667b240277fdeabd9b7ee09c
9,768
py
Python
fhirclient/r4models/messageheader.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/messageheader.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/messageheader.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/MessageHeader) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class MessageHeader(domainresource.DomainResource): """ A resource that describes a messa...
38.15625
111
0.596642
780e53b760c8e7fe44921100aa96864ffd9b79d0
5,457
py
Python
src/deep_speaker/audio.py
googleinterns/deepspeech-reconstruction
72f28d1e9064d221b3421c302a8725a8c71859ee
[ "Apache-2.0" ]
3
2021-08-20T16:40:09.000Z
2022-02-08T23:17:52.000Z
src/deep_speaker/audio.py
googleinterns/deepspeech-reconstruction
72f28d1e9064d221b3421c302a8725a8c71859ee
[ "Apache-2.0" ]
1
2022-03-22T04:16:15.000Z
2022-03-22T04:26:03.000Z
src/deep_speaker/audio.py
googleinterns/deepspeech-reconstruction
72f28d1e9064d221b3421c302a8725a8c71859ee
[ "Apache-2.0" ]
1
2021-04-28T21:51:12.000Z
2021-04-28T21:51:12.000Z
import logging import os import pickle from collections import defaultdict from pathlib import Path import librosa import numpy as np from tqdm import tqdm from constants import SAMPLE_RATE, NUM_FBANKS from utils import find_files, ensures_dir from audio2mfcc import audio2mfcc logger = logging.getLogger(__name__) ...
38.702128
106
0.666117
f106629d84e9d2866da84de08b6af24c9da56caa
7,292
py
Python
python-backend/tests/constants.py
MaxWardle/mds
15d8405e6e95af98da9588f353c5d6692d1aa3d6
[ "Apache-2.0" ]
null
null
null
python-backend/tests/constants.py
MaxWardle/mds
15d8405e6e95af98da9588f353c5d6692d1aa3d6
[ "Apache-2.0" ]
null
null
null
python-backend/tests/constants.py
MaxWardle/mds
15d8405e6e95af98da9588f353c5d6692d1aa3d6
[ "Apache-2.0" ]
null
null
null
# Test Constants DUMMY_USER_KWARGS = {'create_user': 'DummyUser', 'update_user': 'DummyUser'} TEST_MINE_GUID = '4fc855aa-728a-48f2-a3df-85ce1336b01a' TEST_MINE_NAME = 'test_mine_name' TEST_MINE_NO = 'BLAH000' TEST_MINE_TYPE_GUID = 'df4939f0-04c9-49dc-bf04-2a3c3b8b0e14' TEST_MINE_TYPE_DETAIL_GUID = 'df4939f0-04c9-49d...
32.699552
99
0.737383
dca1df2ff229771d238e4f298702a5823570238f
10,981
py
Python
control/webapp/member.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
null
null
null
control/webapp/member.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
null
null
null
control/webapp/member.py
doismellburning/control-panel
516feeaac3a0f4c704105204b6efe75a94ba42c3
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from flask import Blueprint, render_template, request, redirect, url_for from werkzeug.exceptions import NotFound, Forbidden from .utils import srcf_db_sess as sess from .utils import parse_domain_name, create_job_maybe_email_and_redirect, find_member from . import utils, inspect_ser...
39.217857
135
0.628449
4788ed51e6c14c18e5bab7c91a743d3b504d8c6b
2,350
py
Python
lib/assembly/kbase.py
olsonanl/assembly
6bcecac2ba7de826d2a4625964b02c348e7ce4e9
[ "MIT" ]
null
null
null
lib/assembly/kbase.py
olsonanl/assembly
6bcecac2ba7de826d2a4625964b02c348e7ce4e9
[ "MIT" ]
null
null
null
lib/assembly/kbase.py
olsonanl/assembly
6bcecac2ba7de826d2a4625964b02c348e7ce4e9
[ "MIT" ]
null
null
null
import sys import json # Usage: typespec_to_assembly_data typespec_json > assembly_data_json def typespec_to_assembly_data(spec): lib_types = dict (paired_end_libs = 'paired', single_end_libs = 'single', references = 'reference') attr_map = dict(insert_size_mean...
32.638889
105
0.51617
ea585e09e4f0e9e84cc96cd706bc8a99fb825c76
55,837
py
Python
huaweicloud-sdk-ces/huaweicloudsdkces/v1/ces_client.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-ces/huaweicloudsdkces/v1/ces_client.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-ces/huaweicloudsdkces/v1/ces_client.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 from __future__ import absolute_import import datetime import re import importlib import six from huaweicloudsdkcore.client import Client, ClientBuilder from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkcore.utils import http_utils from huaweicloudsdkcore.sdk_stream_request imp...
31.228747
142
0.621989
abfd9f2c4ac77fab652bddc1c0629b3ae1004f14
8,841
py
Python
tools/detection/test.py
ypwhs/mmfewshot
2cda666e5c50586a73516f860b66729593af0d4a
[ "Apache-2.0" ]
1
2021-12-30T07:24:48.000Z
2021-12-30T07:24:48.000Z
tools/detection/test.py
xiaodongdreams/mmfewshot
ded7c357edcca29a84e61e6ce55ef9dff407d112
[ "Apache-2.0" ]
null
null
null
tools/detection/test.py
xiaodongdreams/mmfewshot
ded7c357edcca29a84e61e6ce55ef9dff407d112
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import argparse import os import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import (get_dist_info, init_dist, load_checkpoint, wrap_fp...
38.947137
79
0.625042
5397f36d8fa6018fe38f871ca43fd30f2d494d6f
387
py
Python
frontend/stock-api/core/wsgi.py
xiaomoxu/cuddly-bassoon
630ad6f5081bb600af4ad456f80f736538a6e574
[ "MIT" ]
2
2018-10-29T10:43:17.000Z
2020-11-14T12:33:29.000Z
frontend/stock-api/core/wsgi.py
xiaomoxu/cuddly-bassoon
630ad6f5081bb600af4ad456f80f736538a6e574
[ "MIT" ]
1
2018-03-21T08:06:41.000Z
2018-03-21T08:06:41.000Z
frontend/stock-api/core/wsgi.py
xiaomoxu/cuddly-bassoon
630ad6f5081bb600af4ad456f80f736538a6e574
[ "MIT" ]
2
2018-01-23T01:48:06.000Z
2018-10-29T10:43:22.000Z
""" WSGI config for stocks 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
22.764706
78
0.782946
afbd88aeae089788eb6e9660e828529238ec19cf
500
py
Python
instagram/forms.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
null
null
null
instagram/forms.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
9
2020-06-05T20:37:40.000Z
2021-09-22T18:28:23.000Z
instagram/forms.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
null
null
null
from django import forms from instagram.models import Post, Comments, Profile from pyuploadcare.dj.forms import ImageField from django.contrib.auth.models import User class Uploadindexphotoform(forms.ModelForm): class Meta: model = Profile fields = ['image'] class UserUpdateForm(forms.ModelForm): ...
23.809524
52
0.684
162e5292af57f4586269a0ce2a72b2a5ecf2faf5
7,943
py
Python
test/test_enqueue_copy.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
null
null
null
test/test_enqueue_copy.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
null
null
null
test/test_enqueue_copy.py
zachjweiner/pyopencl
4e2e4f3150c331680e6d9e36c59290411e4a0c40
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python __copyright__ = "Copyright (C) 2016 Shane J. Latham" __license__ = """ 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, including without limitation the...
35.779279
85
0.665869
9d57dbaaaa92851a1fa5fa9a3cb41bd6b821efc9
773
py
Python
integration_tests/test_cfngin/tests/08_blank_namespace.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
integration_tests/test_cfngin/tests/08_blank_namespace.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
integration_tests/test_cfngin/tests/08_blank_namespace.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
"""CFNgin test.""" # flake8: noqa # pylint: disable=invalid-name from os.path import basename from integration_tests.test_cfngin.test_cfngin import Cfngin FILE_BASENAME = ".".join(basename(__file__).split(".")[:-1]) class TestBlankNamespace(Cfngin): """Test CFNgin namespace as an empty string. Requires val...
24.935484
62
0.659767
350a4fd153af288d10b30c76ecdd1feb9651a26d
56,528
py
Python
moto/s3/models.py
pt-arvind/moto
2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a
[ "Apache-2.0" ]
null
null
null
moto/s3/models.py
pt-arvind/moto
2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a
[ "Apache-2.0" ]
null
null
null
moto/s3/models.py
pt-arvind/moto
2f2cb367aa434edbd8bbf53a2cdfaddd03ca578a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json import os import base64 import datetime import pytz import hashlib import copy import itertools import codecs import random import string import tempfile import threading import sys import time import uuid import six from bisect import insor...
34.384428
120
0.587992
f357578f5090250a53043e264a3af7d38adcae67
648
py
Python
NameMarkupLanguage/NameMarkInterface/DefTag.py
sonnts996/NameMarkLanguage
448db602371e91d661bbf3de40070904a89e85fa
[ "MIT" ]
null
null
null
NameMarkupLanguage/NameMarkInterface/DefTag.py
sonnts996/NameMarkLanguage
448db602371e91d661bbf3de40070904a89e85fa
[ "MIT" ]
null
null
null
NameMarkupLanguage/NameMarkInterface/DefTag.py
sonnts996/NameMarkLanguage
448db602371e91d661bbf3de40070904a89e85fa
[ "MIT" ]
null
null
null
class DefTag: def __init__(self): self.__category__ = "" self.__mID__ = "" def category(self) -> str: pass def mid(self) -> str: pass def nmlId(self) -> str: pass def nmlDisplayId(self) -> str: pass def setCategory(self, category): pas...
19.058824
48
0.521605
b929acb3b2361f77373dfc6ad169d9fff4ebde74
427
py
Python
Resources/Work_By_Raj/Google_Calender_api/Resources/__init__.py
Raj-Dave368/Achintya
c1604b10467245025fce08bc2a785ae510d4041d
[ "MIT" ]
null
null
null
Resources/Work_By_Raj/Google_Calender_api/Resources/__init__.py
Raj-Dave368/Achintya
c1604b10467245025fce08bc2a785ae510d4041d
[ "MIT" ]
null
null
null
Resources/Work_By_Raj/Google_Calender_api/Resources/__init__.py
Raj-Dave368/Achintya
c1604b10467245025fce08bc2a785ae510d4041d
[ "MIT" ]
null
null
null
# jay mahakal import Resources.Work_By_Raj.Google_Calender_api.Resources.Setup import Resources.Work_By_Raj.Google_Calender_api.Resources.Return_events_info # below function [Setup.setup_calendar_credentials_return_service()] should run only once # service = Setup.setup_calendar_credentials_return_service() # pri...
35.583333
111
0.850117
4894005c67ef166c9b5a2f13a7597d4af3204321
606
py
Python
main.py
Etuloser/e-flask
0cdc6ae324b3cfe696b69b85ad0189516ba9a25f
[ "MIT" ]
null
null
null
main.py
Etuloser/e-flask
0cdc6ae324b3cfe696b69b85ad0189516ba9a25f
[ "MIT" ]
null
null
null
main.py
Etuloser/e-flask
0cdc6ae324b3cfe696b69b85ad0189516ba9a25f
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from config import create_api, create_app, scheduler from utils.handle import handle_success dotenv_path = os.path.join(os.path.dirname(__file__), '.env') if os.path.exists(dotenv_path): load_dotenv(dotenv_path) app = create_app(os.getenv('FLASK_CONFIG') or 'default') a...
20.896552
77
0.722772
2c07c8ffec9c54beda6877470b4f004f4d4a23ef
6,321
py
Python
plugins/m/math.py
ashwinvis/m.css
f523da7a0fb0bc37f66cd914cd4c7c3f7e46b926
[ "MIT" ]
null
null
null
plugins/m/math.py
ashwinvis/m.css
f523da7a0fb0bc37f66cd914cd4c7c3f7e46b926
[ "MIT" ]
null
null
null
plugins/m/math.py
ashwinvis/m.css
f523da7a0fb0bc37f66cd914cd4c7c3f7e46b926
[ "MIT" ]
null
null
null
# # This file is part of m.css. # # Copyright © 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz> # # 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, including...
36.75
180
0.677741
0dcf07e2cd2d52f47cc764982d7a4744921ecd9c
224
py
Python
api/backends/music.py
codezeus/ratingslist
0f5ddb753ef7cdcfb9444a28c52b0338de43d7a0
[ "MIT" ]
null
null
null
api/backends/music.py
codezeus/ratingslist
0f5ddb753ef7cdcfb9444a28c52b0338de43d7a0
[ "MIT" ]
null
null
null
api/backends/music.py
codezeus/ratingslist
0f5ddb753ef7cdcfb9444a28c52b0338de43d7a0
[ "MIT" ]
null
null
null
from api.backends.base import BaseBackend from api.parsers.metacritic import MetacriticMusicParser class MusicBackend(BaseBackend): """MusicBackend represents a music type""" parser_class = MetacriticMusicParser()
28
56
0.803571
80773b69929403a86db6fd4b3c9cc5935fe30474
4,466
py
Python
src/test/python/tests_comparing.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
4
2018-09-24T23:51:05.000Z
2021-01-06T09:13:52.000Z
src/test/python/tests_comparing.py
stefano-bragaglia/DefeasiblePython
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
1
2020-05-26T01:14:44.000Z
2020-05-27T07:54:15.000Z
src/test/python/tests_comparing.py
stefano-bragaglia/DePYsible
6b53ede459a10f5e24da89d3ebaa05f08ec7af12
[ "BSD-2-Clause" ]
null
null
null
from unittest import TestCase from assertpy import assert_that from depysible.domain.definitions import Program from depysible.domain.definitions import Rule from depysible.domain.interpretation import Derivation from depysible.domain.interpretation import Interpreter class TestComparing(TestCase): def test__is...
36.016129
104
0.468652
344e30389e89bf87f24dd1e834eaa058e2fd0371
2,974
py
Python
samples/ch09/vehicles_mlp_mean.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
samples/ch09/vehicles_mlp_mean.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
samples/ch09/vehicles_mlp_mean.py
bmoretz/Python-Machine-Learning
206e7905cdcade7e322cee7e60a642d55ebc8955
[ "MIT" ]
null
null
null
''' Created on Nov 26, 2017 @author: henryliu ''' import sys from sklearn.metrics import mean_squared_error, r2_score from sklearn.neural_network import MLPRegressor import matplotlib.pyplot as plt import numpy as np import pandas as pd def main(argv): # read in vehicles csv vehicles_df = pd.read_csv("../...
36.716049
86
0.694687
9c8346561be194cfbb16f83b73aa35a26d38859a
897
py
Python
PYex/Rambit/Rambit/source/Game.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
PYex/Rambit/Rambit/source/Game.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
PYex/Rambit/Rambit/source/Game.py
iPatso/PyGameProjs
b1eed993649a1e90da5214a1604fdb59d65ff0b4
[ "Apache-2.0" ]
null
null
null
import pygame import Resources, ScreenManager, Intro class Game(): def __init__(self): pygame.init() pygame.display.set_caption('NOMEDOJOGO') pygame.mouse.set_visible(False) icon = pygame.Surface((32,32)) iconImage = pygame.image.load("res/img/icon.png") ...
28.03125
84
0.617614
21a3eeeebaf2dddb9f0986dcdfe438175af8d575
3,762
py
Python
tensorflow_datasets/image_classification/imagenet_a.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/image_classification/imagenet_a.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image_classification/imagenet_a.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
36.882353
93
0.707337
a12edca1065e665d3be4c4e907ca89dc38c577cd
2,230
py
Python
src/lib/utils/ukf_tracker.py
gafaua/PolyTrack
5a4b409732b9396be8271f5cba4ad426808d5af5
[ "MIT" ]
10
2021-11-07T04:25:08.000Z
2022-03-25T03:33:21.000Z
src/lib/utils/ukf_tracker.py
gafaua/PolyTrack
5a4b409732b9396be8271f5cba4ad426808d5af5
[ "MIT" ]
null
null
null
src/lib/utils/ukf_tracker.py
gafaua/PolyTrack
5a4b409732b9396be8271f5cba4ad426808d5af5
[ "MIT" ]
6
2021-11-03T21:27:06.000Z
2022-03-27T17:27:40.000Z
from filterpy.kalman import UnscentedKalmanFilter as UKF from filterpy.kalman import MerweScaledSigmaPoints from filterpy.common import Q_discrete_white_noise, Q_continuous_white_noise import numpy as np points = MerweScaledSigmaPoints(n=6, alpha=1e-3, beta=2., kappa=3) def hx(x): return x[[0,3]] def fx(x, dt)...
34.84375
178
0.59417
c8d9ba10f72f595ca99a604a87aca8d47861460b
39,559
py
Python
old_projects/eulers_characteristic_formula.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
old_projects/eulers_characteristic_formula.py
elphasminyato/manim
8488b621ef3367e6a911354d2765684321fed20e
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
old_projects/eulers_characteristic_formula.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
#!/usr/bin/env python import numpy as np import itertools as it from copy import deepcopy import sys from animation import * from mobject import * from constants import * from mobject.region import * import displayer as disp from scene.scene import Scene, GraphScene from scene.graphs import * from moser_main import...
32.938385
81
0.539397
fa7783f554665e588292a4ea5fa90492a0d3cf0e
542
py
Python
setup.py
diogobenica/zoom-zt2
435b4a4ccba6e2f2de993563eb879da2f2b4b266
[ "MIT" ]
null
null
null
setup.py
diogobenica/zoom-zt2
435b4a4ccba6e2f2de993563eb879da2f2b4b266
[ "MIT" ]
null
null
null
setup.py
diogobenica/zoom-zt2
435b4a4ccba6e2f2de993563eb879da2f2b4b266
[ "MIT" ]
null
null
null
from cx_Freeze import setup, Executable base = None executables = [Executable("zoomzt2-gui.py", base=base)] packages = ["construct", "os", "optparse", "sys", "binascii", "mido", "rtmidi_python"] options = { 'build_exe': { 'packages':packages, 'excludes':["pygame", "numpy"], ...
24.636364
87
0.594096
dea39091a5cc44fce8fa6cc0bf338a854538548d
2,209
py
Python
KitronikInterfaceForFischertechnik.py
KitronikLtd/microbit.micropython.modules
cfb3cdd50cd5f251725542602db32a09103266c7
[ "MIT" ]
2
2020-12-18T15:17:20.000Z
2021-03-09T15:54:06.000Z
KitronikInterfaceForFischertechnik.py
KitronikLtd/microbit.micropython.modules
cfb3cdd50cd5f251725542602db32a09103266c7
[ "MIT" ]
null
null
null
KitronikInterfaceForFischertechnik.py
KitronikLtd/microbit.micropython.modules
cfb3cdd50cd5f251725542602db32a09103266c7
[ "MIT" ]
1
2021-04-13T15:28:27.000Z
2021-04-13T15:28:27.000Z
# microbit-module: kitronikInterfaceForFischertechnik@0.0.1 from microbit import * import math class Interface: def motorOn(self, motor, direction, speed): if speed > 100: speed = 100 elif speed < 0: speed = 0 speed = speed * 10 if motor == "Mot...
34.515625
122
0.538253
c44f2b09573b1ce6d83f7e16abec21c96c1d7f58
2,423
py
Python
cantools/subparsers/decode.py
rettenbs/cantools
6ae20991f28224a35992abbfd4f41040f4b503c9
[ "MIT" ]
1,063
2016-06-16T10:07:22.000Z
2021-10-13T17:21:18.000Z
cantools/subparsers/decode.py
rettenbs/cantools
6ae20991f28224a35992abbfd4f41040f4b503c9
[ "MIT" ]
334
2015-09-02T19:57:21.000Z
2021-10-10T19:05:11.000Z
cantools/subparsers/decode.py
rettenbs/cantools
6ae20991f28224a35992abbfd4f41040f4b503c9
[ "MIT" ]
341
2015-09-02T02:27:42.000Z
2021-09-29T05:44:50.000Z
import argparse import sys from argparse_addons import Integer from .. import database from .. import logreader from .__utils__ import format_message_by_frame_id def _do_decode(args): dbase = database.load_file(args.database, encoding=args.encoding, fr...
37.859375
79
0.578622
73a63fecedb04faa0bf70b2c6185a80ac601e868
646
py
Python
external/plex/dist/tests/test4.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
964
2015-09-24T15:02:05.000Z
2022-03-29T21:41:21.000Z
external/plex/dist/tests/test4.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
435
2015-09-23T16:46:58.000Z
2020-04-19T12:32:03.000Z
external/plex/dist/tests/test4.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
86
2015-10-24T20:08:30.000Z
2021-08-09T13:53:00.000Z
import Test import sys from Plex import * letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_" wax = Any("(") wane = Any(")") letter = Any(letters) space = Any(" \t\n") def open_paren(s, t): s.counter = s.counter + 1 def close_paren(s, t): s.counter = s.counter - 1 def got_a_letter(s, t): if s.c...
15.756098
65
0.659443
da05d12ee91d8b8340849bfb2e68ea8de1f876a8
5,110
py
Python
src/project2/lr-mnist.py
frillecode/VisualAnalytics2021
fd90adb19da8953ad21ada6715120387740214f1
[ "MIT" ]
null
null
null
src/project2/lr-mnist.py
frillecode/VisualAnalytics2021
fd90adb19da8953ad21ada6715120387740214f1
[ "MIT" ]
null
null
null
src/project2/lr-mnist.py
frillecode/VisualAnalytics2021
fd90adb19da8953ad21ada6715120387740214f1
[ "MIT" ]
null
null
null
#!/usr/bin/python # Import necessary libraries/modules import os import argparse import numpy as np import cv2 from sklearn import metrics from sklearn import datasets from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score cl...
38.134328
223
0.583562
bcd9066b1ba7a552d03c952228499c6f1f90dd38
7,012
py
Python
tests/python/relay/test_ir_nodes.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2,084
2020-11-25T02:31:53.000Z
2022-03-31T11:33:47.000Z
tests/python/relay/test_ir_nodes.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
tests/python/relay/test_ir_nodes.py
Xuyuanjia2014/tvm
892f8305e77ad506660b851f9ce4c81be0f95d9d
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
977
2020-11-25T00:54:52.000Z
2022-03-31T12:47:08.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...
29.586498
100
0.662151
f43e6b874d3f99a7abfb561cadfa4ec1d48eab06
920
py
Python
src/Chapter12/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter12/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter12/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
""" Exercise 2 Change your socket program so that it counts the number of characters it has received and stops displaying any text after it has shown 3000 characters. The program should retrieve the entire document and count the total number of characters and display the count of the number of characters at the end of ...
24.210526
76
0.655435
6aae7decc4c3307d536733957f57616c97f32f99
448
py
Python
absort/__init__.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
absort/__init__.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
absort/__init__.py
MapleCCC/ABSort
fa020d7f2d6025603910c12fdfe775922d33afbc
[ "MIT" ]
null
null
null
from .__main__ import ( CommentStrategy, FileAction, FormatOption, SortOrder, NameRedefinition, BypassPromptLevel, absort_file, absort_files, absort_str, ) from .__version__ import __version__ __all__ = [ "absort_str", "absort_file", "absort_files", "CommentStrategy...
16.592593
36
0.651786
a609a4b5e5c62db600741a1595503d395e7794c0
15,439
py
Python
whoisenum/whois/whois.py
bbhunter/WhoEnum
0852478d073ac3d0239f5a896d9c77bcde17c59f
[ "MIT" ]
17
2021-11-18T13:10:03.000Z
2022-02-17T03:20:42.000Z
whoisenum/whois/whois.py
bbhunter/WhoEnum
0852478d073ac3d0239f5a896d9c77bcde17c59f
[ "MIT" ]
null
null
null
whoisenum/whois/whois.py
bbhunter/WhoEnum
0852478d073ac3d0239f5a896d9c77bcde17c59f
[ "MIT" ]
6
2021-11-18T13:26:25.000Z
2022-01-04T06:04:40.000Z
# -*- coding: utf-8 -*- """ Whois client for python transliteration of: http://www.opensource.apple.com/source/adv_cmds/adv_cmds-138.1/whois/whois.c Copyright (c) 2010 Chris Wolf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
40.205729
214
0.589611
59362b98600ad072c721be547c88185f10a9e7b6
4,109
py
Python
apu/encoding/json/np.py
afeldman/apu
223cd54ce8696c504e08baa94b34debb4f8dc0a2
[ "MIT" ]
null
null
null
apu/encoding/json/np.py
afeldman/apu
223cd54ce8696c504e08baa94b34debb4f8dc0a2
[ "MIT" ]
null
null
null
apu/encoding/json/np.py
afeldman/apu
223cd54ce8696c504e08baa94b34debb4f8dc0a2
[ "MIT" ]
null
null
null
""" handling numpy data for json author: anton feldmann <anton.feldmann@gmail.com> """ from json.encoder import JSONEncoder from json.decoder import JSONDecoder import numpy as np # pylint: disable=C0103,R0201,R1705,R0911 class NumpyEncoder(JSONEncoder): """ Custom encoder for numpy data types ...
29.141844
74
0.527379
f88671145849cd4cc233887525968fe559fc8b6b
6,939
py
Python
classy/utils/rich_config.py
sunglasses-ai/classy
c166490a30d8ba6d7c25f70ce707b7a2ddcfb53f
[ "Apache-2.0" ]
26
2021-10-17T08:32:53.000Z
2022-03-30T10:57:13.000Z
classy/utils/rich_config.py
sunglasses-ai/classy
c166490a30d8ba6d7c25f70ce707b7a2ddcfb53f
[ "Apache-2.0" ]
8
2021-11-02T20:57:44.000Z
2022-03-13T09:42:29.000Z
classy/utils/rich_config.py
sunglasses-ai/classy
c166490a30d8ba6d7c25f70ce707b7a2ddcfb53f
[ "Apache-2.0" ]
null
null
null
import os try: import rich from rich.console import Console from rich.style import Style from rich.text import Text from rich.tree import Tree except ImportError: print("classy train [...] --print requires `pip install rich`") exit() from typing import Iterable, List, Optional, Tuple, Unio...
29.278481
90
0.516933
2a0fc1b2c1ce77fb3f8e865d6eaf3e57a8d35149
34,237
py
Python
splash/tests/mockserver.py
janmechtel/splash
13e66377cf0edae27f401712a28938d478afb495
[ "BSD-3-Clause" ]
null
null
null
splash/tests/mockserver.py
janmechtel/splash
13e66377cf0edae27f401712a28938d478afb495
[ "BSD-3-Clause" ]
null
null
null
splash/tests/mockserver.py
janmechtel/splash
13e66377cf0edae27f401712a28938d478afb495
[ "BSD-3-Clause" ]
1
2022-03-22T10:49:50.000Z
2022-03-22T10:49:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import os import optparse import base64 import random from functools import wraps from urllib.parse import unquote from twisted.web.server import Site, NOT_DONE_YET from twisted.web.resource import Resource from twisted.internet import reactor, ssl from twisted...
29.014407
194
0.612349
0ebfc9121054fd9490dcb9eefdc56665903c0561
842
py
Python
doodledashboard/filters/message_from_source.py
FlyingTopHat/Slack-Dashboard
28ed478d8927b8e71db48a521493919a9c0b5797
[ "MIT" ]
1
2019-09-21T09:03:54.000Z
2019-09-21T09:03:54.000Z
doodledashboard/filters/message_from_source.py
FlyingTopHat/Slack-Dashboard
28ed478d8927b8e71db48a521493919a9c0b5797
[ "MIT" ]
46
2018-01-01T12:56:30.000Z
2020-02-11T08:30:42.000Z
doodledashboard/filters/message_from_source.py
FlyingTopHat/Slack-Dashboard
28ed478d8927b8e71db48a521493919a9c0b5797
[ "MIT" ]
2
2018-08-26T08:25:49.000Z
2020-11-04T03:47:08.000Z
from doodledashboard.component import FilterCreator, MissingRequiredOptionException from doodledashboard.filters.filter import MessageFilter class MessageFromSourceFilter(MessageFilter): def __init__(self, source_name): MessageFilter.__init__(self) self._source_name = source_name def filter(s...
29.034483
90
0.733967
2024d5bbe405ba6f84428a6c0eb40a29c301a867
72,690
py
Python
test/unit/test_contracts_graph_parsed.py
jwills/dbt-core
aeee1c23a6826aa1d254a939655cb514f38db649
[ "Apache-2.0" ]
null
null
null
test/unit/test_contracts_graph_parsed.py
jwills/dbt-core
aeee1c23a6826aa1d254a939655cb514f38db649
[ "Apache-2.0" ]
null
null
null
test/unit/test_contracts_graph_parsed.py
jwills/dbt-core
aeee1c23a6826aa1d254a939655cb514f38db649
[ "Apache-2.0" ]
null
null
null
import pickle import pytest from dbt.node_types import NodeType from dbt.contracts.files import FileHash from dbt.contracts.graph.model_config import ( NodeConfig, SeedConfig, TestConfig, SnapshotConfig, SourceConfig, EmptySnapshotConfig, Hook, ) from dbt.contracts.graph.parsed import ( ...
31.71466
150
0.588582
7d1ecb6269c2635317ded2408ccaa32503769c55
1,688
py
Python
setup.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
1
2020-08-30T07:47:57.000Z
2020-08-30T07:47:57.000Z
setup.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
setup.py
t2y/openapi-ext-tools
1253053af4f9a90f85b611e79a8f39c7d226a002
[ "Apache-2.0" ]
null
null
null
import re from os import path from setuptools import setup version_py = open('openapi/spec/ext/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", version_py)) desc = 'Extended tools for openapi spec' cur_dir = path.abspath(path.dirname(__file__)) with open(path.join(cur_dir, 'README.md')) as ...
31.259259
70
0.626185
7b38e5ea93000b33f5bd4e009e49aec1421f5b71
29,871
py
Python
venv/Lib/site-packages/networkx/algorithms/dag.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
5
2022-01-05T00:41:46.000Z
2022-03-21T07:22:58.000Z
venv/Lib/site-packages/networkx/algorithms/dag.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
25
2021-04-17T09:26:47.000Z
2022-01-02T20:06:55.000Z
venv/Lib/site-packages/networkx/algorithms/dag.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
20
2021-11-07T13:55:56.000Z
2021-12-02T10:54:01.000Z
"""Algorithms for directed acyclic graphs (DAGs). Note that most of these functions are only guaranteed to work for DAGs. In general, these functions do not check for acyclic-ness, so it is up to the user to check for that. """ from collections import deque from math import gcd from functools import partial from iter...
30.574207
90
0.617455
c7e42ba038c5fac830c4a4bef762efcbc258e105
4,130
py
Python
test/IECoreGL/ToGLTextureConverter.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
5
2015-09-13T14:49:30.000Z
2017-02-04T21:04:59.000Z
test/IECoreGL/ToGLTextureConverter.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
1
2018-11-07T19:40:15.000Z
2018-11-07T19:40:15.000Z
test/IECoreGL/ToGLTextureConverter.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
3
2015-02-03T17:13:40.000Z
2022-01-07T15:55:00.000Z
########################################################################## # # Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
33.852459
117
0.696126
16f86139874ca21479469361aaed457a63448edd
1,611
py
Python
py/cidoc_crm_types/properties/p16_used_specific_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p16_used_specific_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p16_used_specific_object.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p12_occurred_in_the_presence_of import P12OccurredInThePresenceOf from .p15_was_influenced_by import P15WasInfluencedBy from dataclasses import dataclass @dataclass class P16UsedSpecificObject(P12OccurredInThePresenceOf, P15WasInfluencedBy): """ Scope note: This property describes the use of material or imm...
51.967742
408
0.77095
82a3a2f4417dfb016097ec9ecd8ac60afc8d6b7d
4,786
py
Python
can_tools/scrapers/official/CA/ca_state.py
jrybacek/can-scrapers
1a32a45be6aa6630de4d100c56c2a8659a1b1025
[ "MIT" ]
null
null
null
can_tools/scrapers/official/CA/ca_state.py
jrybacek/can-scrapers
1a32a45be6aa6630de4d100c56c2a8659a1b1025
[ "MIT" ]
null
null
null
can_tools/scrapers/official/CA/ca_state.py
jrybacek/can-scrapers
1a32a45be6aa6630de4d100c56c2a8659a1b1025
[ "MIT" ]
null
null
null
from typing import Any import pandas as pd import us from can_tools.scrapers.base import CMU from can_tools.scrapers.official.base import StateQueryAPI class CaliforniaCasesDeaths(StateQueryAPI): """ Fetch county level covid data from California state dashbaord """ apiurl = "https://data.ca.gov/api...
29.9125
87
0.559967
93a0b67e6d63c8312ab19c78dead5ce71a35b397
3,933
py
Python
lib/examples/nacl_amb_trajrst/aux_functions.py
ajoshpratt/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2019-12-21T09:11:54.000Z
2019-12-21T09:11:54.000Z
lib/examples/nacl_amb_trajrst/aux_functions.py
astatide/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2020-04-14T20:49:38.000Z
2020-04-14T20:49:38.000Z
lib/examples/nacl_amb_trajrst/aux_functions.py
ajoshpratt/westpa
545a42a5ae4cfa77de0e125a38a5b1ec2b9ab218
[ "MIT" ]
1
2020-04-14T20:42:11.000Z
2020-04-14T20:42:11.000Z
#!/usr/bin/env python import numpy import mdtraj as md import h5py import westpa import StringIO import tempfile import os def pcoord_loader(fieldname, pcoord_return_filename, segment, single_point, trajectory, restart): """Read progress coordinate data into the ``pcoord`` field on ``destobj``. An exception w...
32.504132
120
0.567251
e333ee5bf2460b822ba379f438108203e4982540
64,843
py
Python
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/custom.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
1
2018-01-30T05:55:29.000Z
2018-01-30T05:55:29.000Z
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/custom.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/custom.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.970842
222
0.673642
86ff8aa3c0f5e7147e168e4b136a20e314fbc947
1,030
py
Python
test/test_v1_network_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
7
2020-12-21T05:24:24.000Z
2022-02-12T20:55:32.000Z
test/test_v1_network_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
6
2020-09-16T07:23:34.000Z
2022-01-18T12:05:30.000Z
test/test_v1_network_create_request.py
metal-stack/metal-python
cdf40fa86d2b2944f9818cef1c6723b1eecc506e
[ "MIT" ]
null
null
null
# coding: utf-8 """ metal-api API to manage and control plane resources like machines, switches, operating system images, machine sizes, networks, IP addresses and more # noqa: E501 OpenAPI spec version: v0.15.7 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __futur...
25.121951
156
0.729126
8e823184e40d261e02029ad2ac88824a82b517ca
434
py
Python
wafec_tests_openstack_testware/src/wafec_tests_openstack_testware/exceptions.py
wafec/wafec-tests-openstack-testware
f06789800b40f316183736ee805af4b352a825ab
[ "MIT" ]
null
null
null
wafec_tests_openstack_testware/src/wafec_tests_openstack_testware/exceptions.py
wafec/wafec-tests-openstack-testware
f06789800b40f316183736ee805af4b352a825ab
[ "MIT" ]
null
null
null
wafec_tests_openstack_testware/src/wafec_tests_openstack_testware/exceptions.py
wafec/wafec-tests-openstack-testware
f06789800b40f316183736ee805af4b352a825ab
[ "MIT" ]
null
null
null
import abc __all__ = [ 'NotFoundException', 'StateMismatchException', 'ArgumentException', 'IllegalStateException', 'ExceptionBase' ] class ExceptionBase(Exception, metaclass=abc.ABCMeta): pass class NotFoundException(ExceptionBase): pass class StateMismatchException(ExceptionBase): ...
14.466667
54
0.739631
0bf1839ce9594366cf07a158cba9039025d1ce2b
4,220
py
Python
venv1/Lib/site-packages/tensorflow/contrib/quantize/python/common.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/contrib/quantize/python/common.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/contrib/quantize/python/common.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2017 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...
34.308943
81
0.702133
acb6ae3d37e06e815fb740e6044b7da4545bff9d
2,350
py
Python
lithops/tests/util_func/map_util.py
pywren/pywren-ibm-cloud
34ede62e3cc62f4626f9be89db4993bc6a8455a7
[ "Apache-2.0" ]
55
2018-04-23T09:58:56.000Z
2020-09-09T11:47:16.000Z
lithops/tests/util_func/map_util.py
pywren/pywren-ibm-cloud
34ede62e3cc62f4626f9be89db4993bc6a8455a7
[ "Apache-2.0" ]
256
2018-05-20T13:01:51.000Z
2020-09-16T09:09:54.000Z
lithops/tests/util_func/map_util.py
pywren/pywren-ibm-cloud
34ede62e3cc62f4626f9be89db4993bc6a8455a7
[ "Apache-2.0" ]
35
2018-04-23T09:07:57.000Z
2020-08-12T13:43:06.000Z
import lithops import logging logger = logging.getLogger(__name__) def simple_map_function(x, y): return x + y def concat(lst): return " ".join(lst) def hello_world(param): return "Hello World!" def lithops_inside_lithops_map_function(x): def _func(x): return x fexec = lithops.Func...
23.979592
79
0.620426
a2a303f916c799cd01ca2222c53ee156bc8b4c8b
1,571
py
Python
src/meetshaus.jmscontent/meetshaus/jmscontent/tests.py
potzenheimer/buildout.jms
c4f5e440840a7faf464c71d0bc0cc1ac50535f3f
[ "MIT" ]
null
null
null
src/meetshaus.jmscontent/meetshaus/jmscontent/tests.py
potzenheimer/buildout.jms
c4f5e440840a7faf464c71d0bc0cc1ac50535f3f
[ "MIT" ]
null
null
null
src/meetshaus.jmscontent/meetshaus/jmscontent/tests.py
potzenheimer/buildout.jms
c4f5e440840a7faf464c71d0bc0cc1ac50535f3f
[ "MIT" ]
null
null
null
import doctest import unittest from Testing import ZopeTestCase as ztc from Products.Five import zcml from Products.PloneTestCase import PloneTestCase as ptc from Products.PloneTestCase.layer import PloneSite from Products.PloneTestCase.layer import onsetup import meetshaus.jmscontent OPTION_FLAGS = doctest.NORMALI...
24.936508
61
0.649905
209f86bb4ed9e0a23160652a0a45ff01eefcf070
1,874
py
Python
pychron/canvas/tasks/canvas_plugin.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/canvas/tasks/canvas_plugin.py
ael-noblegas/pychron
6ebbbb1f66a614972b62b7a9be4c784ae61b5d62
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/canvas/tasks/canvas_plugin.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2013 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licens...
36.745098
81
0.584845
cc8835de70d94b77c8343c3ce4ce4a8305278e2e
237
py
Python
odoo-13.0/venv/lib/python3.8/site-packages/reportlab/graphics/charts/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
odoo-13.0/venv/lib/python3.8/site-packages/reportlab/graphics/charts/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
10
2020-06-05T21:41:01.000Z
2022-02-10T07:33:38.000Z
odoo-13.0/venv/lib/python3.8/site-packages/reportlab/graphics/charts/__init__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
#Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details #history https://bitbucket.org/rptlab/reportlab/history-node/tip/src/reportlab/graphics/charts/__init__.py __version__='3.3.0' __doc__='''Business charts'''
39.5
106
0.797468
ad9e3c129836f3fc9ce77e8e6afb1fb98392b1d0
14,609
py
Python
datalogger/DataListener.py
geraet2/pylarexx
1da7d52b25faa3fa5440eb679100b402b2c89441
[ "Apache-2.0" ]
3
2020-01-18T13:25:49.000Z
2020-08-20T09:32:26.000Z
datalogger/DataListener.py
geraet2/pylarexx
1da7d52b25faa3fa5440eb679100b402b2c89441
[ "Apache-2.0" ]
5
2020-01-27T08:48:12.000Z
2020-07-23T12:12:36.000Z
datalogger/DataListener.py
geraet2/pylarexx
1da7d52b25faa3fa5440eb679100b402b2c89441
[ "Apache-2.0" ]
4
2019-02-15T08:04:48.000Z
2020-07-26T19:22:53.000Z
''' Created on 23.11.2017 updated on 19.01.2020 @author: Florian Gleixner @Updater: Inonoob @license: pylarexx is licensed under the Apache License, version 2, see License.txt DataListener Objects can be added to a Logger instance by configuration of "output". DataListener get all values from the Sensor instances th...
40.921569
188
0.549593
facf39f33f91294814fc36d7c97339acb3ea1708
2,555
py
Python
test/test_iris_vendor_slack.py
dwang159/iris-api
f607fe4c5595469766470b899950d97570e8aebe
[ "BSD-2-Clause" ]
null
null
null
test/test_iris_vendor_slack.py
dwang159/iris-api
f607fe4c5595469766470b899950d97570e8aebe
[ "BSD-2-Clause" ]
null
null
null
test/test_iris_vendor_slack.py
dwang159/iris-api
f607fe4c5595469766470b899950d97570e8aebe
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- from iris.vendors.iris_slack import iris_slack import ujson as json def test_atttachments_construction_for_incident(): slack_vendor = iris_slack({ 'auth_token': 'abc', 'iris_incident_url': 'http://foo.bar/incidents', 'message_attachments': { ...
30.783133
82
0.509589
8336881ae4a446e58ea36d5ab297459f53cebfd2
744
py
Python
app/app/tests/conftest.py
mutalimov95/fastapi-mongodb-example
fc0ca6cf7e7b1ec1036a95cdad750da6a6b0e2cc
[ "MIT" ]
null
null
null
app/app/tests/conftest.py
mutalimov95/fastapi-mongodb-example
fc0ca6cf7e7b1ec1036a95cdad750da6a6b0e2cc
[ "MIT" ]
null
null
null
app/app/tests/conftest.py
mutalimov95/fastapi-mongodb-example
fc0ca6cf7e7b1ec1036a95cdad750da6a6b0e2cc
[ "MIT" ]
null
null
null
import pytest from app.core.config import settings from app.db.mongodb import db from app.tests.utils.user import authentication_token_from_email from app.tests.utils.utils import get_server_api, get_superuser_token_headers @pytest.fixture(scope="module") def server_api(): return get_server_api() @pytest.fixtu...
23.25
77
0.787634
524cb7636575ece2c65f8e878fb9d48c672547d1
6,974
py
Python
selfdrive/test/process_replay/test_processes.py
moneypro/openpilot
4dfd8b97027324e4ac24d44af8998d746f83fae3
[ "MIT" ]
4
2021-03-27T12:54:21.000Z
2021-05-25T03:27:48.000Z
selfdrive/test/process_replay/test_processes.py
toyboxZ/openpilot
9c60d8a7cb95adf81b3abcd839ae7427a7d2ac4f
[ "MIT" ]
16
2021-04-01T00:28:36.000Z
2021-05-22T15:37:07.000Z
selfdrive/test/process_replay/test_processes.py
toyboxZ/openpilot
9c60d8a7cb95adf81b3abcd839ae7427a7d2ac4f
[ "MIT" ]
2
2021-05-19T08:19:36.000Z
2021-06-12T04:53:20.000Z
#!/usr/bin/env python3 import argparse import os import sys from typing import Any from selfdrive.car.car_helpers import interface_names from selfdrive.test.process_replay.compare_logs import compare_logs from selfdrive.test.process_replay.process_replay import CONFIGS, replay_process from tools.lib.logreader import L...
38.960894
111
0.656295
dac4de9348b930a17e5853238214dd3c6f029904
258
py
Python
src/squad/types.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/types.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/types.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
from typing import Tuple, TypeVar, Union import numpy as np import numpy.typing as npt Vector = Union[Tuple[float, float, float], npt.NDArray[np.floating]] VectorT = TypeVar( "VectorT", Tuple[float, float, float], npt.NDArray[np.floating], )
18.428571
68
0.705426
2c2102c6a8d9e5a5f77b3510867cb284bb024274
4,278
py
Python
tests/test_vkclient.py
ekonda/vkpore
b863e06a5b3d0d34240bd032900c5711b97b096b
[ "MIT" ]
4
2019-05-29T10:53:48.000Z
2020-05-10T14:17:12.000Z
tests/test_vkclient.py
ekonda/vkpore
b863e06a5b3d0d34240bd032900c5711b97b096b
[ "MIT" ]
25
2019-06-17T22:54:15.000Z
2020-02-06T22:06:24.000Z
tests/test_vkclient.py
ekonda/vkpore
b863e06a5b3d0d34240bd032900c5711b97b096b
[ "MIT" ]
2
2019-08-20T10:32:41.000Z
2019-09-26T14:15:21.000Z
# pylint: disable=missing-docstring,protected-access,redefined-outer-name import pytest import aiohttp from vkpore.vkclient import VkClient from .testing_tools import Session @pytest.mark.asyncio async def test_initialization(): client = VkClient("token", session=Session()) await client.initialize() as...
23.25
85
0.623422
7905dc86e6b2268b3729640356d766f5c8951bc3
712
py
Python
problem0021.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0021.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0021.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #21 Amicable numbers - Project Euler # https://projecteuler.net/problem=21 # # Code by Kevin Marciniak # ########################### def sumproperdivisors(num): sum = 0 for x in range(1, int((num / 2)) + 1): if num % x == 0: sum += x return sum amicabl...
20.941176
83
0.573034
7c3b21b8497fbf509855f5c9a29b7da097e8056e
27,589
py
Python
rotkehlchen/tests/exchanges/test_coinbase.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
1
2020-11-14T12:20:37.000Z
2020-11-14T12:20:37.000Z
rotkehlchen/tests/exchanges/test_coinbase.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
3
2021-01-28T21:30:46.000Z
2022-03-25T19:17:00.000Z
rotkehlchen/tests/exchanges/test_coinbase.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch from rotkehlchen.constants.assets import A_BTC, A_ETH, A_USD from rotkehlchen.exchanges.coinbase import Coinbase from rotkehlchen.exchanges.data_structures import AssetMovement, Trade from rotkehlchen.fval import FVal from rotkehlchen.tests.utils.history import TEST_END_TS from rotkehlc...
32.457647
98
0.648411
90ce22e4ab49c4033ac1a18dec9a6a380e1b2b39
11,927
py
Python
enigmatoolbox/vtk_interface/pipeline.py
saratheriver/ENIGMA
c26483bfeb9e035b7ab5f56998d17155aece584f
[ "BSD-3-Clause" ]
null
null
null
enigmatoolbox/vtk_interface/pipeline.py
saratheriver/ENIGMA
c26483bfeb9e035b7ab5f56998d17155aece584f
[ "BSD-3-Clause" ]
null
null
null
enigmatoolbox/vtk_interface/pipeline.py
saratheriver/ENIGMA
c26483bfeb9e035b7ab5f56998d17155aece584f
[ "BSD-3-Clause" ]
1
2020-12-14T18:34:40.000Z
2020-12-14T18:34:40.000Z
"""Pipeline for VTK filters.""" # Author: Oualid Benkarim <oualid.benkarim@mcgill.ca> # License: BSD 3 clause from .decorators import wrap_input from .wrappers.algorithm import BSAlgorithm from .wrappers.data_object import BSDataObject # From https://vtk.org/Wiki/VTK/Tutorials/New_Pipeline # Outputs are referred t...
34.571014
78
0.599061
2cd7804bde5d27e973c18782719ff7eb3549cac9
1,271
py
Python
test/functional/p2p-mempool.py
BullCoin-Project/BullCoin
e01c79c13d27312a64ca5943a5cbd93cfbc18482
[ "MIT" ]
null
null
null
test/functional/p2p-mempool.py
BullCoin-Project/BullCoin
e01c79c13d27312a64ca5943a5cbd93cfbc18482
[ "MIT" ]
null
null
null
test/functional/p2p-mempool.py
BullCoin-Project/BullCoin
e01c79c13d27312a64ca5943a5cbd93cfbc18482
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017 The Bull Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test p2p mempool message. Test that nodes are disconnect...
32.589744
75
0.707317