hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
24605b6587afbc12049e73b54cb4418582146acb
37
py
Python
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
213
2020-04-16T10:48:31.000Z
2022-03-30T20:48:07.000Z
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
1,088
2020-04-03T13:23:29.000Z
2022-03-31T23:55:03.000Z
zhaquirks/bosch/__init__.py
WolfRevo/zha-device-handlers
0fa4ca1c03c611be0cf2c38c4fec2a197e3dd1d3
[ "Apache-2.0" ]
280
2020-04-24T08:44:27.000Z
2022-03-31T12:58:04.000Z
"""Bosch quirks.""" BOSCH = "Bosch"
9.25
19
0.567568
2461451b3428279cbbc4968cdac79244d3d6001a
3,251
py
Python
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
3
2015-05-18T13:49:41.000Z
2020-01-21T11:12:08.000Z
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
null
null
null
djcookieauth/middleware.py
benoitc/dj-cookieauth
7397db7adf11e480f9954bf7518a3d522f5b28e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of dj-cookieauth released under the Apache 2 license. # See the NOTICE for more information. import base64 import hmac import hashlib import time from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.contrib.auth.models import...
28.769912
88
0.569978
2461bf3779f8f53bfec6956001ecc2d3efe42214
1,225
py
Python
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
1
2021-12-16T13:25:38.000Z
2021-12-16T13:25:38.000Z
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
null
null
null
src/20.py
sroccaserra/aoc2021
a9024ac59fdbe519271d6fab937b9123095955e1
[ "BSD-3-Clause" ]
null
null
null
import sys import fileinput from collections import defaultdict from itertools import chain if __name__ == '__main__' and not sys.flags.interactive: lines = [line.strip() for line in fileinput.input()] print(solve(lines[0], lines[2:], 2)) print(solve(lines[0], lines[2:], 50))
25
95
0.513469
24629d61c69e7cc1eb4d14dec1215374f034c8fe
981
py
Python
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
2
2021-07-09T23:22:25.000Z
2021-07-27T23:15:52.000Z
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
null
null
null
leetcode/_429.py
simonzhang0428/LeetCode
7daee7572d8235a34071aa831452ed5d0e93d947
[ "Apache-2.0" ]
null
null
null
# Definition for a Node. """ 11:23 - 11:36 7/30 high level: BFS, level order traversal mid level: queue store cur level res, for the popped node, for its all children, add them to queue test: size = 2 cur_res = [5, 6] q = [] cur = 6 res = [[1], [3, 2, 4], [5, 6]] time: O(# of nodes) -> O(n) space:O(max(width of no...
24.525
98
0.538226
24636ddfa2e30b261c8803f61c052b071474bcda
926
py
Python
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
2
2017-11-16T16:47:55.000Z
2018-01-02T17:00:09.000Z
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
null
null
null
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
2
2019-08-06T11:57:35.000Z
2020-09-01T15:50:51.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-payfast', version='0.3.dev', author='Mikhail Korobov', author_email='kmike84@gmail.com', maintainer='Piet Delport', maintainer_email='pjdelport@gmail.com', packages=find_packages(exclude=['payfast_tests']...
31.931034
95
0.656587
246405a3df29d2d69c702ebd40ef421c5c95784b
12,036
py
Python
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
5
2020-05-20T09:30:30.000Z
2021-06-27T14:17:33.000Z
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
5
2020-05-16T18:49:42.000Z
2021-02-11T21:46:32.000Z
python/special.py
rodluger/starrynight
d3f015e466621189cb271d4d18b538430b14a557
[ "MIT" ]
1
2020-05-19T17:11:57.000Z
2020-05-19T17:11:57.000Z
from utils import * from mpmath import ellipe, ellipk, ellippi from scipy.integrate import quad import numpy as np C1 = 3.0 / 14.0 C2 = 1.0 / 3.0 C3 = 3.0 / 22.0 C4 = 3.0 / 26.0 def el2(x, kc, a, b): """ Vectorized implementation of the `el2` function from Bulirsch (1965). In this case, `x` is a *vec...
28.121495
88
0.465022
24646d858bd45611b38521c81ad12d15324e8859
821
py
Python
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
null
null
null
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
null
null
null
capitalist/contrib/django/django_capitalist/validators.py
wit4er/python-capitalist
08f74ab80155b9a4a72c3a03bd1b13153fbdb891
[ "MIT" ]
3
2020-03-02T12:40:00.000Z
2021-12-24T12:04:36.000Z
from django.core.exceptions import ValidationError from django.utils.deconstruct import deconstructible from django.utils.translation import gettext_lazy as _
29.321429
64
0.644336
2465cc873ed6feb0ba74d0cd8e91b52c64dfa6ff
130
py
Python
bolt_srl/__init__.py
Michael-Dyq/SRL-English
2187b692515fb00c8f78428fa007266129d1a6b8
[ "MIT" ]
null
null
null
bolt_srl/__init__.py
Michael-Dyq/SRL-English
2187b692515fb00c8f78428fa007266129d1a6b8
[ "MIT" ]
null
null
null
bolt_srl/__init__.py
Michael-Dyq/SRL-English
2187b692515fb00c8f78428fa007266129d1a6b8
[ "MIT" ]
null
null
null
from bolt_srl.model import BoltSRLModel from bolt_srl.predictor import BoltSRLPredictor from bolt_srl.reader import BoltSRLReader
32.5
47
0.884615
24669af442e48736ce23de6fe426df216d0af465
661
py
Python
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
sharedql/schema.py
akaytatsu/sharedql
ceeb3df2909bc90325c72f930fba35de6827ee74
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import importlib from django.conf import settings import graphene from .base import sharedql for imports in settings.INSTALLED_APPS: imports = imports + ".schema" try: mod = importlib.import_module(imports + ".schema") except ImportError: ...
25.423077
81
0.715582
246776056c54f30b3df5df01d66538e862fc551a
785
py
Python
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
test = Solution() print test.numIslands( [[1, 1, 0, 0, 0], [0, 1, 0, 0, 1], [0, 0, 0, 1, 1], [0, 0, 0, 0, 0], [0, 0, 0, 0, 1]])
25.322581
84
0.426752
24685b6b4438884df1658a8b24d9222661482d53
279
py
Python
pyaudio_fix.py
cyberboysumanjay/VoiceAssistant
a8dcfe6bf5fdbbdbfc50cd2a20f646d8844d4297
[ "MIT" ]
11
2018-09-23T10:15:40.000Z
2022-02-13T19:49:59.000Z
pyaudio_fix.py
ALBINPRAVEEN/Jarvis-Assistant
4269088a484ac57b5adb3417efb5b78c7a7d89ed
[ "FSFAP" ]
null
null
null
pyaudio_fix.py
ALBINPRAVEEN/Jarvis-Assistant
4269088a484ac57b5adb3417efb5b78c7a7d89ed
[ "FSFAP" ]
3
2020-06-28T02:47:43.000Z
2021-08-16T19:03:12.000Z
""" import pyaudio p = pyaudio.PyAudio() for i in range(p.get_device_count()) print(p.get_device_info_by_index(i)) """ import pyaudio p = pyaudio.PyAudio() for i in range(p.get_device_count()): info = p.get_device_info_by_index(i) print(info['index'], info['name'])
21.461538
40
0.698925
2469efb06c9e4b043a1091af06f2066f495a964d
4,847
py
Python
epytope/Data/pssms/arb/mat/A_0203_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/arb/mat/A_0203_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/arb/mat/A_0203_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_0203_11 = {0: {'A': -0.12570904708437197, 'C': -0.20260572185781892, 'E': -4.0, 'D': -4.0, 'G': -4.0, 'F': -4.0, 'I': 0.7830374415420228, 'H': -0.6847918068824875, 'K': -0.6847918068824875, 'M': 0.981018297402464, 'L': 1.1760718746127061, 'N': -0.09649609424570203, 'Q': 0.39410708558422325, 'P': -4.0, 'S': -0.2026057...
4,847
4,847
0.637095
246a10b85099e22d96ea411de65b12bcd5947ba4
2,644
py
Python
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/query_spec.py
jdiaz/snorkel
d553480f3193f105d6f5befa04afb3656cd94d49
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import werkzeug try: import dotmap except: dotmap = None try: import addict except: addict = None
22.991304
90
0.507943
246a759fd309fc3554f45bdaa503500c67764f46
595
py
Python
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-26 00:42 from django.db import migrations, models
24.791667
70
0.596639
246abb95d07b09fb5078b3e62e092f7a3e3e9fbc
349
py
Python
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
import sys MASTER_PASSWORD = "opensesame" password = input("Please enter the super secret password: ") attempt_count = 1 while password != MASTER_PASSWORD: if attempt_count > 3: sys.exit("Too many invalid password attempts") password = input("Invalid password, try again: ") attempt_count += 1 pri...
24.928571
60
0.713467
246b0933b8c25cdde9aa707e3204fed16c23d116
5,984
py
Python
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
import json import os from typing import Dict, Tuple, List import numpy as np import tensorflow as tf from keras import backend as K from textgenrnn.model import textgenrnn_model def rnn_guess(models_dir: str, check_models: List[str], in_str: str, reset=False) -> Dict[str, float]: """Keyword arguments for get_...
39.893333
110
0.625501
79e0e2d611865157c4511898cc3f7aa9623c7290
1,268
py
Python
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
mysite/note/management/commands/create_note.py
t2y/wagtail-app-sample
9c0592d80ccec3dd0d6f385f46372dccbcbd2a01
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand, no_translations from note.models import NoteIndexPage from note.models import NotePage
30.926829
71
0.615142
79e0f7cba7f4db860df1c6875bec34fdc21fc9f7
918
py
Python
organizations/migrations/0002_auto_20170316_1255.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
1
2017-04-12T15:37:26.000Z
2017-04-12T15:37:26.000Z
organizations/migrations/0002_auto_20170316_1255.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
15
2017-03-15T12:40:40.000Z
2017-03-19T16:54:21.000Z
organizations/migrations/0002_auto_20170316_1255.py
ourrevcambridge/orgcat
7c34cc52a6645c14650c8732a39f984dd02640d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-16 12:55 from __future__ import unicode_literals from django.db import migrations, models
26.228571
63
0.577342
79e17f968ed936c3149f0f9aa97bfbf0ba74f0e1
780
py
Python
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
69
2018-10-10T01:59:11.000Z
2022-03-29T17:29:30.000Z
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
18
2018-11-17T12:42:02.000Z
2021-05-22T18:45:27.000Z
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
7
2018-10-12T16:20:25.000Z
2021-10-06T12:18:21.000Z
from flask_unchained import BundleConfig
24.375
85
0.671795
79e321fad4040ad4eb4cb794f188196f9be074b1
94
py
Python
selection/sampling/randomized/api.py
Xiaoying-Tian/selective-inference
a20c5ad3f527beb709d5b8d7301016640738b092
[ "BSD-3-Clause" ]
null
null
null
selection/sampling/randomized/api.py
Xiaoying-Tian/selective-inference
a20c5ad3f527beb709d5b8d7301016640738b092
[ "BSD-3-Clause" ]
null
null
null
selection/sampling/randomized/api.py
Xiaoying-Tian/selective-inference
a20c5ad3f527beb709d5b8d7301016640738b092
[ "BSD-3-Clause" ]
null
null
null
from .norms.api import * from .losses.api import * from .sampler import selective_sampler_MH
18.8
41
0.787234
79ea43854b99cd63bf78e9bb4cf3c7419c1987e4
1,731
py
Python
supplies/serializers.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
supplies/serializers.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
supplies/serializers.py
cupracer/family-tools
95a9f4d845fca4a00e2b666afc7eb791745121e7
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Category, Brand, Supply, Unit, SupplyItem, Packaging, Product
29.844828
142
0.696707
79ea60291f462e69652232c844088f03b0e274e0
2,077
py
Python
tests/auth/test_authentication.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
tests/auth/test_authentication.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
tests/auth/test_authentication.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
from flask import url_for, request, current_app from app.auth.models import User, PreAllowedUser from app.extensions import db
38.462963
81
0.645161
79ea9a1464ec72ae217a22521335fffd9916b5cc
6,241
py
Python
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/discounts/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django.forms import ModelForm, ModelChoiceField from django.contrib import admin from django.utils.translation import gettext_lazy as _ from dal import autocomplete from .models import ( DiscountCategory, DiscountCombo, DiscountComboComponent, PointGroup, PricingTierGroup, RegistrationDiscount, Custo...
32.170103
90
0.645089
79eaca1eab171f82b2698cf469eb4057caa27f84
9,666
py
Python
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
1
2016-12-21T09:59:16.000Z
2016-12-21T09:59:16.000Z
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
null
null
null
tools/create_cluster.py
cosh/compute-cassandra-python
2ae6454bbb86d00252afa415042a5e8b823c763d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
38.357143
78
0.61049
79eb237c4bd2d1099cc8ababd7408be4112e4eb8
770
py
Python
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
1
2021-02-09T14:44:55.000Z
2021-02-09T14:44:55.000Z
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
null
null
null
lakey_finicity/models/connect/answered_mfa_question.py
jeremydeanlakey/lakey-finicity-python
f0b5ae6febb9337f0e28731f631b726fca940d2c
[ "MIT" ]
1
2022-01-26T18:09:33.000Z
2022-01-26T18:09:33.000Z
from dataclasses import dataclass # https://community.finicity.com/s/article/207505363-Multi-Factor-Authentication-MFA
28.518519
84
0.623377
79ebb38627cea4de632bbd11155e51f5abc082e1
3,829
py
Python
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
6
2020-12-03T19:48:30.000Z
2021-07-19T08:36:43.000Z
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
116
2020-11-24T21:56:49.000Z
2021-12-10T19:27:39.000Z
test/python/k8s/test_client_cert_inject.py
cyberark/conjur-openapi-spec
40f2f1a6b14fb3536facc628e63321a17667148c
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import base64 import os import pathlib import unittest import conjur from OpenSSL import crypto, SSL CERT_DIR = pathlib.Path('config/https') SSL_CERT_FILE = 'ca.crt' CONJUR_CERT_FILE = 'conjur.crt' CONJUR_KEY_FILE = 'conjur.key' def generateKey(type, bits): """Generates a...
30.632
103
0.641682
79ec797722a54ea4de53df3ee7b7d76d115a33ff
256
py
Python
alphaml/datasets/cls_dataset/banana.py
dingdian110/alpha-ml
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
[ "BSD-3-Clause" ]
1
2021-09-06T20:21:15.000Z
2021-09-06T20:21:15.000Z
alphaml/datasets/cls_dataset/banana.py
dingdian110/alpha-ml
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
[ "BSD-3-Clause" ]
null
null
null
alphaml/datasets/cls_dataset/banana.py
dingdian110/alpha-ml
d6a7a8a8a3452a7e3362bf0ef32b9ac5fe215fde
[ "BSD-3-Clause" ]
null
null
null
import os import pandas as pd
32
97
0.664063
79ecb3c7117dbfd7119dcd2c527e73deda680a91
2,909
py
Python
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
khl/websocket/net_client_websocket.py
hang333/khl.py
1d235541528b070a1206eaf31ccaded9eac52da1
[ "MIT" ]
null
null
null
import asyncio from asyncio.events import AbstractEventLoop import json import logging import zlib from aiohttp import ClientSession, ClientWebSocketResponse from ..cert import Cert from ..hardcoded import API_URL from ..net_client import BaseClient
33.056818
77
0.562049
79ee257a6e81aff9dbeef481d3f2ffa679f4e55f
261
py
Python
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
reamber/bms/lists/notes/BMSNoteList.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
null
null
null
from abc import ABC from typing import List, Type from reamber.base.lists.notes.NoteList import NoteList
20.076923
54
0.708812
79f09ed1e6c670a4cc53df338ad3c26a6ed400c3
25,785
py
Python
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
import os import sys import re import json import logging ###from pylons import request, response, session, app_globals, tmpl_context, url as c, config from pylons import request, response, session, app_globals, tmpl_context as c, config, url from pylons.controllers.util import abort, redirect from pylons.decorators ...
46.967213
160
0.542408
79f1612b542eb9d1c94aaf73dc2f5954230da328
5,305
py
Python
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/utils.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
import flair import numpy as np import spacy import tensorflow_hub as hub import torch from flair.data import Sentence from flair.models import SequenceTagger from nltk.tokenize.treebank import TreebankWordDetokenizer from sklearn.metrics.pairwise import cosine_similarity from string import punctuation from transformer...
32.746914
112
0.684826
79f1aa731dd46a3731e4a9c3f27085c9eb89008f
765
py
Python
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/57.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Insert Interval if __name__ == "__main__": sol = Solution() intervals = [[1,3],[6,9]] newInterval = [2,5] intervals = [[1,2],[3,5],[6,7],[8,10],[12,16]] newInterval = [4,18] print(sol.insert(intervals, newInterval))
26.37931
52
0.491503
79f1af18baf4d6560c556e9a2520a03a8a86dced
25,595
py
Python
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-03-14T05:30:59.000Z
2021-11-21T20:05:22.000Z
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
null
null
null
cyvn/trader/app/ctaStrategy/strategy/strategyBollingerBot01.py
mumuwoyou/pytrader
6b94e0c8ecbc3ef238cf31715acf8474b9d26b4a
[ "MIT" ]
4
2019-02-14T14:30:46.000Z
2021-01-05T09:46:19.000Z
# encoding: UTF-8 """" 1min 5min 1. 2. 3. """ import talib import numpy as np from cyvn.trader.vtObject import VtBarData from cyvn.trader.vtConstant import EMPTY_STRING from cyvn.trader.app.ctaStrategy.ctaTemplate import CtaTemplate, BarGenerator, ArrayManager from cyvn.trader.vtConstant import * ##########...
44.513043
149
0.477789
79f212ed18232d9a20e96553e02496b414e7481c
4,577
py
Python
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
16
2016-02-05T22:49:16.000Z
2020-03-20T13:28:05.000Z
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
cabu/drivers.py
thylong/cabu
b883293f35d22443de1ba8129b2efd1c346c7e61
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import re from selenium import webdriver from xvfbwrapper import Xvfb from cabu.exceptions import DriverException from cabu.utils.headers import Headers from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium import webdriver try: from urllib....
27.908537
91
0.674022
79f2f4f6a2d2f8e60e91d2acbe593d63a614519c
3,256
py
Python
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
import pygame as pg display = pg.display.set_mode((900,600)) clock = pg.time.Clock() jump = 10 step = 0 img = 0 left = [pg.image.load('images/character/l1.png'),pg.image.load('images/character/l2.png'),pg.image.load('images/character/l3.png'),pg.image.load('images/character/l4.png'),pg.image.load('images/character/l5.p...
35.010753
337
0.601658
79f5d77b9f83d003e02c37ef124000f10f0cba55
1,721
py
Python
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import picamera import file_utils import os
30.732143
88
0.635096
79f61a5d75644c8b4cf9fd950bb95e70f2f7c3a4
176
py
Python
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
configs/flownet/flownets_8x1_slong_flyingchairs_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
_base_ = [ '../_base_/models/flownets.py', '../_base_/datasets/flyingchairs_384x448.py', '../_base_/schedules/schedule_s_long.py', '../_base_/default_runtime.py' ]
29.333333
76
0.676136
79f79e5f95dc0076b2de1960b25234f4a6fcedce
559
py
Python
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from CalibTracker.SiStripCommon.shallowTree_test_template import * process.TFileService.fileName = 'test_shallowRechitClustersProducer.root' process.load('RecoTracker.TrackProducer.TrackRefitters_cff') process.load('CalibTracker.SiStripCommon.ShallowRechitClustersProducer_cfi') process.testTree = cms.EDAnalyzer( "S...
31.055556
76
0.781753
79fcc9de775f5e6d9c7b155ff6baf8f84042ddd0
10,468
py
Python
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
11
2021-11-10T08:36:22.000Z
2022-03-21T08:31:17.000Z
easistrain/EDD/fitEDD.py
EASI-STRESS/easistrain
86192d1c4135875daec8e4e4abcb67e372f86efb
[ "MIT" ]
null
null
null
from typing import Sequence import numpy as np import h5py from easistrain.EDD.io import ( create_info_group, peak_dataset_data, save_fit_data, ) from easistrain.EDD.utils import fit_detector_data, run_from_cli def fitEDD_with_scan_number_parse(**config): """Wrapper function to allow scanNumber to be...
39.353383
122
0.579862
79fed91a69796e9dd746aca3006eba9ad9ef6ac5
2,082
py
Python
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-05-29T21:51:37.000Z
2015-05-29T21:51:37.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-06-01T15:46:42.000Z
2015-06-01T15:46:42.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2018-11-05T23:10:40.000Z
2018-11-05T23:10:40.000Z
from sys import argv script, filename = argv print "We are going to erase %r." % filename print "If you don't want that, hit CTRL-C (^C)." print "If you do want that, hit RETURN." raw_input("?") print "Opening the file..." target = open(filename, 'w') print "Truncating the file. Goodbye!" target.truncate() print ...
29.323944
119
0.690202
79fef4a09e4a04c87e9e0cbe5fb5877f2eda72c8
408
py
Python
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
16
2018-11-10T21:46:40.000Z
2018-11-11T15:08:36.000Z
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-11-01 14:26 from django.db import migrations, models
20.4
49
0.583333
79ff61229ec05e724a4cf127b02b53f7784410b1
599
py
Python
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from filler.plain_classes.teams_data import TeamsData
31.526316
76
0.69783
03004212ee99b61faeb0548d5a85b4b203430ddc
2,784
py
Python
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
null
null
null
support_functions.py
yellingviv/dungeons_on_demand
ced5d6b1b0c12ad8e22f7fac1cfaeecc82a821bb
[ "OML" ]
1
2020-04-18T16:47:57.000Z
2020-04-18T16:47:57.000Z
from dungeon_model import Monsters, Players import re import math def initiative_sort(init_order): """sorts all the characters for a given combat by initiative""" print("passed into sort function: ", init_order) for i in range(len(init_order)): check = init_order[i] print("the check is: ",...
31.636364
67
0.530532
03007634c85b96a08566af89f356d770fc155ed9
2,306
py
Python
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
12
2021-11-18T15:01:17.000Z
2022-02-22T16:17:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
2
2022-01-22T00:41:13.000Z
2022-02-01T15:41:42.000Z
experiments/architectures/PAE_network.py
Butters-cloud/denoising-normalizing-flow
12d56a0d069e10a744acabf5e78fdbfba8df54ee
[ "MIT" ]
1
2022-01-26T22:44:07.000Z
2022-01-26T22:44:07.000Z
""" Created on Mon Jun 7 12:57:10 2021 @author: horvat """
42.703704
196
0.602342
03018f2878f299da32e5fb359237991d538d5f69
288
py
Python
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
services/web/project/adminsettings.py
pwdel/srcflask
71c91cc9edb2a5e3aa08dbdd819e05feb84175f2
[ "BSD-Source-Code" ]
null
null
null
# administrative username and password for development ADMIN_USERNAME = 'admin' ADMIN_PASSWORD = 'password' ADMIN_TYPE = 'admin' # for production # ADMIN_USERNAME = 'environ.get('ADMIN_USERNAME') # ADMIN_PASSWORD = 'environ.get('ADMIN_PASSWORD') # ADMIN_TYPE = 'environ.get('ADMIN_TYPE')
32
54
0.770833
0301c782c51b1c6595901ee0b2e38930f8a7ecd2
2,344
py
Python
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
1
2022-03-09T20:44:27.000Z
2022-03-09T20:44:27.000Z
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
agents/a2c.py
TomMakkink/transformers-for-rl
9d025f92611e957004030af9ef05a07e320856a7
[ "MIT" ]
null
null
null
from agents.agent import Agent from models.actor_critic_mlp import ActorCriticMLP import numpy as np import torch import torch.optim as optim from utils import plot_grad_flow
27.904762
83
0.58959
03026b2e47c7dd4c6d92ff2379d10e3b1de12161
329
py
Python
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
gan_train_parameters.py
Amitdedhia6/DrugDiscovery
c70dec96cee4d0d643a8b9de30530b6871fdf05e
[ "Apache-2.0" ]
null
null
null
from common import google_cloud training_param = GANTrainParameters()
19.352941
37
0.620061
0306c30fc6b959f99f270569a581136d38981cb5
8,672
py
Python
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
tools/medico_classify.py
1512159/tf-faster-rcnn-medico
94c5cff76ef7bd271de050a8de53bd0145c6c8ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen, based on code from Ross Girshick # -------------------------------------------------------- """ Demo script showing detections...
32.479401
148
0.602975
0306f469c225a6dd8f6632d28c4cbdab089a9d7c
107,563
py
Python
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/test_experiments/test_views.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
# pylint:disable=too-many-lines import os import time from faker import Faker from unittest.mock import patch import pytest from hestia.internal_services import InternalServices from rest_framework import status import conf import stores from api.experiments import queries from api.experiments.serializers import (...
40.914036
100
0.638826
030752d970037ce742be150222524d388e311557
6,705
py
Python
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
speech.py
jsarchibald/room-designer
d90f39f6b7a98d66f2f4c09529aaa46aea68611b
[ "MIT" ]
null
null
null
import pygame import speech_recognition as sr from time import sleep import events import objects as obj_types from settings import SPEECH_CRED_FILE from speech_helpers import correct_text, either_side, get_after, get_position, get_positions, get_size, is_in_objects, process_relative, select_obj_type # A variable lis...
35.104712
207
0.595824
0309577959891e0612c1c6a69dda2ed2d8030359
600
py
Python
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/river_swim/episodic/mdp.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
import gin from colosseum.loops import human_loop from colosseum.mdps import EpisodicMDP from colosseum.mdps.river_swim.river_swim import RiverSwimMDP if __name__ == "__main__": mdp = RiverSwimEpisodic( seed=42, randomize_actions=False, size=15, lazy=0.01, random_action_...
21.428571
61
0.691667
0309958523ceb32502c420f13cb24f00e9e388b5
428
py
Python
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
16
2016-01-07T18:17:55.000Z
2022-03-27T14:29:42.000Z
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
308
2016-04-10T18:33:40.000Z
2021-11-17T21:38:49.000Z
mpfmc/tests/_test_Template.py
arthurlutz/mpf-mc
6f4aac5d48eb07dd5aa6612985a7567af8577ce2
[ "MIT" ]
39
2016-02-23T23:49:20.000Z
2021-11-08T04:50:12.000Z
# How to add a test: # Copy this file # Rename TestTemplate to TestWhatever in line 9 # Rename machine path and config file in lines 11 and 14 from mpfmc.tests.MpfMcTestCase import MpfMcTestCase
23.777778
56
0.733645
030a4c184f24d64d17b407ffa5bf671b2f098cd9
3,366
py
Python
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/availability-msgs.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _m...
44.289474
496
0.81224
030af46d63eb07552bbcb49eb543b45022dab354
16,780
py
Python
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
okokyst_station_mapping.py
trondkr/okokyst_toolbox
3d5484458e4f346d593beb5b268378c70d391abd
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import datetime from okokyst_metadata import surveys_lookup_table import os import re import glob import gsw from okokyst_tools import pressure_to_depth encoding = "ISO-8859-1" __author__ = 'Elizaveta Protsenko' __email__ = 'Elizaveta.Protsenko@niva.no' __created__ = datet...
35.475687
164
0.589035
030c7de9f7e1401c045078e46717850748e35111
5,250
py
Python
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tests/unit/language/ast/test_interface_type_extension.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
import pytest from tartiflette.language.ast import InterfaceTypeExtensionNode
36.206897
78
0.616571
030c9f62ddfe8e4538cc0711a16b8bb6b36078a9
715
py
Python
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
5
2019-10-01T17:07:36.000Z
2020-10-30T21:01:35.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
7
2019-10-05T17:52:33.000Z
2020-10-29T04:52:29.000Z
Python/350_Intersection_of_Two_arrays_II.py
simonecorbo99/hacktoberfest2019-leetcode
1e7150dafe337455616b2aea7a2cf2ffaf02cfd5
[ "MIT" ]
50
2019-10-01T21:07:07.000Z
2021-11-05T07:15:36.000Z
'''Given two arrays, write a function to compute their intersection. '''
23.833333
68
0.446154
030d393657be4aeb44ea123011d64e69a5d1d746
5,609
py
Python
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
dataset/egtea_gaze.py
AllenXuuu/DCR
2240b78ea7e03c43be8ba0a8649e6ab07db36fbd
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import json from pandas.core import frame import torch import pandas as pd import os import pickle as pkl import numpy as np import cv2 import h5py import tqdm import functools import lmdb
33.386905
125
0.54466
030da47412e4bfcf6e77f631335b3a50a2f71685
1,092
py
Python
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
LinkedList/Merge two sorted linked lists.py
Bomma-Pranay/InterviewBit
3bc436cffd3afc7a28c67042e1589fbe7547952f
[ "MIT" ]
null
null
null
''' Merge Two Sorted Lists Asked in: Microsoft Yahoo Amazon Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists, and should also be sorted. For example, given following linked lists : 5 -> 8 -> 20 4 -> 11 -> 15 The merged ...
22.75
109
0.53022
030e8114c7513a4a89a8a24f6c91ba6ed8c9d8ae
299
py
Python
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
Lista 1 Banin/ex08.py
qnomon/Python-Studies
dbd592cf2a161bb9ddbec66f020c602bddc6d44b
[ "MIT" ]
null
null
null
v = int(input('Digite um valor: ')) validador = 0 contador = 1 while contador < v: if v % contador == 0: validador += 1 contador +=1 if validador > 1: print(f'Esse nmero NO primo, pois divisvel por {validador+1} nmeros diferentes ') else: print('Esse nmero primo')
27.181818
93
0.64214
0310131e0454f4f269acaa1f44087c3778bd5b88
13,906
py
Python
b2handle/tests/testcases/handleclient_read_integration_test.py
mikedarcy/B2HANDLE
a14ae52110ffa4731bb9766713cd27f3d897141e
[ "Apache-2.0" ]
20
2015-10-08T12:09:43.000Z
2020-12-01T15:21:26.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
64
2015-09-18T09:39:50.000Z
2021-09-02T10:20:39.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
33
2015-08-13T10:20:17.000Z
2021-07-20T00:18:56.000Z
"""Testing methods that need Handle server read access""" import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import requests import json import mock import b2handle from b2handle.handleclient import EUDATHandleClient from b2handle.handleexceptions import * # Load some...
40.9
116
0.648929
03121b48c8c35b2b0f007ab147db73d43b9f5419
10,819
py
Python
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
1
2019-06-19T09:30:39.000Z
2019-06-19T09:30:39.000Z
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
python/cthreepo/core/models.py
sdss/cthreepo
86804657cae90bf69b77367a355bb49eb220a4b2
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: models.py # Project: core # Author: Brian Cherinka # Created: Saturday, 12th September 2020 12:55:22 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2020 Brian Cherinka # Last Modified: Saturday, 12th September 2020 12:55:22 pm # Modifie...
31.914454
100
0.634994
03124cf711ceb00968f5cacee727fb9c26ed3485
1,458
py
Python
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
2
2019-08-12T13:47:21.000Z
2020-05-03T11:53:38.000Z
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
project_src/deep_learning/pytorch_openai_transformer/datasets.py
tcvrick/COMP551-IMDB-Competition
64f83142c86e895db3a0ca037c31efb404910723
[ "MIT" ]
null
null
null
import re import html import pandas as pd re1 = re.compile(r' +') # https://github.com/prajjwal1/language-modelling/blob/master/ULMfit.py
40.5
109
0.603567
031365d53b1a04b88852c96530151afb17b9aec7
1,136
py
Python
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
8
2015-01-28T15:08:38.000Z
2021-11-17T05:27:21.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
3
2016-06-08T09:55:12.000Z
2019-09-14T12:40:46.000Z
coyaml/cli.py
tailhook/coyaml
2de4f0d99446afb43d9e1a0cb576e048f47c108a
[ "MIT" ]
1
2015-05-28T12:22:16.000Z
2015-05-28T12:22:16.000Z
from .core import Config
39.172414
76
0.618838
03153f7cf1c50ca8cd8cf5e6dbf17444f5fb56d1
22,597
py
Python
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
1
2020-11-27T23:34:53.000Z
2020-11-27T23:34:53.000Z
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
6
2015-10-30T12:22:56.000Z
2016-08-25T09:38:48.000Z
tests/data_namespace_test.py
XD-embedded/xd-build-core
357e4d78d35456d6906aa30151ddc989781227ab
[ "MIT" ]
null
null
null
from xd.build.core.data.namespace import * from xd.build.core.data.expr import Expression from xd.build.core.data.string import String from xd.build.core.data.list import List from xd.build.core.data.dict import Dict from xd.build.core.data.func import Function from xd.build.core.data.num import * import unittest
34.764615
78
0.538523
03163282de6da6741659d1e1e50c91fdd514f086
869
py
Python
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
gtfs/stop.py
fabiotanniguchi/emdec-gtfs
823274d45263409d1d3ee56cf07f60e12d64003a
[ "WTFPL" ]
null
null
null
from google.appengine.ext import ndb from protorpc import messages from google.appengine.ext.ndb import msgprop from csvmodel import CsvModel
31.035714
66
0.714614
031665446c8a18e24282dac5017b301c097a262b
1,314
py
Python
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
##*** ##class Base: ## def methodBase(self): ## print("In base class") ##class child(Base): ## def methodchild(Base): ## print("In child class") ##c1=child() ##c1.methodBase() ##c1.methodchild() ##*** ##class Base: ## def ___init__(self): ## print('base') ##class child(Base): ## pass ...
14.282609
54
0.560883
0317d33db00641c8632076d25e16d90972c26ea2
82
py
Python
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
cmake-build-debug/devel/lib/python2.7/dist-packages/kinect2_tracker/msg/__init__.py
myboyhood/intention_recognize
30e2b7e4e8c8a5df59989500ff92a0b807cf15f2
[ "MIT" ]
null
null
null
from ._bounding_box import * from ._user_IDs import * from ._user_points import *
20.5
28
0.780488
031a0bb9c7e7eb89c3804e46ae64112b02ade8a2
1,701
py
Python
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
appdaemon/settings/apps/presence/home/alarm_panel.py
monster1025/home-assistant
194723e228a798b99693220ad332a2c55d06e248
[ "Apache-2.0" ]
null
null
null
import appdaemon.plugins.hass.hassapi as hass # # Listen for presence sensor change state and change alarm control panel state. # # Args: # sensor - home presence 'sensor' # ha_panel - alarm control panel entity (to arm and disarm). # constraint - (optional, input_boolen), if turned off - alarm panel will be n...
36.978261
97
0.680188
031c6ddb51fddc4e6b54071f60cd8121116d2c91
398
py
Python
general/scry_message.py
kcunning/gamemaster-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
15
2019-01-17T20:09:45.000Z
2022-01-05T15:56:32.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
5
2020-04-27T19:48:54.000Z
2022-03-11T23:39:49.000Z
general/scry_message.py
palikhov/CnM-GM-RPG-scripts
ec0658e498807d9c7017da313ecf1b9ed3eb6862
[ "MIT" ]
8
2019-02-20T21:18:46.000Z
2021-04-30T03:43:20.000Z
from random import randint import datetime lvl = 10 base_rounds = 10 rounds = lvl * base_rounds print("You have", rounds, "rounds to try to get through.") for i in range(rounds): r = randint(1, 100) print(r) if r >= 96: break print("Number of rounds:", i) if i == rounds - 1: print("Nothing ...
19.9
58
0.645729
031c707ec58ef183b7c607c6546f5f047d0e3e8e
272
py
Python
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
scripting/__init__.py
csdms/py-scripting
df8ba070e44a9d8e6ffcb70958f851e6776e2853
[ "MIT" ]
null
null
null
from ._version import get_versions from .contexts import cd from .prompting import error, prompt, status, success from .unix import cp, ln_s __all__ = ["prompt", "status", "success", "error", "cp", "cd", "ln_s"] __version__ = get_versions()["version"] del get_versions
24.727273
70
0.724265
031df329773b42e6e3ea2acdd1a1f8a14ec08d3e
5,566
py
Python
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
81
2020-09-04T10:54:40.000Z
2021-05-17T13:20:38.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
201
2020-08-24T08:41:33.000Z
2021-05-18T12:23:19.000Z
src/qibo/tests/test_core_hamiltonians_trotter.py
mlazzarin/qibo
e82bc3e27c5182be7b6f0b23bd20bc1057e31701
[ "Apache-2.0" ]
13
2020-09-08T12:34:35.000Z
2021-04-29T22:46:21.000Z
"""Test Trotter Hamiltonian methods from `qibo/core/hamiltonians.py`.""" import pytest import numpy as np import qibo from qibo import hamiltonians, K from qibo.tests.utils import random_state, random_complex, random_hermitian def test_trotter_hamiltonian_scalar_mul(nqubits=3): """Test multiplication of Trotter ...
40.333333
82
0.7129
031edf024d26f78ee1dab7fb7974111571cd521e
99
py
Python
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
utils.py
FrCln/SpaceGarbage
0e121143888b108eac2b86b1dd9fcbf20dcef36e
[ "MIT" ]
null
null
null
import asyncio
14.142857
30
0.656566
031ef69a071c2f61a4e58bcde34b41a5a2f122f6
6,186
py
Python
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
3
2018-12-23T14:07:39.000Z
2019-10-18T03:05:39.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
20
2018-11-24T15:59:20.000Z
2019-01-30T16:42:25.000Z
models/utils/layers.py
icarus945/Torch_Detection
4cb8ca22a7fa2f45c72b60d794ae2a2ed1a35cd8
[ "MIT" ]
6
2018-11-14T13:12:24.000Z
2019-01-03T02:40:49.000Z
import warnings import torch.nn as nn def conv1x1_group(in_planes, out_planes, stride=1, groups=1): """ 1x1 convolution with group, without bias - Normal 1x1 convolution when groups == 1 - Grouped 1x1 convolution when groups > 1 """ return nn.Conv2d(in_channels=in_planes, ...
30.472906
79
0.534756
031fd2613a36677be2ac3e5ad262f6fafd120692
1,073
py
Python
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
src/app.py
kangheeyong/PROJECT-datahub-api-server
1593603f0fbb6a2a027a677494b25584ebc91573
[ "MIT" ]
null
null
null
from sanic import Sanic from sanic.response import json from sanic_openapi import doc, swagger_blueprint from util import authorized app = Sanic(__name__) app.config["API_TITLE"] = "My-DataHub-OpenAPI" app.config["API_VERSION"] = "0.1.0" app.config["API_DESCRIPTION"] = "An example Swagger from Sanic-OpenAPI" app.co...
26.825
100
0.737185
0323bfe0266dc12dfb65c5926feae4f31ef1770b
1,323
py
Python
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
bouser_db/service.py
MarsStirner/bouser.db
86c0cb8991b96b908af0dec7843e8ffbd0f18ae8
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import contextlib import sqlalchemy import sqlalchemy.orm from twisted.application.service import Service from zope.interface.declarations import implementer from bouser.helpers.plugin_helpers import Dependency, BouserPlugin from .interfaces import IDataBaseService __author__ = 'mmalkov'
24.962264
71
0.642479
03245e36530e8be45e6254760cac36f4e2d93c2b
581
py
Python
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
wavutils/wav_connect.py
makobouzu/rnnoise
3a3b854722cdc511860744e11bdbba22d63ed2b5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from pydub import AudioSegment import sys import glob if __name__ == "__main__": args = sys.argv folder = glob.glob(args[1] + "/*.wav") initial = False for file in folder: soundfile = AudioSegment.from_file(file, "wav") if initial == False: soundfil...
26.409091
60
0.562823
032672ab93f8bb597d47b58b260a24ea167e130b
3,996
py
Python
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
1
2021-11-22T09:20:09.000Z
2021-11-22T09:20:09.000Z
import numpy as np import pandas as pd from utils import calculate_q from scipy import stats def calculate_deg_fold_change(data1_df, data2_df, fc_cutoff=1, alternative='two-sided'): """ This function calculates differentially expressed genes (DEGs) between two DataFrames or Series...
32.754098
80
0.666667
0326b6925c35f8d5ffa44459a0582e31350f4aa2
6,326
py
Python
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
null
null
null
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
1
2018-11-03T00:10:01.000Z
2018-11-03T00:10:01.000Z
attributes_data/nearestNeighborTest.py
aeksco/FRMA-Ontology
1eab8731bdad49328dddfbf52468d2a107d3f247
[ "MIT" ]
2
2018-11-03T00:02:29.000Z
2018-11-03T00:11:53.000Z
""" This is a test that we're using to gather example data from our two example models. This is passed a list of image names, image numbers, and the vector representing the face in the photo, and this script takes that and a split of testing vs training data to determine how accurate the model was by simply checking wh...
42.743243
170
0.727948
032895bcd14a3671ab5030eaa6c072fe010b5493
792
py
Python
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
1
2019-12-21T17:29:08.000Z
2019-12-21T17:29:08.000Z
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
Miscillanious/random_split_train_val.py
b-safwat/multi_action_recognition
1a85da64cf236b9fb7c9a58ae75bdd092d05fab8
[ "Apache-2.0" ]
null
null
null
import numpy as np random_split_train_test("/home/bassel/data/oa_kinetics/lbls/actions_stack_list.txt", "/home/bassel/data/oa_kinetics/lbls/action_train_stacks_list.txt", "/home/bassel/data/oa_kinetics/lbls/action_test_stacks_list.txt")
36
111
0.72096
032a7743edf88f77da5c9d56359f55cc608dcd5a
3,596
py
Python
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
src/thompson/codered.py
thepolicylab/COVID-SMSExperiment
2eb41a2fea4858b7e794bb7a6af396f66d41f1a6
[ "MIT" ]
null
null
null
""" Functions and classes for interacting with the CodeRED data format """ from dataclasses import dataclass from typing import List, Optional, Union import pandas as pd from .types import FilenameType # The required headers for CodeRED EXCEL_HEADERS = ( "Command", "CustomKey", "ContactId", "First Na...
26.057971
87
0.629588
032c7a1695749c8763dea4e548dc9e5de7308f19
2,516
py
Python
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
ecommercejockey/premier/admin/inlines.py
anniethiessen/dieselr-ecommerce
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
11
2020-06-06T00:04:26.000Z
2022-03-12T00:57:41.000Z
ecommercejockey/premier/admin/inlines.py
anniethiessen/ecommerce-jockey
9268b72553845a4650cdfe7c88b398db3cf92258
[ "MIT" ]
null
null
null
from imagekit.admin import AdminThumbnail from django.contrib.admin import TabularInline from core.admin.forms import LimitedInlineFormSet from core.admin.utils import ( get_change_view_link, get_changelist_view_link ) from ..models import PremierProduct
26.208333
79
0.635135
032dd466c58aab15fcfe54642491eba4025f614d
629
py
Python
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
1
2020-06-10T10:23:54.000Z
2020-06-10T10:23:54.000Z
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
null
null
null
tests/test_base.py
giommok/cumulator
042e303b64976ef71a93a91aa85180f14d46c25e
[ "MIT" ]
1
2020-06-10T10:24:33.000Z
2020-06-10T10:24:33.000Z
import unittest from src.cumulator.base import Cumulator if __name__ == '__main__': unittest.main()
20.290323
43
0.573927
032de55c5e8bb65a3b5acc0d233be5fff6131de6
4,191
py
Python
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
7
2015-01-23T17:24:04.000Z
2022-01-12T16:54:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
18
2017-12-09T01:11:23.000Z
2021-09-22T13:26:24.000Z
dictionary_service.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
1
2015-06-22T02:17:55.000Z
2015-06-22T02:17:55.000Z
#!/usr/bin/python3 import argparse import logging as log from aiohttp import web from api.databasemanager import DictionaryDatabaseManager from api.dictionary import \ entry, \ definition, \ translation, \ configuration from api.dictionary import \ get_dictionary, \ get_dictionary_xml, \ g...
31.044444
92
0.720353
032e191105068d7dcb7cfc95541e05575acdbe66
360
py
Python
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.any_uri.schema_instance.nistschema_sv_iv_list_any_uri_enumeration_1_xsd.nistschema_sv_iv_list_any_uri_enumeration_1 import ( NistschemaSvIvListAnyUriEnumeration1, NistschemaSvIvListAnyUriEnumeration1Type, ) __all__ = [ "NistschemaSvIvListAnyUriEnumeration1", "Nists...
36
162
0.861111
03308bb8046fd0dc61b44e11e40b5b2918967121
3,578
py
Python
classification/libs/utils.py
96lives/matrixlstm
83332111a459dd3fbca944898fffd935faac8820
[ "Apache-2.0" ]
19
2020-08-11T09:18:28.000Z
2022-03-10T13:53:13.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2021-01-04T11:55:50.000Z
2021-09-18T14:00:50.000Z
N-ROD/evrepr/thirdparty/matrixlstm/classification/libs/utils.py
Chiaraplizz/home
18cc93a795ce132e05b886aa34565a102915b1c6
[ "MIT" ]
4
2020-09-03T07:12:55.000Z
2021-08-19T11:37:55.000Z
import torch import numpy as np import re import itertools from textwrap import wrap import matplotlib.pyplot as plt def padding_mask(lengths, batch_size, time_size=None): """ Computes a [batch_size, time_size] binary mask which selects all and only the non padded values in the input tensor :param t...
31.946429
97
0.671325
03315e91b0c1b2d1e2f30824173b23c77f6b76f7
1,642
py
Python
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
faq_module/commands/faq_on_message.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
from faq_module.storage import FAQManager # , FAQConfig, FAQData # from faq_module.commands import text # from discord.ext import commands # import faq_module.text # import logging import discord # import typing import re
34.208333
122
0.685749
03337a286707757f1d435b3aaef9ca40f548193a
2,298
py
Python
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
tests/devices_test.py
jebabi/controllerx
bc68cdd69e416880e6394b3ecf92522b3871e959
[ "MIT" ]
null
null
null
from tests.utils import hass_mock, get_instances import devices as devices_module from core import Controller from core import type as type_module
35.353846
88
0.656223
0334a1705c59bb245b5883fc692d78120a2f4bb6
521
py
Python
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='iocfg', version='0.1', description='Configuration for IO modules on Novus IHM', author='Thomas Del Grande', author_email='tgrande@pd3.com.br', packages=find_packages(), scripts=[ 'scripts/diocfg',...
26.05
62
0.621881
0337794490e59afb0d50e7e70f8ff18f29c9d996
1,912
py
Python
Data Manipulation with pandas/Transforming-Data.py
shreejitverma/Data-Scientist
03c06936e957f93182bb18362b01383e5775ffb1
[ "MIT" ]
2
2022-03-12T04:53:03.000Z
2022-03-27T12:39:21.000Z
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Manipulation with pandas/Transforming-Data.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
2
2022-03-12T04:52:21.000Z
2022-03-27T12:45:32.000Z
# Import pandas using the alias pd import pandas as pd # Print the head of the homelessness data print(homelessness.head()) # Print the values of homelessness print(homelessness.values) # Print the column index of homelessness print(homelessness.columns) # Print the row index of homelessness print(homelessness.i...
26.929577
82
0.780335
033779b299ba043f0969f3a671cd13882ea21786
1,599
py
Python
models/bittrex.py
etherionlab/the_token_fund_asset_parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2017-06-11T19:24:36.000Z
2017-09-21T21:17:15.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
4
2017-07-24T10:57:26.000Z
2017-07-30T10:09:42.000Z
models/bittrex.py
baby636/the-token-fund-asset-parser
c0d7346a8df6ca44992d7c852b58a114692865ae
[ "MIT" ]
6
2018-08-02T05:57:11.000Z
2021-02-09T06:55:22.000Z
import aiohttp from time import time import json from hashlib import sha512 import hmac from .fetcher import Fetcher
31.98
89
0.553471
0337e71422a570efc9ae28097c6195b11be45c20
8,509
py
Python
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
52
2021-09-24T17:52:34.000Z
2022-03-29T22:55:02.000Z
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
90
2021-09-29T04:23:29.000Z
2022-03-31T21:23:02.000Z
tests/executors/multicore_executor_test.py
allenai/tango
80c90caefae4ad1c3f8472718ddada912cd8fcf9
[ "Apache-2.0" ]
8
2021-11-13T01:56:22.000Z
2022-02-27T03:29:42.000Z
import time import pytest from tango.common.logging import initialize_logging from tango.common.testing import TangoTestCase from tango.executors.multicore_executor import MulticoreExecutor from tango.step_graph import StepGraph from tango.workspaces import LocalWorkspace from test_fixtures.package.steps import Sleep...
35.161157
92
0.497943
033938e07676961c14e3b120f246c45a2d3f66be
1,051
py
Python
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
1
2022-02-27T18:34:57.000Z
2022-02-27T18:34:57.000Z
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
facerecognition.py
Srijani-Chakroborty/Face-Recognition-System
60b1ef10bd724ddcd5d9e35ec5639ae73917047c
[ "MIT" ]
null
null
null
import cv2 import numpy as np face_classifier=cv2.CascadeClassifier('HaarCascade/haarcascade_frontalface_default.xml') cap=cv2.VideoCapture(0) count=0 while True: ret, frame=cap.read() if face_extractor(frame)is not None: count+=1 face=cv2.resize(face_extractor(frame),(200,200)) ...
30.911765
89
0.656518
033ac5b42cb933ad3ddd01f9391bd47273e14726
8,611
py
Python
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
106
2019-12-06T09:02:58.000Z
2020-09-09T07:12:21.000Z
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
null
null
null
examples/inference/python/test/ls_quant_gpt2.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
15
2019-12-09T05:44:28.000Z
2020-09-04T03:43:56.000Z
import time import torch from torch import nn from transformers import GPT2Tokenizer, GPT2LMHeadModel, GPT2Config import lightseq.inference as lsi from lightseq.training.ops.pytorch.quantization import ( qat_mode, QuantLinear, TensorQuantizer, weight_quant_config, ) from lightseq.training.ops.pytorch.t...
34.170635
152
0.676344
033bef35de4a5d1c411f88cd89ce77dc04b26d5f
1,748
py
Python
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
516
2015-07-30T19:08:55.000Z
2018-07-03T20:53:42.000Z
src/toil/server/wsgi_app.py
PolusAI/toil
a98acdb5cbe0f850b2c11403d147577d9971f4e1
[ "Apache-2.0" ]
1,949
2015-07-29T23:38:49.000Z
2018-07-05T12:42:04.000Z
src/toil/server/wsgi_app.py
gmloose/toil
a82834073b28f66747c5c3ac99d1a678b82d2290
[ "Apache-2.0" ]
193
2015-07-31T18:52:57.000Z
2018-07-05T08:54:11.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
34.27451
78
0.676201
033c4e6e47b886b0874ca7cd97804e2f650bcb80
623
py
Python
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/153. Find Minimum in Rotated Sorted Array.py
vuzway9132/leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - Cheat - Binary search II 3. Coding 4. Tests """ # T=O(n), S=O(1) # T=O(lgn), S=O(1)
20.766667
46
0.507223
033cec1f9ccce81f5733fb9f495e2a48d763be85
1,766
py
Python
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
18
2018-01-03T23:07:26.000Z
2021-12-30T11:44:43.000Z
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
null
null
null
Web/gRPC/python_practical_example/quote_service/test_cowsay_client.py
MasuqaT-NET/BlogSamples
b424b51e1c01e65f952099cfd1fa05f9ef405432
[ "MIT" ]
6
2018-08-09T05:17:13.000Z
2020-05-07T09:45:33.000Z
import time from unittest import TestCase import grpc_testing from grpc import StatusCode from grpc.framework.foundation import logging_pool from cowsay_client import CowsayClient from cowsay_pb2 import DESCRIPTOR as COWSAY_DESCRIPTOR, QuoteRequest, QuoteResponse from cowsay_pb2_grpc import CowsayStub target_service...
36.791667
116
0.725934
033e5296d7002695cb78ba70091a41d8f1afe514
102
py
Python
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
null
null
null
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
21
2018-04-25T19:07:41.000Z
2018-07-18T06:04:56.000Z
tests/files/build_flask.py
microservice-tools/pixis
ce5a1ecc70732677518d21a0e876440af1245eac
[ "MIT" ]
1
2018-04-23T14:44:00.000Z
2018-04-23T14:44:00.000Z
SPEC = 'swagger.yaml' IMPLEMENTATION = 'flask' OUTPUT = 'build' FLASK_SERVER_NAME = 'my_flask_server'
20.4
37
0.754902
033f1ce15dd3f5451ab5ea5f76d26c2940fd06fc
4,792
py
Python
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
3
2018-05-23T03:16:26.000Z
2020-11-07T11:42:41.000Z
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
null
null
null
test/test_cells_shapes_api.py
aspose-cells-cloud/aspose-cells-cloud-python
0189236d38053dc67f7edc754b5101f17262cee8
[ "MIT" ]
4
2018-08-29T18:45:05.000Z
2021-03-25T07:59:56.000Z
# coding: utf-8 """ Web API Swagger specification No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import ...
31.946667
229
0.654215
033fc0bc9f7f7d57ad5f5faa0ac4b814d9cbec49
4,088
py
Python
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from source.device_manager.database import get_database_connection,release_database_connection def get_user_scripts(user: int) -> List[Script]: scripts=[] conn = get_database_connection() with conn: with conn.cursor() as cursor: ...
31.206107
94
0.589775
03401c816f8f4430f92c4b87cef1da6e317a54e9
5,140
py
Python
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
20
2017-11-02T13:36:16.000Z
2021-07-23T12:44:28.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
30
2018-02-22T18:25:02.000Z
2019-11-06T15:03:34.000Z
scripts/alpha_diversity_stats.py
dcdanko/MetaSUB_CAP
db5672b0206afb3ffe3204b0577a4a5f84b9bcd4
[ "MIT" ]
9
2018-04-26T22:12:08.000Z
2020-08-06T01:04:54.000Z
#! /usr/bin/env python3 import sys import math import argparse as ap from json import dumps as jdumps from random import choices if __name__ == '__main__': main()
26.091371
78
0.510506