hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
088c98732be8a70c09a3611f36a22cfe868300f4
1,360
py
Python
siammot/modelling/track_head/EMM/xcorr.py
pha-nguyen/siam-mot
868c244a8d0d6aa79b1fbaf09c226fa0335307f3
[ "Apache-2.0" ]
399
2021-05-25T01:01:19.000Z
2022-03-30T03:28:25.000Z
siammot/modelling/track_head/EMM/xcorr.py
pha-nguyen/siam-mot
868c244a8d0d6aa79b1fbaf09c226fa0335307f3
[ "Apache-2.0" ]
38
2021-05-27T02:00:16.000Z
2022-03-23T01:14:58.000Z
siammot/modelling/track_head/EMM/xcorr.py
pha-nguyen/siam-mot
868c244a8d0d6aa79b1fbaf09c226fa0335307f3
[ "Apache-2.0" ]
61
2021-05-26T10:26:54.000Z
2022-03-19T06:33:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import torch import torch.nn.functional as F def xcorr_slow(x, kernel): """for loop to calculate cross correlation, slow version """ batch = x.size()[0] ...
29.565217
74
0.609559
3623c110147ab6b9adfc1bb79316a8217b08a891
4,620
py
Python
tests/server/test_compaction.py
electric-cash/electrumx
f9ed0f42703572b9483a333bf540d89189964366
[ "MIT" ]
3
2021-01-26T20:09:23.000Z
2021-01-29T12:53:00.000Z
tests/server/test_compaction.py
electric-cash/electrumx
f9ed0f42703572b9483a333bf540d89189964366
[ "MIT" ]
null
null
null
tests/server/test_compaction.py
electric-cash/electrumx
f9ed0f42703572b9483a333bf540d89189964366
[ "MIT" ]
null
null
null
# Test of compaction code in server/history.py import array import asyncio from os import environ, urandom import random from electrumx.lib.hash import HASHX_LEN from electrumx.lib.util import pack_be_uint16, pack_le_uint64 from electrumx.server.env import Env from electrumx.server.db import DB def create_histories...
34.222222
77
0.652597
397eb2bcfc7234930414852e7c87ed727038b633
4,494
py
Python
mayan/apps/tags/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/tags/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/tags/apps.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from django.apps import apps from django.utils.translation import ugettext_lazy as _ from acls import ModelPermission from acls.links import link_acl_list from acls.permissions import permission_acl_edit, permission_acl_view from common import ( MayanAppConfig, menu_facet, ...
31.208333
79
0.629951
1f42227bc9119eb4f20129155ab7e9021cac7e5c
5,856
py
Python
xbrr/edinet/client/document_client.py
peisuke/xbrr
08e536567eaf094cac521ceaf6a6b9dab1e671eb
[ "MIT" ]
17
2020-01-23T13:55:52.000Z
2022-03-25T05:40:02.000Z
xbrr/edinet/client/document_client.py
peisuke/xbrr
08e536567eaf094cac521ceaf6a6b9dab1e671eb
[ "MIT" ]
4
2020-01-29T13:03:39.000Z
2020-01-30T17:41:42.000Z
xbrr/edinet/client/document_client.py
peisuke/xbrr
08e536567eaf094cac521ceaf6a6b9dab1e671eb
[ "MIT" ]
4
2020-01-29T12:28:31.000Z
2021-07-16T08:08:11.000Z
import re from pathlib import Path import tempfile from zipfile import ZipFile import requests from xbrr.edinet.client.base_client import BaseClient from xbrr.edinet.models.error_response import ErrorResponse class DocumentClient(BaseClient): """Client to get file.""" def __init__(self): super().__in...
34.447059
79
0.501708
ef9a692934dd11619c3fb09cfa548ef3235855bb
14,264
py
Python
Utils/py/naoth/tests/test_m2d.py
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/py/naoth/tests/test_m2d.py
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/py/naoth/tests/test_m2d.py
BerlinUnited/NaoTH
02848ac10c16a5349f1735da8122a64d601a5c75
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
import math import unittest from naoth import math as m2d from naoth import math as m3d class TestMath2D(unittest.TestCase): # Vector2 methods def test_add(self): a = m2d.Vector2(100, 100) b = m2d.Vector2(1000, 10) c = m2d.Vector2(-100, -100) d = m2d.Vector2(-5000, 5.3) ...
30.156448
95
0.57242
4f7bc6ab19a11e6b99e7c98395bcaa7ee316ce5b
60,255
py
Python
salt/modules/mysql.py
jmdcal/salt
ffa14cd95796c0b364cbb8afb18c2a207f39400f
[ "Apache-2.0" ]
1
2016-04-26T03:42:32.000Z
2016-04-26T03:42:32.000Z
salt/modules/mysql.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
salt/modules/mysql.py
apergos/salt
106c715d495a9c2bd747c8ca75745236b0d7fb41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module to provide MySQL compatibility to salt. :depends: - MySQLdb Python module .. note:: On CentOS 5 (and possibly RHEL 5) both MySQL-python and python26-mysqldb need to be installed. :configuration: In order to connect to MySQL, certain configuration is required in /etc/...
30.157658
97
0.573927
d428dd8d74816271a717743dcc2944b436f8046f
12,084
py
Python
pysces/PyscesModelMap.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
21
2015-02-11T22:59:18.000Z
2022-03-01T15:36:41.000Z
pysces/PyscesModelMap.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
63
2015-03-26T11:58:58.000Z
2022-02-25T18:44:15.000Z
pysces/PyscesModelMap.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
9
2015-05-01T09:28:56.000Z
2020-02-25T14:38:14.000Z
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2022 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
30.984615
87
0.600298
417161fbcd6743685519ca25da425e1b0c2d14f9
5,130
py
Python
djangovakt/storage.py
PaKZer0/django-vakt
9b812322666839c5119403f494161a26c2e5a011
[ "Apache-2.0" ]
1
2020-06-28T07:57:27.000Z
2020-06-28T07:57:27.000Z
djangovakt/storage.py
PaKZer0/django-vakt
9b812322666839c5119403f494161a26c2e5a011
[ "Apache-2.0" ]
null
null
null
djangovakt/storage.py
PaKZer0/django-vakt
9b812322666839c5119403f494161a26c2e5a011
[ "Apache-2.0" ]
1
2019-10-11T08:49:06.000Z
2019-10-11T08:49:06.000Z
# -*- coding: utf-8 -*- __author__ = 'ffuentes' from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q from djangovakt.models import Policy as DjPolicy from vakt import Policy, RulesChecker from vakt.storage.abc import Storage from vakt.exceptions import PolicyExistsError import json imp...
32.0625
92
0.600975
7ea60d5227eee8d0feedc75fc46006fb2aba7063
716
py
Python
nba/migrations/0005_auto_20190109_1502.py
Tobey/betfair
f703f5be227cafaefb640af0c29acb65ed4c1c54
[ "MIT" ]
null
null
null
nba/migrations/0005_auto_20190109_1502.py
Tobey/betfair
f703f5be227cafaefb640af0c29acb65ed4c1c54
[ "MIT" ]
3
2020-02-11T23:38:57.000Z
2021-06-10T21:06:37.000Z
nba/migrations/0005_auto_20190109_1502.py
Tobey/betfair
f703f5be227cafaefb640af0c29acb65ed4c1c54
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2019-01-09 15:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nba', '0004_auto_20190109_1425'), ] operations = [ migrations.AlterField( model_name='game', ...
28.64
123
0.629888
665e74f8c77ff4d2fa891cc0fef1cfdba8bb23ef
579
py
Python
trial.py
pradyunsg/CSE2003-Project
cc16c8a4aa621b2f655f5ccaa096169f403c4a97
[ "MIT" ]
null
null
null
trial.py
pradyunsg/CSE2003-Project
cc16c8a4aa621b2f655f5ccaa096169f403c4a97
[ "MIT" ]
null
null
null
trial.py
pradyunsg/CSE2003-Project
cc16c8a4aa621b2f655f5ccaa096169f403c4a97
[ "MIT" ]
null
null
null
""" """ import satsolver FILENAME = "trail1.sat.txt" def main(): with open(FILENAME) as f: instance = satsolver.Instance.from_file(f) solver = satsolver.SATSolver(instance) solutions = solver.recursive_solve() found_solution = False for satisfying_assignments in solutions: fo...
18.09375
65
0.637306
dbf5fab90eb8bd43a771a0ba6931c2954e8ed69c
826
py
Python
odxtools/parameters/__init__.py
Daimler/odxtools
e904b821d25a3bbfae2f678fbb76d137062f5e77
[ "MIT" ]
11
2021-11-25T12:23:51.000Z
2022-01-21T07:14:43.000Z
odxtools/parameters/__init__.py
Daimler/odxtools
e904b821d25a3bbfae2f678fbb76d137062f5e77
[ "MIT" ]
12
2021-11-12T08:20:48.000Z
2022-01-21T12:46:03.000Z
odxtools/parameters/__init__.py
mercedes-benz/odxtools
b66f8fb02dfc7c015d9eb69b6c1ced1679fc327f
[ "MIT" ]
13
2022-01-25T12:04:35.000Z
2022-03-24T09:43:43.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2022 MBition GmbH from .parameterbase import Parameter from .parameterwithdop import ParameterWithDOP from .codedconstparameter import CodedConstParameter from .dynamicparameter import DynamicParameter from .lengthkeyparameter import LengthKeyParameter from .matchingreq...
37.545455
64
0.884988
38a5819f53f87311f1054aff5be99bea6663e3a8
3,065
py
Python
image_uniqueizer.py
kihaev/image_compresser
c280c28e42da8ffd5ade047e9e311f97994f5242
[ "MIT" ]
null
null
null
image_uniqueizer.py
kihaev/image_compresser
c280c28e42da8ffd5ade047e9e311f97994f5242
[ "MIT" ]
null
null
null
image_uniqueizer.py
kihaev/image_compresser
c280c28e42da8ffd5ade047e9e311f97994f5242
[ "MIT" ]
null
null
null
import uuid import random import os from tkinter import * from PIL import Image class Window(Frame): def __init__(self, master=None, size='400x300'): Frame.__init__(self, master) self.master = master self.master.geometry(size) self.e1 = Entry(self.master) self.e2 = Entry(...
36.488095
82
0.449918
0fc05a010ecef047b9b0000d959735b75e41c550
354
py
Python
setup.py
antonioberben/fieldctl
d970f3d707e71e54a3529fd921a9b454cade5596
[ "Apache-2.0" ]
5
2022-01-05T14:33:32.000Z
2022-01-11T09:25:25.000Z
setup.py
antonioberben/fieldctl
d970f3d707e71e54a3529fd921a9b454cade5596
[ "Apache-2.0" ]
5
2022-01-12T08:42:34.000Z
2022-01-12T08:46:00.000Z
setup.py
antonioberben/fieldctl
d970f3d707e71e54a3529fd921a9b454cade5596
[ "Apache-2.0" ]
null
null
null
from setuptools import setup # This file is used to build the package in your local in order to create the autocomplete files setup( name='fieldctl', version='0.1.0', py_modules=['fieldctl'], install_requires=[ 'Click', ], entry_points={ 'console_scripts': [ 'fieldc...
20.823529
96
0.590395
b0bba198bf59bc852900307cb98aa2c29d7b0073
1,028
py
Python
serverless/pytorch/imgprocessingdetector/nuclio/main.py
104H/cvat
2d29405c31d320dd5aae19dc52eb7caaf3652b5a
[ "Intel", "MIT" ]
null
null
null
serverless/pytorch/imgprocessingdetector/nuclio/main.py
104H/cvat
2d29405c31d320dd5aae19dc52eb7caaf3652b5a
[ "Intel", "MIT" ]
null
null
null
serverless/pytorch/imgprocessingdetector/nuclio/main.py
104H/cvat
2d29405c31d320dd5aae19dc52eb7caaf3652b5a
[ "Intel", "MIT" ]
null
null
null
from model_handler import ModelHandler import json import io import base64 from PIL import Image labels = {0 : "crop", 1 : "weed"} def init_context(context): context.logger.info("Init context... 0%") model = ModelHandler() context.user_data.model_handler = model.infer context.logger.info("Init con...
25.073171
60
0.590467
0cf0170096ab7690d7ae771364d16c4c1a3ba045
289
py
Python
arkesel_python/__init__.py
wilham-lynce/arkesel_python
e1112ccac3a14fe17e37c26dd318c89b3320b7f0
[ "MIT" ]
null
null
null
arkesel_python/__init__.py
wilham-lynce/arkesel_python
e1112ccac3a14fe17e37c26dd318c89b3320b7f0
[ "MIT" ]
null
null
null
arkesel_python/__init__.py
wilham-lynce/arkesel_python
e1112ccac3a14fe17e37c26dd318c89b3320b7f0
[ "MIT" ]
null
null
null
"""Top-level package for arkesel_python.""" __author__ = """Wilham Opoku Danquah""" __email__ = 'wilhamlynce27@gmail.com' __version__ = '0.1.0' from .arkesel_sms import ArkeselSMS from .arkesel_sms import SmsInfo from .arkesel_otp import ArkeselOtp from .arkesel_contacts import Contacts
28.9
43
0.788927
b66e7d866aed6c9368d300ddf808703084eb3ccf
12,640
py
Python
tests/unit/weatherapi25/json_test_responses.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
799
2015-01-03T12:07:57.000Z
2022-03-31T03:59:53.000Z
tests/unit/weatherapi25/json_test_responses.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
279
2015-02-12T16:11:43.000Z
2022-02-14T21:49:03.000Z
tests/unit/weatherapi25/json_test_responses.py
ahertz/pyowm
e7ccb5ec3f86bee0cbb9981070a62988a83a5b3c
[ "MIT" ]
215
2015-01-06T19:07:11.000Z
2022-02-14T21:39:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- OBSERVATION_JSON = '{"coord":{"lon":-0.12574,"lat":51.50853},"sys":{"country":' \ '"GB","sunrise":1378877413,"sunset":1378923812},"weather":[{"id":804,' \ '"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":' \ '"gdps stations","main":{"temp"...
69.834254
126
0.569778
a10788f0614e1e7f878c678b09bf2858be017950
403
py
Python
pacific-factbook/coordinate.py
kaunta/pacific-factbook
ccf3f08c0d6121d852e5dd0319e21e0a9ec44e3d
[ "MIT" ]
5
2020-01-23T04:08:46.000Z
2020-04-02T05:19:34.000Z
pacific-factbook/coordinate.py
kaunta/pacific-factbook
ccf3f08c0d6121d852e5dd0319e21e0a9ec44e3d
[ "MIT" ]
23
2019-11-22T01:56:54.000Z
2020-02-08T23:45:10.000Z
pacific-factbook/coordinate.py
kaunta/pacific-factbook
ccf3f08c0d6121d852e5dd0319e21e0a9ec44e3d
[ "MIT" ]
null
null
null
from typing import NamedTuple import numbers from random import uniform class Coordinate(NamedTuple): latitude: numbers.Real longitude: numbers.Real def generate() -> Coordinate: latitude = uniform(-28.3417, -3.6754) longitude = uniform(153.6868, 180 + 3.6754) if longitude > 180: longitu...
23.705882
61
0.717122
672f23077e95fc54d0cf250b5cbdb74601c23354
26,485
py
Python
nova-19.0.1/nova/scheduler/filter_scheduler.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2019-04-22T06:25:26.000Z
2019-04-22T06:25:26.000Z
nova/scheduler/filter_scheduler.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
nova/scheduler/filter_scheduler.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 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 ...
53.61336
79
0.615896
70ae15a161e92e6a1a0bd3cd169cf506b9c4696e
371
py
Python
mmdet/models/detectors/atss.py
MinliangLin/TSD
d84ddc049d6b18c3a2408c90d2b7dd63b4e2d3a1
[ "Apache-2.0" ]
454
2020-04-17T10:58:36.000Z
2022-03-16T13:04:33.000Z
mmdet/models/detectors/atss.py
MinliangLin/TSD
d84ddc049d6b18c3a2408c90d2b7dd63b4e2d3a1
[ "Apache-2.0" ]
37
2020-04-29T12:37:54.000Z
2022-01-26T21:10:42.000Z
mmdet/models/detectors/atss.py
MinliangLin/TSD
d84ddc049d6b18c3a2408c90d2b7dd63b4e2d3a1
[ "Apache-2.0" ]
61
2020-04-30T04:28:08.000Z
2022-01-26T08:14:13.000Z
from ..registry import DETECTORS from .single_stage import SingleStageDetector @DETECTORS.register_module class ATSS(SingleStageDetector): def __init__( self, backbone, neck, bbox_head, train_cfg=None, test_cfg=None, pretrained=None ): super(ATSS, self).__init__( backbone, neck, bb...
28.538462
87
0.71159
601d59d9f573563a3218ad626e8cf99b0772f26f
1,321
py
Python
utils.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
utils.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
utils.py
eliorav/Population-Genotype-Frequency
11780b182bf417ac10ae86919ee313e39158267d
[ "Apache-2.0" ]
null
null
null
import os import requests from tqdm import tqdm def get_filename_from_path(path): """ :param path :return: file name without type """ return ".".join(path.replace('\\', '/').split('/')[-1].split('.')[:-1]) def mkdir_p(path): """ create folder if not exist :param path """ if n...
28.717391
97
0.601817
1ae20ec25a4bc35aac13f74e5164f434f730812f
802
py
Python
WMIAdventure/backend/WMIAdventure_backend/battle/businesslogic/effects/EmpowerHeal.py
emkarcinos/WMIAdventure
7ca057bb4e4d462b8626d53b66bed86e0125059a
[ "Apache-2.0" ]
2
2021-05-26T15:12:33.000Z
2021-12-09T17:17:19.000Z
WMIAdventure/backend/WMIAdventure_backend/battle/businesslogic/effects/EmpowerHeal.py
emkarcinos/WMIAdventure
7ca057bb4e4d462b8626d53b66bed86e0125059a
[ "Apache-2.0" ]
558
2021-05-27T05:41:23.000Z
2022-02-27T21:50:54.000Z
WMIAdventure/backend/WMIAdventure_backend/battle/businesslogic/effects/EmpowerHeal.py
emkarcinos/WMIAdventure
7ca057bb4e4d462b8626d53b66bed86e0125059a
[ "Apache-2.0" ]
4
2021-05-26T15:09:29.000Z
2022-03-13T15:28:07.000Z
from battle.businesslogic.buffs.ModifierBuff import ModifierBuff from battle.businesslogic.effects.EmpowerCardEffect import EmpowerCardEffect from cards.businesslogic.description_generator.PowerDescription import PowerDescription from cards.models import CardEffect class EmpowerHeal(EmpowerCardEffect): """ Em...
40.1
94
0.774314
67dc3d87837e93ab28de1a6da81fc341e4aae084
270
py
Python
app_catalog/views.py
kfox1111/apps-catalog-ui
52989477718cca05cb07be9a939d8eb5a49e745a
[ "Apache-2.0" ]
null
null
null
app_catalog/views.py
kfox1111/apps-catalog-ui
52989477718cca05cb07be9a939d8eb5a49e745a
[ "Apache-2.0" ]
null
null
null
app_catalog/views.py
kfox1111/apps-catalog-ui
52989477718cca05cb07be9a939d8eb5a49e745a
[ "Apache-2.0" ]
null
null
null
from horizon import views class IndexView(views.APIView): # A very simple class-based view... template_name = 'app_catalog/index.html' def get_data(self, request, context, *args, **kwargs): # Add data to the context here... return context
24.545455
58
0.67037
9b42709c5fc8d78872da8baabb09a8943dcfd44c
9,716
py
Python
quetz/tasks/indexing.py
TheSnakePit/quetz
d63e2f155aa75dfe852b70674b01ab7732d234c2
[ "BSD-3-Clause" ]
40
2020-06-19T14:02:19.000Z
2020-09-01T20:54:41.000Z
quetz/tasks/indexing.py
TheSnakePit/quetz
d63e2f155aa75dfe852b70674b01ab7732d234c2
[ "BSD-3-Clause" ]
58
2020-06-24T12:20:52.000Z
2020-09-07T13:47:26.000Z
quetz/tasks/indexing.py
TheSnakePit/quetz
d63e2f155aa75dfe852b70674b01ab7732d234c2
[ "BSD-3-Clause" ]
16
2020-06-24T11:50:07.000Z
2020-09-06T14:51:33.000Z
# Copyright 2020 Codethink Ltd # Distributed under the terms of the Modified BSD License. import json import logging import numbers import os import tempfile import uuid from datetime import datetime, timezone from pathlib import Path from jinja2 import Environment, PackageLoader, select_autoescape import quetz.conf...
33.853659
86
0.608275
40935173369ad377eeda28c7f280107c38cf0990
879
py
Python
diventi/blog/migrations/0021_auto_20200830_1804.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
2
2019-06-27T16:00:17.000Z
2020-08-14T07:46:05.000Z
diventi/blog/migrations/0021_auto_20200830_1804.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
26
2020-02-15T22:39:35.000Z
2022-02-19T21:09:01.000Z
diventi/blog/migrations/0021_auto_20200830_1804.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
1
2021-11-12T22:30:15.000Z
2021-11-12T22:30:15.000Z
# Generated by Django 2.2.13 on 2020-08-30 16:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0020_auto_20200830_1803'), ] operations = [ migrations.AlterField( model_name='article', name='icon_style',...
36.625
215
0.551763
629884d2038df66f2f13709659ea22e504279de7
801
py
Python
tests/test_docx.py
DataPsycho/filiox
26f46f3f6ef5cf89d703150b13161d80bd6d92c7
[ "MIT" ]
2
2021-11-23T09:20:45.000Z
2021-12-15T12:47:19.000Z
tests/test_docx.py
DataPsycho/filiox
26f46f3f6ef5cf89d703150b13161d80bd6d92c7
[ "MIT" ]
null
null
null
tests/test_docx.py
DataPsycho/filiox
26f46f3f6ef5cf89d703150b13161d80bd6d92c7
[ "MIT" ]
null
null
null
import pytest from docx.document import Document from tests import create_demo_docx from xfilios.docx import DocxHandler class TestDocxHandler: NAME = "demo.docx" @pytest.fixture def subject(self): handler = DocxHandler(document=create_demo_docx(), name=self.NAME) return handler def...
26.7
79
0.674157
fa665674db9ef3e2079a03261c0aab64d0d4cbf4
7,472
py
Python
shapestats/minbc.py
ljwolf/shapestats
54e65ee0f0c5209e90f6b015f30a1c58b7bf687c
[ "Unlicense" ]
5
2018-08-04T10:07:57.000Z
2021-01-09T20:58:28.000Z
shapestats/minbc.py
ljwolf/shapestats
54e65ee0f0c5209e90f6b015f30a1c58b7bf687c
[ "Unlicense" ]
1
2018-08-06T23:38:40.000Z
2018-08-06T23:38:40.000Z
shapestats/minbc.py
ljwolf/shapestats
54e65ee0f0c5209e90f6b015f30a1c58b7bf687c
[ "Unlicense" ]
3
2019-05-25T16:17:08.000Z
2022-02-23T09:42:58.000Z
from math import pi as PI from scipy.spatial import ConvexHull from libpysal.cg import get_angle_between, Ray, is_clockwise import copy import numpy as np import scipy.spatial.distance as dist from warnings import warn as Warn from itertools import cycle import decimal as dec not_clockwise = lambda x: not is_clockwis...
37.928934
81
0.575616
2f6e64de03e1525d65d6ecd860ad4f84efc1b490
36,193
py
Python
speechbrain/nnet/losses.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
speechbrain/nnet/losses.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
speechbrain/nnet/losses.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" Losses for training neural networks. Authors * Mirco Ravanelli 2020 * Samuele Cornell 2020 * Hwidong Na 2020 * Yan Gao 2020 * Titouan Parcollet 2020 """ import math import torch import logging import functools import numpy as np import torch.nn as nn import torch.nn.functional as F from itertools import perm...
32.085993
113
0.605531
c886483f912dbbd742a4bac2f968536dfb516e47
7,599
py
Python
cleverhans/attacks_tfe.py
feedforward/cleverhans
bafccdabd069ff29bc0840457ab164f5c4bc9ee5
[ "MIT" ]
null
null
null
cleverhans/attacks_tfe.py
feedforward/cleverhans
bafccdabd069ff29bc0840457ab164f5c4bc9ee5
[ "MIT" ]
null
null
null
cleverhans/attacks_tfe.py
feedforward/cleverhans
bafccdabd069ff29bc0840457ab164f5c4bc9ee5
[ "MIT" ]
null
null
null
from abc import ABCMeta import numpy as np from six.moves import xrange import warnings import collections import tensorflow as tf from distutils.version import LooseVersion import cleverhans.utils as utils from cleverhans.attacks import Attack from cleverhans.attacks import FastGradientMethod from cleverhans.model im...
41.075676
79
0.615081
c6c052f6de3de82dc96d2421da7184014f85bbb9
4,703
py
Python
pyndl/io.py
dekuenstle/pyndl
5360c0863f21abe77effea770fd1ef027bf4e8b4
[ "MIT" ]
10
2017-03-24T17:59:59.000Z
2022-03-31T08:13:15.000Z
pyndl/io.py
dekuenstle/pyndl
5360c0863f21abe77effea770fd1ef027bf4e8b4
[ "MIT" ]
156
2017-03-23T21:53:21.000Z
2021-09-13T08:31:44.000Z
pyndl/io.py
dekuenstle/pyndl
5360c0863f21abe77effea770fd1ef027bf4e8b4
[ "MIT" ]
4
2018-01-31T15:27:44.000Z
2022-03-03T11:48:35.000Z
""" pyndl.io -------- *pyndl.io* provides functions to create event generators from different sources in order to use them with *pyndl.ndl* to train NDL models or to save existing events from a DataFrame or a list to a file. """ import gzip from collections.abc import Iterator, Iterable import pandas as pd def ev...
30.147436
97
0.605358
dff0567bb052426afe64518f64ee1c955a14cf0d
684
py
Python
CatsVsDogs_saved_model.py
hvauchar/Cats-Vs-Dogs-Conv-Net-classification
7669bdd5fbecbe2ff95411a1bf54258290541b06
[ "MIT" ]
4
2019-07-04T04:13:27.000Z
2021-02-01T09:06:49.000Z
CatsVsDogs_saved_model.py
hvauchar/Cats-Vs-Dogs-Conv-Net-classification
7669bdd5fbecbe2ff95411a1bf54258290541b06
[ "MIT" ]
null
null
null
CatsVsDogs_saved_model.py
hvauchar/Cats-Vs-Dogs-Conv-Net-classification
7669bdd5fbecbe2ff95411a1bf54258290541b06
[ "MIT" ]
1
2022-03-29T12:03:20.000Z
2022-03-29T12:03:20.000Z
import tensorflow as tf model = tf.keras.models.load_model('dogsVscats_tensorboard.model') import matplotlib.pyplot as plt import cv2 import matplotlib.image as mpimg import numpy as np CATOGRTIES = ['Dog','Cat'] def prepare(filepath): IMG_SIZE=100 img_array = cv2.imread(filepath,cv2.IMREAD_GRAYSCALE) new...
34.2
87
0.747076
032c0f0d4af5cba62642918a3be62afe54056035
7,307
py
Python
selfdrive/can/parser.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
null
null
null
selfdrive/can/parser.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
null
null
null
selfdrive/can/parser.py
johnwaynerobot/openpilot
b63de593824562b35e08f15b31a762e76b062640
[ "MIT" ]
1
2018-09-05T16:29:40.000Z
2018-09-05T16:29:40.000Z
import time from collections import defaultdict import numbers from selfdrive.can.libdbc_py import libdbc, ffi class CANParser(object): def __init__(self, dbc_name, signals, checks=[], bus=0, sendcan=False, tcp_addr="127.0.0.1"): self.can_valid = True self.vl = defaultdict(dict) self.ts = defaultdict(di...
29.582996
109
0.591898
74cdd7dd3ea1cdbba38a219f9c20c1dd7c77d5c0
4,999
py
Python
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/get_protected_item.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/get_protected_item.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/recoveryservices/latest/get_protected_item.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
34.958042
148
0.638328
cd1c0eff416bdf20bcc1bb3e2df48f9fb3bbffed
355
py
Python
functions/root-post.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
null
null
null
functions/root-post.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
4
2021-10-16T06:37:28.000Z
2022-01-05T19:49:44.000Z
functions/root-post.py
Lynxtickler/rest-api-terraform
d8b8125de80228a4bee2d8ad4ff7593b77eff121
[ "MIT" ]
1
2021-11-22T14:24:17.000Z
2021-11-22T14:24:17.000Z
import json import shared def lambda_handler(event, context): item_json = json.loads(event['body']) if shared.check_item_exists(item_json['ID']): return shared.create_error(303, 'Resource already exists.') shared.table.put_item(Item=item_json) return shared.response(code=201, body={'message': ...
32.272727
88
0.729577
2427c3d9b27a55b05ce941e68bfb94abcb848d25
5,043
py
Python
prediction.py
gentcys/nba_result_prediction
f363e0c79003d481a820caa5bf93a5e8a50f70a5
[ "MIT" ]
null
null
null
prediction.py
gentcys/nba_result_prediction
f363e0c79003d481a820caa5bf93a5e8a50f70a5
[ "MIT" ]
null
null
null
prediction.py
gentcys/nba_result_prediction
f363e0c79003d481a820caa5bf93a5e8a50f70a5
[ "MIT" ]
null
null
null
import pandas import math import csv import random import numpy from sklearn import linear_model from sklearn.model_selection import cross_val_score # 当每支队伍没有elo等级分时,赋予其基础elo等级分 base_elo = 1600 team_elos = {} team_stats = {} x = [] y = [] folder = 'data' # 根据每支队伍的Micellaneous, Opponent, Team统计数据csv文件进行初始化 def initia...
29.150289
99
0.644458
942bc11da9373b4e6b32862fb1f8dc0d8db6bfcc
5,785
py
Python
api/parsers/functions/__init__.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
7
2015-01-23T17:24:04.000Z
2022-01-12T16:54:24.000Z
api/parsers/functions/__init__.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
18
2017-12-09T01:11:23.000Z
2021-09-22T13:26:24.000Z
api/parsers/functions/__init__.py
radomd92/botjagwar
1dc96600c40041057a9f9afde38c31ca34b8db38
[ "MIT" ]
1
2015-06-22T02:17:55.000Z
2015-06-22T02:17:55.000Z
from api.parsers.constants.mg import CASES, GENDER, NUMBER, DEFINITENESS, POSSESSIVENESS from api.parsers.models.inflection import NounForm, AdjectiveForm, Romanization def parse_one_parameter_template( out_class, template_name='plural of', case_name='', number='s', gender=None...
30.771277
110
0.581677
f88b6e9cbddcb63ed49c2af48650a29542eef52d
180
py
Python
src/panel_components/material/widgets/__init__.py
MarcSkovMadsen/panel-components
ca176f605006165889cbbd3c775d24cdcc4f964d
[ "MIT" ]
5
2020-09-30T03:10:33.000Z
2022-02-04T19:54:58.000Z
src/panel_components/material/widgets/__init__.py
MarcSkovMadsen/panel-components
ca176f605006165889cbbd3c775d24cdcc4f964d
[ "MIT" ]
null
null
null
src/panel_components/material/widgets/__init__.py
MarcSkovMadsen/panel-components
ca176f605006165889cbbd3c775d24cdcc4f964d
[ "MIT" ]
1
2021-11-08T19:00:45.000Z
2021-11-08T19:00:45.000Z
"""# Material Widgets See https://mui.com/api/accordion/ """ from .material_button import MaterialButton from .material_slider import MaterialFloatSlider, MaterialIntSlider
25.714286
68
0.783333
514cfdf14e5cd5353ede9a457a07afb9b8b81d01
289
py
Python
controllers/__init__.py
kashifpk/pyckapps.visit_counter
e9769817b7259422307c382e0dea1ccb2cdd4d5f
[ "Apache-2.0" ]
2
2015-01-11T22:23:58.000Z
2016-05-17T06:57:57.000Z
controllers/__init__.py
kashifpk/pyckapps.visit_counter
e9769817b7259422307c382e0dea1ccb2cdd4d5f
[ "Apache-2.0" ]
31
2015-01-14T11:30:50.000Z
2017-01-31T14:35:48.000Z
temp/newapp_scaffold/controllers/__init__.py
kashifpk/PyCK
11513c6b928d37afcf83de717e8d2f74fce731af
[ "Ruby" ]
null
null
null
from .. import APP_NAME, PROJECT_NAME, APP_BASE from pyramid.events import subscriber from pyramid.events import BeforeRender #@subscriber(BeforeRender) #def add_global(event): # event['PROJECT_NAME'] = PROJECT_NAME # event['APP_NAME'] = APP_NAME # event['APP_BASE'] = APP_BASE
26.272727
47
0.750865
b562c9484930f09942072bf0b0406ae6923d2128
40,141
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_servers_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_servers_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_servers_operations.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.892814
185
0.657482
e8681c2001668f2157bd63471a1fe6b18e12d5b7
71
py
Python
helpers/__init__.py
vamas/DupDetectorML
a0db6f24519f19a72f9bc7ac226d6a37734564ae
[ "CC0-1.0" ]
null
null
null
helpers/__init__.py
vamas/DupDetectorML
a0db6f24519f19a72f9bc7ac226d6a37734564ae
[ "CC0-1.0" ]
null
null
null
helpers/__init__.py
vamas/DupDetectorML
a0db6f24519f19a72f9bc7ac226d6a37734564ae
[ "CC0-1.0" ]
null
null
null
from .helpers import SaveModel, RestoreModel, Normalize, RemoveOutliers
71
71
0.859155
f069ea66e646fb2cabf31f6b70e3ba206c254430
124
py
Python
colosseum/mdps/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
colosseum/mdps/__init__.py
MichelangeloConserva/Colosseum
b0711fd9ce75520deb74cda75c148984a8e4152f
[ "MIT" ]
null
null
null
from typing import Union NodeType = Union[tuple, int] from colosseum.mdps.base_mdp import MDP, ContinuousMDP, EpisodicMDP
20.666667
67
0.806452
8f3a118ed807a4414f37b785ef8670b8d2362148
7,064
py
Python
imagepy/menus/Image/Color/splitandmerge_plgs.py
siyemuxu888/imagepy
a933526483a15da282bacac54608d44d2173beb4
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Image/Color/splitandmerge_plgs.py
siyemuxu888/imagepy
a933526483a15da282bacac54608d44d2173beb4
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Image/Color/splitandmerge_plgs.py
siyemuxu888/imagepy
a933526483a15da282bacac54608d44d2173beb4
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Dec 17 10:49:15 2016 @author: yxl """ from imagepy import IPy import numpy as np from imagepy import ImagePlus from imagepy.ui.canvasframe import CanvasFrame from imagepy.core.manager import WindowsManager from imagepy.core.engine import Simple from skimage import color class...
29.190083
157
0.520243
76a4fcb5f263a8862f57543385581b2c2f6635ec
2,980
py
Python
u1_2d/t_force_b25_t1_l512.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
2
2021-07-29T19:09:30.000Z
2022-01-17T21:13:40.000Z
u1_2d/t_force_b25_t1_l512.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
null
null
null
u1_2d/t_force_b25_t1_l512.py
nftqcd/nthmc
010c70e297c904219e9d8a04cc20b9c75a4b61e5
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as tk import nthmc, ftr, forcetrain, evolve import sys sys.path.append('../lib') import field conf = nthmc.Conf(nbatch=1, nepoch=5, nstepEpoch=1024, nstepMixing=128, nstepPostTrain=1024, stepPerTraj=15, trainDt=False, trajLength=4., nthr=20, nthrIop=2) nthmc.setup(conf) ...
58.431373
158
0.65302
14a8dab5b78b2a1650684669196c95fcca30c655
3,107
py
Python
pyqtgraph/widgets/GroupBox.py
pbmanis/pyqtgraph
3558216be2b50d6b0069c82e51e5a048dad34c73
[ "MIT" ]
150
2018-03-27T16:45:37.000Z
2022-03-30T03:47:56.000Z
pyqtgraph/widgets/GroupBox.py
pbmanis/pyqtgraph
3558216be2b50d6b0069c82e51e5a048dad34c73
[ "MIT" ]
34
2018-09-28T00:01:59.000Z
2022-03-21T15:40:02.000Z
pyqtgraph/widgets/GroupBox.py
pbmanis/pyqtgraph
3558216be2b50d6b0069c82e51e5a048dad34c73
[ "MIT" ]
40
2018-04-06T19:42:21.000Z
2022-01-11T00:34:17.000Z
from ..Qt import QtGui, QtCore from .PathButton import PathButton class GroupBox(QtGui.QGroupBox): """Subclass of QGroupBox that implements collapse handle. """ sigCollapseChanged = QtCore.Signal(object) def __init__(self, *args): QtGui.QGroupBox.__init__(self, *args) self...
33.771739
102
0.607982
9b1b02c352da71ada116ef848b6123155db67b9e
2,208
py
Python
interview/migrations/0001_initial.py
officechristo/interview-schedule
75046247eebc995551bccd79da0f44602d8b3198
[ "MIT" ]
null
null
null
interview/migrations/0001_initial.py
officechristo/interview-schedule
75046247eebc995551bccd79da0f44602d8b3198
[ "MIT" ]
null
null
null
interview/migrations/0001_initial.py
officechristo/interview-schedule
75046247eebc995551bccd79da0f44602d8b3198
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-10-14 11:27 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL)...
38.736842
269
0.581522
ea665575f0e9ff3e4803b9af3d523502b4033050
8,826
py
Python
app/tests/test_main.py
cesnietor/fastapi-app
56b7ecc59052b4a2eafa4645da010d3a14a291b1
[ "MIT" ]
null
null
null
app/tests/test_main.py
cesnietor/fastapi-app
56b7ecc59052b4a2eafa4645da010d3a14a291b1
[ "MIT" ]
null
null
null
app/tests/test_main.py
cesnietor/fastapi-app
56b7ecc59052b4a2eafa4645da010d3a14a291b1
[ "MIT" ]
null
null
null
from fastapi.testclient import TestClient from fastapi import status import pytest from main import app client = TestClient(app) # Test cases for policy_0 # Data comes as [(<description>, <policy_id>, <request>, <expected_status_code>, <expected_reponse>),...] testdata_policy_0 = [ ( "Pass all checks", ...
28.937705
115
0.488103
4aa20f91706b13b4fe206ff9431793bfaec59d13
1,088
py
Python
src/apps/entity_app.py
marloz/sandeliapp
7c66469ae825ffd07adcd479a8ff4d10f496ce4d
[ "MIT" ]
null
null
null
src/apps/entity_app.py
marloz/sandeliapp
7c66469ae825ffd07adcd479a8ff4d10f496ce4d
[ "MIT" ]
null
null
null
src/apps/entity_app.py
marloz/sandeliapp
7c66469ae825ffd07adcd479a8ff4d10f496ce4d
[ "MIT" ]
null
null
null
from src.database.tables import BaseTable from .app_template import AppTemplate from src.database.loader import Loader from src.entities import Entity, AccessLevel import streamlit as st from typing import Optional, Type class EntityApp(AppTemplate): def __init__(self, entity_type: Type[Entity], output_table: B...
32
95
0.712316
a07403b41fff94058c67bddb727e290014835554
716
py
Python
library/shared/content_providers/content_detectors/robot_repair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
library/shared/content_providers/content_detectors/robot_repair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
library/shared/content_providers/content_detectors/robot_repair.py
anderlli0053/SourceIO
3c0c4839939ce698439987ac52154f89ee2f5341
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from pathlib import Path from typing import Dict from .source2_base import Source2DetectorBase from ..content_provider_base import ContentProviderBase from .....library.utils.path_utilities import backwalk_file_resolver class RobotRepairDetector(Source2DetectorBase): @classmethod def scan(cls, path: Path) -...
32.545455
71
0.723464
37940dfa461809f790614be2668249acece3c659
3,831
py
Python
dev/Code/Tools/AzTestScanner/aztest/common.py
kostenickj/lumberyard
e881f3023cc1840650eb7b133e605881d1d4330d
[ "AML" ]
null
null
null
dev/Code/Tools/AzTestScanner/aztest/common.py
kostenickj/lumberyard
e881f3023cc1840650eb7b133e605881d1d4330d
[ "AML" ]
null
null
null
dev/Code/Tools/AzTestScanner/aztest/common.py
kostenickj/lumberyard
e881f3023cc1840650eb7b133e605881d1d4330d
[ "AML" ]
null
null
null
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
33.902655
120
0.704777
17950054f3f06586e5a89057cdf2af80472e2444
312
py
Python
configs/deeplabv3plus/deeplabv3plus_r50-d8_512x512_80k_combinebox.py
myjxm/mmsegmentation
0672643d85b193451e1a980b54bfc9633a94b2f6
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3plus/deeplabv3plus_r50-d8_512x512_80k_combinebox.py
myjxm/mmsegmentation
0672643d85b193451e1a980b54bfc9633a94b2f6
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3plus/deeplabv3plus_r50-d8_512x512_80k_combinebox.py
myjxm/mmsegmentation
0672643d85b193451e1a980b54bfc9633a94b2f6
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/deeplabv3plus_r50-d8-singlecpu.py', '../_base_/datasets/combine.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' ] norm_cfg = dict(type='BN', requires_grad=True) model = dict( decode_head=dict(num_classes=2), auxiliary_head=dict(num_classes=2))
39
90
0.717949
73fe1257149f83be2317992f5472d642dec01a23
751
py
Python
Ch21/s21_01/main.py
Deteriorator/PyQt5-Guide
d34a9659894d279b17369528359844a4ae4aeb20
[ "CC0-1.0" ]
1
2022-02-23T09:58:11.000Z
2022-02-23T09:58:11.000Z
Ch21/s21_01/main.py
Deteriorator/PyQt5-Guide
d34a9659894d279b17369528359844a4ae4aeb20
[ "CC0-1.0" ]
null
null
null
Ch21/s21_01/main.py
Deteriorator/PyQt5-Guide
d34a9659894d279b17369528359844a4ae4aeb20
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QPixmap from PyQt5.QtCore import QThread from Ch21.s21_01.mainwindow import CMainWindow from Ch21.s21_01.ks21_01_rc import * from Ch21.s21_01.splashscreen import CSplashScreen if __name__ == "__main__": app = QApp...
31.291667
66
0.754993
994daa8eb7ed106ef0cdf41f2785193352abcf84
1,976
py
Python
app/main/views.py
JoeshGichon/pitch-app
958ec0a83ed00a69ed51e63bf2c8d2bcdd96dccc
[ "MIT" ]
null
null
null
app/main/views.py
JoeshGichon/pitch-app
958ec0a83ed00a69ed51e63bf2c8d2bcdd96dccc
[ "MIT" ]
null
null
null
app/main/views.py
JoeshGichon/pitch-app
958ec0a83ed00a69ed51e63bf2c8d2bcdd96dccc
[ "MIT" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from . import main from ..models import Pitches,Comments,User from .forms import PitchForm,CommentForm,UpdateProfile from .. import db from flask_login import login_required @main.route("/") def index(): title="Home" return render_template("index...
25.012658
96
0.678138
406028e38f378e9b45b5e453be8ae40b923059a1
9,702
py
Python
darknet_images.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
darknet_images.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
darknet_images.py
beric7/YOLOv4_infrastructure
d5c7ec0296dbe3db656ab6a0259bc709162539d4
[ "Apache-2.0" ]
null
null
null
import argparse import os import glob import random import darknet import time import cv2 import numpy as np import darknet def parser(): parser = argparse.ArgumentParser(description="YOLO Object Detection") parser.add_argument("--input", type=str, default="", help="image...
41.110169
108
0.634508
a2c1f1e21b647fb01f7202f68cabce849cfc6da7
319
py
Python
algoexpert/medium/MoveElementToEnd.py
dawar-s/algo-ds-sol-python
c455bb43dd68e177e5c744383c2d17888f4efe1b
[ "MIT" ]
null
null
null
algoexpert/medium/MoveElementToEnd.py
dawar-s/algo-ds-sol-python
c455bb43dd68e177e5c744383c2d17888f4efe1b
[ "MIT" ]
null
null
null
algoexpert/medium/MoveElementToEnd.py
dawar-s/algo-ds-sol-python
c455bb43dd68e177e5c744383c2d17888f4efe1b
[ "MIT" ]
null
null
null
def moveElementToEnd(array, toMove): i = len(array) - 1 while i > -1 and array[i] == toMove: i -= 1 if i <= 0: return array j = i - 1 while j >= 0: if array[j] == toMove: array[i], array[j] = array[j], array[i] i -= 1 j -= 1 return array
21.266667
51
0.445141
20fdcfe1d3eedb1f4200dfcadabb59d5d1a5ec71
2,696
py
Python
tracker/dmlc_tracker/launcher.py
sparktsao/dmlc-core-m
c57f59c24087888d72ec1481ceefb1f92ab84ee8
[ "Apache-2.0" ]
181
2017-01-29T23:50:25.000Z
2022-01-15T13:43:17.000Z
tracker/dmlc_tracker/launcher.py
sparktsao/dmlc-core-m
c57f59c24087888d72ec1481ceefb1f92ab84ee8
[ "Apache-2.0" ]
33
2017-01-30T00:50:24.000Z
2020-12-19T07:00:56.000Z
tracker/dmlc_tracker/launcher.py
sparktsao/dmlc-core-m
c57f59c24087888d72ec1481ceefb1f92ab84ee8
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
#!/usr/bin/env python # pylint: disable=invalid-name """The container launcher script that launches DMLC with the right env variable.""" import glob import sys import os import subprocess def unzip_archives(ar_list, env): for fname in ar_list: if not os.path.exists(fname): continue if f...
32.878049
84
0.610163
b1f3cffe8e4a49e3117ef4bda7279beee4a39d3e
874
py
Python
setup.py
Perkville/sendwithus_python
563ba0c61694b6f18a366d4753b17889d99dbec2
[ "Apache-2.0" ]
null
null
null
setup.py
Perkville/sendwithus_python
563ba0c61694b6f18a366d4753b17889d99dbec2
[ "Apache-2.0" ]
null
null
null
setup.py
Perkville/sendwithus_python
563ba0c61694b6f18a366d4753b17889d99dbec2
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup from setuptools import find_packages with open('README.md') as fp: long_description = fp.read() setup( name='sendwithus', version='1.5.5', author='sendwithus', author_email='us@sendwithus.com', packages=find_packages(), scripts=[], url='https://github.c...
28.193548
61
0.636156
d4c2313610d529dc63260bf870faa9dea8a7eaa6
3,562
py
Python
official/nlp/modeling/layers/__init__.py
nlpming/models
3cbf0748529d787dd09fa3ed031e557f0ddfa268
[ "Apache-2.0" ]
1
2022-03-30T06:58:18.000Z
2022-03-30T06:58:18.000Z
official/nlp/modeling/layers/__init__.py
nlpming/models
3cbf0748529d787dd09fa3ed031e557f0ddfa268
[ "Apache-2.0" ]
2
2021-08-23T08:08:28.000Z
2021-11-22T12:09:31.000Z
official/nlp/modeling/layers/__init__.py
nlpming/models
3cbf0748529d787dd09fa3ed031e557f0ddfa268
[ "Apache-2.0" ]
1
2021-11-30T14:05:06.000Z
2021-11-30T14:05:06.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
62.491228
99
0.864121
2a88dbb61e73483b6451d02c26b02db6355b0408
46,888
py
Python
tflearn/helpers/trainer.py
skiplane/tflearn_cloud_compatible
84be92f125ce4dd9b0def867b245f755f0699f99
[ "MIT" ]
null
null
null
tflearn/helpers/trainer.py
skiplane/tflearn_cloud_compatible
84be92f125ce4dd9b0def867b245f755f0699f99
[ "MIT" ]
null
null
null
tflearn/helpers/trainer.py
skiplane/tflearn_cloud_compatible
84be92f125ce4dd9b0def867b245f755f0699f99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import re import os import shutil import numpy as np import tensorflow as tf from tensorflow.python.training import optimizer as tf_optimizer import tflearn from .. import callbacks as tf_callbacks from ..config import init_train...
44.233962
147
0.584094
39bbf1110fbdf6e696a02635ad5f9fc5b6c0a956
2,294
py
Python
source/blender/datatoc/datatoc_icon_split_to_png.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
source/blender/datatoc/datatoc_icon_split_to_png.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
source/blender/datatoc/datatoc_icon_split_to_png.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # ...
31.861111
128
0.638622
85b85215ea019043b3f2881957973d446a760d4e
23,914
py
Python
lib/sqlalchemy/orm/instrumentation.py
jmg-duarte/sqlalchemy
47c91d06b56b0a0cf366d3c1f8b6d71a82149e43
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/instrumentation.py
jmg-duarte/sqlalchemy
47c91d06b56b0a0cf366d3c1f8b6d71a82149e43
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/instrumentation.py
jmg-duarte/sqlalchemy
47c91d06b56b0a0cf366d3c1f8b6d71a82149e43
[ "MIT" ]
1
2022-02-28T20:16:29.000Z
2022-02-28T20:16:29.000Z
# orm/instrumentation.py # Copyright (C) 2005-2022 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: allow-untyped-defs, allow-untyped-calls """Defines SQLAlchemy's syst...
32.272605
79
0.650665
e0f78c73f8dd3e21510a1324df6a22cccda4b8d3
519
py
Python
02/2.py
k0mmsussert0d/aoc2021
880da86397c6b3e9377c0b8bbdf72c246c1d2b35
[ "MIT" ]
null
null
null
02/2.py
k0mmsussert0d/aoc2021
880da86397c6b3e9377c0b8bbdf72c246c1d2b35
[ "MIT" ]
null
null
null
02/2.py
k0mmsussert0d/aoc2021
880da86397c6b3e9377c0b8bbdf72c246c1d2b35
[ "MIT" ]
null
null
null
from functools import reduce if __name__ == '__main__': def func(res, line): match line.split(' '): case ['forward', value]: res[0] += int(value) res[1] += res[2] * int(value) case ['up', value]: res[2] -= int(value) case ...
25.95
54
0.450867
5d39baf24f857511dd9fc2b28e0b1dd50236220f
34,437
py
Python
Packs/Legacy/Integrations/FeedTAXII/FeedTAXII.py
stonelionsecurity/content
69e37813e66fde356c600232ed160f4cff0c14a1
[ "MIT" ]
1
2020-04-19T11:05:42.000Z
2020-04-19T11:05:42.000Z
Packs/Legacy/Integrations/FeedTAXII/FeedTAXII.py
stonelionsecurity/content
69e37813e66fde356c600232ed160f4cff0c14a1
[ "MIT" ]
null
null
null
Packs/Legacy/Integrations/FeedTAXII/FeedTAXII.py
stonelionsecurity/content
69e37813e66fde356c600232ed160f4cff0c14a1
[ "MIT" ]
1
2020-05-27T15:26:48.000Z
2020-05-27T15:26:48.000Z
from typing import Dict import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import urllib3 import collections import cabby import requests from lxml import etree import dateutil.parser from bs4 import BeautifulSoup from netaddr import IPAddress from six...
34.23161
127
0.575457
ffc6c8fddbbc5f4a5513ac0ef5a91220f569fe20
8,873
py
Python
supersid/wxsidviewer.py
sberl/supersid-1
6368bc1be2a7e01ec4a8a08baa8a15283d87c8dc
[ "MIT" ]
1
2021-02-12T01:31:09.000Z
2021-02-12T01:31:09.000Z
supersid/wxsidviewer.py
sberl/supersid-1
6368bc1be2a7e01ec4a8a08baa8a15283d87c8dc
[ "MIT" ]
null
null
null
supersid/wxsidviewer.py
sberl/supersid-1
6368bc1be2a7e01ec4a8a08baa8a15283d87c8dc
[ "MIT" ]
null
null
null
""" Class wxSidViewer implements a graphical user interface for SID on wxPython. About Threads and wxPython http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/ Each Viewer must implement: - __init__(): all initializations - run(): main loop to get user input - close(): cleaning up - status_display(): d...
36.817427
116
0.585146
8a44b94ce2534a40deece8a411efb365fed9c27e
6,926
py
Python
language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
null
null
null
language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
1
2018-04-06T19:51:23.000Z
2018-04-06T19:51:23.000Z
language/google/cloud/language_v1/gapic/transports/language_service_grpc_transport.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.236559
91
0.658244
c3458a467335a4507c86ef5db900bab78cfe714d
550
py
Python
bids/analysis/transformations/__init__.py
kdestasio/pybids
9043bdc11f209608245a47d9033f813ffc3c1fa6
[ "MIT" ]
null
null
null
bids/analysis/transformations/__init__.py
kdestasio/pybids
9043bdc11f209608245a47d9033f813ffc3c1fa6
[ "MIT" ]
null
null
null
bids/analysis/transformations/__init__.py
kdestasio/pybids
9043bdc11f209608245a47d9033f813ffc3c1fa6
[ "MIT" ]
null
null
null
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_, not_, demean, convolve_HRF) from .munge import (split, rename, assign, copy, factor, filter, select, remove, replace, to_dense) __all__ = [ 'and_', 'assign', 'convolve_HRF', 'copy',...
19.642857
79
0.529091
1fd4bc56ebdda78ffa2623ff4bb8d9c5d09dd345
1,675
py
Python
a10sdk/core/classification/classification_ip_list_ipv6.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/classification/classification_ip_list_ipv6.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/classification/classification_ip_list_ipv6.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class Ipv6(A10BaseClass): """Class Description:: Add IPv6 address range to the current IP list. Class ipv6 supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param ipv6_s...
38.953488
171
0.65194
76a4757f597ac9461a772a5549cf2a3adb2262b3
363
py
Python
ports/swm320/gbk2utf.py
Synwit-Co-Ltd/micropython
802337c5361a8c48b418aea38c27f2aa9731a053
[ "MIT" ]
null
null
null
ports/swm320/gbk2utf.py
Synwit-Co-Ltd/micropython
802337c5361a8c48b418aea38c27f2aa9731a053
[ "MIT" ]
null
null
null
ports/swm320/gbk2utf.py
Synwit-Co-Ltd/micropython
802337c5361a8c48b418aea38c27f2aa9731a053
[ "MIT" ]
null
null
null
#! python3 import os for dirpath, dirnames, filenames in os.walk('chip'): for filename in filenames: filename = f'{dirpath}\\{filename}' try: text = open(filename, 'r', encoding='gbk').read() except Exception as e: print(f'{filename:36s} open fail') else: open(filename, 'w', encoding='utf-8').writ...
20.166667
52
0.647383
5a55619d6fe4e33a3f5dbe71f024af02a2d814c0
1,436
py
Python
tests/test_site.py
gitter-badger/court-scraper
f89b86d07d39d99c8c123717227fbc773d4933c3
[ "0BSD" ]
null
null
null
tests/test_site.py
gitter-badger/court-scraper
f89b86d07d39d99c8c123717227fbc773d4933c3
[ "0BSD" ]
null
null
null
tests/test_site.py
gitter-badger/court-scraper
f89b86d07d39d99c8c123717227fbc773d4933c3
[ "0BSD" ]
null
null
null
import pytest from court_scraper import Site from .conftest import CAPTCHA_API_KEY, update_test_configs @pytest.mark.parametrize("place_id,site_class", [ ("ga_dekalb", "Site"), ("ok_tulsa", "Site"), ("wi_milwaukee", "Site"), ]) @pytest.mark.usefixtures('set_env', 'create_scraper_dir', 'create_config') d...
28.72
74
0.721448
3508d4cdaae331a49800a62b588f7af320616a3b
8,961
py
Python
SelectiveReminding/Tester_lastrun.py
NCMlab/CogntiveTasksOnline
02e2bdb2b54a96b609fd5658cac4323322f183f0
[ "MIT" ]
5
2019-06-20T03:27:55.000Z
2022-03-06T07:31:36.000Z
SelectiveReminding/Tester_lastrun.py
NCMlab/CogntiveTasksOnline
02e2bdb2b54a96b609fd5658cac4323322f183f0
[ "MIT" ]
9
2018-10-23T02:11:00.000Z
2019-07-03T15:29:07.000Z
SelectiveReminding/Tester_lastrun.py
NCMlab/CogntiveTasksOnline
02e2bdb2b54a96b609fd5658cac4323322f183f0
[ "MIT" ]
2
2020-08-24T13:55:57.000Z
2022-03-06T07:31:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy3 Experiment Builder (v3.1.0), on Wed Jul 24 13:25:31 2019 If you publish work using this script please cite the PsychoPy publications: Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of N...
41.105505
108
0.688986
c1f632fb0af17e0da3dd4dafb51d769967a270a6
23,233
py
Python
attnGAN/trainer.py
jmuddappa/tattoo-gan-erator
7f26c39d16f4cf1bef997990297913029e40cb8f
[ "MIT" ]
4
2019-09-21T15:49:31.000Z
2020-12-10T19:32:37.000Z
attnGAN/trainer.py
jmuddappa/tattoo-gan-erator
7f26c39d16f4cf1bef997990297913029e40cb8f
[ "MIT" ]
6
2019-06-27T01:37:23.000Z
2022-03-11T23:51:09.000Z
attnGAN/trainer.py
jmuddappa/tattoo-gan-erator
7f26c39d16f4cf1bef997990297913029e40cb8f
[ "MIT" ]
2
2019-10-18T15:33:01.000Z
2021-03-18T11:51:56.000Z
from __future__ import print_function from six.moves import range import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable import torch.backends.cudnn as cudnn from PIL import Image from .miscc.config import cfg from .miscc.utils import mkdir_p from .miscc.utils import build...
43.103896
91
0.473766
3320d52b2a4fdde75cf1ed4c532f5a13db7cb1be
9,197
py
Python
resqs/sts/responses.py
UMass-Rescue/moto
3aa52aca28c622be9708da5fd31a8c8b92801634
[ "Apache-2.0" ]
null
null
null
resqs/sts/responses.py
UMass-Rescue/moto
3aa52aca28c622be9708da5fd31a8c8b92801634
[ "Apache-2.0" ]
null
null
null
resqs/sts/responses.py
UMass-Rescue/moto
3aa52aca28c622be9708da5fd31a8c8b92801634
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from resqs.core.responses import BaseResponse from resqs.core import ACCOUNT_ID from resqs.iam import iam_backend from .exceptions import STSValidationError from .models import sts_backend MAX_FEDERATION_TOKEN_POLICY_LENGTH = 2048 class TokenResponse(BaseResponse): def ge...
41.995434
371
0.715233
68cb80e484fb308f4257bdb844614c293e225a94
8,390
py
Python
brownie/_gui/source.py
agbilotia1998/brownie
a00d82ce049a3360ef7be233be8d8e2b49356a9b
[ "MIT" ]
null
null
null
brownie/_gui/source.py
agbilotia1998/brownie
a00d82ce049a3360ef7be233be8d8e2b49356a9b
[ "MIT" ]
null
null
null
brownie/_gui/source.py
agbilotia1998/brownie
a00d82ce049a3360ef7be233be8d8e2b49356a9b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import re import tkinter as tk import tkinter.font as tkFont from pathlib import Path from tkinter import ttk from brownie.project.sources import is_inside_offset from .bases import SelectBox from .styles import TEXT_COLORS, TEXT_STYLE class SourceNoteBook(ttk.Notebook): def __init__(self, p...
32.645914
94
0.574851
90769bbd4167cd07e607e6abeb1c140d647b462b
979
py
Python
test/functional_requirements/volume/UNMOUNT_VOL_NOT_EXIST_ERROR.py
iljoongkr/poseidonos
01ed7c323c4f6dbd99970f4b036ade2f0a4e4383
[ "BSD-3-Clause" ]
38
2021-04-06T03:20:55.000Z
2022-03-02T09:33:28.000Z
test/functional_requirements/volume/UNMOUNT_VOL_NOT_EXIST_ERROR.py
gye-ul/poseidonos
bce8fe2cd1f36ede8647446ecc4cf8a9749e6918
[ "BSD-3-Clause" ]
19
2021-04-08T02:27:44.000Z
2022-03-23T00:59:04.000Z
test/functional_requirements/volume/UNMOUNT_VOL_NOT_EXIST_ERROR.py
gye-ul/poseidonos
bce8fe2cd1f36ede8647446ecc4cf8a9749e6918
[ "BSD-3-Clause" ]
28
2021-04-08T04:39:18.000Z
2022-03-24T05:56:00.000Z
#!/usr/bin/env python3 import subprocess import os import sys import json sys.path.append("../") sys.path.append("../../system/lib/") sys.path.append("../array/") import json_parser import pos import cli import api import test_result import MOUNT_VOL_BASIC_1 ARRAYNAME = MOUNT_VOL_BASIC_1.ARRAYNAME def clear_result()...
23.878049
74
0.679265
3677be8d10a61464705e68fec1ad5b4adefb4227
9,372
py
Python
batch/batch/utils.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
1
2022-02-10T18:39:56.000Z
2022-02-10T18:39:56.000Z
batch/batch/utils.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
46
2020-11-02T02:23:14.000Z
2022-03-24T21:26:28.000Z
batch/batch/utils.py
FINNGEN/hail
03fabf5dad71415aeca641ef1618e5352639d683
[ "MIT" ]
1
2021-05-19T16:05:26.000Z
2021-05-19T16:05:26.000Z
import logging import math import json import secrets from aiohttp import web from functools import wraps from collections import deque from gear import maybe_parse_bearer_header from hailtop.utils import secret_alnum_string from .globals import RESERVED_STORAGE_GB_PER_CORE log = logging.getLogger('utils') def aut...
29.564669
117
0.709667
0fe63ea3b0084f09c9229278e06cad9c68a28a99
3,802
py
Python
tests/test_dfs0.py
laurafroelich/py-dhi-dfs
a12fa8caa21da1080a40833634d2d1a39125dbde
[ "BSD-3-Clause" ]
null
null
null
tests/test_dfs0.py
laurafroelich/py-dhi-dfs
a12fa8caa21da1080a40833634d2d1a39125dbde
[ "BSD-3-Clause" ]
null
null
null
tests/test_dfs0.py
laurafroelich/py-dhi-dfs
a12fa8caa21da1080a40833634d2d1a39125dbde
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np import datetime from mikeio import dfs0 as dfs0 from mikeio.eum import TimeStep from datetime import timedelta def test_simple_create(): dfs0File = r"simple.dfs0" data = [] nt = 100 d = np.random.random([nt]) data.append(d) dfs = dfs0.dfs0() dfs.create(fil...
20.775956
81
0.627038
09de6bf0b34245d92eb128a159fc18ff40758826
2,615
py
Python
model_zoo/bert/src/cluener_evaluation.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
1
2020-06-20T06:22:41.000Z
2020-06-20T06:22:41.000Z
model_zoo/bert/src/cluener_evaluation.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
model_zoo/bert/src/cluener_evaluation.py
ZephyrChenzf/mindspore
8f191847cf71e12715ced96bc3575914f980127a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
35.337838
102
0.647036
54f2fc82491f0359adb737b75e33ed5b78e13545
1,427
py
Python
MainMenu.py
AndersSun/pygame-puyo
beafef4549f62981bbf76b5e9a60b97d61e56bb8
[ "Apache-2.0" ]
2
2022-02-07T05:51:20.000Z
2022-02-10T01:31:49.000Z
MainMenu.py
AndersSun/pygame-puyo
beafef4549f62981bbf76b5e9a60b97d61e56bb8
[ "Apache-2.0" ]
null
null
null
MainMenu.py
AndersSun/pygame-puyo
beafef4549f62981bbf76b5e9a60b97d61e56bb8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pygame as pg from GameMenu import GameMenu from PuyoAnima import load_image from Contants import * from PuyoAnima import loadBgImg """ puyo """ class MainMenu: def __init__(self, screen): """ """ self.screen = screen self.command = None def one...
27.442308
75
0.532586
22bcb29b345ab0433bb21951813a938d94b86082
407
py
Python
backend/agileevac_31534/wsgi.py
crowdbotics-apps/agileevac-31534
e67ef824ed6c72b58abbe501107cff8e589018b5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/agileevac_31534/wsgi.py
crowdbotics-apps/agileevac-31534
e67ef824ed6c72b58abbe501107cff8e589018b5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/agileevac_31534/wsgi.py
crowdbotics-apps/agileevac-31534
e67ef824ed6c72b58abbe501107cff8e589018b5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for agileevac_31534 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
23.941176
78
0.793612
73694dee21bb0aea90e9c2fc81dd9dec4bef38bd
461
py
Python
sort/insertSort.py
QMHTMY/DataStructurePy
aede275f2f932dedce2a9dc0e7b36e4d31827c69
[ "Apache-2.0" ]
null
null
null
sort/insertSort.py
QMHTMY/DataStructurePy
aede275f2f932dedce2a9dc0e7b36e4d31827c69
[ "Apache-2.0" ]
null
null
null
sort/insertSort.py
QMHTMY/DataStructurePy
aede275f2f932dedce2a9dc0e7b36e4d31827c69
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """插入排序 始终在开始处维持一个排序队列 """ def insertSort(alist): if alist is None: return alist for index in range(1, len(alist)): pos = index current = alist[pos] while pos > 0 and current < alist[pos - 1]: alist[pos] = alist[pos - 1] pos -= 1 ...
19.208333
51
0.546638
b8ded7a698ce165fb22772d43394e4cb3d506d57
7,690
py
Python
tests/integration/shell/test_runner.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
5
2018-05-01T20:51:14.000Z
2021-11-09T05:43:00.000Z
tests/integration/shell/test_runner.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-04-15T22:17:42.000Z
2016-03-22T08:46:27.000Z
tests/integration/shell/test_runner.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
7
2017-09-29T18:49:53.000Z
2021-11-09T05:42:49.000Z
# -*- coding: utf-8 -*- ''' Tests for the salt-run command ''' # Import Python libs from __future__ import absolute_import import os import shutil # Import Salt Testing libs from tests.support.runtests import RUNTIME_VARS from tests.integration.utils import testprogram from tests.support.case import ShellCase from t...
35.114155
130
0.590637
829d9e1e7b9de20da25f156d17766574750bbdad
2,842
py
Python
lib/min_interval_posets/extremal_DAG.py
robinbelton/min_interval_posets
52d9ca5504aab15531be892e10bb99b67812dd95
[ "MIT" ]
1
2018-12-28T20:57:49.000Z
2018-12-28T20:57:49.000Z
lib/min_interval_posets/extremal_DAG.py
robinbelton/min_interval_posets
52d9ca5504aab15531be892e10bb99b67812dd95
[ "MIT" ]
null
null
null
lib/min_interval_posets/extremal_DAG.py
robinbelton/min_interval_posets
52d9ca5504aab15531be892e10bb99b67812dd95
[ "MIT" ]
3
2019-01-17T21:10:15.000Z
2021-04-02T15:15:35.000Z
# The MIT License (MIT) # # Copyright (c) 2021 Robin Belton # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modi...
49
162
0.718508
40d0cdec15d5ab8684f80fa3b3194d00c8f3aa04
6,670
py
Python
deuce/drivers/disk/diskstoragedriver.py
jc7998/deuce
095f5c5d1ec9b3e7f33be81fd1b4faa86460317b
[ "Apache-2.0" ]
null
null
null
deuce/drivers/disk/diskstoragedriver.py
jc7998/deuce
095f5c5d1ec9b3e7f33be81fd1b4faa86460317b
[ "Apache-2.0" ]
null
null
null
deuce/drivers/disk/diskstoragedriver.py
jc7998/deuce
095f5c5d1ec9b3e7f33be81fd1b4faa86460317b
[ "Apache-2.0" ]
null
null
null
import io import os import os.path import shutil import deuce from deuce import conf from deuce.drivers.blockstoragedriver import BlockStorageDriver from deuce.util import log logger = log.getLogger(__name__) class DiskStorageDriver(BlockStorageDriver): """A driver for storing blocks onto local disk IMPO...
31.168224
74
0.584558
f886a7903143b675db2e3c4ae892cf7e79d14480
1,498
py
Python
Dangerous/Golismero/tools/theHarvester/discovery/jigsaw.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/tools/theHarvester/discovery/jigsaw.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/tools/theHarvester/discovery/jigsaw.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
1
2018-07-04T18:35:16.000Z
2018-07-04T18:35:16.000Z
import string import httplib, sys import myparser import re from search_results import * class search_jigsaw: def __init__(self,word,options): self.word=word.replace(' ', '%20') self.last_results=u"" self.total_results=u"" self.server="www.jigsaw.com" self.hostname="www.jigsaw.com" self.userAgent="(Mozill...
26.75
103
0.714286
68fe6e214c66b733836f43a27aa888501c94c797
7,887
py
Python
tagulous/models/descriptors.py
dany-nonstop/django-tagulous
9efab264422d0ec1787f1e7bea6d2d397f0d898c
[ "Apache-2.0" ]
null
null
null
tagulous/models/descriptors.py
dany-nonstop/django-tagulous
9efab264422d0ec1787f1e7bea6d2d397f0d898c
[ "Apache-2.0" ]
null
null
null
tagulous/models/descriptors.py
dany-nonstop/django-tagulous
9efab264422d0ec1787f1e7bea6d2d397f0d898c
[ "Apache-2.0" ]
null
null
null
""" Tagulous model field descriptors When a model has a SingleTagField or TagField, they are replaced with these descriptors during the ``contribute_to_class`` phase. Their main purposes is to act as getter/setters and pass data to and from manager instances. """ from __future__ import unicode_literals import collec...
34.291304
87
0.610118
ecd4b4ace596745779930949d9c8353122724cc3
4,731
py
Python
main.py
paeber/m5hamote
c48086e780d50d6abd19488cb6bcbc82b9fe606d
[ "MIT" ]
3
2021-04-09T20:38:48.000Z
2022-02-27T00:47:50.000Z
main.py
paeber/m5hamote
c48086e780d50d6abd19488cb6bcbc82b9fe606d
[ "MIT" ]
1
2021-06-23T08:34:49.000Z
2021-07-08T23:14:27.000Z
main.py
paeber/m5hamote
c48086e780d50d6abd19488cb6bcbc82b9fe606d
[ "MIT" ]
1
2021-06-01T05:14:23.000Z
2021-06-01T05:14:23.000Z
################################################## ## M5Hamote - A HomeAssistant remote on M5Paper ################################################## ## Author: @paeber ## Github: https://github.com/paeber/m5paper-homeassistant-remote ## Copyright: Copyright 2021, PaEber Electronics ## Version: 0.0.1 ## Status: alpha #...
30.921569
147
0.677658
bd7dd4ec3676ab6b00944ae9f701e55a99867b0f
1,463
py
Python
list-forks.py
k1025610/homework-scientific-computing
5cfeaf5d87174b819518ae82d8590af31736ae7a
[ "MIT" ]
3
2020-03-26T10:56:18.000Z
2020-03-31T07:10:35.000Z
list-forks.py
Bokubst/homework-scientific-computing
4a7e1f896ad19ed55260a584bee2d6d6521de78b
[ "MIT" ]
1
2020-03-24T19:30:51.000Z
2020-03-24T19:30:51.000Z
list-forks.py
Bokubst/homework-scientific-computing
4a7e1f896ad19ed55260a584bee2d6d6521de78b
[ "MIT" ]
17
2020-03-05T12:59:45.000Z
2020-04-29T21:14:35.000Z
#!/usr/bin/python3 """List all forks of the homework repository or add forks as Git remotes.""" import requests import argparse import subprocess GH_ACCOUNT = 'inwe-boku' GH_REPO = 'homework-scientific-computing' GH_API_URI = 'https://api.github.com/repos/{}/{}/forks' def main(mode): r = requests.get(GH_API_UR...
30.479167
76
0.585099
34d97275b81c686513f22582232c54e4dea49314
531
py
Python
examples/flowfilter.py
BitJetKit/mitmproxy
11d266419c29ca26a4671f8170b0c36c32036389
[ "MIT" ]
9
2016-11-20T02:18:18.000Z
2021-07-27T00:25:13.000Z
examples/flowfilter.py
BitJetKit/mitmproxy
11d266419c29ca26a4671f8170b0c36c32036389
[ "MIT" ]
1
2021-09-19T06:47:16.000Z
2021-09-19T06:47:16.000Z
examples/flowfilter.py
BitJetKit/mitmproxy
11d266419c29ca26a4671f8170b0c36c32036389
[ "MIT" ]
15
2016-12-22T15:15:47.000Z
2021-09-19T06:47:02.000Z
# This scripts demonstrates how to use mitmproxy's filter pattern in scripts. # Usage: mitmdump -s "flowfilter.py FILTER" import sys from mitmproxy import flowfilter class Filter: def __init__(self, spec): self.filter = flowfilter.parse(spec) def response(self, flow): if flowfilter.match(sel...
24.136364
77
0.653484
3a6d2c75a390a9b751716a8efe9e09d65215422a
315
py
Python
vertx-web/src/test/sockjs-protocol/ws4py/server/handler/tornadohandler.py
nutsjian/vertx-web
4b304f8bfb3d9943e85c5bc26626f0c25dfff4f5
[ "Apache-2.0" ]
1
2020-02-25T13:30:18.000Z
2020-02-25T13:30:18.000Z
vertx-web/src/test/sockjs-protocol/ws4py/server/handler/tornadohandler.py
nutsjian/vertx-web
4b304f8bfb3d9943e85c5bc26626f0c25dfff4f5
[ "Apache-2.0" ]
1
2017-03-26T20:50:02.000Z
2017-03-26T20:50:02.000Z
vertx-web/src/test/sockjs-protocol/ws4py/server/handler/tornadohandler.py
nutsjian/vertx-web
4b304f8bfb3d9943e85c5bc26626f0c25dfff4f5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import tornado.ioloop import tornado.web from tornado.websocket import WebSocketHandler class EchoWebSocket(WebSocketHandler): def on_message(self, message): binary = self.ws_connection._frame_opcode == 0x2 self.ws_connection.write_message(message, binary)
28.636364
57
0.720635
0570e00acc9a6126bd2b1296825a4a2ef67335da
955
py
Python
tests/whois/mock.py
hile/netlookup
d15409450d5c73293121dfb1cadade53373320dc
[ "PSF-2.0" ]
null
null
null
tests/whois/mock.py
hile/netlookup
d15409450d5c73293121dfb1cadade53373320dc
[ "PSF-2.0" ]
null
null
null
tests/whois/mock.py
hile/netlookup
d15409450d5c73293121dfb1cadade53373320dc
[ "PSF-2.0" ]
null
null
null
""" Mock loaders for whois test data """ from pathlib import Path from netlookup.whois.lookup import WhoisAddressLookup from netlookup.whois.response import WhoisQueryResponse TEST_DATA = Path(__file__).parent.joinpath('data') TEST_INETNUM_LINE = 'inetnum: 1.2.3.0 - 1.2.3.255' TEST_CACHE = TEST_DATA.joinpath('cache...
21.704545
66
0.71623
1122db4e975cd50671f940b2af74da86cae4f556
1,746
py
Python
src/masonite/commands/PresetCommand.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
null
null
null
src/masonite/commands/PresetCommand.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
1
2020-10-26T12:33:05.000Z
2020-10-26T12:33:05.000Z
src/masonite/commands/PresetCommand.py
Abeautifulsnow/masonite
f0ebb5ca05f5d88f21264e1cd0934435bd0a8791
[ "MIT" ]
null
null
null
"""New Preset System Command.""" from cleo import Command from ..commands.presets.React import React from ..commands.presets.Vue import Vue from ..commands.presets.Bootstrap import Bootstrap from ..commands.presets.Remove import Remove class PresetCommand(Command): """ Swap the front-end scaffolding for the a...
33.576923
88
0.636884
501fac121c5472317f2195aa163073371e80224c
2,328
py
Python
setup.py
ph00lt0/django-no-floc
f4a895f23a5f0b2c6a4043e3f5675cfc60aa66a7
[ "MIT" ]
2
2021-04-10T11:44:30.000Z
2021-05-12T22:36:24.000Z
setup.py
ph00lt0/django-no-floc
f4a895f23a5f0b2c6a4043e3f5675cfc60aa66a7
[ "MIT" ]
null
null
null
setup.py
ph00lt0/django-no-floc
f4a895f23a5f0b2c6a4043e3f5675cfc60aa66a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from no_floc/__init__.py""" filename = os.path.join(os.path.dirname(__file__), *fi...
29.846154
78
0.616409
68ffb5e0783f08ae23c5a3461cd78a4b3b8ffd45
10,889
py
Python
s2s_svgatts_color.py
8day/svg2ssa
2ee849ec6c9eb8f6fc0a5a480633b56e91043cdc
[ "BSD-3-Clause" ]
11
2016-03-13T15:54:15.000Z
2021-02-21T09:16:46.000Z
s2s_svgatts_color.py
8day/svg2ssa
2ee849ec6c9eb8f6fc0a5a480633b56e91043cdc
[ "BSD-3-Clause" ]
2
2021-07-02T17:49:59.000Z
2021-12-03T15:19:58.000Z
s2s_svgatts_color.py
8day/svg2ssa
2ee849ec6c9eb8f6fc0a5a480633b56e91043cdc
[ "BSD-3-Clause" ]
1
2016-07-18T09:17:30.000Z
2016-07-18T09:17:30.000Z
import re from s2s_core import SVGAttribute, SVGTypeError class SVGColor(SVGAttribute): """Class for SVG 'color' attribute. Value: <color> | inherit Initial: depends on user agent Inherited: yes """ color_keywords = {'aliceblue': ('FF', 'F8', 'F0'), ...
45.752101
142
0.341813
6cdaf3922cd40c0ba0ba879f1f8020b2e792d080
2,164
py
Python
contest/tasks.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
1
2020-11-17T13:08:07.000Z
2020-11-17T13:08:07.000Z
contest/tasks.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
null
null
null
contest/tasks.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
null
null
null
from threading import Thread from django.db import transaction from problem.tasks import judge_submission_on_problem from submission.models import Submission from submission.util import SubmissionStatus from .models import Contest, ContestParticipant from .statistics import invalidate_contest, invalidate_contest_part...
40.830189
102
0.713494
b6e70ba6ae36c5cf695aca0b124a469dac67720f
14,727
py
Python
src/backend/stats_scripts/accuracy.py
WormBase/acknowledge
c8bc48c7f8f933988b30b71f746caab4cf82256a
[ "MIT" ]
null
null
null
src/backend/stats_scripts/accuracy.py
WormBase/acknowledge
c8bc48c7f8f933988b30b71f746caab4cf82256a
[ "MIT" ]
2
2022-03-24T00:57:55.000Z
2022-03-28T13:43:57.000Z
src/backend/stats_scripts/accuracy.py
WormBase/acknowledge
c8bc48c7f8f933988b30b71f746caab4cf82256a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from src.backend.common.nttxtraction import * from src.backend.common.dbmanager import DBManager import numpy as np logger = logging.getLogger(__name__) def main(): parser = argparse.ArgumentParser(description="Find new documents in WormBase collection and pre-populate da...
51.855634
137
0.657636
31c23cda7fd1e2ab137393472ed032e1b582cc60
1,990
py
Python
bowling.py
Anand911/LIVE-CRICKET-SCOREBOARD
2f4def3b1f51208c6d97ba5a6b5449f0320e6036
[ "MIT" ]
null
null
null
bowling.py
Anand911/LIVE-CRICKET-SCOREBOARD
2f4def3b1f51208c6d97ba5a6b5449f0320e6036
[ "MIT" ]
null
null
null
bowling.py
Anand911/LIVE-CRICKET-SCOREBOARD
2f4def3b1f51208c6d97ba5a6b5449f0320e6036
[ "MIT" ]
null
null
null
class bowling: def __init__(self,bname): self.b_stats={'bowler':bname,'over':0,'maiden':0,'wickets':0,'runs':0,'econ':0.0,'status':True} self.bname=bname self.overs = 0 self.runs_conceded = 0 self.wickets = 0 self.maiden=0 self.economy=0.0 self.status...
30.151515
103
0.552764
5f1d183469b387f86066b1093bb65af2f93cf98a
846
py
Python
crypto/keys.py
mahfuzali/AzureRSAPy
611eaab22c3cbdba195342f8062b44e852879737
[ "MIT" ]
null
null
null
crypto/keys.py
mahfuzali/AzureRSAPy
611eaab22c3cbdba195342f8062b44e852879737
[ "MIT" ]
null
null
null
crypto/keys.py
mahfuzali/AzureRSAPy
611eaab22c3cbdba195342f8062b44e852879737
[ "MIT" ]
null
null
null
from Cryptodome.PublicKey import RSA class Key: def generate_keys(self): generator = RSA.generate(4096, e=65537) publicKey = generator.publickey().exportKey("PEM") privateKey = generator.exportKey("PEM") return {'publicKey': publicKey, 'privateKey': privateKey} def read_key(se...
26.4375
65
0.536643
d21af61b67539dd91a30416045a2011319231def
7,781
py
Python
docs/conf.py
rafaelpleite/Nano
29fb284077794aa60ed46a6d03dcf0c1d164d6fb
[ "MIT" ]
null
null
null
docs/conf.py
rafaelpleite/Nano
29fb284077794aa60ed46a6d03dcf0c1d164d6fb
[ "MIT" ]
null
null
null
docs/conf.py
rafaelpleite/Nano
29fb284077794aa60ed46a6d03dcf0c1d164d6fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Nano documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a de...
31.759184
87
0.706207
f6fa50ab9078aecf83c16af63647f98d64bc3aa7
106
py
Python
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
3
2020-10-20T00:37:59.000Z
2021-07-17T12:59:52.000Z
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
null
null
null
super_material/__init__.py
pleroux0/super_material
b64d74afdeab7639dd1b220f8b23ade22d87c481
[ "BSD-2-Clause" ]
2
2020-10-02T14:31:07.000Z
2021-08-15T10:00:29.000Z
__version__ = "1.0.0a" __author__ = "Paul le Roux" from .conductivity import * from .gap_energy import *
17.666667
27
0.726415
60f7c4e7726fb52e60f29ad261c21b8926b755c1
5,305
py
Python
genweb/scholarship/content/scholarship.py
UPCnet/genweb.scholarship
8661e2271dc3489934de5330ebfdcbd9df439991
[ "MIT" ]
null
null
null
genweb/scholarship/content/scholarship.py
UPCnet/genweb.scholarship
8661e2271dc3489934de5330ebfdcbd9df439991
[ "MIT" ]
null
null
null
genweb/scholarship/content/scholarship.py
UPCnet/genweb.scholarship
8661e2271dc3489934de5330ebfdcbd9df439991
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from five import grok from genweb.core.utils import pref_lang from genweb.scholarship import _ from genweb.scholarship.z3cwidget import FieldsetFieldWidget from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from plone import api from plone.app.textfield import RichText from ...
23.683036
77
0.623374
e0456186aeeff3e24cebacb889167a719583232b
13,191
py
Python
test/test_replica_set_client.py
johnjdailey/mongo-python-driver
29960237dcdd9d90402d6c76c4296aec3d01d3fc
[ "Apache-2.0" ]
1
2020-08-04T08:30:25.000Z
2020-08-04T08:30:25.000Z
test/test_replica_set_client.py
johnjdailey/mongo-python-driver
29960237dcdd9d90402d6c76c4296aec3d01d3fc
[ "Apache-2.0" ]
null
null
null
test/test_replica_set_client.py
johnjdailey/mongo-python-driver
29960237dcdd9d90402d6c76c4296aec3d01d3fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-present MongoDB, 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 agreed to in wri...
35.270053
77
0.605943
c811ef8de47a9a96166faa3d9f73f2f19f3bd4cc
2,021
py
Python
pyro_models/arm/hiv_inter.py
jpchen/pyro-models
b9e6ae6271e6cd622fbb4d34d67c450d5a954c9b
[ "Apache-2.0" ]
30
2019-02-22T03:03:18.000Z
2022-01-22T15:57:37.000Z
pyro_models/arm/hiv_inter.py
jpchen/pyro-models
b9e6ae6271e6cd622fbb4d34d67c450d5a954c9b
[ "Apache-2.0" ]
7
2019-02-26T18:28:57.000Z
2021-06-11T17:21:06.000Z
pyro_models/arm/hiv_inter.py
jpchen/pyro-models
b9e6ae6271e6cd622fbb4d34d67c450d5a954c9b
[ "Apache-2.0" ]
8
2019-02-25T22:06:14.000Z
2022-02-18T23:19:49.000Z
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 # model file: example-models/ARM/Ch.20/hiv_inter.stan import torch import pyro import pyro.distributions as dist def init_vector(name, dims=None): return pyro.sample(name, dist.Normal(torch.zeros(dims), 0.2 * torch.ones(dims)).to_...
34.254237
96
0.632855