hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a57e753c206bf7a368f77b80147050cdf52158cf
24,505
py
Python
bitmex_api.py
SpiralDevelopment/Bitmex-to-Telegram
88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4
[ "MIT" ]
2
2021-09-17T09:23:58.000Z
2021-10-03T17:02:46.000Z
bitmex_api.py
SpiralDevelopment/Bitmex-to-Telegram
88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4
[ "MIT" ]
null
null
null
bitmex_api.py
SpiralDevelopment/Bitmex-to-Telegram
88cc8cdba9abb7fdd2eb99dc714cff61c3d5dcb4
[ "MIT" ]
2
2020-08-19T09:07:26.000Z
2021-11-11T09:41:47.000Z
#! /usr/bin/env python3 """ This is the bitmex REST API python call. Official documentation can be found at 'https://www.bitmex.com/api/explorer/' """ import hmac import hashlib import requests import time import sys from urllib.parse import urlencode REAL_BASE = 'https://www.bitmex.com/api/v1' TEST_BASE = 'https://t...
26.264737
108
0.520792
a82967e0311902f9d04dc4b67865ecb1e122ce02
1,112
py
Python
src/solutions/part2/q226_major_elem_ii.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part2/q226_major_elem_ii.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part2/q226_major_elem_ii.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
from src.base.solution import Solution from src.tests.part2.q226_test_major_elem_ii import MajorElemIiTestCases class MajorElemIi(Solution): def run_test(self, input): return self.majorityElement(input) def gen_test_cases(self): return MajorElemIiTestCases() def verify_output(self, test_...
25.272727
79
0.533273
b11668ac3432b58bc402ce2fb14f62bbc5ffb8f7
1,887
py
Python
src/RAKE/stoplists/NLTKStopList.py
kevinl95/wordsearchserverless
cfc3dc026d10db9d3d498ebc3b7ca40dc4894cf2
[ "MIT" ]
128
2016-05-07T09:32:25.000Z
2022-02-09T16:27:05.000Z
src/RAKE/stoplists/NLTKStopList.py
kevinl95/wordsearchserverless
cfc3dc026d10db9d3d498ebc3b7ca40dc4894cf2
[ "MIT" ]
40
2016-03-07T08:23:17.000Z
2021-12-01T22:57:16.000Z
venv/lib/python3.5/site-packages/RAKE/stoplists/NLTKStopList.py
arju88nair/projectCulminate
54f0f085dc228e4b5aac287b7f47bfd60010d086
[ "Apache-2.0" ]
51
2016-04-07T06:23:06.000Z
2021-07-17T20:16:37.000Z
wordlist = [ 'a', 'about', 'above', 'after', 'again', 'against', "ain't", 'all', 'am', 'an', 'and', 'any', 'are', 'aren', 'as', 'at', 'be', 'because', 'been', 'before', 'being', 'below', 'between', 'both', 'but', 'by...
11.79375
19
0.334923
19df55ed47d763b9dbb43d47358432dae3f7178d
357
py
Python
cash/admin.py
essanpupil/moneytracker
506424ff287d4c093430e93169fedb7ee7da34f7
[ "MIT" ]
null
null
null
cash/admin.py
essanpupil/moneytracker
506424ff287d4c093430e93169fedb7ee7da34f7
[ "MIT" ]
null
null
null
cash/admin.py
essanpupil/moneytracker
506424ff287d4c093430e93169fedb7ee7da34f7
[ "MIT" ]
null
null
null
from django.contrib import admin from cash.models import Activity, Saving class ActivityAdmin(admin.ModelAdmin): list_display = [field.name for field in Activity._meta.get_fields()] admin.site.register(Activity, ActivityAdmin) class SavingAdmin(admin.ModelAdmin): list_display = ["name", "balance"] admi...
19.833333
72
0.770308
82312e4f5ef91626b3626188996d581a7d21de46
343
py
Python
social/migrations/0002_auto_20201030_1905.py
TonyLuque/demo_webempresarial
f7a5d50f75257d58d1daf22c24b4fc7ea85c56ae
[ "MIT" ]
null
null
null
social/migrations/0002_auto_20201030_1905.py
TonyLuque/demo_webempresarial
f7a5d50f75257d58d1daf22c24b4fc7ea85c56ae
[ "MIT" ]
null
null
null
social/migrations/0002_auto_20201030_1905.py
TonyLuque/demo_webempresarial
f7a5d50f75257d58d1daf22c24b4fc7ea85c56ae
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-30 19:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('social', '0001_initial'), ] operations = [ migrations.RenameField( model_name='link', old_name='Key', new_name='...
18.052632
47
0.559767
6ded476872ab3484d20545f3945eccd2c75a0d01
2,779
py
Python
DriveBuddy.py
DhawalKhapre/RoadBuddy
034552c5ebb6594e1b2b1f39bd1373ee84645c23
[ "MIT" ]
1
2022-01-11T15:53:21.000Z
2022-01-11T15:53:21.000Z
DriveBuddy.py
DhawalKhapre/RoadBuddy
034552c5ebb6594e1b2b1f39bd1373ee84645c23
[ "MIT" ]
null
null
null
DriveBuddy.py
DhawalKhapre/RoadBuddy
034552c5ebb6594e1b2b1f39bd1373ee84645c23
[ "MIT" ]
1
2021-02-09T04:07:48.000Z
2021-02-09T04:07:48.000Z
import cv2 import os from keras.models import load_model import numpy as np from pygame import mixer mixer.init() sound = mixer.Sound('alarm.wav') face = cv2.CascadeClassifier('haar cascade files\haarcascade_frontalface_alt.xml') leye = cv2.CascadeClassifier('haar cascade files\haarcascade_lefteye_2splits.xml') reye ...
29.56383
95
0.599496
7ca7bed6ea8c4e6e075601b00e648780e1c7b83c
2,633
py
Python
addons/phone_validation/tools/phone_validation.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/phone_validation/tools/phone_validation.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/phone_validation/tools/phone_validation.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _ from odoo.exceptions import UserError import logging _logger = logging.getLogger(__name__) _phonenumbers_lib_warning = False try: import phonenumbers def phone_parse(number, country_code):...
39.893939
112
0.673376
97392f6cd4bd8f18d523b53670bd97812a4914e9
854
py
Python
code/ch5-viewmodels/viewmodels/packages/details_viewmodel.py
psychofarm/web-applications-with-fastapi-course
34b3b623889afe86e36b95b2f76f14dcd01ba571
[ "MIT" ]
1
2021-03-20T17:01:12.000Z
2021-03-20T17:01:12.000Z
code/ch5-viewmodels/viewmodels/packages/details_viewmodel.py
psychofarm/web-applications-with-fastapi-course
34b3b623889afe86e36b95b2f76f14dcd01ba571
[ "MIT" ]
null
null
null
code/ch5-viewmodels/viewmodels/packages/details_viewmodel.py
psychofarm/web-applications-with-fastapi-course
34b3b623889afe86e36b95b2f76f14dcd01ba571
[ "MIT" ]
null
null
null
import datetime from typing import List, Optional from starlette.requests import Request from data.release import Release from services import package_service, user_service from viewmodels.shared.viewmodel import ViewModelBase class DetailsViewModel(ViewModelBase): def __init__(self, package_name: str, request:...
31.62963
90
0.738876
53ba4523a0210929f7e001e7a3e32c7ad76f1fad
11,333
py
Python
iis/dists.py
perrette/iis
05f09c2580da5a8f693cf745aaaaf21ed8bc73ae
[ "MIT" ]
1
2015-04-25T11:13:55.000Z
2015-04-25T11:13:55.000Z
iis/dists.py
perrette/iis
05f09c2580da5a8f693cf745aaaaf21ed8bc73ae
[ "MIT" ]
null
null
null
iis/dists.py
perrette/iis
05f09c2580da5a8f693cf745aaaaf21ed8bc73ae
[ "MIT" ]
null
null
null
""" Helper to define distributions classes """ import copy import logging import numpy as np from scipy.stats import norm, uniform, lognorm, multivariate_normal from scipy.stats.kde import gaussian_kde # estimate kernel density distribution #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #+++++++++++++...
33.62908
136
0.584576
5d48fe1617417783c66084900f5db7ea88204b91
1,464
py
Python
samitizer/subtitle.py
theeluwin/samitizer
955c3295a2f8922067286e9f80f086aa935512d6
[ "MIT" ]
6
2016-10-18T11:02:29.000Z
2021-05-05T09:00:26.000Z
samitizer/subtitle.py
theeluwin/samitizer
955c3295a2f8922067286e9f80f086aa935512d6
[ "MIT" ]
null
null
null
samitizer/subtitle.py
theeluwin/samitizer
955c3295a2f8922067286e9f80f086aa935512d6
[ "MIT" ]
1
2017-10-09T09:26:40.000Z
2017-10-09T09:26:40.000Z
# -*- coding: utf-8 -*- from .const import STAMP_PADDING from .const import CONVERT_TARGETS class Subtitle: def __init__(self, lang2content, start_stamp, end_stamp=STAMP_PADDING): self.lang2content = lang2content self.start_stamp = start_stamp self.end_stamp = end_stamp def has_lang...
29.28
95
0.599044
ed149b5f3cc2d4ecb2d48fec40fcc1cca8dcae0f
867
py
Python
pyMMF/functions.py
vongostev/pyMMF
faaa965aac2a1ef07dc762dfbcd841e0764be3b1
[ "MIT" ]
5
2021-08-08T12:24:36.000Z
2021-10-30T07:37:52.000Z
pyMMF/functions.py
vongostev/pyMMF
faaa965aac2a1ef07dc762dfbcd841e0764be3b1
[ "MIT" ]
null
null
null
pyMMF/functions.py
vongostev/pyMMF
faaa965aac2a1ef07dc762dfbcd841e0764be3b1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Feb 4 12:02:57 2019 @author: Sébastien M. Popoff """ import numpy as np import logging logger = logging.getLogger(__name__) def cart2pol(X, Y): ''' Returns the angular and radial matrices (polar coordinates) correspondng to the input c...
22.230769
121
0.588235
32e5996218a52ab2755891216489c08ee9753bdc
469
py
Python
src/mavelp/data_tool.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
null
null
null
src/mavelp/data_tool.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
1
2020-12-11T19:18:17.000Z
2020-12-15T02:59:14.000Z
src/mavelp/data_tool.py
nanoMFG/VELP
08225e863a9e9811fcd9e09cd32abc97719fbb7b
[ "MIT" ]
1
2021-03-16T02:04:12.000Z
2021-03-16T02:04:12.000Z
import os, sys import numpy as np global All_material def read_data_global(path='./data/data.dat'): cnt = 0 #print(path) data = [] with open(path, 'r') as f: #file = f.read().split('\n') All_material = f.readline().split('\t')[:-1] for line in f: data.append(...
20.391304
64
0.528785
442b41556deafa16205eabb86025a7ce5afe054c
477
py
Python
source.py
lasupernova/Random-Apps
488b187ae6a4f32d9f6c2bbfdfd4718150863f36
[ "MIT" ]
null
null
null
source.py
lasupernova/Random-Apps
488b187ae6a4f32d9f6c2bbfdfd4718150863f36
[ "MIT" ]
null
null
null
source.py
lasupernova/Random-Apps
488b187ae6a4f32d9f6c2bbfdfd4718150863f36
[ "MIT" ]
null
null
null
import mysql.connector con = mysql.connector.connect( user = "ardit700_student", password = "ardit700_student", host = "108.167.140.122", database = "ardit700_pm1database" ) cursor = con.cursor() print(cursor) # word=input("Enter the word: ") # query = cursor.execute("SELECT Definition FROM Dictionary WHERE Expressi...
22.714286
92
0.685535
2b0fe047fc960f295e62a6e402c4c32293ac8c7d
538
py
Python
src/main/tools/flocking_behavior/rules/separation.py
lukaszmichalskii/Flocking-Simulation
eec7ad7c1b6a8c593367e11b68f9fac414f8efe3
[ "MIT" ]
null
null
null
src/main/tools/flocking_behavior/rules/separation.py
lukaszmichalskii/Flocking-Simulation
eec7ad7c1b6a8c593367e11b68f9fac414f8efe3
[ "MIT" ]
null
null
null
src/main/tools/flocking_behavior/rules/separation.py
lukaszmichalskii/Flocking-Simulation
eec7ad7c1b6a8c593367e11b68f9fac414f8efe3
[ "MIT" ]
null
null
null
import pygame from src.main.boid.boid import Boid from src.main.tools.flocking_behavior.look_around import look_around from src.main.tools.flocking_behavior.rules.customize_force import customize_force from src.main.tools.vector import Vector def separation(boid: Boid, flock: pygame.sprite.Group, limitations: dict, ...
41.384615
110
0.817844
d3e46f75f20b7bb97ae41a027af7623425e337ec
2,275
py
Python
tests/test_numpy_codecs.py
ingted/pandasnet
3fd9195007ba66e701383f8f655dcfcc1d53ee56
[ "MIT" ]
null
null
null
tests/test_numpy_codecs.py
ingted/pandasnet
3fd9195007ba66e701383f8f655dcfcc1d53ee56
[ "MIT" ]
null
null
null
tests/test_numpy_codecs.py
ingted/pandasnet
3fd9195007ba66e701383f8f655dcfcc1d53ee56
[ "MIT" ]
null
null
null
import pandasnet import numpy as np import pytest from LibForTests import NumpyNet as npnet @pytest.mark.skip(reason="pythonnet do not allow override") def test_int8_codec(): x = np.array([1, 2, 3], dtype='int8') y = npnet.OneDimensionInt8Array(x) __check(x, y) @pytest.mark.skip(reason="pythonnet do not...
29.545455
59
0.677363
b89ae4feefde7ce7791699fbbaf98be48c9fbe02
3,563
py
Python
src/data_schema/feature_names.py
devership16/INF553-YelpProject
ff0fe0b30c60e9baa2fb9422745973280069df22
[ "MIT" ]
1
2019-05-27T01:57:53.000Z
2019-05-27T01:57:53.000Z
src/data_schema/feature_names.py
devership16/INF553-YelpProject
ff0fe0b30c60e9baa2fb9422745973280069df22
[ "MIT" ]
1
2018-09-27T19:32:45.000Z
2018-09-27T19:32:45.000Z
src/data_schema/feature_names.py
devership16/INF553-YelpProject
ff0fe0b30c60e9baa2fb9422745973280069df22
[ "MIT" ]
3
2019-01-03T16:01:02.000Z
2019-03-05T19:19:31.000Z
""" Author: Ajay Anand """ class FeatureNames: COL_BUSINESS_ID = 'business_id' # String COL_NAME = 'name' # String COL_NEIGHBORHOOD = "neighborhood" # String COL_ADDRESS = 'address' # String COL_CITY = 'city' # String COL_STATE = 'state' # String COL_ZIP = 'zip_code' # Integer - 5 digit ...
45.101266
79
0.747685
02c517cd1934a878e942f309d1910d5f5cb24289
440
py
Python
betting/migrations/0012_event_name.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
null
null
null
betting/migrations/0012_event_name.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
5
2020-06-06T00:19:41.000Z
2022-02-13T18:49:17.000Z
betting/migrations/0012_event_name.py
jrgparkinson/ouccc
36824cd944620b6e28795f43a24e17e648b1f0bb
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-07 20:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('betting', '0011_auto_20191107_2044'), ] operations = [ migrations.AddField( model_name='event', name='name', ...
22
73
0.6
d2672c4652450533cd0cfa994b884af68bfe8823
9,837
py
Python
fatf/utils/tests/test_tools.py
RafaelPo/fat-forensics
edd3c7e149c4534d76fe2241bc919afc5c3c4581
[ "BSD-3-Clause" ]
48
2019-09-12T04:54:48.000Z
2022-02-27T01:49:55.000Z
fatf/utils/tests/test_tools.py
RafaelPo/fat-forensics
edd3c7e149c4534d76fe2241bc919afc5c3c4581
[ "BSD-3-Clause" ]
4
2018-09-20T10:37:53.000Z
2018-09-26T23:57:48.000Z
fatf/utils/tests/test_tools.py
RafaelPo/fat-forensics
edd3c7e149c4534d76fe2241bc919afc5c3c4581
[ "BSD-3-Clause" ]
11
2019-09-17T13:39:43.000Z
2021-07-27T11:04:33.000Z
""" Tests package tools. """ # Author: Kacper Sokol <k.sokol@bristol.ac.uk> # License: new BSD import pytest import fatf.utils.tools as fut def test_at_least_verion(): """ Tests :func:`fatf.utils.tools.at_least_verion` function. """ # pylint: disable=too-many-locals,too-many-branches,too-many-statem...
45.123853
79
0.616651
4ac338f30a17da267bb8fe789e1b9fb486a3fe66
1,158
py
Python
elit/pretrained/coref.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
40
2017-02-27T20:16:44.000Z
2022-03-25T04:58:01.000Z
elit/pretrained/coref.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
12
2017-02-16T23:50:38.000Z
2022-01-19T21:29:59.000Z
elit/pretrained/coref.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
6
2017-05-05T08:02:18.000Z
2021-11-03T23:47:23.000Z
# ======================================================================== # Copyright 2020 Emory University # # 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/lice...
42.888889
86
0.689119
102d9019dbc96ef5f37b78d461f4ad352430b427
101
py
Python
spyre/testing/new.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
1
2022-03-27T07:47:19.000Z
2022-03-27T07:47:19.000Z
spyre/testing/new.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
null
null
null
spyre/testing/new.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
4
2019-11-08T22:39:04.000Z
2021-11-05T02:39:37.000Z
import thorlabs_apt as apt import time elements = apt.list_available_devices() print(elements)
20.2
40
0.782178
c5d0d3ac0d3d29e00672cd452d0e645af007032e
1,550
py
Python
test/ping.py
laffra/feynman
21d01b6fcc9ad2d1305c618dc9382dae766e45b7
[ "MIT" ]
7
2022-03-22T03:36:30.000Z
2022-03-31T15:39:47.000Z
test/ping.py
laffra/feynman
21d01b6fcc9ad2d1305c618dc9382dae766e45b7
[ "MIT" ]
null
null
null
test/ping.py
laffra/feynman
21d01b6fcc9ad2d1305c618dc9382dae766e45b7
[ "MIT" ]
null
null
null
import json import time import urllib.request import socket GEOLOCATION_SERVER = "geolocation-db.com/json" FAIL = 1000 def getDetails(location): return location["country_name"] def readUrl(url): return urllib.request.urlopen(f"https://{url}").read().decode() def callService(url): response = readUrl(ur...
25.409836
99
0.636129
7c18980a898c155fc00e23d9620baa5c276e895d
277
py
Python
models/__init__.py
victorneo/starlette-starter
f80e3fd1f1712b8e9ed8d7085e4e77ec5c0eb03e
[ "Apache-2.0" ]
null
null
null
models/__init__.py
victorneo/starlette-starter
f80e3fd1f1712b8e9ed8d7085e4e77ec5c0eb03e
[ "Apache-2.0" ]
3
2021-01-19T15:20:15.000Z
2021-06-02T01:40:05.000Z
models/__init__.py
victorneo/starlette-starter
f80e3fd1f1712b8e9ed8d7085e4e77ec5c0eb03e
[ "Apache-2.0" ]
1
2022-02-11T10:57:48.000Z
2022-02-11T10:57:48.000Z
from .meta import * from .models import * from settings import DATABASE_URL from sqlalchemy import create_engine from sqlalchemy_utils import database_exists, create_database, drop_database engine = create_engine(db_url) create_database(db_url) metadata.create_all(engine)
21.307692
76
0.837545
7de5a68fa7fd6a8471dbfab40e48532beeeac89d
64,907
py
Python
hail/python/test/hail/table/test_table.py
cseed/hail
b8a60c328f2c9989147a364eb3643e21d3961d7e
[ "MIT" ]
null
null
null
hail/python/test/hail/table/test_table.py
cseed/hail
b8a60c328f2c9989147a364eb3643e21d3961d7e
[ "MIT" ]
2
2017-10-02T21:02:41.000Z
2017-10-20T18:20:54.000Z
hail/python/test/hail/table/test_table.py
ovenfoot/hail
425e779c0bde619bcf96838c09cc834de3c182fd
[ "MIT" ]
1
2017-11-23T03:39:54.000Z
2017-11-23T03:39:54.000Z
import unittest import pandas as pd import pyspark.sql import pytest import random import hail as hl import hail.expr.aggregators as agg from hail.utils import new_temp_file from hail.utils.java import Env from ..helpers import * from test.hail.matrixtable.test_file_formats import create_all_values_datasets setUpMod...
41.794591
158
0.551928
fd6879b2c5f3f72164f4eff7dce6e8ff279a7107
6,116
py
Python
students/views.py
muhummadPatel/raspied
ab5362484ca5f4f5ceff9f537d5ed9dcbf06b4a8
[ "MIT" ]
1
2016-11-17T09:15:42.000Z
2016-11-17T09:15:42.000Z
students/views.py
muhummadPatel/raspied
ab5362484ca5f4f5ceff9f537d5ed9dcbf06b4a8
[ "MIT" ]
null
null
null
students/views.py
muhummadPatel/raspied
ab5362484ca5f4f5ceff9f537d5ed9dcbf06b4a8
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from dateutil import parser as timestring_parser from django.conf import settings from django.contrib.auth import authenticate, get_user_model, login from django.contrib.auth.decorators import login_required from django.contrib.auth.views import login as default_login_view from ...
37.292683
119
0.708633
4abcccbb69c1fd9935037b4f2dd0afbd4bfda312
3,662
py
Python
zcrmsdk/src/com/zoho/crm/api/attachments/success_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/attachments/success_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/attachments/success_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Choice, Constants from zcrmsdk.src.com.zoho.crm.api.attachments.action_response import ActionResponse except Exception: from ..exception import SDKException from ..util import Choice, Constants from ...
23.934641
100
0.714364
dedaf29b5e68835042e9e51129006160bdeaa88c
3,903
py
Python
shop/migrations/0001_initial.py
marcopuccio/mpbb
18e303308865493886af7667c79720eee766641c
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
marcopuccio/mpbb
18e303308865493886af7667c79720eee766641c
[ "MIT" ]
null
null
null
shop/migrations/0001_initial.py
marcopuccio/mpbb
18e303308865493886af7667c79720eee766641c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-05 04:18 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
45.917647
226
0.577504
e86c6015e4270e19b795b824698c1f6c84f5353c
2,261
py
Python
tests/api/test_samples_api.py
virtool/virtool-job
db62f2c84e6e3817eaf78ecd03d5f9bbfcb7fc90
[ "MIT" ]
null
null
null
tests/api/test_samples_api.py
virtool/virtool-job
db62f2c84e6e3817eaf78ecd03d5f9bbfcb7fc90
[ "MIT" ]
1
2020-09-02T20:18:45.000Z
2020-09-02T20:18:45.000Z
tests/api/test_samples_api.py
virtool/virtool-job
db62f2c84e6e3817eaf78ecd03d5f9bbfcb7fc90
[ "MIT" ]
null
null
null
import gzip from pathlib import Path import pytest from tests.api.mocks.mock_sample_routes import TEST_SAMPLE_ID, TEST_SAMPLE from virtool_workflow.api.errors import AlreadyFinalized from virtool_workflow.api.samples import SampleProvider from virtool_workflow.data_model import Sample @pytest.fixture def sample_api...
24.846154
88
0.691729
0be8b0335976231e5630673142d6e42e72a2884c
870
py
Python
tests/random_test.py
trevorWieland/maxcutpy
4d0ea07261073a77b81f7f3c0b6e6c405a7951fc
[ "MIT" ]
null
null
null
tests/random_test.py
trevorWieland/maxcutpy
4d0ea07261073a77b81f7f3c0b6e6c405a7951fc
[ "MIT" ]
null
null
null
tests/random_test.py
trevorWieland/maxcutpy
4d0ea07261073a77b81f7f3c0b6e6c405a7951fc
[ "MIT" ]
null
null
null
from maxcutpy import RandomMaxCut import numpy as np def test_random_initialization(): matrix = np.array([[0,1,1],[1,0,5],[1,5,0]]) random_cut = RandomMaxCut(seed=12345, matrix=matrix) assert random_cut.batches_split == False assert random_cut.best_cut_vector is None assert random_cut.best_cut_sco...
33.461538
68
0.717241
991cd6fb88e461031ebb2e0d4d11d24f9f47cb70
4,008
py
Python
tests/tools/burpsuite/test_parser.py
owtf/ptp
b43e581d7646330810f526432c689c3d88995df9
[ "BSD-3-Clause" ]
23
2015-03-22T09:18:35.000Z
2022-03-10T23:28:13.000Z
tests/tools/burpsuite/test_parser.py
owtf/ptp
b43e581d7646330810f526432c689c3d88995df9
[ "BSD-3-Clause" ]
22
2015-07-12T12:23:40.000Z
2017-02-26T12:39:48.000Z
tests/tools/burpsuite/test_parser.py
owtf/ptp
b43e581d7646330810f526432c689c3d88995df9
[ "BSD-3-Clause" ]
14
2015-06-03T19:16:22.000Z
2022-03-10T23:28:15.000Z
# -*- coding: UTF-8 -*- import mock import unittest from lxml import etree from hamcrest import assert_that, has_entry, equal_to from ptp.libptp.exceptions import NotSupportedVersionError from ptp.tools.burpsuite.parser import BurpXMLParser def lxml_etree_parse(string): return etree.fromstring(string).getroottr...
48.878049
120
0.718313
2c29892e4d7c95f57f0b966a2ccda434d2ef5fb8
772
py
Python
lap/distributions/fedora.py
kenkeiras/lxc-application-packages
29f11b3185e5078e41cb433c647bd87d1537490f
[ "MIT" ]
1
2020-02-16T15:02:18.000Z
2020-02-16T15:02:18.000Z
lap/distributions/fedora.py
kenkeiras/lxc-application-packages
29f11b3185e5078e41cb433c647bd87d1537490f
[ "MIT" ]
6
2016-11-15T22:07:19.000Z
2016-11-20T22:54:08.000Z
lap/distributions/fedora.py
kenkeiras/lxc-application-packages
29f11b3185e5078e41cb433c647bd87d1537490f
[ "MIT" ]
null
null
null
# coding: utf-8 import lxc from .redhat_derived import RedHatDerived from .package_managers.dnf import DNFRepositoryMetalink class Fedora24(RedHatDerived): def __init__(self): RedHatDerived.__init__(self, repositories=[ DNFRepositoryMetalink('https://mirrors.fedoraproject.org/metalink', ...
30.88
82
0.55829
d202cfff7e0dc7035a5376c110739af11d7113ef
13,775
py
Python
golem/core/utils.py
Neerajakshulu/golem
06e685d56f51df82a8f80acd1f2601ca16fb4fc0
[ "MIT" ]
null
null
null
golem/core/utils.py
Neerajakshulu/golem
06e685d56f51df82a8f80acd1f2601ca16fb4fc0
[ "MIT" ]
null
null
null
golem/core/utils.py
Neerajakshulu/golem
06e685d56f51df82a8f80acd1f2601ca16fb4fc0
[ "MIT" ]
null
null
null
"""Helper general purpose functions""" import importlib import shutil import json import os import uuid import traceback import glob import re from datetime import datetime from distutils.version import StrictVersion from golem.core import settings_manager from golem.core import file_manager def get_test_cases(works...
36.538462
98
0.643122
0129fb6bb8e9006bd83a99ac2ba344c10f6d7b41
19,466
py
Python
thing/tasks/apitask.py
Gillingham/evething
e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4
[ "BSD-2-Clause" ]
33
2015-02-18T00:07:57.000Z
2020-06-09T15:19:05.000Z
thing/tasks/apitask.py
Gillingham/evething
e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4
[ "BSD-2-Clause" ]
19
2015-03-09T19:51:43.000Z
2019-10-19T12:04:23.000Z
thing/tasks/apitask.py
Gillingham/evething
e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4
[ "BSD-2-Clause" ]
20
2015-02-20T17:53:17.000Z
2022-02-11T06:29:11.000Z
# ------------------------------------------------------------------------------ # Copyright (c) 2010-2013, EVEthing team # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of...
38.394477
188
0.548238
c2938b9f6fc082d4e2236a5ba20f3bcbbd4f37d1
8,930
py
Python
site-packages/sklearn/tests/test_common.py
linusg/Pyto
eab3c3e093a8cace53d5b9425d1af2f535d456ee
[ "MIT" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
site-packages/sklearn/tests/test_common.py
linusg/Pyto
eab3c3e093a8cace53d5b9425d1af2f535d456ee
[ "MIT" ]
1
2020-04-25T20:36:07.000Z
2020-04-25T20:36:07.000Z
site-packages/sklearn/tests/test_common.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
null
null
null
""" General tests for all estimators in sklearn. """ # Authors: Andreas Mueller <amueller@ais.uni-bonn.de> # Gael Varoquaux gael.varoquaux@normalesup.org # License: BSD 3 clause import os import warnings import sys import re import pkgutil from inspect import isgenerator from functools import partial import...
38
79
0.647368
8dae77644d0802130106ef1f0778f68f0409a1e0
98
py
Python
maskmypy/__init__.py
TheTinHat/MaskMyPy
3d22e1a8a576cfcd2f5cf9ddcb8ef2a2ab1780a3
[ "MIT" ]
null
null
null
maskmypy/__init__.py
TheTinHat/MaskMyPy
3d22e1a8a576cfcd2f5cf9ddcb8ef2a2ab1780a3
[ "MIT" ]
null
null
null
maskmypy/__init__.py
TheTinHat/MaskMyPy
3d22e1a8a576cfcd2f5cf9ddcb8ef2a2ab1780a3
[ "MIT" ]
null
null
null
from .donut import Donut, Donut_MaxK, Donut_Multiply from .street import Street name = 'maskmypy'
24.5
52
0.795918
86297a0b24a4b6b7e9c6962be7607b760412411a
522
py
Python
venv/Lib/site-packages/numpy/typing/tests/data/fail/arrayprint.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/numpy/typing/tests/data/fail/arrayprint.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/numpy/typing/tests/data/fail/arrayprint.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
from typing import Callable, Any import numpy as np AR: np.ndarray func1: Callable[[Any], str] func2: Callable[[np.integer[Any]], str] np.array2string(AR, style=None) # E: Unexpected keyword argument np.array2string(AR, legacy="1.14") # E: incompatible type np.array2string(AR, sign="*") # E: incompatible type np.a...
37.285714
72
0.727969
48e58f582e5b19a6ca6b326616362d783382c802
4,428
py
Python
varinf_stoch.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
varinf_stoch.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
varinf_stoch.py
cassianobecker/msbm
6ce22f93f63071dc3ca722d499db376ea678eb23
[ "MIT" ]
null
null
null
import pdb #import updates_msbm_vi as msbm import updates_msbm_stoch as msbm import updates_msbm2_vi as msbm2 from util import * import sys # ################### MAIN INFERENCE PROGRAM ##################### def get_default_parameters(par): def sigmoid(x): return 1 / (1 + np.exp(-x)) if 'kappas' not ...
32.558824
122
0.508356
ab5fe50b9feb29d0941d996ad1d085d60838e920
626
py
Python
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
send.py
apallath/ClipCross
f174d103c581541cb35f7296ff362d944020d72b
[ "MIT" ]
null
null
null
from socket import * from win32clipboard import * import sys OpenClipboard() try: text=GetClipboardData(CF_TEXT) except: print "Error in getting clipboard data!" sys.exit() finally: CloseClipboard() print "ClipCross Alpha" host = raw_input("Enter IP address of machine you want to connect...
20.193548
73
0.653355
e4ae0636089a6b7c091122969b45dc2a266085d6
7,113
py
Python
rhasspy/stt_train.py
frkos/rhasspy
540b5b97ff6230284d4bdd7f7c06cbcbe8efab6f
[ "MIT" ]
null
null
null
rhasspy/stt_train.py
frkos/rhasspy
540b5b97ff6230284d4bdd7f7c06cbcbe8efab6f
[ "MIT" ]
null
null
null
rhasspy/stt_train.py
frkos/rhasspy
540b5b97ff6230284d4bdd7f7c06cbcbe8efab6f
[ "MIT" ]
null
null
null
"""Training for speech to text systems.""" import json import os import subprocess from collections import defaultdict from typing import Any, Dict, List, Optional, Type import pywrapfst as fst from rhasspy.actor import RhasspyActor from rhasspy.events import (SpeechTrainingComplete, SpeechTrainingFailed, ...
35.924242
86
0.569661
a830bc3b7bf3d251b389ce79f8504062253e291f
1,420
py
Python
dota2MemComm/dota2comm.py
Keithenneu/dota2comm
d75dae46d0566f53a482950da2536d12b6ba8890
[ "MIT" ]
13
2017-01-12T05:32:14.000Z
2020-04-07T05:30:03.000Z
dota2comm.py
lenLRX/Dota2DQN
88d27155171df8ddb25eb48faaac2a30a70520ea
[ "MIT" ]
7
2017-01-20T12:30:43.000Z
2017-02-02T17:18:34.000Z
dota2comm.py
lenLRX/Dota2DQN
88d27155171df8ddb25eb48faaac2a30a70520ea
[ "MIT" ]
4
2017-01-22T15:14:46.000Z
2019-12-19T22:14:03.000Z
import sys from ctypes import cdll, c_char_p, c_void_p, cast class Dota2Comm: def __init__(self, name): self.__dota2comm = cdll.LoadLibrary("dota2comm.dll") self.name = name self.__name = name.encode() self.__receiveMessage = self.__dota2comm.receiveMessage self.__...
31.555556
73
0.617606
23308622277cfc156bf04b46705e436350690031
1,671
py
Python
launch_testing/test/launch_testing/legacy/test_env_passing.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
67
2015-06-12T21:17:24.000Z
2022-03-30T07:19:52.000Z
launch_testing/test/launch_testing/legacy/test_env_passing.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
516
2015-03-20T02:22:59.000Z
2022-03-30T12:33:33.000Z
launch_testing/test/launch_testing/legacy/test_env_passing.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
101
2016-01-12T16:56:54.000Z
2022-03-09T12:35:37.000Z
# Copyright 2016 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.528302
79
0.664273
337c6e28e6eb24b9572099f06bdf1488c3326c5e
3,699
py
Python
samples/logonsessions.py
RoccoMatano/ctwin32
49160e183827166be35388f7ed09870ae67b7a2d
[ "MIT" ]
1
2022-02-27T10:07:59.000Z
2022-02-27T10:07:59.000Z
samples/logonsessions.py
RoccoMatano/ctwin32
49160e183827166be35388f7ed09870ae67b7a2d
[ "MIT" ]
1
2021-10-20T05:05:59.000Z
2021-10-20T05:05:59.000Z
samples/logonsessions.py
RoccoMatano/ctwin32
49160e183827166be35388f7ed09870ae67b7a2d
[ "MIT" ]
null
null
null
################################################################################ # # Copyright 2021-2022 Rocco Matano # # 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, in...
40.648352
83
0.609895
b45c48cd9c73e24213ed33e3846513d1983ccf80
50
py
Python
django-simple-captcha/captcha/tests/__init__.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/__init__.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
django-simple-captcha/captcha/tests/__init__.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
null
null
null
from .tests import CaptchaCase, trivial_challenge
25
49
0.86
5d53bd4b44bb5bfb6e2ee9e4f4e30cf721ea7514
244
py
Python
tests/test_app/managers.py
cr0mbly/django-elasticsearch-model-binder
59f3910e994bf4cb44df53adf8ea2b89b17faf9f
[ "MIT" ]
2
2020-03-07T20:21:18.000Z
2020-11-06T22:36:57.000Z
tests/test_app/managers.py
cr0mbly/django-elasticsearch-model-binder
59f3910e994bf4cb44df53adf8ea2b89b17faf9f
[ "MIT" ]
null
null
null
tests/test_app/managers.py
cr0mbly/django-elasticsearch-model-binder
59f3910e994bf4cb44df53adf8ea2b89b17faf9f
[ "MIT" ]
null
null
null
from django.db.models import QuerySet from django_elasticsearch_model_binder.mixins import ESQuerySetMixin class ESEnabledQuerySet(ESQuerySetMixin, QuerySet): """ Stub manager with Elasticsearch enhanced operations. """ pass
22.181818
68
0.782787
b370ced844893b7adfa80712517d324dae4e44da
4,412
py
Python
stats/count_diffexp_general.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
339
2015-01-04T13:23:04.000Z
2022-03-25T23:09:09.000Z
stats/count_diffexp_general.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
39
2015-01-14T21:31:09.000Z
2021-11-18T15:15:33.000Z
stats/count_diffexp_general.py
bgruening/bcbb
dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027
[ "MIT" ]
176
2015-01-10T17:40:44.000Z
2022-03-25T05:14:21.000Z
#!/usr/bin/env python """Calculate differentially expressed genes using EdgeR from bioconductor. http://bioconductor.org/packages/2.5/bioc/html/edgeR.html Usage: count_diffexp.py <count_file> """ import os import sys import csv import collections import numpy import rpy2.robjects as robjects import rpy2.robjects...
36.46281
80
0.635539
5f19c312f50b97bf4c8afdf89085033dd3813c25
15,550
py
Python
src/fattoush/config/config_group.py
alistair-broomhead/fattoush
482000c2e09661e10d5846dbef35c3621897f3c3
[ "MIT" ]
null
null
null
src/fattoush/config/config_group.py
alistair-broomhead/fattoush
482000c2e09661e10d5846dbef35c3621897f3c3
[ "MIT" ]
4
2016-11-02T10:18:24.000Z
2019-02-14T16:18:48.000Z
src/fattoush/config/config_group.py
alistair-broomhead/fattoush
482000c2e09661e10d5846dbef35c3621897f3c3
[ "MIT" ]
null
null
null
""" Functions and classes for taking commandline arguments and forming an object which will give you a set of FattoushConfig objects, each of which contains all the information necessary to run lettuce against a specified webdriver configuration, whither in saucelabs or local. """ import copy import json import multipr...
34.632517
79
0.460514
f28a4b2a6969890b6605507b492ffa11352ba347
32,128
py
Python
Lib/test/test_cmd_line.py
haojunyu/cpython
a8ddf85a84364d2c660e6670a7e06621993d1fdc
[ "PSF-2.0" ]
null
null
null
Lib/test/test_cmd_line.py
haojunyu/cpython
a8ddf85a84364d2c660e6670a7e06621993d1fdc
[ "PSF-2.0" ]
null
null
null
Lib/test/test_cmd_line.py
haojunyu/cpython
a8ddf85a84364d2c660e6670a7e06621993d1fdc
[ "PSF-2.0" ]
null
null
null
# Tests invocation of the interpreter with various command line arguments # Most tests are executed with environment variables ignored # See test_cmd_line_script.py for testing of script execution import os import subprocess import sys import sysconfig import tempfile import unittest from test import support from test...
40.979592
99
0.563216
121307385d7eebc0e50827fba8c5097e2ec624bc
27,334
py
Python
python/tvm/relay/frontend/qnn_torch.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/relay/frontend/qnn_torch.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
python/tvm/relay/frontend/qnn_torch.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
2
2020-07-12T11:34:26.000Z
2020-10-09T02:57:06.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.04359
99
0.63507
e9ae7827ad7a9c9e3740a7fe57d8a797f73bea6f
163
py
Python
examples/language/python.py
fiugd/welcome
1652bbf9f2829a3a4dfa689f9662d3cfeb4487e8
[ "MIT" ]
2
2021-06-21T17:35:12.000Z
2021-06-22T07:15:30.000Z
languages/python.py
fiugd/plugins
0440cd7c5d07a252ef4c4f08e20125512be5197c
[ "MIT" ]
2
2021-11-20T19:17:22.000Z
2021-12-22T21:49:14.000Z
examples/language/python.py
fiugd/welcome
1652bbf9f2829a3a4dfa689f9662d3cfeb4487e8
[ "MIT" ]
2
2021-02-02T00:53:07.000Z
2021-06-21T17:35:26.000Z
def fib(): a, b = 0, 1 while True: yield a a, b = b, a + b for index, fibonacci_number in zip(range(10), fib()): print('{f:3}'.format(f=fibonacci_number))
18.111111
53
0.607362
781fa823f59e9bba404c57e70e218332afff100e
1,434
py
Python
products/migrations/0001_initial.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
4
2022-01-04T09:56:19.000Z
2022-01-20T12:14:16.000Z
products/migrations/0001_initial.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
null
null
null
products/migrations/0001_initial.py
deepindo/DoPython
d80b85b3b24566de6ece9f452564e4827e705959
[ "MIT" ]
1
2022-01-20T09:40:16.000Z
2022-01-20T09:40:16.000Z
# Generated by Django 4.0 on 2021-12-29 08:04 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product', fields=[ ...
40.971429
162
0.586471
e67c90523d75e084738715ca069a1154f32c9b88
3,932
py
Python
hiMoon/__main__.py
sadams2013/hiMoon
3ccfd61cfb5941d3e582fee359700af1ddacb1b3
[ "Apache-2.0" ]
4
2019-08-25T08:04:11.000Z
2022-02-02T01:08:16.000Z
hiMoon/__main__.py
sadams2013/hiMoon
3ccfd61cfb5941d3e582fee359700af1ddacb1b3
[ "Apache-2.0" ]
null
null
null
hiMoon/__main__.py
sadams2013/hiMoon
3ccfd61cfb5941d3e582fee359700af1ddacb1b3
[ "Apache-2.0" ]
2
2019-03-15T15:28:02.000Z
2019-05-21T14:09:09.000Z
# Copyright 2021 Solomon M. Adams # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or ag...
41.829787
143
0.622838
8c3224ad53c79ee22e9f63086ffa8af40a377105
2,801
py
Python
python/qpid_dispatch_internal/router/hello.py
jdanekrh/qpid-dispatch-fuzz
e7bcfea402852524ad4ef3c50795fb7cbecebf67
[ "Apache-2.0" ]
null
null
null
python/qpid_dispatch_internal/router/hello.py
jdanekrh/qpid-dispatch-fuzz
e7bcfea402852524ad4ef3c50795fb7cbecebf67
[ "Apache-2.0" ]
null
null
null
python/qpid_dispatch_internal/router/hello.py
jdanekrh/qpid-dispatch-fuzz
e7bcfea402852524ad4ef3c50795fb7cbecebf67
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.014286
116
0.659764
c3f657baa7a0c5ba40949093837f09a5936b4160
1,432
py
Python
bin/azure/mgmt/datalake/analytics/job/models/job_data_path.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
null
null
null
bin/azure/mgmt/datalake/analytics/job/models/job_data_path.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
null
null
null
bin/azure/mgmt/datalake/analytics/job/models/job_data_path.py
zdmc23/bash-lambda-layer
e762df0189cfb894dab2d96bae1655b8857d5efb
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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. # C...
31.822222
77
0.545391
8ea263b85762e56b7529dda414d958d20e7160cb
667
py
Python
tel/paramspec/patsearchdb.py
note/Toolkit
24a3cd8af155c91ffa8d2bbc33b732f1fc51943b
[ "BSL-1.0", "CC-BY-3.0", "Apache-2.0" ]
null
null
null
tel/paramspec/patsearchdb.py
note/Toolkit
24a3cd8af155c91ffa8d2bbc33b732f1fc51943b
[ "BSL-1.0", "CC-BY-3.0", "Apache-2.0" ]
null
null
null
tel/paramspec/patsearchdb.py
note/Toolkit
24a3cd8af155c91ffa8d2bbc33b732f1fc51943b
[ "BSL-1.0", "CC-BY-3.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import os def print_args(args): print(args[-1] + ' '+ '_'.join(args[:-1])) def main(argv): path = "%STANDARD/PATDB" # If directory does not exist, print random stuff if not os.path.exists(path): print("foo bar") return args = [] with open(pat...
23.821429
53
0.512744
d55a1626c70994138d79ea7c808888fbe7ba4189
1,833
py
Python
src/utils/notifications/notification_manager.py
mfjkri/cdc-helper
e9f8fd7fc80aebe911985d22c6ca46406ccd2a8a
[ "MIT" ]
7
2021-12-25T14:26:04.000Z
2022-01-23T05:26:53.000Z
src/utils/notifications/notification_manager.py
mfjkri/cdc-helper
e9f8fd7fc80aebe911985d22c6ca46406ccd2a8a
[ "MIT" ]
null
null
null
src/utils/notifications/notification_manager.py
mfjkri/cdc-helper
e9f8fd7fc80aebe911985d22c6ca46406ccd2a8a
[ "MIT" ]
null
null
null
from src.utils.notifications.mail import Mail from src.utils.notifications.telegram_bot import TelegramBot class NotificationManager: def __init__(self, log, mail_config:dict=None, telegram_config:dict=None): self.mail_server = False self.telegram_bot = False if mail_config and ma...
40.733333
95
0.644299
55ddc6af3653553b96be9309aa07d9cd9471fe2f
10,357
py
Python
tools/c7n_mailer/c7n_mailer/utils.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
tools/c7n_mailer/c7n_mailer/utils.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
tools/c7n_mailer/c7n_mailer/utils.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2017 Capital One Services, 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 agreed ...
37.661818
86
0.590518
aa79ebd6289101ecaf710490558d47f97ce2c6cd
1,570
py
Python
data-src/context-generator.py
jeclarke/pnda-streaming-join-demo
62dfce37a7e0e0a3f98aaf9ff86e7413e753b2c0
[ "Apache-2.0" ]
null
null
null
data-src/context-generator.py
jeclarke/pnda-streaming-join-demo
62dfce37a7e0e0a3f98aaf9ff86e7413e753b2c0
[ "Apache-2.0" ]
null
null
null
data-src/context-generator.py
jeclarke/pnda-streaming-join-demo
62dfce37a7e0e0a3f98aaf9ff86e7413e753b2c0
[ "Apache-2.0" ]
null
null
null
# # Name: context.py # Purpose: generate a context dataset # Author: PNDA team # # Created: 31/07/2017 # # # # Copyright (c) 2017 Cisco and/or its affiliates. # # This software is licensed to you under the terms of the Apache License, Version 2.0 (the "License"). # You may obtain a copy of the License a...
36.511628
112
0.680892
70275b5dd36f0867ff339d7c23141a54864e3451
9,786
py
Python
source/analysis/analysis_runner.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
null
null
null
source/analysis/analysis_runner.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
null
null
null
source/analysis/analysis_runner.py
marta18a/sleep_classifiers
75aaae37dafe752909cf56351911e246a4febb4d
[ "MIT" ]
null
null
null
import time from sklearn.neural_network import MLPClassifier from source import utils from source.analysis.classification.classifier_summary_builder import SleepWakeClassifierSummaryBuilder, \ ThreeClassClassifierSummaryBuilder from source.analysis.figures.curve_plot_builder import CurvePlotBuilder from source.an...
48.686567
137
0.709074
983bc26c80bd2df86e7e0ca158b1a7e03ecc4035
11,341
py
Python
utils/libcxx/compiler.py
CandyRoms/external_libcxx
c0d03d94a7b0b9f7734d0b989878c4ca152e82ff
[ "MIT" ]
1
2019-12-08T05:50:49.000Z
2019-12-08T05:50:49.000Z
utils/libcxx/compiler.py
CandyRoms/external_libcxx
c0d03d94a7b0b9f7734d0b989878c4ca152e82ff
[ "MIT" ]
null
null
null
utils/libcxx/compiler.py
CandyRoms/external_libcxx
c0d03d94a7b0b9f7734d0b989878c4ca152e82ff
[ "MIT" ]
null
null
null
#===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure # # This file is dual licensed under the MIT and the University of Illinois Open # Source Licenses. See LICENSE.TXT for details. # #===------------------------------------------------...
38.972509
79
0.563707
5060922cc0b68dc96455eb73545bf883d3e07dda
543
py
Python
store/migrations/0005_auto_20211028_2003.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
store/migrations/0005_auto_20211028_2003.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
store/migrations/0005_auto_20211028_2003.py
rafaellima47/django-ecommerce
2226bed457ba804ca1a55fb24b94a2b6048f54e7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-10-28 20:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0004_rename_avg_rate_product_avarage_rate'), ] operations = [ migrations.RemoveField( model_name='product', ...
23.608696
84
0.600368
73fd01ff6099f25b6bbf5346a5fcacc187aca809
1,771
py
Python
python/random-scripts/python course/clase3.py
Eduardogit/HackProjects
820525c775c0066f09b48725dbfc217faad969ae
[ "MIT" ]
null
null
null
python/random-scripts/python course/clase3.py
Eduardogit/HackProjects
820525c775c0066f09b48725dbfc217faad969ae
[ "MIT" ]
null
null
null
python/random-scripts/python course/clase3.py
Eduardogit/HackProjects
820525c775c0066f09b48725dbfc217faad969ae
[ "MIT" ]
null
null
null
#!/usr/bin/python print "\n\n\t\tSecuencias de escape \n\n" time.sleep(1.2) usage_escape =[ "\n <-- nueva linea \n" +"\\ <--Barra invertida \n" +"\' <--Comilla simple \n" +"\" <--Comilla doble \n" +"\a <--Campanilla " +"\b <--Retroceso ...
18.447917
83
0.579898
fdc2a4af220e1aca41fdf3b9e313913ef83f210f
495
py
Python
packages/python/plotly/plotly/validators/volume/stream/_token.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/volume/stream/_token.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/volume/stream/_token.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="token", parent_name="volume.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
35.357143
83
0.646465
33e76a50c28a1b5743801a6e7fb9bcbca10b2453
67
py
Python
day3/solutions/line-exercise1.py
Jupiter1994/usrp-sciprog
e187636aef993ce159c40bdd5c31804d66c6031a
[ "MIT" ]
null
null
null
day3/solutions/line-exercise1.py
Jupiter1994/usrp-sciprog
e187636aef993ce159c40bdd5c31804d66c6031a
[ "MIT" ]
null
null
null
day3/solutions/line-exercise1.py
Jupiter1994/usrp-sciprog
e187636aef993ce159c40bdd5c31804d66c6031a
[ "MIT" ]
2
2022-03-17T14:33:37.000Z
2022-03-17T14:34:14.000Z
x = rnd.uniform(0, 2., n_data) x.sort() # sort the values in place
22.333333
35
0.656716
8005d0a0825fdca5635986bb90f72946761b57ac
141
py
Python
misura/canon/parameters.py
tainstr/misura.canon
726cd8eb6f28070dad3332b8708fc17261de8f94
[ "MIT" ]
1
2021-03-19T05:54:20.000Z
2021-03-19T05:54:20.000Z
misura/canon/parameters.py
tainstr/misura.canon
726cd8eb6f28070dad3332b8708fc17261de8f94
[ "MIT" ]
null
null
null
misura/canon/parameters.py
tainstr/misura.canon
726cd8eb6f28070dad3332b8708fc17261de8f94
[ "MIT" ]
2
2016-03-25T09:13:16.000Z
2016-05-07T20:42:07.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Common module parameters""" import tables cfilter = tables.Filters(complevel=5, complib='zlib')
23.5
53
0.687943
0080a87756ab8df627760918b83d65934f84d382
7,471
py
Python
sync_report.py
pcstout/ghap_migrator
b50b960ed677f9ff392ea09eb1dad0486a990c12
[ "Apache-2.0" ]
1
2018-12-07T17:20:01.000Z
2018-12-07T17:20:01.000Z
sync_report.py
pcstout/ghap_to_synapse
b50b960ed677f9ff392ea09eb1dad0486a990c12
[ "Apache-2.0" ]
1
2019-08-29T16:48:28.000Z
2019-08-29T17:42:40.000Z
sync_report.py
ki-tools/ghap_to_synapse
b50b960ed677f9ff392ea09eb1dad0486a990c12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017-present, Bill & Melinda Gates Foundation # # 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 ...
39.951872
116
0.608218
72d75949b1a606681c13fc86eda59c63415248b6
17,291
py
Python
commands/Music.py
zeuschops/ideal-train
9b55d8af109dc468feba075b6b5cacc9e54dc128
[ "MIT" ]
null
null
null
commands/Music.py
zeuschops/ideal-train
9b55d8af109dc468feba075b6b5cacc9e54dc128
[ "MIT" ]
null
null
null
commands/Music.py
zeuschops/ideal-train
9b55d8af109dc468feba075b6b5cacc9e54dc128
[ "MIT" ]
null
null
null
#Pulled from; https://gist.github.com/vbe0201/ade9b80f2d3b64643d854938d40a0a2d import asyncio import functools import itertools import math import random import discord import youtube_dl from async_timeout import timeout from discord.ext import commands #Silence useless bug report messages... :eyes: youtube_dl.utils....
34.860887
139
0.615349
eed6f90d8c84b4bc3ade67df06235255bda536bb
1,397
py
Python
setup.py
marcsello/pyprocsync
d574017c969ba008d02aec54d651fb29b91c7f10
[ "MIT" ]
null
null
null
setup.py
marcsello/pyprocsync
d574017c969ba008d02aec54d651fb29b91c7f10
[ "MIT" ]
null
null
null
setup.py
marcsello/pyprocsync
d574017c969ba008d02aec54d651fb29b91c7f10
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['redis~=3.5.3', ] setup_requirements = ['pytest-runner', ] ...
29.104167
72
0.659986
65be1c259724491177b555d24ae8d6f2ad2b2c64
2,000
py
Python
dns/rdtypes/IN/AAAA.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
dns/rdtypes/IN/AAAA.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
dns/rdtypes/IN/AAAA.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "...
37.037037
79
0.7015
e6d322601a54644dfb3f1e62007eeed5836047c9
15,741
py
Python
cnn_quantization/tf_cnn_benchmarks/ssd_dataloader.py
FGDBTKD/google-research
5c50ff41bbd25851e188ed2c1289306c7ba46358
[ "Apache-2.0" ]
1
2018-10-30T02:11:10.000Z
2018-10-30T02:11:10.000Z
cnn_quantization/tf_cnn_benchmarks/ssd_dataloader.py
FGDBTKD/google-research
5c50ff41bbd25851e188ed2c1289306c7ba46358
[ "Apache-2.0" ]
null
null
null
cnn_quantization/tf_cnn_benchmarks/ssd_dataloader.py
FGDBTKD/google-research
5c50ff41bbd25851e188ed2c1289306c7ba46358
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google Research 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 applicab...
38.962871
112
0.695
71cfa759b413a1b0a19910acaf3d859b366d078d
1,242
py
Python
all_names/json_to_txt_names.py
thinkmpink/police-fatalities-sample
a79fe6433c62879c6d1b9618ae2fd40c4a9aae11
[ "MIT" ]
null
null
null
all_names/json_to_txt_names.py
thinkmpink/police-fatalities-sample
a79fe6433c62879c6d1b9618ae2fd40c4a9aae11
[ "MIT" ]
null
null
null
all_names/json_to_txt_names.py
thinkmpink/police-fatalities-sample
a79fe6433c62879c6d1b9618ae2fd40c4a9aae11
[ "MIT" ]
null
null
null
import argparse, codecs, getpass, json """ Writes all scraped CoreNLP NER names from all_names/all_names_<dataset>.json to all_names/<dataset>_names_only.txt """ def write_names(month, year): fpath = '/home/{}/newsevents/post_extract_tests/'.format(getpass.getuser()) readf = '{}all_names/all_names_{:d}_{:d}...
35.485714
80
0.647343
c1a22f547a86c1c9d4a89d384da0258285506d69
70,139
py
Python
pandas/tseries/index.py
zouguangxian/pandas
034c99491eddaed6964be6aabb727a4bbc24a71c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-07-06T23:36:28.000Z
2021-07-06T23:36:28.000Z
pandas/tseries/index.py
zouguangxian/pandas
034c99491eddaed6964be6aabb727a4bbc24a71c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/tseries/index.py
zouguangxian/pandas
034c99491eddaed6964be6aabb727a4bbc24a71c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101 import operator from datetime import time, datetime from datetime import timedelta import numpy as np from pandas.core.common import (isnull, _NS_DTYPE, _INT64_DTYPE, is_list_like,_values_from_object, _maybe_box, notnull, ABCSeri...
33.704469
112
0.561899
b1e4134e232088276c640a3cfc5fc16a1c88c29b
184
py
Python
app/utils/__init__.py
Rainlv/DeepGIS-BackEnd-
5478839f60763fd93cc55c3f75b5ec808ead59e6
[ "MIT" ]
null
null
null
app/utils/__init__.py
Rainlv/DeepGIS-BackEnd-
5478839f60763fd93cc55c3f75b5ec808ead59e6
[ "MIT" ]
null
null
null
app/utils/__init__.py
Rainlv/DeepGIS-BackEnd-
5478839f60763fd93cc55c3f75b5ec808ead59e6
[ "MIT" ]
null
null
null
# !/usr/bin/env Python3 # -*- coding:utf-8 -*- """ @FileName :__init__.py.py @Time :2022/01/23 17:40 @Author :Xuanh.W @Usage : """ if __name__ == "__main__": pass
16.727273
29
0.548913
77b68fd95b6664a55da8072463a4e4a5ca690ee7
892
py
Python
src/leetcode_204_count_primes.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_204_count_primes.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_204_count_primes.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 204 python3 # [204] Count Primes # Difficulty: Easy # https://leetcode.com/problems/count-primes # # Count the number of prime numbers less than a non-negative number, n. # # Example 1: # # Input: n = 10 # Output: 4 # Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. # # Example 2: # # In...
16.830189
75
0.522422
5188b36d2707646548173d3eac81fcc3b765d34f
116
py
Python
launcher.py
xKynn/InspireBot
4b1e8b1547579448dda7220f4de099f8c2d1bcf3
[ "MIT" ]
1
2018-07-26T18:50:41.000Z
2018-07-26T18:50:41.000Z
launcher.py
xKynn/InspireBot
4b1e8b1547579448dda7220f4de099f8c2d1bcf3
[ "MIT" ]
null
null
null
launcher.py
xKynn/InspireBot
4b1e8b1547579448dda7220f4de099f8c2d1bcf3
[ "MIT" ]
null
null
null
from bot import InspireBot def main(): bot = InspireBot() bot.run() if __name__ == '__main__': main()
12.888889
26
0.612069
c159aec060d63b9a37233fe4b6bbac4dabef1cbb
1,395
py
Python
openslides/account/widgets.py
DerPate/OpenSlides
2733a47d315fec9b8f3cb746fd5f3739be225d65
[ "MIT" ]
1
2015-03-22T02:07:23.000Z
2015-03-22T02:07:23.000Z
openslides/account/widgets.py
frauenknecht/OpenSlides
6521d6b095bca33dc0c5f09f59067551800ea1e3
[ "MIT" ]
null
null
null
openslides/account/widgets.py
frauenknecht/OpenSlides
6521d6b095bca33dc0c5f09f59067551800ea1e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.auth.models import AnonymousUser from django.utils.translation import ugettext_lazy from openslides.utils.personal_info import PersonalInfo from openslides.utils.widgets import Widget class PersonalInfoWidget(Widget): """ Provides a widget for personal info. It sh...
31.704545
121
0.66595
b999bb889642b2b8a612c2ee2569bdad063307d6
1,426
py
Python
Python/buffer.py
embeddedalpha/Miscellaneous
360eecac14b8504b32dd4be5634d06abee7c15ec
[ "MIT" ]
1
2020-02-27T06:52:02.000Z
2020-02-27T06:52:02.000Z
Python/buffer.py
embeddedalpha/Miscellaneous
360eecac14b8504b32dd4be5634d06abee7c15ec
[ "MIT" ]
null
null
null
Python/buffer.py
embeddedalpha/Miscellaneous
360eecac14b8504b32dd4be5634d06abee7c15ec
[ "MIT" ]
null
null
null
class Buffer: def __init__(self,s): '''Buffer a pre-created socket. ''' self.sock = s self.buffer = b'' def get_bytes(self,n): '''Read exactly n bytes from the buffered socket. Return remaining buffer if <n bytes remain and socket closes. '''...
33.952381
80
0.530856
144f62641e9b3e5cd5ba6ce89e7e8dd1d2ed6be1
6,829
py
Python
finish.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
finish.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
finish.py
BotanyHunter/QuartetAnalysis
c9b21aac267718be5ea8a8a76632fc0a3feb8403
[ "MIT" ]
null
null
null
#!/usr/bin/python #version 2.0.6 import os,re,optparse,tarfile from quartet_condor import * from fileWriter_condor import * from fileReader_condor import * from arguments import * from errorcodes import * splitOrder = ["{1,2|3,4}", "{1,3|2,4}", "{1,4|2,3}"] translation = { 1234 : [1,2,3], 1243 : [1,3,2], 1324 : [2,1,...
37.31694
144
0.571533
9fddd69c77529de256e8c6249894c994024d8aaa
1,587
py
Python
pypy/rpython/memory/gcheader.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/rpython/memory/gcheader.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/rpython/memory/gcheader.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import weakref from pypy.rpython.lltypesystem import lltype, llmemory # this is global because a header cannot be a header of more than one GcObj header2obj = weakref.WeakKeyDictionary() class GCHeaderBuilder(object): def __init__(self, HDR): """NOT_RPYTHON""" self.HDR = HDR self.obj2he...
33.0625
75
0.687461
7b877c21c51857fc3f22134e769bf10bf881aecc
593
py
Python
setup.py
mjkleiman/stochastiCV
d1e2b8374c2c90d849a465a78553589f2c1960cb
[ "BSD-3-Clause" ]
null
null
null
setup.py
mjkleiman/stochastiCV
d1e2b8374c2c90d849a465a78553589f2c1960cb
[ "BSD-3-Clause" ]
null
null
null
setup.py
mjkleiman/stochastiCV
d1e2b8374c2c90d849a465a78553589f2c1960cb
[ "BSD-3-Clause" ]
null
null
null
from setuptools import find_packages, setup setup( name='stochastiCV', packages=find_packages( where = 'stochastiCV' ), version='0.2.0', description='A method of cross-validation based on scikit-learn that splits data into train/valid/test splits two or more times (using random or assigned ...
42.357143
336
0.74199
504f522daba23451b7fa5ee5ea5b3b28ee94f6c3
635
py
Python
tests/test_actions.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
2
2018-12-03T23:14:56.000Z
2018-12-03T23:15:57.000Z
tests/test_actions.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
2
2018-11-13T16:19:16.000Z
2018-12-10T15:45:53.000Z
tests/test_actions.py
aeflores/angr
ac85a3f168375ed0ee20551b1b716c1bff4ac02b
[ "BSD-2-Clause" ]
1
2020-11-18T16:39:13.000Z
2020-11-18T16:39:13.000Z
import angr from angr import SimState, SIM_PROCEDURES from angr.engines import SimEngineProcedure import nose FAKE_ADDR = 0x100000 def test_procedure_actions(): s = SimState(arch='AMD64') s.registers.store('rbx', 2) proc = SIM_PROCEDURES['testing']['retreg'](reg='rbx') succ = SimEngineProcedure().pro...
30.238095
73
0.725984
ed36b33e11c16921d1ffc69719c92425353b9847
7,944
py
Python
src/compas_fea/utilities/meshing.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
28
2018-02-16T17:21:47.000Z
2022-02-27T21:42:17.000Z
src/compas_fea/utilities/meshing.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
115
2017-11-30T17:12:47.000Z
2022-01-26T07:41:34.000Z
src/compas_fea/utilities/meshing.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
13
2018-05-08T13:03:28.000Z
2022-01-23T13:37:06.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from compas.geometry import add_vectors from compas.geometry import centroid_points from compas.geometry import cross_vectors from compas.geometry import length_vector from compas.geometry import normalize_vect...
28.782609
114
0.586732
91f3ed13c9c986393a43b9709ebcb6639009528b
14,621
py
Python
src/reporter/tests/test_1T1E1A.py
chicco785/ngsi-timeseries-api
6f8ca2e277960bc9549e3fd79350732e459a345f
[ "MIT" ]
null
null
null
src/reporter/tests/test_1T1E1A.py
chicco785/ngsi-timeseries-api
6f8ca2e277960bc9549e3fd79350732e459a345f
[ "MIT" ]
null
null
null
src/reporter/tests/test_1T1E1A.py
chicco785/ngsi-timeseries-api
6f8ca2e277960bc9549e3fd79350732e459a345f
[ "MIT" ]
1
2020-11-11T16:26:52.000Z
2020-11-11T16:26:52.000Z
from conftest import QL_URL from datetime import datetime from exceptions.exceptions import AmbiguousNGSIIdError from reporter.tests.utils import insert_test_data, delete_test_data from utils.tests.common import assert_equal_time_index_arrays import dateutil.parser import pytest import requests entity_type = 'Room' en...
29.009921
79
0.625881
999c51397a9c5b37c0163e51565e1ec12e399bef
17,928
py
Python
cell_cycle_classifier/features.py
sanansakura/cell_cycle_classifier
8668c60b5d20cf02794af1518beecf4b2ef36251
[ "MIT" ]
null
null
null
cell_cycle_classifier/features.py
sanansakura/cell_cycle_classifier
8668c60b5d20cf02794af1518beecf4b2ef36251
[ "MIT" ]
null
null
null
cell_cycle_classifier/features.py
sanansakura/cell_cycle_classifier
8668c60b5d20cf02794af1518beecf4b2ef36251
[ "MIT" ]
null
null
null
import logging import joblib import seaborn import scipy.stats import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.preprocessing import PolynomialFeatures from sklearn.linear_model import LinearRegression from sklearn.utils import shuffle all_feature_names = [ 'slope', 'slope0'...
40.017857
137
0.646029
c6a32c1d7a1f6fc573b1fdcfc4b0054ac713cb6f
984
py
Python
astropy/wcs/tests/conftest.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
1
2019-03-11T12:26:49.000Z
2019-03-11T12:26:49.000Z
astropy/wcs/tests/conftest.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
1
2019-10-09T18:54:27.000Z
2019-10-09T18:54:27.000Z
astropy/wcs/tests/conftest.py
emirkmo/astropy
d96cd45b25ae55117d1bcc9c40e83a82037fc815
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest from astropy import wcs from . helper import SimModelTAB @pytest.fixture(scope='module') def tab_wcs_2di(): model = SimModelTAB(nx=150, ny=200) # generate FITS HDU list: hdulist = model.hdulist # create WCS object: ...
17.890909
63
0.659553
1dfc42f925119d9b9e942a85ffba557176a6d1e9
234
py
Python
Areaofcircle.py
S230102/Python-Practice
19615434801892f562246996ccc651c0b1216243
[ "MIT" ]
null
null
null
Areaofcircle.py
S230102/Python-Practice
19615434801892f562246996ccc651c0b1216243
[ "MIT" ]
null
null
null
Areaofcircle.py
S230102/Python-Practice
19615434801892f562246996ccc651c0b1216243
[ "MIT" ]
null
null
null
PI=3.14 r=float(input("Enter the radius of a circle:")) area=PI*r*r print("Area of circle = %.2f"%area) filename = input("Input the Filename: ") f_extns = filename.split(".") print("The extension of the file is: "+repr(f_extns[-1]))
26
57
0.679487
3255b84806fd7f386aa6c0ff199aba3379c84003
6,224
py
Python
Testcase6-Startup-breakdown/OpenWhisk/C-hello/test/run.py
ServerlessBench/ServerlessBench
cf03f2b7010a47291ec9efcd4bb9d4284cadbf92
[ "MulanPSL-1.0" ]
27
2020-08-09T01:57:48.000Z
2021-07-24T07:30:32.000Z
Testcase6-Startup-breakdown/OpenWhisk/C-hello/test/run.py
ZYH1120/ServerlessBench
d204fc1caf745d0421ab42aa8885f159f19fe8ae
[ "MulanPSL-1.0" ]
null
null
null
Testcase6-Startup-breakdown/OpenWhisk/C-hello/test/run.py
ZYH1120/ServerlessBench
d204fc1caf745d0421ab42aa8885f159f19fe8ae
[ "MulanPSL-1.0" ]
3
2020-08-28T07:08:28.000Z
2021-07-24T07:32:18.000Z
# Copyright (c) 2020 Institution of Parallel and Distributed System, Shanghai Jiao Tong University # ServerlessBench is licensed under the Mulan PSL v1. # You can use this software according to the terms and conditions of the Mulan PSL v1. # You may obtain a copy of Mulan PSL v1 at: # http://license.coscl.org.cn/M...
36.397661
133
0.606041
303ff8f72af7a047cd895f7077c5966d0381bcb4
3,012
py
Python
src/main/python/shabda/data/preprocessor/simple_speech_preprocessor.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
4
2018-10-26T07:00:34.000Z
2020-10-07T01:03:08.000Z
src/main/python/shabda/data/preprocessor/simple_speech_preprocessor.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
null
null
null
src/main/python/shabda/data/preprocessor/simple_speech_preprocessor.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
1
2018-10-26T07:00:38.000Z
2018-10-26T07:00:38.000Z
# import os # import re # import numpy as np # from scipy.io import wavfile # from glob import glob # from tqdm import tqdm # # it's a magic function :) # from tensorflow.contrib.learn.python.learn.learn_io.generator_io import generator_input_fn # from sarvam.helpers.print_helper import * # from speech_recognition.sr_c...
36.289157
100
0.570717
3c0a9e0e62964f6f1522bc1d3570a4ce0c38c21d
2,282
py
Python
cce/imports.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
cce/imports.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
cce/imports.py
cyberxml/django-cyberxml
58722cd1ca5192851e894e60a063b6da84a14ed0
[ "MIT" ]
null
null
null
import urllib import os import os.path from zipfile import ZipFile from django.conf import settings from eulexistdb import db from datetime import date thisyear = date.today().year media_root = settings.MEDIA_ROOT cce_data_dir = media_root+'/data/nist.gov/nvd/cce/' db_cce_nist_collection = '/db/cyberxml/data/cce/nis...
27.829268
80
0.55872
2f1c3a10c8103ae250e0a91743131bb771a001d1
5,675
py
Python
python3_cron_scripts/libs3/UltraDNSHelper.py
adobe/Marinus
fd648002fe79c0fafba7f43a5c96f5090ad3dbfb
[ "Apache-2.0" ]
57
2019-01-16T22:40:58.000Z
2022-03-15T21:34:24.000Z
python3_cron_scripts/libs3/UltraDNSHelper.py
adobe/Marinus
fd648002fe79c0fafba7f43a5c96f5090ad3dbfb
[ "Apache-2.0" ]
3
2019-03-08T16:41:48.000Z
2019-11-07T03:53:00.000Z
python3_cron_scripts/libs3/UltraDNSHelper.py
adobe/Marinus
fd648002fe79c0fafba7f43a5c96f5090ad3dbfb
[ "Apache-2.0" ]
12
2019-01-17T20:06:46.000Z
2022-01-09T23:06:19.000Z
#!/usr/bin/python3 # Copyright 2018 Adobe. All rights reserved. # This file is licensed to you under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. You may obtain a copy # of the License at http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
40.248227
100
0.629075
b580d3460ca133e773712224bdd55ff108b251e1
881
py
Python
imperative/python/megengine/core/_trace_option.py
googol-lab/MegEngine
e0193cc4431371719a6ddb0fa85f910c5583bfc8
[ "Apache-2.0" ]
3
2021-08-08T12:55:53.000Z
2021-12-10T06:01:04.000Z
imperative/python/megengine/core/_trace_option.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
6
2020-04-24T08:52:06.000Z
2021-08-16T06:38:23.000Z
imperative/python/megengine/core/_trace_option.py
MediosZ/MegEngine
5c775d02dd0b8f20b5acc6b400cf722e92f2e86b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
27.53125
88
0.733258
47af5f5e4eca6f098f2be31a6057d8aec2e94d61
34,578
py
Python
src/align/detect_face.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
269
2019-08-20T09:39:44.000Z
2022-03-12T09:45:29.000Z
src/align/detect_face.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
25
2019-08-09T03:58:03.000Z
2021-12-27T08:22:20.000Z
src/align/detect_face.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
64
2019-08-22T08:39:27.000Z
2022-03-28T14:02:46.000Z
""" Tensorflow implementation of the face detection / alignment algorithm found at https://github.com/kpzhang93/MTCNN_face_detection_alignment """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated docu...
40.727915
150
0.561658
8db0a074fe88a9717f45fb62af955431774004ca
10,236
py
Python
run_webcamSplitScreen_angle_v2.py
AbdulSamadSethi/Intelligent-Personal-Trainer
c6266cb4bfca9d12e09966b69e43ecd856134d21
[ "Apache-2.0" ]
null
null
null
run_webcamSplitScreen_angle_v2.py
AbdulSamadSethi/Intelligent-Personal-Trainer
c6266cb4bfca9d12e09966b69e43ecd856134d21
[ "Apache-2.0" ]
null
null
null
run_webcamSplitScreen_angle_v2.py
AbdulSamadSethi/Intelligent-Personal-Trainer
c6266cb4bfca9d12e09966b69e43ecd856134d21
[ "Apache-2.0" ]
null
null
null
import argparse import logging import time import cv2 import re import csv import pandas as pd import numpy as np from contextlib import redirect_stdout from tf_pose.estimator import TfPoseEstimator from tf_pose.networks import get_graph_path, model_wh import math from dtaidistance import dtw import PySimp...
40.619048
141
0.564185
47b65923cd295b0dd06700181e4352964ba1f1a7
5,259
py
Python
callerframe.py
simone-campagna/callerframe
2327373cd1bdf24fb48f1b73dba0cf86f7de99e4
[ "Apache-2.0" ]
1
2015-10-05T07:16:49.000Z
2015-10-05T07:16:49.000Z
callerframe.py
simone-campagna/callerframe
2327373cd1bdf24fb48f1b73dba0cf86f7de99e4
[ "Apache-2.0" ]
null
null
null
callerframe.py
simone-campagna/callerframe
2327373cd1bdf24fb48f1b73dba0cf86f7de99e4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2013 Simone Campagna # # 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...
29.544944
108
0.671801
0dd70ab8fed3432e70e1c7b1b54e99c742bc9c9c
5,714
py
Python
DeepJanus-MNIST/model_create_ExperimentOld.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
null
null
null
DeepJanus-MNIST/model_create_ExperimentOld.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
null
null
null
DeepJanus-MNIST/model_create_ExperimentOld.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
null
null
null
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import tensorflow as tf from tensorflow import keras import numpy as np import os impor...
39.958042
257
0.655758
9730d5ac9965fcdbd335be29332118040ede5af9
3,970
py
Python
thop/count_hooks.py
rbodo/pytorch-OpCounter
1857cbb5f9e53343fb349af84efdfde2554a2691
[ "MIT" ]
1
2020-02-28T04:42:39.000Z
2020-02-28T04:42:39.000Z
thop/count_hooks.py
rbodo/pytorch-OpCounter
1857cbb5f9e53343fb349af84efdfde2554a2691
[ "MIT" ]
null
null
null
thop/count_hooks.py
rbodo/pytorch-OpCounter
1857cbb5f9e53343fb349af84efdfde2554a2691
[ "MIT" ]
null
null
null
import argparse import logging import torch import torch.nn as nn from torch.nn.modules.conv import _ConvNd logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) multiply_adds = 1 def zero_ops(m, x, y): m.total_ops += torch.Tensor([int(0)]) def count_convNd(m: _ConvNd, x: (torch.Tensor,), y: tor...
28.357143
96
0.616625
c533bc252b077dda1cfce4173978370d4ce3b7ec
9,701
py
Python
src/finn/transformation/lower_convs_to_matmul.py
HenniOVP/finn-base
ee0a7df4de00958cf4d71624a56e8a1acf4fd085
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/lower_convs_to_matmul.py
HenniOVP/finn-base
ee0a7df4de00958cf4d71624a56e8a1acf4fd085
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/lower_convs_to_matmul.py
HenniOVP/finn-base
ee0a7df4de00958cf4d71624a56e8a1acf4fd085
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Xilinx, 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: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
46.639423
84
0.553139
5316c2290e7e915ef90d8d89ca3f374be6a134cf
344
py
Python
src/sgraph/converters/deps_to_xml.py
softagram/sgraph
ef16ad86ffb69a8f5210c69748f6e32c0f579141
[ "MIT" ]
null
null
null
src/sgraph/converters/deps_to_xml.py
softagram/sgraph
ef16ad86ffb69a8f5210c69748f6e32c0f579141
[ "MIT" ]
6
2021-08-12T18:08:54.000Z
2021-11-22T00:14:09.000Z
src/sgraph/converters/deps_to_xml.py
codeview-ai/sgraph
b98796d44d5ff5b96fdf8e5b7ec381e2cf38f217
[ "MIT" ]
2
2021-08-12T05:52:21.000Z
2021-11-22T13:21:26.000Z
import sys from sgraph import SGraph inputfilepath = sys.argv[1] outfilepath = None if len(sys.argv) > 2: outfilepath = sys.argv[2] egm = SGraph.parse_deps(inputfilepath) if outfilepath: print('Node count: {}'.format(egm.rootNode.getNodeCount())) else: pass # Stdout will be filled with the model data ...
19.111111
63
0.723837
45349e380d06b786d743f9d2bc0a93e92d963900
795
py
Python
code/s_lightball.py
lod/pycon2017
f62f7a84fc64849b22ddb2c1dfbc3fe1d8b84aed
[ "CC0-1.0" ]
2
2017-08-04T04:33:22.000Z
2021-07-08T00:36:03.000Z
code/s_lightball.py
lod/pycon2017
f62f7a84fc64849b22ddb2c1dfbc3fe1d8b84aed
[ "CC0-1.0" ]
null
null
null
code/s_lightball.py
lod/pycon2017
f62f7a84fc64849b22ddb2c1dfbc3fe1d8b84aed
[ "CC0-1.0" ]
null
null
null
class LightBall(object): colours = { "#FFFFFF" : "W", ... } def __init__(self, colour="#FFFFFF"): self.colour = colour # #rgb string self._send_button("ON") self.set_colour(colour) def __del__(self): self._send_button("OFF") def get_colour(self): ...
26.5
79
0.576101
863a1d43520ed42e7a8e61c532d1f01e658111d3
6,286
py
Python
tests/fixtures.py
78bash/lightning
bda9919da7aaca66dae0996a18cb0917c09582eb
[ "MIT" ]
null
null
null
tests/fixtures.py
78bash/lightning
bda9919da7aaca66dae0996a18cb0917c09582eb
[ "MIT" ]
null
null
null
tests/fixtures.py
78bash/lightning
bda9919da7aaca66dae0996a18cb0917c09582eb
[ "MIT" ]
null
null
null
from concurrent import futures from utils import NodeFactory, BitcoinD import logging import os import pytest import re import shutil import sys import tempfile with open('config.vars') as configfile: config = dict([(line.rstrip().split('=', 1)) for line in configfile]) VALGRIND = os.getenv("VALGRIND", config['...
28.572727
114
0.663061
47217d0e449b2153eb598da4d79485a8609d0652
158
py
Python
care/care/doctype/invoice_item_amendment_summary/test_invoice_item_amendment_summary.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
1
2021-08-07T12:49:13.000Z
2021-08-07T12:49:13.000Z
care/care/doctype/invoice_item_amendment_summary/test_invoice_item_amendment_summary.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
null
null
null
care/care/doctype/invoice_item_amendment_summary/test_invoice_item_amendment_summary.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
1
2021-08-07T12:49:13.000Z
2021-08-07T12:49:13.000Z
# Copyright (c) 2021, RF and Contributors # See license.txt # import frappe import unittest class TestInvoiceItemAmendmentSummary(unittest.TestCase): pass
17.555556
57
0.797468
70fcc13033826ab4920aede1602b77cd40298269
694
py
Python
utils/cp_labels.py
Dai-z/pytorch-superpoint
90e71045238fdcce13f9f0d02bdd0e1126145a10
[ "MIT" ]
390
2019-12-16T07:36:02.000Z
2022-03-29T07:27:32.000Z
utils/cp_labels.py
Dai-z/pytorch-superpoint
90e71045238fdcce13f9f0d02bdd0e1126145a10
[ "MIT" ]
69
2019-12-14T20:38:44.000Z
2022-03-25T12:53:21.000Z
utils/cp_labels.py
Dai-z/pytorch-superpoint
90e71045238fdcce13f9f0d02bdd0e1126145a10
[ "MIT" ]
98
2020-01-07T04:29:17.000Z
2022-03-30T16:09:31.000Z
"""copy labels out of images (step 2) """ import subprocess from glob import glob import os source_folder = 'magicpoint_synth20_homoAdapt100_kitti_h384' target_folder = f"{source_folder}_labels" base_path = '/data/kitti' middle_path = 'predictions/' final_folder = 'train' folders = glob(f'{base_path}/{source_folder}/...
27.76
78
0.706052