hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b9a5362ea01805df4bb2ad83d0b9f037b0c75078
481
py
Python
lib/fmdplugins/list_records.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmdplugins/list_records.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmdplugins/list_records.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
from lib.fmd.namedentity import NamedEntity from lib.fmd.decorators import Action, ListStage, GetStage from lib.exceptions.workflow import EntryException @Action(ListStage.DATAGATHERING) def list_records(context, output): output = [] if hasattr(context, 'filter'): context.log.debug('Using filter [%s]'...
30.0625
63
0.719335
0
0
0
0
325
0.675676
0
0
36
0.074844
b9a5aa9a635301ab37ae92c6395e50231bd81a4b
6,033
py
Python
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
pysoa/server/action/switched.py
zetahernandez/pysoa
006e55ba877196a42c64f2ff453583d366082d55
[ "Apache-2.0" ]
null
null
null
from __future__ import ( absolute_import, unicode_literals, ) import abc import six from pysoa.server.internal.types import is_switch __all__ = ( 'SwitchedAction', ) def _len(item): # Safe length that won't raise an error on values that don't support length return getattr(item, '__len__', lam...
38.673077
117
0.673463
5,645
0.935687
0
0
4,236
0.702138
0
0
3,914
0.648765
b9a6e1263697c6f30d94bde78d6313fed9c57e76
542
py
Python
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/settings/tests.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from .base import * SECRET_KEY = 'test' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['127.0.0.1'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'sqlite3.db', 'USER': '', 'PASSWO...
19.357143
66
0.605166
0
0
0
0
0
0
0
0
285
0.52583
b9a767c55418efb8b98d12205d59e512ca419081
1,860
py
Python
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
blobStore.py
odeke-em/resty
838934033e7eeca521e8c6d8cb2e99778beaa4b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Author: Emmanuel Odeke <[email protected]> # This example steps you through using resty & restAssured to save pickled/serialized # data as a blob and then later re-using it in after deserialization. # Sample usage might be in collaborative computing ie publish results from an expensive # compu...
31
87
0.7
0
0
0
0
0
0
0
0
532
0.286022
b9a7d3f5b98af28c51ffb55578408fad9a1d3f99
3,066
py
Python
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/dataframe/_dataframe_column_set.py
kavanAdeshara/Expense_Tracker
b3e4810e858a7786e05cda6b91ba674b73b87981
[ "Apache-2.0" ]
null
null
null
# dataframe: a data-frame implementation using method piping # # Copyright (C) 2016 Simon Dirmeier # # This file is part of dataframe. # # dataframe is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versi...
30.356436
71
0.63242
2,098
0.684279
81
0.026419
208
0.067841
0
0
1,105
0.360404
b9a7d44b00e1b419e797c8637498d8abc23d4def
13,322
bzl
Python
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
java/image.bzl
Springworks/rules_docker
b943cd1fe3bf1c6c5fdac1889e952408599cffff
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.246787
79
0.642546
0
0
0
0
0
0
0
0
6,215
0.466522
b9a831ae9aec7e87ced37e12721727df9e75bb48
17,427
py
Python
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
cupyx/jit/_builtin_funcs.py
khushi-411/cupy
b5221a478c800c5e60eef65545467de9eb00c0d9
[ "MIT" ]
null
null
null
import warnings import cupy from cupy_backends.cuda.api import runtime from cupy.cuda import device from cupyx.jit import _cuda_types from cupyx.jit._internal_types import BuiltinFunc from cupyx.jit._internal_types import Data from cupyx.jit._internal_types import Constant from cupyx.jit._internal_types import Range ...
35.206061
115
0.569748
15,546
0.892064
0
0
0
0
0
0
7,265
0.416882
b9aa6c3c1ecb2355209fd4db4f58118befbffa8a
225
py
Python
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
python-basic-grammer/python-basic/02-python-variables-and-string/string_strip_demo.py
jinrunheng/base-of-python
595bdbc8bfaf2136d8f1f9ea82c03b84aeaf0a39
[ "Apache-2.0" ]
null
null
null
# 字符串删除空白 str1 = " hello " print(str1) print(len(str1)) # 去除两端的空格 print(str1.strip()) print(len(str1.strip())) # 去除左侧的空格 print(str1.lstrip()) print(len(str1.lstrip())) # 去除右侧的空格 print(str1.rstrip()) print(len(str1.rstrip()))
16.071429
25
0.688889
0
0
0
0
0
0
0
0
101
0.359431
b9aaf0198d21a1cb3a68b8836041445460cf7efd
379
py
Python
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
bruges/util/__init__.py
hyperiongeo/bruges
6d9a3aae86aaa53107caaa20e9aafa390358b0f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .util import rms from .util import moving_average from .util import moving_avg_conv from .util import moving_avg_fft from .util import normalize from .util import next_pow2 from .util import top_and_tail from .util import extrapolate from .util import nearest from .util import deprecated fr...
27.071429
34
0.804749
0
0
0
0
0
0
0
0
23
0.060686
b9acae3f6c9a11754c72065d93acff3857609af2
5,423
py
Python
toontown/estate/DistributedHouseDoor.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/estate/DistributedHouseDoor.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/estate/DistributedHouseDoor.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from toontown.toonbase.ToonBaseGlobal import * from panda3d.core import * from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.distributed import DistributedObject from toontown.toonbase import ToontownGlobals from direct.directnotify import DirectNotifyGlobal from direct...
40.17037
299
0.638761
4,768
0.879218
0
0
0
0
0
0
559
0.103079
b9ad055e162f0001e288ab22dec6a5a4746fd51d
2,786
py
Python
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
Neuro-Cognitive Models/Runs/Nonhier_run/res_nonhier.py
AGhaderi/spatial_attenNCM
1f7edf17f55d804d2ae3360d23623c9ab5035518
[ "MIT" ]
null
null
null
#!/home/a.ghaderi/.conda/envs/envjm/bin/python # Model 2 import pystan import pandas as pd import numpy as np import sys sys.path.append('../../') import utils parts = 1 data = utils.get_data() #loading dateset data = data[data['participant']==parts] mis = np.where((data['n200lat']<.101)|(data['n200lat']>....
39.8
116
0.648959
0
0
0
0
0
0
0
0
1,068
0.383345
b9adc3a3c0f82e03cf53dd13486c80b1bb9dbf85
6,691
py
Python
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq_dashboard/dashboard.py
refgenomics/rq-dashboard
cdfadd2b9aa9a66b0594fd5573e3c45fa8643f05
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from redis import Redis from redis import from_url from rq import push_connection, pop_connection from rq.job import Job from functools import wraps import times from flask import Blueprint from flask import current_app, url_for, abort from flask import render_template from rq import Queue, Worker from rq import cancel...
29.606195
115
0.67658
0
0
0
0
4,930
0.736811
0
0
796
0.118966
b9ae95988166d56c353c46926e3d21a79d84f88c
769
py
Python
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
layers/layer1_python3/0300_acquisition/acquisition/__init__.py
moas/mfdata
ca9460c3783ddfd6ad022c96a0a8bf0e65fa36b2
[ "BSD-3-Clause" ]
null
null
null
from acquisition.step import AcquisitionStep from acquisition.stats import AcquisitionStatsDClient from acquisition.move_step import AcquisitionMoveStep from acquisition.delete_step import AcquisitionDeleteStep from acquisition.batch_step import AcquisitionBatchStep from acquisition.reinject_step import AcquisitionRein...
48.0625
63
0.830949
0
0
0
0
0
0
0
0
199
0.258778
b9b2dd8fc97fddaaa64ec64957043ee8e8088e39
615
py
Python
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/member/member.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.model.document import Document from frappe.contacts.address_and_contact import load_address_and_contact class Member(Docum...
29.285714
72
0.786992
313
0.508943
0
0
0
0
0
0
185
0.300813
b9b3501a4a1a7bee83abdc50e1932071f97c2394
12,427
py
Python
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
networks/networks.py
ayyuriss/TRHPO
56a06d3593504647b75589ab87b5c96bdab74c9f
[ "MIT" ]
null
null
null
from torch import nn import numpy as np import base.basenetwork as BaseN from networks.cholesky import CholeskyBlock class FCNet(BaseN.BaseNetwork): name ="FCNet" def __init__(self,input_shape,output_shape,owner_name=""): super(FCNet,self).__init__(input_shape,output_shape,owner_name) ...
50.51626
91
0.508168
12,250
0.985757
0
0
0
0
0
0
234
0.01883
b9b4c8dedee4c99c1bae0987e46ca8c83899e4d8
1,435
py
Python
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
4
2019-04-25T21:09:39.000Z
2020-07-26T08:57:00.000Z
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
1
2019-08-11T00:27:18.000Z
2019-08-12T17:36:42.000Z
icenews/api_important_words.py
sverrirab/icenews
10a5e13d4dcd5e95f746c4fec9821b4b48fa440e
[ "Apache-2.0" ]
null
null
null
import logging from pydantic import BaseModel, Field from typing import List from .similar import important_words from .server import app _MAX_LENGTH = 2000 logger = logging.getLogger(__name__) class ImportantWordsResponse(BaseModel): important_words: List[str] = Field(..., description="List of lemmas") cla...
25.625
97
0.724042
523
0.36446
0
0
601
0.418815
0
0
308
0.214634
b9b51a38157d5d825f921ab19fba044fe3545044
206
py
Python
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try-except.py
kmarcini/Learn-Python---Full-Course-for-Beginners-Tutorial-
8ea4ef004d86fdf393980fd356edcf5b769bfeac
[ "BSD-3-Clause" ]
null
null
null
try: # num = 10 / 0 number = int(input("Enter a number: ")) print(number) # catch specific errors except ZeroDivisionError as err: print(err) except ValueError: print("Invalid input")
17.166667
43
0.650485
0
0
0
0
0
0
0
0
70
0.339806
b9b691941c62b002880bb1f21ca60b0e932e41c1
3,574
py
Python
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
peaksampl.py
Gattocrucco/sipmfilter
74215d6c53b998808fc6c677b46030234d996bdf
[ "CC-BY-4.0", "MIT" ]
null
null
null
import numpy as np def _adddims(a, b): n = max(a.ndim, b.ndim) a = np.expand_dims(a, tuple(range(n - a.ndim))) b = np.expand_dims(b, tuple(range(n - b.ndim))) return a, b def _yz(y, z, t, yout): """ Shared implementation of peaksampl and sumpeaks. """ y = np.asarray(y) z = np.asarr...
28.822581
78
0.546726
0
0
0
0
0
0
0
0
1,478
0.413542
b9b6f990f4ce20ca5842a3bb309cb667f69ccc3e
453
py
Python
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
3
2021-09-13T20:23:42.000Z
2022-01-19T13:12:32.000Z
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
null
null
null
arachne/hdl/xilinx/ps8/resources/pmu.py
shrine-maiden-heavy-industries/arachne
1d0320bf6e77653656f8ce1874900743452dbac4
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause from amaranth import * from amaranth.build import * from .common import PS8Resource, MIOSet __all__ = ( 'PMUResource', ) class PMUResource(PS8Resource): name = 'pmu' claimable_mio = [ ] def __init__(self): super().__init__(0, 0, None, False) def used_mio(...
19.695652
46
0.699779
274
0.604857
0
0
0
0
0
0
75
0.165563
b9b9340675c6ceead7ff166bf8fe4d65fa580b58
4,597
py
Python
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
2
2020-05-02T18:17:44.000Z
2020-05-02T18:18:02.000Z
backend/Washlist/tests.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from rest_framework import status from Dormroom.models import Dormroom from SIFUser.mixins import AuthTestMixin from StudentVillage.models import StudentVillage from Washlist.jobs import reset_washlists from Washlist.models.Templates import TemplateList...
35.091603
92
0.67022
4,139
0.90037
0
0
0
0
0
0
594
0.129215
b9ba39e57d52ad0baaeb81fbe95a03b7bb17d4ad
3,792
py
Python
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
torchvision/prototype/models/mobilenetv3.py
piyush01123/vision
c6722307e6860057b4855483d237fe00a213dcf6
[ "BSD-3-Clause" ]
null
null
null
from functools import partial from typing import Any, Optional, List from torchvision.prototype.transforms import ImageNetEval from torchvision.transforms.functional import InterpolationMode from ...models.mobilenetv3 import MobileNetV3, _mobilenet_v3_conf, InvertedResidualConfig from ._api import WeightsEnum, Weight...
34.472727
119
0.704114
1,469
0.387395
0
0
960
0.253165
0
0
889
0.234441
b9bb675bdbf31f94537da2d2380efe251bd20dd2
1,036
py
Python
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
rest_auth/registration/urls.py
soul4code/django-rest-auth
b7a2e06e7736865b18f6aab79dcd42210e06c28b
[ "MIT" ]
null
null
null
from django.urls import re_path from django.views.generic import TemplateView from .views import RegisterView, VerifyEmailView urlpatterns = [ re_path(r'^$', RegisterView.as_view(), name='rest_register'), re_path(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'), # This url is use...
41.44
100
0.721042
0
0
0
0
0
0
0
0
687
0.663127
b9bb907819b5835937644fde4b8d08e5dd987580
1,036
py
Python
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
1
2019-06-22T10:28:21.000Z
2019-06-22T10:28:21.000Z
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
4
2020-09-05T01:48:18.000Z
2022-03-02T04:29:25.000Z
crawler/tests.py
mental689/paddict
493268b62531c698687d42416edf61c602250133
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from crawler.download import * from crawler.models import * class AnimalDownloadTestCase(TestCase): def setUp(self): self.stopWords = ["CVPR 2019", "Computer Vision Foundation."] self.url = "/Users/tuannguyenanh/Desktop/cvpr2019.html"#"htt...
32.375
106
0.608108
912
0.880309
0
0
0
0
0
0
291
0.280888
b9bfcc9ca3f71d3591d1b453eea9313adf491d9f
452
py
Python
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
1
2015-11-17T21:35:44.000Z
2015-11-17T21:35:44.000Z
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
test_scripts/xml_example.py
petervdb/testrep1
76b6eb3de2deb9596c055f252191e28587d5520c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from urllib.request import urlopen from xml.etree.ElementTree import parse # Download the RSS feed and parse it u = urlopen('http://planet.python.org/rss20.xml') doc = parse(u) # Extract and output tags of interest for item in doc.iterfind('channel/item'): title = item.findtext('title') date = i...
20.545455
49
0.725664
0
0
0
0
0
0
0
0
182
0.402655
b9c06414f6de5d6df932f87abe0ac2addfe2d410
1,489
py
Python
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
1
2019-04-21T18:57:57.000Z
2019-04-21T18:57:57.000Z
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
contacts/urls.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
null
null
null
"""dedupper_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
38.179487
85
0.672263
0
0
0
0
0
0
0
0
1,153
0.774345
b9c1739f7de89fe26aec7c763524b35992652ab0
92
py
Python
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
pydm/PyQt/uic.py
klauer/pydm
e26aad58a7a0eb6f7321c61aa1dace646ff652bd
[ "BSD-3-Clause-LBNL" ]
null
null
null
from . import qtlib QT_LIB = qtlib.QT_LIB if QT_LIB == 'PyQt5': from PyQt5.uic import *
18.4
27
0.684783
0
0
0
0
0
0
0
0
7
0.076087
b9c1d738b7414d020a32d72c8b5b4b39a4b6d1d4
2,667
py
Python
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
CPB100/lab2b/scheduled/ingestapp.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.13253
214
0.683915
0
0
0
0
1,614
0.605174
0
0
1,551
0.581552
b9c3b62c39c9c9979a0f73775051d1aecd742c75
73
py
Python
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
index.py
StarSky1/microsoft-python-study
7fdc1ad87ac0eeb497013d7792f499416aac32d9
[ "MIT" ]
null
null
null
name=input('input your name:'); print('hello'); print(name.capitalize());
24.333333
31
0.69863
0
0
0
0
0
0
0
0
25
0.342466
b9c4867749ea67a9a267a9e62cea575f210f9260
2,526
py
Python
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
null
null
null
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
null
null
null
credentials.py
Machel54/-pass-locker-
8ddf14cf755924ca903919177f9f878f65a08042
[ "MIT" ]
1
2020-01-29T02:05:49.000Z
2020-01-29T02:05:49.000Z
import pyperclip import random import string class Credential: ''' class that generates new credentials ''' credential_list = [] def __init__(self,username,sitename,password): self.username = username self.password = password self.sitename = sitename def save_credential(self): ''' sav...
30.071429
111
0.665479
2,474
0.979414
0
0
1,288
0.509897
0
0
932
0.368963
b9c5365f366487d350d0993e89760939da233546
80
py
Python
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
1
2020-12-03T14:27:20.000Z
2020-12-03T14:27:20.000Z
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
11
2020-10-21T17:51:12.000Z
2020-11-09T12:02:52.000Z
tests/test_dice.py
mehulsatardekar/dice-on-demand
fa1ce1214975ba70c5d61390408a4de2418cf997
[ "MIT" ]
27
2021-09-09T22:53:21.000Z
2021-11-20T22:46:16.000Z
import unittest import app def test_test(): assert app.test() == "Works!"
11.428571
33
0.6625
0
0
0
0
0
0
0
0
8
0.1
b9c62ba9c79d4ffcb00ede68fc940fc877d45118
5,614
py
Python
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
25
2016-01-08T02:02:36.000Z
2021-12-29T14:00:58.000Z
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
11
2016-02-25T01:44:46.000Z
2021-07-02T05:52:55.000Z
annotations/rip_annotated_junctions.py
ChristopherWilks/snaptron
82ea3c5c5f2fbb726bba6d8c2bd0f7713291833a
[ "MIT" ]
7
2016-02-13T01:45:15.000Z
2021-11-22T11:04:12.000Z
#!/usr/bin/env python """ rip_annotated_junctions.py Non-reference/species verson of this script, no lift-over Rips junctions from annotation files contained in jan_24_2016_annotations.tar.gz, as described in annotation_definition.md. Junctions are dumped to stdout, which we record as annotated_junctions.tsv.gz in ru...
44.555556
543
0.603669
0
0
0
0
0
0
0
0
2,471
0.44015
b9c731695680778a55c685fcfc15ab5e3eccf437
5,438
py
Python
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/VMD.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np def vmd( signal, alpha, tau, K, DC, init, tol): ''' 用VMD分解算法时只要把信号输入进行分解就行了,只是对信号进行分解,和采样频率没有关系, VMD的输入参数也没有采样频率。 VMD分解出的各分量在输出量 u 中,这个和信号的长度、信号的采样频率没有关系。 迭代时各分量的中心频率在输出量omega,可以用2*pi/fs*omega求出中心频率, 但迭代时的频率是变化的。 Input and Parameters: signal ...
37.503448
141
0.580912
0
0
0
0
0
0
0
0
2,877
0.478862
b9c7d11a999150072e268ba745c49eb08ce5081f
358
py
Python
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
src/PyDS/Queue/Deque.py
AoWangPhilly/PyDS
d79f92d0d2e7c005ebb8fa9f631d5f01e590625e
[ "MIT" ]
null
null
null
class Deque: def add_first(self, value): ... def add_last(self, value): ... def delete_first(self): ... def delete_last(self): ... def first(self): ... def last(self): ... def is_empty(self): ... def __len__(self): .....
12.785714
31
0.430168
357
0.997207
0
0
0
0
0
0
0
0
b9c81413c2bd63d72d0731352d31911ef52240f6
480
py
Python
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
1
2018-03-21T07:51:36.000Z
2018-03-21T07:51:36.000Z
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
null
null
null
forum/main.py
asmaasalih/my_project
89183d7a2578fa302e94ea29570ab527e9ca47b5
[ "MIT" ]
null
null
null
import models import stores member1 =models.Member("ahmed",33) member2 =models.Member("mohamed",30) post1=models.Post("Post1", "Content1") post2= models.Post("Post2", "Content2") post3= models.Post("Post3", "Content3") #member store member_store=stores.MemberStore() member_store.add(member1) member_store.add(member...
20.869565
39
0.772917
0
0
0
0
0
0
0
0
80
0.166667
b9c89d9ad7d4587730637df2e5c8576e03c43ad8
3,115
py
Python
shellfind.py
bhavyanshu/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
4
2016-06-15T22:08:29.000Z
2019-10-16T13:12:51.000Z
shellfind.py
kaitolegion/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
null
null
null
shellfind.py
kaitolegion/Shell-Finder
308b3ba7f1a53b8a6cc738d69c01f4b7108d0860
[ "Apache-2.0" ]
7
2015-07-08T22:21:52.000Z
2021-05-31T14:05:47.000Z
#!/usr/bin/env python ''' Author : Bhavyanshu Parasher Email : [email protected] Description : shellfind.py is a Python command line utility which lets you look for shells on a site that the hacker must have uploaded. It considers all the shells available and tries all possibilities via dictionary match. '''...
35
224
0.742857
0
0
0
0
0
0
0
0
1,351
0.433708
b9c964b752a9622a17123202e7aae50d1718a48a
1,345
py
Python
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
1
2019-08-14T12:32:49.000Z
2019-08-14T12:32:49.000Z
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
null
null
null
question3.py
nosisky/algo-solution
a9276f73ba63b1a0965c194885aea6cadfab0e0b
[ "MIT" ]
null
null
null
# A string S consisting of N characters is considered to be properly nested if any of the following conditions is true: # S is empty; # S has the form "(U)" or "[U]" or "{U}" where U is a properly nested string; S has the form "VW" where V and W are properly nested strings. # For example, the string "{[()()]}" is prope...
42.03125
140
0.66171
0
0
0
0
0
0
0
0
993
0.73829
b9ca4ff833bf2ee267f7f1b8ecf69069cd8c4b31
1,996
py
Python
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
50
2018-12-23T15:46:16.000Z
2022-03-28T15:49:59.000Z
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
9
2018-12-03T10:31:29.000Z
2022-01-20T14:41:33.000Z
Teil_27_Game_of_Life_3d.py
chrMenzel/A-beautiful-code-in-Python
92ee43c1fb03c299384d4de8bebb590c5ba1b623
[ "MIT" ]
69
2019-02-02T11:59:09.000Z
2022-03-28T15:54:28.000Z
import bpy import random as rnd from collections import Counter import itertools as iter feld_von, feld_bis = -4, 4 spielfeld_von, spielfeld_bis = feld_von-6, feld_bis+6 anz = int((feld_bis-feld_von)**3*.3) spielfeld = {(rnd.randint(feld_von, feld_bis), rnd.randint( feld_von, feld_bis), rnd.randint(feld_von, fe...
28.927536
102
0.67986
0
0
145
0.072573
0
0
0
0
84
0.042042
b9ca98991068e30844d7bcc8e336f70de5eef5a9
1,824
py
Python
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
null
null
null
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
33
2022-02-16T07:51:41.000Z
2022-03-31T11:24:11.000Z
power_perceiver/xr_batch_processor/reduce_num_pv_systems.py
openclimatefix/power_perceiver
bafcdfaf6abf42fbab09da641479f74709ddd395
[ "MIT" ]
null
null
null
from dataclasses import dataclass import numpy as np import xarray as xr from power_perceiver.load_prepared_batches.data_sources import PV from power_perceiver.load_prepared_batches.data_sources.prepared_data_source import XarrayBatch @dataclass class ReduceNumPVSystems: """Reduce the number of PV systems per e...
39.652174
97
0.721491
1,573
0.86239
0
0
1,584
0.868421
0
0
546
0.299342
b9cc65aafe29eb9820f902e036880e65947e1e2d
857
py
Python
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
HelloWorld_python/log/demo_log_3.py
wang153723482/HelloWorld_my
b8642ad9742f95cfebafc61f25b00e917485e50c
[ "Apache-2.0" ]
null
null
null
#encoding=utf8 # 按天生成文件 import logging import time from logging.handlers import TimedRotatingFileHandler #---------------------------------------------------------------------- if __name__ == "__main__": logFilePath = "timed_test.log" logger = logging.getLogger("YouLoggerName") logger.setLevel(logging....
29.551724
89
0.536756
0
0
0
0
0
0
0
0
258
0.296893
b9cd3a4333e6169069ae770751a00e82db1b741a
736
py
Python
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
bot_da_os/statemachine/person/person_action.py
Atsocs/bot-da-os
e6d54057f4a3b703f303e9944a39e291ac87c40f
[ "MIT" ]
null
null
null
from operator import eq class PersonAction: def __init__(self, action): self.action = action def __str__(self): return self.action def __eq__(self, other): return eq(self.action, other.action) # Necessary when __cmp__ or __eq__ is defined # in order to make this class usable as ...
29.44
89
0.72962
374
0.508152
0
0
0
0
0
0
282
0.383152
b9cd7df81437d8aa9311f772f8fd75744e9a395a
5,108
py
Python
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
3
2019-11-09T17:29:55.000Z
2021-12-19T21:52:12.000Z
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
null
null
null
MyServer.py
bisw1jit/MyServer
cbd7bc4015482ce8f24314894148f7e20ef66b21
[ "MIT" ]
null
null
null
# Tool Name :- MyServer # Author :- LordReaper # Date :- 13/11/2018 - 9/11/2019 # Powered By :- H1ckPro Software's import sys import os from time import sleep from core.system import * if len(sys.argv)>1: pass else: print ("error : invalid arguments !!") print ("use : myserver --help for more information") s...
34.748299
98
0.576155
0
0
0
0
0
0
0
0
2,584
0.505873
b9cda5cbb2749647d6a78abf80d9eb5c24205425
341
py
Python
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
tests/test_gen_epub.py
ffreemt/tmx2epub
55a59cb2a9b7f42031a65f64c29e5c43fdb487ea
[ "MIT" ]
null
null
null
""" test gen_epub. """ from tmx2epub.gen_epub import gen_epub def test_gen_epub2(): """ test_gen_epub2. """ from pathlib import Path infile = r"tests\2.tmx" stem = Path(infile).absolute().stem outfile = f"{Path(infile).absolute().parent / stem}.epub" assert gen_epub(infile, debug=True) == out...
22.733333
61
0.653959
0
0
0
0
0
0
0
0
116
0.340176
b9cde2fbd07898c518510cadb194827f6566c927
716
py
Python
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
pub_sub/python/http/checkout/app.py
amulyavarote/quickstarts
c21a8f58d515b28eaa8a3680388fa06995c2331b
[ "Apache-2.0" ]
null
null
null
import json import time import random import logging import requests import os logging.basicConfig(level=logging.INFO) base_url = os.getenv('BASE_URL', 'http://localhost') + ':' + os.getenv( 'DAPR_HTTP_PORT', '3500') PUBSUB_NAME = 'order_pub_sub' TOPIC = 'orders' logging.info('Publishing to baseUR...
25.571429
72
0.642458
0
0
0
0
0
0
0
0
239
0.333799
b9ce404499c062b33e8623b446d27dfebe6f033f
52,312
py
Python
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
1
2019-08-14T04:17:06.000Z
2019-08-14T04:17:06.000Z
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
null
null
null
jj.py
smailedge/pro
f86347d4368bc97aa860b37caa9ba10e84a93738
[ "Unlicense" ]
7
2018-10-27T11:58:45.000Z
2021-02-11T19:45:30.000Z
# -*- coding: utf-8 -*- from linepy import * from datetime import datetime from time import sleep from humanfriendly import format_timespan, format_size, format_number, format_length import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, pytz, urllib, urllib.parse #===...
51.742829
168
0.404267
0
0
0
0
0
0
0
0
11,161
0.209557
b9cea3f3b51bf703897e952ed45d88260e3502a1
1,190
py
Python
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
2
2018-12-17T10:10:49.000Z
2018-12-17T11:18:32.000Z
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
null
null
null
dd_app/messaging/backend.py
datadealer/dd_app
3806b9b9df165a49f0fca8a249170b4ccd4d0177
[ "Artistic-2.0" ]
1
2021-06-06T22:28:12.000Z
2021-06-06T22:28:12.000Z
class RedisBackend(object): def __init__(self, settings={}, *args, **kwargs): self.settings = settings @property def connection(self): # cached redis connection if not hasattr(self, '_connection'): self._connection = self.settings.get('redis.connector').get() re...
28.333333
73
0.608403
1,189
0.99916
285
0.239496
401
0.336975
0
0
174
0.146218
b9cf5fa54caecef97e6454178f438ce16bc99d7b
241
py
Python
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
fetch_data.py
bitfag/bt-macd-binance
eeffe52f8e561ff521629839078ff886e7bf700e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from btmacd.binance_fetcher import BinanceFetcher def main(): fetcher = BinanceFetcher("BTCUSDT", filename="binance_ohlc.csv", start_date="01.01.2018") fetcher.fetch() if __name__ == "__main__": main()
18.538462
93
0.705394
0
0
0
0
0
0
0
0
70
0.290456
b9d0d7e9fc82e29bf1385d169d21f03d43d467e2
25,508
py
Python
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
1
2022-03-06T15:37:18.000Z
2022-03-06T15:37:18.000Z
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/diagnostic.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
43.015177
85
0.663361
0
0
0
0
0
0
0
0
16,533
0.64815
b9d22fbf764d6a06a81fe68e7bedb0cb2069ff17
2,360
py
Python
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
13
2020-02-24T16:57:37.000Z
2021-12-14T16:47:41.000Z
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
3
2021-01-08T14:06:33.000Z
2021-09-07T13:39:46.000Z
mpl/models/leaf.py
jiangyuang/ModelPruningLibrary
9c8ba5a3c5d118f37768d5d42254711f48d88745
[ "MIT" ]
3
2020-05-30T17:59:43.000Z
2021-04-13T04:55:33.000Z
from torch import nn as nn from .base_model import BaseModel from ..nn.conv2d import DenseConv2d from ..nn.linear import DenseLinear __all__ = ["Conv2", "conv2", "Conv4", "conv4"] class Conv2(BaseModel): def __init__(self): super(Conv2, self).__init__() self.features = nn.Sequential(DenseConv2d(...
36.307692
96
0.469068
2,056
0.871186
0
0
0
0
0
0
94
0.039831
b9d2bd5114a0540a0095f6c31a8ad07b71899f53
29,424
py
Python
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
1
2017-07-10T17:33:31.000Z
2017-07-10T17:33:31.000Z
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
null
null
null
scripts/generate_network_interactomix.py
quimaguirre/NetworkAnalysis
c7a4da3ba5696800738b4767065ce29fa0020d79
[ "MIT" ]
null
null
null
import argparse import ConfigParser import sys, os, re import biana try: from biana import * except: sys.exit(10) import methods_dictionaries as methods_dicts def main(): options = parse_user_arguments() generate_network(options) def parse_user_arguments(*args, **kwds): parser = arg...
48.157119
591
0.569195
0
0
0
0
0
0
0
0
10,337
0.351312
b9d2c04ffcb32d5c9ad6c0f626a368e22db97763
4,504
py
Python
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
tests/data/s3_scrape_config.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
""" This is an extract config intended for S3 object manifests produced by TBD. To use it, you must import it in another extract config and override at least the `source_data_url`. You may also append additional operations to the `operations` list as well. For example you could have the following in your extract conf...
27.463415
78
0.67984
0
0
0
0
0
0
0
0
1,573
0.349245
b9d3222fd93bbc8ba199ba7a401394dc7531a2ff
665
py
Python
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5c973ec1b5ab2e387646/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import bpy from bpy.app.handlers import persistent bl_info = { "name": "Playback Once", "author": "Adhi Hargo", "version": (1, 0, 0), "blender": (2, 67, 3), "location": "", "description": "Playback once.", "warning": "", "wiki_url": "", "tracker_url": "", "category": "Animation"...
22.931034
63
0.645113
0
0
0
0
130
0.195489
0
0
169
0.254135
b9d47acd47b8bd0babe955a7bbbde7c4d9080b36
688
py
Python
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
2
2022-02-13T04:57:10.000Z
2022-02-13T10:40:14.000Z
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
null
null
null
Py3Challenges/saves/challenges/c6_min.py
AlbertUnruh/Py3Challenges
52f03f157860f6464f0c1710bf051a8099c29ea2
[ "MIT" ]
null
null
null
""" To master this you should consider using the builtin-``min``-function. """ from ...challenge import Challenge from random import randint x = [] for _ in range(randint(2, 10)): x.append(randint(1, 100)) intro = f"You have to print the lowest value of {', '.join(str(_) for _ in x[:-1])} and {x[-1]}. (values: x...
22.193548
109
0.632267
0
0
0
0
0
0
0
0
186
0.270349
b9d600352f466e38045c7614f4b0151d5eb8f878
4,625
py
Python
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
1
2021-11-29T13:38:09.000Z
2021-11-29T13:38:09.000Z
services/web/server/tests/unit/with_dbs/01/test_director_v2.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
# pylint:disable=unused-variable # pylint:disable=unused-argument # pylint:disable=redefined-outer-name from typing import AsyncIterator import pytest from aioresponses import aioresponses from faker import Faker from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from models_...
30.833333
87
0.780973
0
0
142
0.030703
1,738
0.375784
3,188
0.689297
165
0.035676
b9d60ecc3068b2d42bc6110555d94274b9cac29c
930
py
Python
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
5
2021-11-09T10:25:35.000Z
2022-03-30T03:57:46.000Z
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
null
null
null
tools/py/heatmap.py
sriramreddyM/pLitter
e506777af0b8bbae411b474f5eacee91e8efea59
[ "MIT" ]
1
2021-09-09T08:04:46.000Z
2021-09-09T08:04:46.000Z
''' converts video to frames and saves images by different interval, or overlap, etc ''' import folium from folium import plugins from folium.plugins import HeatMap import csv # class plitterMap(): # def __int__(self, file_path): # self.data = file_path # df = [] # with open(self.data) as f...
30
133
0.53871
0
0
0
0
0
0
0
0
807
0.867742
b9d6dd8bd3445675e1356c10ac0bb61cd00aba81
3,027
py
Python
generator.py
Geoalert/emergency-mapping
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
3
2018-04-04T17:58:53.000Z
2021-10-14T08:50:13.000Z
generator.py
aeronetlab/map_augury
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
null
null
null
generator.py
aeronetlab/map_augury
96668e4e5aa2b520e5727536f7a8f4c262ee3da6
[ "MIT" ]
1
2020-03-24T12:07:07.000Z
2020-03-24T12:07:07.000Z
import numpy as np def random_augmentation(img, mask): #you can add any augmentations you need return img, mask def batch_generator(image, mask, batch_size=1, crop_size=0, patch_size=256, bbox= None, augment...
40.905405
116
0.570202
0
0
2,895
0.956392
0
0
0
0
973
0.32144
b9d71e12c5fdd4a3220a64251c8e0e2c9a302fe4
13,351
py
Python
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2021-09-07T14:53:57.000Z
2021-09-07T14:53:57.000Z
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
2
2020-02-04T05:01:38.000Z
2020-02-18T06:44:52.000Z
awx/api/metadata.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
1
2020-01-28T05:34:09.000Z
2020-01-28T05:34:09.000Z
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. from collections import OrderedDict # Django from django.core.exceptions import PermissionDenied from django.db.models.fields import PositiveIntegerField, BooleanField from django.db.models.fields.related import ForeignKey from django.http import Http404 from ...
43.630719
131
0.601004
12,416
0.929968
0
0
0
0
0
0
3,486
0.261104
b9d7834f2dd39b0c5b6da30b8ebfe19e7026adeb
1,985
py
Python
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
85
2017-09-22T10:48:51.000Z
2021-06-11T18:33:28.000Z
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
51
2017-10-17T10:16:16.000Z
2020-08-29T23:10:21.000Z
plugins/python/tasks.py
BBVA/deeptracy
40f4b6bba2bdd345e95e42d474c05fa90f15c3e9
[ "Apache-1.1" ]
14
2017-11-20T10:20:16.000Z
2021-02-02T21:35:07.000Z
import json from washer.worker.actions import AppendStdout, AppendStderr from washer.worker.actions import CreateNamedLog, AppendToLog from washer.worker.actions import SetProperty from washer.worker.commands import washertask def pipenv_graph2deps(rawgraph): graph = json.loads(rawgraph) def build_entry(dat...
28.357143
75
0.614106
0
0
1,724
0.868514
892
0.44937
0
0
299
0.15063
b9d84b2b4c7d4cbbbf84bcb2ee37459c480a1a5e
715
py
Python
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
1
2017-10-26T12:30:04.000Z
2017-10-26T12:30:04.000Z
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
null
null
null
senity/utils/getSiteProfile.py
pkokkinos/senity
c6e41678620bef558cc3600929a8320ff2a285cf
[ "MIT" ]
null
null
null
import json import os # get site profile def getSiteProfile(site_file): with open(site_file) as json_file: json_data = json.load(json_file) return json_data # get all site profile def getAllSiteProfiles(site_folder): allSiteProfiles = {} allSiteFiles = os.listdir(site_folder) for ...
23.833333
77
0.664336
0
0
0
0
0
0
0
0
170
0.237762
b9d87f8b647f237794f75914da625ea130e200c3
5,959
py
Python
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
1
2022-03-17T03:40:57.000Z
2022-03-17T03:40:57.000Z
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
null
null
null
ppo_new/baseline.py
QingXinHu123/Lane_change_RL
06c70e6f58d3478669b56800028e320ca03f5222
[ "MIT" ]
null
null
null
import os, sys from env.LaneChangeEnv import LaneChangeEnv import random import numpy as np if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) print('success') else: sys.exit("please declare environment variable 'SUMO_HOME'") import traci def ep...
36.558282
164
0.659171
0
0
0
0
0
0
0
0
1,527
0.256251
b9d8a3bc2867b57ba7db6ffd06a68bdf7372909c
1,261
py
Python
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
clean_data.py
toogy/pendigits-hmm
03382e1457941714439d40b67e53eaf117fe4d08
[ "MIT" ]
null
null
null
import numpy as np import pickle from collections import defaultdict from parsing import parser from analysis import training def main(): parse = parser.Parser(); train_digits = parse.parse_file('data/pendigits-train'); test_digits = parse.parse_file('data/pendigits-test') centroids = training.get_d...
24.25
72
0.704996
0
0
0
0
0
0
0
0
120
0.095163
b9d992fc9c803eca7ba614c187b28cbfcef4b1f8
5,988
py
Python
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
8
2021-08-31T02:14:19.000Z
2021-12-28T19:20:59.000Z
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
8
2021-07-12T13:55:00.000Z
2021-10-04T14:53:21.000Z
scripts/commit_validation/commit_validation/commit_validation.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2021-09-16T05:06:18.000Z
2021-09-16T05:06:18.000Z
# # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # import abc import importlib import os import pkgutil import re import time from typing import Dict, List, ...
31.68254
124
0.631096
1,338
0.223447
0
0
1,160
0.193721
0
0
2,430
0.405812
b9db09c1d1c26d802117168878ef76954cf77560
3,360
py
Python
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
matrixprofile/algorithms/snippets.py
KSaiRahul21/matrixprofile
d8250e30d90ed0453bb7c35bb34ab0c04ae7b334
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals range = getattr(__builtins__, 'xrange', range) # end of py2 compatability boilerplate import numpy as np from matrixprofil...
29.734513
84
0.633036
0
0
0
0
0
0
0
0
1,237
0.368155
b9db24edad8766b6e734d6a8a9c26aff6bb04235
2,360
py
Python
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
1
2020-12-23T12:34:00.000Z
2020-12-23T12:34:00.000Z
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/logging/formatter.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
import json import re from copy import copy from logging import Formatter from .profile import used_memory from ..helper import colored class ColorFormatter(Formatter): """Format the log into colored logs based on the log-level. """ MAPPING = { 'DEBUG': dict(color='white', on_color=None), # white ...
34.705882
114
0.601695
2,211
0.936864
0
0
0
0
0
0
847
0.358898
b9db51239c1e9a509c29f6e80aebfb0363b62210
194
py
Python
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc191/b.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() n,x=map(int,input().split()) a=list(map(int,input().split())) aa=list(filter(lambda b:b!=x,a)) print(*aa)
24.25
44
0.71134
0
0
0
0
0
0
0
0
0
0
b9dc15c3ca6876833207138ba4d65fbd0be25acd
61,341
py
Python
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
tests/integration/test_streaming_e2e.py
cfogg/python-client
40e6891c8240e6b2acd5df538e622e9f15de43d6
[ "Apache-2.0" ]
null
null
null
"""Streaming integration tests.""" # pylint:disable=no-self-use,invalid-name,too-many-arguments,too-few-public-methods,line-too-long # pylint:disable=too-many-statements,too-many-locals,too-many-lines import threading import time import json from queue import Queue from splitio.client.factory import get_factory from te...
43.137131
115
0.600887
55,493
0.904664
0
0
0
0
0
0
25,177
0.410443
b9dc3713922fc2f091f8ac06b4fabec4e905eb4d
1,647
py
Python
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
null
null
null
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
2
2020-02-10T19:37:47.000Z
2020-02-10T19:44:54.000Z
venues/abstract_venue.py
weezel/BandEventNotifier
55824ba26aba9882f46d1770ec5df592a5dc32bc
[ "0BSD" ]
null
null
null
import re from abc import ABC, abstractmethod from typing import Any, Dict, Generator class IncorrectVenueImplementation(Exception): pass # class AbstractVenue(metaclass=ABC): class AbstractVenue(ABC): def __init__(self): self.url = "" self.name = "" self.city = "" self.count...
27.45
66
0.57377
1,527
0.921545
0
0
122
0.073627
0
0
179
0.108027
b9dcf24da986778ebcd29602d923908626cfea3c
4,263
py
Python
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
10
2019-05-18T22:23:44.000Z
2022-01-25T15:24:45.000Z
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
1
2020-01-07T15:24:16.000Z
2020-01-15T00:39:01.000Z
mtl/util/pipeline.py
vandurme/TFMTL
5958187900bdf67089a237c523b6caa899f63ac1
[ "Apache-2.0" ]
1
2021-12-02T02:24:06.000Z
2021-12-02T02:24:06.000Z
# Copyright 2018 Johns Hopkins University. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34.658537
80
0.649073
2,714
0.636641
0
0
182
0.042693
0
0
1,158
0.27164
b9dd82e962e13070a8526b2d4d0da1d0be6265ee
7,417
py
Python
src/py65/devices/mpu65c02.py
dabeaz/py65
62d790445018f0616508022912b67d8d64935a29
[ "BSD-3-Clause" ]
5
2015-03-19T22:22:45.000Z
2020-05-15T18:26:59.000Z
src/py65/devices/mpu65c02.py
BigEd/py65
57d5e7191362006c1d6fa20662da3e4854f1b7c2
[ "BSD-3-Clause" ]
null
null
null
src/py65/devices/mpu65c02.py
BigEd/py65
57d5e7191362006c1d6fa20662da3e4854f1b7c2
[ "BSD-3-Clause" ]
3
2015-04-27T02:42:29.000Z
2021-07-16T20:50:23.000Z
from py65.devices import mpu6502 from py65.utils.devices import make_instruction_decorator class MPU(mpu6502.MPU): def __init__(self, *args, **kwargs): mpu6502.MPU.__init__(self, *args, **kwargs) self.name = '65C02' self.waiting = False def step(self): if self.waiting: ...
27.369004
71
0.58676
7,322
0.987192
0
0
5,486
0.739652
0
0
532
0.071727
b9ddc98cf55e2bef4fcf498ec4787ca57bad46d0
5,623
py
Python
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
1
2021-09-03T04:02:25.000Z
2021-09-03T04:02:25.000Z
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
3
2020-09-29T21:43:39.000Z
2021-07-21T22:18:27.000Z
tests/test__io.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
4
2019-11-14T13:25:24.000Z
2021-04-30T22:08:53.000Z
import pandas as pd import shutil import os import io from ms_mint.Mint import Mint from pathlib import Path as P from ms_mint.io import ( ms_file_to_df, mzml_to_pandas_df_pyteomics, convert_ms_file_to_feather, convert_ms_file_to_parquet, MZMLB_AVAILABLE, ) from paths import ( TEST_MZML, ...
27.563725
81
0.634181
0
0
0
0
0
0
0
0
1,246
0.22159
b9de795b7b1298f8cad5f30e914735224920a0f9
1,158
py
Python
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
core/views.py
moiyad/image
d4515ef3057794f38268a6887bfff157115f26f7
[ "MIT" ]
null
null
null
from django.core.files.storage import FileSystemStorage from django.shortcuts import render, redirect from core.forms import DocumentForm from core.models import Document from media import image_cv2 def home(request): documents = Document.objects.all() number = len(image_cv2.myList) return render(request...
30.473684
88
0.668394
0
0
0
0
0
0
0
0
173
0.149396
b9df48f54330cde291fba9c3ce4e17b22e7c1da1
1,156
py
Python
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
5
2019-11-05T20:40:40.000Z
2020-09-16T03:13:54.000Z
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/verifair/benchmarks/fairsquare/M_BN_F_SVM_A_Q.py
obastani/verifair
1d5efea041330fa9fe8d59d976bdd3ef97aff417
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from .helper import * def sample(flag): sex = step([(0,1,0.3307), (1,2,0.6693)]) if sex < 1: capital_gain = gaussian(568.4105, 24248365.5428) if capital_gain < 7298.0000: age = gaussian(38.4208, 184.9151) capital_loss = gaussian(86.5949, 157731.9553) else: ...
33.028571
85
0.569204
0
0
0
0
0
0
0
0
0
0
b9dfea4e7beba7ec415b85a76c49ed3af214dec4
25,442
py
Python
ml4chem/atomistic/models/neuralnetwork.py
muammar/mlchem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
77
2019-08-05T17:30:22.000Z
2022-03-28T14:31:35.000Z
ml4chem/atomistic/models/neuralnetwork.py
muammar/ml4chem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
6
2019-07-31T18:59:38.000Z
2020-10-18T18:15:07.000Z
ml4chem/atomistic/models/neuralnetwork.py
muammar/mlchem
365487c23ea3386657e178e56ab31adfe8d5d073
[ "BSD-3-Clause-LBNL" ]
15
2020-02-28T10:11:21.000Z
2021-12-01T13:45:33.000Z
import dask import datetime import logging import time import torch import numpy as np import pandas as pd from collections import OrderedDict from ml4chem.metrics import compute_rmse from ml4chem.atomistic.models.base import DeepLearningModel, DeepLearningTrainer from ml4chem.atomistic.models.loss import AtomicMSELos...
33.742706
88
0.526924
24,815
0.975279
0
0
4,504
0.177016
0
0
8,413
0.330648
b9e018d6290ebe7b0654b7e76a8df225914e3778
7,104
py
Python
hatsploit/core/db/db.py
EntySec/HatSploit
8e445804c252cc24e87888be2c2efc02750ce5ee
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/core/db/db.py
YurinDoctrine/HatSploit
b1550323e08336ec057cbafb77003c22a3bbee91
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/core/db/db.py
YurinDoctrine/HatSploit
b1550323e08336ec057cbafb77003c22a3bbee91
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020-2022 EntySec # # 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 rights # to...
38.193548
86
0.639077
5,810
0.817849
0
0
0
0
0
0
2,672
0.376126
b9e0543df8f2ae150950f2a9787edb6296aac618
2,482
py
Python
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
43
2015-08-04T20:13:41.000Z
2019-04-12T17:21:36.000Z
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
966
2015-07-29T16:43:21.000Z
2019-05-09T21:02:28.000Z
bluesky/tests/test_simulators.py
NSLS-II/bluesky
b7d666e65cf4ef556fb46b744c33264c8e3f7507
[ "BSD-3-Clause" ]
40
2015-07-29T16:42:41.000Z
2019-02-07T02:30:34.000Z
from bluesky.plans import scan from bluesky.simulators import (print_summary, print_summary_wrapper, summarize_plan, check_limits, plot_raster_path) import pytest from bluesky.plans import grid_scan def test_print_summary(...
34
76
0.636583
0
0
0
0
0
0
0
0
644
0.259468
b9e09def642ce98a753ac3053c44b1ba7d862f16
4,850
py
Python
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
shutTheBox/main.py
robi1467/shut-the-box
ed1a8f13bc74caa63361453e723768a9cbe1dac4
[ "MIT" ]
null
null
null
import random numbers_list = [1,2,3,4,5,6,7,8,9,10] game_won = False game_completed = False #Stats games_played = 0 games_won = 0 games_lost = 0 average_score = 0 total_score = 0 def welcome(): welcome_message = "Welcome to shut the box" print(welcome_message) i = 0 result = "" while i < len(number...
28.034682
127
0.549897
0
0
0
0
0
0
0
0
621
0.128041
b9e0c71df07f6cc03e495d11899558d7e577552a
3,803
py
Python
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/common/actors/systemfacts/tests/test_systemfacts_selinux.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
import warnings import pytest from leapp.libraries.actor.systemfacts import get_selinux_status from leapp.models import SELinuxFacts no_selinux = False try: import selinux except ImportError: no_selinux = True warnings.warn( 'Tests which uses `selinux` will be skipped' ' due to library un...
38.414141
83
0.674993
84
0.022088
0
0
3,271
0.86011
0
0
1,196
0.314489
b9e1517b77ef8c0c8643211eb516389a83db60f8
2,608
py
Python
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
3
2020-05-21T20:19:40.000Z
2022-02-27T08:20:10.000Z
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
null
null
null
Phase-1/Python Basic 2/Day-24.py
emetowinner/python-challenges
520da69da0f2632deb1e81136d2b62d40555a4aa
[ "MIT" ]
4
2020-05-12T16:41:52.000Z
2020-05-21T20:17:22.000Z
""" 1. Write a Python program to reverse only the vowels of a given string. Sample Output: w3resuorce Python Perl ASU 2. Write a Python program to check whether a given integer is a palindrome or not. Note: An integer is a palindrome when it reads the same backward as forward. Negative numbers are not palindromic. Sa...
25.821782
204
0.717408
0
0
0
0
0
0
0
0
2,607
0.999617
b9e1d3ca3ecc29b35600c2af35a03fcf35a771c0
3,413
py
Python
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_IPxlatCfg.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-IPxlatCfg GUID : 3e5ac668-af52-4c15-b99b-a3e7a6616ebd """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.p...
29.17094
123
0.699092
1,893
0.554644
0
0
3,011
0.882215
0
0
980
0.287137
b9e2c12e3855c30001fd37ab610587d3e95c803d
535
py
Python
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
microservices/users/config.py
Levakin/sanic-test-app
d96a54a21f6d0d3b262bbc7bc75f5fa3b12c3b61
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from distutils.util import strtobool class Config: DEBUG = bool(strtobool(os.getenv('DEBUG', "False"))) DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017') WORKERS = int(os.getenv('WORKERS', 2)) LOGO = os.getenv('LOGO', None) HOST = os.getenv('HOST', '127...
31.470588
63
0.646729
460
0.859813
0
0
0
0
0
0
158
0.295327
b9e36baa14d5265769af32c8ed910969e39eaf3a
199
py
Python
semantic-python/test/fixtures/4-01-lambda-literals.py
Temurson/semantic
2e9cd2c006cec9a0328791e47d8c6d60af6d5a1b
[ "MIT" ]
8,844
2019-05-31T15:47:12.000Z
2022-03-31T18:33:51.000Z
semantic-python/test/fixtures/4-01-lambda-literals.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
401
2019-05-31T18:30:26.000Z
2022-03-31T16:32:29.000Z
semantic-python/test/fixtures/4-01-lambda-literals.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
504
2019-05-31T17:55:03.000Z
2022-03-30T04:15:04.000Z
# CHECK-TREE: { const <- \x -> \y -> x; y <- const #true #true; z <- const #false #false; #record { const: const, y : y, z: z, }} const = lambda x, y: x y = const(True, True) z = const(False, False)
39.8
129
0.557789
0
0
0
0
0
0
0
0
129
0.648241
b9e379a95e3f4e855adb56ee1112dc1aa95e6a78
9,351
py
Python
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
33
2017-08-24T16:38:15.000Z
2022-03-17T15:55:52.000Z
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
3
2018-10-12T11:17:22.000Z
2019-05-30T09:49:11.000Z
main.py
mithi/semantic-segmentation
85e9df04397745e0c6ab252e30991fa9b514ec1a
[ "MIT" ]
26
2017-09-17T09:09:52.000Z
2020-01-14T02:48:56.000Z
import tensorflow as tf import os.path import warnings from distutils.version import LooseVersion import glob import helper import project_tests as tests #-------------------------- # USER-SPECIFIED DATA #-------------------------- # Tune these parameters NUMBER_OF_CLASSES = 2 IMAGE_SHAPE = (160, 576) EPOCHS = 20 ...
37.8583
146
0.69276
0
0
0
0
0
0
0
0
4,277
0.457384
b9e38ca4d963e2aa4de106573e34682092b6337e
22,356
py
Python
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
tests/scanner/audit/log_sink_rules_engine_test.py
BrunoReboul/forseti-security
9d4a61b3e5a5d22a4330d15ddf61063fc9079071
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
40.79562
84
0.560834
21,020
0.94024
0
0
0
0
0
0
7,729
0.345724
b9e3fca3aec04c54b087304757154615d5a67e58
2,852
py
Python
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
3
2022-01-12T06:51:51.000Z
2022-02-23T18:54:33.000Z
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
6
2021-08-31T19:21:26.000Z
2022-01-03T05:53:42.000Z
backend/api/ulca-ums-service/user-management/utilities/orgUtils.py
agupta54/ulca
c1f570ac254ce2ac73f40c49716458f4f7cbaee2
[ "MIT" ]
8
2021-08-12T08:07:49.000Z
2022-01-25T04:40:51.000Z
import uuid from config import USR_ORG_MONGO_COLLECTION, USR_MONGO_COLLECTION import db from models.response import post_error import logging log = logging.getLogger('file') class OrgUtils: def __init__(self): pass #orgId generation @staticmethod def generate_org_id(): """UUID gener...
41.333333
149
0.619565
2,674
0.937588
0
0
2,580
0.904628
0
0
1,160
0.406732
b9e478ed385905aa26b48748e1fbf896e8ced766
4,299
py
Python
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
setup.py
AntonBiryukovUofC/diffvg
e081098f52b82bfd0b7e91114d289d65ef969a60
[ "Apache-2.0" ]
null
null
null
# Adapted from https://github.com/pybind/cmake_example/blob/master/setup.py import os import re import sys import platform import subprocess import importlib from sysconfig import get_paths import importlib from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from setuptools.comma...
38.044248
109
0.601303
2,711
0.630612
0
0
0
0
0
0
968
0.225169
b9e64ab7c515862e0dec6a8272d8a276b9bd86b9
14,587
py
Python
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
2
2017-01-16T03:10:57.000Z
2017-01-16T03:11:00.000Z
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
null
null
null
robotpy_ext/common_drivers/navx/registerio.py
twinters007/robotpy-wpilib-utilities
d2e18c16fc97a469e0621521e0fbed0093610d6e
[ "MIT", "BSD-3-Clause" ]
null
null
null
# validated: 2017-02-19 DS c5e3a8a9b642 roborio/java/navx_frc/src/com/kauailabs/navx/frc/RegisterIO.java #---------------------------------------------------------------------------- # Copyright (c) Kauai Labs 2015. All Rights Reserved. # # Created in support of Team 2465 (Kauaibots). Go Purple Wave! # # Open Source S...
54.632959
159
0.676973
13,781
0.944745
0
0
0
0
0
0
1,642
0.112566
b9e6a0bf2a4d3e860c6eb607624b101a086157b4
12,517
py
Python
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
RigolWFM/channel.py
wvdv2002/RigolWFM
849a1130c9194f052eaf5582dfa67e7a5708a3a3
[ "BSD-3-Clause" ]
null
null
null
#pylint: disable=invalid-name #pylint: disable=too-many-instance-attributes #pylint: disable=too-many-return-statements #pylint: disable=too-many-statements """ Class structure and methods for an oscilloscope channel. The idea is to collect all the relevant information from all the Rigol scope waveforms into a single ...
36.176301
96
0.589199
10,225
0.816824
0
0
0
0
0
0
2,709
0.216408
b9e6a9be08cb7ae14c68608c944b95cbe6233b10
1,477
py
Python
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
configs/raubtierv2a/faster_rcnn_x101_64x4d_fpn_1x_raubtierv2a_nofreeze_4gpu.py
esf-bt2020/mmdetection
abc5fe060e0fcb716f845c85441be3741b22d3cf
[ "Apache-2.0" ]
null
null
null
_base_ = '../faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco.py' model = dict( backbone=dict( num_stages=4, #frozen_stages=4 ), roi_head=dict( bbox_head=dict( num_classes=3 ) ) ) dataset_type = 'COCODataset' classes = ('luchs', 'rotfuchs', 'wolf') data = dict...
26.375
151
0.704807
0
0
0
0
0
0
0
0
835
0.565335
b9e6fcabd0b33c8ba893844382f8413f57f64840
262
py
Python
driver/python/setup.py
wbaweto/QConf
977a53d601eab2055fd8fb344b92f4026d178ad5
[ "BSD-2-Clause" ]
2,056
2015-03-23T04:51:13.000Z
2022-03-20T11:57:36.000Z
driver/python/setup.py
xzz0329/QConf
f852f984de0b55bbca5bcb433a7be5af6383c449
[ "BSD-2-Clause" ]
116
2015-03-25T01:32:39.000Z
2022-02-12T03:21:08.000Z
driver/python/setup.py
xzz0329/QConf
f852f984de0b55bbca5bcb433a7be5af6383c449
[ "BSD-2-Clause" ]
634
2015-03-24T11:51:22.000Z
2022-01-28T04:22:19.000Z
from distutils.core import setup, Extension setup(name = 'qconf_py', version = '1.2.2', ext_modules = [Extension('qconf_py', ['lib/python_qconf.cc'], include_dirs=['/usr/local/include/qconf'], extra_objects=['/usr/local/qconf/lib/libqconf.a'] )])
43.666667
105
0.683206
0
0
0
0
0
0
0
0
107
0.408397
b9e707edd4da101ada4ff00b233330f2c2f9843e
148
py
Python
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
abc153/d.py
Lockdef/kyopro-code
2d943a87987af05122c556e173e5108a0c1c77c8
[ "MIT" ]
null
null
null
h = int(input()) i = 1 a = 1 b = 1 c = 1 while h >= a: a = 2 ** i i += 1 s = 0 t = True for j in range(1, i-1): c += 2 ** j print(c)
8.705882
23
0.398649
0
0
0
0
0
0
0
0
0
0
b9e96b262a690da4aaab0bf9584b51a15851826f
6,784
py
Python
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
210
2021-06-05T20:06:17.000Z
2022-03-31T18:13:17.000Z
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
73
2021-06-01T21:22:44.000Z
2022-03-31T18:33:24.000Z
demos/python/sdk_wireless_camera_control/open_gopro/demos/log_battery.py
Natureshadow/OpenGoPro
05110123cfbf6584288b813f2d4896d3a091480e
[ "MIT" ]
70
2021-06-07T03:59:04.000Z
2022-03-26T10:51:15.000Z
# log_battery.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). # This copyright was auto-generated on Wed, Sep 1, 2021 5:05:45 PM """Example to continuously read the battery (with no Wifi connection)""" import csv import time import logging import argparse import threading fro...
34.969072
139
0.627358
388
0.057193
0
0
399
0.058815
0
0
2,423
0.357164
b9ea2a649f07b6a108f30b09b86010ae0b3acd70
47
py
Python
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
1
2015-11-08T11:33:15.000Z
2015-11-08T11:33:15.000Z
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
null
null
null
tumbleweed/models.py
mcroydon/django-tumbleweed
3f1eab2bf12350a91ca38165efec0c221a1fe69a
[ "BSD-3-Clause" ]
null
null
null
# These are not the droids you are looking for.
47
47
0.765957
0
0
0
0
0
0
0
0
47
1
b9ea32c16e86b4071267eb26a711d79f81eaea56
2,925
py
Python
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
xos/hpc_observer/steps/sync_originserver.py
wathsalav/xos
f6bcaa37a948ee41729236afe7fce0802e002404
[ "Apache-2.0" ]
null
null
null
import os import sys import base64 from django.db.models import F, Q from xos.config import Config from observer.syncstep import SyncStep from core.models import Service from hpc.models import ServiceProvider, ContentProvider, CDNPrefix, OriginServer from util.logger import Logger, logging # hpclibrary will be in ste...
34.411765
229
0.654701
2,443
0.835214
0
0
0
0
0
0
731
0.249915
b9ea437d66df34d28efcf808ad16c896dadcac76
400
py
Python
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
main.py
aroxby/pixel-processor
9cfe260a085ced0883ce8b0a35c28020f4aa8737
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PIL import Image def tranform(r, g, b): tmp = b b = g // 2 g = tmp r = r // 2 return r, g, b def main(): im = Image.open('blue-flames.jpg') input_pixels = im.getdata() output_pixels = tuple(tranform(*pixel) for pixel in input_pixels) im.putdata(output_...
17.391304
69
0.6
0
0
0
0
0
0
0
0
67
0.1675
b9eab80495274dd2446a7b029f17be91df29a452
1,539
py
Python
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/weave/examples/swig2_example.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
"""Simple example to show how to use weave.inline on SWIG2 wrapped objects. SWIG2 refers to SWIG versions >= 1.3. To run this example you must build the trivial SWIG2 extension called swig2_ext. To do this you need to do something like this:: $ swig -c++ -python -I. -o swig2_ext_wrap.cxx swig2_ext.i $ g++ -Wall ...
28.5
69
0.690058
0
0
0
0
0
0
0
0
1,168
0.758934
b9eba9b75a6e45fee4cdfe3d81874f5e8476b939
1,951
py
Python
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/simplify.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
from wolframclient.language.expression import WLSymbol from nnDiff import * def parseGlobalSymbol(s): if isinstance(s, numbers.Number): return s if isinstance(s, WLSymbol): if s.name == 'E': return 'E' else: return s.name[7:] def parse(exp): symbol =...
27.097222
67
0.438237
0
0
0
0
0
0
0
0
103
0.052793
b9ebcddd99e456fbeb39a0191aad31656c7f4943
856
py
Python
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
setup.py
EdWard680/python-firetv
4c02f79a1c8ae60a489297178d010a31545a3b5d
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='firetv', version='1.0.7', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='[email protected]', pac...
30.571429
99
0.613318
0
0
0
0
0
0
0
0
503
0.587617
b9ec25017a264a5c2dd928342198ca509ad93675
893
py
Python
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
199
2015-01-20T13:49:13.000Z
2022-03-21T18:35:29.000Z
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
905
2015-01-07T09:21:15.000Z
2022-03-31T16:29:44.000Z
neo/io/exampleio.py
Mario-Kart-Felix/python-neo
951c97cf9eb56f5489da88940de920329e0f4c1b
[ "BSD-3-Clause" ]
178
2015-01-05T12:34:39.000Z
2022-02-20T23:06:52.000Z
""" neo.io have been split in 2 level API: * neo.io: this API give neo object * neo.rawio: this API give raw data as they are in files. Developper are encourage to use neo.rawio. When this is done the neo.io is done automagically with this king of following code. Author: sgarcia """ from neo.io.basefromrawio i...
28.806452
93
0.724524
504
0.56439
0
0
0
0
0
0
534
0.597984
b9ecb48aece2a2ca161d7bba9b3c95a928b2be7f
728
py
Python
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
108
2017-03-14T05:40:13.000Z
2022-03-03T12:35:49.000Z
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
8
2017-03-14T05:40:13.000Z
2018-10-13T07:07:29.000Z
scrapyproject/migrations/0003_auto_20170209_1025.py
sap9433/Distributed-Multi-User-Scrapy-System-with-a-Web-UI
0676f7599f288409d0faf7b6211c171ce8c46a7a
[ "MIT" ]
43
2017-04-19T12:18:07.000Z
2021-11-25T09:37:17.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scrapyproject', '0002_auto_20170208_1738'), ] operations = [ migrations.AlterField( model_name='project', ...
24.266667
53
0.575549
619
0.850275
0
0
0
0
0
0
134
0.184066
b9eda494aa9f90de7b3474adbd78e46927f9990c
406
py
Python
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
src/cart/forms.py
cbsBiram/xarala__ssr
863e1362c786daa752b942b796f7a015211d2f1b
[ "FSFAP" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ COURSE_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)] class CartAddCourseForm(forms.Form): quantity = forms.TypedChoiceField( choices=COURSE_QUANTITY_CHOICES, coerce=int, label=_("Quantité") ) override = form...
27.066667
72
0.726601
260
0.638821
0
0
0
0
0
0
11
0.027027
b9eda5f604ec6cf197f2876a0f748c37ee805587
73
py
Python
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
patches/datasets/__init__.py
sflippl/patches
c19889e676e231af44669a01c61854e9e5791227
[ "MIT" ]
null
null
null
"""Datasets of latent predictability tasks. """ from .pilgrimm import *
14.6
43
0.726027
0
0
0
0
0
0
0
0
47
0.643836