hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9356adb369f244f5236750301aed73611748e231
4,492
py
Python
services/traction/api/db/repositories/issue_credentials.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/api/db/repositories/issue_credentials.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/api/db/repositories/issue_credentials.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
from typing import List, Type from uuid import UUID from pydantic import parse_obj_as from sqlalchemy import select from api.db.errors import DoesNotExist from api.db.models.issue_credential import ( IssueCredentialCreate, IssueCredentialUpdate, IssueCredentialRead, IssueCredential, ) from api.db.repos...
34.030303
85
0.623776
9356c5dbec8e8457714487b3e2cf5681563db014
67,944
py
Python
katcp/server.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
katcp/server.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
katcp/server.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
# servers.py # -*- coding: utf8 -*- # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4 # Copyright 2009 SKA South Africa (http://ska.ac.za/) # BSD license - see COPYING for details """Servers for the KAT device control language. """ import socket import errno import select import threading import Queue import traceback im...
36.2368
84
0.578329
9356cf13700158c6891b8d0cffa1153a66e02d79
1,840
py
Python
tests/test_legoworship.py
kipyin/lego-songbook
9c09049d737281b943e2fa013ff15fb455118cd0
[ "MIT" ]
null
null
null
tests/test_legoworship.py
kipyin/lego-songbook
9c09049d737281b943e2fa013ff15fb455118cd0
[ "MIT" ]
24
2021-09-28T05:37:28.000Z
2022-03-31T23:25:08.000Z
tests/test_legoworship.py
kipyin/legoworship
9c09049d737281b943e2fa013ff15fb455118cd0
[ "MIT" ]
null
null
null
"""Tests for `legoworship` module.""" from typing import Generator import pytest from legoworship import Song, SongList, __version__ @pytest.fixture def version() -> Generator[str, None, None]: """Sample pytest fixture.""" yield __version__ def test_version(version: str) -> None: """Sample pytest test...
30.666667
99
0.670109
9356f8d4c609bb3b3a431bd45b84f9a1f3b42352
9,379
py
Python
kg/generators.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
6
2019-11-30T17:03:13.000Z
2021-09-30T05:08:31.000Z
kg/generators.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
1
2020-01-20T12:13:03.000Z
2020-01-20T12:13:03.000Z
kg/generators.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
null
null
null
from io import StringIO from random import Random from sys import stderr from .utils import * ### @import class GeneratorError(Exception): ... @listify def group_into(v, seq): ''' Group 'seq' into lists of size "v". The last group could have size < v ''' buf = [] for s in seq: buf.append(s) ...
36.073077
122
0.583218
935703b51f573a9db0851068123a3ec94a84b823
97,834
py
Python
pyradio/player.py
jirikrepl/pyradio
6fae44aafc24acab3e33cf6b2918709a2c4548cb
[ "MIT" ]
null
null
null
pyradio/player.py
jirikrepl/pyradio
6fae44aafc24acab3e33cf6b2918709a2c4548cb
[ "MIT" ]
null
null
null
pyradio/player.py
jirikrepl/pyradio
6fae44aafc24acab3e33cf6b2918709a2c4548cb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import subprocess import threading import os import random import logging from os.path import expanduser from sys import platform, version_info, platform from sys import exit from time import sleep import collections import json import socket try: from urllib import unquote except ImportErr...
41.037752
170
0.488808
93571401e2e7a9f8a753f6613b3c591fd880759f
89,127
py
Python
salt/grains/core.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
null
null
null
salt/grains/core.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/grains/core.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' The static grains, these are the core, or built in grains. When grains are loaded they are not loaded in the same way that modules are loaded, grain functions are detected and executed, the functions MUST return a dict which will be applied to the main grains dict. This module will always b...
37.653992
118
0.533778
93571aea69347207d45c741b859dbbe83b0eea68
448
py
Python
Python/ex082.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
1
2021-02-16T17:36:53.000Z
2021-02-16T17:36:53.000Z
Python/ex082.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
Python/ex082.py
maurovasconcelos/Ola-Mundo
526c6c271fbe916c4f9f22153828e4d8c726a544
[ "MIT" ]
null
null
null
num = [] pares = [] impares = [] while True: num.append(int(input('Digite um número: '))) resp = str(input('Quer continuar? [S/N]')).upper().strip()[0] if resp in 'Nn': break for i, v in enumerate(num): if v % 2 == 0: pares.append(v) elif v % 2 == 1: impares.append(v) print(...
20.363636
65
0.558036
93572149fe76729c959ff52c1923b769efde27f6
647
py
Python
manage.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
manage.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
26
2021-02-08T07:57:42.000Z
2022-03-01T02:07:58.000Z
manage.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'theaterportal.production_settings.py') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.409091
91
0.690881
93572282bdae2360ad163ddfb32c2e5c241e56a3
779
py
Python
chapter2/oncodrivefm/tests.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/oncodrivefm/tests.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/oncodrivefm/tests.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
import unittest as ut # Test mapping -------------------------------------------------------------------------------------------------------- # TODO test mapping # Test matrix and tdm ------------------------------------------------------------------------------------------------- # TODO test matrix and tdm # Test...
32.458333
119
0.238768
935724f090bf9c7452183cdf9346dfb349e555fb
4,473
py
Python
tacotron/text.py
ishine/Tacotron-4
e40d86f56ec45311df2d74d622098308e3e92e9d
[ "MIT" ]
99
2020-11-13T19:17:10.000Z
2022-03-29T02:16:20.000Z
tacotron/text.py
shaun95/Tacotron-1
6fee34a7c3a9d4ceb9215ed3063771a9287010e1
[ "MIT" ]
7
2020-11-16T15:46:08.000Z
2021-10-18T13:26:00.000Z
tacotron/text.py
shaun95/Tacotron-1
6fee34a7c3a9d4ceb9215ed3063771a9287010e1
[ "MIT" ]
26
2020-11-14T02:35:00.000Z
2022-02-24T12:31:51.000Z
""" adapted from https://github.com/keithito/tacotron """ import re from itertools import islice import importlib_resources # fmt: off PUNCTUATION = ['!', ',', '.', '?'] SYMBOLS = [ '_', '~', ' ', *PUNCTUATION, 'AA', 'AA0', 'AA1', 'AA2', 'AE', 'AE0', 'AE1', 'AE2', 'AH', 'AH0', 'AH1', 'AH2', 'AO', 'AO0', 'AO1...
30.428571
88
0.559133
93572b2dfa4dc3757d14e905aa1bb98250735b0e
473
py
Python
test/test_res_net.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
test/test_res_net.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
test/test_res_net.py
baiyang1220/tensorflow1.x-basic
f35801a92a2a1b0e610b4eba0b292df215fe8e7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import tensorflow as tf from classification_net.res_net import ResNet if __name__ == '__main__': inputs = tf.ones(shape=(7, 256, 256, 3)) net = ResNet() net.config['num_classes'] = 20 net.config['block_filters'] = [32, 64, 128] net.config['block_res_nums'] = [3, 2, 1] ne...
26.277778
47
0.627907
9357b7b0eebd73fa468c55515c015b100a5c5fae
397
py
Python
mediapp_be/wsgi.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
null
null
null
mediapp_be/wsgi.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
1
2021-05-20T16:08:35.000Z
2021-05-20T16:08:35.000Z
mediapp_be/wsgi.py
MedPy-C/backend
262834adb1f4f5714c4bd490595fdfa1f49c9675
[ "MIT" ]
null
null
null
""" WSGI config for mediapp_be project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
9357c74e4f12c9a8f3cb9a960c8f1db2f60cdaed
3,568
py
Python
back/infolica/views/affaire_preavis.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
back/infolica/views/affaire_preavis.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
back/infolica/views/affaire_preavis.py
rufener/infolica
c50acc89dfe9a677a4e50defba11c7567c7b9cb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-- from pyramid.view import view_config import pyramid.httpexceptions as exc from infolica.exceptions.custom_error import CustomError from infolica.models.constant import Constant from infolica.models.models import Preavis, PreavisType, VAffairesPreavis from infolica.scripts.utils import Utils #...
33.037037
95
0.713004
9357c90b3a9089d0fdab03473c6892541eb467df
1,286
py
Python
django_photo_gallery/users/migrations/0001_initial.py
yk-lab/django-photo-gallery
0042fbe9eafff286f9c9994f74559615fe11da02
[ "MIT" ]
null
null
null
django_photo_gallery/users/migrations/0001_initial.py
yk-lab/django-photo-gallery
0042fbe9eafff286f9c9994f74559615fe11da02
[ "MIT" ]
null
null
null
django_photo_gallery/users/migrations/0001_initial.py
yk-lab/django-photo-gallery
0042fbe9eafff286f9c9994f74559615fe11da02
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2020-11-10 15:25 from django.db import migrations, models import django.utils.timezone import model_utils.fields import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Use...
37.823529
147
0.625194
9357d880b432c14b0f49a21a984b1c053b8a20b8
896
py
Python
publication_backbone/models/category_publication_relation_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
6
2016-05-19T14:59:51.000Z
2020-03-19T10:08:29.000Z
publication_backbone/models/category_publication_relation_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
publication_backbone/models/category_publication_relation_model.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This overrides the CategoryPublicationRelation with the class loaded from the PUBLICATION_BACKBONE_CATEGORY_PUBLICATION_RELATION_MODEL setting if it exists. """ from django.conf import settings from publication_backbone.utils.loader import load_class #======================================...
52.705882
136
0.679688
9357ef9918234ec883affd41b6da349a07cc18db
3,829
py
Python
setup.py
pshen/pg_view
04f7ae112653bf02e7911c5819aa8c2aac4aded0
[ "Apache-2.0" ]
null
null
null
setup.py
pshen/pg_view
04f7ae112653bf02e7911c5819aa8c2aac4aded0
[ "Apache-2.0" ]
null
null
null
setup.py
pshen/pg_view
04f7ae112653bf02e7911c5819aa8c2aac4aded0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import inspect from setuptools.command.test import test as TestCommand from setuptools import setup __location__ = os.path.join(os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe()))) def read_module(path): data = {} with ope...
29.914063
114
0.628624
9357f406048210c9aabb288e6113f9f67280d4ee
4,256
py
Python
genetic-algorithm.py
victor-iyiola/simple-Q-network
eed7ec5f3b3bab982adffc82e4b928e6d9566f87
[ "MIT" ]
3
2017-12-09T07:59:36.000Z
2020-09-05T14:44:48.000Z
genetic-algorithm.py
deven96/simple-Q-network
eed7ec5f3b3bab982adffc82e4b928e6d9566f87
[ "MIT" ]
null
null
null
genetic-algorithm.py
deven96/simple-Q-network
eed7ec5f3b3bab982adffc82e4b928e6d9566f87
[ "MIT" ]
null
null
null
""" @author Victor I. Afolabi A.I. Engineer & Software developer javafolabi@gmail.com Created on 03 December, 2017 @ 8:43 PM. Copyright © 2017. Victor. All rights reserved. """ import time import gym import numpy as np def gen_policy(): return np.random.choice(4, size=[16]) def policy_to_action...
32.242424
96
0.649671
9357f925be29d74d2aa448e9c0c1b19aaaa9f5c7
799
py
Python
Util/ping.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Util/ping.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Util/ping.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python __author__ = "Xiaoguang Zhang" __email__ = "xzhang@westwoodrobotics.net" __copyright__ = "Copyright 2020 Westwood Robotics" __date__ = "Jan 8, 2020" __version__ = "0.1.0" __status__ = "Beta" # ----------------------------- # Simple code to ping all BEARs from pybear import Manager bear = Manager...
25.774194
88
0.637046
9358280258c14ccf221f1bf4316ff6bc444afd72
5,298
py
Python
src/test/py/ltprg/data/make_sua.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
11
2017-08-03T15:42:19.000Z
2021-02-04T12:43:35.000Z
src/test/py/ltprg/data/make_sua.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
null
null
null
src/test/py/ltprg/data/make_sua.py
forkunited/ltprg
4e40d3571d229023df0f845c68643024e04bc202
[ "MIT" ]
1
2021-02-04T12:43:37.000Z
2021-02-04T12:43:37.000Z
""" Constructs a data set of state-utterance-action examples from reference game data. Each example consists of a single game state, an action that occurred in that state, and a sequence of utterances that occurred before the action. Args: utterance_mode (:obj:`str`): Value determing which utterances are included...
43.073171
141
0.660438
935848bc5f29a16446450d136ce4885825bc1dc4
15,147
py
Python
Lib/test/test_poplib.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_poplib.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_poplib.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
"""Test script for poplib module.""" # Modified by Giampaolo Rodola' to give poplib.POP3 and poplib.POP3_SSL # a real test suite import poplib import asyncore import asynchat import socket import os import time import errno from unittest import TestCase from test import support as test_support threading = test_suppo...
31.295455
85
0.576814
935856ef0e8fdf49042470c3322f183981534d13
71,136
py
Python
mmcif/sitegen/dictionary/HtmlContentUtils.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
mmcif/sitegen/dictionary/HtmlContentUtils.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
mmcif/sitegen/dictionary/HtmlContentUtils.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
## # File: HtmlContentUtils.py # Author: J. Westbrook # Date: 2-Sep-2013 # Version: 0.001 # # Updates: # 8-Oct-2013 - Reorder category page sections -- # 29-Dec-2020 - Cleanup and py39 ## # pylint: disable=too-many-lines """ Utility methods for extracting content require for HTML rendering. """ __docfo...
49.127072
185
0.643795
935865b34325460ea46e25e8c3fbdc8289e4c6cf
7,789
py
Python
pyAND.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
null
null
null
pyAND.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
null
null
null
pyAND.py
selfyu/License-Plates-Recognition
bbbe8ada6761828aafa8d135b462e4971b07c513
[ "MIT" ]
1
2020-09-02T16:06:35.000Z
2020-09-02T16:06:35.000Z
import cv2 import numpy as np import sys import glob import math import time import os import pytesseract import tesserocr from PIL import Image def plate_recognition(plate): """Performs OCR with Tesseract to a plate image. Args: plate (nparray): License plate cropped from an image (OpenCV). R...
31.662602
105
0.641417
93586b38b31631ccd1ef97c2c75bbaf211c76ef2
804
py
Python
cubejsclientasync/enums.py
NarrativeScience/cubejs-client-async
e175cb9e86109501e2aea36ab29f0f6bcd05251f
[ "BSD-3-Clause" ]
null
null
null
cubejsclientasync/enums.py
NarrativeScience/cubejs-client-async
e175cb9e86109501e2aea36ab29f0f6bcd05251f
[ "BSD-3-Clause" ]
1
2021-06-22T21:45:14.000Z
2021-06-22T21:45:14.000Z
cubejsclientasync/enums.py
NarrativeScience/cubejs-client-async
e175cb9e86109501e2aea36ab29f0f6bcd05251f
[ "BSD-3-Clause" ]
null
null
null
"""Contains enums""" import enum @enum.unique class TimeGranularity(enum.Enum): """Time granularity""" second = "second" minute = "minute" hour = "hour" day = "day" week = "week" month = "month" year = "year" null = None @enum.unique class Order(enum.Enum): """Result orderi...
17.478261
40
0.597015
93586b7cb834c5876f06d7a3787704e57b8a9d54
26
py
Python
src/version.py
AndreMiras/PyWallet
97c665a63d0dbab181657100bb42c4b5cc8270b1
[ "MIT" ]
66
2017-06-21T17:45:52.000Z
2022-02-02T11:30:21.000Z
src/version.py
AndreMiras/PyWallet
97c665a63d0dbab181657100bb42c4b5cc8270b1
[ "MIT" ]
160
2017-05-30T20:06:03.000Z
2022-03-12T00:09:49.000Z
src/version.py
AndreMiras/PyWallet
97c665a63d0dbab181657100bb42c4b5cc8270b1
[ "MIT" ]
22
2017-07-19T15:02:57.000Z
2021-09-09T11:10:04.000Z
__version__ = '2020.0524'
13
25
0.730769
935871e9a3d8f889a2ba53d1e02480f8bab33ca0
7,911
py
Python
API/src/main/resources/Lib/robot/result/resultbuilder.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/result/resultbuilder.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/result/resultbuilder.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
39.753769
87
0.611806
935885149d0445e4190551d17d010541c75b61a4
14,147
py
Python
tempest/common/glance_http.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/common/glance_http.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
tempest/common/glance_http.py
vmahuli/tempest
f70319f5eda72b8c8a913ae1002ec531324e4116
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
38.132075
79
0.592847
935886408f3eb23db0cf6089936c7f7e05b4d223
9,197
py
Python
eureka/S3_data_reduction/bright2flux.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
eureka/S3_data_reduction/bright2flux.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
eureka/S3_data_reduction/bright2flux.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
import numpy as np import scipy.interpolate as spi from scipy.constants import arcsec from astropy.io import fits from jwst import datamodels from jwst.photom import PhotomStep def rate2count(data): """This function converts the data, uncertainty, and variance arrays from rate units (#/s) to counts (#). Param...
33.082734
169
0.648799
9358929d5773f2a3b5e4044fd17b5a1d5e039164
1,902
py
Python
venv/Lib/site-packages/pyrogram/raw/base/stats_percent_value.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/stats_percent_value.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/stats_percent_value.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
38.04
97
0.646162
9358bc06d840dd0d84a7b1f62a73d10d3088556d
3,997
py
Python
Tools/Scripts/webkitpy/common/net/bugzilla/bug_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/net/bugzilla/bug_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/net/bugzilla/bug_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
47.583333
158
0.668752
9358dd110f4e6c9e2386b65270dfe80b0c021092
847
py
Python
disco_aws_automation/disco_logging.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
disco_aws_automation/disco_logging.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
disco_aws_automation/disco_logging.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
'''Utility function for logging''' import logging import sys def configure_logging(debug): '''Sets the default logger and the boto logger to appropriate levels of chattiness.''' logger = logging.getLogger('') boto_logger = logging.getLogger('boto') botocore_logger = logging.getLogger('botocore') i...
35.291667
100
0.724911
9358f344731e62def9cb0140b246e68333797950
23,746
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_open_id_connect_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_open_id_connect_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_open_id_connect_provider_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
45.230476
245
0.67325
935902be406aabb1bd59694337b112df474e4927
1,693
py
Python
examples/testcase.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
2
2019-04-22T12:25:05.000Z
2019-05-05T16:49:12.000Z
examples/testcase.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
9
2019-04-06T14:27:22.000Z
2021-04-30T20:42:19.000Z
examples/testcase.py
rajagurunath/mlvajra
abaa40717342cecc785144700884e1c9d5910c43
[ "Apache-2.0" ]
null
null
null
""" This is the "example" module. The example module supplies one function, factorial(). For example, >>> factorial(5) 120 """ #from mlvajra.preprocessing.sklearnPreprocessing import Tabular #from mlvajra.preprocessing.sklearnPreprocessing import * def factorial(n): """Return the factorial of n, an ex...
26.873016
73
0.604253
9359059cb17d81b53231164645016ca203b202a3
11,695
py
Python
sopel/cli/utils.py
FahimFBA/sopel
ea1600a38c55c499e24ca45cccc55509b39aa355
[ "EFL-2.0" ]
555
2015-07-25T21:21:43.000Z
2022-03-28T02:22:38.000Z
sopel/cli/utils.py
half-duplex/sopel
f6147399436284dd4e28598fffa0f7263061071a
[ "EFL-2.0" ]
1,177
2015-07-31T09:52:31.000Z
2022-03-26T05:10:34.000Z
sopel/cli/utils.py
MirahezeBots/sopel
72aa4fa5bc0bda3cd309ae9c15e86088b29de903
[ "EFL-2.0" ]
406
2015-07-28T20:34:02.000Z
2022-03-18T00:37:01.000Z
from __future__ import generator_stop import inspect import logging import os from sopel import config, plugins, tools # Allow clean import * __all__ = [ 'enumerate_configs', 'find_config', 'add_common_arguments', 'load_settings', 'wizard', 'plugins_wizard', # colors 'green', 'yel...
32.486111
81
0.64891
935919615a1d2e10d2cf99e10bd2caa9436ced3a
4,579
py
Python
partools/dq/functions.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/dq/functions.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/dq/functions.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
import sys from math import ceil from time import time from os.path import exists import partools.utils as u import partools.tools as to import partools.utils.sTools as st from . import gl def check_header(inp): if not u.has_header(inp): s = (f"Error: missing header in file '{inp}'." " Inpu...
24.88587
73
0.606028
93592ce48fc454d34c87f7cd323b2079967a2fec
5,968
py
Python
feedback/dataflow/map.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
feedback/dataflow/map.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
feedback/dataflow/map.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
"""This file is part of Splitter which is released under MIT License. map.py defines the simplest dataflow component in Splitter """ import random from feedback.cache_streams import CacheStream from feedback.utils.utils import * from feedback.streams import * from feedback.pipeline import * import numpy as np from ...
20.650519
81
0.676273
9359329e1499fdef56767367baa715380d594437
954
py
Python
mirage/libs/common/sdr/decoders.py
tlechien/mirage
cff987c52e11447064df1f8631593a9baa749fac
[ "MIT" ]
123
2019-11-20T19:53:23.000Z
2022-03-07T19:51:03.000Z
mirage/libs/common/sdr/decoders.py
FlorentGaltier/mirage
e25c0d1042fa02b1dff4058b240567f45fd64b4b
[ "MIT" ]
23
2019-10-22T13:53:34.000Z
2022-03-22T22:22:55.000Z
mirage/libs/common/sdr/decoders.py
FlorentGaltier/mirage
e25c0d1042fa02b1dff4058b240567f45fd64b4b
[ "MIT" ]
25
2019-11-15T12:13:48.000Z
2021-12-22T00:21:15.000Z
''' This component implements the Software Defined Radios Decoders. ''' class SDRDecoder: ''' This class implements a simple Sofware Defined Radio decoder. An decoder is used to convert a binary string into a packet or a sequence of bytes. Every decoder must inherit from this class and implement the ``decode`` me...
38.16
135
0.744235
935940746b76cdfac3c41b28e2cc23d94b75c480
13,286
py
Python
consensus/poet/core/sawtooth_poet/poet_consensus/poet_config_view.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
consensus/poet/core/sawtooth_poet/poet_consensus/poet_config_view.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
consensus/poet/core/sawtooth_poet/poet_consensus/poet_config_view.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
40.88
80
0.633223
93594495b67499eff11c54a4dd0aa0dcfe1d6a6d
9,912
py
Python
services/traction/acapy_wrapper/apis/issue_credential_v2_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/apis/issue_credential_v2_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/apis/issue_credential_v2_0_api.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from typing import Dict, List # noqa: F401 from fastapi import ( # noqa: F401 APIRouter, Body, Cookie, Depends, Form, Header, Path, Query, Request, Response, Security, status, ) from acapy_wrapper.models.extra_models import TokenModel # noqa: F401 fr...
32.498361
123
0.697236
93594d833c6fb5bfeff102459ae12d0bd311f49b
34,547
py
Python
cadnano/views/pathview/pathextras.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
cadnano/views/pathview/pathextras.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
cadnano/views/pathview/pathextras.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
# -*- coding: utf-8 -*- """Summary Attributes: BASE_RECT (TYPE): Description BASE_WIDTH (TYPE): Description KEYINPUT_ACTIVE_FLAG (TYPE): Description PHOS_ITEM_WIDTH (TYPE): Description PROX_ALPHA (int): Description T180 (TYPE): Description TRIANGLE (TYPE): Description """ from math import f...
34.790534
118
0.611052
935956f5b0cd40de2a846d958c4372ab9310d3e0
2,999
py
Python
tests/test_cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
Sodki/aiven-client
4c4ac6868966536d30601628dc80f9bd680bc463
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Aiven, https://aiven.io/ # # This file is under the Apache License, Version 2.0. # See the file `LICENSE` for details. # pylint: disable=no-member from aiven.client.cli import AivenCLI from collections import namedtuple import pytest pytestmark = [pytest.mark.unittest, pytest.mark.all] def test_c...
27.263636
119
0.467156
93598d25f2a4ac193815dbb8447fdbdf52029a6b
712
py
Python
genrl/agents/deep/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
genrl/agents/deep/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
genrl/agents/deep/__init__.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
from genrl.agents.deep.a2c import A2C # noqa from genrl.agents.deep.base import OnPolicyAgent # noqa from genrl.agents.deep.base import OffPolicyAgent, OffPolicyAgentAC from genrl.agents.deep.ddpg import DDPG # noqa from genrl.agents.deep.dqn import DQN # noqa from genrl.agents.deep.dqn import CategoricalDQN # noq...
47.466667
87
0.794944
93598d5b1c1ffd1bedda17e6a4b646c8b4c8c0bf
9,930
py
Python
syft/exceptions.py
Ankit-Dhankhar/PySyft
750bd2c3987a570ef1dc8554b933696d416724c7
[ "Apache-2.0" ]
null
null
null
syft/exceptions.py
Ankit-Dhankhar/PySyft
750bd2c3987a570ef1dc8554b933696d416724c7
[ "Apache-2.0" ]
null
null
null
syft/exceptions.py
Ankit-Dhankhar/PySyft
750bd2c3987a570ef1dc8554b933696d416724c7
[ "Apache-2.0" ]
1
2021-04-18T15:27:15.000Z
2021-04-18T15:27:15.000Z
"""Specific Pysyft exceptions.""" from tblib import Traceback import traceback from six import reraise from typing import Tuple import syft as sy from syft.generic.frameworks.types import FrameworkTensor class PureFrameworkTensorFoundError(BaseException): """Exception raised for errors in the input. This err...
38.192308
157
0.620443
93599d018a7d7ef28ebef2b47b2d3d52379c8632
8,106
py
Python
tbridge/profiles.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
tbridge/profiles.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
tbridge/profiles.py
HSouch/TBRIDGE
1f266c64d905eca48749092687376708bcf09d48
[ "BSD-3-Clause" ]
null
null
null
""" Surface brightness profile methods. This module contains all methods pertaining directly to surface brightness profiles measured using isophote fitting. """ import tbridge from numpy import trapz, copy, isnan, isinf, log10, arange, min, max, gradient, median, std from scipy.interpolate import interp1d from scip...
36.026667
117
0.658278
935a0877eefd7dce7790d9cc9bc52a084a09f0cc
9,998
py
Python
histomicsui/rest/system.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
17
2020-06-17T06:03:10.000Z
2022-03-16T15:44:52.000Z
histomicsui/rest/system.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
67
2020-02-27T20:17:04.000Z
2022-03-31T15:36:32.000Z
histomicsui/rest/system.py
DigitalSlideArchive/HistomicsUI
838b2a6c7f92bb5cb9a05f4a9577c5f05564f146
[ "Apache-2.0" ]
9
2020-02-11T19:35:23.000Z
2021-11-04T02:22:15.000Z
############################################################################### # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
41.658333
96
0.620424
935a43b7cd2fe49beb8449fbecea6b74a6b294f2
8,809
py
Python
tests/test_extrabytes.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
tests/test_extrabytes.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
tests/test_extrabytes.py
arknoll/laspy
8b57c38ac3fe666e527406589fa734a50f9ee86a
[ "BSD-2-Clause" ]
null
null
null
""" Tests related to extra bytes """ import numpy as np import pytest import laspy from laspy.lib import write_then_read_again def test_read_example_extra_bytes_las(las_file_path_with_extra_bytes): """ Test that we can read the files with extra bytes with have as examples """ las = laspy.read(las_fi...
32.032727
106
0.672267
935a6f82d01f7addb91be181128400fe74ea5ca0
12,219
py
Python
summarizer/model_processors.py
sb7-winners/bert-extractive-summarizer
e82528ffb719ad161c181b3265b37ecb85ae653b
[ "MIT" ]
1
2020-05-11T20:35:50.000Z
2020-05-11T20:35:50.000Z
summarizer/model_processors.py
sb7-winners/bert-extractive-summarizer
e82528ffb719ad161c181b3265b37ecb85ae653b
[ "MIT" ]
null
null
null
summarizer/model_processors.py
sb7-winners/bert-extractive-summarizer
e82528ffb719ad161c181b3265b37ecb85ae653b
[ "MIT" ]
1
2021-06-05T19:10:44.000Z
2021-06-05T19:10:44.000Z
from typing import List, Optional, Tuple, Union import numpy as np from transformers import * from summarizer.bert_parent import BertParent from summarizer.cluster_features import ClusterFeatures from summarizer.sentence_handler import SentenceHandler class ModelProcessor(object): aggregate_map = { 'me...
39.672078
130
0.655373
935a74e708056040ded6e19dbb103323c9c7c0cb
2,368
py
Python
algorithms/python/lev.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
1
2017-02-20T21:04:47.000Z
2017-02-20T21:04:47.000Z
algorithms/python/lev.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
null
null
null
algorithms/python/lev.py
rik0/rk-exempla
811f859a0980b0636bbafa2656893d988c4d0e32
[ "MIT" ]
2
2017-02-20T21:04:49.000Z
2021-05-18T11:29:16.000Z
import os import sys import time import numpy as np from os import path import itertools as it import wordlists def functional_lev(a, b): if not a: return len(b) if not b: return len(a) return min(functional_lev(a[1:], b[1:])+(a[0] != b[0]), functional_lev(a[1:], b)+1, ...
29.974684
78
0.493243
935ab04895e9b67212542a65ec3975dec0ccb5b3
7,018
py
Python
trax/rl/envs/async_trajectory_collector_lib.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/envs/async_trajectory_collector_lib.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/envs/async_trajectory_collector_lib.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.806122
80
0.676546
935ac59f2b775b6ff2db08f3dca9483d60717c49
2,447
py
Python
oscar/lib/python2.7/site-packages/IPython/terminal/prompts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/terminal/prompts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/terminal/prompts.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Terminal input and output prompts.""" from __future__ import print_function from pygments.token import Token import sys from IPython.core.displayhook import DisplayHook from prompt_toolkit.layout.utils import token_list_width class Prompts(object): def __init__(self, shell): self.shell = ...
30.209877
80
0.570086
935ad9bf0c935301016c5a10414b80556b5dff2c
3,190
py
Python
SCRAPE/Lib/site-packages/twisted/conch/tap.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/conch/tap.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/conch/tap.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.conch.test.test_tap -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Support module for making SSH servers with twistd. """ from twisted.application import strports from twisted.conch import checkers as conch_checkers, unix from twisted.conch.openssh_compat...
34.673913
88
0.633856
935ae16144bf2041de71cab4d02e1643732be5ad
12,155
py
Python
nova/api/openstack/compute/keypairs.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/keypairs.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/keypairs.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
37.984375
79
0.61703
935af50985dc8029ccfdb6f739f75de3dbca76f1
22,854
py
Python
tests/test_circup.py
tammymakesthings/circup
2158c666c614d2c7ff21fa937afe2b38b53dc581
[ "MIT" ]
null
null
null
tests/test_circup.py
tammymakesthings/circup
2158c666c614d2c7ff21fa937afe2b38b53dc581
[ "MIT" ]
null
null
null
tests/test_circup.py
tammymakesthings/circup
2158c666c614d2c7ff21fa937afe2b38b53dc581
[ "MIT" ]
null
null
null
""" Unit tests for the circup module. Copyright (c) 2019 Adafruit Industries Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
37.775207
79
0.660322
935b20bf52f463896d666f23c01033bfb62c8e9c
3,652
py
Python
cluster_angles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
cluster_angles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
cluster_angles.py
gdurin/mokas
57893d0191c988b241dcf5701d4213a3cbcf587a
[ "CC-BY-3.0" ]
null
null
null
import numpy as np import pickle from skimage import measure import matplotlib.pyplot as plt import heapq import getAxyLabels as gal from matplotlib.path import Path import matplotlib.patches as patches class CustomPatches: def TriangleLeft(self, size=1, color='orange', lw=1): verts = [(0., 0.), # left, b...
27.877863
86
0.586528
935b6a74b0f8056f6a835ccf678550cd03f0e7ed
4,919
py
Python
test/test_response.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
1
2021-03-21T12:18:23.000Z
2021-03-21T12:18:23.000Z
test/test_response.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
null
null
null
test/test_response.py
autopi-io/py-udsoncan
2351ee02bf4a70e5661d6fd5f48f58db740f244e
[ "MIT" ]
null
null
null
from __future__ import with_statement from __future__ import absolute_import from udsoncan import Response, services from test.UdsTest import UdsTest class DummyServiceNormal(services.BaseService): _sid = 0x13 def subfunction_id(self): return 0x44 class DummyServiceNoSubunction(services.BaseService):...
37.838462
92
0.689774
935bb27331d72bb0947cbb99cb6b9196a21ea36b
1,445
py
Python
polyart/common/cachedmath.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
4
2021-11-21T18:35:54.000Z
2021-12-14T02:02:37.000Z
polyart/common/cachedmath.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
3
2021-11-21T18:37:56.000Z
2021-11-21T19:15:21.000Z
polyart/common/cachedmath.py
IsaacTFM/pygrr-polyart
7a8219cd93b5691ddca89b4fb46a4af7bc1e3456
[ "Apache-2.0" ]
1
2021-11-21T18:39:52.000Z
2021-11-21T18:39:52.000Z
""" This small module has an optimised way of calling math functions. """ # import functools cache decorator from functools import lru_cache # decorate the function to ensure it caches output @lru_cache(maxsize=None) def cached_pow(number: float, power: float) -> float: """ Raises number to power. Caches...
28.333333
65
0.707266
935bde4cf4f2be7ceac1d353804554652e820353
14,153
py
Python
src/bloombox/schema/checkin/v1beta1/CheckinStream_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/checkin/v1beta1/CheckinStream_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/checkin/v1beta1/CheckinStream_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: checkin/v1beta1/CheckinStream.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobu...
60.225532
1,918
0.775313
935be22632a1322129a018819c5ef8cb7bfc22c3
4,623
bzl
Python
xrtl/port/apple/testing/portable_testing_apple.bzl
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
132
2017-03-30T03:26:57.000Z
2021-11-18T09:18:04.000Z
xrtl/port/apple/testing/portable_testing_apple.bzl
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
36
2017-04-02T22:57:53.000Z
2018-06-27T04:20:30.000Z
xrtl/port/apple/testing/portable_testing_apple.bzl
google/xrtl
8cf0e7cd67371297149bda8e62d03b8c1e2e2dfe
[ "Apache-2.0" ]
24
2017-04-09T12:48:13.000Z
2021-10-20T02:20:07.000Z
"""cc_test rules for MacOS.""" load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test") load("@build_bazel_rules_apple//apple:macos.bzl", "macos_unit_test") is_bazel = not hasattr(native, "genmpm") def _merge_dicts(a, b): result = {} for (key, value) in a.items(): result[key] = value for (key, valu...
25.97191
82
0.612157
935c5bbf25cdc4e11afbce844ef9f5224aa41abb
47,141
py
Python
lingvo/core/program.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
lingvo/core/program.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
lingvo/core/program.py
eric-haibin-lin/lingvo
d66710d9b28f349047d53f3fba0b87694b978350
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Lint as: python2, python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
38.831137
89
0.702361
935c7088cbb3597435d1071c66a2d3135fd18a73
5,694
py
Python
Code_for_Classification/ABR_CNN/model/mel_22_33_cnn_v0.0.2.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
1
2021-04-20T14:47:40.000Z
2021-04-20T14:47:40.000Z
Code_for_Classification/ABR_CNN/model/mel_22_33_cnn_v0.0.2.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
Code_for_Classification/ABR_CNN/model/mel_22_33_cnn_v0.0.2.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
# 1. set up train validation test split import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.layers import Bat...
33.892857
165
0.691781
935c879b13a4dad662a39f6f4567c25bcc214e49
1,978
py
Python
tasty_alpha/io/csv.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2020-10-19T08:07:26.000Z
2020-10-19T08:07:26.000Z
tasty_alpha/io/csv.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
null
null
null
tasty_alpha/io/csv.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2022-02-13T07:58:03.000Z
2022-02-13T07:58:03.000Z
import asyncio from aiopubsub import Hub, Publisher, Subscriber, Key import datetime from loguru import logger import pandas as pd from ..sampling.bar import Bar from ..trade import Trade from .. import events COLUMN_NAMES = ['time', 'price', 'amount'] # TODO: Rewrite this as generator # for trade in CSVTradeProcesso...
35.321429
80
0.671891
935c886aec2c3d482a6e5184fd1691b1c4008b62
9,599
py
Python
grit/format/policy_templates/writers/template_writer.py
MIPS/external-chromium_org-tools-grit
646f47f4f3b103f878faabfa7f8a4cd2860822a5
[ "BSD-2-Clause" ]
1
2017-08-06T01:12:23.000Z
2017-08-06T01:12:23.000Z
tools/grit/grit/format/policy_templates/writers/template_writer.py
ufologist/qx
a2d64a337ecb2cd5752bd848afb2315c93e0fabe
[ "MIT" ]
null
null
null
tools/grit/grit/format/policy_templates/writers/template_writer.py
ufologist/qx
a2d64a337ecb2cd5752bd848afb2315c93e0fabe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class TemplateWriter(object): '''Abstract base class for writing policy templates in various formats. The methods of this clas...
33.329861
80
0.690384
935cbf35285e7ae46d579e2db86a0c7e36087399
1,021
py
Python
core/test.py
JiaMingLin/dlcv_adda
e292eb0e61fc79eb15a16bcf786e834436b09089
[ "Apache-2.0" ]
null
null
null
core/test.py
JiaMingLin/dlcv_adda
e292eb0e61fc79eb15a16bcf786e834436b09089
[ "Apache-2.0" ]
null
null
null
core/test.py
JiaMingLin/dlcv_adda
e292eb0e61fc79eb15a16bcf786e834436b09089
[ "Apache-2.0" ]
null
null
null
"""Test script to classify target data.""" import torch import torch.nn as nn from utils import make_variable def evaluation(encoder, classifier, data_loader): """Evaluation for target encoder by source classifier on target dataset.""" # set eval state for Dropout and BN layers encoder.eval() classi...
26.179487
79
0.625857
935cdda2cd59c9a340fbbe70d07525a375b3bd80
688
py
Python
setup.py
moralescastillo/metabase_api_python
0462271d9e33585ac7e5bb1770e8f1f800a237ff
[ "MIT" ]
57
2020-02-08T04:19:32.000Z
2022-03-31T21:37:51.000Z
setup.py
moralescastillo/metabase_api_python
0462271d9e33585ac7e5bb1770e8f1f800a237ff
[ "MIT" ]
25
2019-11-27T01:25:59.000Z
2022-03-31T19:17:49.000Z
setup.py
moralescastillo/metabase_api_python
0462271d9e33585ac7e5bb1770e8f1f800a237ff
[ "MIT" ]
20
2020-04-09T12:31:02.000Z
2022-02-07T12:08:10.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="metabase-api", version="0.2.13", author="Vahid Vaezian", author_email="vahid.vaezian@gmail.com", description="A Python Wrapper for Metabase API", long_description=long_description, ...
27.52
58
0.659884
935d07cdf73d680584ea37a28d5f27788386083f
3,031
py
Python
classification/models/models_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
7
2018-10-14T14:55:10.000Z
2021-01-04T13:42:09.000Z
classification/models/models_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
classification/models/models_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. and Skytruth Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
40.959459
80
0.679974
935d3f3b2469c3862989ba7a2b6865ccbee03e4a
1,298
py
Python
bmch/cli.py
romainmartinez/bmch
652ffe3348b7a61dbc05e2fecc70b8759a40d3bc
[ "MIT" ]
1
2018-12-31T05:14:19.000Z
2018-12-31T05:14:19.000Z
bmch/cli.py
romainmartinez/bmch
652ffe3348b7a61dbc05e2fecc70b8759a40d3bc
[ "MIT" ]
9
2017-09-30T02:11:42.000Z
2018-02-21T03:15:39.000Z
bmch/cli.py
romainmartinez/bmch
652ffe3348b7a61dbc05e2fecc70b8759a40d3bc
[ "MIT" ]
2
2017-10-06T23:01:44.000Z
2019-08-21T15:31:25.000Z
# -*- coding: utf-8 -*- """Command line interface for bmch.""" import menu import bmch def show_menu(): """Display command line interface (without arguments and outputs).""" # create main menu main = menu.Menu(title="Main Menu") # create submenu # 1) preprocessing submenu preproc = menu.M...
27.041667
79
0.578582
935d44e03366d71292f06e868cfbed9eec3cf553
808
py
Python
aless_art_shop/urls.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
aless_art_shop/urls.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
aless_art_shop/urls.py
AlessioMartello/art_shop
aff7bfe0870b120d648d922c89e49ebf3c975f06
[ "MIT" ]
null
null
null
"""Defines URL patterns for aless_art_shop app""" from django.urls import path from django.conf import settings from django.conf.urls.static import static from . import views from aless_art_shop.views import ProductListView, ProductDetailView, BlogListView, BlogPostView app_name = "aless_art_shop" urlpatterns = [ ...
36.727273
95
0.711634
935d4aa81395bb4c431bbe050f9b9bfd1eb10de9
10,694
py
Python
doc/conf.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2008-2013 Edgewall Software # Copyright (C) 2008 Noah Kantrowitz <noah@coderanger.net> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://...
29.29863
81
0.715728
935d75f9a346d8b6f905c0667f2c35b734425f67
5,390
py
Python
Tools/Scripts/webkitpy/port/xorgdriver_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/port/xorgdriver_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/port/xorgdriver_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2017 Igalia S.L. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
50.849057
144
0.720223
935d7bf38da80ee0fad5eacb3d83ab465d51a030
2,901
py
Python
qnarre/prep/config/decision_transfo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/config/decision_transfo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/config/decision_transfo.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 applicable l...
34.951807
157
0.580834
935da2e1ce2d5978d5263273c6e981562206ac51
47
py
Python
modules/virtual_machine_error.py
manparvesh/chenab
b91d4fe9a3295526d46a8424ec22ed8a4f5e110f
[ "MIT" ]
1
2018-06-16T20:19:07.000Z
2018-06-16T20:19:07.000Z
modules/virtual_machine_error.py
manparvesh/chenab
b91d4fe9a3295526d46a8424ec22ed8a4f5e110f
[ "MIT" ]
null
null
null
modules/virtual_machine_error.py
manparvesh/chenab
b91d4fe9a3295526d46a8424ec22ed8a4f5e110f
[ "MIT" ]
null
null
null
class VirtualMachineError(Exception): pass
15.666667
37
0.787234
935daa32d7cce2b0452dd6db1a8fc16a1591008c
12,517
py
Python
tests/tests_medium.py
levsh/siderpy
5e05399b5faea7e3ba38b9837cea7227baf51655
[ "MIT" ]
null
null
null
tests/tests_medium.py
levsh/siderpy
5e05399b5faea7e3ba38b9837cea7227baf51655
[ "MIT" ]
null
null
null
tests/tests_medium.py
levsh/siderpy
5e05399b5faea7e3ba38b9837cea7227baf51655
[ "MIT" ]
null
null
null
import asyncio import os import ssl import pytest import siderpy siderpy.LOG.setLevel("DEBUG") REDIS_HOST = os.environ.get("REDIS_HOST", "redis") REDIS_PORT = os.environ.get("REDIS_PORT", "6379") TESTS_USE_SSL = os.environ.get("TESTS_USE_SSL") pytestmark = pytest.mark.asyncio @pytest.fixture(scope="function") ...
36.599415
110
0.567149
935dbfa9e20ebe879e82f4f593f92853633cfb05
3,677
py
Python
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/protocols/haproxy/_wrapper.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.protocols.haproxy.test.test_wrapper -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Protocol wrapper that provides HAProxy PROXY protocol support. """ from typing import Optional, Union from twisted.internet import interfaces from twisted.internet.endpoin...
33.427273
86
0.674463
935ded9971bbbb228b8c216691a0d1b381a5bc9f
5,893
py
Python
doc/tools/reportificate.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
1
2016-12-09T03:02:05.000Z
2016-12-09T03:02:05.000Z
doc/tools/reportificate.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
null
null
null
doc/tools/reportificate.py
chrissorchard/malucrawl
cb9633baff8752f3e043a2cfdb91cde868666ae2
[ "MIT" ]
null
null
null
#!/usr/bin/python # # github API abusing script for report metrics # # C. Orchard - 29/11/2012 # import itertools import requests import getpass import os import dateutil.parser import datetime import percache import keyring import httplib import matplotlib.pyplot as plt import numpy as np from operator import item...
25.183761
105
0.641439
935e0d1e49f4874743ea322365c0876af59e0810
499
py
Python
bootcamp/wiki/plugins/globalhistory/wiki_plugin.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/plugins/globalhistory/wiki_plugin.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/wiki/plugins/globalhistory/wiki_plugin.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import url from wiki.core.plugins import registry from wiki.core.plugins.base import BasePlugin from . import settings, views class GlobalHistoryPlugin(BasePlugin): slug = settings.SLUG urlpatterns = {'root': [ url(r'^$', views.GlobalHis...
24.95
91
0.723447
935e1c3288d0416ea8e4a1c0432f793d61eea174
17,268
py
Python
asv/commands/run.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
asv/commands/run.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
asv/commands/run.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import logging import traceback import itertools from collections import defaultdict import six from . import Command ...
41.912621
104
0.548471
935e235d3d00967c47ce226141f3af7f0f8a7b49
1,113
py
Python
pylib/base/flags.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/base/flags.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/base/flags.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
"""Flags.""" __author__ = 'pramodg@room77.com (Pramod Gupta)' __copyright__ = 'Copyright 2012 Room77, Inc.' import argparse # HACK(stephen): Force add_subparsers to be backwards compatible since this # broke in Python 3. def build_parser(): parser = argparse.ArgumentParser(conflict_handler='resolve', forma...
30.916667
82
0.703504
935e3d235d57b70518cb83a4ee3bc1d6f09ae32d
216
py
Python
app/main/errors.py
Blankphrase/News-Highlight
efda2300b0c7e021bc88b19f06e76ea1b09f4717
[ "MIT" ]
null
null
null
app/main/errors.py
Blankphrase/News-Highlight
efda2300b0c7e021bc88b19f06e76ea1b09f4717
[ "MIT" ]
null
null
null
app/main/errors.py
Blankphrase/News-Highlight
efda2300b0c7e021bc88b19f06e76ea1b09f4717
[ "MIT" ]
null
null
null
from flask import render_template from . import main @main.app_errorhandler(404) def four_Ow_four(error): ''' function to render the 404 error page ''' return render_template('fourOwfour.html'),404
19.636364
49
0.722222
935e4e6203031f49be816f6858ed4bf8964e1e27
1,490
py
Python
chroma_api/network_interface.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_api/network_interface.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_api/network_interface.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from tastypie import fields from tastypie.authorization import DjangoAuthorization from tastypie.constants import ALL_WITH_RELATIONS from chroma_core.models import Netwo...
32.391304
86
0.745638
935e5af47df8cf7bfc9a511e239186190f7ffd38
642
py
Python
code-festival-2017-qualc/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
code-festival-2017-qualc/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
code-festival-2017-qualc/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ans = 0 def dfs(total, n, N, arr): global ans if n == N: if total % 2 == 0: ans += 1 return for x in arr[n]: dfs(total * x, n + 1, N, arr) def main(): ni = lambda: int(ns()) na = lambda: list(map(int...
18.342857
57
0.489097
935e5d82ccee2ebb4497ed3e06e5df8fd5c92878
10,934
py
Python
stack/cache.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
83
2017-10-06T14:03:31.000Z
2021-11-08T10:32:22.000Z
stack/cache.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
39
2017-09-29T13:43:30.000Z
2022-03-22T20:35:43.000Z
stack/cache.py
caktus/aws-web-stacks
31859d5c935653be453f97220f2e53155e23f429
[ "MIT" ]
19
2017-10-25T18:46:50.000Z
2022-02-13T20:11:54.000Z
from troposphere import ( And, Condition, Equals, GetAtt, If, Join, Not, Or, Output, Ref, Tags, constants, ec2, elasticache ) from .common import ( cmk_arn, dont_create_value, use_aes256_encryption, use_aes256_encryption_cond, use_cmk_arn ) fr...
29.002653
117
0.647887
935eef083bfc438114c2fe4e806be60dd16843b2
698
py
Python
exos/20191007/exo_lexique_3.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
7
2016-09-29T07:20:25.000Z
2021-03-15T15:00:06.000Z
exos/20191007/exo_lexique_3.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
null
null
null
exos/20191007/exo_lexique_3.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
11
2017-01-12T18:50:49.000Z
2021-02-28T22:44:29.000Z
# -*- coding: utf-8 -*- """ Exercice pour le 14/10/2019 À partir du fichier Lexique383.tsv (voir http://www.lexique.org/) générez 3 fichiers avec les colonnes 'ortho', 'phon', 'lemme' pour les noms, les verbes et les adjectifs Version defaultdict """ from collections import defaultdict cats = ['NOM', 'VER', 'ADJ'] r...
29.083333
105
0.618911
935f5cc9cb69f8a0aa4b5255fb7650b6e5c05ad8
128,798
py
Python
server/tests/integration/assignments/test_polls.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
null
null
null
server/tests/integration/assignments/test_polls.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
null
null
null
server/tests/integration/assignments/test_polls.py
Piratenpartei/OpenSlides
d4a6e1819233f0c6c325b8fb49fbf471e92a4db4
[ "MIT" ]
null
null
null
import random from decimal import Decimal from typing import Any import pytest from django.conf import settings from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from openslides.assignments.models import ( Ass...
41.031539
143
0.600677
935f8b5b5b2f20dda01ce015617a28b31519bd74
9,048
py
Python
catalyst/contrib/registry.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/contrib/registry.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/contrib/registry.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
from typing import Type, Union, Callable, List import copy import torch import torch.nn as nn from catalyst.contrib import criterion, models, modules, optimizers from catalyst.dl import callbacks from catalyst.rl import agents, environments from catalyst.rl.offpolicy import algorithms from catalyst.dl.fp16 import Fp16W...
34.934363
78
0.635721
935f9b7cf932254cb673bdfd582ece32d229a63a
1,170
py
Python
constructors.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
constructors.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
constructors.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import re class DomainException(Exception): """Raised when an invalid is created.""" pass class Domain: def __init__(self, name): # validate a current domain (r'.*\.[a-z]{2,3}$' is fine) if re.match(r'.*\.[a-z]{2,3}$', name) == None: raise DomainException # if not va...
30.789474
87
0.560684
935fa9b8b0ed0c7373f1f955bd715b0c603ce911
6,997
py
Python
common/cmd_util.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
common/cmd_util.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
common/cmd_util.py
ethanabrooks/teacher-RL
41b44fa4de1e8ce7e0c3eac726919c28ede63538
[ "MIT" ]
null
null
null
""" Helpers for scripts like run_atari.py. """ import os import gym from gym.wrappers import FlattenDictWrapper from baselines import logger from baselines.bench import Monitor from common import retro_wrappers, set_global_seeds from common.atari_wrappers import make_atari, wrap_deepmind from common.vec_env.dummy_ve...
27.656126
140
0.635415
935fcb5e465563b1e33326526b01c22ed5cc07cf
20,274
py
Python
sxs/waveforms/nrar.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
8
2019-12-08T20:56:59.000Z
2021-11-01T09:01:39.000Z
sxs/waveforms/nrar.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
33
2019-12-06T17:40:00.000Z
2022-03-28T16:53:02.000Z
sxs/waveforms/nrar.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
10
2019-12-04T17:37:55.000Z
2022-03-14T07:22:43.000Z
"""Handlers for waveforms in the old NRAR data format""" import sys import warnings import ast import numpy as np from . import WaveformModes from ..metadata import Metadata from ..utilities.monotonicity import index_is_monotonic FrameType = [UnknownFrameType, Inertial, Coprecessing, Coorbital, Corotating] = range(5...
42.325678
115
0.575417
935fe2c898a2003bea5a2280f2dd5d6581d34e8b
2,045
py
Python
Trescope4Python/example/src/example_add_control.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
105
2020-11-09T04:20:26.000Z
2022-03-23T12:32:24.000Z
Trescope4Python/example/src/example_add_control.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
5
2021-02-21T04:21:56.000Z
2022-01-04T08:07:20.000Z
Trescope4Python/example/src/example_add_control.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
8
2020-11-13T12:55:36.000Z
2022-01-17T07:28:06.000Z
import os from typing import List from trescope import Trescope from trescope.config import ImageConfig from trescope.controller import EnumControl, TextControl, Label from trescope.toolbox import simpleDisplayOutputs import pandas as pd def clear_trescope(): for i in range(4): Trescope().selectOutput(i).clear()...
42.604167
127
0.649389
936027491ec657cab27020a972baa34ac8010430
1,132
py
Python
config.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
config.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
config.py
wintersandroid/fritzcollectd
b09c24f119ed188e52e6f0f61580508bf785bb53
[ "MIT" ]
null
null
null
# encoding: utf-8 """ Configuration Module """ import json import os ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) # This is your Project Root CONFIG_PATH = os.path.join(ROOT_DIR, 'config.json') def save_json_file(filepath, data): """ Saves JSON Data to File""" with open(filepath, 'w') as outfile: ...
20.962963
82
0.60689
9360311733ba7ea94645ffca9f7ef224bfbcc4ee
5,693
py
Python
stocky-devel/stocky/stocky.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2020-05-13T17:39:59.000Z
2020-05-13T17:39:59.000Z
stocky-devel/stocky/stocky.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
1
2018-09-18T19:39:24.000Z
2019-02-04T23:52:59.000Z
stocky-devel/stocky/stocky.py
cfe-lab/stocky
6c4114551d9b61c5ba3db2c237e995fecdd2f6b3
[ "Apache-2.0" ]
null
null
null
"""The stocky web server main program using Flask socket See the runserver.sh script in this directory for how to launch the program. """ import typing from geventwebsocket import websocket import serverlib.serverconfig as serverconfig import serverlib.commlink as commlink import serverlib.stockyserver as stockyse...
36.49359
100
0.717899
936058802e008d9829f80a1f1e6ba9b3551b7909
655
py
Python
sample.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
sample.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
sample.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
import logging from src.tinydag.graph import Graph from src.tinydag.node import Node logging.basicConfig(level=logging.DEBUG) def main(): add = lambda a, b: a + b mul = lambda a, b: a * b div = lambda a, b: a / b nodes = [ Node(["add1", "x"], add, "add2"), Node(["add1", "add2"], mul...
19.848485
43
0.532824
93607de35958834365fe8469a7c9d311c01c2a71
5,181
py
Python
qnarre/prep/tokens/fast/roformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/fast/roformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/fast/roformer.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 applicable l...
38.954887
131
0.678247
9360b3a2cfa120c9b99d6ccbdc3e7ae01886f36b
5,261
py
Python
src/layers.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
null
null
null
src/layers.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
null
null
null
src/layers.py
lxzmxl/GEMSEC
1b68ebc25542cabb914d3cb65555fe29c640aeb0
[ "MIT" ]
1
2021-03-18T07:38:12.000Z
2021-03-18T07:38:12.000Z
import tensorflow as tf import math import numpy as np class DeepWalker: """ DeepWalk embedding layer class. """ def __init__(self, args, vocab_size, degrees): """ Initialization of the layer with proper matrices and biases. The input variables are also initialized here. ...
50.104762
222
0.567953
9360b9264a1b9cedd4869e98b92ecd5c92087407
415
py
Python
src/infi/instruct/utils/safe_repr.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
2
2015-01-12T21:16:06.000Z
2019-12-12T05:59:56.000Z
src/infi/instruct/utils/safe_repr.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-02-24T09:18:00.000Z
2021-06-16T12:55:19.000Z
src/infi/instruct/utils/safe_repr.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-01-07T12:37:54.000Z
2018-02-08T15:07:17.000Z
def safe_repr(obj): """Returns a repr of an object and falls back to a minimal representation of type and ID if the call to repr raised an error. :param obj: object to safe repr :returns: repr string or '(type<id> repr error)' string :rtype: str """ try: obj_repr = repr(obj) exc...
29.642857
119
0.624096
9360bc6885a0269410c7591b25145cdcbc4987c7
566
py
Python
wheelchair/api/utils/stale_options.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
3
2020-06-17T07:59:08.000Z
2020-07-05T08:59:11.000Z
wheelchair/api/utils/stale_options.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
wheelchair/api/utils/stale_options.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
# Copyright (C) 2019-2021 by Vd. # This file is part of Wheelchair, the async CouchDB connector. # Wheelchair is released under the MIT License (see LICENSE). from enum import Enum from typing import Optional, Union class StaleOptions(str, Enum): ok = "ok" update_after = "update_after" false = "false" ...
24.608696
79
0.666078
9360cde595bcdb2aff35880dbba6e4b55be90e73
8,359
py
Python
qiskit_dynamics/solvers/fixed_step_solvers.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
1
2022-01-21T01:47:40.000Z
2022-01-21T01:47:40.000Z
qiskit_dynamics/solvers/fixed_step_solvers.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
qiskit_dynamics/solvers/fixed_step_solvers.py
haggaila/qiskit-dynamics
fd20314e2b591c35323782bc429d9f928fdb9a12
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
32.02682
100
0.665032
9360df47cad7552a6e7251203b81df30f6e2e880
11,230
py
Python
temp/makegal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
temp/makegal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
temp/makegal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
def mk_gal(gal, save=False, verbose=False, mstar_min=1e9, den_lim=1e6, den_lim2=5e6, rmin = -1, Rgal_to_reff=5.0, method_com=1, follow_bp=None, unit_conversion="code"): """ Refine given catalog (star, DM, gas) to define a realistic galaxy. ...
38.591065
103
0.576313
9360e6aa6445de42ae8758f9596225bdfe69d848
3,077
py
Python
test/unit/gen_class/mail_add_2_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_class/mail_add_2_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_class/mail_add_2_msg.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: mail_add_2_msg.py Description: Unit testing of Mail.add_2_msg in gen_class.py. Usage: test/unit/gen_class/mail_add_2_msg.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2, 7): i...
19.851613
72
0.58336
9360f48d50f4898c1567b47574466eed261c4c2f
4,399
py
Python
cesiumpy/__init__.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/__init__.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
cesiumpy/__init__.py
lucas-bremond/cesiumpy
a7dd633194ae798dbc79961e6ff231aa313d8dfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # data import cesiumpy.data.country # noqa countries = cesiumpy.data.country.CountryLoader() # noqa # entities import cesiumpy.entities as entities # noqa i...
59.445946
112
0.460105
9361085bbd556bfca603ed1ef5d29b8c46eea0f2
7,900
py
Python
app.py
kaushalpurohit/rango
9d4612df0ddfc250fb499fc0c8acf6fcf910b2e9
[ "MIT" ]
19
2021-07-02T05:49:29.000Z
2021-12-17T06:13:17.000Z
app.py
kaushalpurohit/rango
9d4612df0ddfc250fb499fc0c8acf6fcf910b2e9
[ "MIT" ]
null
null
null
app.py
kaushalpurohit/rango
9d4612df0ddfc250fb499fc0c8acf6fcf910b2e9
[ "MIT" ]
3
2021-11-20T14:16:33.000Z
2021-12-03T16:41:25.000Z
"""Telegram bot to get torrent based on the user's query from yts and 1337x.""" import re from os import environ from telegram import ParseMode from dotenv import load_dotenv from scraper.links import links from scraper.yts import search_yts, get_quality_yts from scraper.x import search_1337x, get_magnet_1337x from sc...
37.619048
79
0.631772
93610e9e517ecb42969bcad40d330766e902cf8d
509
py
Python
keyence2020/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
keyence2020/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
keyence2020/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() XL = [] for _ in range(N): x, l = na() XL.append((x + l, x - l)) XL.sort() ...
16.966667
57
0.473477