hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6f62e27b225bd0318b85812c8f42343dc3b0fca8
1,436
py
Python
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
3
2021-12-11T13:43:56.000Z
2022-03-31T02:36:05.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
9
2021-10-01T22:46:57.000Z
2021-12-16T18:01:31.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
2
2021-12-16T16:37:10.000Z
2021-12-16T20:30:12.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import * # Register your models here. def set_active(modeladmin, request, queryset): for user in queryset: user.is_active = True user.save() set_active.short_description = 'Set Account Status: Active' de...
31.217391
96
0.639972
711
0.495125
0
0
0
0
0
0
451
0.314067
6f637c0d8807f40cbf867588212e880e31335fd4
26,912
py
Python
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
# -*- coding: utf-8 -*- """task module.""" from __future__ import unicode_literals import sys import os import pydoc import time import json import logging import collections import pkg_resources import subprocess import webbrowser import websocket from pyloco.parse import TaskArgParser, PylocoArgParser from pyloco....
31.329453
111
0.506986
21,994
0.817256
0
0
0
0
0
0
4,870
0.18096
6f644b09bfe662762ed95cb2b170c8fc73f84411
1,376
py
Python
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/aio/__init__.py
olivakar/azure-iot-sdk-python
d8f2403030cf94510d381d8d5ac37af6e8d306f8
[ "MIT" ]
null
null
null
"""Azure IoT Device Library - Asynchronous This library provides asynchronous clients for communicating with Azure IoT services from an IoT device. """ from azure.iot.device.iothub.aio import * from azure.iot.device.provisioning.aio import * from . import patch_documentation # Dynamically patch the clients to add sh...
45.866667
90
0.805233
0
0
0
0
0
0
0
0
1,185
0.861192
6f647632e2c96c2063ca3a82382e2a10a7664a9e
1,716
py
Python
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:48.000Z
2018-01-12T14:09:48.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2019-09-10T05:03:47.000Z
2019-09-10T05:03:47.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2013-2016 Luc Saffre # # License: BSD (see file COPYING for details) """This module is for managing a reception desk and a waiting queue: register clients into a waiting queue as they present themselves at a reception desk (Empfangsschalter), and unregister them when they leave agai...
28.6
72
0.701049
1,130
0.658508
0
0
0
0
0
0
1,276
0.74359
6f659c58598cee6e53216640aed93bdbc6f2a194
320
py
Python
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
from accent_analyser.rules.EngRule import EngRule class RuleRemoveThe(EngRule): def __init__(self, likelihood=1.0): super().__init__(likelihood) def _convert_core(self, words: list, current_index: int): word = words[current_index].content if word == "the": return "" else: return word
22.857143
59
0.69375
267
0.834375
0
0
0
0
0
0
7
0.021875
6f6a38a0483844a3f770817a9b327db335f9b10a
255
py
Python
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
6
2019-06-07T19:25:51.000Z
2019-10-30T01:56:29.000Z
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
1
2019-08-26T00:05:50.000Z
2019-08-26T00:05:50.000Z
ssrl/providers/base.py
AspirinGeyer/PySSRL
bdb27d7ada2fc317b8e2ea18f389e280d58e24ac
[ "Apache-2.0" ]
1
2019-10-30T01:56:33.000Z
2019-10-30T01:56:33.000Z
# -*- coding:utf-8 -*- class BaseProvider(object): @staticmethod def loads(link_url): raise NotImplementedError("Implemetion required.") @staticmethod def dumps(conf): raise NotImplementedError("Implemetion required.")
19.615385
58
0.670588
229
0.898039
0
0
190
0.745098
0
0
68
0.266667
6f6b28d63b93b95d61bab409bb560af9d95cf417
1,505
py
Python
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
2
2019-05-07T03:08:25.000Z
2020-05-22T10:10:00.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
7
2020-05-22T13:29:42.000Z
2021-09-23T23:30:25.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/py
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
null
null
null
session.forget() def get(args): if args[0].startswith('__'): return None try: obj = globals(), get(args[0]) for k in range(1, len(args)): obj = getattr(obj, args[k]) return obj except: return None def vars(): """the running controller function!""" ...
27.363636
91
0.453821
0
0
0
0
0
0
0
0
159
0.105648
6f6c2c1c13418649733376c632ea6395a15039ac
857
py
Python
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python3/c0108_223_rectangle-area/00_leetcode_0108.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #223. Rectangle Area #Find the total area covered by two rectilinear rectangles in a 2D plane. #Each rectangle is defined by its bottom left corner and to...
32.961538
98
0.655776
0
0
0
0
0
0
0
0
832
0.970828
6f6c63911e71ae7c84e18bedf35df7f0d63d41aa
437
py
Python
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
1
2019-04-29T16:07:51.000Z
2019-04-29T16:07:51.000Z
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
null
null
null
serialTest.py
fmuno003/SeniorDesign
113bdcf4cc906042f44736a1ffddb6ffff3a217e
[ "BSD-3-Clause" ]
null
null
null
import serial import RPi.GPIO as GPIO import time ser=serial.Serial("/dev/ttyACM0",9600) start_time = time.time() imu = open("IMU.txt","w") while time.time() - start_time <= 1: ser.readline() while time.time() - start_time <= 8: read_ser=ser.readline() if float(read_ser) == 0.00: pa...
19.863636
39
0.578947
0
0
0
0
0
0
0
0
34
0.077803
6f6e858702c8ce5b6a0c7be5155f97db4b0d395c
1,950
py
Python
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
1
2022-01-03T21:56:14.000Z
2022-01-03T21:56:14.000Z
from pyg_base._types import is_iterable from pyg_base._loop import len0 __all__ = ['zipper', 'lens'] def lens(*values): """ measures (and enforces) a common length across all values :Parameters: ---------------- *values : lists Raises ------ ValueError if you have values with...
27.083333
118
0.510256
0
0
0
0
0
0
0
0
1,354
0.694359
6f6e961109cfe080e1074fb4fb957b034dcf9958
1,997
py
Python
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
null
null
null
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
13
2022-02-17T06:05:44.000Z
2022-03-17T02:47:49.000Z
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
2
2021-09-28T08:01:42.000Z
2021-09-28T08:18:31.000Z
import json from typing import List import requests from pawls.preprocessors.model import Page def fetch_grobid_structure(pdf_file: str, grobid_host: str = "http://localhost:8070"): files = { "input": (pdf_file, open(pdf_file, "rb"), "application/pdf", {"Expires": "0"}) } url = "{}/api/processPdf...
31.203125
86
0.593891
0
0
0
0
0
0
0
0
661
0.330996
6f6fd6c2d42d2b9282a1e6483b23196da4a8aeeb
2,614
py
Python
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
35.808219
74
0.649579
0
0
0
0
0
0
0
0
1,265
0.483933
6f6fddc36a83d5396bed90f0e96d5995bd58f9a5
6,274
py
Python
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from pyomo.environ import * from pyomo.core.base import Constraint, Objective, Suffix, minimize from pyomo.opt import ProblemFormat, SolverFactory from nmpc_mhe.dync.NMPCGenv2 import NmpcGen from nmpc_mhe.mods.bfb.nob5_hi_t import bfb_dae from snap_shot import snap import sys, os i...
36.690058
91
0.603602
0
0
0
0
0
0
0
0
1,951
0.310966
6f709ca217e6ed7e435bf5ff768925bbdc7d9c7c
493
py
Python
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
15
2019-08-23T09:57:54.000Z
2021-11-08T10:38:03.000Z
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
36
2019-08-21T10:05:53.000Z
2022-03-23T08:58:02.000Z
csvapi/security.py
opendatateam/csvapi
4e4ea7167f7265782c8f654619b060dc04112392
[ "MIT" ]
1
2018-04-25T09:55:25.000Z
2018-04-25T09:55:25.000Z
from urllib.parse import urlparse from quart import current_app as app, request, jsonify def filter_referrers(): filters = app.config.get('REFERRERS_FILTER') if not filters: return None referrer = request.referrer if referrer: parsed = urlparse(referrer) for filter in filters:...
24.65
54
0.614604
0
0
0
0
0
0
0
0
43
0.087221
6f70b2504b0ddf0927280e069e308de02195aea2
447
py
Python
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
8
2019-06-11T14:09:12.000Z
2021-09-09T09:37:47.000Z
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
7
2020-02-12T02:55:11.000Z
2020-08-27T09:54:54.000Z
linkit/models.py
what-digital/linkit
58fb7dc966e7b76b654c9bc5e52253eb81731e98
[ "MIT" ]
2
2020-06-18T09:54:20.000Z
2022-02-17T08:33:13.000Z
from django.db import models from filer.fields.file import FilerFileField class FakeLink(models.Model): """ In our widget we need to manually render a AdminFileFormField. Basically for every other Field type this is not a problem at all, but Failer needs a rel attribute which consists of a reverse relatio...
37.25
115
0.753915
370
0.82774
0
0
0
0
0
0
256
0.572707
6f722918045c200389c503a068fc9c4194103a3f
9,679
py
Python
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import atexit import errno import logging import os import select import signal import sys import time from process_tests import setup_coverage TIMEOUT = int(os.getenv('MANHOLE_TEST_TIMEOUT', 10)) SOCKET_PATH = '/tmp/manhole-socket' OUTPUT = sys.__stdout__ def handle_sigterm(s...
37.226923
116
0.510073
0
0
0
0
731
0.075524
0
0
1,630
0.168406
6f73d54d3a1a664d942bd0ee6d760eedb4233760
1,054
py
Python
ecommerce/User/admin.py
AwaleRohin/commerce-fm
cb5b43c999ae5be37957b29de9c07d5affc66fb0
[ "MIT" ]
18
2020-12-05T14:12:32.000Z
2022-03-11T20:15:22.000Z
ecommerce/User/admin.py
AwaleRohin/commerce-fm
cb5b43c999ae5be37957b29de9c07d5affc66fb0
[ "MIT" ]
1
2021-07-22T09:23:13.000Z
2021-07-22T09:23:13.000Z
ecommerce/User/admin.py
shakyasaijal/commerce-fm
358b6925f4b569dc374010d7cc7d4d560ede2b48
[ "MIT" ]
13
2020-10-15T10:17:35.000Z
2022-01-29T06:56:24.000Z
from django.contrib import admin from django.conf import settings from django.core.exceptions import ImproperlyConfigured from . import models if settings.HAS_ADDITIONAL_USER_DATA: try: class UserProfileInline(admin.TabularInline): model = models.UserProfile extra = 0 except (...
31
80
0.712524
563
0.534156
0
0
0
0
0
0
152
0.144213
6f741a22f6b69a36890074cd2db8d9ec2d946c37
38,189
py
Python
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
from client import exception, embed_creator, console_interface, discord_manager, file_manager, ini_manager, json_manager, origin, permissions, server_timer from client.config import config as c, language as l from discord.ext import commands, tasks from client.external.hiscores import hiscores_xp from PIL import Image,...
52.601928
366
0.468224
37,902
0.988911
0
0
8,310
0.216818
36,904
0.962872
3,777
0.098547
6f75a1523bdd37ab1cd4cc70ef59345c182747bf
1,437
py
Python
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
from __future__ import annotations import os import collections BASE_PATH = os.path.dirname(__file__) INPUT_PATH = os.path.join(BASE_PATH, "input.txt") OUTPUT_PATH = os.path.join(BASE_PATH, "output.txt") def proceed_buffer(buffer: str) -> list[int]: return [int(line) for line in buffer.splitlines()] def mai...
26.127273
69
0.599165
0
0
0
0
0
0
0
0
239
0.166319
6f75fde6361af1d1bfaca77b15e701086bf2e3b2
13,684
py
Python
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
290
2017-12-29T01:55:21.000Z
2022-03-28T10:00:32.000Z
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
3
2018-08-02T11:45:51.000Z
2020-09-24T14:34:58.000Z
src/ensemble_nn/agent_nn.py
AbhinavGopal/ts_tutorial
147ff28dc507172774693f225071f8e244e5994e
[ "MIT" ]
76
2018-01-17T06:19:51.000Z
2021-11-10T06:18:20.000Z
"""Agents for neural net bandit problems. We implement three main types of agent: - epsilon-greedy (fixed epsilon, annealing epsilon) - dropout (arXiv:1506.02142) - ensemble sampling All code is specialized to the setting of 2-layer fully connected MLPs. """ import numpy as np import numpy.random as rd from ba...
33.621622
80
0.656168
13,282
0.970623
0
0
0
0
0
0
5,175
0.378179
6f762afe905140cf74ce1d262513f6770e5cf96a
1,314
py
Python
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
import io import os from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.staticfiles import finders from django.template.loader import render_to_string from django.utils.translation import to_locale class Command(BaseCommand): def handle(self, *args, **options...
33.692308
79
0.542618
1,059
0.805936
0
0
0
0
0
0
193
0.14688
6f76bbd91ccc6729e6385bce7b0f809d9736e91f
37,910
py
Python
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
# Copyright © 2019. Allen Institute. All rights reserved. import numpy as np import pandas as pd from collections import OrderedDict import math import warnings from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.neighbors import NearestNeighbors from sklearn.metrics import silho...
39.163223
120
0.603324
0
0
0
0
0
0
0
0
12,550
0.331038
6f76bcfc2a09b5cceb410578869827df3cb772bb
23,746
py
Python
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import copy from .pdp_calc_utils import _sample_data, _find_onehot_actual, _find_closest from sklearn.cluster import MiniBatchKMeans, KMeans def _pdp_plot_title(n_grids, feature_name, ax, multi_flag, whi...
40.730703
130
0.660111
470
0.019793
0
0
0
0
0
0
6,722
0.283079
6f76ec963af630c9f2623b7e32036a92ed42bb1c
8,778
py
Python
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-08-31T09:32:39.000Z
2020-08-31T09:32:39.000Z
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
13
2020-04-08T10:53:26.000Z
2022-03-30T09:51:29.000Z
tests/basic_step_tests.py
kodexa-ai/kodexa
568466b3dc4758babf2d318dc91b1c09ec60845d
[ "Apache-2.0" ]
1
2020-04-12T13:10:51.000Z
2020-04-12T13:10:51.000Z
import os import pytest from kodexa import Document, Pipeline, PipelineContext, TagsToKeyValuePairExtractor, RollupTransformer def get_test_directory(): return os.path.dirname(os.path.abspath(__file__)) + "/../test_documents/" @pytest.mark.skip def test_html_rollup(): document = Document.from_msgpack(open...
45.71875
224
0.691729
0
0
0
0
6,339
0.722146
0
0
2,927
0.333447
6f79392055980ee88fc9adbd173f470e11c846bf
158
py
Python
dftimewolf/lib/containers/__init__.py
fooris/dftimewolf
5df863dad1518e4c4109f0563efa7458df26f7d2
[ "Apache-2.0" ]
1
2021-01-21T19:53:37.000Z
2021-01-21T19:53:37.000Z
dftimewolf/lib/containers/__init__.py
joachimmetz/dftimewolf
9181bd9e860a467495ca4ab66e2c3873cbcbf529
[ "Apache-2.0" ]
null
null
null
dftimewolf/lib/containers/__init__.py
joachimmetz/dftimewolf
9181bd9e860a467495ca4ab66e2c3873cbcbf529
[ "Apache-2.0" ]
null
null
null
"""Make containers available here.""" from .report import Report from .threat_intelligence import ThreatIntelligence from .stackdriver import StackdriverLogs
31.6
51
0.835443
0
0
0
0
0
0
0
0
37
0.234177
6f79949d19627c5156b74487a315345109a1b4e7
2,327
py
Python
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
1
2022-03-01T06:42:04.000Z
2022-03-01T06:42:04.000Z
#!/usr/bin/env python3 """Script for simulating IOT measurement stream to ModelConductor experiment.""" import pandas as pd import numpy as np import sqlalchemy as sqla from datetime import datetime as dt from time import sleep, time import logging import sys, os, asyncio from hbmqtt.client import MQTTClient, Connect...
33.724638
111
0.689729
0
0
0
0
0
0
0
0
533
0.22905
6f7aa07e116a65a70f05b7ef70691b8f299b021f
694
py
Python
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
import sys import math L = [] f = open(sys.argv[1],"r") for item in f: L.append(item.strip()) def find_id(sequence): rows = sequence[:7] seats = sequence[7:] upper = 127 lower = 0 for letter in rows: half = math.ceil((upper-lower)/2) if letter == "F": upper -= half if letter == "B": lower += half...
13.09434
35
0.597983
0
0
0
0
0
0
0
0
15
0.021614
488a4b657eabc94e1d145860d1dd73207641241d
2,890
py
Python
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-03-26T23:46:01.000Z
2018-03-26T23:46:01.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
4
2018-03-24T15:41:12.000Z
2018-04-08T23:49:35.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-04-03T23:49:37.000Z
2018-04-03T23:49:37.000Z
# -*- coding: utf-8 -*- """ Injector. A partir de um arquivo binario, de uma tabela binaria gerada com o Finder, e um arquivo de substituição, o Injector é capaz de injetar um texto no binario trocando o texto in-game O Injector faz automaticamente a adequação do tamanho do texto ao tamanho da caixa, truncan...
29.489796
96
0.565052
2,033
0.702003
0
0
0
0
0
0
772
0.266575
488aa98c813700f0bcd537993c300646573e9ada
10,556
py
Python
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/scs_io/packages/cudnn/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-15T02:37:59.000Z
2020-09-21T04:34:38.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class Cudnn(Package): """NVIDIA cuDNN is a GPU-accelerated library of primitives for d...
45.304721
98
0.670519
10,325
0.978117
0
0
0
0
0
0
6,853
0.649204
488b91ca767e9611a3e2258e676d32094fa0687f
4,023
py
Python
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
python/svm.py
mwalton/em-machineLearning
efd76961fa3b78e042ca481733152a683074d15c
[ "MIT" ]
null
null
null
import numpy as np import argparse import os.path import plots as plot from sklearn.preprocessing import StandardScaler from sklearn.grid_search import GridSearchCV import time from sklearn import svm from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score from sklearn.externals imp...
35.60177
94
0.675864
0
0
0
0
0
0
0
0
1,469
0.36515
488d15bc02d47b9fb1ebe771ea194aa64ab3caea
3,545
py
Python
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
4
2019-10-23T06:58:31.000Z
2021-11-01T17:08:34.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2021-06-02T00:35:23.000Z
2021-06-02T00:35:23.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2019-10-23T06:58:45.000Z
2019-10-23T06:58:45.000Z
import abc import json import logging import socket import sys import time import aio_logstash import traceback from aio_logstash import constants from datetime import datetime, date class BaseFormatter(logging.Formatter): def __init__(self, message_type='aio_logstash', fqdn=False): super().__init__() ...
29.297521
97
0.618336
3,356
0.946685
0
0
520
0.146685
0
0
283
0.079831
488df2d8a33bbefd7d27eb53f611e19d0eba095d
18,352
py
Python
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/events/cursesmon.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
# -*- coding: utf-8 -*- """Graphical monitor of Celery events using curses.""" from __future__ import absolute_import, print_function, unicode_literals import curses import sys import threading from datetime import datetime from itertools import count from textwrap import wrap from time import time from math import c...
33.797422
78
0.520325
16,025
0.873202
0
0
679
0.036999
0
0
1,483
0.080809
488ea1167c4ff5c98e7760397218e331d094d166
1,705
py
Python
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
19
2016-10-06T18:10:36.000Z
2018-04-04T02:30:09.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
BeaconLabs/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
2
2017-10-26T19:22:58.000Z
2017-11-16T07:44:58.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
9
2016-11-15T14:13:20.000Z
2021-12-19T20:27:58.000Z
"""A feature extractor for patients' utilization.""" from __future__ import absolute_import import logging import pandas as pd from sutter.lib import postgres from sutter.lib.feature_extractor import FeatureExtractor log = logging.getLogger('feature_extraction') class UtilizationExtractor(FeatureExtractor): ...
34.1
95
0.626979
1,434
0.841056
0
0
0
0
0
0
789
0.462757
4893210d0b7c805a88b25dd46688e23dd6ed78a0
6,517
py
Python
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
120
2021-08-16T13:55:47.000Z
2022-03-31T10:31:42.000Z
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
10
2021-10-19T07:19:23.000Z
2022-03-24T18:43:02.000Z
safe_control_gym/math_and_models/normalization.py
catgloss/safe-control-gym
b3f69bbed8577f64fc36d23677bf50027e991b2d
[ "MIT" ]
24
2021-08-28T17:21:09.000Z
2022-03-31T10:31:44.000Z
"""Perform normalization on inputs or rewards. """ import numpy as np import torch from gym.spaces import Box def normalize_angle(x): """Wraps input angle to [-pi, pi]. """ return ((x + np.pi) % (2 * np.pi)) - np.pi class RunningMeanStd(): """Calulates the running mean and std of a data stream. ...
27.041494
98
0.584778
6,263
0.961025
0
0
0
0
0
0
2,690
0.412767
48935c63c2620e531593d07e9af2473ca805cfae
5,125
py
Python
networking/pycat.py
itsbriany/PythonSec
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
1
2016-01-12T19:38:59.000Z
2016-01-12T19:38:59.000Z
networking/pycat.py
itsbriany/Security-Tools
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
null
null
null
networking/pycat.py
itsbriany/Security-Tools
eda5dc3f7ac069cd77d9525e93be5cfecc00db16
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import threading import sys # Support command line args import getopt # Support command line option parsing import os # Kill the application import signal # Catch an interrupt import time # Thread sleeping # Global variables definitions target = "" port = False listen = Fal...
23.617512
121
0.607415
0
0
0
0
0
0
0
0
2,533
0.494244
48938090ba940fdf1245ccfb1e1b41da0dfdb8ec
4,356
py
Python
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
1
2020-09-23T22:16:10.000Z
2020-09-23T22:16:10.000Z
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
null
null
null
code/striatal_model/neuron_model_tuning.py
weidel-p/go-robot-nogo-robot
026f1f753125089a03504320cc94a76888a0efc5
[ "MIT" ]
null
null
null
import nest import pylab as pl import pickle from nest import voltage_trace from nest import raster_plot as rplt import numpy as np from params import * seed = [np.random.randint(0, 9999999)] * num_threads def calcFI(): #amplitudesList = np.arange(3.5,4.5,0.1) amplitudesList = np.arange(100, 500, 50.) ...
32.75188
97
0.597107
0
0
0
0
0
0
0
0
1,223
0.280762
4893c3ed4760195e110268be8d490ec224a54ecd
1,434
py
Python
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
690
2020-07-31T15:37:59.000Z
2022-03-31T20:51:46.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
90
2020-07-25T11:00:15.000Z
2022-03-31T01:59:59.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
68
2020-07-21T23:21:29.000Z
2022-03-30T16:12:01.000Z
import os from fastf1.core import Session, Weekend from fastf1.livetiming.data import LiveTimingData def test_file_loading_w_errors(): # load file with many errors and invalid data without crashing livedata = LiveTimingData('fastf1/testing/reference_data/livedata/with_errors.txt') livedata.load() def t...
34.142857
87
0.679219
0
0
0
0
0
0
0
0
517
0.36053
48946b441f56097b2a5a11c0168a86635a484d94
1,768
py
Python
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
4
2021-12-13T09:16:07.000Z
2022-01-06T15:45:02.000Z
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 21 20:09:08 2021 ###################### ##### read h5 ######## ###################### # 1.read h5-file h5_file = h5py.File(files[1],'r') # 2.show all keys in h5-file h5_file.keys() # 3.循环读取所有 keys in h5-file for key in h5_file.keys(): onekey =...
19.644444
84
0.581448
0
0
0
0
0
0
0
0
1,461
0.754649
48946d309358ecb51872d9f0d80dff7d64dcb48a
872
py
Python
setup.py
MrJakeSir/theming
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
3
2021-10-02T02:23:50.000Z
2021-10-02T16:03:33.000Z
setup.py
MrJakeSir/themify
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
null
null
null
setup.py
MrJakeSir/themify
fd572c871fb4fd67cc4f9517558570d652ad1f0c
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'colormate', packages = ['colormate'], version = '0.2214', license='MIT', description = 'A package to theme terminal scripts with custom colors and text formatting', author = 'Rodrigo', author_email = '[email protected]', url = 'https://github.com/mrjakes...
36.333333
93
0.661697
0
0
0
0
0
0
0
0
605
0.693807
4894cec7ad1d16f91926da91173205b79ee1b463
1,620
py
Python
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
37
2019-08-28T08:16:48.000Z
2022-03-14T21:18:39.000Z
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
1
2019-09-02T23:13:29.000Z
2019-09-08T01:43:10.000Z
tests/test_compound_where.py
WinVector/data_algebra
3d6002ddf8231d310e03537a0435df0554b62234
[ "BSD-3-Clause" ]
3
2019-08-28T12:23:11.000Z
2020-02-08T19:22:31.000Z
import data_algebra import data_algebra.test_util from data_algebra.data_ops import * # https://github.com/WinVector/data_algebra import data_algebra.util import data_algebra.SQLite def test_compount_where_and(): d = data_algebra.default_data_model.pd.DataFrame( { "a": ["a", "b", None, None]...
28.421053
80
0.56358
0
0
0
0
0
0
0
0
213
0.131481
4895a29e1cbfd7f3cbc0290d21c2ee285348e317
385
py
Python
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
null
null
null
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
7
2021-03-19T01:09:50.000Z
2022-03-12T00:20:49.000Z
students/admin.py
eustone/sms
0b785c8a6cc7f8c6035f1b46092d5b8e8750ab7f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Student # Register your models here. class StudentAdmin(admin.ModelAdmin): list_display = ('first_name','middle_name', 'last_name','identification_number') search_fields = ('first_name','middle_name', 'last_name','ide...
27.5
56
0.696104
248
0.644156
0
0
0
0
0
0
146
0.379221
4896bd7de479f88113218577909931ad2456610b
18,819
py
Python
lshmm/viterbi/vit_diploid_variants_samples.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
null
null
null
lshmm/viterbi/vit_diploid_variants_samples.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
9
2022-02-24T14:20:09.000Z
2022-03-01T17:54:47.000Z
lshmm/vit_diploid_variants_samples.py
astheeggeggs/ls_hmm
11af1eb886ef3db2869cdd50954fba5565fcef51
[ "MIT" ]
1
2022-02-28T17:07:36.000Z
2022-02-28T17:07:36.000Z
"""Collection of functions to run Viterbi algorithms on dipoid genotype data, where the data is structured as variants x samples.""" import numba as nb import numpy as np # https://github.com/numba/numba/issues/1269 @nb.njit def np_apply_along_axis(func1d, axis, arr): """Create numpy-like functions for max, sum e...
33.307965
132
0.435145
0
0
0
0
10,251
0.544715
0
0
8,128
0.431904
4896e1b1c5caef0d1e5aee9a140b1ba801b67e72
6,704
py
Python
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
from alembic_utils.pg_function import PGFunction from alembic_utils.replaceable_entity import register_entities from alembic_utils.testbase import TEST_VERSIONS_ROOT, run_alembic_command TO_UPPER = PGFunction( schema="public", signature="toUpper(some_text text default 'my text!')", definition=""" r...
34.735751
100
0.702118
0
0
0
0
0
0
0
0
2,309
0.344421
48976b6d6b5db52348271fa437cb2c3858865703
1,723
py
Python
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
proof_of_work/multiagent/turn_based/v6/environmentv6.py
michaelneuder/parkes_lab_fa19
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
[ "MIT" ]
null
null
null
import numpy as np np.random.seed(0) class Environment(object): def __init__(self, alpha, T, mining_cost=0.5): self.alpha = alpha self.T = T self.current_state = None self.mining_cost = mining_cost def reset(self): self.current_state = (0, 0) return self.current...
31.327273
77
0.585607
1,488
0.86361
0
0
0
0
0
0
10
0.005804
4897778aee005c5aa1bda6eba1bb9679879bf2ca
549
py
Python
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
null
null
null
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
1
2020-08-11T22:00:51.000Z
2020-08-11T23:55:48.000Z
passgen-py/setup.py
hassanselim0/PassGen
70e0187bfd58e0dc1fba5dbeea5b95769a599f60
[ "MIT" ]
1
2020-08-10T15:50:21.000Z
2020-08-10T15:50:21.000Z
from setuptools import setup, find_packages setup( name='passgen-py', packages=find_packages(), version='1.1', description='Generate Passwords Deterministically based on a Master Password.', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', ...
26.142857
83
0.599271
0
0
0
0
0
0
0
0
256
0.466302
489780fa9ccacfe9a097c426e6e4d2cf96e01913
163
py
Python
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
python-peculiarities/source/MultiplicationComplication.py
noamt/presentations
c5031ae0558d19be920ee1641ba2fc5f4fd88773
[ "Unlicense" ]
null
null
null
# https://codegolf.stackexchange.com/a/11480 multiplication = [] for i in range(10): multiplication.append(i * (i + 1)) for x in multiplication: print(x)
20.375
44
0.680982
0
0
0
0
0
0
0
0
44
0.269939
4898793ace916333da3e62990ff5fb14ce91eb0e
4,762
py
Python
bin/mkSampleInfo.py
icbi-lab/nextNEOpi
d9f6ccf5178e7ef1742b95e740ce3f39405f21dd
[ "BSD-3-Clause-Clear" ]
24
2021-06-16T07:20:43.000Z
2022-03-23T05:40:01.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
2
2021-12-09T16:43:45.000Z
2022-02-18T14:03:36.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
5
2021-08-25T06:54:47.000Z
2022-03-03T06:11:31.000Z
#!/usr/bin/env python """ Requirements: * Python >= 3.7 * Pysam Copyright (c) 2021 Dietmar Rieder <[email protected]> MIT License <http://opensource.org/licenses/MIT> """ RELEASE = False __version_info__ = ( "0", "1", ) __version__ = ".".join(__version_info__) __version__ += "-dev" if not ...
26.309392
77
0.545569
0
0
0
0
0
0
0
0
1,284
0.269635
489a6ae22cd0b248814c3b6aa65494aabadf9db8
3,115
py
Python
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import colorama from pick_db_file import pick_db_file import db_connection import card_repository from review_cards import review_cards from new_card import new_card from new_cards import new_cards import review from user_colors import print_info, print_instruction, print_error from usa...
40.454545
97
0.65618
0
0
0
0
0
0
0
0
643
0.206421
489b07c5f60a2349d39829b932ee2b381db5353d
14,996
py
Python
perceiver/train/dataset.py
kawa-work/deepmind-research
8fb75643598f680fdde8d20342b1b82bd2c0abb2
[ "Apache-2.0" ]
10,110
2019-08-27T20:05:30.000Z
2022-03-31T16:31:56.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
317
2019-11-09T10:19:10.000Z
2022-03-31T00:05:19.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
2,170
2019-08-28T12:53:36.000Z
2022-03-31T13:15:11.000Z
# Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
35.367925
80
0.684449
520
0.034676
3,217
0.214524
400
0.026674
0
0
3,759
0.250667
489b33857f5199eb9d0dc568f0aa601495f6f304
12,621
py
Python
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import factorial from pyapprox.indexing import hash_array from pyapprox.indexing import compute_hyperbolic_level_indices def multiply_multivariate_polynomials(indices1,coeffs1,indices2,coeffs2): """ TODO: instead of using dictionary to colect terms consider using uniqu...
32.44473
120
0.659853
0
0
0
0
0
0
0
0
5,061
0.400998
489cc2435903d89dac82418e6c3f47ec952a38f4
12,303
py
Python
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # mcan-vqa (Deep Modular Co-Attention Networks) # Licensed under The MIT License [see LICENSE for details] # Written by Yuhao Cui https://github.com/cuiyuhao1996 # -------------------------------------------------------- import h5py import pickle import random ...
42.71875
142
0.600992
11,633
0.945542
0
0
943
0.076648
0
0
4,608
0.374543
489dcb5eb95e27bdfa01e5e5808a8eedc54c5b9e
140
py
Python
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
src/scrapers/models/__init__.py
jskroodsma/helpradar
d9a2198db30995e790ab4f1611e15b85540cd3f8
[ "MIT" ]
null
null
null
from .database import Db from .initiatives import InitiativeBase, Platform, ImportBatch, InitiativeImport, BatchImportState, InitiativeGroup
70
115
0.864286
0
0
0
0
0
0
0
0
0
0
489e4aad3b2feb84feec86ee49098494b4522381
3,987
py
Python
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-06-12T17:31:10.000Z
2019-06-12T17:31:10.000Z
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
null
null
null
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-01-16T06:51:50.000Z
2019-01-16T06:51:50.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Widget that handles communications between a console in debugging mode and Spyder """ import ast from qtpy.QtCore import Qt from qtconsole.rich_jupyter_widget ...
36.577982
80
0.600953
3,639
0.912487
0
0
0
0
0
0
1,569
0.39343
489e5789fc9bdd522af9556ca44141058ccb8f59
27
py
Python
python/testData/completion/relativeImport/pkg/main.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/relativeImport/pkg/main.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/relativeImport/pkg/main.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from .string import <caret>
27
27
0.777778
0
0
0
0
0
0
0
0
0
0
48a016a1659ce678fbb42661714443c79c8a4486
9,848
py
Python
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
1
2021-11-28T09:29:33.000Z
2021-11-28T09:29:33.000Z
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import sklearn.metrics from dataset_chunking_fxns import subsample_df_by_groups import sklearn import sklearn.linear_model from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler import time...
39.870445
109
0.491166
0
0
0
0
0
0
0
0
806
0.081844
48a147ad6df1458c845aa4fd687c23becb0926e9
6,206
py
Python
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
""" PSET-7 Part 2: Triggers (PhraseTriggers) At this point, you have no way of writing a trigger that matches on "New York City" -- the only triggers you know how to write would be a trigger that would fire on "New" AND "York" AND "City" -- which also fires on the phrase "New students at York University love the c...
41.099338
150
0.549468
5,104
0.82243
0
0
0
0
0
0
1,795
0.289236
48a22194d70cb5daa8b009c12fc1c26cc1c8d905
1,522
py
Python
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
1
2017-03-02T19:32:31.000Z
2017-03-02T19:32:31.000Z
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
null
null
null
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
2
2018-03-14T16:56:53.000Z
2018-03-14T17:20:07.000Z
# -*- coding: utf-8 -*- from unittest import TestCase from mock import Mock, patch from vault.tests.fakes import fake_request from vault.views import SetProjectView from django.utils.translation import ugettext as _ class SetProjectTest(TestCase): def setUp(self): self.view = SetProjectView.as_view() ...
33.086957
78
0.704336
1,301
0.854796
0
0
884
0.580815
0
0
154
0.101183
48a2c6f00acb55753f06b34ad48a128100334441
2,364
py
Python
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
4
2020-04-08T03:42:02.000Z
2020-10-01T20:34:48.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
93
2020-03-26T14:29:14.000Z
2020-11-12T05:54:55.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
23
2020-03-24T10:28:44.000Z
2020-09-24T09:42:19.000Z
from tasks.cephfs.cephfs_test_case import CephFSTestCase import random import os class TestDumpTree(CephFSTestCase): def get_paths_to_ino(self): inos = {} p = self.mount_a.run_shell(["find", "./"]) paths = p.stdout.getvalue().strip().split() for path in paths: inos[path]...
35.283582
76
0.571489
2,281
0.96489
0
0
0
0
0
0
380
0.160745
48a598d9751db785f23d9a8e28422d557cff93bc
966
py
Python
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) control_pins = [7,11,13,15] for pin in control_pins: GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, 0) halfstep_seq = [ [1,0,0,0], [1,1,0,0], [0,1,0,0], [0,1,1,0], [0,0,1,0], [0,0,1,1], [0,0,0,1], [1,0,0,1] ] # speed from 0 to 1 (one bei...
18.576923
67
0.635611
0
0
0
0
0
0
0
0
119
0.123188
48a7ec0bb39b709f9863a091b7d85367791f1dab
2,924
py
Python
Experimental/OpenCVExp.py
awesomesauce12/6DBytes-CV
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
1
2016-06-24T23:09:43.000Z
2016-06-24T23:09:43.000Z
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os import math os.system("fswebcam -r 507x456 --no-banner image11.jpg") def showImage(capImg): cv2.imshow('img', capImg) cv2.waitKey(0) cv2.destroyAllWindows() img = cv2.imread('image11.jpg',-1) height, width, channel = img.shape topy= height topx = width hsv = cv2.cv...
21.5
94
0.651505
0
0
0
0
0
0
0
0
1,707
0.583789
48a84cb7d32acc3cbc3af963ca0e81cc7ff163d9
424
py
Python
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
poem/Poem/urls_public.py
kzailac/poem
9f898e3cc3378ef1c49517b4cf6335a93a3f49b0
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import include from django.http import HttpResponseRedirect from django.urls import re_path from Poem.poem_super_admin.admin import mysuperadmin urlpatterns = [ re_path(r'^$', lambda x: HttpResponseRedirect('/poem/superadmin/')), re_path(r'^superadmin/', mysuperadmin.urls), re_path(r...
32.615385
72
0.688679
0
0
0
0
0
0
0
0
80
0.188679
48a8ac917e1b840d71d262dd221cf4cb43769865
902
py
Python
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
import json from optimism.JaxConfig import * from optimism import Mesh def read_json_mesh(meshFileName): with open(meshFileName, 'r', encoding='utf-8') as jsonFile: meshData = json.load(jsonFile) coordinates = np.array(meshData['coordinates']) connectivity = np.array(meshData['connectivi...
31.103448
74
0.643016
0
0
0
0
0
0
0
0
67
0.074279
48a9df7987bdd5e6e1faa8cd6a7c8279d997c6ae
1,058
py
Python
networkx/algorithms/approximation/ramsey.py
rakschahsa/networkx
6cac55b1064c3c346665f9281680fa3b66442ad0
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# -*- coding: utf-8 -*- """ Ramsey numbers. """ # Copyright (C) 2011 by # Nicholas Mancuso <[email protected]> # All rights reserved. # BSD license. import networkx as nx from ...utils import arbitrary_element __all__ = ["ramsey_R2"] __author__ = """Nicholas Mancuso ([email protected])""" def ramse...
24.604651
70
0.63138
0
0
0
0
0
0
0
0
582
0.550095
48acd263a6439030b9241f1881827f94f5753592
677
py
Python
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
1
2021-11-10T15:24:36.000Z
2021-11-10T15:24:36.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
12
2020-01-15T00:19:41.000Z
2021-05-11T14:52:04.000Z
pysyte/oss/linux.py
git-wwts/pysyte
625658138cdb5affc1a6a89a9f2c7e3667ee80c2
[ "MIT" ]
2
2015-01-31T11:51:06.000Z
2015-01-31T21:29:19.000Z
"""Linux-specific code""" from pysyte.types import paths def xdg_home(): """path to $XDG_CONFIG_HOME >>> assert xdg_home() == paths.path('~/.config').expand() """ return paths.environ_path("XDG_CONFIG_HOME", "~/.config") def xdg_home_config(filename): """path to that file in $XDG_CONFIG_HOME ...
19.911765
79
0.660266
0
0
0
0
0
0
0
0
387
0.57164
48ae6c1d7db7737a61286051c58656fa1c61b3ae
387
py
Python
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
2
2020-07-30T14:07:19.000Z
2020-08-01T05:28:29.000Z
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
null
null
null
osu/osu_overlay.py
HQupgradeHQ/Daylight
a110a0f618877f5cccd66c4d75115c765d8f62a0
[ "MIT" ]
null
null
null
import mpv import keyboard import time p = mpv.MPV() p.play("song_name.mp4") def play_pause(): p.pause = not p.pause keyboard.add_hotkey("e", play_pause) def full(): p.fullscreen = not p.fullscreen keyboard.add_hotkey("2", full) def go_to_start(): p.time_pos = 2 keyb...
12.09375
38
0.620155
0
0
0
0
0
0
0
0
24
0.062016
48b02d948060f886a636e1dc8c11abff122b4be1
91,989
py
Python
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_db.py
dreamhost/swift
e90424e88bfaae17bf16f5c32b4d18deb5a6e71f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2011 OpenStack, 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 ...
45.270177
94
0.582309
86,499
0.940319
0
0
0
0
0
0
25,042
0.272228
48b05f987fe0e54d587244c5320a33f91ef59a44
10,824
py
Python
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
import os import pytest from robocorp_ls_core.protocols import IConfigProvider from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.unittest_tools.cases_fixture import CasesFixture from robocorp_code.protocols import IRcc, ActionResult import sys from typing import Any from pathlib import ...
30.490141
324
0.610957
4,396
0.405947
0
0
4,820
0.445101
0
0
2,475
0.228553
48b0b31dabd46b83a7d8a1c53e2be4a3ab952b42
2,182
py
Python
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:45.000Z
2019-10-10T06:14:45.000Z
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:48.000Z
2019-10-10T06:14:48.000Z
# Copyright 2018 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...
35.770492
80
0.706691
1,362
0.624198
0
0
1,394
0.638863
0
0
1,865
0.85472
48b322c1b5c9322a3e7a06f6f8cf4904f59abc42
1,373
py
Python
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
1
2019-08-04T22:44:54.000Z
2019-08-04T22:44:54.000Z
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
import os import re import string import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from GEN_Utils import FileHandling from loguru import logger logger.info("Import OK") # Set sample-specific variables input_path = 'examples/python/gauss_models/' output_path = 'examples/py...
27.46
73
0.718135
0
0
0
0
0
0
0
0
445
0.324108
48b3cc7ab2adb8652b3ac164a64a50173d354d2a
4,759
py
Python
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
10
2020-01-05T19:33:33.000Z
2022-02-04T14:56:09.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
1
2019-12-18T15:16:44.000Z
2019-12-18T15:16:44.000Z
PlatformerGame/malmopy/explorers.py
MrMaik/platformer-ml-game
bbcabe3ddea1e3cfddb01b4cd60c8dd1bd79acac
[ "MIT" ]
6
2019-12-18T14:45:37.000Z
2021-09-13T12:48:28.000Z
# -------------------------------------------------------------------------------------------------- # Copyright (c) 2018 Microsoft Corporation # # 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 Softw...
36.328244
100
0.65497
3,229
0.678504
0
0
71
0.014919
0
0
2,791
0.586468
48b5904c4c46f166269a35d1d5aae2ecfb57bef7
765
py
Python
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
1
2020-06-07T17:56:13.000Z
2020-06-07T17:56:13.000Z
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
# Standard imports import sys # Project imports from icecreamscrape.cli import cli from icecreamscrape.webdriver import driver_factory from icecreamscrape import composites as comps from icecreamscrape.composites import create_timestamped_dir def main(args=sys.argv[1:]): """ Main function. :param: args is used for ...
24.677419
60
0.75817
0
0
0
0
0
0
0
0
144
0.188235
48b8c62b25b3330d58b5291c6fc3a3f2df2e485f
5,051
py
Python
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# pylint: skip-file # type: ignore # -*- coding: utf-8 -*- # # tests.controllers.mission.mission_unit_test.py is part of The # RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Test class for testing Mission module algorithms ...
33.673333
88
0.713324
3,988
0.789547
0
0
4,331
0.857454
0
0
1,848
0.365868
48b9335e8465f09c7a066bfa90b273be5d354b55
569
py
Python
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
5
2019-07-26T17:03:26.000Z
2020-10-17T23:23:43.000Z
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
9
2018-01-14T15:20:23.000Z
2021-03-08T20:29:51.000Z
src/streamlink/packages/flashmedia/flv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
4
2018-01-14T13:27:25.000Z
2021-11-15T22:28:30.000Z
#!/usr/bin/env python from .error import FLVError from .compat import is_py2 from .tag import Header, Tag class FLV(object): def __init__(self, fd=None, strict=False): self.fd = fd self.header = Header.deserialize(self.fd) self.strict = strict def __iter__(self): return self ...
18.966667
62
0.606327
439
0.771529
0
0
0
0
0
0
26
0.045694
48b9e626c31a3acad3ffc788ac2313af13310a0d
120
py
Python
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
24
2018-05-25T15:23:30.000Z
2021-06-09T10:56:52.000Z
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
14
2019-04-30T10:51:01.000Z
2020-09-16T20:37:30.000Z
tests/core/test_core_renderer.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
9
2019-06-12T10:54:18.000Z
2022-01-15T21:19:05.000Z
from pheasant.renderers.jupyter.jupyter import Jupyter jupyter = Jupyter() jupyter.findall("{{3}}3{{5}}") jupyter.page
20
54
0.75
0
0
0
0
0
0
0
0
13
0.108333
48ba4f165b3430e0ef9885d29722f28bf1be64bd
687
py
Python
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
chapter2-5-your-code-in-multiple-servers/packer/webapp.py
andrecp/devops-fundamentals-to-k8s
9ea1cfdcfcc07faf195bd26faa5917628385cdfc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from http.server import HTTPServer, BaseHTTPRequestHandler num_requests = 0 class Handler(BaseHTTPRequestHandler): def _set_headers(self): self.send_response(200) self.send_header("Content-type", "application/json") self.end_headers() def do_GET(self...
27.48
75
0.678311
401
0.583697
0
0
0
0
0
0
133
0.193595
48bb529c5d5a0817b3c6e3353e857c62a73b8a16
91
py
Python
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
from app.app import create_app from config import BaseConfig app = create_app(BaseConfig)
18.2
30
0.824176
0
0
0
0
0
0
0
0
0
0
48bb6abe88059d9888226636da8508d01f476cba
3,896
py
Python
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
1
2021-06-20T16:58:21.000Z
2021-06-20T16:58:21.000Z
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
null
null
null
retarget/make_data.py
EggPool/rx-experiments
a8659a94e1b0822a9e7f4121407fb2b5ededa192
[ "MIT" ]
2
2019-11-26T12:18:18.000Z
2022-03-28T19:22:55.000Z
""" Create data for simulations (c) 2019 - EggdraSyl """ import json # from mockup import Blockchain, Block from minersimulator import MinerSimulator from math import sin, pi SPECIAL_MIN_TIME = 5 * 60 def init_stable( start, end, block_time=60, target="0000000000000028acfa28a803d200000000000000000...
30.4375
91
0.641427
0
0
0
0
0
0
0
0
1,017
0.261037
48bb8a2d0cac5d726a9c18529c0114315a34c2c3
13,473
py
Python
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
software/pynguin/tests/testcase/statements/test_primitivestatements.py
se2p/artifact-pynguin-ssbse2020
32b5f4d27ef1b81e5c541471e98fa6e50f5ce8a6
[ "CC-BY-4.0" ]
null
null
null
# This file is part of Pynguin. # # Pynguin is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Pynguin is distributed in the ho...
34.724227
88
0.720255
0
0
0
0
5,749
0.426705
0
0
1,538
0.114154
48bbe200dfeacc3fe42e8fdff56e3de41ac32c2b
725
py
Python
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
1
2022-03-30T15:06:18.000Z
2022-03-30T15:06:18.000Z
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
src/data/download/datasets/download_tencent_test.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
from pathlib import Path from src import constants from src.data.download.utils.download_dataset_zip import download_dataset_zip def download_tencent_test( tmp_dir: Path = None, tqdm_name: str = None, tqdm_idx: int = None, ): """Download the test set of the Tencent Corpus and extract it to the ap...
25.892857
77
0.714483
0
0
0
0
0
0
0
0
131
0.18069
48bc446a06d58d6a75df610f9236257a1d789475
9,669
py
Python
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
malaya_speech/train/model/fastspeechsplit/model.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import tensorflow as tf from ..fastspeech.model import ( TFFastSpeechEncoder, TFTacotronPostnet, TFFastSpeechLayer, ) from ..speechsplit.model import InterpLnr import numpy as np import copy class Encoder_6(tf.keras.layers.Layer): def __init__(self, config, hparams, **kwargs): super(Encoder_6,...
34.532143
79
0.617541
9,445
0.976833
0
0
0
0
0
0
357
0.036922
48bc4c72c304a6d7aeeb0dab781f82a2616fe4d3
4,766
py
Python
test/test_memory_leaks.py
elventear/psutil
c159f3352dc5f699143960840e4f6535174690ed
[ "BSD-3-Clause" ]
4
2015-01-06T01:39:12.000Z
2019-12-09T10:27:44.000Z
test/test_memory_leaks.py
elventear/psutil
c159f3352dc5f699143960840e4f6535174690ed
[ "BSD-3-Clause" ]
null
null
null
test/test_memory_leaks.py
elventear/psutil
c159f3352dc5f699143960840e4f6535174690ed
[ "BSD-3-Clause" ]
2
2016-10-21T03:15:34.000Z
2018-12-10T03:40:50.000Z
#!/usr/bin/env python # # $Id$ # """ Note: this is targeted for python 2.x. To run it under python 3.x you need to use 2to3 tool first: $ 2to3 -w test/test_memory_leaks.py """ import os import gc import sys import unittest import psutil from test_psutil import reap_children, skipUnless, skipIf, \ ...
24.822917
82
0.599245
4,075
0.855015
0
0
515
0.108057
0
0
747
0.156735
48bc6e9f0498c16dbcd64706a2f744500361365e
8,516
py
Python
ga4gh/search/compliance/util/local_server.py
ga4gh-discovery/ga4gh-search-compliance
58c693ca2f96d145f4ccba08aec23e4ebe1f7599
[ "Apache-2.0" ]
null
null
null
ga4gh/search/compliance/util/local_server.py
ga4gh-discovery/ga4gh-search-compliance
58c693ca2f96d145f4ccba08aec23e4ebe1f7599
[ "Apache-2.0" ]
null
null
null
ga4gh/search/compliance/util/local_server.py
ga4gh-discovery/ga4gh-search-compliance
58c693ca2f96d145f4ccba08aec23e4ebe1f7599
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Module compliance_suite.report_server.py This module contains class definition of small web server utility. Serves final report results as HTML. """ import datetime import time import http.server import socketserver import os import logging import inspect import socket import webbrowser imp...
33.136187
83
0.516557
6,876
0.807421
0
0
0
0
0
0
3,238
0.380225
48bc7c9db7dabf6628ee230ef0c1f45b6794af0d
2,146
py
Python
api/routefinder.py
shingkid/DrWatson-ToTheRescue_SCDFXIBM
009d2b4599b276ea760dbd888718a25332893075
[ "MIT" ]
1
2020-06-12T10:24:31.000Z
2020-06-12T10:24:31.000Z
api/routefinder.py
yankai364/Dr-Watson
22bd885d028e118fa5abf5a9d0ea373b7020ca1d
[ "MIT" ]
3
2020-09-24T15:36:33.000Z
2022-02-10T02:32:42.000Z
api/routefinder.py
shingkid/DrWatson-ToTheRescue_SCDFXIBM
009d2b4599b276ea760dbd888718a25332893075
[ "MIT" ]
1
2020-06-14T10:09:58.000Z
2020-06-14T10:09:58.000Z
import csv import pandas as pd import numpy as np import networkx as nx class RouteFinder(): def __init__(self): G = nx.Graph() with open('data/node_pairs.csv') as csvfile: readCSV = csv.reader(csvfile, delimiter=',') for row in readCSV: # add edges ...
24.11236
83
0.547996
2,072
0.965517
0
0
0
0
0
0
166
0.077353
48bd4369d1643a3a728218455de1ea42bfd683e8
8,084
py
Python
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
4
2019-11-15T15:21:27.000Z
2020-07-08T15:04:30.000Z
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
9
2019-11-18T15:54:36.000Z
2020-07-14T13:56:53.000Z
lectures/extensions/hyperbolic_discounting/replication_code/.mywaflib/waflib/extras/rst.py
loikein/ekw-lectures
a2f5436f10515ab26eab323fca8c37c91bdc5dcd
[ "MIT" ]
3
2021-01-25T15:41:30.000Z
2021-09-21T08:51:36.000Z
#!/usr/bin/env python # Jérôme Carretero, 2013 (zougloub) """ reStructuredText support (experimental) Example:: def configure(conf): conf.load('rst') if not conf.env.RST2HTML: conf.fatal('The program rst2html is required') def build(bld): bld( features = 'rst', type = 'rst2html', # rst2html, rst...
29.289855
114
0.593147
3,383
0.418377
0
0
2,305
0.285061
0
0
2,403
0.29718
48bf7ed2085cdea54fbe4837b4e8e76a67b7373c
1,339
py
Python
mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py
BoxInABoxICT/BoxPlugin
ad351978faa37ab867a86d2f4023a2b3e5a2ce19
[ "Apache-2.0" ]
null
null
null
mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py
BoxInABoxICT/BoxPlugin
ad351978faa37ab867a86d2f4023a2b3e5a2ce19
[ "Apache-2.0" ]
null
null
null
mofa/analytics/tests/test_participationAnalytics/test_quizParticipation.py
BoxInABoxICT/BoxPlugin
ad351978faa37ab867a86d2f4023a2b3e5a2ce19
[ "Apache-2.0" ]
null
null
null
import unittest import json import os from unittest.mock import MagicMock, patch from analytics.src.participationAnalytics import quizParticipation class TestQuizParticipation(unittest.TestCase): @patch("analytics.src.participationAnalytics.quizParticipation.runQuery") def test_generateData(self, lrs_mock):...
32.658537
77
0.657207
1,187
0.886482
0
0
1,128
0.84242
0
0
515
0.384615
48bf9da5843cf6858ec4f1074f331bc92553a1cd
1,171
py
Python
visualize_cam.py
mhamdan91/Gradcam_eager
ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d
[ "MIT" ]
2
2019-09-19T18:08:26.000Z
2019-10-11T12:42:22.000Z
visualize_cam.py
mhamdan91/Gradcam_eager
ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d
[ "MIT" ]
null
null
null
visualize_cam.py
mhamdan91/Gradcam_eager
ee732ff65256ef1692caf94c8c0b4bdbe22d2d1d
[ "MIT" ]
null
null
null
# from utils import Sample_main import gradcam_main import numpy as np import tensorflow as tf import argparse import os tf.logging.set_verbosity(tf.logging.ERROR) # disable to see tensorflow warnings def cam(in_path='sample.bmp', out_path = 'sample.png',): gradcam_main.cam_vis(in_path, out_path) def main(): ...
34.441176
150
0.64304
0
0
0
0
0
0
0
0
385
0.328779
48bfa6a9870aa2f95044df7a3145739de4a0dc15
1,681
py
Python
tests/molecular/molecules/building_block/test_with_functional_groups.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/molecular/molecules/building_block/test_with_functional_groups.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/molecular/molecules/building_block/test_with_functional_groups.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
from ..utilities import ( has_same_structure, is_equivalent_molecule, is_equivalent_building_block, are_equivalent_functional_groups, ) def test_with_functional_groups(building_block, get_functional_groups): """ Test :meth:`.BuildingBlock.with_functional_groups`. Parameters ----------...
26.68254
71
0.702558
0
0
0
0
0
0
0
0
812
0.483046
48bfa7e063bfbe3193516ebfca7f4a3ae8dc8a0a
9,512
py
Python
tests/master/test_master.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
tests/master/test_master.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
tests/master/test_master.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
# The piwheels project # Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall> # Copyright (c) 2017 Dave Jones <[email protected]> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistribution...
38.983607
107
0.678616
0
0
2,184
0.229605
2,274
0.239066
0
0
3,080
0.323802
48c0042b454fab2f52a5d4277d95dcb8ccdc7da6
1,254
py
Python
dibase/rpi/gpio/test/pinid-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/gpio/test/pinid-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
dibase/rpi/gpio/test/pinid-platformtests.py
ralph-mcardell/dibase-rpi-python
724c18d1f3c6745b3dddf582ea2272ed4e2df8ac
[ "BSD-3-Clause" ]
null
null
null
''' Part of the dibase.rpi.gpio.test package. GPIO pin id support classes' platform tests. Underlying GPIO pin ids are those used by the Linux gpiolib and used to identify a device's GPIO pins in the Linux sys filesystem GPIO sub-tree. Developed by R.E. McArdell / Dibase Limited. ...
33.891892
83
0.719298
604
0.481659
0
0
0
0
0
0
489
0.389952
48c34cc81742111643982bd0d218ec0140e5a1a0
7,503
py
Python
analysis.py
tj294/2.5D-RB
f72f79d349ff27a058f503ccca58d63babb298e2
[ "MIT" ]
null
null
null
analysis.py
tj294/2.5D-RB
f72f79d349ff27a058f503ccca58d63babb298e2
[ "MIT" ]
null
null
null
analysis.py
tj294/2.5D-RB
f72f79d349ff27a058f503ccca58d63babb298e2
[ "MIT" ]
null
null
null
""" Analysis code for plotting vertical flux transport and/or a gif of temperature, velocity and KE from the merged output of a Dedalus Rayleigh-Bérnard code. Author: Tom Joshi-Cale """ # ==================== # IMPORTS # ==================== import numpy as np import h5py import argparse import matplotlib.pyplot as plt...
31.52521
88
0.53432
0
0
0
0
0
0
0
0
1,655
0.220549
48c388d2a91f2301d0f59df1f50eb64349cced6a
2,104
py
Python
direct_gd_predict/hash-profile.py
wac/meshop
ea5703147006e5e85617af897e1d1488e6f29f32
[ "0BSD" ]
1
2016-05-08T14:54:31.000Z
2016-05-08T14:54:31.000Z
direct_gd_predict/hash-profile.py
wac/meshop
ea5703147006e5e85617af897e1d1488e6f29f32
[ "0BSD" ]
null
null
null
direct_gd_predict/hash-profile.py
wac/meshop
ea5703147006e5e85617af897e1d1488e6f29f32
[ "0BSD" ]
null
null
null
import sys import heapq import optparse from bitcount2 import bitcount hasher={} profile={} key_list=[] key_col=0 def usage(): print sys.argv[0]," [profile_file]" print " Load the profile lines from profile_file" print " Hash function uses the features listed in profile_file" print " and tests f...
23.120879
85
0.65827
0
0
0
0
0
0
0
0
504
0.239544
48c5df022af8f3cc4834d472772e95a600e0b3cc
3,804
py
Python
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py
conniey/azure-sdk-for-python
f779de8e53dbec033f98f976284e6d9491fd60b3
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py
conniey/azure-sdk-for-python
f779de8e53dbec033f98f976284e6d9491fd60b3
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py
conniey/azure-sdk-for-python
f779de8e53dbec033f98f976284e6d9491fd60b3
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
49.402597
137
0.701367
2,468
0.648791
0
0
0
0
1,574
0.413775
1,711
0.44979
48c82cf824c0f047f355b4e4cd11359596e54a76
5,037
py
Python
multi_tool.py
zbigos/multi_project_tools
cb9996d0fea0c2c763054ad5f78e904a68b9c80e
[ "Apache-2.0" ]
null
null
null
multi_tool.py
zbigos/multi_project_tools
cb9996d0fea0c2c763054ad5f78e904a68b9c80e
[ "Apache-2.0" ]
null
null
null
multi_tool.py
zbigos/multi_project_tools
cb9996d0fea0c2c763054ad5f78e904a68b9c80e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging, sys, argparse from collect import Collection if __name__ == '__main__': parser = argparse.ArgumentParser(description="test a project repo") parser.add_argument('--force-delete', help='instead of aborting on existing files, delete them', action='store_const', const=True) ...
59.258824
157
0.728608
0
0
0
0
0
0
0
0
2,548
0.505857
48c98054b3a6ea0035473ed0534ee80b41dcebb8
4,327
py
Python
benchbuild/projects/benchbuild/bots.py
ognarb/benchbuild
ad93ae0666e3100fd36c697793c0db1ba52938d0
[ "MIT" ]
null
null
null
benchbuild/projects/benchbuild/bots.py
ognarb/benchbuild
ad93ae0666e3100fd36c697793c0db1ba52938d0
[ "MIT" ]
null
null
null
benchbuild/projects/benchbuild/bots.py
ognarb/benchbuild
ad93ae0666e3100fd36c697793c0db1ba52938d0
[ "MIT" ]
null
null
null
from plumbum import local from benchbuild import project from benchbuild.utils import compiler, download, run, wrapping from benchbuild.utils.cmd import make, mkdir @download.with_git("https://github.com/bsc-pm/bots", limit=5) class BOTSGroup(project.Project): """ Barcelona OpenMP Task Suite. Barcelona ...
28.655629
79
0.580079
4,063
0.938988
0
0
3,637
0.840536
0
0
1,971
0.455512
48c9b882f54e25efdd1d54210cde93be6398663c
668
py
Python
clients/python/setup.py
timtadh/queued
9c46a49a73103de9a929718c223326149cb9accd
[ "BSD-3-Clause" ]
4
2015-12-29T05:07:50.000Z
2022-02-10T20:27:40.000Z
clients/python/setup.py
timtadh/queued
9c46a49a73103de9a929718c223326149cb9accd
[ "BSD-3-Clause" ]
1
2015-04-16T15:56:26.000Z
2015-04-16T15:56:26.000Z
clients/python/setup.py
timtadh/queued
9c46a49a73103de9a929718c223326149cb9accd
[ "BSD-3-Clause" ]
8
2015-02-24T12:05:16.000Z
2022-02-10T20:27:41.000Z
try: from setuptools import setup setup # quiet "redefinition of unused ..." warning from pyflakes # arguments that distutils doesn't understand setuptools_kwargs = { 'install_requires': [ ], 'provides': ['queued'], 'zip_safe': False } except ImportError: fro...
23.034483
69
0.586826
0
0
0
0
0
0
0
0
234
0.350299
48ca7f075d0516343cadcc4c408fff80c48e1083
11,129
py
Python
sym_executor.py
zhangzhenghsy/fiber
af1a8c8b01d4935849df73b01ccfeccbba742205
[ "BSD-2-Clause" ]
null
null
null
sym_executor.py
zhangzhenghsy/fiber
af1a8c8b01d4935849df73b01ccfeccbba742205
[ "BSD-2-Clause" ]
null
null
null
sym_executor.py
zhangzhenghsy/fiber
af1a8c8b01d4935849df73b01ccfeccbba742205
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import angr,simuvex import sys,os import time from utils_sig import * from sym_tracer import Sym_Tracer from sig_recorder import Sig_Recorder #This class is responsible for performing symbolic execution. class Sym_Executor(object): def __init__(self,options=None,dbg_out=False): self.trace...
54.287805
243
0.673556
10,905
0.979872
0
0
0
0
0
0
5,151
0.462845
48ca956ecd40df08896e125936a630042abd2d96
2,228
py
Python
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
1,573
2015-01-01T07:19:06.000Z
2022-03-30T09:06:06.000Z
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
1,691
2015-01-03T11:03:23.000Z
2022-03-30T07:27:28.000Z
apim-migration-testing-tool/Python/venv/lib/python3.6/site-packages/pymysql/constants/CR.py
tharindu1st/apim-migration-resources
dd68aa8c53cf310392bb72e699dd24c57b109cfb
[ "Apache-2.0" ]
895
2015-01-03T19:56:15.000Z
2022-03-18T18:30:57.000Z
# flake8: noqa # errmsg.h CR_ERROR_FIRST = 2000 CR_UNKNOWN_ERROR = 2000 CR_SOCKET_CREATE_ERROR = 2001 CR_CONNECTION_ERROR = 2002 CR_CONN_HOST_ERROR = 2003 CR_IPSOCK_ERROR = 2004 CR_UNKNOWN_HOST = 2005 CR_SERVER_GONE_ERROR = 2006 CR_VERSION_ERROR = 2007 CR_OUT_OF_MEMORY = 2008 CR_WRONG_HOST_INFO = 2009 CR_LOCALHOST_...
32.289855
47
0.745063
0
0
0
0
0
0
0
0
24
0.010772
48cccf1158ee9bcd15cefd678338ca10d4234710
992
py
Python
check-challenge.py
gjaiswal108/Check-if-Challenge-problem-added-in-codechef
74b29725ad38bdf0dc210dbdb67fccf056ec6d8c
[ "Apache-2.0" ]
null
null
null
check-challenge.py
gjaiswal108/Check-if-Challenge-problem-added-in-codechef
74b29725ad38bdf0dc210dbdb67fccf056ec6d8c
[ "Apache-2.0" ]
null
null
null
check-challenge.py
gjaiswal108/Check-if-Challenge-problem-added-in-codechef
74b29725ad38bdf0dc210dbdb67fccf056ec6d8c
[ "Apache-2.0" ]
null
null
null
import requests,smtplib,time from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart r =requests.get('https://www.codechef.com/JUNE19B/') while(1): if('(Challenge)' in r.text): s = smtplib.SMTP('smtp.gmail.com', 587) s.starttls() s.login("sender_gmail_id", "passwo...
41.333333
164
0.647177
0
0
0
0
0
0
0
0
489
0.492944
48cd5f2495ad481cbf1d4200796edf478513850e
2,840
py
Python
applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
applications/tensorflow/click_through_rate/din/test/test_attention_fcn.py
kew96/GraphcoreExamples
22dc0d7e3755b0a7f16cdf694c6d10c0f91ee8eb
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.216867
116
0.669366
1,791
0.630634
0
0
1,835
0.646127
0
0
778
0.273944
48cd84239fff9070a94f62f2913b39c9eded80ea
204
py
Python
shiva/constants.py
tooxie/shiva-server
4d169aae8d4cb01133f62701b14610695e48c297
[ "MIT" ]
70
2015-01-09T15:15:15.000Z
2022-01-14T09:51:55.000Z
shiva/constants.py
tooxie/shiva-server
4d169aae8d4cb01133f62701b14610695e48c297
[ "MIT" ]
14
2015-01-04T10:08:26.000Z
2021-12-13T19:35:07.000Z
shiva/constants.py
tooxie/shiva-server
4d169aae8d4cb01133f62701b14610695e48c297
[ "MIT" ]
19
2015-01-02T22:42:01.000Z
2022-01-14T09:51:59.000Z
# -*- coding: utf-8 -*- class HTTP: BAD_REQUEST = 400 UNAUTHORIZED = 401 FORBIDDEN = 403 NOT_FOUND = 404 METHOD_NOT_ALLOWED = 405 CONFLICT = 409 UNSUPPORTED_MEDIA_TYPE = 415
17
32
0.632353
177
0.867647
0
0
0
0
0
0
23
0.112745