hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c14e591039dd750e7374ae95e52a9d63641b1d3
1,469
py
Python
tools/2_write_unit_test_run.py
LockOne/AFLplusplus-1
1b179ef30b25dc6dc7879815b29caa9b7afcf783
[ "Apache-2.0" ]
null
null
null
tools/2_write_unit_test_run.py
LockOne/AFLplusplus-1
1b179ef30b25dc6dc7879815b29caa9b7afcf783
[ "Apache-2.0" ]
null
null
null
tools/2_write_unit_test_run.py
LockOne/AFLplusplus-1
1b179ef30b25dc6dc7879815b29caa9b7afcf783
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os f1 = open("func_list", "r") f2 = open("3_run.sh", "w") try: os.mkdir("results") except: pass TIMEOUT = 120 * 60 #sec, total timeout NUM_CORE = 12 INDEX = 2 num_drivers = 0 subjects = [] for line in f1: line = line.strip() source_file = line.split(":")[0] funcname = line.split...
23.31746
165
0.659632
import os f1 = open("func_list", "r") f2 = open("3_run.sh", "w") try: os.mkdir("results") except: pass TIMEOUT = 120 * 60 NUM_CORE = 12 INDEX = 2 num_drivers = 0 subjects = [] for line in f1: line = line.strip() source_file = line.split(":")[0] funcname = line.split(":")[1] if os.path.isfile("{}.{}.dr...
true
true
1c14e598342501810a653bed6c8e9958b2981ac4
17,366
py
Python
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_wait.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_wait.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_wait.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigip_wait short_descri...
32.33892
112
0.583324
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigip_wait short_description: Wait for a BIG-IP condition before continuing description: - With this module, you can wait for BIG-IP to be "ready", meaning the BIG-IP is ready to accept configu...
true
true
1c14e6af66c96556b5e250c06efc883dab49b115
3,930
py
Python
amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/ami_handlers/ami_handlers/CdrEventHandler.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/ami_handlers/ami_handlers/CdrEventHandler.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/telephony/impl/instances/asterisk_16/ami_handlers/ami_handlers/CdrEventHandler.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
from datetime import datetime from time import time from glassio.context import get_context from amocrm_asterisk_ng.domain import CallCompletedEvent from amocrm_asterisk_ng.domain import CallStatus from glassio.logger import ILogger from glassio.event_bus import IEventBus from ..ami_store import IAmiStore from .........
29.548872
88
0.635623
from datetime import datetime from time import time from glassio.context import get_context from amocrm_asterisk_ng.domain import CallCompletedEvent from amocrm_asterisk_ng.domain import CallStatus from glassio.logger import ILogger from glassio.event_bus import IEventBus from ..ami_store import IAmiStore from .........
true
true
1c14e8ed62fb946f968729fce8d32dfdf98ec0a7
5,883
py
Python
tests/qt_test.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
8
2016-09-26T01:35:15.000Z
2022-02-23T04:05:23.000Z
tests/qt_test.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
4
2016-05-18T11:04:56.000Z
2018-10-24T11:03:03.000Z
tests/qt_test.py
vlukes/io3d
34d048b7f737a5e56610879f6ab103128e8f0750
[ "MIT" ]
6
2017-03-24T20:43:21.000Z
2021-08-23T06:05:34.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from loguru import logger # import funkcí z jiného adresáře import os.path import os.path as op # import copy import unittest import pytest # sample_data_path = os.path.dirname(os.path.abspath(__file__)) # sample_data_path # sys.path.append(os.path.join(path_to_scrip...
32.147541
100
0.643549
from loguru import logger import os.path import os.path as op import unittest import pytest import numpy as np try: import dicom dicom.debug(False) except: import pydicom as dicom dicom.config.debug(False) import sys import io3d import io3d.dcmreaddata as dcmr from PyQt5.QtWidgets import Q...
true
true
1c14eaa44bde2ad760186c175505885a77545e69
6,488
py
Python
napari/viewer.py
will-moore/napari
56d18b4563654417067d187f8d796c7b3898c56f
[ "BSD-3-Clause" ]
null
null
null
napari/viewer.py
will-moore/napari
56d18b4563654417067d187f8d796c7b3898c56f
[ "BSD-3-Clause" ]
null
null
null
napari/viewer.py
will-moore/napari
56d18b4563654417067d187f8d796c7b3898c56f
[ "BSD-3-Clause" ]
null
null
null
import platform import sys from os.path import dirname, join from qtpy.QtGui import QIcon from qtpy.QtWidgets import QApplication from . import __version__ from ._qt.qt_main_window import Window from ._qt.qt_viewer import QtViewer from ._qt.qthreading import create_worker, wait_for_workers_to_quit from .components im...
35.648352
83
0.601726
import platform import sys from os.path import dirname, join from qtpy.QtGui import QIcon from qtpy.QtWidgets import QApplication from . import __version__ from ._qt.qt_main_window import Window from ._qt.qt_viewer import QtViewer from ._qt.qthreading import create_worker, wait_for_workers_to_quit from .components im...
true
true
1c14eac8848e1d6af8d8f092de8136f539bc1225
670
py
Python
app/constants.py
balb0x/phone-crud-backend
c27cd7859c5fa7716525ee43c2d8f54b8fd37202
[ "MIT" ]
null
null
null
app/constants.py
balb0x/phone-crud-backend
c27cd7859c5fa7716525ee43c2d8f54b8fd37202
[ "MIT" ]
null
null
null
app/constants.py
balb0x/phone-crud-backend
c27cd7859c5fa7716525ee43c2d8f54b8fd37202
[ "MIT" ]
null
null
null
MONGOALCHEMY_DATABASE = 'MONGOALCHEMY_DATABASE' MONGOALCHEMY_CONNECTION_STRING = 'MONGOALCHEMY_CONNECTION_STRING' SECRET_KEY = 'SECRET_KEY' AUTHORIZATION = 'Authorization' BEARER_REPLACE = 'Bearer ' PUBLIC_ID = 'public_id' PASSWORD = 'password' USERNAME = 'username' EXP = 'exp' TOKEN = 'token' NAME = 'name' BRAND_NA...
18.108108
65
0.701493
MONGOALCHEMY_DATABASE = 'MONGOALCHEMY_DATABASE' MONGOALCHEMY_CONNECTION_STRING = 'MONGOALCHEMY_CONNECTION_STRING' SECRET_KEY = 'SECRET_KEY' AUTHORIZATION = 'Authorization' BEARER_REPLACE = 'Bearer ' PUBLIC_ID = 'public_id' PASSWORD = 'password' USERNAME = 'username' EXP = 'exp' TOKEN = 'token' NAME = 'name' BRAND_NA...
true
true
1c14eaff93e682baae69f842931b4e56c3d41958
103
py
Python
apps/subacc/templates/subacc/__init__.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
1
2020-10-29T07:29:49.000Z
2020-10-29T07:29:49.000Z
apps/subacc/templates/__init__.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
7
2020-02-11T23:03:55.000Z
2021-12-13T19:42:01.000Z
apps/subacc/templates/subacc/__init__.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
2
2018-10-06T21:45:51.000Z
2020-10-10T16:10:36.000Z
""" bbofuser FILE: __init__.py Created: 8/3/15 6:53 PM """ __author__ = 'Mark Scrimshire:@ekivemark'
11.444444
41
0.68932
__author__ = 'Mark Scrimshire:@ekivemark'
true
true
1c14eb7edc929c4d5018fe286044ea038f3f3dfa
1,483
py
Python
service/factory.py
Strangemother/python-simple-websocket-server
1586a9e934c1b671636cfad9fbaba8c213b18a1e
[ "MIT" ]
null
null
null
service/factory.py
Strangemother/python-simple-websocket-server
1586a9e934c1b671636cfad9fbaba8c213b18a1e
[ "MIT" ]
null
null
null
service/factory.py
Strangemother/python-simple-websocket-server
1586a9e934c1b671636cfad9fbaba8c213b18a1e
[ "MIT" ]
null
null
null
from autobahn.asyncio.websocket import WebSocketServerFactory from wlog import color_plog log = color_plog('yellow').announce(__spec__) class BroadcastServerFactory(WebSocketServerFactory): """ Simple broadcast server broadcasting any message it receives to all currently connected clients. ...
29.078431
89
0.604181
from autobahn.asyncio.websocket import WebSocketServerFactory from wlog import color_plog log = color_plog('yellow').announce(__spec__) class BroadcastServerFactory(WebSocketServerFactory): server_version = 'Facor' @property def server(self): return "Strangemother/BroadcastServerFacto...
true
true
1c14ec4cc79100a5419e65d2b09cd15a61f6cc59
221
py
Python
tests/integration/beet/examples/mc_folder_structure/resourcepack/assets/minecraft/textures/item/example1.animation.py
OrangeUtan/MCMetagen
0293ea14bf1c6b1bae58741f9876ba662930b43d
[ "MIT" ]
null
null
null
tests/integration/beet/examples/mc_folder_structure/resourcepack/assets/minecraft/textures/item/example1.animation.py
OrangeUtan/MCMetagen
0293ea14bf1c6b1bae58741f9876ba662930b43d
[ "MIT" ]
null
null
null
tests/integration/beet/examples/mc_folder_structure/resourcepack/assets/minecraft/textures/item/example1.animation.py
OrangeUtan/MCMetagen
0293ea14bf1c6b1bae58741f9876ba662930b43d
[ "MIT" ]
null
null
null
from mcanitexgen.animation import Sequence, State, TextureAnimation, animation @animation("minecraft:item/example1.png") class Example1(TextureAnimation): A = State(0) B = State(1) main = Sequence(A, B, A)
22.1
78
0.719457
from mcanitexgen.animation import Sequence, State, TextureAnimation, animation @animation("minecraft:item/example1.png") class Example1(TextureAnimation): A = State(0) B = State(1) main = Sequence(A, B, A)
true
true
1c14ecc51f628931a3a39700e8119a4efea6ae7b
2,830
py
Python
train/models/utils.py
gaze-abyss/HMS
689b26781e2787c3f5d4b18fd9924b52d0b6a0e3
[ "MIT" ]
48
2020-01-06T19:02:35.000Z
2022-03-19T16:51:40.000Z
train/models/utils.py
gaze-abyss/HMS
689b26781e2787c3f5d4b18fd9924b52d0b6a0e3
[ "MIT" ]
1
2021-09-23T03:12:36.000Z
2021-09-23T03:21:14.000Z
train/models/utils.py
interlinetx/hsm
18de6c5db86f7b24b8e07ec1321df50d0382dad2
[ "MIT" ]
14
2020-01-08T03:56:28.000Z
2021-11-08T20:22:19.000Z
import os from collections import * from itertools import * import numpy as np import tensorflow as tf from . import constants binding_data = "binding.npy" domain_sequences = "dseq_mtx.npy" peptide_sequences = "pseq_mtx.npy" interaction_sequences = "iseqs_mtx.npy" InteractionDataTuple = namedtuple("InteractionDataT...
33.690476
151
0.680212
import os from collections import * from itertools import * import numpy as np import tensorflow as tf from . import constants binding_data = "binding.npy" domain_sequences = "dseq_mtx.npy" peptide_sequences = "pseq_mtx.npy" interaction_sequences = "iseqs_mtx.npy" InteractionDataTuple = namedtuple("InteractionDataT...
true
true
1c14ed1be5ed98f5b182015fe33943ae43d7bf27
5,399
py
Python
src/graph.py
dgoldstein1/graphApi
e375553b6032384ed0c24c1ef48203b3e726a5e6
[ "MIT" ]
null
null
null
src/graph.py
dgoldstein1/graphApi
e375553b6032384ed0c24c1ef48203b3e726a5e6
[ "MIT" ]
16
2019-05-13T01:12:25.000Z
2021-04-30T20:46:35.000Z
src/graph.py
dgoldstein1/graphApi
e375553b6032384ed0c24c1ef48203b3e726a5e6
[ "MIT" ]
null
null
null
import logging import signal import networkx as nx import re class Graph: """high level API for accessing graph object""" def __init__(self, path): """ - initializer - tries to read from graph, else initializes empty """ self.path = path # long-compute t...
32.524096
80
0.523986
import logging import signal import networkx as nx import re class Graph: def __init__(self, path): self.path = path self.pageRank = None try: self.g = nx.read_edgelist(path, create_using=nx.DiGraph) logging.debug("Loaded graph '{}' successfully".format(path...
true
true
1c14ed63e82f5f3ce8d92ceeb8e6900182788375
1,563
py
Python
GPy/inference/gradient_descent_update_rules.py
rokroskar/GPy
0f8dbba56d480902c86cfe8bad9e79d9eabae009
[ "BSD-3-Clause" ]
1
2016-08-04T21:28:11.000Z
2016-08-04T21:28:11.000Z
GPy/inference/gradient_descent_update_rules.py
rokroskar/GPy
0f8dbba56d480902c86cfe8bad9e79d9eabae009
[ "BSD-3-Clause" ]
null
null
null
GPy/inference/gradient_descent_update_rules.py
rokroskar/GPy
0f8dbba56d480902c86cfe8bad9e79d9eabae009
[ "BSD-3-Clause" ]
null
null
null
''' Created on 24 Apr 2013 @author: maxz ''' import numpy class GDUpdateRule(): _gradnat = None _gradnatold = None def __init__(self, initgrad, initgradnat=None): self.grad = initgrad if initgradnat: self.gradnat = initgradnat else: self.gradnat = initgrad ...
28.944444
73
0.601408
import numpy class GDUpdateRule(): _gradnat = None _gradnatold = None def __init__(self, initgrad, initgradnat=None): self.grad = initgrad if initgradnat: self.gradnat = initgradnat else: self.gradnat = initgrad def _gamma(self): raise Not...
true
true
1c14ed9cebd46ffde1bc309ebb9234fb9c9b211f
964
py
Python
name/decorators.py
antipyrrhus/django-name
8438aedac71f2894ae961e02b9b711bbe6152541
[ "BSD-3-Clause" ]
12
2015-04-24T18:18:12.000Z
2020-07-20T23:25:49.000Z
name/decorators.py
antipyrrhus/django-name
8438aedac71f2894ae961e02b9b711bbe6152541
[ "BSD-3-Clause" ]
123
2015-02-25T17:17:01.000Z
2021-10-01T18:49:57.000Z
name/decorators.py
antipyrrhus/django-name
8438aedac71f2894ae961e02b9b711bbe6152541
[ "BSD-3-Clause" ]
5
2015-05-22T19:41:21.000Z
2019-10-17T17:44:16.000Z
def jsonp(f): """Wrap a json response in a callback, and set the mimetype (Content-Type) header accordinglly (will wrap in text/javascript if there is a callback). If the "callback" or "jsonp" parameters are provided, will wrap the json output in callback({thejson}) Usage: @jsonp def my_js...
31.096774
78
0.606846
def jsonp(f): from functools import wraps @wraps(f) def jsonp_wrapper(request, *args, **kwargs): resp = f(request, *args, **kwargs) if resp.status_code != 200: return resp if 'callback' in request.GET: callback = request.GET['callback'] resp['Cont...
true
true
1c14edcaed320cadd69a83e25d4a4cc07c31ed63
1,595
py
Python
qmodels/notyet/mm1-evt.py
liuxfiu/qmodels
f04d28923c623495d7d1cc3962fb8cac61dc2685
[ "MIT" ]
null
null
null
qmodels/notyet/mm1-evt.py
liuxfiu/qmodels
f04d28923c623495d7d1cc3962fb8cac61dc2685
[ "MIT" ]
null
null
null
qmodels/notyet/mm1-evt.py
liuxfiu/qmodels
f04d28923c623495d7d1cc3962fb8cac61dc2685
[ "MIT" ]
null
null
null
# for random distributions, random number generators, statistics import random import numpy as np import scipy.stats as stats # for simulation import simulus def exp_generator(mean, seed): rv = stats.expon(scale=mean) rv.random_state = np.random.RandomState(seed) while True: # 100 random numbers a...
29
67
0.684639
import random import numpy as np import scipy.stats as stats import simulus def exp_generator(mean, seed): rv = stats.expon(scale=mean) rv.random_state = np.random.RandomState(seed) while True: for x in rv.rvs(100): yield x def arrive(): global num_in_system print('%g:...
true
true
1c14efb63fd732abe2bdbd94159a3fcda335b661
1,713
py
Python
postgresqleu/newsevents/models.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/newsevents/models.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/newsevents/models.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from postgresqleu.util.validators import validate_urlname class NewsPosterProfile(models.Model): author = models.OneToOneField(User, primary_key=True, on_delete=models.CASCADE) urlname = models.CharField...
42.825
108
0.720957
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from postgresqleu.util.validators import validate_urlname class NewsPosterProfile(models.Model): author = models.OneToOneField(User, primary_key=True, on_delete=models.CASCADE) urlname = models.CharField...
true
true
1c14f0534b73aa8d8b51b7d29502e3f424e59bb5
193
py
Python
client_ticket/models.py
hacknd/StreakHub
a39439be9c57eac2cabfa9ab6a7aa66f0745e168
[ "Apache-2.0" ]
null
null
null
client_ticket/models.py
hacknd/StreakHub
a39439be9c57eac2cabfa9ab6a7aa66f0745e168
[ "Apache-2.0" ]
1
2020-06-05T21:03:01.000Z
2020-06-05T21:03:01.000Z
client_ticket/models.py
hacknd/GamEngine
a39439be9c57eac2cabfa9ab6a7aa66f0745e168
[ "Apache-2.0" ]
null
null
null
from django.db import models from .managers import AccountTicketNumberManager # Create your models here. class AccountTicketNumber(models.Model): objects = AccountTicketNumberManager() pass
27.571429
48
0.829016
from django.db import models from .managers import AccountTicketNumberManager class AccountTicketNumber(models.Model): objects = AccountTicketNumberManager() pass
true
true
1c14f072192d76e94ac23e7776e90bfb98050f50
30,763
py
Python
cclib/parser/jaguarparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
1
2020-10-12T09:08:49.000Z
2020-10-12T09:08:49.000Z
cclib/parser/jaguarparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
null
null
null
cclib/parser/jaguarparser.py
chemistry-scripts/cclib
e8e0ea9b3e9b7091f8dfc4dd52d5e5e84a1cc258
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Parser for Jaguar output files""" import re import numpy from cclib.parser import logfileparser from cclib.parser i...
42.726389
116
0.48139
import re import numpy from cclib.parser import logfileparser from cclib.parser import utils class Jaguar(logfileparser.Logfile): def __init__(self, *args, **kwargs): super(Jaguar, self).__init__(logname="Jaguar", *args, **kwargs) def __str__(self): return "Jaguar output file %...
true
true
1c14f0b22290d27684fdd2bb19c9b53086ac3c5e
5,652
py
Python
scripts/funcotator/data_sources/getOreganno.py
sunboy0523/gatk
f06971ac0824ad7da38b878334df377c30457a23
[ "BSD-3-Clause" ]
1,273
2015-10-13T18:11:50.000Z
2022-03-28T09:25:13.000Z
scripts/funcotator/data_sources/getOreganno.py
sunboy0523/gatk
f06971ac0824ad7da38b878334df377c30457a23
[ "BSD-3-Clause" ]
6,471
2015-10-08T02:31:06.000Z
2022-03-31T17:55:25.000Z
scripts/funcotator/data_sources/getOreganno.py
sunboy0523/gatk
f06971ac0824ad7da38b878334df377c30457a23
[ "BSD-3-Clause" ]
598
2015-10-14T19:16:14.000Z
2022-03-29T10:03:03.000Z
#!/usr/bin/env python # Downloads and formats data for the Oreganno data source directly from the Oreganno website. ######################################################################## # Imports: import csv import sys import urllib2 from GenericTsvReader import GenericTsvReader #################################...
30.717391
124
0.591649
import csv import sys import urllib2 from GenericTsvReader import GenericTsvReader FILE_URL = 'http://www.oreganno.org/dump/ORegAnno_Combined_2016.01.19.tsv' RAW_FILE_NAME = FILE_URL.split('/')[-1] OUTPUT_HEADERS = ['Build', 'Chr', 'Start', 'End', 'ID', 'Values'] OUT_HG19_FILE_NAME_TEMPLATE = 'oreganno_%s.HG19.t...
false
true
1c14f0c5bb07ae6d0cf120c727f74ca293784fa9
12,041
py
Python
scripts/makecat.py
framawiki/pywikibot
9835260ef5f38ac83d3ce214c7d1abd594bea934
[ "MIT" ]
null
null
null
scripts/makecat.py
framawiki/pywikibot
9835260ef5f38ac83d3ce214c7d1abd594bea934
[ "MIT" ]
null
null
null
scripts/makecat.py
framawiki/pywikibot
9835260ef5f38ac83d3ce214c7d1abd594bea934
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ Bot to add new or existing categories to pages. This bot takes as its argument the name of a new or existing category. Multiple categories may be given. It will then try to find new articles for these categories (pages linked to and from pages already in the category), ask...
36.377644
79
0.557429
from __future__ import absolute_import, division, unicode_literals import codecs import pywikibot from pywikibot.bot import NoRedirectPageBot, SingleSiteBot from pywikibot import pagegenerators, i18n, textlib from pywikibot.tools import DequeGenerator class MakeCatBot(SingleSiteBot, NoRedirectPageBot): def ...
true
true
1c14f1c18605c0746c69daf3f62f48d46bebc476
74,298
py
Python
tests/unit/lib/package/test_artifact_exporter.py
zhuhaow/aws-sam-cli
59d82ec6848b5a0cdd544d8ada838d4d34052971
[ "Apache-2.0" ]
1
2022-01-27T02:42:38.000Z
2022-01-27T02:42:38.000Z
tests/unit/lib/package/test_artifact_exporter.py
zhuhaow/aws-sam-cli
59d82ec6848b5a0cdd544d8ada838d4d34052971
[ "Apache-2.0" ]
null
null
null
tests/unit/lib/package/test_artifact_exporter.py
zhuhaow/aws-sam-cli
59d82ec6848b5a0cdd544d8ada838d4d34052971
[ "Apache-2.0" ]
null
null
null
import json import tempfile import os import string import random import zipfile import unittest from contextlib import contextmanager, closing from unittest import mock from unittest.mock import patch, Mock, MagicMock from samcli.commands.package.exceptions import ExportFailedError from samcli.lib.package.s3_uploade...
43.021424
120
0.672831
import json import tempfile import os import string import random import zipfile import unittest from contextlib import contextmanager, closing from unittest import mock from unittest.mock import patch, Mock, MagicMock from samcli.commands.package.exceptions import ExportFailedError from samcli.lib.package.s3_uploade...
true
true
1c14f2d8f6a9c6deef7bc0f9b4246a1df45e5623
11,525
py
Python
modoboa/core/tests/test_views.py
HarshCasper/modoboa
a00baa0593107992f545ee3e89cd4346b9615a96
[ "0BSD" ]
1,602
2016-12-15T14:25:34.000Z
2022-03-31T16:49:25.000Z
modoboa/core/tests/test_views.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
1,290
2016-12-14T15:39:05.000Z
2022-03-31T13:49:09.000Z
modoboa/core/tests/test_views.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
272
2016-12-22T11:58:18.000Z
2022-03-17T15:57:24.000Z
"""Core views test cases.""" from testfixtures import compare from django import forms from django.urls import reverse from django.test import override_settings from modoboa.lib.tests import ModoTestCase from modoboa.parameters import forms as param_forms, tools as param_tools from .. import factories, models, signa...
38.036304
78
0.665336
from testfixtures import compare from django import forms from django.urls import reverse from django.test import override_settings from modoboa.lib.tests import ModoTestCase from modoboa.parameters import forms as param_forms, tools as param_tools from .. import factories, models, signals SETTINGS_SAMPLE = { "...
true
true
1c14f338ec4ea4aa982d1a71f2c200bb34811429
10,041
py
Python
silx/image/marchingsquares/test/test_mergeimpl.py
vincefn/silx
4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444
[ "CC0-1.0", "MIT" ]
2
2020-03-09T15:50:17.000Z
2020-03-09T15:50:23.000Z
silx/image/marchingsquares/test/test_mergeimpl.py
vincefn/silx
4b239abfc90d2fa7d6ab61425f8bfc7b83c0f444
[ "CC0-1.0", "MIT" ]
7
2016-10-19T09:27:26.000Z
2020-01-24T13:26:56.000Z
silx/image/marchingsquares/test/test_mergeimpl.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
1
2017-06-13T13:02:54.000Z
2017-06-13T13:02:54.000Z
# -*- coding: utf-8 -*- # # Project: silx # https://github.com/silx-kit/silx # # Copyright (C) 2012-2016 European Synchrotron Radiation Facility, Grenoble, France # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
36.78022
88
0.623245
__authors__ = ["V. Valls"] __license__ = "MIT" __date__ = "18/04/2018" import unittest import numpy from .._mergeimpl import MarchingSquaresMergeImpl class TestMergeImplApi(unittest.TestCase): def test_image_not_an_array(self): bad_image = 1 self.assertRaises(ValueError, MarchingSquaresMergeImp...
true
true
1c14f37e700b227c04f156a4a4d64866cc2d367d
280
py
Python
Dataset/Leetcode/test/66/606.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/66/606.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/66/606.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, digits: List[int]) -> List[int]: n=len(digits) sum=0 for i in range(n): sum=10*sum+digits[i] sum+=1 result=[] for i in str(sum): result.append(int(i)) return result
21.538462
50
0.478571
class Solution: def XXX(self, digits: List[int]) -> List[int]: n=len(digits) sum=0 for i in range(n): sum=10*sum+digits[i] sum+=1 result=[] for i in str(sum): result.append(int(i)) return result
true
true
1c14f52d65cce8a58c3553210816fb8b0b3dc356
385
py
Python
examples/text.py
patriciogonzalezvivo/AxiSurface
6336fed099ea81112d317961c6fabc06540266d4
[ "BSD-3-Clause" ]
18
2018-11-28T04:13:02.000Z
2022-02-01T20:06:42.000Z
examples/text.py
patriciogonzalezvivo/AxiSurface
6336fed099ea81112d317961c6fabc06540266d4
[ "BSD-3-Clause" ]
null
null
null
examples/text.py
patriciogonzalezvivo/AxiSurface
6336fed099ea81112d317961c6fabc06540266d4
[ "BSD-3-Clause" ]
2
2020-06-15T17:59:45.000Z
2022-01-15T17:19:01.000Z
#!/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 from AxiSurface import * axi = AxiSurface() text = Text(text='Hello World !!', center=[axi.width*0.5, axi.height*0.5] ) ax...
24.0625
75
0.74026
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from AxiSurface import * axi = AxiSurface() text = Text(text='Hello World !!', center=[axi.width*0.5, axi.height*0.5] ) axi.add( text ) axi.add( text.getBuffer(5) ) ax...
true
true
1c14f52f1e86fefa51378476879ac5e6f80c908f
987
py
Python
taxamo/models/verifySMSTokenOut.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
taxamo/models/verifySMSTokenOut.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
taxamo/models/verifySMSTokenOut.py
javor/taxamo-python
47696115fa76c0f6950717132eee2b39c9fdbce7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2014-2020 by Taxamo 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 applic...
30.84375
80
0.691996
class VerifySMSTokenOut: def __init__(self): self.swaggerTypes = { 'country_code': 'str' } self.country_code = None
true
true
1c14f567aa2eb20a1a2c5f9bcd28089a3a3f3fdd
8,582
py
Python
tests/mdts/lib/nose_plugin.py
adriansr/old-midonet
6898db9bdbaf680e37b32cc59787799a179aec2f
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/nose_plugin.py
adriansr/old-midonet
6898db9bdbaf680e37b32cc59787799a179aec2f
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/nose_plugin.py
adriansr/old-midonet
6898db9bdbaf680e37b32cc59787799a179aec2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Midokura SARL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
39.187215
79
0.556514
import os import xml.etree.ElementTree as ET from nose.plugins.base import Plugin import sys from StringIO import StringIO from mdts.services import service import shutil import subprocess import time from nose.util import ln from nose.pyversion import exc_to_unicode from nose.pyversion import force_unicode import l...
true
true
1c14f72e9c45e809e7b283b9ae0104a50041322f
358
py
Python
tests/scratch.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
250
2021-09-17T08:07:50.000Z
2022-03-31T11:32:37.000Z
tests/scratch.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
40
2021-09-14T19:21:59.000Z
2022-03-30T16:23:49.000Z
tests/scratch.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
47
2021-09-22T09:20:23.000Z
2022-03-31T11:32:36.000Z
from pymoo.algorithms.soo.nonconvex.de import DE from pymoo.factory import get_problem from pymoo.operators.sampling.lhs import LHS from pymoo.optimize import minimize problem = get_problem("ackley", n_var=10) algorithm = DE( pop_size=100, sampling=LHS(), variant='DE/current-to-pbest/1/bin') res = minimize(problem, ...
17.047619
48
0.776536
from pymoo.algorithms.soo.nonconvex.de import DE from pymoo.factory import get_problem from pymoo.operators.sampling.lhs import LHS from pymoo.optimize import minimize problem = get_problem("ackley", n_var=10) algorithm = DE( pop_size=100, sampling=LHS(), variant='DE/current-to-pbest/1/bin') res = minimize(problem, ...
true
true
1c14f732bd346249cd3498ae1fe8bb219a72a3c0
959
py
Python
examples/ccxt.pro/py/one-exchange-different-streams.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
24,910
2017-10-27T21:41:59.000Z
2022-03-31T23:08:57.000Z
examples/ccxt.pro/py/one-exchange-different-streams.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
8,201
2017-10-28T10:19:28.000Z
2022-03-31T23:49:37.000Z
examples/ccxt.pro/py/one-exchange-different-streams.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
6,632
2017-10-28T02:53:24.000Z
2022-03-31T23:20:14.000Z
import ccxtpro import asyncio async def watch_order_book(exchange, symbol): while True: orderbook = await exchange.watch_order_book(symbol) print(orderbook['datetime'], symbol, orderbook['asks'][0], orderbook['bids'][0]) async def watch_trades(exchange, symbol): while True: trades = ...
27.4
88
0.618352
import ccxtpro import asyncio async def watch_order_book(exchange, symbol): while True: orderbook = await exchange.watch_order_book(symbol) print(orderbook['datetime'], symbol, orderbook['asks'][0], orderbook['bids'][0]) async def watch_trades(exchange, symbol): while True: trades = ...
true
true
1c14f7895a9bfab3697d8228873662745708d818
11,365
py
Python
ascetic/query.py
emacsway/ascetic
a9f2c10af90bfedaa3ec58589b40ef7a677cd712
[ "MIT" ]
17
2015-09-05T21:43:51.000Z
2022-03-05T13:28:15.000Z
ascetic/query.py
emacsway/ascetic
a9f2c10af90bfedaa3ec58589b40ef7a677cd712
[ "MIT" ]
null
null
null
ascetic/query.py
emacsway/ascetic
a9f2c10af90bfedaa3ec58589b40ef7a677cd712
[ "MIT" ]
null
null
null
import copy import operator from functools import reduce, partial from sqlbuilder import smartsql from ascetic.exceptions import ObjectDoesNotExist from ascetic.relations import Relation, ForeignKey, OneToOne, OneToMany from ascetic.signals import field_mangling, column_mangling from ascetic.utils import to_tuple fact...
32.752161
125
0.622349
import copy import operator from functools import reduce, partial from sqlbuilder import smartsql from ascetic.exceptions import ObjectDoesNotExist from ascetic.relations import Relation, ForeignKey, OneToOne, OneToMany from ascetic.signals import field_mangling, column_mangling from ascetic.utils import to_tuple fact...
true
true
1c14f79292749f0345d1b38705f1db51082965ce
72
py
Python
Snowed In/snowed.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
Snowed In/snowed.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
Snowed In/snowed.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
input() mes = list(map(int, input().split())) print(max(mes)-min(mes))
24
38
0.625
input() mes = list(map(int, input().split())) print(max(mes)-min(mes))
true
true
1c14f85be7d1cabd0ab2039b26d123fe415d462f
10,833
py
Python
killerbee/GoodFETCCSPI.py
silicrax/killerbee
ced955578f573da14038978e012a146d0b19e945
[ "BSD-3-Clause" ]
1
2017-12-10T22:29:42.000Z
2017-12-10T22:29:42.000Z
killerbee/GoodFETCCSPI.py
silicrax/killerbee
ced955578f573da14038978e012a146d0b19e945
[ "BSD-3-Clause" ]
null
null
null
killerbee/GoodFETCCSPI.py
silicrax/killerbee
ced955578f573da14038978e012a146d0b19e945
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # GoodFET Chipcon RF Radio Client # # (C) 2009 Travis Goodspeed <travis at radiantmachines.com> # # This code is being rewritten and refactored. You've been warned! import sys, time, string, cStringIO, struct, glob, serial, os; from GoodFET import GoodFET; class GoodFETCCSPI(GoodFET): CCS...
32.629518
108
0.547863
import sys, time, string, cStringIO, struct, glob, serial, os; from GoodFET import GoodFET; class GoodFETCCSPI(GoodFET): CCSPIAPP=0x51; CCversions={0x233d: "CC2420", } def setup(self): """Move the FET into the CCSPI application.""" self.writecmd(self.CCSPIAPP,0x10,0,self.d...
false
true
1c14f8cc9b5679cba53a687f6ff7b650e176f001
7,132
py
Python
AndroidFTPBackup/service.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
6
2019-02-06T18:14:54.000Z
2022-01-25T15:30:10.000Z
AndroidFTPBackup/service.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
null
null
null
AndroidFTPBackup/service.py
SanketRevankar/AndroidFTP-DataBackup
54d740be49305ca993ebd541bb4998817886bdfd
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import threading from django.http import HttpResponse, JsonResponse from AndroidFTPBackup.constants import PyStrings as pS from AndroidFTPBackup.utils import BackupHelper from AndroidFTPBackup.utils.FtpHelper import FtpHelper from AndroidFTPBackup.utils.WiFiHelper import WiFi...
32.418182
113
0.650168
import asyncio import json import logging import threading from django.http import HttpResponse, JsonResponse from AndroidFTPBackup.constants import PyStrings as pS from AndroidFTPBackup.utils import BackupHelper from AndroidFTPBackup.utils.FtpHelper import FtpHelper from AndroidFTPBackup.utils.WiFiHelper import WiFi...
true
true
1c14f9f004a5c7d75a965471222c1f268157d3c1
992
py
Python
main_processes/workload_manager/main.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
5
2022-03-23T21:27:42.000Z
2022-03-24T19:57:27.000Z
main_processes/workload_manager/main.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
null
null
null
main_processes/workload_manager/main.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
1
2022-03-23T21:27:44.000Z
2022-03-23T21:27:44.000Z
import time import numpy as np from typing import Dict, List, Tuple from configs import GLOBAL_QUEUE_NAMES from nxs_libs.queue import ( NxsQueuePusherFactory, NxsQueueType, ) from nxs_types.nxs_args import NxsWorkloadManagerArgs from nxs_libs.interface.workload_manager import NxsWorkloadManager from nxs_libs.in...
27.555556
83
0.797379
import time import numpy as np from typing import Dict, List, Tuple from configs import GLOBAL_QUEUE_NAMES from nxs_libs.queue import ( NxsQueuePusherFactory, NxsQueueType, ) from nxs_types.nxs_args import NxsWorkloadManagerArgs from nxs_libs.interface.workload_manager import NxsWorkloadManager from nxs_libs.in...
true
true
1c14fb4d55a60b5f0c8845836a9741f230c5d314
55,816
py
Python
src/pretix/control/views/item.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
null
null
null
src/pretix/control/views/item.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
56
2020-05-07T07:54:17.000Z
2021-04-19T12:14:14.000Z
src/pretix/control/views/item.py
fakegit/pretix
b6e9e64ff967f7b4f91fe88694f4157d8a0787b4
[ "Apache-2.0" ]
null
null
null
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
38.977654
132
0.594883
import json from collections import OrderedDict, namedtuple from json.decoder import JSONDecodeError from django.contrib import messages from django.core.exceptions import PermissionDenied from django.core.files import File from django.db import transaction from django.db.models import Count, Exists, F, OuterRef, Pr...
true
true
1c14fbab59f54c076dbc26c13cf89c314d3f4d29
5,800
py
Python
pyvista/jupyter/notebook.py
ssg-aero/pyvista
5150b062cf835c6c6a44f6aefa4d53a1ad832ba3
[ "MIT" ]
null
null
null
pyvista/jupyter/notebook.py
ssg-aero/pyvista
5150b062cf835c6c6a44f6aefa4d53a1ad832ba3
[ "MIT" ]
4
2022-02-14T06:29:20.000Z
2022-03-25T06:27:06.000Z
pyvista/jupyter/notebook.py
ssg-aero/pyvista
5150b062cf835c6c6a44f6aefa4d53a1ad832ba3
[ "MIT" ]
null
null
null
""" Support dynamic or static jupyter notebook plotting. Includes: * ``ipyvtklink`` * ``panel`` * ``pythreejs`` * ``ipygany`` """ import warnings import os import numpy as np # This module should not be imported at the __init__ level, only as a # lazy import when trying to plot using jupyter notebooks try: imp...
31.868132
95
0.659828
import warnings import os import numpy as np try: import IPython from IPython import display except ImportError: raise ImportError('Install IPython to display an image in a notebook') from pyvista import _vtk PANEL_EXTENSION_SET = [False] def handle_plotter(plotter, backend=None, screenshot=None, ...
true
true
1c14fc73944714a05dee71589def73109aa48ac9
2,821
py
Python
enhaced-video-services/app.py
alwaysai/jetson-csi-high-definition-carmea
5a212c4130eabcb40e16ac439e2191daeba9e694
[ "MIT" ]
null
null
null
enhaced-video-services/app.py
alwaysai/jetson-csi-high-definition-carmea
5a212c4130eabcb40e16ac439e2191daeba9e694
[ "MIT" ]
null
null
null
enhaced-video-services/app.py
alwaysai/jetson-csi-high-definition-carmea
5a212c4130eabcb40e16ac439e2191daeba9e694
[ "MIT" ]
null
null
null
""" Using enhanced Jetson enhanced csi package with object detector. Use object detection to detect objects in the frame in realtime. The types of objects detected can be changed by selecting different models. To change the computer vision model, follow this guide: https://alwaysai.co/docs/application_development/cha...
37.118421
89
0.583836
import edgeiq import time import enhanced_csi def main(): obj_detect = edgeiq.ObjectDetection( "alwaysai/ssd_mobilenet_v1_coco_2018_01_28") obj_detect.load(engine=edgeiq.Engine.DNN_CUDA) print("Loaded model:\n{}\n".format(obj_detect.model_id)) print("Engine: {}".format(obj_detect.engi...
true
true
1c14fc91aca8fd3a9569013973b9768cf874ab58
10,392
py
Python
simulation/dqn-simulation/r11/dqn-delta-test.py
pgabriela/dqn-jitsi-autoscaler
b39eb335e584095ef66a9941dbe0b2ea21a02d4a
[ "Apache-2.0" ]
null
null
null
simulation/dqn-simulation/r11/dqn-delta-test.py
pgabriela/dqn-jitsi-autoscaler
b39eb335e584095ef66a9941dbe0b2ea21a02d4a
[ "Apache-2.0" ]
null
null
null
simulation/dqn-simulation/r11/dqn-delta-test.py
pgabriela/dqn-jitsi-autoscaler
b39eb335e584095ef66a9941dbe0b2ea21a02d4a
[ "Apache-2.0" ]
null
null
null
import math import random import time import calendar import os import pickle import requests import numpy as np import pandas as pd import matplotlib.pyplot as plt from collections import namedtuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F ############# # Q-Net...
33.307692
97
0.582082
import math import random import time import calendar import os import pickle import requests import numpy as np import pandas as pd import matplotlib.pyplot as plt from collections import namedtuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F class DQN(nn.Module):...
true
true
1c14fd5012730fa71c3d70bf9af5f0b8d7dc8d62
1,082
py
Python
Chapter06/mnist_cnn.py
PacktPublishing/Deep-Learning-with-Theano
39b940f7c6993533a9744d0c1b792e408486e89a
[ "MIT" ]
24
2017-08-01T20:04:52.000Z
2022-02-25T15:56:29.000Z
Chapter06/mnist_cnn.py
PacktPublishing/Deep-Learning-with-Theano
39b940f7c6993533a9744d0c1b792e408486e89a
[ "MIT" ]
3
2018-01-11T18:50:03.000Z
2021-03-01T14:52:01.000Z
Chapter06/mnist_cnn.py
PacktPublishing/Deep-Learning-with-Theano
39b940f7c6993533a9744d0c1b792e408486e89a
[ "MIT" ]
17
2017-09-18T09:06:00.000Z
2020-12-07T22:54:47.000Z
import theano import lasagne def model(l_input, input_dim=28, num_units=256, num_classes=10, p=.5): network = lasagne.layers.Conv2DLayer( l_input, num_filters=32, filter_size=(5, 5), nonlinearity=lasagne.nonlinearities.rectify, W=lasagne.init.GlorotUniform()) network = lasag...
43.28
70
0.649723
import theano import lasagne def model(l_input, input_dim=28, num_units=256, num_classes=10, p=.5): network = lasagne.layers.Conv2DLayer( l_input, num_filters=32, filter_size=(5, 5), nonlinearity=lasagne.nonlinearities.rectify, W=lasagne.init.GlorotUniform()) network = lasag...
true
true
1c14fdd4ef4d4009cdd7c6549b6727a89e63f265
4,338
py
Python
utils/mics_util.py
nosari20/centreon-mobileiron-plugin
ce61ef7aa3102bcb979341ecdedff30b0d130f4f
[ "MIT" ]
null
null
null
utils/mics_util.py
nosari20/centreon-mobileiron-plugin
ce61ef7aa3102bcb979341ecdedff30b0d130f4f
[ "MIT" ]
null
null
null
utils/mics_util.py
nosari20/centreon-mobileiron-plugin
ce61ef7aa3102bcb979341ecdedff30b0d130f4f
[ "MIT" ]
null
null
null
############################################################################################################### # Language : Python (3.x) # Filename : mics_util.py # Autor : https://github.com/nosari20 # Description : Nagios/Centreon plugin for MobileIron Core # Repository : https://github.c...
33.890625
168
0.454818
import requests import ssl import urllib3 import re urllib3.disable_warnings() def mics_info(host: str, username:str, password:str, uri:str, method:str = 'GET', data:dict = {}, port: int = 8443) -> (bool, str) : if uri.startswith('/') : uri = uri[1:] if method not in ['GET', 'P...
true
true
1c14fe87756d38ff047e33942406212c6e025c73
5,636
py
Python
tests/test_cifti_vis_map.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
84
2016-09-19T16:34:37.000Z
2022-03-31T05:47:05.000Z
tests/test_cifti_vis_map.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
108
2016-09-11T15:18:31.000Z
2022-03-06T07:03:12.000Z
tests/test_cifti_vis_map.py
helloTC/ciftify
ca6b83c8d40cd384de54269d7c62281552b91e21
[ "MIT" ]
296
2016-09-15T17:18:26.000Z
2022-01-17T18:16:11.000Z
#!/usr/bin/env python3 import unittest import importlib import random from unittest.mock import patch vis_map = importlib.import_module('ciftify.bin.cifti_vis_map') class TestUserSettings(unittest.TestCase): temp = '/tmp/fake_temp_dir' palette = 'PALETTE-NAME' def test_snap_set_to_none_when_in_index_mo...
35.225
80
0.622072
import unittest import importlib import random from unittest.mock import patch vis_map = importlib.import_module('ciftify.bin.cifti_vis_map') class TestUserSettings(unittest.TestCase): temp = '/tmp/fake_temp_dir' palette = 'PALETTE-NAME' def test_snap_set_to_none_when_in_index_mode(self): args ...
true
true
1c14fede40ac0df53a18f0aff8337eeb44ebc872
844
py
Python
modules/logging/commands.py
Oxylibrium/Nest
7e8d5c67aee38dc59edb19c05ac21916eec185e1
[ "MIT" ]
10
2018-04-21T07:29:42.000Z
2019-02-01T20:46:48.000Z
modules/logging/commands.py
Oxylibrium/Nest
7e8d5c67aee38dc59edb19c05ac21916eec185e1
[ "MIT" ]
2
2018-09-10T00:58:40.000Z
2019-12-22T11:19:58.000Z
modules/logging/commands.py
Oxylibrium/Nest
7e8d5c67aee38dc59edb19c05ac21916eec185e1
[ "MIT" ]
2
2018-09-09T23:07:56.000Z
2019-10-19T15:26:56.000Z
""" Log usage of commands. """ from discord.ext import commands class CommandLogger(commands.Cog): def __init__(self, bot): self._db = bot.get_cog("PostgreSQL") @commands.Cog.listener() async def on_command(self, ctx: commands.Context): """|coro| Logs a command. Paramet...
24.823529
101
0.50237
from discord.ext import commands class CommandLogger(commands.Cog): def __init__(self, bot): self._db = bot.get_cog("PostgreSQL") @commands.Cog.listener() async def on_command(self, ctx: commands.Context): async with self._db.pool.acquire() as conn: await conn.execute( ...
true
true
1c14ff1ebeae557fc3f67387f6a46f912a82879b
8,432
py
Python
setup.py
oz123/sphinx
4e9d1553968653df6699b20afc22b73eb3280185
[ "BSD-2-Clause" ]
null
null
null
setup.py
oz123/sphinx
4e9d1553968653df6699b20afc22b73eb3280185
[ "BSD-2-Clause" ]
2
2022-02-14T05:20:00.000Z
2022-03-02T11:01:47.000Z
setup.py
oz123/sphinx
4e9d1553968653df6699b20afc22b73eb3280185
[ "BSD-2-Clause" ]
1
2021-04-15T00:53:39.000Z
2021-04-15T00:53:39.000Z
import os import sys from distutils import log from io import StringIO from setuptools import find_packages, setup import sphinx with open('README.rst') as f: long_desc = f.read() if sys.version_info < (3, 6): print('ERROR: Sphinx requires at least Python 3.6 to run.') sys.exit(1) install_requires = [ ...
33.863454
80
0.522296
import os import sys from distutils import log from io import StringIO from setuptools import find_packages, setup import sphinx with open('README.rst') as f: long_desc = f.read() if sys.version_info < (3, 6): print('ERROR: Sphinx requires at least Python 3.6 to run.') sys.exit(1) install_requires = [ ...
true
true
1c150053da0323f3761ecf9d51a752bc40ebb031
4,399
py
Python
lib/model/rpn/rpn.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
2
2019-04-21T01:45:01.000Z
2020-03-11T07:09:18.000Z
lib/model/rpn/rpn.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
null
null
null
lib/model/rpn/rpn.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from lib.model.utils.config import cfg from .proposal_layer import _ProposalLayer from .anchor_target_layer import _AnchorTargetLayer from lib.model.utils.net_u...
37.922414
109
0.656058
from __future__ import absolute_import import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from lib.model.utils.config import cfg from .proposal_layer import _ProposalLayer from .anchor_target_layer import _AnchorTargetLayer from lib.model.utils.net_utils import _smo...
true
true
1c15007bb1a373326f2df342de2148f8d654391e
1,715
py
Python
src/sqlfluff/diff_quality_plugin.py
m-kuhn/sqlfluff
8c7bbcd3346abf7f613454b5d597252292be38cb
[ "MIT" ]
null
null
null
src/sqlfluff/diff_quality_plugin.py
m-kuhn/sqlfluff
8c7bbcd3346abf7f613454b5d597252292be38cb
[ "MIT" ]
null
null
null
src/sqlfluff/diff_quality_plugin.py
m-kuhn/sqlfluff
8c7bbcd3346abf7f613454b5d597252292be38cb
[ "MIT" ]
null
null
null
"""This module integrates SQLFluff with diff_cover's "diff-quality" tool.""" from diff_cover.hook import hookimpl as diff_cover_hookimpl from diff_cover.violationsreporters.base import BaseViolationReporter, Violation from .core import FluffConfig, Linter class SQLFluffViolationReporter(BaseViolationReporter): "...
33.627451
80
0.682799
from diff_cover.hook import hookimpl as diff_cover_hookimpl from diff_cover.violationsreporters.base import BaseViolationReporter, Violation from .core import FluffConfig, Linter class SQLFluffViolationReporter(BaseViolationReporter): supported_extensions = ["sql"] def __init__(self): super(SQLFluf...
true
true
1c15018a8b7bbc78462f93471ef293a37f103075
170
py
Python
code/rosws/src/ros_demonstration/src/assignment1.py
Ohara124c41/PlanEx
08522dd53fb4a53bab116fb9b2b7ac8a255bd6ad
[ "MIT" ]
null
null
null
code/rosws/src/ros_demonstration/src/assignment1.py
Ohara124c41/PlanEx
08522dd53fb4a53bab116fb9b2b7ac8a255bd6ad
[ "MIT" ]
null
null
null
code/rosws/src/ros_demonstration/src/assignment1.py
Ohara124c41/PlanEx
08522dd53fb4a53bab116fb9b2b7ac8a255bd6ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python import robot # start point to execute assignment 1 if __name__ == "__main__": robot_1 = robot.Robot() robot_1.execute_plan("assignment1")
18.888889
39
0.711765
import robot if __name__ == "__main__": robot_1 = robot.Robot() robot_1.execute_plan("assignment1")
true
true
1c15019c671976fe78cb10b5dee985585d1301d2
2,018
py
Python
jsongate.py
ngollan/murmur-jsongate
f36669b5c86e4499c86aca3a5da1625d922091ad
[ "MIT" ]
1
2018-03-25T09:55:46.000Z
2018-03-25T09:55:46.000Z
jsongate.py
ngollan/murmur-jsongate
f36669b5c86e4499c86aca3a5da1625d922091ad
[ "MIT" ]
null
null
null
jsongate.py
ngollan/murmur-jsongate
f36669b5c86e4499c86aca3a5da1625d922091ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Short demo for the Ice-to-JSON callback gateway. It will just sit there # and try to send authentication and information requests to an HTTP server # on localhost:10000, which likely means you get an error message every time # a user logs in to a server. # # To set the Slice file location, mak...
36.690909
103
0.770069
# available as part of murmur-manager: # http://github.com/cheald/murmur-manager import Ice, sys, os # The "murmur" package provides the Murmur ice bindings. See the header # comment for information on setting the Slice file path. from murmur import Murmur from murmur.json.authenticator import ServerAuthen...
false
true
1c1501d6e9fb271400ea05b5d7428829128affec
6,821
py
Python
salt/modules/systemd.py
inthecloud247/salt
4feda14159ade741bd5e6f86c7ff31d617927007
[ "Apache-2.0" ]
null
null
null
salt/modules/systemd.py
inthecloud247/salt
4feda14159ade741bd5e6f86c7ff31d617927007
[ "Apache-2.0" ]
null
null
null
salt/modules/systemd.py
inthecloud247/salt
4feda14159ade741bd5e6f86c7ff31d617927007
[ "Apache-2.0" ]
null
null
null
''' Provide the service module for systemd ''' # Import python libs import os import re # Import salt libs import salt.utils LOCAL_CONFIG_PATH = '/etc/systemd/system' VALID_UNIT_TYPES = ['service', 'socket', 'device', 'mount', 'automount', 'swap', 'target', 'path', 'timer'] def __virtual__(): ...
24.624549
89
0.620583
import os import re import salt.utils LOCAL_CONFIG_PATH = '/etc/systemd/system' VALID_UNIT_TYPES = ['service', 'socket', 'device', 'mount', 'automount', 'swap', 'target', 'path', 'timer'] def __virtual__(): if __grains__['kernel'] == 'Linux' and _sd_booted(): return 'service' retu...
true
true
1c150215ae5975e7211c9d274d9eedb3f0a553d2
2,345
py
Python
typeidea/blog/models.py
lpdswing/typeidea
71c3e4dfa3550634626ffe7980aa869344967b73
[ "Apache-2.0" ]
null
null
null
typeidea/blog/models.py
lpdswing/typeidea
71c3e4dfa3550634626ffe7980aa869344967b73
[ "Apache-2.0" ]
null
null
null
typeidea/blog/models.py
lpdswing/typeidea
71c3e4dfa3550634626ffe7980aa869344967b73
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Category(models.Model): STATUS_NORMAL = 1 STATUS_DELETE = 0 STATUS_ITEM = ( (STATUS_NORMAL, '正常'), (STATUS_DELETE, '删除'), ) name = models.CharField(max_length=50, verbose_name='名称') status = models....
33.028169
103
0.692537
from django.db import models from django.contrib.auth.models import User class Category(models.Model): STATUS_NORMAL = 1 STATUS_DELETE = 0 STATUS_ITEM = ( (STATUS_NORMAL, '正常'), (STATUS_DELETE, '删除'), ) name = models.CharField(max_length=50, verbose_name='名称') status = models....
true
true
1c1502946f39e6f7823318e886e7000f21b45d6c
1,607
py
Python
src/zope/app/zopeappgenerations/evolve2.py
zopefoundation/zope.app.zopeappgenerations
933320517dc5580e03d566b28703e6219fafa6e1
[ "ZPL-2.1" ]
null
null
null
src/zope/app/zopeappgenerations/evolve2.py
zopefoundation/zope.app.zopeappgenerations
933320517dc5580e03d566b28703e6219fafa6e1
[ "ZPL-2.1" ]
null
null
null
src/zope/app/zopeappgenerations/evolve2.py
zopefoundation/zope.app.zopeappgenerations
933320517dc5580e03d566b28703e6219fafa6e1
[ "ZPL-2.1" ]
1
2015-04-03T08:12:58.000Z
2015-04-03T08:12:58.000Z
############################################################################## # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
40.175
78
0.656503
__docformat__ = "reStructuredText" from zope.app.authentication.principalfolder import IInternalPrincipal from zope.app.component.interfaces import ISite from zope.generations.utility import findObjectsProviding, getRootFolder generation = 2 def evolve(context): root = getRootFolder(context) for site in fi...
true
true
1c150352a099f229706ef26365f7b57e181b0879
4,675
py
Python
aesthetic-models/numpy-version/convert_weights_to_numpy.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
6
2021-07-10T09:57:58.000Z
2022-01-13T09:27:46.000Z
aesthetic-models/numpy-version/convert_weights_to_numpy.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
null
null
null
aesthetic-models/numpy-version/convert_weights_to_numpy.py
mpetroff/accessible-color-cycles
473ad74eab8fb8926ea8ea15240f9ed5784e73bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Copyright (c) 2021 Matthew Petroff 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 use, copy, modify, me...
45.833333
84
0.672727
import gzip import os import shutil import numpy as np import h5py ENSEMBLE_COUNT = 100 weights = {"ensemble_count": ENSEMBLE_COUNT} for i in range(ENSEMBLE_COUNT): with gzip.open(f"../weights/set_model_weights_{i:03d}.h5.gz", "rb") as infile: weight_file = h5py.File(infile, "r") for key in ["l1...
true
true
1c1504dc523e145464f97d9df4ea5c1357344a82
6,102
py
Python
api-examples/layers_classify_pytorch.py
blester125/baseline
4ad4147d4a88a42b309c6784a95b0b9f1faa2c60
[ "Apache-2.0" ]
1
2019-08-13T21:35:20.000Z
2019-08-13T21:35:20.000Z
api-examples/layers_classify_pytorch.py
blester125/baseline
4ad4147d4a88a42b309c6784a95b0b9f1faa2c60
[ "Apache-2.0" ]
null
null
null
api-examples/layers_classify_pytorch.py
blester125/baseline
4ad4147d4a88a42b309c6784a95b0b9f1faa2c60
[ "Apache-2.0" ]
null
null
null
import argparse import baseline.embeddings from eight_mile.confusion import ConfusionMatrix import baseline from eight_mile.pytorch.optz import OptimizerManager, EagerOptimizer import baseline.pytorch.embeddings import eight_mile.pytorch.layers as L import torch.nn.functional as F from torch.utils.data import Dataset, ...
37.435583
182
0.67355
import argparse import baseline.embeddings from eight_mile.confusion import ConfusionMatrix import baseline from eight_mile.pytorch.optz import OptimizerManager, EagerOptimizer import baseline.pytorch.embeddings import eight_mile.pytorch.layers as L import torch.nn.functional as F from torch.utils.data import Dataset, ...
true
true
1c1504f47b72a36f62c12896a8d5ce81f2df054c
12,231
py
Python
examples/manual_drive/manual_drive.py
rcsnail/RCSnailPy
e5da13060f8cc8455951639c2c5c1a521622c464
[ "MIT" ]
null
null
null
examples/manual_drive/manual_drive.py
rcsnail/RCSnailPy
e5da13060f8cc8455951639c2c5c1a521622c464
[ "MIT" ]
null
null
null
examples/manual_drive/manual_drive.py
rcsnail/RCSnailPy
e5da13060f8cc8455951639c2c5c1a521622c464
[ "MIT" ]
null
null
null
import asyncio import os import time import pygame import logging from av import VideoFrame from getpass import getpass from rcsnail import RCSnail class Car: def __init__(self, update_override=None): # units in percentage range 0..1 self.steering = 0.0 self.throttle = 0.0 self.bra...
40.77
129
0.56692
import asyncio import os import time import pygame import logging from av import VideoFrame from getpass import getpass from rcsnail import RCSnail class Car: def __init__(self, update_override=None): self.steering = 0.0 self.throttle = 0.0 self.braking = 0.0 self.gear = 0 ...
true
true
1c1506488a1430966d5c9b4885bdbb4d1f8ac4a2
2,206
py
Python
strax/io.py
XeBoris/strax
4157f6b3fc5732d44ecd5e0f83d92d90187997d9
[ "BSD-3-Clause" ]
2
2020-07-15T09:34:46.000Z
2020-07-15T09:38:56.000Z
strax/io.py
XeBoris/strax
4157f6b3fc5732d44ecd5e0f83d92d90187997d9
[ "BSD-3-Clause" ]
null
null
null
strax/io.py
XeBoris/strax
4157f6b3fc5732d44ecd5e0f83d92d90187997d9
[ "BSD-3-Clause" ]
null
null
null
"""Read/write numpy arrays to/from compressed files or file-like objects """ from functools import partial import bz2 import os import numpy as np import blosc import zstd import strax export, __all__ = strax.exporter() blosc.set_releasegil(True) COMPRESSORS = dict( bz2=dict( compress=bz2.compress, ...
25.952941
74
0.646872
from functools import partial import bz2 import os import numpy as np import blosc import zstd import strax export, __all__ = strax.exporter() blosc.set_releasegil(True) COMPRESSORS = dict( bz2=dict( compress=bz2.compress, decompress=bz2.decompress), zstd=dict( compress=zstd.compres...
true
true
1c150648ae578079af4fe35aa58d9d54884ba955
3,181
py
Python
sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/purview/azure-purview-catalog/azure/purview/catalog/aio/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.477612
134
0.692235
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from .._version import VERSION if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential class PurviewCatalogClientConfiguration(Configuration): def ...
true
true
1c1506d873458866c99c83d51acba687f5eac782
16,160
py
Python
firewall-stateless.py
Liquidibrium/firewall
d438aa3360b5cf6a4f40456138c84b9a5cf445bf
[ "MIT" ]
null
null
null
firewall-stateless.py
Liquidibrium/firewall
d438aa3360b5cf6a4f40456138c84b9a5cf445bf
[ "MIT" ]
null
null
null
firewall-stateless.py
Liquidibrium/firewall
d438aa3360b5cf6a4f40456138c84b9a5cf445bf
[ "MIT" ]
null
null
null
from main import PKT_DIR_INCOMING, PKT_DIR_OUTGOING import socket import struct from struct import unpack import traceback import time GEO_LOCATIONS_FILE_PATH = "geoipdb.txt" DEBUG_MODE = False IMMEDIATELY_DROP = -1 IMMEDIATELY_FORWARD = 1 CONTINUE_CHECK = 0 ICMP_CODE = 1 TCP_CODE = 6 UDP_CODE = 17 def print_debug...
35.283843
108
0.582116
from main import PKT_DIR_INCOMING, PKT_DIR_OUTGOING import socket import struct from struct import unpack import traceback import time GEO_LOCATIONS_FILE_PATH = "geoipdb.txt" DEBUG_MODE = False IMMEDIATELY_DROP = -1 IMMEDIATELY_FORWARD = 1 CONTINUE_CHECK = 0 ICMP_CODE = 1 TCP_CODE = 6 UDP_CODE = 17 def print_debug...
false
true
1c15070994189b6c5d134ac31f5d3414af498ef9
5,515
py
Python
simscale_sdk/models/wedge_bc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/wedge_bc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/wedge_bc.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class WedgeBC(object): """NOTE: This class is auto generated by OpenA...
31.695402
380
0.606165
import pprint import re import six from simscale_sdk.configuration import Configuration class WedgeBC(object): openapi_types = { 'type': 'str', 'name': 'str', 'topological_reference': 'TopologicalReference' } attribute_map = { 'type': 'type', 'name': 'name',...
true
true
1c150827002ba4509b6c63a7d3e987644aafa4c3
6,225
py
Python
src/lane_detection_realsense.py
isarlab-department-engineering/ros-lane-detection
69436129ada3283b1472ccae5780d662a5fa6fe2
[ "BSD-3-Clause" ]
7
2018-11-05T16:15:11.000Z
2021-01-03T15:26:13.000Z
src/lane_detection_realsense.py
isarlab-department-engineering/ros-lane-detection
69436129ada3283b1472ccae5780d662a5fa6fe2
[ "BSD-3-Clause" ]
2
2017-09-12T09:05:49.000Z
2020-11-20T21:20:16.000Z
src/lane_detection_realsense.py
isarlab-department-engineering/ros-lane-detection
69436129ada3283b1472ccae5780d662a5fa6fe2
[ "BSD-3-Clause" ]
7
2017-09-12T08:31:26.000Z
2021-12-08T13:02:08.000Z
#!/usr/bin/env python import roslib,rospy,sys,cv2,time import numpy as np roslib.load_manifest('lane_follower') # from __future__ import print_function from std_msgs.msg import Int32 from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError bridge = CvBridge() pub = rospy.Publisher('lane_detectio...
29.642857
87
0.654618
import roslib,rospy,sys,cv2,time import numpy as np roslib.load_manifest('lane_follower') from std_msgs.msg import Int32 from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError bridge = CvBridge() pub = rospy.Publisher('lane_detection', Int32, queue_size=1) pub_image = rospy.Publisher('lane_det...
false
true
1c1508380b536685aa40d1158dbe676ae2352854
78
py
Python
spacetimeformer/spacetimeformer_model/__init__.py
bernhein/spacetimeformer
de252b68085943d979606fe69e177ac2a14586e7
[ "MIT" ]
null
null
null
spacetimeformer/spacetimeformer_model/__init__.py
bernhein/spacetimeformer
de252b68085943d979606fe69e177ac2a14586e7
[ "MIT" ]
null
null
null
spacetimeformer/spacetimeformer_model/__init__.py
bernhein/spacetimeformer
de252b68085943d979606fe69e177ac2a14586e7
[ "MIT" ]
null
null
null
from . import nn from .spacetimeformer_model import Spacetimeformer_Predictor
26
60
0.871795
from . import nn from .spacetimeformer_model import Spacetimeformer_Predictor
true
true
1c1508fcb08c802513dd0854adc127ef9b0f7d27
131,908
py
Python
mdpertool/src/app_functions.py
Bio-Otto/MDPerTool_GUI
26b3aeef506de5ec0ae767f69264ef16d4a3bb34
[ "MIT", "BSD-3-Clause" ]
4
2021-12-08T09:14:13.000Z
2022-02-07T07:24:04.000Z
mdpertool/src/app_functions.py
Bio-Otto/MDPerTool_GUI
26b3aeef506de5ec0ae767f69264ef16d4a3bb34
[ "MIT", "BSD-3-Clause" ]
null
null
null
mdpertool/src/app_functions.py
Bio-Otto/MDPerTool_GUI
26b3aeef506de5ec0ae767f69264ef16d4a3bb34
[ "MIT", "BSD-3-Clause" ]
null
null
null
import os.path import networkx as nx from PySide2.QtWidgets import QFileDialog, QDialog, QTableWidgetItem from PySide2.QtCore import Qt, Slot import csv from pathlib import Path from pdbfixer import PDBFixer from os import path from urllib.request import urlretrieve from openmm.app import * from .checkBox_menu import ...
61.870544
161
0.500349
import os.path import networkx as nx from PySide2.QtWidgets import QFileDialog, QDialog, QTableWidgetItem from PySide2.QtCore import Qt, Slot import csv from pathlib import Path from pdbfixer import PDBFixer from os import path from urllib.request import urlretrieve from openmm.app import * from .checkBox_menu import ...
true
true
1c1509bd372629cd9662ed634c085167041e8ddb
3,378
py
Python
config/settings.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
null
null
null
config/settings.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
15
2019-08-18T17:20:23.000Z
2021-06-09T18:15:40.000Z
config/settings.py
victtorvpb/employee-manager
fa0ea41a80e38378feef1fcbc071d9615f1d5b54
[ "Apache-2.0" ]
1
2019-08-20T00:47:04.000Z
2019-08-20T00:47:04.000Z
""" Django settings for config project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
25.022222
90
0.706631
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'x0wmh2qit@6wue9ht$(+kh0=ecru4qoj_k1aahu2h!2mn0347*' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_DEFAULT = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contentty...
true
true
1c1509ca4d42fdd5a62e8628c14978c5c1acdd68
1,459
py
Python
addons/pos_sale/tests/test_pos_sale_report.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/pos_sale/tests/test_pos_sale_report.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/pos_sale/tests/test_pos_sale_report.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo from odoo.addons.point_of_sale.tests.common import TestPoSCommon @odoo.tests.tagged('post_install', '-at_install') class TestPoSSaleReport(TestPoSCommon): def setUp(self): super(TestPoSSaleRep...
36.475
122
0.67512
import odoo from odoo.addons.point_of_sale.tests.common import TestPoSCommon @odoo.tests.tagged('post_install', '-at_install') class TestPoSSaleReport(TestPoSCommon): def setUp(self): super(TestPoSSaleReport, self).setUp() self.config = self.basic_config self.product0 = self.create_prod...
true
true
1c150d24a3f6c8e9cd107e927b46119ce875ff44
2,028
py
Python
myflaskapp/public/views.py
scripterkaran/flask
8b613ab19d03d1b83f54418ade58f5bc2eb305e7
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/public/views.py
scripterkaran/flask
8b613ab19d03d1b83f54418ade58f5bc2eb305e7
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/public/views.py
scripterkaran/flask
8b613ab19d03d1b83f54418ade58f5bc2eb305e7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Public section, including homepage and signup.""" from flask import Blueprint, flash, redirect, render_template, request, url_for from flask_login import login_required, login_user, logout_user from myflaskapp.extensions import login_manager from myflaskapp.public.forms import LoginForm from...
31.6875
113
0.685404
from flask import Blueprint, flash, redirect, render_template, request, url_for from flask_login import login_required, login_user, logout_user from myflaskapp.extensions import login_manager from myflaskapp.public.forms import LoginForm from myflaskapp.user.forms import RegisterForm from myflaskapp.user.models import...
true
true
1c150d2a27add14604952d29edcd044d78b4711e
679
py
Python
logger.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
1
2022-01-04T11:36:06.000Z
2022-01-04T11:36:06.000Z
logger.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
1
2022-01-08T20:18:50.000Z
2022-01-08T20:18:50.000Z
logger.py
Alternative-Profit/Ubot
529514307c5431144fd56f6aba928dce1e880d93
[ "Apache-2.0" ]
3
2022-01-08T20:10:47.000Z
2022-03-12T08:09:32.000Z
__all__ = ['logging'] import logging from logging.handlers import RotatingFileHandler logging.basicConfig(level=logging.INFO, format='[%(asctime)s - %(levelname)s] - %(name)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', handlers=[ Rot...
39.941176
84
0.584683
__all__ = ['logging'] import logging from logging.handlers import RotatingFileHandler logging.basicConfig(level=logging.INFO, format='[%(asctime)s - %(levelname)s] - %(name)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', handlers=[ Rot...
true
true
1c150f2a8f27af0183e3407213fe4b7a286d2e4f
649
py
Python
hermes/custom/FC.py
TanweerulHaque/hermes
d24770d7f8b5a7d84f98795079360b5264862297
[ "MIT" ]
null
null
null
hermes/custom/FC.py
TanweerulHaque/hermes
d24770d7f8b5a7d84f98795079360b5264862297
[ "MIT" ]
null
null
null
hermes/custom/FC.py
TanweerulHaque/hermes
d24770d7f8b5a7d84f98795079360b5264862297
[ "MIT" ]
1
2021-09-10T04:32:36.000Z
2021-09-10T04:32:36.000Z
import tensorflow as tf import pandas as pd from collections import defaultdict class FileCallback(tf.keras.callbacks.Callback): def __init__(self, save_format="", filepath=""): super(FileCallback, self).__init__() self.save_format = save_format self.dfparams = defaultdict(list) se...
29.5
60
0.644068
import tensorflow as tf import pandas as pd from collections import defaultdict class FileCallback(tf.keras.callbacks.Callback): def __init__(self, save_format="", filepath=""): super(FileCallback, self).__init__() self.save_format = save_format self.dfparams = defaultdict(list) se...
true
true
1c150ff3c8b3f1fcd6c537eef5392b51bb7d1b3b
512
py
Python
IsPrime/Python/IsPrime.py
ArturMarekNowak/Random-Algorithms-Repository
bda0e18bed68d3ab1b61b445e693a5c3c03a1179
[ "MIT" ]
1
2022-02-12T14:57:48.000Z
2022-02-12T14:57:48.000Z
IsPrime/Python/IsPrime.py
ArturMarekNowak/Random-Algorithms-Repository
bda0e18bed68d3ab1b61b445e693a5c3c03a1179
[ "MIT" ]
null
null
null
IsPrime/Python/IsPrime.py
ArturMarekNowak/Random-Algorithms-Repository
bda0e18bed68d3ab1b61b445e693a5c3c03a1179
[ "MIT" ]
null
null
null
def isPrime(N): if N == 1: return False for i in range(2, N): if N % i == 0: return False return True def isPrimeBetter(N): if N <= 1: return False if N <= 3: return True if N % 2 == 0 or N % 3 == 0: return False ...
12.190476
42
0.423828
def isPrime(N): if N == 1: return False for i in range(2, N): if N % i == 0: return False return True def isPrimeBetter(N): if N <= 1: return False if N <= 3: return True if N % 2 == 0 or N % 3 == 0: return False ...
true
true
1c1512683e470235b190d270d28908b1b099f12f
1,205
py
Python
indigo-web/groups/urls.py
pericles-project/ERMR
99e19c476c813632d0508cdef65b4683e36f8e43
[ "Apache-2.0" ]
null
null
null
indigo-web/groups/urls.py
pericles-project/ERMR
99e19c476c813632d0508cdef65b4683e36f8e43
[ "Apache-2.0" ]
null
null
null
indigo-web/groups/urls.py
pericles-project/ERMR
99e19c476c813632d0508cdef65b4683e36f8e43
[ "Apache-2.0" ]
null
null
null
""""Groups UI URLs Copyright 2015 Archive Analytics Solutions - University of Liverpool 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 ...
35.441176
90
0.693776
from django.conf.urls import url urlpatterns = [ url(r'^$', 'groups.views.home', name='home'), url(r'^new/group', 'groups.views.new_group', name='new_group'), url(r'^delete/group/(?P<name>.*)$', 'groups.views.delete_group', name='delete_group'), url(r'^edit/group/(?P<name>.*)$', 'groups.views.edi...
true
true
1c1512b7aac0dcb32d236840958d25979cf349a4
1,216
py
Python
___Language___/Python/OOP/Class Method, Static Method.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
___Language___/Python/OOP/Class Method, Static Method.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
___Language___/Python/OOP/Class Method, Static Method.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
class A(object): def foo(self, x): print(f"executing foo({self},{x})") @classmethod def class_foo(cls, x): print(f"executing foo({cls},{x})") @staticmethod def static_foo(x): print(f"executing foo({x})") a = A() a.foo(5) # executing foo(<__main__.A object at 0x000001B0E9...
19.301587
62
0.635691
class A(object): def foo(self, x): print(f"executing foo({self},{x})") @classmethod def class_foo(cls, x): print(f"executing foo({cls},{x})") @staticmethod def static_foo(x): print(f"executing foo({x})") a = A() a.foo(5) a.class_foo(6) a.static_foo(7) A.class_foo(6) A.s...
true
true
1c15130acdf502075bd8e426600674023103ea46
40
py
Python
inventoryanalytics/simulation/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
7
2018-06-17T02:45:33.000Z
2021-06-11T09:13:06.000Z
inventoryanalytics/simulation/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
1
2021-02-07T03:33:22.000Z
2021-06-02T21:11:59.000Z
inventoryanalytics/simulation/__init__.py
vishalbelsare/inventoryanalytics
85feff8f1abaf2c29414e066eed096ac3a74973b
[ "MIT" ]
7
2018-07-14T19:45:43.000Z
2021-10-12T09:45:04.000Z
__all__ = ["deterministic","stochastic"]
40
40
0.75
__all__ = ["deterministic","stochastic"]
true
true
1c1513a2696a9d8693dbe63200e7fbe7cf836f5c
8,474
py
Python
pyvisa-sim/parser.py
cwstryker/pyvisa-sim
af4ba31c27bed59269f4b2b47e68b77f1a6af62e
[ "MIT" ]
null
null
null
pyvisa-sim/parser.py
cwstryker/pyvisa-sim
af4ba31c27bed59269f4b2b47e68b77f1a6af62e
[ "MIT" ]
null
null
null
pyvisa-sim/parser.py
cwstryker/pyvisa-sim
af4ba31c27bed59269f4b2b47e68b77f1a6af62e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pyvisa-sim.parser ~~~~~~~~~~~~~~~~~ Parser function :copyright: 2014 by PyVISA-sim Authors, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ from __future__ import absolute_import import os from io import open, StringIO from contextlib imp...
27.69281
80
0.602313
from __future__ import absolute_import import os from io import open, StringIO from contextlib import closing from traceback import format_exc import pkg_resources import yaml from .component import NoResponse from .devices import Devices, Device from .channels import Channels from six.moves import map def _ver_to...
true
true
1c151471baeb31d087d646296323a83a4d6da6d1
2,065
py
Python
sparta_webapp/apis/models.py
avitko001c/sparta_webapp
728225db71d898b29c9408595a58b7297ccab0be
[ "Apache-1.1" ]
null
null
null
sparta_webapp/apis/models.py
avitko001c/sparta_webapp
728225db71d898b29c9408595a58b7297ccab0be
[ "Apache-1.1" ]
null
null
null
sparta_webapp/apis/models.py
avitko001c/sparta_webapp
728225db71d898b29c9408595a58b7297ccab0be
[ "Apache-1.1" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.conf import settings from django.utils.encoding import python_2_unicode_compatible from django.core.exceptions import ValidationError from django.dispatch import receiver from django.contrib.auth.models import User from django.db.models.signals import po...
33.852459
108
0.779661
from django.db import models from django.conf import settings from django.utils.encoding import python_2_unicode_compatible from django.core.exceptions import ValidationError from django.dispatch import receiver from django.contrib.auth.models import User from django.db.models.signals import post_save from django.cont...
true
true
1c151576b72f1ecdd38ecea733c2ccfe5d2a4229
2,664
py
Python
geocoder/ottawa.py
guess3233qa/geocoder1
31de0344e698fb209b709c5bb11181e845279a59
[ "MIT" ]
1
2021-02-08T13:30:00.000Z
2021-02-08T13:30:00.000Z
geocoder/ottawa.py
star-is-here/geocoder
31b5ccdf54f199d7640995a787c84909687ee03c
[ "MIT" ]
null
null
null
geocoder/ottawa.py
star-is-here/geocoder
31b5ccdf54f199d7640995a787c84909687ee03c
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: utf8 from __future__ import absolute_import import re from geocoder.base import Base class Ottawa(Base): """ Ottawa ArcGIS REST Services =========================== Geocoding is the process of assigning a location, usually in the form of coordinate values (points), to ...
28.042105
89
0.60473
from __future__ import absolute_import import re from geocoder.base import Base class Ottawa(Base): provider = 'ottawa' method = 'geocode' def __init__(self, location, **kwargs): self.url = 'http://maps.ottawa.ca/ArcGIS/rest/services/' self.url += 'compositeLocator/GeocodeServer/findAddr...
true
true
1c151578a68c609e5ad6072113bde8df84b23320
11,864
py
Python
src/sagemaker/FD_SL_DGL/code/fd_sl_deployment_entry_point.py
nnthanh101/realtime-fraud-detection-with-gnn-on-dgl
520747ac5f4d760cd614543f45417e885509d15e
[ "Apache-2.0" ]
72
2021-04-14T12:32:54.000Z
2022-03-29T15:27:51.000Z
src/sagemaker/FD_SL_DGL/code/fd_sl_deployment_entry_point.py
nnthanh101/realtime-fraud-detection-with-gnn-on-dgl
520747ac5f4d760cd614543f45417e885509d15e
[ "Apache-2.0" ]
313
2021-04-09T08:09:03.000Z
2022-03-29T02:30:22.000Z
src/sagemaker/FD_SL_DGL/code/fd_sl_deployment_entry_point.py
nnthanh101/realtime-fraud-detection-with-gnn-on-dgl
520747ac5f4d760cd614543f45417e885509d15e
[ "Apache-2.0" ]
16
2021-05-06T05:55:01.000Z
2022-03-09T05:59:54.000Z
#-*- coding:utf-8 -*- # Author:james Zhang # Datetime: Jan-10th 2021 19:10 # Project: GCR Fraud_detection_on_DGL Solution """ This is the entry point of SageMaker inference endpoint, it fulfills: 1. Receive request and parse out the heterogeneous graph and target node 2. But a DGL heterogeneous graph 3...
33.514124
121
0.632923
import os import json import dgl from datetime import datetime as dt import pickle import torch as th import torch.nn as nn import torch.nn.functional as F import dgl.function as fn import numpy as np INPUT_SIZE = 390 HIDDEN_SIZE = int(os.getenv('HIDDEN_SIZE', '16')) N_LAYERS = 2 OUT_SIZE = 2 EMBEDDING_SIZE = 390...
true
true
1c15172a188857d733a9a11a712046443b6a2f1d
42,911
py
Python
coma/workflows/precoth.py
swederik/structurefunction
5c5583bb26d6092fa3b7a630192d8e79199f8df0
[ "MIT" ]
2
2017-04-04T20:32:01.000Z
2017-04-11T20:31:17.000Z
coma/workflows/precoth.py
GIGA-Consciousness/structurefunction
5c5583bb26d6092fa3b7a630192d8e79199f8df0
[ "MIT" ]
null
null
null
coma/workflows/precoth.py
GIGA-Consciousness/structurefunction
5c5583bb26d6092fa3b7a630192d8e79199f8df0
[ "MIT" ]
null
null
null
import os import os.path as op import nipype.interfaces.io as nio # Data i/o import nipype.interfaces.utility as util # utility import nipype.pipeline.engine as pe # pypeline engine import nipype.interfaces.fsl as fsl import nipype.interfaces.freesurfer as fs import nipype.interfaces.mrtrix as mr...
47.891741
135
0.627089
import os import os.path as op import nipype.interfaces.io as nio import nipype.interfaces.utility as util import nipype.pipeline.engine as pe import nipype.interfaces.fsl as fsl import nipype.interfaces.freesurfer as fs import nipype.interfaces.mrtrix as mrtrix import nipype.interfaces.cmtk as c...
true
true
1c1518d29dc8c4140e24c7eae7e0c09488d8d669
12,131
py
Python
tools/telemetry/telemetry/core/platform/android_platform_backend.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
tools/telemetry/telemetry/core/platform/android_platform_backend.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/core/platform/android_platform_backend.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-03-15T13:21:38.000Z
2017-03-15T13:21:38.000Z
# Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import subprocess import tempfile from telemetry import decorators from telemetry.core import bitmap from telemetry.core import exception...
35.997033
80
0.713132
import logging import subprocess import tempfile from telemetry import decorators from telemetry.core import bitmap from telemetry.core import exceptions from telemetry.core import platform from telemetry.core import util from telemetry.core.platform import proc_supporting_platform_backend from telemetry.core.platfor...
true
true
1c151a57a7cd8ccb1675b7889938276b94cee341
622
py
Python
downloadWarAndPiece.py
Shuta4/random-code
3bb1e42cd9fc5bc1ba5a81445087a5fae581baaa
[ "MIT" ]
null
null
null
downloadWarAndPiece.py
Shuta4/random-code
3bb1e42cd9fc5bc1ba5a81445087a5fae581baaa
[ "MIT" ]
null
null
null
downloadWarAndPiece.py
Shuta4/random-code
3bb1e42cd9fc5bc1ba5a81445087a5fae581baaa
[ "MIT" ]
null
null
null
#!/bin/python """ Downloads 'War and Piece' by Leo Tolstoy audiobook in RU language from https://akniga.club """ from tqdm import tqdm import requests for i in range(1, 37): str_i = str(i).zfill(2) url = f"https://t2.akniga.club/b/33421/m2owf7ehbUWKQapYZaRB8w,,/{str_i}.%20%D0%A2%D0%BE%D0%BB%D1%81%D1%82%D0%BE%D...
27.043478
212
0.66881
from tqdm import tqdm import requests for i in range(1, 37): str_i = str(i).zfill(2) url = f"https://t2.akniga.club/b/33421/m2owf7ehbUWKQapYZaRB8w,,/{str_i}.%20%D0%A2%D0%BE%D0%BB%D1%81%D1%82%D0%BE%D0%B9%20%D0%9B%D0%B5%D0%B2%20-%20%D0%92%D0%BE%D0%B9%D0%BD%D0%B0%20%D0%B8%20%D0%BC%D0%B8%D1%80.mp3" print(f"Downl...
true
true
1c151a7dddf230d30c0f55f3a34466f6e432bd18
22,269
py
Python
nautobot/ipam/filters.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
1
2022-01-11T10:33:50.000Z
2022-01-11T10:33:50.000Z
nautobot/ipam/filters.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
null
null
null
nautobot/ipam/filters.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
null
null
null
import django_filters import netaddr from django.core.exceptions import ValidationError from django.db.models import Q, F from django.db.models.functions import Length from netaddr.core import AddrFormatError from nautobot.dcim.models import Device, Interface, Region, Site from nautobot.extras.filters import ( Cus...
31.232819
115
0.637298
import django_filters import netaddr from django.core.exceptions import ValidationError from django.db.models import Q, F from django.db.models.functions import Length from netaddr.core import AddrFormatError from nautobot.dcim.models import Device, Interface, Region, Site from nautobot.extras.filters import ( Cus...
true
true
1c151ac3a86a75bc0e0a36e4604add54f8da45b2
2,571
py
Python
embryo_website/database/admin.py
NirliptaPande/Emb-Website
2b6e15704a552adc034f45bc3e4c3494a26307f9
[ "MIT" ]
null
null
null
embryo_website/database/admin.py
NirliptaPande/Emb-Website
2b6e15704a552adc034f45bc3e4c3494a26307f9
[ "MIT" ]
null
null
null
embryo_website/database/admin.py
NirliptaPande/Emb-Website
2b6e15704a552adc034f45bc3e4c3494a26307f9
[ "MIT" ]
null
null
null
from django.contrib import admin from database.models import Presenter, Lecture, Feedback, Newsletter, Discipline, LecturesDiscipline, Event, SignUp, PagesContent, Gallery, Atmos, AIC_Company, AIC_Discipline class LectureAdmin(admin.ModelAdmin): list_display = ('id', 'presenter', 'topic', 'date') search_fiel...
32.544304
175
0.707507
from django.contrib import admin from database.models import Presenter, Lecture, Feedback, Newsletter, Discipline, LecturesDiscipline, Event, SignUp, PagesContent, Gallery, Atmos, AIC_Company, AIC_Discipline class LectureAdmin(admin.ModelAdmin): list_display = ('id', 'presenter', 'topic', 'date') search_fiel...
true
true
1c151da081dc46cddb44efac69b050aa528ee11b
1,103
py
Python
pratice/activation.py
do-wie-ching/do-wie-ching-anti-theft-system-base-on-deep-learning
15307e34f617c93a93921494bb9805e94af3c0b7
[ "MIT" ]
null
null
null
pratice/activation.py
do-wie-ching/do-wie-ching-anti-theft-system-base-on-deep-learning
15307e34f617c93a93921494bb9805e94af3c0b7
[ "MIT" ]
null
null
null
pratice/activation.py
do-wie-ching/do-wie-ching-anti-theft-system-base-on-deep-learning
15307e34f617c93a93921494bb9805e94af3c0b7
[ "MIT" ]
null
null
null
import torch import numpy as np from torch.autograd import Variable import torch.nn.functional as F import matplotlib.pyplot as plt tensor = torch.FloatTensor([[1, 2], [3, 4]]) variable = Variable(tensor, requires_grad=True) t_out = torch.mean(tensor * tensor) v_out = torch.mean(variable * variable) v_out.backward...
21.627451
53
0.696283
import torch import numpy as np from torch.autograd import Variable import torch.nn.functional as F import matplotlib.pyplot as plt tensor = torch.FloatTensor([[1, 2], [3, 4]]) variable = Variable(tensor, requires_grad=True) t_out = torch.mean(tensor * tensor) v_out = torch.mean(variable * variable) v_out.backward...
true
true
1c151fd406f038272999fe68f459e35da40a4168
15,484
py
Python
deepnlp/ner_tagger.py
laturose/deepnlp
3b0a8914468d641ac17836d8bec819af7df58f89
[ "MIT" ]
null
null
null
deepnlp/ner_tagger.py
laturose/deepnlp
3b0a8914468d641ac17836d8bec819af7df58f89
[ "MIT" ]
null
null
null
deepnlp/ner_tagger.py
laturose/deepnlp
3b0a8914468d641ac17836d8bec819af7df58f89
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- ''' @author: xichen ding @date: 2016-11-15 @rev: 2017-11-01 ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals # compatible with python3 unicode coding import sys...
42.655647
125
0.570912
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys, os import tensorflow as tf import numpy as np import glob import pickle from dict_util import gen_prefix_dict pkg_path = os.path.dirname(os.pa...
true
true
1c151ff0a7c57943567ed0864d4ec9a687dd0fe1
434
py
Python
datamgt/migrations/0008_datamgtoptions_opt11.py
timmo-d/MyTrader
a61cb6601d182b491d6b1e7715a05ccfc2fec451
[ "MIT" ]
null
null
null
datamgt/migrations/0008_datamgtoptions_opt11.py
timmo-d/MyTrader
a61cb6601d182b491d6b1e7715a05ccfc2fec451
[ "MIT" ]
null
null
null
datamgt/migrations/0008_datamgtoptions_opt11.py
timmo-d/MyTrader
a61cb6601d182b491d6b1e7715a05ccfc2fec451
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-05 02:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datamgt', '0007_remove_datamgtoptions_name'), ] operations = [ migrations.AddField( model_name='datamgtoptions', nam...
21.7
55
0.608295
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datamgt', '0007_remove_datamgtoptions_name'), ] operations = [ migrations.AddField( model_name='datamgtoptions', name='opt11', field=models.BooleanField...
true
true
1c152006572e20e08733cffcb3e2afbbd00a83df
2,901
py
Python
scripts/ui_elements/unit_stats_frame.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
12
2022-01-02T11:21:46.000Z
2022-03-12T20:53:40.000Z
scripts/ui_elements/unit_stats_frame.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
142
2021-07-25T14:05:11.000Z
2022-03-26T21:12:53.000Z
scripts/ui_elements/unit_stats_frame.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
9
2021-08-25T00:25:24.000Z
2022-03-12T20:53:41.000Z
from __future__ import annotations from typing import TYPE_CHECKING import pygame from scripts.core.base_classes.ui_element import UIElement from scripts.core.constants import DEFAULT_IMAGE_SIZE, FontType, GAP_SIZE, StatModifiedStatus from scripts.scenes.combat.elements.unit import Unit from scripts.ui_elements.font...
30.861702
111
0.632885
from __future__ import annotations from typing import TYPE_CHECKING import pygame from scripts.core.base_classes.ui_element import UIElement from scripts.core.constants import DEFAULT_IMAGE_SIZE, FontType, GAP_SIZE, StatModifiedStatus from scripts.scenes.combat.elements.unit import Unit from scripts.ui_elements.font...
true
true
1c15203e8ce13ff05dba23b89bde26109db64608
1,377
py
Python
app/user/serializers.py
igorstasiuk/recipe-app-api
5add587279409a567a48a7486757f0314acd76e2
[ "MIT" ]
null
null
null
app/user/serializers.py
igorstasiuk/recipe-app-api
5add587279409a567a48a7486757f0314acd76e2
[ "MIT" ]
null
null
null
app/user/serializers.py
igorstasiuk/recipe-app-api
5add587279409a567a48a7486757f0314acd76e2
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): """Serializer for the users object""" class Meta: model = get_user_model() fields = (...
30.6
74
0.651416
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): class Meta: model = get_user_model() fields = ('email', 'password', 'name') extra...
true
true
1c1520571e7c47b499476615dcaa959c8ecb0b6c
3,639
py
Python
keras/distribute/mirrored_variable_test.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
1
2021-01-01T00:16:04.000Z
2021-01-01T00:16:04.000Z
keras/distribute/mirrored_variable_test.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
1
2021-01-10T15:10:05.000Z
2021-01-25T09:19:15.000Z
keras/distribute/mirrored_variable_test.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
1
2021-01-10T09:06:39.000Z
2021-01-10T09:06:39.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.029703
87
0.693872
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.python.distribute import combinations as ds_combinations from tensorflow.python.distribute import distribute_utils from keras.layers import core def _mimic_two_cpus():...
true
true
1c1520f5b24253bfe96cdef4ea7a0ded2d729a7a
6,612
py
Python
kuryr_kubernetes/controller/drivers/public_ip.py
scavnicka/kuryr-kubernetes
f009598f40f224cf59bb610d882534aa80ba3188
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/controller/drivers/public_ip.py
scavnicka/kuryr-kubernetes
f009598f40f224cf59bb610d882534aa80ba3188
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/controller/drivers/public_ip.py
scavnicka/kuryr-kubernetes
f009598f40f224cf59bb610d882534aa80ba3188
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 RedHat, 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...
35.934783
79
0.612523
import abc import six from neutronclient.common import exceptions as n_exc from oslo_log import log as logging from kuryr_kubernetes import clients from kuryr_kubernetes.controller.drivers import utils LOG = logging.getLogger(__name__) @six.add_metaclass(abc.ABCMeta) class BasePubIpDriver(object): @abc.abstra...
true
true
1c15210213947e20a06427339d344bc4414c6f9c
3,419
py
Python
fastsgd/glm.py
georgios-vassos1/fastsgd
5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305
[ "MIT" ]
null
null
null
fastsgd/glm.py
georgios-vassos1/fastsgd
5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305
[ "MIT" ]
null
null
null
fastsgd/glm.py
georgios-vassos1/fastsgd
5ccb2fc2f564056e5bd1ccf0993cf6bbd6425305
[ "MIT" ]
null
null
null
from .model import * from .family import * from .transfer import * class glm(model): def __init__(self, family: str, transfer: str, lambda1: float=0.0, lambda2: float=0.0): super().__init__("Generalized Linear Model", lambda1, lambda2) self._family = family self._transfer = transfer ...
56.04918
158
0.639661
from .model import * from .family import * from .transfer import * class glm(model): def __init__(self, family: str, transfer: str, lambda1: float=0.0, lambda2: float=0.0): super().__init__("Generalized Linear Model", lambda1, lambda2) self._family = family self._transfer = transfer ...
true
true
1c152283a0654ce642d271ef33e96f2b37fd4c9f
6,532
py
Python
tools/grit/grit/tool/update_resource_ids/assigner_unittest.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
tools/grit/grit/tool/update_resource_ids/assigner_unittest.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
250
2018-02-02T23:16:57.000Z
2022-03-21T06:09:53.000Z
tools/grit/grit/tool/update_resource_ids/assigner_unittest.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python3 # Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function import os import sys import traceback import unittest if __name__ == '__main__': sys.path.app...
42.141935
79
0.536436
from __future__ import print_function import os import sys import traceback import unittest if __name__ == '__main__': sys.path.append(os.path.join(os.path.dirname(__file__), '../../..')) from grit.tool.update_resource_ids import assigner, common, parser # * Suffix with "+[usage]" to assign |usage| for the item (...
true
true
1c15228f5eae04b9d658d18c4135f902d8ef8826
967
py
Python
tronclass_cli/command/courses.py
HowyoungZhou/tronclass-cli
75324e94a30d91da06dea5b23c8974ceac351184
[ "MIT" ]
8
2021-03-09T12:17:45.000Z
2021-03-23T11:45:26.000Z
tronclass_cli/command/courses.py
HowyoungZhou/tronclass-cli
75324e94a30d91da06dea5b23c8974ceac351184
[ "MIT" ]
1
2021-05-09T03:13:57.000Z
2021-05-09T03:13:57.000Z
tronclass_cli/command/courses.py
HowyoungZhou/tronclass-cli
75324e94a30d91da06dea5b23c8974ceac351184
[ "MIT" ]
1
2021-10-07T06:44:07.000Z
2021-10-07T06:44:07.000Z
from tronclass_cli.command import Command from tronclass_cli.middleware.api import ApiMiddleware from tronclass_cli.middleware.table import TableMiddleware from tronclass_cli.utils import unflatten_fields class CoursesCommand(Command): name = 'courses' def _exec(self, args): self._parser.print_help()...
32.233333
94
0.682523
from tronclass_cli.command import Command from tronclass_cli.middleware.api import ApiMiddleware from tronclass_cli.middleware.table import TableMiddleware from tronclass_cli.utils import unflatten_fields class CoursesCommand(Command): name = 'courses' def _exec(self, args): self._parser.print_help()...
true
true
1c1525e11be81d1a90dac6513bc44146d98003e5
23,837
py
Python
python/tvm/hybrid/parser.py
baowenlei/tvm
6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65
[ "Apache-2.0" ]
1
2019-04-26T18:35:40.000Z
2019-04-26T18:35:40.000Z
python/tvm/hybrid/parser.py
baowenlei/tvm
6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65
[ "Apache-2.0" ]
null
null
null
python/tvm/hybrid/parser.py
baowenlei/tvm
6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65
[ "Apache-2.0" ]
2
2019-05-24T17:22:38.000Z
2019-06-14T23:30:24.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...
37.129283
99
0.581029
import ast import operator import logging import sys import types import numbers from enum import Enum from .util import _internal_assert from . import calls from . import util from .preprocessor import determine_variable_usage from ..api import all as _all from ..api import any as _any from ..container import Array...
true
true
1c15261da0dd7312dfaf4c4d5b752e8e821cc811
2,944
py
Python
tests/unit/gapic/test_config.py
yon-mg/python-api-core
f2dcf13d284207761bf6659f8b3112cabe35851d
[ "Apache-2.0" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
tests/unit/gapic/test_config.py
yon-mg/python-api-core
f2dcf13d284207761bf6659f8b3112cabe35851d
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
tests/unit/gapic/test_config.py
yon-mg/python-api-core
f2dcf13d284207761bf6659f8b3112cabe35851d
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.454545
74
0.646399
from google.api_core import exceptions from google.api_core.gapic_v1 import config INTERFACE_CONFIG = { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], "other": ["FAILED_PRECONDITION"], "non_idempotent": [], }, "retry_params": { "default": { ...
true
true
1c1526c6d08ff7a0c082134c98a28d02dbf8f4ae
15,400
py
Python
third_party/simplejson/decoder.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/simplejson/decoder.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/simplejson/decoder.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
"""Implementation of JSONDecoder """ import re import sys import struct from simplejson.scanner import make_scanner def _import_c_scanstring(): try: from simplejson._speedups import scanstring return scanstring except ImportError: return None c_scanstring = _import_c_scanstring() __all...
35.981308
78
0.553247
"""Implementation of JSONDecoder """ import re import sys import struct from simplejson.scanner import make_scanner def _import_c_scanstring(): try: from simplejson._speedups import scanstring return scanstring except ImportError: return None c_scanstring = _import_c_scanstring() __all...
false
true
1c1527fd37c79459335a3e1b28027fa3f9fd859e
795
py
Python
pythainlp/__init__.py
petetanru/pythainlp
83fa999336ce8c7f7b5431fc2fc41c53c5cb7604
[ "Apache-2.0" ]
1
2018-10-10T19:01:43.000Z
2018-10-10T19:01:43.000Z
pythainlp/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
pythainlp/__init__.py
Khawoat6/pythainlp
05979c0ac9a596bb7957fb8a050a32c87ea098e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = 1.7 import six if six.PY3: """ ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น """ from pythainlp.sentiment import sentiment from pythainlp.spell import spell from pythainlp.romanization import romanization from pythainlp.tokenize im...
33.125
67
0.825157
from __future__ import absolute_import __version__ = 1.7 import six if six.PY3: """ ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น """ from pythainlp.sentiment import sentiment from pythainlp.spell import spell from pythainlp.romanization import romanization from pythainlp.tokenize import word_tokenize,sent_...
false
true
1c1528162600682d777f42504df01e5acba9cf15
24,086
py
Python
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
7
2019-01-05T08:07:33.000Z
2021-02-13T11:27:07.000Z
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
4
2021-03-18T20:31:44.000Z
2022-03-11T23:20:32.000Z
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
1
2018-04-19T04:14:41.000Z
2018-04-19T04:14:41.000Z
import os import numpy as np import pandas as pd import six from collections import OrderedDict import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns from matplotlib import gridspec, animation from PIL import Image, ImageDraw, ImageFont import allensdk_0_14_2.ephys_features as ft # TODO: imp...
38.661316
128
0.613634
import os import numpy as np import pandas as pd import six from collections import OrderedDict import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns from matplotlib import gridspec, animation from PIL import Image, ImageDraw, ImageFont import allensdk_0_14_2.ephys_features as ft def load_c...
true
true
1c152830dd6cdf0e1d74107e911d56647676ac9d
366
py
Python
step_2/write.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
1
2020-10-06T16:20:29.000Z
2020-10-06T16:20:29.000Z
step_2/write.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
null
null
null
step_2/write.py
ecaron/twitter-doorbell
de72eb10919285f9f69edf06c8a1a60716424c2b
[ "MIT" ]
null
null
null
import os, tweepy from dotenv import load_dotenv load_dotenv() auth = tweepy.OAuthHandler(os.getenv("consumer_key"), os.getenv("consumer_secret")) auth.set_access_token(os.getenv("access_token"), os.getenv("access_token_secret")) api = tweepy.API(auth) api.update_status("Confirming that we're able to post a message...
30.5
108
0.784153
import os, tweepy from dotenv import load_dotenv load_dotenv() auth = tweepy.OAuthHandler(os.getenv("consumer_key"), os.getenv("consumer_secret")) auth.set_access_token(os.getenv("access_token"), os.getenv("access_token_secret")) api = tweepy.API(auth) api.update_status("Confirming that we're able to post a message...
true
true
1c15283fb24d29fef5e737c04f9d6ba875abb219
8,762
py
Python
tensorflow_probability/python/math/hypergeometric_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-02-21T06:30:00.000Z
2021-08-08T19:29:15.000Z
tensorflow_probability/python/math/hypergeometric_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/hypergeometric_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-05-31T13:08:33.000Z
2020-05-31T13:08:33.000Z
# Copyright 2020 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...
40.009132
83
0.660352
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools from absl.testing import parameterized import mpmath import numpy as np from scipy import special as scipy_special import tensorflow.compat.v2 as tf from tensorflow_probability.python.intern...
true
true
1c15286521f10a44e98144bd6b55cdb95692d5c9
5,035
py
Python
main.py
vidheyoza/TwitterStockSentiment
848b9bcb1150d868a32ee03d91ece0e1bbb0af69
[ "MIT" ]
null
null
null
main.py
vidheyoza/TwitterStockSentiment
848b9bcb1150d868a32ee03d91ece0e1bbb0af69
[ "MIT" ]
null
null
null
main.py
vidheyoza/TwitterStockSentiment
848b9bcb1150d868a32ee03d91ece0e1bbb0af69
[ "MIT" ]
null
null
null
import datetime as dt import math import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import style from sklearn import preprocessing from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import yfinance as yf import tweepy from textblo...
32.070064
120
0.648659
import datetime as dt import math import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import style from sklearn import preprocessing from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import yfinance as yf import tweepy from textblo...
true
true
1c15294771a6831405dcf1f1b9d68585cbb8401b
6,275
py
Python
website/handlers/main.py
ronnysuero/wwmmo
55ef2be8a8c869680a162c2614074be53b9c4609
[ "MIT" ]
1
2020-04-14T11:32:58.000Z
2020-04-14T11:32:58.000Z
website/handlers/main.py
ronnysuero/wwmmo
55ef2be8a8c869680a162c2614074be53b9c4609
[ "MIT" ]
null
null
null
website/handlers/main.py
ronnysuero/wwmmo
55ef2be8a8c869680a162c2614074be53b9c4609
[ "MIT" ]
null
null
null
import os import webapp2 as webapp from google.appengine.ext.webapp import blobstore_handlers from google.appengine.ext import blobstore from google.appengine.api import images from google.appengine.api import mail from google.appengine.api import users from datetime import datetime, timedelta import json #from qrcod...
35.857143
116
0.634104
import os import webapp2 as webapp from google.appengine.ext.webapp import blobstore_handlers from google.appengine.ext import blobstore from google.appengine.api import images from google.appengine.api import mail from google.appengine.api import users from datetime import datetime, timedelta import json import hand...
true
true
1c1529a5aadef30989a33839a877ffb3eff7acb0
2,953
py
Python
src/ursa/scripts/takeoff_land.py
BillYJT/RR1-IP
06946f9c79ae7c5e128d83bded3dafd848d49f58
[ "MIT" ]
null
null
null
src/ursa/scripts/takeoff_land.py
BillYJT/RR1-IP
06946f9c79ae7c5e128d83bded3dafd848d49f58
[ "MIT" ]
null
null
null
src/ursa/scripts/takeoff_land.py
BillYJT/RR1-IP
06946f9c79ae7c5e128d83bded3dafd848d49f58
[ "MIT" ]
1
2020-06-07T00:38:19.000Z
2020-06-07T00:38:19.000Z
#!/usr/bin/env python import rospy import geometry_msgs.msg import mavros_msgs.srv import mavros_msgs.msg import ursa.srv import tf2_ros import tf2_geometry_msgs import threading import nav_msgs.msg setpoint = geometry_msgs.msg.PoseStamped() takeOff=False tf_buffer = tf2_ros.Buffer(rospy.Duration(10.0)) #tf buffer len...
29.828283
111
0.687775
import rospy import geometry_msgs.msg import mavros_msgs.srv import mavros_msgs.msg import ursa.srv import tf2_ros import tf2_geometry_msgs import threading import nav_msgs.msg setpoint = geometry_msgs.msg.PoseStamped() takeOff=False tf_buffer = tf2_ros.Buffer(rospy.Duration(10.0)) pub = rospy.Publisher('mavros/setpoi...
false
true
1c1529e5b9e09ec7f160d25e4618a6620c27758c
35,414
py
Python
chemprop/utils.py
muammar/chemprop
c46e511eaa9d07da319571ce6c44bb19effa7c5b
[ "MIT" ]
689
2020-02-14T20:22:33.000Z
2022-03-31T13:45:09.000Z
chemprop/utils.py
muammar/chemprop
c46e511eaa9d07da319571ce6c44bb19effa7c5b
[ "MIT" ]
214
2020-02-23T19:54:15.000Z
2022-03-30T21:47:06.000Z
chemprop/utils.py
muammar/chemprop
c46e511eaa9d07da319571ce6c44bb19effa7c5b
[ "MIT" ]
296
2020-02-14T15:39:13.000Z
2022-03-28T16:27:17.000Z
from argparse import Namespace import csv from datetime import timedelta from functools import wraps import logging import math import os import pickle import re from time import time from typing import Any, Callable, List, Tuple, Union import collections from sklearn.metrics import auc, mean_absolute_error, mean_squa...
45.695484
283
0.669396
from argparse import Namespace import csv from datetime import timedelta from functools import wraps import logging import math import os import pickle import re from time import time from typing import Any, Callable, List, Tuple, Union import collections from sklearn.metrics import auc, mean_absolute_error, mean_squa...
true
true
1c152a2b0eac159f2ad698e905ad64c31db31dde
294
py
Python
PycharmProjects/pythonexercicios/aula12/ex035.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
PycharmProjects/pythonexercicios/aula12/ex035.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
PycharmProjects/pythonexercicios/aula12/ex035.py
zmixtv1/cev-Python
edce04f86d943d9af070bf3c5e89575ff796ec9e
[ "MIT" ]
null
null
null
print('-=-' * 20) print('analisador de triângulos') print('-=-' * 20) s1 = int(input('Primeiro Segmento: ')) s2 = int(input('Segundo Segmento: ')) s3 = int(input('Terceiro Segmento')) if s1 < s2 + s3 and s2 < s1 + s3 and s3 < s1 +s2: print('Os segmentos acima Podem formar triangulos!!')
26.727273
57
0.632653
print('-=-' * 20) print('analisador de triângulos') print('-=-' * 20) s1 = int(input('Primeiro Segmento: ')) s2 = int(input('Segundo Segmento: ')) s3 = int(input('Terceiro Segmento')) if s1 < s2 + s3 and s2 < s1 + s3 and s3 < s1 +s2: print('Os segmentos acima Podem formar triangulos!!')
true
true
1c152b7d1f05a59631dc0913bd6fbf1457b821f9
4,578
py
Python
pynads/utils/decorators.py
justanr/gonads
4cd40eae04d3e738443d1232063c762b34784462
[ "MIT" ]
19
2015-03-21T07:47:15.000Z
2019-10-05T21:20:36.000Z
pynads/utils/decorators.py
justanr/gonads
4cd40eae04d3e738443d1232063c762b34784462
[ "MIT" ]
7
2015-03-31T14:30:26.000Z
2017-07-29T15:29:59.000Z
pynads/utils/decorators.py
justanr/gonads
4cd40eae04d3e738443d1232063c762b34784462
[ "MIT" ]
4
2017-10-18T08:07:46.000Z
2019-10-05T21:20:38.000Z
from functools import partial from .compat import wraps __all__ = ('optional_kwargs', 'annotate', 'method_optional_kwargs') def optional_kwargs(deco): """This is a decorator-decorator (a metadecorator if you will) that allows creating decorators that accept keyword arguments. It's a relatively simple tr...
28.434783
78
0.573613
from functools import partial from .compat import wraps __all__ = ('optional_kwargs', 'annotate', 'method_optional_kwargs') def optional_kwargs(deco): @wraps(deco) def wrapper(func=None, **kwargs): if func is None: return partial(wrapper, **kwargs) return deco(func, **kwargs) ...
true
true