hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
16a329d42e5fe4d870ae6840dac571c4c4bd741b
221
py
Python
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
1
2021-05-24T21:45:05.000Z
2021-05-24T21:45:05.000Z
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
null
null
null
ImageSearcher/admin.py
carpensa/dicom-harpooner
2d998c22c51e372fb9b5f3508c900af6f4405cd3
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from dicoms.models import Subject from dicoms.models import Session from dicoms.models import Series admin.site.register(Session) admin.site.register(Subject) admin.site.register(Series)
24.555556
33
0.837104
0
0
0
0
0
0
0
0
0
0
16a335de057546c0e95c5699aa9470bc30a7f928
334
py
Python
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
4
2016-07-03T08:18:45.000Z
2018-12-25T07:47:41.000Z
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
2
2021-03-20T00:02:08.000Z
2021-06-10T23:34:26.000Z
src/djangoreactredux/wsgi.py
noscripter/django-react-redux-jwt-base
078fb86005db106365df51fa11d8602fa432e3c3
[ "MIT" ]
1
2019-08-02T14:51:41.000Z
2019-08-02T14:51:41.000Z
""" WSGI config for django-react-redux-jwt-base project. """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoreactredux.settings.dev") from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoWhiteNoise application = get_wsgi_application() application = DjangoWhiteNoise...
23.857143
80
0.820359
0
0
0
0
0
0
0
0
116
0.347305
16a40296272a4a2617c7e2666b6828a4cb958030
1,414
py
Python
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
simple_settings/dynamic_settings/base.py
matthewh/simple-settings
dbddf8d5be7096ee7c4c3cc6d82824befa9b714f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from copy import deepcopy import jsonpickle class BaseReader(object): """ Base class for dynamic readers """ _default_conf = {} def __init__(self, conf): self.conf = deepcopy(self._default_conf) self.conf.update(conf) self.key_pattern = s...
28.28
68
0.609618
1,332
0.942008
0
0
0
0
0
0
294
0.207921
16a410bbf9dbba9b62a772c35376b67270885de8
3,981
py
Python
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
7
2019-03-27T03:59:50.000Z
2021-10-17T10:46:29.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
6
2019-04-13T15:55:55.000Z
2021-06-01T21:08:18.000Z
scripts/map_frame_to_utm_tf_publisher.py
coincar-sim/lanelet2_interface_ros
f1738766dd323ed64a4ebcc8254438920a587b80
[ "BSD-3-Clause" ]
4
2021-03-25T09:22:55.000Z
2022-03-22T05:40:49.000Z
#!/usr/bin/env python # # Copyright (c) 2018 # FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de) # KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted p...
38.278846
85
0.757096
0
0
0
0
0
0
0
0
1,939
0.487064
16a5b8fdf510e7bdeb3c6bd8d9c144db7f897552
52
py
Python
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
14
2019-07-14T08:29:04.000Z
2022-03-07T06:33:26.000Z
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
4
2020-03-24T18:25:26.000Z
2021-08-23T20:44:07.000Z
lectures/05-python-intro/examples/argv.py
mattmiller899/biosys-analytics
ab24a4c7206ed9a865e896daa57cee3c4e62df1f
[ "MIT" ]
33
2019-01-05T17:03:47.000Z
2019-11-11T20:48:24.000Z
#!/usr/bin/env python3 import sys print(sys.argv)
8.666667
22
0.711538
0
0
0
0
0
0
0
0
22
0.423077
16a6cc579db685a8a411c51c09771255b3e6c2c9
366
py
Python
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
tests/fixtures.py
easyas314159/cnftools
67896cf3d17587accfc5ad7e30730fea2394f558
[ "MIT" ]
null
null
null
from itertools import chain def make_comparable(*clauses): return set((frozenset(c) for c in chain(*clauses))) def count_clauses(*clauses): total = 0 for subclauses in clauses: total += len(subclauses) return total def unique_literals(*clauses): literals = set() for clause in chain(*clauses): literals.upda...
21.529412
52
0.734973
0
0
0
0
0
0
0
0
0
0
16a762cb2b4ddc4c0f253e56da58680346091ea8
7,879
py
Python
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
applications/FluidDynamicsApplication/tests/sod_shock_tube_test.py
Rodrigo-Flo/Kratos
f718cae5d1618e9c0e7ed1da9e95b7a853e62b1b
[ "BSD-4-Clause" ]
null
null
null
# Import kratos core and applications import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest import KratosMultiphysics.kratos_utilities as KratosUtilities from KratosMultiphysics.FluidDynamicsApplication.fluid_dynamics_analysis import FluidDynamicsAnalysis class SodShockTubeTest(KratosUni...
48.635802
142
0.615053
7,284
0.924483
0
0
0
0
0
0
4,031
0.511613
16a7758cb5092239aa048ae598f5849367159b11
647
py
Python
src/controllers/__init__.py
TonghanWang/NDQ
575f2e243bac1a567c072dbea8e093aaa4959511
[ "Apache-2.0" ]
63
2020-02-23T09:37:15.000Z
2022-01-17T01:30:50.000Z
src/controllers/__init__.py
fringsoo/NDQ
e243ba917e331065e82c6634cb1d756873747be5
[ "Apache-2.0" ]
14
2020-04-20T02:20:11.000Z
2022-03-12T00:16:33.000Z
src/controllers/__init__.py
mig-zh/NDQ
5720e3e8b529724e8d96a9a24c73bca24a11e7f9
[ "Apache-2.0" ]
16
2020-03-12T02:57:52.000Z
2021-11-27T13:07:08.000Z
from .basic_controller import BasicMAC from .cate_broadcast_comm_controller import CateBCommMAC from .cate_broadcast_comm_controller_full import CateBCommFMAC from .cate_broadcast_comm_controller_not_IB import CateBCommNIBMAC from .tar_comm_controller import TarCommMAC from .cate_pruned_broadcast_comm_controller import...
46.214286
66
0.797527
0
0
0
0
0
0
0
0
144
0.222566
16a89cacbc82dd93659b9a841883e22a139d8576
447
py
Python
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
main.py
1999foxes/run-cmd-from-websocket
0e2a080fe92b93c6cba63dfe5649ac2a3e745009
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import websockets logging.basicConfig() async def counter(websocket, path): try: print("connect") async for message in websocket: print(message) finally: USERS.remove(websocket) async def main(): async with websockets.serve(c...
17.88
60
0.657718
0
0
0
0
0
0
305
0.682327
43
0.096197
16a8a652721deb01765dac84306cf8e790d8b09a
3,998
py
Python
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
100
2020-05-21T10:23:31.000Z
2022-03-26T18:26:38.000Z
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
3
2020-08-19T18:14:01.000Z
2021-01-04T09:53:07.000Z
3d_Vnet/3dvnet.py
GingerSpacetail/Brain-Tumor-Segmentation-and-Survival-Prediction-using-Deep-Neural-Networks
f627ce48e44bcc7d295ee1cf4086bfdfd7705d44
[ "MIT" ]
25
2020-09-05T04:19:22.000Z
2022-02-09T19:30:29.000Z
import random import pandas as pd import numpy as np import matplotlib.pyplot as plt #%matplotlib inline import tensorflow as tf import keras.backend as K from keras.utils import to_categorical from keras import metrics from keras.models import Model, load_model from keras.layers import Input, BatchNormalizat...
34.465517
118
0.693847
0
0
0
0
0
0
0
0
405
0.101301
16a92c971c54838ec2fe27ba303cf0b8622f86ad
347
py
Python
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
24
2019-09-13T15:30:09.000Z
2022-03-09T06:35:59.000Z
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
null
null
null
vk/types/additional/active_offer.py
Inzilkin/vk.py
969f01e666c877c1761c3629a100768f93de27eb
[ "MIT" ]
12
2019-09-13T15:30:31.000Z
2022-03-01T10:13:32.000Z
from ..base import BaseModel # returned from https://vk.com/dev/account.getActiveOffers class ActiveOffer(BaseModel): id: str = None title: str = None instruction: str = None instruction_html: str = None short_description: str = None description: str = None img: str = None tag: str = ...
21.6875
58
0.665706
255
0.73487
0
0
0
0
0
0
58
0.167147
16a9cd5f8c3947e5f770014cb07528f411173928
18,818
py
Python
lib/networks/Resnet50_train.py
yangxue0827/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
193
2017-07-19T14:29:38.000Z
2021-10-20T07:35:42.000Z
lib/networks/Resnet50_train.py
yangxue0827/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
29
2017-07-24T10:07:22.000Z
2020-01-03T20:38:36.000Z
lib/networks/Resnet50_train.py
Zardinality/TF_Deformable_Net
00c86380fd2725ebe7ae22f41d460ffc0bca378d
[ "MIT" ]
67
2017-07-27T14:32:47.000Z
2021-12-27T13:10:37.000Z
# -------------------------------------------------------- # TFFRCNN - Resnet50 # Copyright (c) 2016 # Licensed under The MIT License [see LICENSE for details] # Written by miraclebiu # -------------------------------------------------------- import tensorflow as tf from .network import Network from ..fast_rcnn.config...
58.080247
189
0.597619
18,483
0.982198
0
0
0
0
0
0
6,342
0.337018
16aafc257a8e2aae93d3cae037dc8cf239e63a42
20,180
py
Python
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
330
2020-11-11T15:53:22.000Z
2022-03-30T06:45:57.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
47
2020-11-11T01:32:29.000Z
2022-03-30T01:33:28.000Z
lib/aws_sso_lib/assignments.py
vdesjardins/aws-sso-util
bf092a21674e8286c4445df7f4aae8ad061444ca
[ "Apache-2.0" ]
23
2020-11-25T14:12:37.000Z
2022-03-30T02:16:26.000Z
import re import numbers import collections import logging from collections.abc import Iterable import itertools import aws_error_utils from .lookup import Ids, lookup_accounts_for_ou from .format import format_account_id LOGGER = logging.getLogger(__name__) _Context = collections.namedtuple("_Context", [ "sess...
41.608247
147
0.637413
0
0
11,947
0.592022
0
0
0
0
4,857
0.240684
16abab9c314c051765ffd991fb6c764e6cf24cb5
235
py
Python
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-03-10T07:43:08.000Z
2020-03-10T07:43:08.000Z
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pic_search/webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import threading from concurrent.futures import ThreadPoolExecutor from service.train import do_train def thread_runner(thread_num, func, *args): executor = ThreadPoolExecutor(thread_num) f = executor.submit(do_train, *args)
26.111111
49
0.795745
0
0
0
0
0
0
0
0
0
0
16ac3137138a7e3b002c9c9337af2623d4ef26d0
2,600
py
Python
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
buildutil/main.py
TediCreations/buildutils
49a35e0926baf65f7688f89e53f525812540101c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import argparse import subprocess if __name__ == '__main__': from version import __version__ from configParser import ConfigParser else: from .version import __version__ from .configParser import ConfigParser def command(cmd): """Run a shell command""" subprocess.call(cmd, sh...
20.967742
65
0.672692
0
0
0
0
0
0
0
0
1,395
0.536538
16ad65c0a3b3c48d1d5528a704a36242b69e1b30
590
py
Python
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
63
2019-05-19T13:22:37.000Z
2022-03-30T13:21:40.000Z
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
67
2019-05-03T17:17:19.000Z
2021-06-21T11:02:10.000Z
python/get_links.py
quiddity-wp/mediawiki-api-demos
98910dbd9c2cbbb13db790f3e8979419aeab34d4
[ "MIT" ]
49
2019-02-19T09:28:33.000Z
2019-03-24T04:36:53.000Z
#This file is auto-generated. See modules.json and autogenerator.py for details #!/usr/bin/python3 """ get_links.py MediaWiki API Demos Demo of `Links` module: Get all links on the given page(s) MIT License """ import requests S = requests.Session() URL = "https://en.wikipedia.org/w/api.php" PAR...
16.857143
79
0.618644
0
0
0
0
0
0
0
0
357
0.605085
16adc3c8486e2f9e557cbef70e8a437e66aeb740
19,267
py
Python
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
null
null
null
gautools/submit_gaussian.py
thompcinnamon/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
2
2018-07-18T19:53:08.000Z
2019-02-25T23:25:51.000Z
gautools/submit_gaussian.py
theavey/QM-calc-scripts
60b06e14b2efd307d419201079bb24152ab0bd3c
[ "Apache-2.0" ]
1
2017-01-04T20:50:21.000Z
2017-01-04T20:50:21.000Z
#! /usr/bin/env python3 ######################################################################## # # # This script was written by Thomas Heavey in 2015. # # [email protected] [email protected] # # ...
44.496536
78
0.553537
0
0
0
0
0
0
0
0
9,207
0.477864
16aff0c4c406b2f10dac6cda72a39c612f61400e
2,036
py
Python
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
3
2022-01-04T13:32:11.000Z
2022-01-11T05:59:22.000Z
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
experiments/recorder.py
WeiChengTseng/maddpg
f2813ab8bc43e2acbcc69818672e2e2fd305a007
[ "MIT" ]
null
null
null
import json import copy import pdb import numpy as np import pickle def listify_mat(matrix): matrix = np.array(matrix).astype(str) if len(matrix.shape) > 1: matrix_list = [] for row in matrix: try: matrix_list.append(list(row)) except: pd...
27.513514
66
0.515717
1,634
0.802554
0
0
0
0
0
0
254
0.124754
16b0c13e303ebbec34fd3a80391f02025c584689
589
py
Python
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
generate/dummy_data/mvp/gen_csv.py
ifekxp/data
f3571223f51b3fcc3a708d9ac82e76e3cc1ee068
[ "MIT" ]
null
null
null
from faker import Faker import csv # Reference: https://pypi.org/project/Faker/ output = open('data.CSV', 'w', newline='') fake = Faker() header = ['name', 'age', 'street', 'city', 'state', 'zip', 'lng', 'lat'] mywriter=csv.writer(output) mywriter.writerow(header) for r in range(1000): mywriter...
21.814815
73
0.556876
0
0
0
0
0
0
0
0
107
0.181664
16b0eceb3e8aafd2e9b6e9e274abab88018c34aa
495
py
Python
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
subir/ingreso/migrations/0004_auto_20191003_1509.py
Brandon1625/subir
b827a30e64219fdc9de07689d2fb32e2c4bd02b7
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.4 on 2019-10-03 21:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ingreso', '0003_auto_20190907_2152'), ] operations = [ migrations.AlterField( model_name='detal...
24.75
116
0.650505
369
0.745455
0
0
0
0
0
0
126
0.254545
16b1afada94a1ed1f6f7ce90f2dda1d6203c70b0
1,302
py
Python
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
3
2021-02-28T00:52:53.000Z
2021-03-01T06:23:33.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/nao/test/test_0017_tddft_iter_nao.py
mfkasim1/pyscf
7be5e015b2b40181755c71d888449db936604660
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
from __future__ import print_function, division import os,unittest from pyscf.nao import tddft_iter dname = os.path.dirname(os.path.abspath(__file__)) td = tddft_iter(label='water', cd=dname) try: from pyscf.lib import misc libnao_gpu = misc.load_library("libnao_gpu") td_gpu = tddft_iter(label='water', cd...
33.384615
107
0.678955
887
0.68126
0
0
0
0
0
0
262
0.201229
16b1e0777507d0977f5c8842b27867dc734bcc90
898
py
Python
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
setup.py
dimasciput/osm2geojson
7b5ba25e39d80838d41f342237161e0fdc5e64b6
[ "MIT" ]
null
null
null
import io from os import path from setuptools import setup dirname = path.abspath(path.dirname(__file__)) with io.open(path.join(dirname, 'README.md'), encoding='utf-8') as f: long_description = f.read() def parse_requirements(filename): lines = (line.strip() for line in open(path.join(dirname, filename))) ...
32.071429
73
0.722717
0
0
0
0
0
0
0
0
239
0.266147
16b268fae933e4415a5583a098a6d7daa28d2e18
849
py
Python
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
4
2020-04-07T00:38:46.000Z
2022-03-10T03:34:42.000Z
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
null
null
null
Cap_11/ex11.6.py
gguilherme42/Livro-de-Python
465a509d50476fd1a87239c71ed741639d58418b
[ "MIT" ]
1
2021-04-22T02:45:38.000Z
2021-04-22T02:45:38.000Z
import sqlite3 from contextlib import closing nome = input('Nome do produto: ').lower().capitalize() with sqlite3.connect('precos.db') as conexao: with closing(conexao.cursor()) as cursor: cursor.execute('SELECT * FROM Precos WHERE nome_produto = ?', (nome,)) registro = cursor.fetchone() ...
38.590909
102
0.572438
0
0
0
0
0
0
0
0
274
0.320468
16b631fdc9b05e860febb665678ebc3703e11591
4,882
py
Python
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
1
2020-07-13T19:02:26.000Z
2020-07-13T19:02:26.000Z
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
jet20/backend/solver.py
JTJL/jet20
2dc01ebf937f8501bcfb15c6641c569f8097ccf5
[ "MIT" ]
null
null
null
import torch import time import copy from jet20.backend.constraints import * from jet20.backend.obj import * from jet20.backend.config import * from jet20.backend.core import solve,OPTIMAL,SUB_OPTIMAL,USER_STOPPED import logging logger = logging.getLogger(__name__) class Solution(object): def __init__(self,x...
26.247312
102
0.546907
4,575
0.937116
0
0
1,153
0.236174
0
0
239
0.048955
16b8038b17e6b43264d1acbee80a12ded5b8d440
1,077
py
Python
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
2
2020-07-14T13:55:17.000Z
2021-05-07T11:25:31.000Z
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
mengfu188/mmdetection.bak
0bc0ea591b5725468f83f9f48630a1e3ad599303
[ "Apache-2.0" ]
null
null
null
import torch from mmdet.datasets.pipelines.transforms import Pad from mmdet.datasets.pipelines.transforms import FilterBox import numpy as np import cv2 def test_pad(): raw = dict( img=np.zeros((200, 401, 3), dtype=np.uint8) ) cv2.imshow('raw', raw['img']) pad = Pad(square=True, pad_val=255) ...
22.914894
57
0.535747
0
0
0
0
0
0
0
0
74
0.068709
16b8947aeb5e92484b74a59f50dce7a8d1075f22
23,601
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
akulamartin/lumberyard
2d4be458a02845179be098e40cdc0c48f28f3b5a
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard
1c52b941dcb7d94341fcf21275fe71ff67173ada
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/unit_test_lumberyard_modules.py
29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/lumberyard
1c52b941dcb7d94341fcf21275fe71ff67173ada
[ "AML" ]
4
2019-08-05T07:25:46.000Z
2020-12-07T05:12:55.000Z
# # 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...
43.304587
191
0.637897
16,837
0.713402
344
0.014576
5,278
0.223635
0
0
4,643
0.196729
16ba68b504461ec3bb45c6f18a8ccf9704c15e7e
7,471
py
Python
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
3
2019-11-22T08:04:18.000Z
2019-11-26T06:55:36.000Z
linprog_curvefit.py
drofp/linprog_curvefit
96ba704edae7cea42d768d7cc6d4036da2ba313a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Curve fitting with linear programming. Minimizes the sum of error for each fit point to find the optimal coefficients for a given polynomial. Overview: Objective: Sum of errors Subject to: Bounds on coefficients Credit: "Curve Fitting with Linear Programming", H. Swanson and R. E. ...
39.115183
80
0.674073
99
0.013251
0
0
0
0
0
0
2,200
0.294472
16bce26f2376d0aa7170df9f650a479bf160647c
11,177
py
Python
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
build-script-helper.py
aciidb0mb3r/swift-stress-tester
aad9df89d2aae4640e9f4e06c234818c6b3ed434
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This source file is part of the Swift.org open source project Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See https://swift.org/LICENSE.txt for license information See https://swift.org/CONTRI...
38.277397
204
0.711014
0
0
0
0
0
0
0
0
3,545
0.317169
16bd3669143df2de8767a9c8bf39a0f217eb03a8
1,701
py
Python
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/deconz/test_scene.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/deconz/test_scene.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""deCONZ scene platform tests.""" from unittest.mock import patch from openpeerpower.components.scene import DOMAIN as SCENE_DOMAIN, SERVICE_TURN_ON from openpeerpower.const import ATTR_ENTITY_ID from .test_gateway import ( DECONZ_WEB_REQUEST, mock_deconz_put_request, setup_deconz_integration, ) async...
27.885246
82
0.627278
0
0
0
0
0
0
1,382
0.812463
388
0.228101
16bd643a28b81f74d29d0b9a43b20d245093f663
12,716
py
Python
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
129
2017-08-25T11:45:15.000Z
2022-03-29T05:11:25.000Z
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
251
2017-07-27T10:05:58.000Z
2022-03-02T12:46:13.000Z
tensorhive/config.py
roscisz/TensorHive
4a680f47a0ee1ce366dc82ad9964e229d9749c4e
[ "Apache-2.0" ]
20
2017-08-13T13:05:14.000Z
2022-03-19T02:21:37.000Z
from pathlib import PosixPath import configparser from typing import Dict, Optional, Any, List from inspect import cleandoc import shutil import tensorhive import os import logging log = logging.getLogger(__name__) class CONFIG_FILES: # Where to copy files # (TensorHive tries to load these by default) con...
42.959459
118
0.681268
11,677
0.91757
0
0
528
0.04149
0
0
3,674
0.2887
16bdc023e7792aee5f95f6dd1ec12e9328dbed08
4,534
py
Python
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
1
2021-01-06T20:49:32.000Z
2021-01-06T20:49:32.000Z
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
model.py
iz2late/baseline-seq2seq
2bfa8981083aed8d30befeb42e41fe78d8ec1641
[ "MIT" ]
null
null
null
import random from typing import Tuple import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch import Tensor class Encoder(nn.Module): def __init__(self, input_dim, emb_dim, enc_hid_dim, dec_hid_dim, dropout): super().__init__() self.input_dim = in...
37.163934
90
0.635862
4,334
0.955889
0
0
0
0
0
0
100
0.022056
16be469a1debb4ce731178e138eb07a68236018a
7,907
py
Python
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xuyannus/Machine-Learning-Collection
6d5dcd18d4e40f90e77355d56a2902e4c617ecbe
[ "MIT" ]
3,094
2020-09-20T04:34:31.000Z
2022-03-31T23:59:46.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
79
2020-09-24T08:54:17.000Z
2022-03-30T14:45:08.000Z
ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py
xkhainguyen/Machine-Learning-Collection
425d196e9477dbdbbd7cc0d19d29297571746ab5
[ "MIT" ]
1,529
2020-09-20T16:21:21.000Z
2022-03-31T21:16:25.000Z
import torch import torch.nn as nn import torch.optim as optim from torchtext.datasets import Multi30k from torchtext.data import Field, BucketIterator import numpy as np import spacy import random from torch.utils.tensorboard import SummaryWriter # to print to tensorboard from utils import translate_sentence, bleu, s...
32.539095
103
0.682433
3,528
0.446074
0
0
0
0
0
0
2,346
0.296624
16beddc32cad55aeba19e5840d544ba51efbce38
2,533
py
Python
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
gail_chatbot/light/sqil/light_sentence_imitate_mixin.py
eublefar/gail_chatbot
fcb7798515c0e2c031b5127803eb8a9f1fd4f0ab
[ "MIT" ]
null
null
null
from typing import Dict, Any, List import string from parlai.core.agents import Agent from parlai.core.message import Message from random import sample import pathlib path = pathlib.Path(__file__).parent.absolute() class LightImitateMixin(Agent): """Abstract class that handles passing expert trajectories alo...
29.8
91
0.586656
2,310
0.911962
0
0
0
0
0
0
313
0.123569
16bf36b1dcc9b129dcd361097fbc1ea1ea920674
1,654
py
Python
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
1
2022-02-08T09:47:35.000Z
2022-02-08T09:47:35.000Z
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
62
2021-04-02T23:41:16.000Z
2022-03-25T13:16:10.000Z
pytudes/_2021/educative/grokking_the_coding_interview/fast_and_slow_pointers/_1__linked_list_cycle__easy.py
TeoZosa/pytudes
4f01ab20f936bb4b3f42d1946180d4a20fd95fbf
[ "Apache-2.0" ]
null
null
null
"""https://www.educative.io/courses/grokking-the-coding-interview/N7rwVyAZl6D Categories: - Binary - Bit Manipulation - Blind 75 See Also: - pytudes/_2021/leetcode/blind_75/linked_list/_141__linked_list_cycle__easy.py """ from pytudes._2021.utils.linked_list import ( ListNode, NodeType, ...
23.971014
82
0.605804
0
0
0
0
0
0
0
0
977
0.589976
16bf4f8f27c28015e220b292e189af4ce08ed99c
4,417
py
Python
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
2
2019-04-07T06:11:56.000Z
2019-10-14T05:08:16.000Z
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
httpd.py
whtt8888/TritonHTTPserver
99adf3f1e6c3867bb870cda8434605c59409ea19
[ "MIT" ]
null
null
null
import sys import os import socket import time import threading class MyServer: def __init__(self, port, doc_root): self.port = port self.doc_root = doc_root self.host = '127.0.0.1' self.res_200 = "HTTP/1.1 200 OK\r\nServer: Myserver 1.0\r\n" self.res_404 = "HTTP/1.1 404 N...
31.105634
85
0.479511
3,189
0.721983
0
0
0
0
0
0
998
0.225945
16c04b9a7be2241d66d21a6886d268026e2fdc89
258
py
Python
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
metric/metric.py
riven314/ENetDepth_TimeAnlysis_Tmp
29bd864adf91700799d87b449d0c4e389f7028bc
[ "MIT" ]
null
null
null
class Metric(object): """Base class for all metrics. From: https://github.com/pytorch/tnt/blob/master/torchnet/meter/meter.py """ def reset(self): pass def add(self): pass def value(self): pass
18.428571
77
0.554264
256
0.992248
0
0
0
0
0
0
119
0.46124
16c081effc971dd24b22b938117db5e30575dfca
1,179
py
Python
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
pf_pweb_sourceman/task/git_repo_man.py
problemfighter/pf-pweb-sourceman
827b1d92ac992ec1495b128e99137aab1cfa09a0
[ "Apache-2.0" ]
null
null
null
from git import Repo from pf_pweb_sourceman.common.console import console from pf_py_file.pfpf_file_util import PFPFFileUtil class GitRepoMan: def get_repo_name_from_url(self, url: str): if not url: return None last_slash_index = url.rfind("/") last_suffix_index = url.rfind("...
33.685714
84
0.63274
1,051
0.891433
0
0
0
0
0
0
92
0.078032
16c22952eef284ef2bbd4cfa4e2bbaa9380b0ceb
2,969
py
Python
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
tool/remote_info.py
shanmukmichael/Asset-Discovery-Tool
82c3f2f5cecb394a1ad87b2e504fbef219a466fd
[ "MIT" ]
null
null
null
import socket import paramiko import json Hostname = '34.224.2.243' Username = 'ec2-user' key = 'G:/Projects/Python/Asset-Discovery-Tool/tool/s.pem' def is_connected(): try: # connect to the host -- tells us if the host is actually # reachable socket.create_connection(("8.8.8.8", 53)) ...
29.39604
84
0.594139
0
0
0
0
0
0
0
0
919
0.309532
16c3880f871252c2ad2ebcf1bd3aca25678856cb
16,099
py
Python
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
hvac/api/secrets_engines/kv_v2.py
Famoco/hvac
cdc1854385dd981de38bcb6350f222a52bcf3923
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """KvV2 methods module.""" from hvac import exceptions, utils from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT = 'secret' class KvV2(VaultApiBase): """KV Secrets Engine - Version 2 (API). Reference: https://www.vaultproject.io/api/secret/kv/k...
42.254593
127
0.638611
15,907
0.988074
0
0
0
0
0
0
10,605
0.658737
16c3b1e6ee4edc3e7c6e66622f8ee4afa8a44dad
512
py
Python
android/install-all.py
SaschaWillems/vulkan_slim
642bcf1eaba8bbcb94a8bec61f3454c597af72f9
[ "MIT" ]
28
2017-09-04T18:54:49.000Z
2021-09-18T11:52:04.000Z
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
null
null
null
android/install-all.py
0xm1nam0/Vulkan
ea726e617f71f5ff5c1503bca134b2a7ad17a1a7
[ "MIT" ]
1
2018-07-20T06:51:08.000Z
2018-07-20T06:51:08.000Z
# Install all examples to connected device(s) import subprocess import sys answer = input("Install all vulkan examples to attached device, this may take some time! (Y/N)").lower() == 'y' if answer: BUILD_ARGUMENTS = "" for arg in sys.argv[1:]: if arg == "-validation": BUILD_ARGUMENTS += "-v...
36.571429
111
0.644531
0
0
0
0
0
0
0
0
241
0.470703
16c4d3d9ff39c41395ea4a9779719c084f2fc55a
1,726
py
Python
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
main.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from generators.ahoughton import AhoughtonGenerator from render_config import RendererConfig from problem_renderer import ProblemRenderer from moonboard import get_moonboard from adapters.default import DefaultProblemAdapter from adapters.crg import CRGProblemAdapter from adapters.ahoughton import AhoughtonAdapter impo...
30.280702
113
0.707995
0
0
0
0
0
0
0
0
218
0.126304
16c4fdb052f6373448ef88971819f508813eb2d7
5,228
py
Python
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
GearBot/Util/Pages.py
JohnyTheCarrot/GearBot
8a32bfc79f997a154c9abccbf6742a79fc5257b0
[ "MIT" ]
null
null
null
import discord from Util import Utils, Emoji, Translator page_handlers = dict() known_messages = dict() def on_ready(bot): load_from_disc() def register(type, init, update, sender_only=False): page_handlers[type] = { "init": init, "update": update, "sender_only": sender_only }...
33.299363
213
0.55394
0
0
0
0
0
0
2,106
0.402831
543
0.103864
16c7d2d61e641808d594577e77047ea93c4d6c86
8,007
py
Python
software/Opal/spud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-11T02:39:46.000Z
2020-05-11T03:08:38.000Z
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
null
null
null
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/dialogs.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-21T22:50:19.000Z
2020-10-28T17:16:31.000Z
#!/usr/bin/env python # This file is part of Diamond. # # Diamond 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 3 of the License, or # (at your option) any later version. # # ...
28.193662
95
0.723242
2,426
0.302985
0
0
0
0
0
0
1,696
0.211815
16c86dba44c4d72104ae5760fa8ff0a89daa4441
5,793
py
Python
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
2
2021-04-03T09:49:46.000Z
2021-12-27T19:32:32.000Z
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
src/mazes.py
tim-fi/pyxel_games
3df9d7e1f3d5436d2051db3f5783bdeab916c054
[ "Unlicense" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field, InitVar from typing import List, Tuple, Iterator, Iterable, Optional from random import choice import pyxel # ------------------------------------------------------- # Types # ------------------------------------------------------- Maze = T...
32.544944
79
0.468324
4,591
0.792508
0
0
4,613
0.796306
0
0
529
0.091317
16c8cf672763555c8ebe97c11704c5a42703427b
5,536
py
Python
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-10-25T13:08:04.000Z
2020-01-05T11:29:18.000Z
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
9
2020-05-10T10:13:56.000Z
2022-03-11T23:33:52.000Z
bobjiang/settings.py
bobjiangps/django-blog
6afd36fa96c5a027546575b362b0a481c5d7c1a5
[ "MIT" ]
3
2019-02-11T02:55:51.000Z
2020-01-05T11:29:20.000Z
""" Django settings for bobjiang project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os i...
28.984293
171
0.638728
0
0
0
0
0
0
0
0
3,515
0.634935
16c94789f75ac4c3a4caedf7d0832ce6641802d7
671
py
Python
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
1
2022-02-10T17:54:53.000Z
2022-02-10T17:54:53.000Z
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
null
null
null
Users/models.py
titusnjuguna/FreeDom
204b3d06ba66e6e8a04af976a25c3c1b7c070f75
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pic/') ...
29.173913
60
0.588674
564
0.840537
0
0
0
0
0
0
58
0.086438
16c9a5ddd1d3e1f33c18bfd269bc6097b27aa5a2
2,281
py
Python
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
dvc/__init__.py
zjj2wry/dvc
c9df567938eefd7b1f5b094c15f04e5ce704aa36
[ "Apache-2.0" ]
null
null
null
""" DVC ---- Make your data science projects reproducible and shareable. """ import os import warnings VERSION_BASE = '0.23.2' __version__ = VERSION_BASE PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) HOMEPATH = os.path.dirname(PACKAGEPATH) VERSIONPATH = os.path.join(PACKAGEPATH, 'version.py') def _updat...
32.126761
78
0.702762
0
0
0
0
0
0
0
0
1,071
0.469531
16c9bf4375ba49f6aaa19ea289549cfbf3ed1092
9,092
py
Python
pkg_dir/src/utils/notion_utils.py
robperch/robase_datalysis
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
2
2022-01-09T19:18:57.000Z
2022-01-09T19:19:04.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
4
2022-01-17T02:46:24.000Z
2022-02-20T23:04:05.000Z
pkg_dir/src/utils/notion_utils.py
robperch/robasecode
343cb59b16630ca776bd941897ab8da63f20bfe1
[ "MIT" ]
null
null
null
## MODULE WITH UTIL FUNCTIONS - NOTION "----------------------------------------------------------------------------------------------------------------------" ####################################################### Imports ######################################################## "---------------------------------...
30.006601
120
0.569182
0
0
0
0
0
0
0
0
5,736
0.630884
16caf6d3ac2e6621185a4d16c03069163552a572
8,371
py
Python
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
null
null
null
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
9
2022-02-07T14:14:10.000Z
2022-03-22T09:17:16.000Z
libpermian/issueanalyzer/test_baseissue.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
3
2022-01-20T09:17:39.000Z
2022-03-08T00:35:58.000Z
import unittest import logging import contextlib from libpermian.settings import Settings from .proxy import IssueAnalyzerProxy from .base import BaseAnalyzer, BaseIssue from .issueset import IssueSet LOGGER = logging.getLogger('test') class NewIssue(BaseIssue): def submit(self): LOGGER.info('submit was...
29.896429
79
0.611158
7,872
0.940389
288
0.034404
664
0.079321
0
0
1,662
0.198543
16cb0577b93ac4b27ff6f443a2d517ea18cbf9f7
6,421
py
Python
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/naplib-python
8cd7a0fc700f1c07243169ec42fc087955885adc
[ "MIT" ]
1
2022-03-02T20:54:23.000Z
2022-03-02T20:54:23.000Z
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
naplib/alignment/prosodylab_aligner/__main__.py
gavinmischler/gavlib
cacf9180b1442e4aed98b6182d586747a6d6ef90
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2014 Kyle Gorman and Michael Wagner # # 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, modify,...
40.13125
102
0.68167
0
0
0
0
0
0
0
0
2,711
0.422208
16cc459343115a5e0d636bad4bf667af5c4f5d6d
4,021
py
Python
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
init/build_statements.py
andgein/sis-2017-winter-olymp
e6cf290ab2c24a22ca76949895e2a6cc6d818dc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import codecs import os import os.path import shutil import subprocess import logging import glob import json CONTEST_DIR = 'polygon-contest' INIT_FILE = 'init.txt' BUILD_DIR = 'build' LANGUAGE = 'russian' FILES_DIR = 'files-' + LANGUAGE def time_limit_from_int(tl): tl //= 1000 return...
39.038835
123
0.607063
0
0
0
0
0
0
0
0
857
0.212339
16cc8a900ca38b32bc2a6bbb0fff269ef5b921da
1,430
py
Python
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
1
2021-04-12T06:02:53.000Z
2021-04-12T06:02:53.000Z
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
3
2020-06-18T10:01:15.000Z
2021-11-08T12:43:43.000Z
conanfile.py
mmurooka/mc_rtc_data
bf45279cc59f9d85915cb2a01a84c23e5ce45958
[ "BSD-2-Clause" ]
4
2020-03-12T08:57:41.000Z
2021-09-07T03:07:56.000Z
# -*- coding: utf-8 -*- # from conans import python_requires import conans.tools as tools import os base = python_requires("Eigen3ToPython/latest@multi-contact/dev") class MCRTCDataConan(base.Eigen3ToPythonConan): name = "mc_rtc_data" version = "1.0.4" description = "Environments/Robots description for m...
34.878049
168
0.652448
1,259
0.88042
0
0
0
0
0
0
596
0.416783
16cd7731b200cbda5815fed9bc8eb8baf3b78188
1,217
py
Python
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
3
2019-01-30T03:50:04.000Z
2019-02-20T00:33:05.000Z
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
173
2019-01-30T08:30:54.000Z
2019-04-05T19:43:06.000Z
hyperion/migrations/0006_auto_20190218_2251.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
2
2019-05-06T22:59:56.000Z
2020-09-29T03:13:03.000Z
# Generated by Django 2.1.5 on 2019-02-18 22:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hyperion', '0005_auto_20190212_2116'), ] operations = [ migrations.RenameField( model_name='pos...
34.771429
201
0.571898
1,091
0.896467
0
0
0
0
0
0
362
0.297453
16cdaac129cd705700eab605365385f7b7b8a82c
2,236
py
Python
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
5
2019-05-05T18:26:14.000Z
2019-08-02T05:04:12.000Z
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
3
2020-07-17T02:28:11.000Z
2021-05-08T21:58:10.000Z
pottan_ocr/utils.py
nithyadurai87/pottan-ocr-tamil
e455891dc0ddd508d1318abf84fc59cc548873f7
[ "MIT" ]
3
2020-04-11T19:39:08.000Z
2020-12-21T08:44:21.000Z
import torch import json import numpy as np from torch.autograd import Variable import gzip import yaml from re import split from matplotlib import pyplot def showImg( im ): pyplot.imshow( im ) pyplot.show() def myOpen( fname, mode ): return open( fname, mode, encoding="utf-8" ) def readFile( fname ): ...
24.304348
99
0.58542
611
0.273256
0
0
0
0
0
0
351
0.156977
16cef8471ab7389079cb6001c00f1c83826a7643
1,546
py
Python
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
pyvips/error.py
kleisauke/pyvips
ae3b0c09669cfb662e773e8ae69cf589ac15e320
[ "MIT" ]
null
null
null
# errors from libvips import sys import logging from pyvips import ffi, vips_lib logger = logging.getLogger(__name__) _is_PY3 = sys.version_info[0] == 3 if _is_PY3: text_type = str else: text_type = unicode ffi.cdef(''' const char* vips_error_buffer (void); void vips_error_clear (void); ''') de...
20.891892
76
0.638422
613
0.396507
0
0
0
0
0
0
693
0.448254
16cf7d6d5783bc8dc6f881f5646090c8b7e4317c
7,584
py
Python
population_estimator/curses_io.py
cruzanta/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
1
2019-02-10T01:30:09.000Z
2019-02-10T01:30:09.000Z
population_estimator/curses_io.py
cruzantada/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
null
null
null
population_estimator/curses_io.py
cruzantada/population-estimator
cb56c551b615726543d8b1643302be2d30fd593c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Module for painting output on and obtaining input from a text-based terminal window using the curses library. """ import curses import textwrap def display_string(screen, a_string, output_line): # Paints a string on a text-based terminal window. _, width = screen.getmaxyx() tr...
36.114286
80
0.676292
0
0
0
0
0
0
0
0
4,317
0.569225
16cfaddb94dc7d27c3d0480f8a3e480fd2dc70da
30
py
Python
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
tools/micropython-mockup/urandom.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
def randrange(n, y): pass
10
20
0.6
0
0
0
0
0
0
0
0
0
0
16d095db1ff9ef61a032d5e0564695c1cb47f1b3
6,986
py
Python
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
null
null
null
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
1
2021-01-08T13:25:16.000Z
2021-01-08T13:25:16.000Z
SAP/released_tr_email_sender/ui.py
botisko/personal_programs
2e234271db438e228b9028b8180a6e833f482104
[ "MIT" ]
1
2021-01-08T12:52:29.000Z
2021-01-08T12:52:29.000Z
import json from tkinter import * from tkinter import ttk from tkinter import messagebox from tr_data import TRData, NO_DATA_MEETS_CRITERIA from email_text import email_body_template from helpers import send_email RECIPIENT = <email_address> EXCEPTION_FILE = "tr_number_exceptions.json" class TrEmailSender: def...
38.174863
134
0.61838
6,694
0.958202
0
0
0
0
0
0
1,351
0.193387
16d0a3ae5b7a5043417a9ada134eda9cc4f2dd27
1,548
py
Python
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
2
2019-01-23T14:23:17.000Z
2019-01-23T14:23:49.000Z
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
null
null
null
AI-Practice-Tensorflow-Notes-master/opt/opt4_8_backward.py
foochane/Tensorflow-Learning
54d210a1286051e9d60c98a62bd63eb070bc0a11
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 #0导入模块 ,生成模拟数据集 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import opt4_8_generateds import opt4_8_forward STEPS = 40000 BATCH_SIZE = 30 LEARNING_RATE_BASE = 0.001 LEARNING_RATE_DECAY = 0.999 REGULARIZER = 0.01 def backward(): x = tf.placeholder(tf.float32, shape=(None, ...
24.967742
72
0.700258
0
0
0
0
0
0
0
0
161
0.099876
16d13aced6b20979dea691425018aa9f0ea80fb3
3,168
py
Python
test/examples/integrated/codec/vip/vip_agent.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
test/examples/integrated/codec/vip/vip_agent.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
#// #// ------------------------------------------------------------- #// Copyright 2011 Synopsys, Inc. #// Copyright 2019-2020 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// Licensed under the Apache License, Version 2.0 (the #// "License"); you may not use this file except in #//...
33
96
0.606376
2,116
0.667929
0
0
0
0
1,069
0.337437
1,085
0.342487
16d1b5218231a945c48c3095503b717e135149a2
7,987
py
Python
tests/test_transliterate.py
abosoar/camel_tools
0a92c06f6dde0063e26df5cbe4d74c2f99b418e0
[ "MIT" ]
1
2021-03-23T12:50:47.000Z
2021-03-23T12:50:47.000Z
tests/test_transliterate.py
KaoutharMokrane/camel_tools
e9099907835b05d448362bce2cb0e815ac7f5590
[ "MIT" ]
null
null
null
tests/test_transliterate.py
KaoutharMokrane/camel_tools
e9099907835b05d448362bce2cb0e815ac7f5590
[ "MIT" ]
1
2021-01-24T05:06:33.000Z
2021-01-24T05:06:33.000Z
# -*- coding: utf-8 -*- # MIT License # # Copyright 2018-2020 New York University Abu Dhabi # # 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 limitatio...
33.700422
79
0.662076
6,328
0.792287
0
0
0
0
0
0
4,406
0.551646
16d2ceeba676dbb491a1206466347e8ee17c6418
2,485
py
Python
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
null
null
null
source/code/build-instance-scheduler-template.py
liangruibupt/aws-instance-scheduler
a4e46eec9f39c2e3b95c5bcbe32c036e239d6066
[ "Apache-2.0" ]
1
2021-04-09T15:01:49.000Z
2021-04-09T15:01:49.000Z
###################################################################################################################### # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
59.166667
118
0.464789
0
0
0
0
0
0
0
0
1,518
0.610865
16d306bdfaed88804b418d267e2c9f7fdd6fab73
7,965
py
Python
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
src/parse.py
StanfordAHA/Configuration
a5d404433d32b0ac20544d5bafa9422c979afc16
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # file -- parse.py -- # Top contributors (to current version): # Nestan Tsiskaridze # This file is part of the configuration finder for the Stanford AHA project. # Copyright (c) 2021 by the authors listed in the file AUTHORS # in th...
40.431472
129
0.417075
7,134
0.895669
0
0
0
0
0
0
1,292
0.16221
16d35857ae1d82e14e5940b8e5331b8a6a44ca39
2,177
py
Python
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
neyesem/main.py
omerfarukbaysal/neyesem
f69bf4446ce902f00389c8d71f68e1b7db05f86d
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, redirect, url_for, request, flash, make_response from werkzeug.security import generate_password_hash from flask_login import login_required, current_user from . import db import datetime from .models import Visitor, User main = Blueprint('main', __name__) @main.route('/...
33.492308
120
0.692237
0
0
0
0
1,866
0.857143
0
0
499
0.229215
16d397fdfd404f351b1fb42cfa6cff5538a49320
790
py
Python
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
00-Aulas/Aula007_2.py
AmandaRH07/Python_Entra21
4084962508f1597c0498d8b329e0f45e2ac55302
[ "MIT" ]
null
null
null
# Funções cabecalho = "SISTEMA DE CADASTRO DE FUNCIONARIO\n\n\n" rodape = "\n\n\n Obrigada pela preferencia" def imprimir_tela(conteudo): print(cabecalho) #print(opcao_menu) print(conteudo) print(rodape) def ler_opcoes(): opcao = int(input("Insira a opção: ")) return opcao def carregar_o...
27.241379
70
0.655696
0
0
0
0
0
0
0
0
350
0.433168
16d47d0537155255ce27cd3c3479b098ca6ecf13
665
py
Python
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
1
2020-04-29T21:30:11.000Z
2020-04-29T21:30:11.000Z
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
10
2018-08-20T18:10:56.000Z
2019-04-05T14:45:11.000Z
ast_version/src/binop.py
lucassa3/CCompiler
ad788f692dc2863da9111b4a42f54277ac29d5ae
[ "MIT" ]
null
null
null
from node import Node class BinOp(Node): def eval(self, st): a = self.children[0].eval(st) b = self.children[1].eval(st) if self.value == "MINUS": return a - b elif self.value == "PLUS": return a + b elif self.value == "MULT": return a * b elif self.value == "DIV": return a // b...
19.558824
32
0.542857
628
0.944361
0
0
0
0
0
0
64
0.096241
16d53c81f0a6c59b031bb33f8b48778a56657258
7,180
py
Python
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
aqt/installer.py
pylipp/aqtinstall
e08667cb5c9ced27994c4cde16d0c1b4a4386455
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Linus Jahn <[email protected]> # Copyright (C) 2019,2020 Hiroshi Miura <[email protected]> # Copyright (C) 2020, Aurélien Gâteau # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software...
40.111732
110
0.608635
5,569
0.775411
0
0
0
0
0
0
1,880
0.261766
16d55202daea41a875b382f2393a76063d29376b
4,865
py
Python
lib/django-0.96/django/views/generic/list_detail.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-0.96/django/views/generic/list_detail.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-0.96/django/views/generic/list_detail.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from django.template import loader, RequestContext from django.http import Http404, HttpResponse from django.core.xheaders import populate_xheaders from django.core.paginator import ObjectPaginator, InvalidPage from django.core.exceptions import ObjectDoesNotExist def object_list(request, queryset, paginate_by=None, p...
36.856061
113
0.623227
0
0
0
0
0
0
0
0
1,336
0.274615
16d68949a023a20451569c4bd42476cab180bd99
5,398
py
Python
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
11
2021-08-28T17:45:38.000Z
2022-01-26T17:50:03.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
1
2021-09-13T17:29:33.000Z
2021-09-13T21:50:34.000Z
pax/_src/core/utility_modules.py
NTT123/pax
b80e1e4b6bfb763afd6b4fdefa31a051ca8a3335
[ "MIT" ]
null
null
null
"""Utility Modules.""" from typing import Any, Callable, Dict, List, Optional, Sequence, TypeVar, Union import jax import jax.numpy as jnp from .module import Module, parameters_method T = TypeVar("T", bound=Module) O = TypeVar("O") class ParameterModule(Module): """A PAX module that registers attributes as ...
29.659341
91
0.582994
5,185
0.953476
0
0
0
0
0
0
2,629
0.48345
16d79dca474781cfacdcca9ed1544b5e9e33234c
2,612
py
Python
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
src/richie/apps/courses/lms/edx.py
kernicPanel/richie
803deda3e29383ce85593e1836a3cf4efc6b847e
[ "MIT" ]
null
null
null
""" Backend to connect Open edX richie with an LMS """ import logging import re import requests from requests.auth import AuthBase from ..serializers import SyncCourseRunSerializer from .base import BaseLMSBackend logger = logging.getLogger(__name__) def split_course_key(key): """Split an OpenEdX course key by...
32.246914
88
0.68683
1,906
0.729709
0
0
354
0.135528
0
0
1,215
0.465161
16d7b7c1c6e2def8cf0c9ec10f6916a0a8cf367f
4,106
py
Python
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
BitTorrent-5.2.2/BTL/brpclib.py
jpabb7/p2pScrapper
0fd57049606864223eb45f956a58adda1231af88
[ "MIT" ]
7
2015-07-28T09:17:17.000Z
2021-11-07T02:29:41.000Z
# by Greg Hazel import xmlrpclib from xmlrpclib2 import * from BTL import brpc old_PyCurlTransport = PyCurlTransport class PyCurlTransport(old_PyCurlTransport): def set_connection_params(self, h): h.add_header('User-Agent', "brpclib.py/1.0") h.add_header('Connection', "Keep-Alive") h.add_...
30.641791
74
0.605212
3,264
0.794934
0
0
0
0
0
0
1,437
0.349976
16d7e9187801937282012d38f8b28fd55938bd25
1,207
py
Python
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
8
2016-12-11T02:24:21.000Z
2020-08-07T10:02:32.000Z
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
41
2015-08-11T16:57:21.000Z
2022-01-18T19:19:41.000Z
database_files/views.py
den-gts/django-database-files-3000
0a135004427c021944b30ef8aace844ab20b9cfb
[ "BSD-3-Clause" ]
7
2015-08-02T05:32:41.000Z
2019-06-17T11:53:14.000Z
import base64 import mimetypes import os from django.conf import settings from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404 from django.views.decorators.cache import cache_control from django.views.static import serve as django_serve from database_files.models import File ...
29.439024
74
0.724109
0
0
0
0
366
0.303231
0
0
294
0.243579
16d80d08df5b20660db28d091611ed67b6dfa076
2,026
py
Python
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
6
2019-11-20T19:32:41.000Z
2021-06-25T19:47:26.000Z
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
null
null
null
NoiseFiltersPy/Injector.py
TVect/NoiseFiltersPy
fff1f3113cf9b3e7b8de65421ab9951fd3cb11e5
[ "MIT" ]
1
2021-06-25T19:47:34.000Z
2021-06-25T19:47:34.000Z
import numpy as np import pandas as pd from abc import ABC class Injector(ABC): """Base class for the injectors of artificial noise. Attributes ---------- rem_indx : :obj:`List` Removed indexes (rows) from the dataset after the filtering. parameters : :obj:`Dict` Parameters used ...
30.238806
110
0.600197
1,959
0.96693
0
0
125
0.061698
0
0
675
0.333169
16d81711460bcdde5df04988352f117c180dbed8
19,516
py
Python
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
2
2016-11-13T21:32:51.000Z
2017-03-22T02:50:26.000Z
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
1
2021-02-08T20:18:59.000Z
2021-02-08T20:18:59.000Z
application/mod_user/forms.py
hackBCA/hackbcafour
971120ff88423cc660f92985790cddf9939838bf
[ "MIT" ]
null
null
null
from wtforms import Form, TextField, PasswordField, SelectField, TextAreaField, BooleanField, validators, ValidationError, RadioField import re phone_regex = "(\+\d+-?)?((\(?\d{3}\)?)|(\d{3}))-?\d{3}-?\d{4}$" gender_choices = [ ("", "Gender"), ("male", "Male"), ("female", "Female"), ("other", "Other"...
45.071594
269
0.645522
16,057
0.822761
0
0
0
0
0
0
8,509
0.436001
16d86786252483bb0df3775ba6255b1dd3edd2a1
2,181
py
Python
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
null
null
null
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
2
2017-11-17T03:14:45.000Z
2019-10-19T07:17:22.000Z
src/app.py
gh640/coding-challenge
3be31d643ac081bfec3495cb8f705c400be82553
[ "MIT" ]
1
2017-11-16T09:33:38.000Z
2017-11-16T09:33:38.000Z
# coding: utf-8 '''フロントコントローラを提供する ''' from math import ceil import os from flask import json from flask import Flask from flask import request from flask import send_from_directory from flask import render_template # from json_loader import load_locations # from json_loader import prepare_locations from models imp...
23.706522
79
0.629069
0
0
0
0
1,588
0.710515
0
0
474
0.212081
16d86a94620baf9944e6bd338662eefcd3ab573e
2,180
py
Python
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
5
2021-09-10T14:20:15.000Z
2022-01-09T11:27:49.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
11
2021-08-15T09:39:09.000Z
2022-01-12T14:11:24.000Z
corkus/objects/dungeon.py
MrBartusek/corkus.py
031c11e3e251f0bddbcb67415564357460fe7fea
[ "MIT" ]
2
2021-12-01T23:33:14.000Z
2022-01-12T11:08:18.000Z
from __future__ import annotations from .base import CorkusBase from enum import Enum class DungeonType(Enum): REMOVED = "REMOVED" """Dungeons that were removed from the game in version ``1.14.1`` like ``Skeleton`` or ``Spider``""" REMOVED_MINI = "REMOVED_MINI" """Minidungeons that were reworked in ve...
34.0625
113
0.580734
2,090
0.958716
0
0
1,304
0.598165
0
0
1,066
0.488991
16d935b63ca1c52fcdad82da9c168df67d096ff5
527
py
Python
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
18
2015-02-05T00:44:24.000Z
2018-11-30T03:20:51.000Z
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
4
2016-06-25T20:04:59.000Z
2019-01-29T19:34:24.000Z
src/brisk.py
chaoer/brisk-descriptor
140b08539768b8038680fd86d7fda9688dd5b908
[ "BSD-3-Clause" ]
14
2015-11-15T05:20:28.000Z
2019-01-02T12:50:44.000Z
import pybrisk class Brisk: def __init__(self, thresh=60, octaves=4): self.thresh = thresh self.octaves = octaves self.descriptor_extractor = pybrisk.create() def __del__(self): pybrisk.destroy(self.descriptor_extractor) def detect(self, img): return pybrisk.detec...
26.35
57
0.648956
509
0.965844
0
0
0
0
0
0
0
0
16dc5aa7f7c7413a9e340c8bb600ebd849d60e67
2,897
py
Python
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
hale_hub/outlet_interface.py
tantinlala/hale-hub
da2e6d24e3869ee533d2e272ce87b9e7eede9a79
[ "MIT" ]
null
null
null
import serial import serial.tools.list_ports from hale_hub.constants import STARTING_OUTLET_COMMAND, SERIAL_BAUD_RATE, SERIAL_TIMEOUT from hale_hub.ifttt_logger import send_ifttt_log class _Outlet: def __init__(self, name): self.state = 0 self.name = name class _OutletInterface: def __init__...
41.385714
123
0.706593
2,352
0.811874
0
0
0
0
0
0
200
0.069037
16dcdf8ea3ba055a8650580e31092f4149c84a27
3,233
py
Python
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
helix/core.py
carbonscott/helix
e2ee6e1293cae4f0bd1220ed5a41268d20a095db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np def remove_nan(xyzs): return xyzs[~np.isnan(xyzs).any(axis = 1)] def measure_twocores(core_xyz_ref, core_xyz_tar): ''' Measure the following aspects of two helical cores. - Interhelical distance vector between the centers. - Inte...
33.677083
78
0.683266
0
0
0
0
0
0
0
0
988
0.305599
16dd18d4c9d6b529392f25ddf3a0704445995def
675
py
Python
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
2
2021-03-06T22:09:44.000Z
2021-03-14T14:41:03.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
1
2020-03-25T15:42:47.000Z
2020-10-06T21:41:14.000Z
matury/2011/6.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
null
null
null
from typing import List with open("dane/liczby.txt") as f: nums: List[int] = [] nums_9_chars: List[int] = [] for line in f: sline = line.strip() num = int(sline, 2) if len(sline) == 9: nums_9_chars.append(num) nums.append(num) count_even = 0 max_num = 0 for n...
20.454545
96
0.58963
0
0
0
0
0
0
0
0
179
0.265185
16de03e641bb707c0257c647f4e57b0375e2b543
668
py
Python
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
5
2015-10-13T04:13:04.000Z
2020-12-23T13:47:43.000Z
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
null
null
null
Python/fibs.py
familug/FAMILUG
ef8c11d92f4038d80f3f1a24cbab022c19791acf
[ "BSD-2-Clause" ]
8
2015-07-20T15:37:38.000Z
2021-04-14T07:18:10.000Z
def fib(n): if n < 2: return n else: return fib(n-1) + fib(n-2) def fib_fast(n): from math import sqrt s5 = sqrt(5) x = (1 + s5) ** n y = (1 - s5) ** n return int((x - y)/(s5 * 2**n)) def print_fib(n): for i in range(n): print fib(i), print for i i...
15.904762
35
0.438623
0
0
0
0
0
0
0
0
10
0.01497
16de052924f6b7a0503a267b4aaeda1587303cff
3,681
py
Python
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
src/model/ParseInput.py
slavi010/polyhash-2020
a11aa694fbf901be4f4db565cb09800f8f57eae7
[ "MIT" ]
null
null
null
import os from typing import List from src.model.Etape import Etape from src.model.Grille import Grille from src.model.ItemCase import ItemCase from src.model.PointMontage import PointMontage from src.model.Robot import Robot from src.model.Tache import Tache class ParseInput: """Parser qui permet de lire le fic...
40.9
123
0.594947
3,441
0.928996
0
0
0
0
0
0
1,056
0.285097
16df196ac8b1d19487d9f38ab432516956acf44f
13,440
py
Python
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
test.py
UnKafkaesque/Sentiment-Analysis
bd8517420534bcfe76f2f60a4f178d1dac540075
[ "MIT" ]
null
null
null
import os import sys import time import traceback import project1_Copy as p1 import numpy as np verbose = False def green(s): return '\033[1;32m%s\033[m' % s def yellow(s): return '\033[1;33m%s\033[m' % s def red(s): return '\033[1;31m%s\033[m' % s def log(*m): print(" ".join(map(str, m))) def log...
29.154013
165
0.564658
0
0
0
0
0
0
0
0
1,968
0.146429
16e1f96bcb5b1ba1faf14b289b7309040c63b043
1,619
py
Python
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
homework_1/tests/test_3.py
mag-id/epam_python_autumn_2020
2488817ba039f5722030a23edc97abe9f70a9a30
[ "MIT" ]
null
null
null
""" Unit tests for module `homework_1.tasks.task_3`. """ from tempfile import NamedTemporaryFile from typing import Tuple import pytest from homework_1.tasks.task_3 import find_maximum_and_minimum @pytest.mark.parametrize( ["file_content", "expected_result"], [ pytest.param( "0\n", ...
29.436364
87
0.542928
0
0
0
0
1,416
0.874614
0
0
687
0.424336
16e3d9c0e2f0128dd26f1a69eb5d1f88d973387a
16,524
py
Python
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/v20181101/blob_container.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from ... import _utilities fro...
50.53211
1,363
0.676834
16,088
0.973614
0
0
11,663
0.705822
0
0
7,905
0.478395
16e4af35a62847ccd702cb32c6b8a27f27bee59d
129
py
Python
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
null
null
null
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
8
2021-03-19T03:28:32.000Z
2022-03-11T23:59:00.000Z
app/admin/views/__init__.py
CAUCHY2932/Northern_Hemisphere
06e5b3e3f0b47940d5b4549899d062373b019579
[ "BSD-3-Clause" ]
null
null
null
# coding:utf-8 import app.admin.views.start import app.admin.views.book import app.admin.views.user import app.admin.views.site
18.428571
28
0.79845
0
0
0
0
0
0
0
0
14
0.108527
16e4dfbf8bd61eccd8ee52165a28c0666d169326
840
py
Python
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
test_mnist.py
aidiary/chainer-siamese
6abce9192298e14682a7c766e2a5cdd10f519193
[ "MIT" ]
null
null
null
import os import chainer import chainer.links as L from net import SiameseNetwork import numpy as np import matplotlib.pyplot as plt # 訓練済みモデルをロード model = SiameseNetwork() chainer.serializers.load_npz(os.path.join('result', 'model.npz'), model) # テストデータをロード _, test = chainer.datasets.get_mnist(ndim=3) test_data, te...
24.705882
72
0.667857
0
0
0
0
0
0
0
0
510
0.480226
16e5abfcca6728651310e1b9d7d20815d0685476
5,535
py
Python
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
TwoFeetTempoMove.py
b0nz0/TwisterTempo
fc975af4095509d8ec4fe2f84313fe152577bed2
[ "MIT" ]
null
null
null
from random import randrange, random from time import time import logging from TwisterTempoGUI import TwisterTempoGUI class TwoFeetTempoMove(object): COLORS_ALPHA = {0: 'RED', 1: 'BLUE', 2: 'YELLOW', 3: 'GREEN'} COLORS_RGB = {0: (255, 0, 0), 1: (0, 0, 255), 2: (255, 255, 0), 3: (0, 255, 0)} FOOT_CHANGE_...
45.368852
106
0.592954
5,413
0.977958
0
0
0
0
0
0
481
0.086902
16e6fb3c075a8554e7e6d5fe5397106b44ef9bf3
311
py
Python
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
13
2020-01-27T09:02:25.000Z
2022-01-20T07:45:26.000Z
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
29
2020-03-22T06:57:57.000Z
2022-01-24T22:46:42.000Z
plugins/panorama/panorama/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
6
2020-07-10T00:13:30.000Z
2022-01-26T08:22:33.000Z
# -*- coding: utf-8 -*- """ Panorama is a Pelican plugin to generate statistics from blog posts (number of posts per month, categories and so on) display them as beautiful charts. Project location: https://github.com/romainx/panorama """ __version__ = "0.2.0" __author__ = "romainx" from .panorama import *
22.214286
83
0.726688
0
0
0
0
0
0
0
0
253
0.813505
16e747bd6febb0a03dbe8fb17268efc47ff0c0ee
7,999
py
Python
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
9
2015-07-21T17:41:25.000Z
2020-08-26T13:37:08.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2015-06-11T18:40:16.000Z
2020-04-03T20:31:40.000Z
transitfeed/transfer.py
cclauss/transitfeed
54a4081b59bfa015d5f0405b68203e61762d4a52
[ "Apache-2.0" ]
4
2016-02-09T21:45:50.000Z
2020-07-30T21:52:50.000Z
#!/usr/bin/python2.5 # Copyright (C) 2007 Google 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 la...
40.811224
91
0.665833
7,305
0.913239
0
0
0
0
0
0
2,176
0.272034
16e7d64f5a23705a73ced1fae75f2e7697ae34b2
2,067
py
Python
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
social/urls.py
Kizito-Alberrt/insta-social
c632e901cd81b0b139f88ad55236efd6c7ddbef1
[ "MIT" ]
null
null
null
from django.urls import path from . import views from . views import UserPostListView, PostDetailView, PostDeleteview, PostCreateView, PostUpdateView,CommentUpdateView, VideoCreateView, video_update urlpatterns = [ path('',views.base, name='base'), path('login',views.login, name='login'), path('register',v...
43.0625
149
0.701016
0
0
0
0
0
0
0
0
775
0.37494
16e8783047883ecc17068c1f63c87b161a271a5f
1,054
py
Python
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
4
2020-07-30T02:38:29.000Z
2021-09-12T14:30:18.000Z
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
vtkplotter_examples/other/dolfin/collisions.py
ismarou/vtkplotter-examples
1eefcc026be169ab7a77a5bce6dec8044c33b554
[ "MIT" ]
null
null
null
''' compute_collision() will compute the collision of all the entities with a Point while compute_first_collision() will always return its first entry. Especially if a point is on an element edge this can be tricky. You may also want to compare with the Cell.contains(Point) tool. ''' # Script by Rudy at https://fenicsp...
35.133333
75
0.705882
0
0
0
0
0
0
0
0
519
0.49241
16e8943240219eac91364d8b6c27599e32680763
622
py
Python
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
alice_check_train/__main__.py
AsciiShell/Alice-Check-Train
49d5804d28a237756a7cf27e451ff56166fbee5c
[ "MIT" ]
null
null
null
import datetime import os from alice_check_train.main import rasp_to_text from alice_check_train.rasp_api import get_rasp, filter_rasp def main(): key = os.getenv('RASP_KEY') station_from = os.getenv('STATION_FROM') station_to = os.getenv('STATION_TO') date = datetime.date.today().strftime('%Y-%m-%d'...
25.916667
65
0.688103
0
0
0
0
0
0
0
0
95
0.152733
16e89821c774aa40fe5b74ea387488fc99280078
7,309
py
Python
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
1
2021-11-16T13:22:09.000Z
2021-11-16T13:22:09.000Z
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
aws-KNN-RESTful.py
cakebytheoceanLuo/k-NN
52c66b5e38490431b3079c2baaad38785802f4e5
[ "Apache-2.0" ]
null
null
null
# https://medium.com/@kumon/how-to-realize-similarity-search-with-elasticsearch-3dd5641b9adb # https://docs.aws.amazon.com/opensearch-service/latest/developerguide/knn.html import sys import requests import h5py import numpy as np import json import aiohttp import asyncio import time import httpx from requests.auth imp...
33.374429
142
0.675332
0
0
0
0
0
0
0
0
3,478
0.475852
16ea2d8be166b5650aea4af33dbde9040a41f768
1,438
py
Python
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
test/test_docker_images.py
bauerj/cibuildwheel
b4addbf4a94daa76769d4f779e169406b0ef99ae
[ "BSD-2-Clause" ]
null
null
null
import platform import textwrap import pytest from . import test_projects, utils dockcross_only_project = test_projects.new_c_project( setup_py_add=textwrap.dedent(r''' import os, sys # check that we're running in the correct docker image as specified in the # environment options CIBW_MA...
35.073171
116
0.672462
0
0
0
0
0
0
0
0
770
0.535466
16eb07b6e691db19202917b717c2ccb87df9fd9d
32,556
py
Python
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
3
2018-05-22T22:45:23.000Z
2020-02-13T16:45:03.000Z
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
real_trade/MoveAverageTradePosition.py
taka-mochi/cryptocurrency-autotrading
16677018c793d7bd3fffdcd3575aecb3535dbd04
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import math import dateutil import dateutil.parser import json from ChartBars import Chart from ChartUpdaterByCCWebsocket import ChartUpdaterByCoincheckWS from Util import BitcoinUtil def adjust_price_to_tick(price, tick): return price - math.fmod(price, tick) def adjust_amount_to_tick(amount, t...
40.593516
189
0.593593
33,184
0.98809
0
0
56
0.001667
0
0
10,325
0.307438
16ebc077aad6a4dd684131dc7271bbdbd5696af9
743
py
Python
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
2
2021-09-07T03:25:00.000Z
2021-09-07T17:28:46.000Z
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
null
null
null
test.py
sbcshop/PiRelay-8
4d881f259c07cd4fdf3c57431feb1587aaa0e861
[ "MIT" ]
null
null
null
from PiRelay8 import Relay import time r1 = Relay("RELAY1") r2 = Relay("RELAY2") r3 = Relay("RELAY3") r4 = Relay("RELAY4") r5 = Relay("RELAY5") r6 = Relay("RELAY6") r7 = Relay("RELAY7") r8 = Relay("RELAY8") r1.off() r2.off() r3.off() r4.off() r5.off() r6.off() r7.off() r8.off() r1.on() time.s...
11.983871
27
0.572005
0
0
0
0
0
0
0
0
64
0.086137
16ebce5b29644a3fdd8bee60c8ef43a322219b10
9,086
py
Python
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
null
null
null
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
5
2018-09-28T18:01:28.000Z
2019-02-12T18:49:06.000Z
bot/cogs/clan.py
johnvictorfs/atlantisbot-rewrite
ac6887f91438206ba926be59d8fd2bedd07923ad
[ "MIT" ]
1
2018-10-15T22:41:47.000Z
2018-10-15T22:41:47.000Z
import rs3clans import discord from discord.ext import commands from bot.bot_client import Bot from bot.utils.tools import separator from bot.utils.context import Context class Clan(commands.Cog): def __init__(self, bot: Bot): self.bot = bot @commands.cooldown(1, 5, commands.BucketTyp...
42.064815
115
0.569117
8,880
0.974325
0
0
8,770
0.962256
8,235
0.903555
2,142
0.235023
16ec4bab280bd7d838f873bdb4d147f41ca2f107
2,539
py
Python
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/functional/osclient/vpc/v2/common.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# 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, software # distrib...
33.853333
77
0.639228
1,864
0.734147
0
0
0
0
0
0
925
0.364317
16ef740b41f41832481d4956834bb037ddc3b7b6
2,614
py
Python
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
3
2020-10-30T23:31:26.000Z
2022-03-30T21:48:40.000Z
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
42
2020-09-16T15:23:11.000Z
2021-09-20T13:00:50.000Z
tests/test_nested_structures_inside_structure_values.py
Robinson04/StructNoSQL
335c63593025582336bb67ad0b0ed39d30800b74
[ "MIT" ]
2
2021-01-03T21:37:22.000Z
2021-08-12T20:28:52.000Z
import unittest from typing import Set, Optional, Dict, List from uuid import uuid4 from StructNoSQL import BaseField, MapModel, TableDataModel from tests.components.playground_table_clients import PlaygroundDynamoDBBasicTable, TEST_ACCOUNT_ID class TableModel(TableDataModel): accountId = BaseField(field_type=st...
38.441176
114
0.704285
2,314
0.885233
0
0
0
0
0
0
563
0.215379