hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
eb2a46b0439fe6fd14dc7037d24955f12c79f91c
4,866
py
Python
onadata/apps/api/tests/viewsets/test_note_viewset.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
87
2015-02-10T23:36:28.000Z
2022-01-31T00:51:10.000Z
onadata/apps/api/tests/viewsets/test_note_viewset.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
443
2015-04-28T18:50:25.000Z
2022-03-31T03:29:43.000Z
onadata/apps/api/tests/viewsets/test_note_viewset.py
amks1/kobocat
0f36c75cc55345716558e8bece2ef48567896997
[ "BSD-2-Clause" ]
122
2015-01-13T16:27:44.000Z
2022-01-24T09:35:56.000Z
# coding: utf-8 from django.test import RequestFactory from onadata.apps.api.viewsets.note_viewset import NoteViewSet from onadata.apps.main.tests.test_base import TestBase class TestNoteViewSet(TestBase): def setUp(self): super().setUp() self._create_user_and_login() self._publish_trans...
36.313433
75
0.614057
3ea250991f5f1767e23827f650258b1491efa1c4
4,815
py
Python
tests/test_actions.py
robertchase/fsm
b7dfa1803b52d60cf7197c9f1e64f00d20d1b1c7
[ "MIT" ]
null
null
null
tests/test_actions.py
robertchase/fsm
b7dfa1803b52d60cf7197c9f1e64f00d20d1b1c7
[ "MIT" ]
1
2019-02-08T20:53:52.000Z
2019-05-25T09:45:04.000Z
tests/test_actions.py
robertchase/fsm
b7dfa1803b52d60cf7197c9f1e64f00d20d1b1c7
[ "MIT" ]
null
null
null
import pytest import fsm.actions as actions @pytest.fixture def context(): c = actions.Context() c.line_num = 10 return c def test_state(context): assert len(context.states) == 0 context.line = 'one' actions.act_state(context) assert len(context.states) == 1 assert context.states['o...
25.342105
51
0.736241
55302fb47bfbcea023809298f60d63e1ed04a202
25,609
py
Python
questionnaires/models.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
questionnaires/models.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
questionnaires/models.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
import json from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.utils.functional import cached_property from django.core.paginator import EmptyPage, PageNotAnInteger from django.core.serializers.json import DjangoJSONEncoder from django.db import models from django....
33.919205
118
0.574915
9d0f076839ba0832b73ec7b9111fe37388671400
1,141
py
Python
m2py/finance/series/scratch.py
caiorss/m2py
4a8f754f04adb151b1967fe13b8f80b4ec169560
[ "BSD-3-Clause" ]
13
2016-12-10T22:03:18.000Z
2021-11-27T11:55:41.000Z
m2py/finance/series/scratch.py
caiorss/m2py
4a8f754f04adb151b1967fe13b8f80b4ec169560
[ "BSD-3-Clause" ]
null
null
null
m2py/finance/series/scratch.py
caiorss/m2py
4a8f754f04adb151b1967fe13b8f80b4ec169560
[ "BSD-3-Clause" ]
3
2017-04-02T00:21:24.000Z
2021-08-19T14:11:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests safari = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30" headers = { 'User-Agent': safari } def selic_acfactor(start_date, end_date): """ Get daily SELIC brazilian tre...
27.166667
130
0.645925
c017a5c3f63c060409f9ca76cddac4b12a9de719
1,482
py
Python
bitcoin_secp256k1.py
vizeet/bitcoin_core_python_client
bcd7695e2a7f80c1faa9931c623af859f11eae8d
[ "MIT" ]
4
2018-05-12T16:13:51.000Z
2022-03-29T21:44:48.000Z
bitcoin_secp256k1.py
vizeet/bitcoin_core_python_client
bcd7695e2a7f80c1faa9931c623af859f11eae8d
[ "MIT" ]
null
null
null
bitcoin_secp256k1.py
vizeet/bitcoin_core_python_client
bcd7695e2a7f80c1faa9931c623af859f11eae8d
[ "MIT" ]
6
2020-07-09T15:46:51.000Z
2021-05-21T09:32:13.000Z
from elliptic_curve_math import EllipticCurveMath import binascii # Bitcoin Secp256k1 constants [ # generator point G = (0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798, 0x483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8) # field prime P = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF...
30.875
124
0.61336
f666d0f6b3bec1b75e9d6494a8d00418175d1c07
8,544
py
Python
teraserver/python/tests/modules/FlaskModule/API/user/test_UserQueryServiceAccess.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
10
2020-03-16T14:46:06.000Z
2022-02-11T16:07:38.000Z
teraserver/python/tests/modules/FlaskModule/API/user/test_UserQueryServiceAccess.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
114
2019-09-16T13:02:50.000Z
2022-03-22T19:17:36.000Z
teraserver/python/tests/modules/FlaskModule/API/user/test_UserQueryServiceAccess.py
introlab/opentera
bfc4de672c9de40b7c9a659be2138731e7ee4e94
[ "Apache-2.0" ]
null
null
null
from tests.modules.FlaskModule.API.BaseAPITest import BaseAPITest import datetime class UserQueryServiceAccessTest(BaseAPITest): login_endpoint = '/api/user/login' test_endpoint = '/api/user/services/access' def setUp(self): pass def tearDown(self): pass def test_no_auth(self): ...
44.968421
119
0.679073
eb0dd303fff25c4062ff735b2648761f1880a94a
4,635
py
Python
utils/diospyros.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
27
2020-02-16T22:26:34.000Z
2022-02-17T04:17:19.000Z
utils/diospyros.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
77
2020-01-21T15:37:35.000Z
2022-03-11T19:48:43.000Z
utils/diospyros.py
sgpthomas/diospyros
27d4e5e5d4e56a6dc5860d7c7d5eefb27de24a5d
[ "MIT" ]
1
2021-09-27T20:35:15.000Z
2021-09-27T20:35:15.000Z
#!/usr/bin/env python3 # Generator script to launch the Diospyros compiler for different code kernel # dimensions import argparse import os import subprocess import arguments from manifest import * from test import * from utils import * from source import * # check if a custom build system generator is defined try:...
32.412587
97
0.694498
8208df1d2b606ded195351784d0d6f24a48af610
16,586
py
Python
torchplus/nn/modules/padding.py
Bertie97/pyctlib
c0bb6afc49dacc6c06c5936c1fae132c62c190f7
[ "MIT" ]
3
2021-07-03T17:27:44.000Z
2021-09-26T20:48:19.000Z
torchplus/nn/modules/padding.py
Bertie97/pyctlib
c0bb6afc49dacc6c06c5936c1fae132c62c190f7
[ "MIT" ]
null
null
null
torchplus/nn/modules/padding.py
Bertie97/pyctlib
c0bb6afc49dacc6c06c5936c1fae132c62c190f7
[ "MIT" ]
1
2022-03-08T08:54:03.000Z
2022-03-08T08:54:03.000Z
from .module import Module from .utils import _pair, _quadruple, _ntuple from .. import functional as F from torchplus import Tensor from ..common_types import _size_2_t, _size_4_t, _size_6_t # TODO: grad_output size asserts in THNN class _ConstantPadNd(Module): __constants__ = ['padding', 'value'] value: ...
36.452747
103
0.507717
c14969769c219214d8ff63eead66b1fb35dfaeec
588
py
Python
test/test_add_cont_to_group.py
tarsic/Zadanie-1
2283ce7835dcb446482a4cf457d9d1f965399292
[ "Apache-2.0" ]
null
null
null
test/test_add_cont_to_group.py
tarsic/Zadanie-1
2283ce7835dcb446482a4cf457d9d1f965399292
[ "Apache-2.0" ]
null
null
null
test/test_add_cont_to_group.py
tarsic/Zadanie-1
2283ce7835dcb446482a4cf457d9d1f965399292
[ "Apache-2.0" ]
null
null
null
from fixture.contact import Contact import random def test_add_cont_to_group(app, db): if app.contact.count() == 0: app.contact.fill_out_form(Contact(firstname="Romn", middlename="M", lastname="Smith", nickname="Pet", company="Ford", address="Chicago")) old_co...
34.588235
109
0.673469
09031af790d5ee704bf749444fb843eaf6003061
20,374
py
Python
sparkfun_serlcd.py
mitag/Sparkfun_CircuitPython_SerLCD
88b2ce16c0011dec22f7ec9f56be0aa78c68dc09
[ "MIT" ]
null
null
null
sparkfun_serlcd.py
mitag/Sparkfun_CircuitPython_SerLCD
88b2ce16c0011dec22f7ec9f56be0aa78c68dc09
[ "MIT" ]
null
null
null
sparkfun_serlcd.py
mitag/Sparkfun_CircuitPython_SerLCD
88b2ce16c0011dec22f7ec9f56be0aa78c68dc09
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Gaston Williams # # 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, m...
36.252669
113
0.657946
cc5ea420c0d61f1e411fe5784b95b7b7cc82daf3
707
py
Python
app/event_server/event_server_endpoint.py
patromi/tracardi
cd5029bd9eb20d4cea210cc7a62fa12e8327686e
[ "MIT" ]
null
null
null
app/event_server/event_server_endpoint.py
patromi/tracardi
cd5029bd9eb20d4cea210cc7a62fa12e8327686e
[ "MIT" ]
null
null
null
app/event_server/event_server_endpoint.py
patromi/tracardi
cd5029bd9eb20d4cea210cc7a62fa12e8327686e
[ "MIT" ]
null
null
null
from fastapi import APIRouter from fastapi import HTTPException from app.domain.payload.tracker_payload import TrackerPayload from app.exceptions.exception import TracardiException from app.event_server.service.source_cacher import source_cache router = APIRouter() @router.post("/track", tags=['event server']) asyn...
30.73913
88
0.75389
286e7545aec8d953310abc9413be1ef027dd5f07
11,541
py
Python
nbgrader/utils.py
sashabaranov/nbgrader
6d260e9f63cef15073a4540fe34ef196e36c4c94
[ "BSD-3-Clause-Clear" ]
null
null
null
nbgrader/utils.py
sashabaranov/nbgrader
6d260e9f63cef15073a4540fe34ef196e36c4c94
[ "BSD-3-Clause-Clear" ]
1
2018-10-31T15:54:37.000Z
2018-10-31T15:54:37.000Z
nbgrader/utils.py
zonca/nbgrader
6d260e9f63cef15073a4540fe34ef196e36c4c94
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import hashlib import dateutil.parser import glob import six import sys import shutil import stat import logging import traceback from setuptools.archive_util import unpack_archive from setuptools.archive_util import unpack_tarfile from setuptools.archive_util import unpack_zipfile from contextlib import con...
29.821705
113
0.63764
d495b4b2017b714d87b97b7c49b7914195af7776
2,408
py
Python
mqtt_consumer.py
AngelLiang/RabbitMQ-MQTT-Consumer-Demo
161e1622af5379776e6408a6f1bceb4bf57d40ea
[ "MIT" ]
null
null
null
mqtt_consumer.py
AngelLiang/RabbitMQ-MQTT-Consumer-Demo
161e1622af5379776e6408a6f1bceb4bf57d40ea
[ "MIT" ]
null
null
null
mqtt_consumer.py
AngelLiang/RabbitMQ-MQTT-Consumer-Demo
161e1622af5379776e6408a6f1bceb4bf57d40ea
[ "MIT" ]
null
null
null
# coding=utf-8 import sys import datetime as dt import pika # 是否日志MongoDB入库 MONGDB_ENABLE = False if MONGDB_ENABLE: from pymongo import MongoClient client = MongoClient('localhost', 27017) db = client['mqtt-log'] mqtt_log = db['mqtt-log'] INFLUXDB_ENABLE = True if INFLUXDB_ENABLE: from influxdb...
26.461538
130
0.627076
eb39f8da17decb46e9e891fde73313a3687a0431
4,940
py
Python
azure/mgmt/network/v2017_08_01/models/network_interface.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_08_01/models/network_interface.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_08_01/models/network_interface.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# 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. # C...
47.961165
304
0.662348
b4f7ee64630df95cc0fcc1b0c02059dbb8d219b9
55
py
Python
src/aws_key_formatter/__main__.py
KeltonKarboviak/aws-key-formatter
ff270fd2adc0920fc3c97d9da471d8b3704449a5
[ "MIT" ]
null
null
null
src/aws_key_formatter/__main__.py
KeltonKarboviak/aws-key-formatter
ff270fd2adc0920fc3c97d9da471d8b3704449a5
[ "MIT" ]
null
null
null
src/aws_key_formatter/__main__.py
KeltonKarboviak/aws-key-formatter
ff270fd2adc0920fc3c97d9da471d8b3704449a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from . import cli cli.main()
9.166667
23
0.545455
4e9a14bcd1afa2d12e6901fe36ed16b4d571537e
8,739
bzl
Python
build_defs/internal_do_not_use/j2cl_common.bzl
FrankHossfeld/j2cl
953573c82f91e77c60fbb8e310fef2873842a39c
[ "Apache-2.0" ]
null
null
null
build_defs/internal_do_not_use/j2cl_common.bzl
FrankHossfeld/j2cl
953573c82f91e77c60fbb8e310fef2873842a39c
[ "Apache-2.0" ]
null
null
null
build_defs/internal_do_not_use/j2cl_common.bzl
FrankHossfeld/j2cl
953573c82f91e77c60fbb8e310fef2873842a39c
[ "Apache-2.0" ]
null
null
null
"""Common utilities for creating J2CL targets and providers.""" load(":j2cl_js_common.bzl", "J2CL_JS_TOOLCHAIN_ATTRS", "create_js_lib_struct", "j2cl_js_provider") load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo") # Constructor for the Bazel provider for J2CL. # Note that data under "_private_" cons...
33.872093
101
0.650303
0e6919f709c03c732f687307b3970194a0a6bc3c
10,849
py
Python
reportportal_client/service_async.py
Mephody/client-Python
715dfc707e2c80233d26f2895a947ab614bb2fae
[ "Apache-2.0" ]
null
null
null
reportportal_client/service_async.py
Mephody/client-Python
715dfc707e2c80233d26f2895a947ab614bb2fae
[ "Apache-2.0" ]
null
null
null
reportportal_client/service_async.py
Mephody/client-Python
715dfc707e2c80233d26f2895a947ab614bb2fae
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 http://reportportal.io # # 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...
32.975684
79
0.577473
7623cc553ec1a5707c65812c1e8096ac3394a10a
126
py
Python
python/eda/eda/circuits/__init__.py
32bitmicro/EDA
476a7f6dda23a494788bfdfaa27dff7082a80d6d
[ "BSD-3-Clause" ]
1
2019-06-05T20:01:19.000Z
2019-06-05T20:01:19.000Z
python/eda/eda/circuits/__init__.py
32bitmicro/EDA
476a7f6dda23a494788bfdfaa27dff7082a80d6d
[ "BSD-3-Clause" ]
null
null
null
python/eda/eda/circuits/__init__.py
32bitmicro/EDA
476a7f6dda23a494788bfdfaa27dff7082a80d6d
[ "BSD-3-Clause" ]
null
null
null
#from eda.circuts.ldo_ld1117 import * __all__ = ["ldo_ld1117"] #platform = ... # Figure out which platform applies
31.5
62
0.666667
a8e181b7fb2a6dd263b99b1f7877283abf7d86a7
112
py
Python
core/utils/generic_utils.py
tringm/ToS-TLDR
4e199538aeb74251b3e70f1c05c005ca4a5ebfa7
[ "Apache-2.0" ]
null
null
null
core/utils/generic_utils.py
tringm/ToS-TLDR
4e199538aeb74251b3e70f1c05c005ca4a5ebfa7
[ "Apache-2.0" ]
2
2021-03-31T20:08:20.000Z
2021-12-13T20:47:05.000Z
core/utils/generic_utils.py
tringm/legal-docs-tldr
4e199538aeb74251b3e70f1c05c005ca4a5ebfa7
[ "Apache-2.0" ]
null
null
null
from pathlib import Path ROOT_PATH = Path(__file__).parent.parent.parent DATA_FOLDER_PATH = ROOT_PATH / 'data'
22.4
47
0.794643
e1eb6cc34c11bc6f4029efab21a91b58ee899034
27,554
py
Python
tests/test_process.py
zchee/uvloop
38105305523927fbe2f8af59f86d2383a726ce52
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_process.py
zchee/uvloop
38105305523927fbe2f8af59f86d2383a726ce52
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_process.py
zchee/uvloop
38105305523927fbe2f8af59f86d2383a726ce52
[ "Apache-2.0", "MIT" ]
null
null
null
import asyncio import contextlib import gc import os import pathlib import signal import subprocess import sys import tempfile import time import unittest import psutil from uvloop import _testbase as tb class _TestProcess: def get_num_fds(self): return psutil.Process(os.getpid()).num_fds() def tes...
31.817552
77
0.555273
9816b3d7f1c9ad0786cb31be33564ba265361dcc
5,939
py
Python
flaskeddit/models.py
aiy-wish/musico
263afdb1630fe945226471bfefcf6add5108b286
[ "MIT" ]
null
null
null
flaskeddit/models.py
aiy-wish/musico
263afdb1630fe945226471bfefcf6add5108b286
[ "MIT" ]
7
2020-03-24T18:05:13.000Z
2022-01-13T01:57:43.000Z
flaskeddit/models.py
aiy-wish/musico-flask-app
263afdb1630fe945226471bfefcf6add5108b286
[ "MIT" ]
null
null
null
import datetime from flask_login import UserMixin from flaskeddit import db, login_manager import pyotp @login_manager.user_loader def load_user(user_id): """ Loader used to reload the user object from the user ID stored in the session. https://flask-login.readthedocs.io/en/latest/#how-it-works """ ...
34.935294
136
0.657013
3826d9fe473ea5bd6a3a04e29ead27bd4b9b0c1b
9,841
py
Python
main.py
pppyykknen/LFDisplay-PyTorch
d19261dac1717a799bb5ba5f96563be1d2383340
[ "MIT" ]
null
null
null
main.py
pppyykknen/LFDisplay-PyTorch
d19261dac1717a799bb5ba5f96563be1d2383340
[ "MIT" ]
null
null
null
main.py
pppyykknen/LFDisplay-PyTorch
d19261dac1717a799bb5ba5f96563be1d2383340
[ "MIT" ]
null
null
null
import time from pathlib import Path import cv2 import imageio import numpy as np import torch import torch.nn as nn from torch.cuda.amp.autocast_mode import autocast from torch.cuda.amp.grad_scaler import GradScaler from torch.optim import Adam from torch.optim.lr_scheduler import StepLR from RayTracingModels import...
42.601732
119
0.676252
3acc9dd75d42e7788172095e87c87f495fa1b3bd
35,376
py
Python
toontown/battle/RewardPanel.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/battle/RewardPanel.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/battle/RewardPanel.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
import copy from direct.directnotify import DirectNotifyGlobal from direct.gui.DirectGui import * from direct.interval.IntervalGlobal import * import math from panda3d.core import * import random import Fanfare from otp.otpbase import OTPGlobals from toontown.coghq import CogDisguiseGlobals from toontown.quest import ...
45.237852
245
0.609368
d366b2bb696d74b8431818bd10c8679e4295ac9b
4,670
py
Python
recirq/qml_lfe/run_config.py
Coiner1909/ReCirq
dc52158bf02697c0b0f3022829f0df78665cfcc6
[ "Apache-2.0" ]
1
2022-02-25T10:37:25.000Z
2022-02-25T10:37:25.000Z
recirq/qml_lfe/run_config.py
Coiner1909/ReCirq
dc52158bf02697c0b0f3022829f0df78665cfcc6
[ "Apache-2.0" ]
null
null
null
recirq/qml_lfe/run_config.py
Coiner1909/ReCirq
dc52158bf02697c0b0f3022829f0df78665cfcc6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
35.648855
77
0.638116
cd4411b0886937bd59bd7f39396d59f60d88ac73
6,441
py
Python
testnet/tools/icos_collect_debug_info.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
1
2021-11-18T02:32:05.000Z
2021-11-18T02:32:05.000Z
testnet/tools/icos_collect_debug_info.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
null
null
null
testnet/tools/icos_collect_debug_info.py
ggreif/ic
ac56ec91f077c00d59eea3f73f51e14a1b3ea882
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Collect various debug information from a testnet test deployment. - collect system and "ic-replica" service logs using journalctl - collect replica endpoint status - collect netstat - store them in the $experiment_dir/debug_info The collected debug information can be downloaded from the GitL...
33.9
118
0.685763
fef1b52f3f122f2cde95f53ba596dc769e200df7
5,389
py
Python
pmpermit_menu.py
Dark-PRINCESS/Dark-PRINCESS-
0ad9c67960c8f88745442d264fdcd113b9925807
[ "MIT" ]
1
2020-10-23T09:35:36.000Z
2020-10-23T09:35:36.000Z
pmpermit_menu.py
Dark-PRINCESS/Dark-PRINCESS-
0ad9c67960c8f88745442d264fdcd113b9925807
[ "MIT" ]
null
null
null
pmpermit_menu.py
Dark-PRINCESS/Dark-PRINCESS-
0ad9c67960c8f88745442d264fdcd113b9925807
[ "MIT" ]
null
null
null
# if you change credits, you get anal cancer and get murdered by russians in 3 days. """ Support chatbox for pmpermit. Used by incoming messages with trigger as /start Will not work for already approved people. """ import asyncio import io import telethon.sync from telethon.tl.functions.users import GetFullUs...
48.990909
222
0.580998
b03354f35eaee822eabc1c859e6942a024a7a643
591
py
Python
run.py
dmikushin/simple_print_server
28a7c75621b9946378462413ec0110dfbbb98f7d
[ "MIT" ]
null
null
null
run.py
dmikushin/simple_print_server
28a7c75621b9946378462413ec0110dfbbb98f7d
[ "MIT" ]
null
null
null
run.py
dmikushin/simple_print_server
28a7c75621b9946378462413ec0110dfbbb98f7d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from config import DATABASE_PATH, BASE_UPLOAD_FOLDER from simple_print_server import app from simple_print_server.database import init_db def create_db_if_not_created(): if not os.path.exists(DATABASE_PATH): print("Creating database") init_db() if not...
25.695652
52
0.705584
4b1868290de3fbc822557361c93365520b80ea52
2,178
py
Python
src/image_matcher.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
src/image_matcher.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
src/image_matcher.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
import cv2 as cv class ImageData: def __init__(self, image, keypoints, descriptors): self.image = image self.keypoints = keypoints self.descriptors = descriptors class FeaturesExtractor: def orb(self, image): orb = cv.ORB_create() keypoints, descriptors = orb.detectAn...
30.676056
90
0.634068
a60eb69e045a6b316482de3979407e900b4790f3
4,502
py
Python
Tr4PrFnPredLib/utils/ontology.py
Tr4PrFnPred/TransformerProteinFunctionPredLib
115dd4105631f96e05409fd9e7f6186ecb5df898
[ "MIT" ]
1
2021-04-13T21:03:10.000Z
2021-04-13T21:03:10.000Z
Tr4PrFnPredLib/utils/ontology.py
Tr4PrFnPred/TransformerProteinFunctionPredLib
115dd4105631f96e05409fd9e7f6186ecb5df898
[ "MIT" ]
1
2021-04-13T22:27:45.000Z
2021-04-13T22:27:45.000Z
Tr4PrFnPredLib/utils/ontology.py
Tr4PrFnPred/Tr4PrFnPredLib
115dd4105631f96e05409fd9e7f6186ecb5df898
[ "MIT" ]
null
null
null
from collections import deque from pathlib import Path class Ontology: """ Class for traversing the GO ontology. Original from: https://github.com/bio-ontology-research-group/deepgoplus """ def __init__(self, go_file: str, with_rels=True): self.ont = self.load(go_file, with_rels)...
33.102941
80
0.448689
c4c431560176f1dad7accf7781e7a4e9e9157be0
621
py
Python
app/migrations/0015_auto_20190530_1125.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
2
2019-06-15T01:40:04.000Z
2019-12-19T05:11:17.000Z
app/migrations/0015_auto_20190530_1125.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
1
2021-03-09T05:22:51.000Z
2021-03-09T05:22:51.000Z
app/migrations/0015_auto_20190530_1125.py
iamvukasin/filminds
54c9d7175f3a06f411cc750a694758bd683af1ee
[ "MIT" ]
2
2019-06-24T19:24:25.000Z
2020-05-29T13:57:35.000Z
# Generated by Django 2.2.1 on 2019-05-30 11:25 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('app', '0014_auto_20190517_2232'), ] operations = [ migrations.AlterField( model_name='collectedmovie...
25.875
74
0.615137
6ab2986f4748bf9e1fff876dfe513240546001ae
925
py
Python
DesignHashSet.py
rc14193/leetCodeSolns
7a8277c068335d164d5e3b03cfc8b993c8031936
[ "MIT" ]
null
null
null
DesignHashSet.py
rc14193/leetCodeSolns
7a8277c068335d164d5e3b03cfc8b993c8031936
[ "MIT" ]
null
null
null
DesignHashSet.py
rc14193/leetCodeSolns
7a8277c068335d164d5e3b03cfc8b993c8031936
[ "MIT" ]
null
null
null
# https://leetcode.com/explore/learn/card/hash-table/182/practical-applications/1139/ # According to trial 160ms and 18.6mb # 78.74 % time and 92.01% space class MyHashSet: def __init__(self): """ Initialize your data structure here. """ self.arr = [] for i in range(80): ...
23.125
85
0.581622
df83e7458326e2a06c737d920ccc80e2e7b5e327
842
py
Python
accounts/migrations/0001_initial.py
jason17h/hackerhub
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
null
null
null
accounts/migrations/0001_initial.py
jason17h/hackerhub
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
16
2020-03-24T17:25:22.000Z
2022-03-11T23:57:11.000Z
accounts/migrations/0001_initial.py
sherman-grewal/wehack
dc610c3d1e1cb038c9782f3131c8756de699be4d
[ "MIT" ]
1
2019-06-25T20:34:09.000Z
2019-06-25T20:34:09.000Z
# Generated by Django 2.2.1 on 2019-06-22 17:46 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), ] ope...
31.185185
121
0.634204
03b49272def3168db586a85fa09c19a72b05d5c8
4,766
py
Python
cnn_builder.py
clintonjwang/cbct-recon
75d5458188d3e1f663b22f64d6aa1306e5da6d11
[ "MIT" ]
4
2020-03-20T14:55:00.000Z
2021-12-28T03:23:28.000Z
cnn_builder.py
clintonjwang/cbct-recon
75d5458188d3e1f663b22f64d6aa1306e5da6d11
[ "MIT" ]
null
null
null
cnn_builder.py
clintonjwang/cbct-recon
75d5458188d3e1f663b22f64d6aa1306e5da6d11
[ "MIT" ]
1
2020-03-20T14:56:42.000Z
2020-03-20T14:56:42.000Z
""" Author: Clinton Wang, E-mail: `clintonjwang@gmail.com`, Github: `https://github.com/clintonjwang/lipiodol` Author: David G Ellis (https://github.com/ellisdg/3DUnetCNN) """ import keras.backend as K from keras_contrib.layers.normalization import InstanceNormalization from keras.layers import Input, Dense, Concatena...
33.56338
123
0.707721
bb18fd21b5b8df759cbf10a5af4b338158e00be2
1,737
py
Python
notebooks/02-animation.py
bartev/python-toolbag
1b681c11b69dfacabbb3625a8c490d70ed227198
[ "FTL" ]
null
null
null
notebooks/02-animation.py
bartev/python-toolbag
1b681c11b69dfacabbb3625a8c490d70ed227198
[ "FTL" ]
null
null
null
notebooks/02-animation.py
bartev/python-toolbag
1b681c11b69dfacabbb3625a8c490d70ed227198
[ "FTL" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # http://louistiao.me/posts/notebooks/embedding-matplotlib-animations-in-jupyter-as-interactive-javascript-widgets/ # In[6]: get_ipython().run_line_magic('load_ext', 'blackcellmagic') # In[1]: import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt get_i...
14.237705
217
0.64076
dc1b7bf1596431202407985f8562503e19e6368f
5,114
py
Python
opentimelineio/console/otiostat.py
miklobit/OpenTimelineIO
59a60bbf965cff7347336a76d899aaea55fd9c32
[ "Apache-2.0" ]
1
2019-06-27T08:22:47.000Z
2019-06-27T08:22:47.000Z
opentimelineio/console/otiostat.py
miklobit/OpenTimelineIO
59a60bbf965cff7347336a76d899aaea55fd9c32
[ "Apache-2.0" ]
null
null
null
opentimelineio/console/otiostat.py
miklobit/OpenTimelineIO
59a60bbf965cff7347336a76d899aaea55fd9c32
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2017 Pixar Animation Studios # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted...
26.360825
77
0.634337
9c1049370bd73c3057b06e3ff618bcb85ba97c1c
19,979
py
Python
raiden/raiden_event_handler.py
dannyk03/raiden
ebc1b598ef24d4e9c4d2cd26a79921338928e75e
[ "MIT" ]
1
2018-10-27T11:30:06.000Z
2018-10-27T11:30:06.000Z
raiden/raiden_event_handler.py
dannyk03/raiden
ebc1b598ef24d4e9c4d2cd26a79921338928e75e
[ "MIT" ]
null
null
null
raiden/raiden_event_handler.py
dannyk03/raiden
ebc1b598ef24d4e9c4d2cd26a79921338928e75e
[ "MIT" ]
null
null
null
import structlog from eth_utils import to_checksum_address, to_hex from raiden.constants import EMPTY_HASH, EMPTY_SIGNATURE from raiden.exceptions import ChannelOutdatedError, RaidenUnrecoverableError from raiden.messages import message_from_sendevent from raiden.network.proxies import PaymentChannel, TokenNetwork fro...
38.644101
96
0.661895
d9be0e33aee1d772df7edd015d728aebcc518c19
16,353
py
Python
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/create_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/create_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/create_instance_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateInstanceResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
27.39196
334
0.605699
4c464d8af5e7368fec27de7d1d1f722cc20e8809
4,615
py
Python
valentina/settings.py
pbutting/qa4sm
7b403cd542ae4d5ff5749214e3c45bcbf33f0247
[ "MIT" ]
null
null
null
valentina/settings.py
pbutting/qa4sm
7b403cd542ae4d5ff5749214e3c45bcbf33f0247
[ "MIT" ]
null
null
null
valentina/settings.py
pbutting/qa4sm
7b403cd542ae4d5ff5749214e3c45bcbf33f0247
[ "MIT" ]
null
null
null
""" Django settings for valentina project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os im...
26.073446
135
0.623835
db5b3cf2be2a375ac4c219cbc4091fea5a107f62
2,808
py
Python
copy_images_based_on_avilable_detections.py
vahid8/Training_data_preperation
9060c70dabda8d04c967909afd2a7eb51018df9f
[ "MIT" ]
null
null
null
copy_images_based_on_avilable_detections.py
vahid8/Training_data_preperation
9060c70dabda8d04c967909afd2a7eb51018df9f
[ "MIT" ]
null
null
null
copy_images_based_on_avilable_detections.py
vahid8/Training_data_preperation
9060c70dabda8d04c967909afd2a7eb51018df9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copy the images that have detection texts from one dir to another input : images and detections paths, output path for images output : None """ import os from shutil import copyfile import tqdm __author__ = "vahid jani" __copyright__ = "Copyright 2021" __credits__ = ["Vahid jani"] _...
50.142857
151
0.722578
6642673a157027802555cdbc21bea21f74ed4ab1
10,589
py
Python
spearmint/tests/kernels/test_product_kernel.py
ascripter/Spearmint
81b8cf5fa1462c09569bf323630cbee356c5897b
[ "RSA-MD" ]
null
null
null
spearmint/tests/kernels/test_product_kernel.py
ascripter/Spearmint
81b8cf5fa1462c09569bf323630cbee356c5897b
[ "RSA-MD" ]
null
null
null
spearmint/tests/kernels/test_product_kernel.py
ascripter/Spearmint
81b8cf5fa1462c09569bf323630cbee356c5897b
[ "RSA-MD" ]
null
null
null
# -*- coding: utf-8 -*- # Spearmint # # Academic and Non-Commercial Research Use Software License and Terms # of Use # # Spearmint is a software package to perform Bayesian optimization # according to specific algorithms (the “Software”). The Software is # designed to automatically run experiments (thus the code name ...
46.853982
70
0.764095
fa2f27f4274259d67ec2df28dc266f669e5303a3
482
py
Python
data/scripts/templates/object/tangible/furniture/all/shared_frn_all_light_death_watch.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/furniture/all/shared_frn_all_light_death_watch.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/furniture/all/shared_frn_all_light_death_watch.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/furniture/all/shared_frn_all_light_death_watch.iff" result.attribut...
28.352941
87
0.744813
df02efa7ebf9808b63927e5aca16ef8e8e395f51
1,093
py
Python
kubernetes/test/test_v1beta1_pod_disruption_budget_status.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_pod_disruption_budget_status.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_pod_disruption_budget_status.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
1
2018-07-19T16:37:20.000Z
2018-07-19T16:37:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
24.288889
113
0.743824
979843eeeede651bae5817465384d9531689130e
2,397
py
Python
core/utility.py
99sbr/TextSummarisation
03582abd9affeb78474dde8898fff215966cae8d
[ "MIT" ]
null
null
null
core/utility.py
99sbr/TextSummarisation
03582abd9affeb78474dde8898fff215966cae8d
[ "MIT" ]
null
null
null
core/utility.py
99sbr/TextSummarisation
03582abd9affeb78474dde8898fff215966cae8d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import nltk from nltk.corpus import stopwords from nltk.cluster.util import cosine_distance import numpy as np import networkx as nx class Utility: def __init__(self): pass def read_article(self,file_name): file = open(file_name, "r") filedata = ...
30.341772
118
0.599499
03ca6c49ab59c2ce0f7abe00a9ec7626c7af3dcb
14,357
py
Python
docs/notebooks/asynchronous_greedy_multiprocessing.pct.py
ChrisMorter/trieste
229ebb8a308e970b2ad2f4a10429209099e3a4f8
[ "Apache-2.0" ]
null
null
null
docs/notebooks/asynchronous_greedy_multiprocessing.pct.py
ChrisMorter/trieste
229ebb8a308e970b2ad2f4a10429209099e3a4f8
[ "Apache-2.0" ]
null
null
null
docs/notebooks/asynchronous_greedy_multiprocessing.pct.py
ChrisMorter/trieste
229ebb8a308e970b2ad2f4a10429209099e3a4f8
[ "Apache-2.0" ]
null
null
null
# %% [markdown] # # Asynchronous Bayesian optimization with Trieste # # In this notebook we demonstrate Trieste's ability to perform asynchronous Bayesian optimisation, as is suitable for scenarios where the objective function can be run for several points in parallel but where observations might return back at differe...
43.771341
757
0.742843
fec3396d728f04725c3fdbdc18a7945520c78a53
58,672
py
Python
ortools/sat/python/cp_model.py
Mika-5/or-tools
86f125c3e1add10311e54a24d8ec4f899a7b8ecc
[ "Apache-2.0" ]
null
null
null
ortools/sat/python/cp_model.py
Mika-5/or-tools
86f125c3e1add10311e54a24d8ec4f899a7b8ecc
[ "Apache-2.0" ]
null
null
null
ortools/sat/python/cp_model.py
Mika-5/or-tools
86f125c3e1add10311e54a24d8ec4f899a7b8ecc
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.538068
84
0.638857
8eabc9dd58491b79679848603a0b27a66e178249
29,180
py
Python
venv/Lib/site-packages/keras/applications/mobilenet.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
3
2020-01-21T11:04:56.000Z
2021-11-09T11:27:11.000Z
venv/Lib/site-packages/keras/applications/mobilenet.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/keras/applications/mobilenet.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
5
2018-04-27T10:01:44.000Z
2021-08-18T23:22:53.000Z
"""MobileNet v1 models for Keras. MobileNet is a general architecture and can be used for multiple use cases. Depending on the use case, it can use different input layer size and different width factors. This allows different width models to reduce the number of multiply-adds and thereby reduce inference cost on mobil...
43.552239
93
0.594448
e744a1839dab29eca3e57e47310674a3524a10bb
472
py
Python
apps/users/urls.py
SparksFly8/DataMingingPaper
a6ce85a0ae421a9c77e02c70135fea40e204330c
[ "MIT" ]
59
2019-03-07T12:15:45.000Z
2021-12-26T04:25:00.000Z
apps/users/urls.py
SparksFly8/DataMingingPaper
a6ce85a0ae421a9c77e02c70135fea40e204330c
[ "MIT" ]
6
2021-02-08T20:33:05.000Z
2022-01-13T01:32:12.000Z
apps/users/urls.py
SparksFly8/DataMingingPaper
a6ce85a0ae421a9c77e02c70135fea40e204330c
[ "MIT" ]
13
2019-06-04T02:11:34.000Z
2021-05-20T06:38:08.000Z
# encoding:utf-8 __author__ = 'shiliang' __date__ = '2019/3/6 16:46' from django.urls import path, include, re_path from .views import UserInfoView, UploadImageView, UpdatePwdView app_name = 'users' urlpatterns = [ # 课程机构列表url path('info/', UserInfoView.as_view(), name='user_info'), # 用户头像上传 path('i...
24.842105
74
0.699153
79bc49efb10ec01d66865ac7644d20d6165df518
9,395
py
Python
python/ray/ray_constants.py
magedhelmy1/ray
6af02913470fa9f394e0fe37b8a7115e10a29a2b
[ "Apache-2.0" ]
null
null
null
python/ray/ray_constants.py
magedhelmy1/ray
6af02913470fa9f394e0fe37b8a7115e10a29a2b
[ "Apache-2.0" ]
40
2021-03-06T08:02:49.000Z
2022-03-26T07:03:32.000Z
python/ray/ray_constants.py
magedhelmy1/ray
6af02913470fa9f394e0fe37b8a7115e10a29a2b
[ "Apache-2.0" ]
null
null
null
"""Ray constants used in the Python code.""" import logging import math import os logger = logging.getLogger(__name__) def env_integer(key, default): if key in os.environ: return int(os.environ[key]) return default def env_bool(key, default): if key in os.environ: return True if os.env...
39.309623
79
0.785311
8fa4d43d671100f0d29908c90c0bb75c65888c0b
664
py
Python
Programmers/[cutz]clothes.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
3
2019-11-26T14:31:01.000Z
2020-01-10T18:19:46.000Z
Programmers/[cutz]clothes.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
Programmers/[cutz]clothes.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
from collections import defaultdict def solution(n: int, lost: list, reserve: list) -> int: # n = student num # lost: lost num # reserve: who can give clothes answer = 0 # reserve_dict res = defaultdict(int) length = len(lost) same = 0 for r in reserve: if r not in lost: ...
22.896552
55
0.483434
78b3f33eee7a0cf112c4b81e4ecbbbdd5e835b5f
2,530
py
Python
locations/spiders/academy.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/academy.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/academy.py
nbeecher/alltheplaces
f28b75ffbd7a6b09aaf80bf3a46cb563527632de
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
# -*- coding: utf-8 -*- import json import re import scrapy from scrapy.utils.gz import gunzip from locations.items import GeojsonPointItem from locations.hours import OpeningHours class AcademySpider(scrapy.Spider): name = "academy" item_attributes = {'brand': 'Academy Sports + Outdoors', 'brand_wikidata':...
41.47541
118
0.598024
30d276225f6b2367e221d012eacc0ad876222365
2,054
py
Python
apps/api/exception.py
kiritoscs/bk-log
4801b14182ba7cb108d968cd4f33668ee2d16dbc
[ "MIT" ]
null
null
null
apps/api/exception.py
kiritoscs/bk-log
4801b14182ba7cb108d968cd4f33668ee2d16dbc
[ "MIT" ]
null
null
null
apps/api/exception.py
kiritoscs/bk-log
4801b14182ba7cb108d968cd4f33668ee2d16dbc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
50.097561
111
0.744401
5ca5274fb1c92dab42454578e73357f7e15885c0
13,775
py
Python
snooty/builders/man.py
ccho-mongodb/snooty-parser
8a3a9779ed6e7968b49caecd21eee3990e2ecba5
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
null
null
null
snooty/builders/man.py
ccho-mongodb/snooty-parser
8a3a9779ed6e7968b49caecd21eee3990e2ecba5
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
1
2021-02-24T04:37:52.000Z
2021-02-24T04:37:52.000Z
snooty/builders/man.py
isabella232/snooty-parser
8a3a9779ed6e7968b49caecd21eee3990e2ecba5
[ "Apache-2.0", "CNRI-Python-GPL-Compatible" ]
null
null
null
import io import logging from dataclasses import dataclass, field from enum import Enum, auto from typing import Dict, Iterable, List, Union, cast from .. import n from ..page import Page from ..types import FileId logger = logging.getLogger(__name__) def troff_escape(value: str) -> str: """Escape values that t...
33.762255
87
0.592523
8155ed920c485f987678fce91fa1113da9fa1a1e
127
py
Python
main/admin.py
kev127/awards
eed7b4c13b5d415dc875a79727dd8f5dd34bdfa3
[ "MIT" ]
null
null
null
main/admin.py
kev127/awards
eed7b4c13b5d415dc875a79727dd8f5dd34bdfa3
[ "MIT" ]
null
null
null
main/admin.py
kev127/awards
eed7b4c13b5d415dc875a79727dd8f5dd34bdfa3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile,Project admin.site.register(Profile) admin.site.register(Project)
25.4
35
0.834646
978f22e375467aa43164a00cf6d86426f674e41a
217
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/55. highest number in a list.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/55. highest number in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/55. highest number in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python function that returns the highest number in a list. input_list = [9,6,45,67,12] Expected output = 67 """ def high_num(input_list): input_list.sort() return input_list[-1]
14.466667
66
0.645161
473e90d1a01c4440f9122f42f2a4af62316dbf08
870
py
Python
LAB-01_Currency_Converter/Currency_Converter.py
bartq98/OOP
566cfbfe8fe12fe2199373b53494dcf2a19b3889
[ "MIT" ]
null
null
null
LAB-01_Currency_Converter/Currency_Converter.py
bartq98/OOP
566cfbfe8fe12fe2199373b53494dcf2a19b3889
[ "MIT" ]
null
null
null
LAB-01_Currency_Converter/Currency_Converter.py
bartq98/OOP
566cfbfe8fe12fe2199373b53494dcf2a19b3889
[ "MIT" ]
null
null
null
""" Responsible for exchange specified amount of money between two currency """ import Currency_Model class Currency_Converter: @staticmethod def ask_for_amount(): print(f"Podaj kwotę do przeliczenia:", end=" ") try: quantity = float(input()) except ValueError...
34.8
183
0.657471
557fe123fb6e8a7aeb027ab6f8a3d02b09d9ce01
8,752
py
Python
sdk/python/pulumi_google_native/storage/v1/get_object_access_control.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/storage/v1/get_object_access_control.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/storage/v1/get_object_access_control.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# 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, overload from ... import _utilities fro...
36.92827
192
0.612774
20d97a92d92ea5db742be0597bd510ba2fcafc40
10,134
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_32.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
35.433566
89
0.625222
56c60b84d4b577820763706b9acbd3175f00c662
336
py
Python
tests/test_basics.py
Edinburgh-Genome-Foundry/genome_collector
6ac06d7506cba490059a04cf9e0089a10035fba6
[ "MIT" ]
13
2019-11-08T05:57:11.000Z
2021-06-23T18:18:35.000Z
tests/test_basics.py
Edinburgh-Genome-Foundry/genome_collector
6ac06d7506cba490059a04cf9e0089a10035fba6
[ "MIT" ]
null
null
null
tests/test_basics.py
Edinburgh-Genome-Foundry/genome_collector
6ac06d7506cba490059a04cf9e0089a10035fba6
[ "MIT" ]
null
null
null
import os import subprocess from genome_collector import GenomeCollection PHAGE_TAXID = "697289" def test_get_biopython_records(tmpdir): collection = GenomeCollection(data_dir=str(tmpdir)) records = collection.get_taxid_biopython_records(PHAGE_TAXID) assert len(records) == 1 assert 168000 < len(record...
25.846154
65
0.779762
2ed0ecde26f49d045e4ffffd30df1e42671afc8c
96
py
Python
knlp/information_extract/keywords_extraction/__init__.py
ERICMIAO0817/knlp
56052e49be87d604839d8f81a7295c73a5ac62cf
[ "MIT" ]
19
2021-03-17T02:15:18.000Z
2021-12-14T04:46:21.000Z
knlp/information_extract/keywords_extraction/__init__.py
ERICMIAO0817/knlp
56052e49be87d604839d8f81a7295c73a5ac62cf
[ "MIT" ]
4
2022-03-08T16:28:18.000Z
2022-03-28T15:11:11.000Z
knlp/information_extract/keywords_extraction/__init__.py
ERICMIAO0817/knlp
56052e49be87d604839d8f81a7295c73a5ac62cf
[ "MIT" ]
7
2021-03-17T02:15:23.000Z
2022-03-17T15:41:04.000Z
from .textrank_keyword import TextRank4Keyword from .textrank_sentence import TextRank4Sentence
32
48
0.895833
e89f3d9fd3c05dbf1a625bca6db41f2445031e49
2,589
py
Python
frontends/PyCDE/test/syntactic_sugar.py
Mechachleopteryx/circt
1e8c931e20b1c6ea42564706e101ee25631c199a
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/syntactic_sugar.py
Mechachleopteryx/circt
1e8c931e20b1c6ea42564706e101ee25631c199a
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/syntactic_sugar.py
Mechachleopteryx/circt
1e8c931e20b1c6ea42564706e101ee25631c199a
[ "Apache-2.0" ]
null
null
null
# RUN: %PYTHON% %s | FileCheck %s from pycde import (Output, Input, module, generator, obj_to_value, types, dim, System, no_connect) from pycde.module import externmodule @module class Taps: taps = Output(dim(8, 3)) @generator def build(mod): return {"taps": [203, 100, 23]} @externmod...
28.141304
159
0.612592
e2ebb59cc90bb7be0a0548156ed29e481a719945
1,538
py
Python
main_TrainPNN.py
jamespltan/pnn
0b460526f7c2d15ae39d338439032eab0f55ee16
[ "MIT" ]
1
2021-08-30T15:06:49.000Z
2021-08-30T15:06:49.000Z
main_TrainPNN.py
jamespltan/pnn
0b460526f7c2d15ae39d338439032eab0f55ee16
[ "MIT" ]
null
null
null
main_TrainPNN.py
jamespltan/pnn
0b460526f7c2d15ae39d338439032eab0f55ee16
[ "MIT" ]
1
2021-09-02T13:56:09.000Z
2021-09-02T13:56:09.000Z
import os from PNN import PNN from Utilities import * # Train the neural network that is used in the paper # Training without a GPU should generally be faster for this network os.environ['CUDA_VISIBLE_DEVICES'] = '-1' ts1 = TimeScript() # Define neural network training parameters and training range rs =...
27.963636
101
0.652796
89072c26853a4fda4e275efc2086961c3285b258
1,152
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/basic/server_args.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/basic/server_args.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/basic/server_args.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Citrix Systems, 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...
27.428571
78
0.71875
c25e1f7cf5994fc92409fa0450a1e2bbe6985d6d
2,228
py
Python
deepSI/systems/ball_in_box.py
seaveredge/deepSI
429dfcc3dba5cebd4ece01ad734c7f543f17f206
[ "BSD-3-Clause" ]
2
2022-01-26T10:33:13.000Z
2022-02-16T10:22:42.000Z
deepSI/systems/ball_in_box.py
seaveredge/deepSI
429dfcc3dba5cebd4ece01ad734c7f543f17f206
[ "BSD-3-Clause" ]
null
null
null
deepSI/systems/ball_in_box.py
seaveredge/deepSI
429dfcc3dba5cebd4ece01ad734c7f543f17f206
[ "BSD-3-Clause" ]
null
null
null
import deepSI from deepSI.systems.system import System, System_deriv, System_data import numpy as np from gym.spaces import Box class Ball_in_box(System_deriv): #discrate system single system """docstring for double_well_system dvxdt = (1/x**2-1/(1-x)**2)/200+ux-self.gamma*vx dvydt = (1/y**2-1/(1-y)*...
32.289855
86
0.604578
b639564ff08b7d23c82d806db42ad83809908faf
310
py
Python
kubernetes_typed/client/models/v1_resource_requirements.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_resource_requirements.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_resource_requirements.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1ResourceRequirementsDict generated type.""" from typing import TypedDict, Dict V1ResourceRequirementsDict = TypedDict( "V1ResourceRequirementsDict", { "limits": Dict[str, str], "requests": Dict[str, str], }, total=False, )
23.846154
48
0.674194
41a1b4a35df2f3cbe3409f168a419c454e2a21ec
12,698
py
Python
test/functional/interface_rest.py
maic23222/bitcoin
474bbd3468d28f910b5df1fb7231dd5679dde5f3
[ "MIT" ]
28
2019-07-17T08:30:58.000Z
2021-11-29T07:41:08.000Z
test/functional/interface_rest.py
maic23222/bitcoin
474bbd3468d28f910b5df1fb7231dd5679dde5f3
[ "MIT" ]
2
2019-10-27T03:00:26.000Z
2019-11-05T07:47:48.000Z
test/functional/interface_rest.py
maic23222/bitcoin
474bbd3468d28f910b5df1fb7231dd5679dde5f3
[ "MIT" ]
11
2019-07-17T11:40:07.000Z
2021-07-06T06:41:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the REST API.""" import binascii from decimal import Decimal from enum import Enum from io import...
42.186047
153
0.649472
2338e184a0befd9aa210093526e2b1eb928b36ba
1,910
py
Python
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/users.py
Hechongtian/meiduo_admin
2ede1fa9cbb1f1040f4ff66bb45ab7ce74b0adc3
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/users.py
Hechongtian/meiduo_admin
2ede1fa9cbb1f1040f4ff66bb45ab7ce74b0adc3
[ "MIT" ]
9
2020-05-11T20:34:09.000Z
2021-11-02T15:46:51.000Z
meiduo_mall/meiduo_mall/apps/meiduo_admin/serializers/users.py
Hechongtian/meiduo_admin
2ede1fa9cbb1f1040f4ff66bb45ab7ce74b0adc3
[ "MIT" ]
null
null
null
from django.utils import timezone from rest_framework import serializers from users.models import User class AdminAuthSerializer(serializers.ModelSerializer): """管理员序列化器类""" username = serializers.CharField(label='用户名') token = serializers.CharField(label='JWT Token', read_only=True) class Meta: ...
26.164384
69
0.609424
2c01131835b10afc45fa0271f7f2e9ba73fb27a2
202
py
Python
packages/pyright-internal/src/tests/samples/codeFlow3.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
4,391
2019-05-07T01:18:57.000Z
2022-03-31T20:45:44.000Z
packages/pyright-internal/src/tests/samples/codeFlow3.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
2,740
2019-05-07T03:29:30.000Z
2022-03-31T12:57:46.000Z
packages/pyright-internal/src/tests/samples/codeFlow3.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
455
2019-05-07T12:55:14.000Z
2022-03-31T17:09:15.000Z
# This sample tests the handling of a compound conditional statement # where the first portion is statically determined to be false. def foo(): message = "" if False and message: pass
22.444444
68
0.70297
1ebc80750dfce532c77cd354c87d1e99bb5c3ee8
1,705
py
Python
timeout.py
matthewb2/racing2D
bca806090190eab898c48d1e7a285c8456a064df
[ "MIT" ]
43
2016-09-28T08:13:17.000Z
2021-04-13T18:04:55.000Z
timeout.py
matthewb2/racing2D
bca806090190eab898c48d1e7a285c8456a064df
[ "MIT" ]
1
2017-07-02T06:04:06.000Z
2017-10-09T20:38:28.000Z
timeout.py
matthewb2/racing2D
bca806090190eab898c48d1e7a285c8456a064df
[ "MIT" ]
27
2016-08-04T23:12:25.000Z
2021-09-12T21:15:42.000Z
#The MIT License (MIT) #Copyright (c) 2012 Robin Duda, (chilimannen) #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,...
35.520833
78
0.750733
377b225577fffa3cf75ad5a5a83a09580b1a2fcf
956
py
Python
dev/ideas/b1h_bridge/cochlear_models.py
rgerkin/brian2
34761a58b0d4c2275194e648449419b3dd73286b
[ "BSD-2-Clause" ]
2
2020-03-20T13:30:19.000Z
2020-03-20T13:30:57.000Z
dev/ideas/b1h_bridge/cochlear_models.py
rgerkin/brian2
34761a58b0d4c2275194e648449419b3dd73286b
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
dev/ideas/b1h_bridge/cochlear_models.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
# WORKS! #!/usr/bin/env python ''' Example of the use of the cochlear models (:class:`~brian.hears.DRNL`, :class:`~brian.hears.DCGC` and :class:`~brian.hears.TanCarney`) available in the library. ''' from brian2 import * from brian2.hears import * simulation_duration = 50*ms set_default_samplerate(50*kHz) sound = whit...
26.555556
89
0.723849
d2ef6c997584645352b1931450a8933e90813488
458
py
Python
FF7Codes/CodeMaker.py
robbieMowforth/dump-o-projects
36e333c89c1aa279f6d47507b084fa2c10d988ce
[ "Apache-2.0" ]
null
null
null
FF7Codes/CodeMaker.py
robbieMowforth/dump-o-projects
36e333c89c1aa279f6d47507b084fa2c10d988ce
[ "Apache-2.0" ]
null
null
null
FF7Codes/CodeMaker.py
robbieMowforth/dump-o-projects
36e333c89c1aa279f6d47507b084fa2c10d988ce
[ "Apache-2.0" ]
null
null
null
# This is a python program that apparently generates winning codes according to reddit from string import ascii_uppercase codeStart = "0072" codeMid = "22:" numRan = range(0,9) for i in numRan: for j in numRan: for k in ascii_uppercase: for l in ascii_uppercase: for ...
30.533333
87
0.582969
f31046b82b12525a3d20ea2449db578afbe81813
15,492
py
Python
examples/python/train_sptm/src/test/sptm.py
ravi-teja-mullapudi/ViZDoom
7aa037fc9b25aac200f4b1496f91c8d10b30703c
[ "MIT" ]
null
null
null
examples/python/train_sptm/src/test/sptm.py
ravi-teja-mullapudi/ViZDoom
7aa037fc9b25aac200f4b1496f91c8d10b30703c
[ "MIT" ]
null
null
null
examples/python/train_sptm/src/test/sptm.py
ravi-teja-mullapudi/ViZDoom
7aa037fc9b25aac200f4b1496f91c8d10b30703c
[ "MIT" ]
1
2021-02-08T06:28:07.000Z
2021-02-08T06:28:07.000Z
from test_setup import * import os.path from numpy import mean from numpy import median import networkx as nx from trajectory_plotter import * def load_keras_model(number_of_input_frames, number_of_actions, path, load_method=resnet.ResnetBuilder.build_resnet_18): result = load_method((number_of_input_frames * NET_...
43.153203
158
0.712497
814c5ac85fdb895521be7f15d2d3be584f270c3a
3,440
py
Python
artemis/plotting/test_live_plotting.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
235
2016-08-26T14:18:51.000Z
2022-03-13T10:54:39.000Z
artemis/plotting/test_live_plotting.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
112
2016-04-30T11:48:38.000Z
2021-01-12T20:17:32.000Z
artemis/plotting/test_live_plotting.py
peteroconnor-bc/artemis
ad2871fae7d986bf10580eec27aee5b7315adad5
[ "BSD-2-Clause-FreeBSD" ]
31
2016-11-05T19:09:19.000Z
2021-09-13T07:35:40.000Z
import time from artemis.plotting.live_plotting import LiveStream, LivePlot, LiveCanal from artemis.plotting.matplotlib_backend import MovingImagePlot, MovingPointPlot, LinePlot, ImagePlot, HistogramPlot from itertools import count from six.moves import xrange __author__ = 'peter' import numpy as np def test_streami...
36.595745
159
0.603779
5fd1d3eafc0c6ea9be9d8aa39b8d8a74096f3a8f
21,065
py
Python
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import json import re import textwrap from datetime import date, timedelta, datetime import transaction from webtest import Upload from onegov.form import FormCollection from onegov.reservation import ResourceCollection from tests.onegov.org.common import get_mail def test_tickets(client): assert client.get( ...
32.658915
78
0.659388
0f53d36a2ebcf0474752e385834939bb37d47bf7
1,363
py
Python
coloredLogger.py
Yaoyi-Li/Xmonitor
c99659efd45c00df42518cc35441726cd1eb8901
[ "MIT" ]
null
null
null
coloredLogger.py
Yaoyi-Li/Xmonitor
c99659efd45c00df42518cc35441726cd1eb8901
[ "MIT" ]
null
null
null
coloredLogger.py
Yaoyi-Li/Xmonitor
c99659efd45c00df42518cc35441726cd1eb8901
[ "MIT" ]
null
null
null
import logging _BLACK, _RED, _GREEN, _YELLOW, _BLUE, _MAGENTA, _CYAN, _WHITE = range(8) RESET_SEQ = "\033[0m" COLOR_SEQ = "\033[1;%dm" BOLD_SEQ = "\033[1m" COLORS = { 'WARNING': _YELLOW, 'INFO': _WHITE, 'DEBUG': _BLUE, 'CRITICAL': _YELLOW, 'ERROR': _RED } LOG_LEVEL = logging.INFO class Colored...
25.240741
90
0.660308
b09aa911cdc273be4a2f35bbf4912d3844e297a5
4,121
py
Python
puppersim/pupper_v2.py
jadenvc/puppersim
1b3f3e3fc0515d5d6101622e0d729c779debfd32
[ "Apache-2.0" ]
2
2022-02-22T01:15:57.000Z
2022-02-24T19:49:25.000Z
puppersim/pupper_v2.py
jadenvc/puppersim
1b3f3e3fc0515d5d6101622e0d729c779debfd32
[ "Apache-2.0" ]
7
2021-11-01T20:04:31.000Z
2022-03-31T02:51:55.000Z
puppersim/pupper_v2.py
jadenvc/puppersim
1b3f3e3fc0515d5d6101622e0d729c779debfd32
[ "Apache-2.0" ]
6
2021-10-17T08:39:58.000Z
2021-12-06T07:54:12.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
40.009709
117
0.745693
aad326e96aa625a5bfbfd7a85e6dbdd2b1510abf
21,492
py
Python
tools/c7n_azure/c7n_azure/utils.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
1
2020-12-18T03:27:53.000Z
2020-12-18T03:27:53.000Z
tools/c7n_azure/c7n_azure/utils.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
11
2019-12-15T17:52:14.000Z
2020-12-09T05:06:24.000Z
tools/c7n_azure/c7n_azure/utils.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
9
2019-11-18T07:46:44.000Z
2020-04-15T11:20:20.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import collections import datetime import enum import hashlib import itertools import logging import re import time import uuid from concurrent.futures import as_completed from azure.graphrbac.models import DirectoryObject, GetObjectsParame...
35.641791
100
0.627117
9e7c211ea865bc3e1186d0588f2a874463ad305c
6,679
py
Python
condaw/setup_environment.py
banq-mlutils/condaw
b586afa7815770fe55b483d7137141f10f2b5ee3
[ "MIT" ]
null
null
null
condaw/setup_environment.py
banq-mlutils/condaw
b586afa7815770fe55b483d7137141f10f2b5ee3
[ "MIT" ]
null
null
null
condaw/setup_environment.py
banq-mlutils/condaw
b586afa7815770fe55b483d7137141f10f2b5ee3
[ "MIT" ]
null
null
null
""" hold logic for setting up environment """ import codecs import hashlib import json import os import re import subprocess from condaw.file_constants import path_to_conda, CONDAW_FI_HASH_FILE from condaw.utils import print_verbose def setup_conda_environment(project_folder, conda_folder): """ setup conda e...
31.956938
111
0.651145
159c87443c7f01584ac67e6d5e663e67562958bf
862
py
Python
Exercise5/Exercise4/main.py
Ssteevooh/Object-Oriented-Programming
be39b2721f43605bb214d7acc89128455c48c80d
[ "MIT" ]
null
null
null
Exercise5/Exercise4/main.py
Ssteevooh/Object-Oriented-Programming
be39b2721f43605bb214d7acc89128455c48c80d
[ "MIT" ]
null
null
null
Exercise5/Exercise4/main.py
Ssteevooh/Object-Oriented-Programming
be39b2721f43605bb214d7acc89128455c48c80d
[ "MIT" ]
null
null
null
# File name: main.py # Author: Steve Hommy # Description: Main function file from playerClass import Player from diceClass import Dice def main(): # Giving values to object player1 = Player("Steve", "Hommy", 1) player2 = Player("Tom", "Cruise", 2) print("Player1 status:", player1) print("Player...
23.944444
77
0.657773
acab54c2cd2e77aa5b8a89b156443e16b2637d6a
2,471
py
Python
instancebuilder/dc_php.py
devopscenter/dcStack
594373ac40d1f2075dafb0c470e4a2ab836c38fc
[ "ECL-2.0", "Apache-2.0" ]
3
2017-03-02T18:41:29.000Z
2021-03-15T17:15:58.000Z
instancebuilder/dc_php.py
devopscenter/dcStack
594373ac40d1f2075dafb0c470e4a2ab836c38fc
[ "ECL-2.0", "Apache-2.0" ]
32
2016-11-10T10:52:00.000Z
2022-02-21T15:39:40.000Z
instancebuilder/dc_php.py
devopscenter/dcStack
594373ac40d1f2075dafb0c470e4a2ab836c38fc
[ "ECL-2.0", "Apache-2.0" ]
2
2017-08-02T19:26:47.000Z
2020-06-04T07:24:39.000Z
#!/usr/bin/env php3 """Docstring for module.""" import sys import argparse import os from elementbase import ElementBase # ============================================================================== __version__ = "0.1" __copyright__ = "Copyright 2017, devops.center" __credits__ = ["Bob Lozano", "Gregg Jensen"] __l...
35.811594
80
0.514771
046072ca78a6388e3c605d5fa70f0cca1a446e0a
4,964
py
Python
program/object-detection-tf-py-codereef/calc_metrics_oid.py
code-reef/ck-tensorflow-codereef
c078f25b82ce7606043fbc58d3b1e474c84c7402
[ "BSD-3-Clause" ]
108
2016-08-16T09:35:49.000Z
2021-12-01T06:19:04.000Z
program/object-detection-tf-py-codereef/calc_metrics_oid.py
code-reef/ck-tensorflow-codereef
c078f25b82ce7606043fbc58d3b1e474c84c7402
[ "BSD-3-Clause" ]
62
2016-11-09T00:38:37.000Z
2020-07-01T13:50:33.000Z
program/object-detection-tf-py-codereef/calc_metrics_oid.py
code-reef/ck-tensorflow-codereef
c078f25b82ce7606043fbc58d3b1e474c84c7402
[ "BSD-3-Clause" ]
23
2016-09-29T16:04:23.000Z
2020-09-08T09:11:32.000Z
# # Copyright (c) 2018 cTuning foundation. # See CK COPYRIGHT.txt for copyright details. # # SPDX-License-Identifier: BSD-3-Clause. # See CK LICENSE.txt for licensing details. # import os import numpy as np from object_detection.core import standard_fields from object_detection.legacy import evaluator from object_de...
32.874172
123
0.69863
8df827dd335bee52fef26e47e24c66819304b4df
1,914
py
Python
test/sanity/iframe-remote-neg/test.py
frank-dspeed/nw.js
18299ec34ed610d75479497e2e21e99db2c0cf20
[ "MIT" ]
27,296
2015-01-14T15:48:22.000Z
2022-03-31T02:09:51.000Z
test/sanity/iframe-remote-neg/test.py
SaulGDev/nw.js
25eea59e189603685d804e0f7383643f8df4ae3c
[ "MIT" ]
5,685
2015-01-14T15:49:29.000Z
2022-03-31T11:27:47.000Z
test/sanity/iframe-remote-neg/test.py
SaulGDev/nw.js
25eea59e189603685d804e0f7383643f8df4ae3c
[ "MIT" ]
3,396
2015-01-14T15:45:54.000Z
2022-03-28T06:48:36.000Z
import time import os import subprocess import sys from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common import utils sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from nw_util import * chrome_options = Options() chrome_optio...
28.567164
152
0.674504
bc76c8c3a2b2bd832c71d74f25ee4665628c28d9
4,886
py
Python
core/modules/OTModuleWorkFlowItem.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
2
2021-04-14T15:58:50.000Z
2021-08-02T07:23:45.000Z
core/modules/OTModuleWorkFlowItem.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
null
null
null
core/modules/OTModuleWorkFlowItem.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
null
null
null
from core.modules.OTModuleProjectItem import OTModuleProjectItem import cv2 import OpenGL.GL as GL import OpenGL.GLU as GLU import math import core.utils.tools as tools class OTModuleWorkFlowItem(OTModuleProjectItem): """ Abstract class that implement the OTProjectViewerWorkFlowWidget item """ def __init__(sel...
33.696552
98
0.6535
830eb692874ea2e00b24e693a97ad368c9dcfebf
9,992
py
Python
selfdrive/car/hyundai/carcontroller.py
agegold/openpilot-2
f31b02c59961e3d00d95fdc474a4864b8d284cc6
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/carcontroller.py
agegold/openpilot-2
f31b02c59961e3d00d95fdc474a4864b8d284cc6
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/carcontroller.py
agegold/openpilot-2
f31b02c59961e3d00d95fdc474a4864b8d284cc6
[ "MIT" ]
1
2020-10-21T11:05:19.000Z
2020-10-21T11:05:19.000Z
from cereal import car, log from common.realtime import DT_CTRL from selfdrive.car import apply_std_steer_torque_limits from selfdrive.car.hyundai.hyundaican import create_lkas11, create_clu11, create_lfahda_mfc, create_mdps12 from selfdrive.car.hyundai.values import Buttons, CarControllerParams, CAR, FEATURES from ope...
31.821656
126
0.675941
832e1ffe6a4b1c671f649354fada4742e56a4a99
1,101
py
Python
apps/main/translation.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
apps/main/translation.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
apps/main/translation.py
major-hub/soil_app
ddd250161ad496afd4c8484f79500ff2657b51df
[ "MIT" ]
null
null
null
from modeltranslation.decorators import register from modeltranslation.translator import TranslationOptions from main.models import Service, News, File, Laboratory, GalleryType, Employee, Document, History, Function @register(Service) class ServiceTranslation(TranslationOptions): fields = ('name', 'about') @re...
22.02
107
0.75386
87b8b5771145a03891e3e8f10631b011dee9289c
170
py
Python
tools/generate_token.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
8
2018-03-25T22:02:24.000Z
2021-04-26T22:07:02.000Z
tools/generate_token.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
null
null
null
tools/generate_token.py
lagmoellertim/ImageShare-DesktopApp
348ad4a07c790ecb218042e59acf51421e093434
[ "MIT" ]
1
2018-05-24T05:15:43.000Z
2018-05-24T05:15:43.000Z
import secrets def generate_token(): """ Generates a 16 hex symbols long string :return: String with 16 hex symbols """ return secrets.token_hex(8)
17
42
0.664706
84ba9c3f635332d55498ae94f2e5ec07e7c97d13
2,330
py
Python
apps/listings/choices.py
csyu12/RS_System
940b58e776dc59c7d287975bf145acdbb85d1018
[ "MIT" ]
null
null
null
apps/listings/choices.py
csyu12/RS_System
940b58e776dc59c7d287975bf145acdbb85d1018
[ "MIT" ]
null
null
null
apps/listings/choices.py
csyu12/RS_System
940b58e776dc59c7d287975bf145acdbb85d1018
[ "MIT" ]
null
null
null
bedroom_choices = { '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, '10': 10 } price_choices = { '100000': '$100,000', '200000': '$200,000', '300000': '$300,000', '400000': '$400,000', '500000': '$500,000', '600000': '$600,000', ...
19.91453
35
0.400429
6c147b93cd84bc29f5229989970ec1bc14b407e6
792
py
Python
Pascal's Triangle.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Pascal's Triangle.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Pascal's Triangle.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers directly above it. Example: Input: 5 Output: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] ''' class Solution(object): def generate(self, n...
19.317073
86
0.481061
1e9995be176d13b2588dadc419e13b9769360f43
3,474
py
Python
app/models.py
Burence1/times-bueno
a8bb92199d3b0a934835e076862dffcc6b6178af
[ "MIT" ]
null
null
null
app/models.py
Burence1/times-bueno
a8bb92199d3b0a934835e076862dffcc6b6178af
[ "MIT" ]
null
null
null
app/models.py
Burence1/times-bueno
a8bb92199d3b0a934835e076862dffcc6b6178af
[ "MIT" ]
null
null
null
from .import db from flask_login import UserMixin,current_user from werkzeug.security import generate_password_hash,check_password_hash from datetime import datetime from . import login_manager @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin,db.Model): _...
25.357664
83
0.725964
71ea0a7c51354bf96790930ea1ddef99bd03fb3c
20,752
py
Python
pysit/core/receivers.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
64
2015-09-08T06:23:27.000Z
2022-03-09T23:35:24.000Z
pysit/core/receivers.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
23
2015-10-08T01:14:24.000Z
2021-07-15T11:37:05.000Z
pysit/core/receivers.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
48
2015-06-25T14:48:22.000Z
2021-12-06T19:50:25.000Z
import itertools import numpy as np import scipy.sparse as spsp from scipy.interpolate import interp1d from .mesh_representation import MeshRepresentationBase, PointRepresentationBase __all__ = ['PointReceiver', 'ReceiverSet'] __docformat__ = "restructuredtext en" class ReceiverBase(object): def __init__(self...
33.2032
137
0.591557
60a4accb113e4ccc227ccb646f8a26aa6ebe8109
754
py
Python
utility/libc/ucube.py
ghsecuritylab/AliOS-Things-WILC1000-Development
8e407dff709dc3f56a6858798967743f2f77f42f
[ "Apache-2.0" ]
1
2019-10-15T23:05:43.000Z
2019-10-15T23:05:43.000Z
utility/libc/ucube.py
ghsecuritylab/AliOS-Things-WILC1000-Development
8e407dff709dc3f56a6858798967743f2f77f42f
[ "Apache-2.0" ]
null
null
null
utility/libc/ucube.py
ghsecuritylab/AliOS-Things-WILC1000-Development
8e407dff709dc3f56a6858798967743f2f77f42f
[ "Apache-2.0" ]
2
2018-09-29T06:01:58.000Z
2020-03-06T15:57:17.000Z
src = [] include_tmp = [] if aos_global_config.compiler == 'armcc': src = Split(''' compilers/armlibc/armcc_libc.c ''') include_tmp = Split(''' compilers/armlibc ''') elif aos_global_config.compiler == 'rvct': src = Split(''' compilers/armlibc/armcc_libc.c ''') ...
23.5625
45
0.582228
90111701e09219abebdc3b575e039d7fc54be819
28,128
py
Python
tests/keras/engine/test_topology.py
Duncanswilson/keras
32aa192548b6b59bf407e583fbd246ba9f5f5676
[ "MIT" ]
1
2017-11-01T19:10:35.000Z
2017-11-01T19:10:35.000Z
tests/keras/engine/test_topology.py
dmaniry/keras
32aa192548b6b59bf407e583fbd246ba9f5f5676
[ "MIT" ]
null
null
null
tests/keras/engine/test_topology.py
dmaniry/keras
32aa192548b6b59bf407e583fbd246ba9f5f5676
[ "MIT" ]
1
2019-02-22T03:06:41.000Z
2019-02-22T03:06:41.000Z
import pytest import json import numpy as np from numpy.testing import assert_allclose from keras.layers import Dense, Dropout, Conv2D, InputLayer from keras import layers from keras.engine import Input, Layer, topology, get_source_inputs from keras.models import Model, Sequential from keras import backend as K from k...
34.725926
103
0.654686
5fd154284011131d1b3257421ddecf119340fea2
2,229
py
Python
tests/test_config.py
hruljov/virt-backup
e1426fb80bcb692561018b40dfbd6d7f5b686075
[ "BSD-2-Clause-FreeBSD" ]
54
2019-06-21T23:29:02.000Z
2022-03-28T14:30:44.000Z
tests/test_config.py
hruljov/virt-backup
e1426fb80bcb692561018b40dfbd6d7f5b686075
[ "BSD-2-Clause-FreeBSD" ]
28
2019-08-18T01:01:25.000Z
2021-07-14T17:39:42.000Z
tests/test_config.py
hruljov/virt-backup
e1426fb80bcb692561018b40dfbd6d7f5b686075
[ "BSD-2-Clause-FreeBSD" ]
12
2019-07-12T10:16:03.000Z
2022-03-09T05:33:30.000Z
import pytest import os import yaml from virt_backup import config from virt_backup.config import get_config, Config CUR_PATH = os.path.dirname(os.path.realpath(__file__)) TESTCONF_PATH = os.path.join(CUR_PATH, "testconfig", "config.yml") @pytest.fixture def get_testing_config(): return get_config(custom_path=...
26.855422
85
0.664872
efea65472967701848e4c55694227b9043eee94e
9,443
py
Python
src/app/zap_cluster_list.py
praveenCY/connectedhomeip
a49c250c85b334f3f82239f4ca1d5d113373c0e8
[ "Apache-2.0" ]
2
2021-06-25T00:17:42.000Z
2022-03-18T16:53:07.000Z
src/app/zap_cluster_list.py
krypton36/connectedhomeip
fb154cf94da43a62a394512faf5c113968c8a1cc
[ "Apache-2.0" ]
null
null
null
src/app/zap_cluster_list.py
krypton36/connectedhomeip
fb154cf94da43a62a394512faf5c113968c8a1cc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Parses a ZAP input file and outputs directories to compile.""" import argparse import pathlib import json import typing import sys # List of directories in src/app/clusters to build for server clusters. SERVER_CLUSTERS: typing.Dict[str, typing.List[str]] = { 'ACCESS_CONTROL_CLUSTER': ['a...
37.621514
93
0.668855
087f648c6edb27e7510a76d08618a379a056b7ea
17,983
py
Python
rex/utilities/loggers.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
8
2020-11-18T19:42:55.000Z
2022-01-12T04:24:05.000Z
rex/utilities/loggers.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
57
2020-05-01T14:33:34.000Z
2022-02-18T17:52:49.000Z
rex/utilities/loggers.py
psusmars/rex
1891e1e41f899e5f479545ff8d8e9fc76a1929e6
[ "BSD-3-Clause" ]
4
2020-08-20T16:46:15.000Z
2022-02-22T19:46:23.000Z
# -*- coding: utf-8 -*- """ Logging wrapper """ from copy import deepcopy import h5py import logging import numpy as np import os import pandas as pd import psutil import scipy import sys import time from warnings import warn from rex.version import __version__ from rex.utilities.exceptions import LoggerWarning from r...
29.723967
79
0.581883
e6c999da77009af6b743f6eeae8bc45eb5683b31
15,300
py
Python
train_mdc.py
janghyuncho/PiCIE
a6d1de479282be872f4aa23884d72bcec8df6424
[ "MIT" ]
113
2021-06-19T08:21:43.000Z
2022-03-31T09:22:18.000Z
train_mdc.py
janghyuncho/PiCIE
a6d1de479282be872f4aa23884d72bcec8df6424
[ "MIT" ]
24
2021-06-28T07:16:08.000Z
2022-03-31T12:53:27.000Z
train_mdc.py
janghyuncho/PiCIE
a6d1de479282be872f4aa23884d72bcec8df6424
[ "MIT" ]
17
2021-06-23T08:34:36.000Z
2022-03-02T21:03:52.000Z
import argparse import os import time as t import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from data.coco_train_dataset import TrainCOCO from data.coco_eval_dataset import EvalCOCO from utils import * from commons import * from modules import fpn def parse_arguments(): par...
48.417722
144
0.563922
6e731343133462090d5e73e846c41556c3b5516a
1,589
py
Python
body/migrations/0001_initial.py
IsmaelB83/Django-Workout-App
6cb0cd403ee39524ae6d1aaaea0d794fefd88e9b
[ "MIT" ]
1
2021-07-04T20:41:13.000Z
2021-07-04T20:41:13.000Z
body/migrations/0001_initial.py
IsmaelB83/Django-Workout-App
6cb0cd403ee39524ae6d1aaaea0d794fefd88e9b
[ "MIT" ]
null
null
null
body/migrations/0001_initial.py
IsmaelB83/Django-Workout-App
6cb0cd403ee39524ae6d1aaaea0d794fefd88e9b
[ "MIT" ]
1
2020-07-22T12:50:20.000Z
2020-07-22T12:50:20.000Z
# Generated by Django 2.0 on 2018-06-20 20:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Muscle', fields=[ ...
37.833333
116
0.584644
cf353e3d9d53517df039a296601a6063a2be2cb6
604
py
Python
P11082.py
daily-boj/RanolP
74294a4628e96a64def885fdcdd9c1444224802c
[ "Unlicense" ]
13
2020-04-07T16:05:29.000Z
2021-11-16T07:30:05.000Z
P11082.py
daily-boj/RanolP
74294a4628e96a64def885fdcdd9c1444224802c
[ "Unlicense" ]
2
2020-04-14T18:06:51.000Z
2020-04-15T12:37:57.000Z
P11082.py
daily-boj/RanolP
74294a4628e96a64def885fdcdd9c1444224802c
[ "Unlicense" ]
7
2020-04-07T16:13:45.000Z
2021-09-30T18:49:35.000Z
import re from fractions import Fraction lv = lambda x: 10 ** len(str(x)) if x != "0" else 1 lvten = lambda x: 10 ** len(str(x)) result = re.match( r"^(?P<int>\d+)(?:\.(?P<just>\d+)?(?:\((?P<rep>\d+)\))?)?$", input() ).groupdict() integral = result["int"] just = result["just"] or "" rep = result["rep"] or "" num...
26.26087
86
0.582781
54107abbde94ab13f0d21899b580385d29de80ab
314
py
Python
gamerent/users/apps.py
juliusz-musik/gamerent
e0310fed1a3e4d2f8314b71c9aa3d083926abbb6
[ "MIT" ]
null
null
null
gamerent/users/apps.py
juliusz-musik/gamerent
e0310fed1a3e4d2f8314b71c9aa3d083926abbb6
[ "MIT" ]
null
null
null
gamerent/users/apps.py
juliusz-musik/gamerent
e0310fed1a3e4d2f8314b71c9aa3d083926abbb6
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class UsersConfig(AppConfig): name = "gamerent.users" verbose_name = _("Users") def ready(self): try: import gamerent.users.signals # noqa F401 except ImportError: pass
22.428571
54
0.656051
953308701682ea7ff2d5873bac1525fc9b6c7e38
4,581
py
Python
leprikon/middleware.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
4
2018-10-29T17:46:09.000Z
2021-12-16T08:57:48.000Z
leprikon/middleware.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
68
2016-07-11T07:48:54.000Z
2022-03-18T01:32:06.000Z
leprikon/middleware.py
leprikon-cz/leprikon
b1bec36fb6bcf0220bffccca53b6f200f9e95910
[ "BSD-3-Clause" ]
2
2016-07-12T20:39:53.000Z
2020-10-10T03:14:42.000Z
from django.contrib.auth.views import redirect_to_login from django.core.exceptions import PermissionDenied from django.urls import reverse_lazy from . import __version__ from .conf import settings from .models.leprikonsite import LeprikonSite from .models.roles import Leader from .models.schoolyear import SchoolYear ...
35.789063
101
0.621043
65ff26c0a7da3de6ef77ea3d449264ec81449f42
218
py
Python
Coursera/Week.5/Task.6.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
Coursera/Week.5/Task.6.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
Coursera/Week.5/Task.6.py
v1nnyb0y/Coursera.BasePython
bbfb3184dc27a4cdb16b087123890991afbc5506
[ "MIT" ]
null
null
null
''' Количество нулей ''' def countZeros(n): count = 0 while(n > 0): a = int(input()) if (a == 0): count += 1 n -= 1 return count n = int(input()) print(countZeros(n))
12.823529
24
0.454128