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
aee3acee64392e604fd8ec5ed0ae828af357a41b
38,907
py
Python
pyBlock.py
camader/pygeo
d086e2b5b4d263976e0b763cdaf3de50241cf715
[ "Apache-2.0" ]
null
null
null
pyBlock.py
camader/pygeo
d086e2b5b4d263976e0b763cdaf3de50241cf715
[ "Apache-2.0" ]
null
null
null
pyBlock.py
camader/pygeo
d086e2b5b4d263976e0b763cdaf3de50241cf715
[ "Apache-2.0" ]
null
null
null
# ====================================================================== # Imports # ====================================================================== from __future__ import print_function from __future__ import division import os, copy import numpy from scipy import sparse from scipy.sparse import linalg ...
38.369822
93
0.498419
47341ae679b6e9c6587c8347b27c566ac348f315
4,021
py
Python
proyecto-2b/ProyectoGrupal2B/api/usersController.py
2020-A-JS-GR1/py-velasquez-revelo-jefferson-david
21733aef68c234f40e966c43ee3bf815b369a76f
[ "MIT" ]
null
null
null
proyecto-2b/ProyectoGrupal2B/api/usersController.py
2020-A-JS-GR1/py-velasquez-revelo-jefferson-david
21733aef68c234f40e966c43ee3bf815b369a76f
[ "MIT" ]
null
null
null
proyecto-2b/ProyectoGrupal2B/api/usersController.py
2020-A-JS-GR1/py-velasquez-revelo-jefferson-david
21733aef68c234f40e966c43ee3bf815b369a76f
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restplus import Namespace, Resource, Api, fields import pymongo from bson import ObjectId from database import get_db import hashlib api = Namespace('users', description='User related operations') locationPayload = api.model('locationPayload', { "provincia": fields.Str...
32.959016
152
0.586421
20cba259c82bf7987006fd73041d4f1f13122c3e
582
py
Python
lib/colors.py
dinazoe/flashcards_cmd
115dde1cecef6d7316f8c77c45856d5245853d4f
[ "MIT" ]
null
null
null
lib/colors.py
dinazoe/flashcards_cmd
115dde1cecef6d7316f8c77c45856d5245853d4f
[ "MIT" ]
null
null
null
lib/colors.py
dinazoe/flashcards_cmd
115dde1cecef6d7316f8c77c45856d5245853d4f
[ "MIT" ]
null
null
null
def change_text_color(color): if color == "green": print("\033[1;32;40m\n") if color == "default": print("\033[1;37;40m\n") if color == "blue": print("\033[1;34;40m\n") def change_text_color_to_green() -> None: """ Changes print color to green """ print("...
19.4
43
0.558419
be7a434f9bd510e3f616e0aebe02e6fa73c4bf2c
4,267
py
Python
examples/cifar10/figs/plot_tensorboard_events.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
examples/cifar10/figs/plot_tensorboard_events.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
examples/cifar10/figs/plot_tensorboard_events.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.97541
125
0.61917
81419b73a98a36f9aae96a9d2945e1dce65b106b
506
py
Python
src/postkasterl/tests/test_secure.py
bluedynamics/postkasterl
c1fe670d420b0ca05f93974a3063a8d01b8cf9be
[ "BSD-3-Clause" ]
1
2019-07-09T13:02:07.000Z
2019-07-09T13:02:07.000Z
src/postkasterl/tests/test_secure.py
bluedynamics/postkasterl
c1fe670d420b0ca05f93974a3063a8d01b8cf9be
[ "BSD-3-Clause" ]
null
null
null
src/postkasterl/tests/test_secure.py
bluedynamics/postkasterl
c1fe670d420b0ca05f93974a3063a8d01b8cf9be
[ "BSD-3-Clause" ]
null
null
null
import unittest class TestSecure(unittest.TestCase): def test_encode_decode(self): from postkasterl.secure import secure_decrypt from postkasterl.secure import secure_encrypt somestring = 'foo' secret = 'secret' encrypted = secure_encrypt(somestring, secret) self.a...
31.625
54
0.70751
cc96fe2f954c0aa990f76348dc2f7a052305e7ec
479
py
Python
lims/projects/migrations/0014_product_attachments.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/projects/migrations/0014_product_attachments.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/projects/migrations/0014_product_attachments.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('datastore', '0005_attachment'), ('projects', '0013_auto_20161012_1259'), ] operations = [ migrations.AddField( ...
22.809524
80
0.617954
fd4856d66d1ec406d6f01a94393d5fd80a7426fc
1,005
py
Python
rimbaud/contrib/sites/migrations/0003_set_site_domain_and_name.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
rimbaud/contrib/sites/migrations/0003_set_site_domain_and_name.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
rimbaud/contrib/sites/migrations/0003_set_site_domain_and_name.py
dbousfira/rimbaud
9be52713360adef64b4134d648a88c9aac9b9d4d
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.714286
129
0.685572
77acc84e8fbebd8adbcff76d49a0b018900b8807
3,345
py
Python
examples/summarization/bertabs/configuration_bertabs.py
JonathanSum/transformers
27b68f95e4585713b575603545cf520ab9621621
[ "Apache-2.0" ]
480
2019-10-14T02:22:34.000Z
2022-03-29T18:07:00.000Z
examples/summarization/bertabs/configuration_bertabs.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
20
2019-10-15T16:18:05.000Z
2022-02-27T21:23:55.000Z
examples/summarization/bertabs/configuration_bertabs.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
42
2019-10-14T21:29:59.000Z
2021-12-28T15:25:58.000Z
# coding=utf-8 # Copyright 2019 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
33.787879
163
0.669656
4d7873004f24d21b7f98028c9f6f1d5f450b186e
3,781
py
Python
desafio_celero/olympics/migrations/0001_initial.py
joaovictor01/desafio_celero
2b205264479ca084af6e625dd93582c12077fe2e
[ "MIT" ]
null
null
null
desafio_celero/olympics/migrations/0001_initial.py
joaovictor01/desafio_celero
2b205264479ca084af6e625dd93582c12077fe2e
[ "MIT" ]
null
null
null
desafio_celero/olympics/migrations/0001_initial.py
joaovictor01/desafio_celero
2b205264479ca084af6e625dd93582c12077fe2e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-03-31 20:33 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Athlete', fields=[ ...
48.474359
196
0.55726
8ffee3fea587eb33c62a32922eaf671a3c272276
1,023
py
Python
algorithms/sorting/merge_sort/sort.py
deveshpatel0101/python-data-structures-algorithms
3ae54fff1bb340b9f6b6ff4361eac38fb83eebb5
[ "MIT" ]
null
null
null
algorithms/sorting/merge_sort/sort.py
deveshpatel0101/python-data-structures-algorithms
3ae54fff1bb340b9f6b6ff4361eac38fb83eebb5
[ "MIT" ]
null
null
null
algorithms/sorting/merge_sort/sort.py
deveshpatel0101/python-data-structures-algorithms
3ae54fff1bb340b9f6b6ff4361eac38fb83eebb5
[ "MIT" ]
null
null
null
class MergeSort: def sort(self, arr): self.split(arr) return arr def split(self, arr): if len(arr) > 1: mid = len(arr) // 2 left = arr[:mid] right = arr[mid:] self.split(left) self.split(right) self.combine(left, ri...
27.648649
64
0.468231
49d7f4b87b564a00ca1845b7ac19bf5cd828659e
4,476
py
Python
epycom/event_detection/tests/test_event_detection.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
null
null
null
epycom/event_detection/tests/test_event_detection.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
1
2020-10-22T19:10:57.000Z
2020-10-22T21:09:02.000Z
epycom/event_detection/tests/test_event_detection.py
ICRC-BME/epycom
5bfa3fb9020f04536b7a08382533c8abf56ca85f
[ "Apache-2.0" ]
1
2021-02-24T10:07:32.000Z
2021-02-24T10:07:32.000Z
# -*- coding: utf-8 -*- # Copyright (c) St. Anne's University Hospital in Brno. International Clinical # Research Center, Biomedical Engineering. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # Std imports from math import isclose # Third pary imports from scipy.signal...
34.167939
78
0.557194
6ef63f67d9728c7b26d1d137486992a2b8d7c377
12,252
py
Python
mindspore/scipy/linalg.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
1
2021-11-19T14:21:45.000Z
2021-11-19T14:21:45.000Z
mindspore/scipy/linalg.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
mindspore/scipy/linalg.py
LaiYongqiang/mindspore
1b7a38ccd86b55af50a0ea55c7f2f43813ed3e0e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.168224
117
0.574437
189e68a3abded0831d92acced596510422011abf
2,818
py
Python
Schweizer-Messer/sm_python/python/sm/Progress.py
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
10
2021-08-20T21:12:22.000Z
2022-03-18T03:20:25.000Z
Schweizer-Messer/sm_python/python/sm/Progress.py
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
null
null
null
Schweizer-Messer/sm_python/python/sm/Progress.py
JzHuai0108/kalibr
32d095162408c90ebf0c49522d27732ffec8f35f
[ "BSD-4-Clause" ]
4
2021-08-17T12:16:25.000Z
2021-11-06T02:52:35.000Z
import time import datetime import sys class Progress(object): def __init__(self, numIterations): self.started = False self.elapsed = 0 self.startTime = 0 self.numIterations = numIterations self.iteration = 0 def sample(self): if self.started: self.i...
34.365854
189
0.55181
52196622276579c21b82a55c1fe9b52194da55e4
239
py
Python
projectdoc/listing/rubber_band.py
PlazaNav/PlazaNav-doc
b88e7ff81023abd492b532597ff2deb660ed599a
[ "MIT" ]
null
null
null
projectdoc/listing/rubber_band.py
PlazaNav/PlazaNav-doc
b88e7ff81023abd492b532597ff2deb660ed599a
[ "MIT" ]
7
2017-12-16T09:01:20.000Z
2017-12-21T22:00:52.000Z
projectdoc/listing/rubber_band.py
PlazaRoute/PlazaRoute-doc
b88e7ff81023abd492b532597ff2deb660ed599a
[ "MIT" ]
null
null
null
from qgis.gui import QgsRubberBand canvas = self.iface.mapCanvas() rubber_band = QgsRubberBand(canvas, geometry_type) rubber_band.setColor(color) rubber_band.setWidth(width) rubber_band.addPoint(start) rubber_band.addPoint(destination)
21.727273
50
0.832636
8fb80f4d497aa9dc5bb3574f8e58e379e3db7944
1,546
py
Python
redstone/block.py
AnythingTechPro/redstone-classic
8f535a8c52340bf8fe7db3da0c34e8f01fb8bf4d
[ "BSD-3-Clause" ]
2
2021-03-08T15:30:42.000Z
2021-07-20T20:04:34.000Z
redstone/block.py
AnythingTechPro/redstone-classic
8f535a8c52340bf8fe7db3da0c34e8f01fb8bf4d
[ "BSD-3-Clause" ]
null
null
null
redstone/block.py
AnythingTechPro/redstone-classic
8f535a8c52340bf8fe7db3da0c34e8f01fb8bf4d
[ "BSD-3-Clause" ]
1
2022-01-01T19:48:29.000Z
2022-01-01T19:48:29.000Z
""" * Copyright (C) Caleb Marshall - All Rights Reserved * Written by Caleb Marshall <anythingtechpro@gmail.com>, April 23rd, 2017 * Licensing information can found in 'LICENSE', which is part of this source code package. """ import redstone.util as util import redstone.packet as packet class BlockPhysicsManager(...
30.92
91
0.615783
9e94ab7dab64afbddb0a6966fa4adcf8687ee24f
2,691
py
Python
ecommerce/accounts/admin.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/admin.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
ecommerce/accounts/admin.py
mhdirajabi/django-drf-e-commerce
526044a728f9f073a21386ff7f67ac570f4755c6
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import Group from .forms import CustomUserChangeForm, CustomUserCreationForm from .models import Address, CustomUser, Profile, TOTPRequest # Register your models here. admin.site.site_header = "پروژه فرو...
21.528
66
0.498699
d0fc4c57cea0d2e9a3c7f0447c4f3ecd9de926d4
1,562
py
Python
{{cookiecutter.project_slug}}/app/routers/user.py
andredias/cookiecutter-fastapi
b5df6f80908d924e51a02fba34d1a01ccf4fc265
[ "MIT" ]
8
2021-06-12T10:11:03.000Z
2022-03-23T13:27:23.000Z
{{cookiecutter.project_slug}}/app/routers/user.py
andredias/cookiecutter-fastapi
b5df6f80908d924e51a02fba34d1a01ccf4fc265
[ "MIT" ]
12
2021-06-08T22:58:30.000Z
2022-02-22T15:43:10.000Z
{{cookiecutter.project_slug}}/app/routers/user.py
andredias/cookiecutter-fastapi
b5df6f80908d924e51a02fba34d1a01ccf4fc265
[ "MIT" ]
2
2021-08-10T22:55:49.000Z
2021-08-10T23:05:29.000Z
from asyncpg.exceptions import IntegrityConstraintViolationError from fastapi import APIRouter, Depends, HTTPException from loguru import logger from ..authentication import authenticated_user from ..models.user import delete, update from ..resources import redis from ..schemas import diff_models from ..schemas.user i...
26.033333
75
0.715109
d799788e7c7674bb62b406030c61dc070c8db09e
1,040
py
Python
code/api/health.py
CiscoSecurity/tr-05-serverless-shodan
9752f8c3d1c4f7bafe1c6fc6ae472abaee1fdbeb
[ "MIT" ]
3
2020-07-28T10:24:22.000Z
2021-02-18T18:48:03.000Z
code/api/health.py
CiscoSecurity/tr-05-serverless-shodan
9752f8c3d1c4f7bafe1c6fc6ae472abaee1fdbeb
[ "MIT" ]
null
null
null
code/api/health.py
CiscoSecurity/tr-05-serverless-shodan
9752f8c3d1c4f7bafe1c6fc6ae472abaee1fdbeb
[ "MIT" ]
1
2020-06-18T21:06:06.000Z
2020-06-18T21:06:06.000Z
import requests from http import HTTPStatus from flask import Blueprint, current_app from api.utils import jsonify_data from api.errors import ( ShodanUnexpectedError, ShodanInternalServerError, ShodanNotFoundError, ShodanSSLError ) health_api = Blueprint('health', __name__) @health_api.route('/heal...
28.888889
75
0.691346
5581ae54a36323a4a46f3383645e34f4c26755e1
2,891
py
Python
bin/simple_log_server.py
kr0nt4b/ctrl_my_home
fd86b479d78f94aaa5d6cc92f0f49399aaef0733
[ "Apache-2.0" ]
null
null
null
bin/simple_log_server.py
kr0nt4b/ctrl_my_home
fd86b479d78f94aaa5d6cc92f0f49399aaef0733
[ "Apache-2.0" ]
null
null
null
bin/simple_log_server.py
kr0nt4b/ctrl_my_home
fd86b479d78f94aaa5d6cc92f0f49399aaef0733
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 """ Simple socket server using threads """ import socket import sys from thread import * import os import logging HOST = '' # Symbolic name meaning all available interfaces PORT = 9998 # Arbitrary non-privileged port LOG_FORMAT = '%(asctime)-15s %(message)s' SMART_LOG = '/var/log/smart/smart...
28.91
95
0.590107
0dff99656734524d6480d4044c9d12fc2f31dded
2,184
py
Python
skyfield/tests/test_io.py
alz/python-skyfield
c240a22600d089bab53c3e7dcd4872fb8f6d3647
[ "MIT" ]
null
null
null
skyfield/tests/test_io.py
alz/python-skyfield
c240a22600d089bab53c3e7dcd4872fb8f6d3647
[ "MIT" ]
null
null
null
skyfield/tests/test_io.py
alz/python-skyfield
c240a22600d089bab53c3e7dcd4872fb8f6d3647
[ "MIT" ]
null
null
null
"""Test whether Skyfield handles file download and file age correctly.""" import shutil import tempfile from contextlib import contextmanager from datetime import date from mock import patch from skyfield import api #http://maia.usno.navy.mil/ser7/tai-utc.dat ''' need files that contain internal state too great a c...
29.12
73
0.651557
5fbbbb692463fd4a3a20ac0b80d8d30e6b412c07
3,358
py
Python
tensorfm/base.py
gmodena/tensor-fm
e688882f495035ebc62ffd1e3ac56158b68876d1
[ "MIT" ]
7
2020-02-17T11:42:59.000Z
2022-01-29T08:56:44.000Z
tensorfm/base.py
gongwenbo/tensor-fm
4497af6f1dc4d3f809b2f6579b582c63db312195
[ "MIT" ]
5
2020-05-21T21:15:43.000Z
2021-01-01T20:19:45.000Z
tensorfm/base.py
gongwenbo/tensor-fm
4497af6f1dc4d3f809b2f6579b582c63db312195
[ "MIT" ]
5
2020-03-03T21:25:18.000Z
2021-08-22T11:28:22.000Z
from . import logger import tensorflow as tf def l1_norm(V, W, lambda_=0.001): return tf.reduce_sum( tf.add(tf.multiply(lambda_, tf.abs(W)), tf.multiply(lambda_, tf.abs(V))) ) def l2_norm(V, W, lambda_=0.001): return tf.reduce_sum( tf.add(tf.multiply(lambda_, tf.pow(W, 2)), tf.multiply(l...
35.347368
114
0.650089
923c527386a39204b22c5d8c7e8d64ff0621ddf5
8,280
py
Python
setup.py
ChangxingJiang/Selenium4R
700c5f0462f86746357bcb7b69737a5f58ed9de9
[ "Apache-2.0" ]
1
2020-12-10T02:26:23.000Z
2020-12-10T02:26:23.000Z
setup.py
ChangxingJiang/Selenium4R
700c5f0462f86746357bcb7b69737a5f58ed9de9
[ "Apache-2.0" ]
null
null
null
setup.py
ChangxingJiang/Selenium4R
700c5f0462f86746357bcb7b69737a5f58ed9de9
[ "Apache-2.0" ]
null
null
null
import os import setuptools CUR_DIR = os.path.abspath(os.path.dirname(__file__)) README = os.path.join(CUR_DIR, "README.md") with open("README.md", encoding="UTF-8") as file: long_description = file.read() setuptools.setup( # This is the name of your project. The first time you publish this # package, th...
40.194175
98
0.66872
58107c4659879abc8689f02f932b4d3dc22f5268
3,799
py
Python
sheetwork/core/yaml/yaml_schema.py
jflairie/sheetwork
e0ebbd5ec7a586ecd94af6380c71ca5e378e03d7
[ "MIT" ]
1
2020-04-27T12:04:18.000Z
2020-04-27T12:04:18.000Z
sheetwork/core/yaml/yaml_schema.py
jflairie/sheetwork
e0ebbd5ec7a586ecd94af6380c71ca5e378e03d7
[ "MIT" ]
null
null
null
sheetwork/core/yaml/yaml_schema.py
jflairie/sheetwork
e0ebbd5ec7a586ecd94af6380c71ca5e378e03d7
[ "MIT" ]
null
null
null
"""Holds cerberus validation schemals for each yml parsed by any of the sheetwork system.""" config_schema = { "sheets": { "required": True, "type": "list", "schema": { "type": "dict", "schema": { "sheet_name": {"required": True, "type": "string"}, ...
40.414894
98
0.380626
ef0112e6329d8a3f88f20c19d55e5ca27a9b4c7e
206
py
Python
busy_beaver/extensions.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
null
null
null
busy_beaver/extensions.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
null
null
null
busy_beaver/extensions.py
BinSquare/busy-beaver
b8063a7e434eb47e638697719896880781f9783f
[ "MIT" ]
null
null
null
from flask_migrate import Migrate from flask_rq2 import RQ from flask_sqlalchemy import SQLAlchemy from flask_talisman import Talisman db = SQLAlchemy() migrate = Migrate() rq = RQ() talisman = Talisman()
20.6
39
0.800971
423eb323b51e6e925ab15000a8ac65e425fa1401
112,795
py
Python
Cython/Compiler/Symtab.py
rjtobin/cython
9912e336c575b5d1f025c41ed013da88b6251d46
[ "Apache-2.0" ]
2
2021-08-20T02:33:58.000Z
2021-11-17T10:54:00.000Z
Cython/Compiler/Symtab.py
0101011/cython
eb40e5d1f58c5d6a40a8f5b61608c18aaef2b877
[ "Apache-2.0" ]
null
null
null
Cython/Compiler/Symtab.py
0101011/cython
eb40e5d1f58c5d6a40a8f5b61608c18aaef2b877
[ "Apache-2.0" ]
1
2019-10-06T10:49:39.000Z
2019-10-06T10:49:39.000Z
# # Symbol Table # from __future__ import absolute_import import re import copy import operator try: import __builtin__ as builtins except ImportError: # Py3 import builtins from .Errors import warning, error, InternalError from .StringEncoding import EncodedString from . import Options, Naming from . im...
43.735944
134
0.594344
90f509932a43d08b8b7678649c956e3920cba418
1,557
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/apis/DescribeServicesRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/apis/DescribeServicesRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/monitor/apis/DescribeServicesRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
28.309091
106
0.685292
71f2c4cfbb279ef72a81beec87330d6ebe9186d0
816
py
Python
tests/journal.pkg/error_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.pkg/error_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.pkg/error_empty.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved def test(): """ Verify that empty log messages get handled properly """ # get the channel from journal.Error import Error as error # make an error channe...
19.428571
55
0.620098
ac9b6db5cf8b1fd6e472f3794fcc0067f14447ec
1,864
py
Python
files/curvature_functions.py
Lindt8/Lindt8.github.io
d1eb2539c39ab8957a3e1e9038548dc2e098c4b4
[ "MIT" ]
null
null
null
files/curvature_functions.py
Lindt8/Lindt8.github.io
d1eb2539c39ab8957a3e1e9038548dc2e098c4b4
[ "MIT" ]
null
null
null
files/curvature_functions.py
Lindt8/Lindt8.github.io
d1eb2539c39ab8957a3e1e9038548dc2e098c4b4
[ "MIT" ]
null
null
null
''' Curvature, circumradius, and circumcenter functions written by Hunter Ratliff on 2019-02-03 ''' def curvature(x_data,y_data): ''' Calculates curvature for all interior points on a curve whose coordinates are provided Input: - x_data: list of n x-coordinates - y_data: list of n y-c...
31.59322
110
0.54721
135bf717a5ec5b8287909837b13397a2a2c9703b
1,053
py
Python
docs/source/user_guide/workflows/code/orbcontrol_parameters.py
JuDFTteam/aiida-fleur
f5f98368e4267c15ed2990c005d63b1e498e7729
[ "MIT" ]
7
2020-03-13T22:49:12.000Z
2022-01-21T08:11:22.000Z
docs/source/user_guide/workflows/code/orbcontrol_parameters.py
JuDFTteam/aiida-fleur
f5f98368e4267c15ed2990c005d63b1e498e7729
[ "MIT" ]
127
2018-11-27T09:06:32.000Z
2022-03-31T10:21:26.000Z
docs/source/user_guide/workflows/code/orbcontrol_parameters.py
broeder-j/aiida_fleur_plugin
cca54b194f4b217abb69aaa1fca0db52c6c830c3
[ "MIT" ]
6
2018-11-09T08:47:35.000Z
2022-03-18T14:17:19.000Z
# -*- coding: utf-8 -*- 'iterations_fixed': 30, #Number of iterations to run with fixed density matrices 'ldau_dict': {'all-Nd': {'l': 3, #Specifications of the LDA+U parameters to add 'U': 6.7, #Note that the input has to be without LDA+U ...
81
107
0.525166
587dedeff2de78e86cbcd6dd96f27f8069cef485
5,925
py
Python
test/python/WMCore_t/JobSplitting_t/SizeBased_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
test/python/WMCore_t/JobSplitting_t/SizeBased_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
test/python/WMCore_t/JobSplitting_t/SizeBased_t.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _SizeBased_t_ Size based splitting test. """ from builtins import range import unittest from WMCore.DataStructs.File import File from WMCore.DataStructs.Fileset import Fileset from WMCore.DataStructs.Job import Job from WMCore.DataStructs.Subscription import Subscription from WMCore.Data...
31.684492
105
0.590717
7f1da44e19ae516af7097d0a83b614535d5d025b
6,318
py
Python
DQN/DQN-Qube/DQN.py
lambert-x/Reinforcement-Learning-DQN-MPC
0e2713a2869d68e49bcb1f379f6a1df4a4bfb349
[ "MIT" ]
5
2019-07-25T12:30:06.000Z
2020-06-30T13:23:18.000Z
DQN/DQN-Qube/DQN.py
lambert-x/Reinforcement-Learning-DQN-MPC
0e2713a2869d68e49bcb1f379f6a1df4a4bfb349
[ "MIT" ]
null
null
null
DQN/DQN-Qube/DQN.py
lambert-x/Reinforcement-Learning-DQN-MPC
0e2713a2869d68e49bcb1f379f6a1df4a4bfb349
[ "MIT" ]
7
2019-07-04T10:28:56.000Z
2020-05-27T22:11:24.000Z
# coding: utf-8 import random import torch import torch.nn as nn import torch.autograd as autograd import torch.optim as optim import numpy as np import copy from collections import deque from utils import * class MLP(nn.Module): '''A simple implementation of the multi-layer neural network''' def __init__(sel...
38.52439
108
0.628522
e7cd3e57f385cda863754a2082eb5e38f13b698f
2,281
py
Python
pybtex/errors.py
chfritz/pybtex
1649bb985602ceb800c4fcb7d9a9ed0191f34504
[ "MIT" ]
1
2020-06-11T20:23:45.000Z
2020-06-11T20:23:45.000Z
pybtex/errors.py
chfritz/pybtex
1649bb985602ceb800c4fcb7d9a9ed0191f34504
[ "MIT" ]
null
null
null
pybtex/errors.py
chfritz/pybtex
1649bb985602ceb800c4fcb7d9a9ed0191f34504
[ "MIT" ]
null
null
null
# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Andrey Golovizin # # 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 ...
29.623377
84
0.713284
4745cb64c6fc7eac7aac7d2b3aefe93b85a2e810
3,868
py
Python
benchmark/startCirq1160.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1160.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq1160.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=52 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
37.921569
77
0.657187
276c24a024969d9c85aea9e021e29a9ff682a49e
7,257
py
Python
service/models.py
NYU-Devops-orders/orders
cba4404c4a75550c4834a646ab91aae0ebc5fdac
[ "Apache-2.0" ]
null
null
null
service/models.py
NYU-Devops-orders/orders
cba4404c4a75550c4834a646ab91aae0ebc5fdac
[ "Apache-2.0" ]
81
2020-02-28T19:00:36.000Z
2020-05-08T02:54:23.000Z
service/models.py
NYU-Devops-orders/orders
cba4404c4a75550c4834a646ab91aae0ebc5fdac
[ "Apache-2.0" ]
4
2020-03-02T05:04:44.000Z
2020-04-07T16:03:32.000Z
""" Models for Order All of the models are stored in this module """ import os import json import logging from flask_sqlalchemy import SQLAlchemy logger = logging.getLogger("flask.app") # pylint: disable=locally-disabled, invalid-name # Create the SQLAlchemy object to be initialized later in init_db() db = SQLAlchemy...
37.994764
130
0.578889
1563dc88c7f68016c6326e2e9854d9543cd75781
2,136
py
Python
Medium/33_3.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/33_3.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/33_3.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 33. Search in Rotated Sorted Array # # Description: # Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. # # (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). # # You are given a target value to search. If found in the array return it...
32.363636
102
0.535112
ecdf5f5eee535e6bc04bb8f5f5aeb045c7ead4ec
19,592
py
Python
selfdrive/car/honda/interface.py
afoerster/openpilot
d11a9f4bb199e648a19cfa5d2e1b0ea594e57050
[ "MIT" ]
1
2021-04-18T18:43:36.000Z
2021-04-18T18:43:36.000Z
selfdrive/car/honda/interface.py
afoerster/openpilot
d11a9f4bb199e648a19cfa5d2e1b0ea594e57050
[ "MIT" ]
null
null
null
selfdrive/car/honda/interface.py
afoerster/openpilot
d11a9f4bb199e648a19cfa5d2e1b0ea594e57050
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from cereal import car from panda import Panda from common.numpy_fast import interp from common.params import Params from selfdrive.car.honda.values import CarControllerParams, CruiseButtons, CAR, HONDA_BOSCH, HONDA_BOSCH_ALT_BRAKE_SIGNAL from selfdrive.car import STD_CARGO_KG, CivicParams, scale...
45.457077
144
0.674459
ecb27ad71a666c04a66b1560430fc410ec40d330
1,214
py
Python
scripts/parse_eval.py
raahii/yolact
859ab63a10a0b30a0009de98552b4ce178abaaf4
[ "MIT" ]
3
2020-04-21T07:52:02.000Z
2022-01-04T05:52:29.000Z
scripts/parse_eval.py
raahii/yolact
859ab63a10a0b30a0009de98552b4ce178abaaf4
[ "MIT" ]
null
null
null
scripts/parse_eval.py
raahii/yolact
859ab63a10a0b30a0009de98552b4ce178abaaf4
[ "MIT" ]
3
2020-05-21T10:25:26.000Z
2022-02-07T17:06:13.000Z
import re, sys, os import matplotlib.pyplot as plt from matplotlib._color_data import XKCD_COLORS with open(sys.argv[1], "r") as f: txt = f.read() txt, overall = txt.split("overall performance") class_names = [] mAP_overall = [] mAP_small = [] mAP_medium = [] mAP_large = [] for class_result in txt.split("evalua...
24.28
60
0.669687
9a85b14ad415ff56afec223281feb8aa75c8c68a
57,385
py
Python
accelerator/dataset.py
eBay/accelerator
218d9a5e4451ac72b9e65df6c5b32e37d25136c8
[ "Apache-2.0" ]
143
2018-04-20T18:50:41.000Z
2022-02-06T07:07:35.000Z
accelerator/dataset.py
exaxorg/accelerator
d6132f215585b98d2ad14c5d74d2c937fbd940e2
[ "Apache-2.0" ]
null
null
null
accelerator/dataset.py
exaxorg/accelerator
d6132f215585b98d2ad14c5d74d2c937fbd940e2
[ "Apache-2.0" ]
29
2018-04-20T18:50:43.000Z
2021-04-27T18:42:23.000Z
# -*- coding: utf-8 -*- ############################################################################ # # # Copyright (c) 2017 eBay Inc. # # Modifications copyright (c) 2018-2021 Carl Drougge ...
37.360026
296
0.690738
11a33445eb4dd4f3cf9228f0f0ea5e027583e660
11,592
py
Python
examples/python/ode_intersection_min_max_dimensions.py
prominenceai/deepstream-services-library
9a902d20437b9df60549eb7466ca90e77ca354fd
[ "MIT" ]
74
2021-03-02T07:52:34.000Z
2022-03-28T04:29:19.000Z
examples/python/ode_intersection_min_max_dimensions.py
prominenceai/deepstream-services-library
9a902d20437b9df60549eb7466ca90e77ca354fd
[ "MIT" ]
188
2021-02-24T19:48:32.000Z
2022-03-23T22:58:33.000Z
examples/python/ode_intersection_min_max_dimensions.py
prominenceai/deepstream-services-library
9a902d20437b9df60549eb7466ca90e77ca354fd
[ "MIT" ]
12
2021-03-03T00:05:18.000Z
2022-03-16T06:13:06.000Z
################################################################################ # The MIT License # # Copyright (c) 2019-2021, Prominence AI, Inc. # # 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 So...
42.774908
120
0.629572
47b8f85fa943207474e15a1744b7f41a9213e2d5
6,244
py
Python
aws_helpers/s3.py
vaivaug/aws_helpers
77768c43d3a05ed26a0594f0a16ffa970de9f2fa
[ "MIT" ]
null
null
null
aws_helpers/s3.py
vaivaug/aws_helpers
77768c43d3a05ed26a0594f0a16ffa970de9f2fa
[ "MIT" ]
null
null
null
aws_helpers/s3.py
vaivaug/aws_helpers
77768c43d3a05ed26a0594f0a16ffa970de9f2fa
[ "MIT" ]
null
null
null
#!/bin/python3 from botocore.exceptions import ClientError from boto3.exceptions import S3UploadFailedError from aws_helpers.client import Client import json import os class S3Client(Client): """Returns an S3Client object which has functions to aid interacting with Amazon s3. Returns: S3Client ...
35.68
188
0.607143
ed2112c3c240e257886dc9f2954c5235c2105496
208
py
Python
sslify/__init__.py
MikeHibbert/django-sslify
ab8c71106fd4ed04f289830e2b2e7493fd487af7
[ "Unlicense" ]
null
null
null
sslify/__init__.py
MikeHibbert/django-sslify
ab8c71106fd4ed04f289830e2b2e7493fd487af7
[ "Unlicense" ]
null
null
null
sslify/__init__.py
MikeHibbert/django-sslify
ab8c71106fd4ed04f289830e2b2e7493fd487af7
[ "Unlicense" ]
null
null
null
"""django-sslify package information.""" VERSION = (0, 2, 4) def get_version(): """returns a pep compliant version number""" return '.'.join(str(i) for i in VERSION) __version__ = get_version()
16
48
0.653846
15072457d3e1c06a5b25f9898e94b0bfc0820348
6,797
py
Python
meiduo_mall/meiduo_mall/apps/users/serializers.py
zyp6857/meiduo
5d8e5eacdb979613be9cfcb567288ca9e465f350
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/serializers.py
zyp6857/meiduo
5d8e5eacdb979613be9cfcb567288ca9e465f350
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/serializers.py
zyp6857/meiduo
5d8e5eacdb979613be9cfcb567288ca9e465f350
[ "MIT" ]
null
null
null
import re from django_redis import get_redis_connection from rest_framework import serializers from rest_framework.generics import CreateAPIView from goods.models import SKU from users import constants from users.models import User, Address class UserSerializer(serializers.ModelSerializer): """用户序列化器类""" pa...
27.297189
102
0.610416
0a0038829ab2097e9acfb49657fc31080ca5d006
1,887
py
Python
corylus/resources/task.py
gucheen/corylus-prototype
b1db14314ef5c07ec8b179a7843f54f62f58c8bb
[ "MIT" ]
null
null
null
corylus/resources/task.py
gucheen/corylus-prototype
b1db14314ef5c07ec8b179a7843f54f62f58c8bb
[ "MIT" ]
null
null
null
corylus/resources/task.py
gucheen/corylus-prototype
b1db14314ef5c07ec8b179a7843f54f62f58c8bb
[ "MIT" ]
null
null
null
from flask import g from flask_restful import Resource, reqparse, marshal_with, fields from flask_restful.inputs import boolean from corylus.models.task import Task from corylus.huey_tasks.tasks import render_to_png import uuid import arrow task_fields = { 'name': fields.String, 'target_url': fields.String, ...
29.484375
81
0.63328
073d8540b45d47f88466e36407f19272cc63a967
685
py
Python
app/core/migrations/0003_ingredient.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2019-05-02 16:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( n...
28.541667
118
0.617518
22b7f53948a57142c650f67955e1cf98e7f21a98
780
py
Python
imdbTask11.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask11.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask11.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
from imdbTask9 import* def analyse_movies_language(moviesDetails): genreList=[] for index in moviesDetails: genreList.extend(index["genres"]) duplicatedGenre=[] for index1 in range(len(genreList)): if genreList[index1] not in duplicatedGenre: dupl...
33.913043
64
0.576923
13767caf19bd23577a81f49d2472271a2827bb2b
1,353
py
Python
Tectonic_Utils/read_write/general_python_io_functions.py
kmaterna/Tectonic_Utils
f713a3ce2a80d2e6dbdc42596451405bb873adbb
[ "MIT" ]
4
2021-05-05T04:06:37.000Z
2022-03-30T07:08:17.000Z
Tectonic_Utils/read_write/general_python_io_functions.py
kmaterna/Tectonic_Utils
f713a3ce2a80d2e6dbdc42596451405bb873adbb
[ "MIT" ]
null
null
null
Tectonic_Utils/read_write/general_python_io_functions.py
kmaterna/Tectonic_Utils
f713a3ce2a80d2e6dbdc42596451405bb873adbb
[ "MIT" ]
null
null
null
""" Functions to read common file types into structures in Pythin Example: a multi-segment file with polygons or lines, as could be used in GMT """ def read_gmt_multisegment_latlon(input_file, split_delimiter=' '): """ Generalized GMT multisegment file reader. Returns lon and lat in a list of lists, each ...
33.825
88
0.632668
b23506fd28213d85c8d9866a40f5e20982a5076b
3,994
py
Python
app/recipe/tests/test_tags_api.py
jacastillol/recipe-app-api
8422ec7393438d63c5bcc1d68f610219de6d7909
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
jacastillol/recipe-app-api
8422ec7393438d63c5bcc1d68f610219de6d7909
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
jacastillol/recipe-app-api
8422ec7393438d63c5bcc1d68f610219de6d7909
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class ...
31.952
71
0.632699
02318ea09ba55cbbbc044301d2ddbc0b873bb0f2
372
py
Python
multiple-languages/python/ros-cdk-cddc-1.0.4/src/ros_cdk_cddc/_jsii/__init__.py
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
2a12deea757ac69e69708dd9fd159fba12cfba0e
[ "Apache-2.0" ]
null
null
null
multiple-languages/python/ros-cdk-cddc-1.0.4/src/ros_cdk_cddc/_jsii/__init__.py
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
2a12deea757ac69e69708dd9fd159fba12cfba0e
[ "Apache-2.0" ]
null
null
null
multiple-languages/python/ros-cdk-cddc-1.0.4/src/ros_cdk_cddc/_jsii/__init__.py
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
2a12deea757ac69e69708dd9fd159fba12cfba0e
[ "Apache-2.0" ]
null
null
null
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions import constructs._jsii import ros_cdk_core._jsii __jsii_assembly__ = jsii.JSIIAssembly.load( "@alicloud/ros-cdk-cddc", "1.0.4", __name__[0:-6], "ros-cdk-cddc@1.0.4.jsii.tgz" ) __all__ = ...
16.173913
84
0.760753
140df9c6eb41ab5073d000f8b32c18d9ceaf5645
2,358
py
Python
arvet/batch_analysis/tasks/tests/test_train_system_task.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
2
2021-05-27T21:48:34.000Z
2021-06-12T02:58:44.000Z
arvet/batch_analysis/tasks/tests/test_train_system_task.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
null
null
null
arvet/batch_analysis/tasks/tests/test_train_system_task.py
jskinn/arvet
742cf3e7ee8848c4efebfaa887fc9c0fd90a06e9
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, John Skinner # import unittest # import numpy as np # import bson # import arvet.database.tests.test_entity # import arvet.util.dict_utils as du # import arvet.batch_analysis.task # import arvet.batch_analysis.tasks.train_system_task as task # # # class TestTrainSystemTask(arvet.database.tests.t...
44.490566
103
0.627226
54e3ebe090eb63519d0642ae291cf13310c8c369
2,657
py
Python
vintage/compare.py
sajarindider/vim-vintage-colorscheme
56e5a1990c086c1af16cf67714f151b3adceaf7a
[ "MIT" ]
3
2018-08-30T23:41:00.000Z
2020-03-22T23:47:01.000Z
vintage/compare.py
sajarindider/vim-vintage-colorscheme
56e5a1990c086c1af16cf67714f151b3adceaf7a
[ "MIT" ]
null
null
null
vintage/compare.py
sajarindider/vim-vintage-colorscheme
56e5a1990c086c1af16cf67714f151b3adceaf7a
[ "MIT" ]
1
2020-10-30T23:21:44.000Z
2020-10-30T23:21:44.000Z
########################################################### # compare.py -Script that compares any two painting's hex # hex values for similarity or rank in the # frequency list and quantifies it with a # percentage # Author: Shaedil Dider ###########################################...
39.656716
116
0.668047
541d8ff8172ee4abde3a9c1c8b5eab5b51d92bb2
2,090
py
Python
src/auth_web.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/auth_web.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
src/auth_web.py
mnoble19/AlexaPi
59c37c9f9970b12c2775358b6c59e046cdb0f475
[ "MIT" ]
null
null
null
#! /usr/bin/env python import yaml import cherrypy import os from cherrypy.process import servers import requests import json import urllib import socket import alexapi.config with open(alexapi.config.filename, 'r') as stream: config = yaml.load(stream) class Start(object): def index(self): scope="alexa_all" ...
36.034483
188
0.676077
fed932cf16e8b5309b47cf3023005eb48ca0b83c
104
py
Python
tests/input_scripts/print_clear.py
shiba6v/shape_commentator
e57c4d7e0781fa02fdc49dbc5c88236df5948cf1
[ "MIT" ]
65
2018-12-06T15:34:50.000Z
2021-09-10T12:38:43.000Z
tests/input_scripts/print_clear.py
shiba6v/shape_commentator
e57c4d7e0781fa02fdc49dbc5c88236df5948cf1
[ "MIT" ]
5
2018-12-14T06:32:54.000Z
2019-08-04T09:36:45.000Z
tests/input_scripts/print_clear.py
shiba6v/shape_commentator
e57c4d7e0781fa02fdc49dbc5c88236df5948cf1
[ "MIT" ]
1
2019-01-02T00:05:38.000Z
2019-01-02T00:05:38.000Z
import numpy as np a = np.array([1,2,3,4,5,6]) #_ clear it! b = np.array([0,1,2,3,4,5]) #_ clear it!
20.8
41
0.567308
987e4129274ee706c7b97dd37f32165909b12f76
106
py
Python
tests/test_sample.py
isaccanedo/google-images-download
1488cc73dd3eaa2042bdffd89d276ac61980debb
[ "MIT" ]
null
null
null
tests/test_sample.py
isaccanedo/google-images-download
1488cc73dd3eaa2042bdffd89d276ac61980debb
[ "MIT" ]
null
null
null
tests/test_sample.py
isaccanedo/google-images-download
1488cc73dd3eaa2042bdffd89d276ac61980debb
[ "MIT" ]
null
null
null
# Teste de amostra passando com nariz e pytest def test_pass(): assert True, "dummy sample test"
21.2
46
0.698113
667071d272cf570e2e1a954c0e9939f01ed22c72
5,253
py
Python
preprocessing/gen_isomorphism_graphs.py
fusiming3/arch2vec
dff33ea65161bc9aaeff29003b1a37ababf2297c
[ "Apache-2.0" ]
35
2020-10-22T03:58:23.000Z
2022-03-21T12:55:35.000Z
preprocessing/gen_isomorphism_graphs.py
fusiming3/arch2vec
dff33ea65161bc9aaeff29003b1a37ababf2297c
[ "Apache-2.0" ]
1
2021-06-03T13:49:47.000Z
2021-06-06T02:02:11.000Z
preprocessing/gen_isomorphism_graphs.py
fusiming3/arch2vec
dff33ea65161bc9aaeff29003b1a37ababf2297c
[ "Apache-2.0" ]
9
2020-10-22T14:13:53.000Z
2022-03-21T08:06:12.000Z
import json import torch import numpy as np import logging import sys import os sys.path.insert(0, os.getcwd()) from darts.cnn.genotypes import Genotype from darts.cnn.model import NetworkImageNet as Network from thop import profile def process(geno): for i, item in enumerate(geno): geno[i] = tuple(geno[i]...
28.394595
126
0.553779
cfc99264a843658264523e7696cca2093a94cf47
1,858
py
Python
cluster/speedup.py
wwu-numerik/DUNE-mlmc
5ea4b663ec0a30d2bfcccdf736a9db9bdcea16fb
[ "BSD-2-Clause" ]
null
null
null
cluster/speedup.py
wwu-numerik/DUNE-mlmc
5ea4b663ec0a30d2bfcccdf736a9db9bdcea16fb
[ "BSD-2-Clause" ]
null
null
null
cluster/speedup.py
wwu-numerik/DUNE-mlmc
5ea4b663ec0a30d2bfcccdf736a9db9bdcea16fb
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """Simple demonstration of solving the Poisson equation in 2D using pyMOR's builtin discretizations. Usage: speedup.py [options] TEMPLATE STARTNODE POWER MACRO MICRO Arguments: TEMPLATE Which template file to use STARTNODE Number of nodes to begin speedup run with ...
29.967742
100
0.642626
70387d66c314f92d3fb27cc4a59149118b7c1386
36,275
py
Python
flink-python/pyflink/datastream/state_backend.py
mnmhouse/flink
8b05cbee4425c5ee33d73bed1473e075d7e17387
[ "Apache-2.0" ]
41
2018-11-14T04:05:42.000Z
2022-02-09T10:39:23.000Z
flink-python/pyflink/datastream/state_backend.py
mnmhouse/flink
8b05cbee4425c5ee33d73bed1473e075d7e17387
[ "Apache-2.0" ]
15
2021-06-13T18:06:12.000Z
2022-02-09T22:40:04.000Z
flink-python/pyflink/datastream/state_backend.py
fantasticKe/flink
c42ad0fcbcd5f2666952ee3fc4763490915091f6
[ "Apache-2.0" ]
16
2019-01-04T09:19:03.000Z
2022-01-10T14:34:31.000Z
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
47.793149
100
0.691137
a87a3b311c4dc75bc70481f2bc9c97ee0a2d2a5f
5,153
py
Python
guildwars2/bt.py
Maselkov/GW2Bot
b6d10895414fddc85201e25068ef6f8ea8145061
[ "MIT" ]
75
2017-05-06T18:53:34.000Z
2022-01-10T08:02:48.000Z
guildwars2/bt.py
Maselkov/GW2Bot
b6d10895414fddc85201e25068ef6f8ea8145061
[ "MIT" ]
81
2017-05-07T18:04:06.000Z
2021-12-13T13:34:45.000Z
guildwars2/bt.py
Maselkov/GW2Bot
b6d10895414fddc85201e25068ef6f8ea8145061
[ "MIT" ]
56
2017-05-07T06:58:29.000Z
2022-03-28T23:23:42.000Z
import discord from discord.ext import commands from discord.ext.commands import BucketType BT_PIPELINE = [{ '$group': { '_id': '$account_name', 'bosses': { '$push': '$bosses' } } }, { '$unwind': '$bosses' }, { '$unwind': '$bosses' }, { '$group': { '_id':...
34.817568
79
0.497962
8a533adbdca00d639428845f92802c2e8074bc5e
5,923
py
Python
main.py
hdiogenes/of_l2ls
ee53adba748fcc89c078287afcb284a53f67283d
[ "MIT" ]
null
null
null
main.py
hdiogenes/of_l2ls
ee53adba748fcc89c078287afcb284a53f67283d
[ "MIT" ]
8
2021-06-02T20:25:38.000Z
2021-08-24T14:15:11.000Z
main.py
hdiogenes/of_l2ls
ee53adba748fcc89c078287afcb284a53f67283d
[ "MIT" ]
9
2018-02-06T15:53:11.000Z
2021-06-01T12:16:44.000Z
"""NApp that solve the L2 Learning Switch algorithm.""" import requests from kytos.core import KytosEvent, KytosNApp, log from kytos.core.helpers import listen_to from pyof.foundation.network_types import Ethernet # OpenFlow structures that differ will be imported versionwise. from pyof.v0x01.asynchronous.packet_in imp...
34.236994
79
0.634138
c184941ef60b83c14ef453f16988b144b87317a9
3,243
py
Python
ctpn/lib/text_connector/text_proposal_graph_builder.py
amz-hjinfeng/ctpn-sagemaker
576844b7762922a3fcf4a5097cee1ffd2c5ae07e
[ "MIT" ]
26
2019-07-29T10:35:54.000Z
2022-03-27T03:51:18.000Z
api/lib/text_connector/text_proposal_graph_builder.py
Praneet9/Docify
a936014750dedf4a6b5a84918bbbf66cd63109de
[ "MIT" ]
null
null
null
api/lib/text_connector/text_proposal_graph_builder.py
Praneet9/Docify
a936014750dedf4a6b5a84918bbbf66cd63109de
[ "MIT" ]
15
2019-06-30T09:48:22.000Z
2022-02-07T20:48:24.000Z
from .text_connect_cfg import Config as TextLineCfg from .other import Graph import numpy as np class TextProposalGraphBuilder: """ Build Text proposals into a graph. """ def get_successions(self, index): box=self.text_proposals[index] results=[] for...
41.050633
114
0.604995
31fbe34156521e9da40e901e58e398fa9046e330
2,273
py
Python
socialnetworks/twitter/clients.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
5
2015-06-18T03:30:28.000Z
2017-11-04T21:34:20.000Z
socialnetworks/twitter/clients.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
2
2015-04-25T00:06:19.000Z
2015-04-30T22:42:40.000Z
socialnetworks/twitter/clients.py
gGonz/django-socialnetworks
3f6c577efafd6ed5eb8b5cb60d9ee6a36920581d
[ "Apache-2.0" ]
4
2015-06-11T18:28:04.000Z
2016-09-07T15:08:09.000Z
from . import settings from .models import TwitterOAuthProfile from ..core.clients import OAuth1Client class TwitterClient(OAuth1Client): """ Client to connect to the Twitter REST API. """ # Configuration service_name = 'Twitter' app_key = settings.APP_ID app_secret = settings.APP_SECRET ...
33.426471
78
0.635724
a132986d9488c00ee6acd6e750e3dc9d51a61e86
1,248
py
Python
genome_sampler/tests/test_sample_random.py
Oddant1/genome-sampler
eccaa591388ab98fad8a657b868fad75996eaa8c
[ "BSD-3-Clause" ]
4
2020-07-04T21:39:32.000Z
2022-03-18T11:08:48.000Z
genome_sampler/tests/test_sample_random.py
Oddant1/genome-sampler
eccaa591388ab98fad8a657b868fad75996eaa8c
[ "BSD-3-Clause" ]
57
2020-05-28T18:26:37.000Z
2021-03-11T22:12:16.000Z
genome_sampler/tests/test_sample_random.py
Oddant1/genome-sampler
eccaa591388ab98fad8a657b868fad75996eaa8c
[ "BSD-3-Clause" ]
6
2020-05-28T22:28:52.000Z
2022-01-24T14:53:16.000Z
import unittest import pandas as pd import qiime2 from genome_sampler.sample_random import sample_random class TestSubsampleRandom(unittest.TestCase): def setUp(self): df = pd.DataFrame({'foo': range(26)}, index=[chr(x) for x in range(65, 91)]) df.index.name = 'id' ...
24
64
0.601763
63b36640b2b4af21fbbf563e76050d6038c89b3f
290
py
Python
EPFlask/app/forms.py
wushenchao/Python-Flask
eebe5be254cf4f1128555e741eadaaf53277a8f9
[ "MIT" ]
null
null
null
EPFlask/app/forms.py
wushenchao/Python-Flask
eebe5be254cf4f1128555e741eadaaf53277a8f9
[ "MIT" ]
null
null
null
EPFlask/app/forms.py
wushenchao/Python-Flask
eebe5be254cf4f1128555e741eadaaf53277a8f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask_wtf import Form from wtforms import StringField, BooleanField from wtforms.validators import DataRequired class LoginForm(Form): openid = StringField('openid', validators=[DataRequired()]) remember_me = BooleanField('remember_me', default=False)
26.363636
63
0.77931
68325be109252586860602f203e7c31011ab01f0
39,906
py
Python
hikari/internal/cache.py
sabidib/hikari
e1e112a1b2938890e4abd38eb07b559fda7eedbb
[ "MIT" ]
1
2021-09-05T18:15:24.000Z
2021-09-05T18:15:24.000Z
hikari/internal/cache.py
sabidib/hikari
e1e112a1b2938890e4abd38eb07b559fda7eedbb
[ "MIT" ]
11
2020-10-12T14:35:06.000Z
2021-10-20T16:26:15.000Z
hikari/internal/cache.py
sabidib/hikari
e1e112a1b2938890e4abd38eb07b559fda7eedbb
[ "MIT" ]
1
2021-06-23T07:26:48.000Z
2021-06-23T07:26:48.000Z
# -*- coding: utf-8 -*- # cython: language_level=3 # Copyright (c) 2020 Nekokatt # Copyright (c) 2021 davfsa # # 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 w...
38.445087
121
0.667318
67d2507bbf880d8a420d330c403ed51cdfc5f969
397
py
Python
apps/order/migrations/0010_auto_20201120_1307.py
lucasjaroszewski/Due-Gatti
e6ade041f23454b490661261af11bc065db80b54
[ "MIT" ]
null
null
null
apps/order/migrations/0010_auto_20201120_1307.py
lucasjaroszewski/Due-Gatti
e6ade041f23454b490661261af11bc065db80b54
[ "MIT" ]
null
null
null
apps/order/migrations/0010_auto_20201120_1307.py
lucasjaroszewski/Due-Gatti
e6ade041f23454b490661261af11bc065db80b54
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-20 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0009_auto_20201120_1305'), ] operations = [ migrations.AlterField( model_name='order', name='delivered_at',...
20.894737
58
0.602015
cd2351d29681d88282ed6f06d8519a98a502730b
9,507
py
Python
test/python_test.py
ddurgoji/docker-selenium
7d3beb7a5e4083384738d69fc8d6b2e1b16f8d60
[ "Apache-2.0" ]
null
null
null
test/python_test.py
ddurgoji/docker-selenium
7d3beb7a5e4083384738d69fc8d6b2e1b16f8d60
[ "Apache-2.0" ]
null
null
null
test/python_test.py
ddurgoji/docker-selenium
7d3beb7a5e4083384738d69fc8d6b2e1b16f8d60
[ "Apache-2.0" ]
1
2021-08-05T00:30:47.000Z
2021-08-05T00:30:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Dependencies # pip install -U selenium==3.3.1 # Usage # curl -sSL https://raw.github.com/dosel/t/i/s | python import os import sys import time import datetime from retrying import retry # Import the Selenium 2 namespace (aka "webdriver") from selenium import webdriver...
38.804082
116
0.704744
1172e66353731399b8870f1fe47be664c2deced4
3,067
py
Python
set1/sbxor.py
elevenchars/cryptopals
d0cbe6dfcf7caf7f630b8867c38d1af2f42deb33
[ "MIT" ]
null
null
null
set1/sbxor.py
elevenchars/cryptopals
d0cbe6dfcf7caf7f630b8867c38d1af2f42deb33
[ "MIT" ]
null
null
null
set1/sbxor.py
elevenchars/cryptopals
d0cbe6dfcf7caf7f630b8867c38d1af2f42deb33
[ "MIT" ]
null
null
null
import string import collections """ The hex encoded string: 1b37373331363f78151b7f2b783431333d78397828372d363c78373e783a393b3736 ... has been XOR'd against a single character. Find the key, decrypt the message. You can do this by hand. But don't: write code to do it for you. How? Devise some method for "scoring" ...
27.141593
167
0.622758
6d1cfb6bd8ee5bb694a7b5e3c3c64c0d96acabf0
823
py
Python
core/migrations/0003_incidentextension.py
faceit/response
7ed9114c0adc6542605666a13b0f77757f75c882
[ "MIT" ]
1
2019-06-11T13:30:50.000Z
2019-06-11T13:30:50.000Z
core/migrations/0003_incidentextension.py
faceit/response
7ed9114c0adc6542605666a13b0f77757f75c882
[ "MIT" ]
9
2020-03-24T18:14:57.000Z
2022-02-10T10:15:04.000Z
core/migrations/0003_incidentextension.py
joshedney/slack-incident-bot
186b34bbc8f10c66adf76d39af1b6cf2be45d249
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-17 11:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20190507_2049'), ] operations = [ migrations.CreateModel( name='IncidentExten...
30.481481
114
0.575942
1121392914a5f8046c9c230de720a5fdca5726ea
9,772
py
Python
tests/base_test.py
ingenieursaurav/civics_cdf_validator
32700ad5aa58adad2df24accc1ea084281a53eb1
[ "Apache-2.0" ]
1
2020-06-18T14:31:34.000Z
2020-06-18T14:31:34.000Z
tests/base_test.py
ingenieursaurav/civics_cdf_validator
32700ad5aa58adad2df24accc1ea084281a53eb1
[ "Apache-2.0" ]
null
null
null
tests/base_test.py
ingenieursaurav/civics_cdf_validator
32700ad5aa58adad2df24accc1ea084281a53eb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test for base.py.""" import datetime import io import sys from absl.testing import absltest from civics_cdf_validator import base from civics_cdf_validator import loggers from lxml import etree from mock import patch class ValidReferenceRuleTest(absltest.TestCase): def testItExtend...
35.534545
79
0.682665
eb0b51c2d3bc8d28872529655ac91a52c45bca76
103,571
py
Python
api/helpers.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
5
2021-08-16T16:32:41.000Z
2022-02-22T03:47:49.000Z
api/helpers.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
7
2021-04-12T14:48:48.000Z
2022-02-14T08:30:57.000Z
api/helpers.py
Code-and-Response/ISAC-SIMO-Repo-2
5b0cb0099e128dbacfdc53bf686ef2b069a51bc6
[ "PostgreSQL", "Apache-2.0" ]
1
2021-04-28T14:28:34.000Z
2021-04-28T14:28:34.000Z
import base64 import json import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import uuid from importlib import reload from zipfile import ZipFile import filetype import mistune import requests from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from PIL import Image import ...
48.579268
620
0.533499
7600e3760242438f3d163b311eca0c90f53835b5
54
py
Python
src/imitation/envs/__init__.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
438
2019-04-11T22:02:03.000Z
2022-03-30T05:17:19.000Z
src/imitation/envs/__init__.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
397
2019-03-22T18:24:10.000Z
2022-03-29T23:08:05.000Z
src/imitation/envs/__init__.py
dreamfyrian/imitation
682bc4b919baf57bdd959ac646caba21d92cdf71
[ "MIT" ]
106
2019-04-11T22:02:08.000Z
2022-03-28T14:12:20.000Z
"""Environment base clasess and demo environments."""
27
53
0.759259
4c455d0e2e07ed6cde25f8fc83ad33c7d57228bd
1,037
py
Python
src/misc/logging.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
null
null
null
src/misc/logging.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
null
null
null
src/misc/logging.py
jacobic/redpipes
8da07f79e5f93441fdf12e3346722cc56d021525
[ "MIT" ]
null
null
null
import logging import os def log_candidate(c): log_file, log_level = 'debug.log', logging.DEBUG log_file = '{0}_{1}'.format(c.guid, log_file) log_file = os.path.join(c.entry, log_file) log_format = '%(asctime)s - %(levelname)s - %(message)s' # logging.basicConfig(filename=log_file, level=log_level...
29.628571
80
0.683703
a27d6b9c19682e7e3c6cc989e50b21db72e83512
1,002
py
Python
skdist/distribute/tests/test_multiclass.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
292
2019-08-29T20:31:05.000Z
2022-03-25T23:14:48.000Z
skdist/distribute/tests/test_multiclass.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
20
2019-09-05T08:39:05.000Z
2021-07-18T23:35:14.000Z
skdist/distribute/tests/test_multiclass.py
synapticarbors/sk-dist
e5729e62fbdb7b8513be1c4fd0d463d8aec5b837
[ "Apache-2.0" ]
61
2019-09-02T21:40:03.000Z
2022-02-17T18:10:29.000Z
""" Test multiclass classes """ try: import numpy as np from sklearn.linear_model import LogisticRegression from skdist.distribute import multiclass from skdist.distribute.multiclass import ( DistOneVsRestClassifier, DistOneVsOneClassifier, ) _import_error = None except Excepti...
25.692308
73
0.616766
754be34fe07676b5d8606e4641e55c359cbfd9e2
164
py
Python
fen2pil/__init__.py
elbuco1/fen2png
c64263cb5c53eeb33d2d311328256ffe4f1ac1a2
[ "MIT" ]
2
2021-12-01T03:28:52.000Z
2022-01-29T19:58:38.000Z
fen2pil/__init__.py
elbuco1/fen2png
c64263cb5c53eeb33d2d311328256ffe4f1ac1a2
[ "MIT" ]
1
2021-12-01T03:28:21.000Z
2021-12-01T03:28:21.000Z
fen2pil/__init__.py
elbuco1/fen2png
c64263cb5c53eeb33d2d311328256ffe4f1ac1a2
[ "MIT" ]
null
null
null
import os pwd = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(pwd, 'VERSION')) as version_file: __version__ = version_file.read().strip()
23.428571
56
0.72561
4bf99b2c8a8d8c1d75a1ac33556cf2e64d1edef9
7,704
py
Python
tests/bugs/core_5269_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_5269_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/bugs/core_5269_test.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: bugs.core_5269 # title: FBTRACEMGR should understand 'role <name>' command switch (needed to explicitly connect with role with 'TRACE_ANY_ATTACHMENT' privilege) # decription: # We create two users and one of them is granted with role that allows him to watch ot...
35.33945
321
0.589564
8f59ad8ab0f004be0306e88d85d2f3bc69dfc4ab
4,326
py
Python
modelling/training/tests/checkpointing_test.py
LaudateCorpus1/dm_c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
3
2021-07-21T10:05:55.000Z
2021-09-06T09:28:56.000Z
modelling/training/tests/checkpointing_test.py
deepmind/c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
1
2021-10-05T16:20:25.000Z
2021-10-05T16:20:25.000Z
modelling/training/tests/checkpointing_test.py
LaudateCorpus1/dm_c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
2
2021-08-04T16:10:28.000Z
2021-10-05T16:15:25.000Z
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
34.333333
80
0.717291
0e645515a263919e017c6479189202e8fc6a8e76
1,749
py
Python
test_numpy.py
twhorley/twho
5cb2d5a2774ebace8c3e4cde6d61c12b48d990de
[ "MIT" ]
null
null
null
test_numpy.py
twhorley/twho
5cb2d5a2774ebace8c3e4cde6d61c12b48d990de
[ "MIT" ]
null
null
null
test_numpy.py
twhorley/twho
5cb2d5a2774ebace8c3e4cde6d61c12b48d990de
[ "MIT" ]
null
null
null
""" Code to explore numpy arrays, pickle """ # imports import numpy as np import sys, os import pickle # make sure I have a place to save and output results myplace = 'twho' out_dir = '../' + myplace + '_output/' print('\nCreate an 1-D array (vector) from a [list]') list1 = [5, 6, 9, 2, 10,] a = np.array(list1) pri...
23.013158
95
0.672384
33bc7a93a5417f16afb91dcab5d416a57b32bb0e
40,787
py
Python
ItemPool.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
null
null
null
ItemPool.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
5
2020-01-18T21:10:46.000Z
2020-01-25T20:58:19.000Z
ItemPool.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
2
2020-01-18T17:36:50.000Z
2020-01-22T16:52:08.000Z
from collections import namedtuple import logging from BaseClasses import Region, RegionType, Location from Shops import TakeAny, total_shop_slots, set_up_shops, shuffle_shops from Bosses import place_bosses from Dungeons import get_dungeon_item_pool from EntranceShuffle import connect_entrance from Fill import FillEr...
47.371661
297
0.646799
95758bddea308eb53f4a9d0592584e87b2c65d70
2,236
py
Python
algs4/separate_chaining_hash_st.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
230
2018-02-27T02:26:44.000Z
2022-03-29T10:26:57.000Z
algs4/separate_chaining_hash_st.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
5
2018-04-06T12:08:56.000Z
2021-12-19T09:44:58.000Z
algs4/separate_chaining_hash_st.py
dumpmemory/algs4-py
8555076b554583b5438ed5180e2815cf049fb233
[ "MIT" ]
55
2018-02-27T02:26:45.000Z
2022-03-30T03:51:41.000Z
""" Execution: python separate_chaining_hash_st.py < input.txt Data files: https://algs4.cs.princeton.edu/33balanced/tinyST.txt A symbol table implemented using a separate chaining hash. This is the 2-3 version. % more tinyST.txt S E A R C H E X A M P L E % python separate_chaining_hash_st...
23.536842
78
0.56932
5e0769134fff07735b572ec5085fff5866393011
925
py
Python
src/UQpy/Distributions/baseclass/DistributionND.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
132
2018-03-13T13:56:33.000Z
2022-03-21T13:59:17.000Z
src/UQpy/Distributions/baseclass/DistributionND.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
140
2018-05-21T13:40:01.000Z
2022-03-29T14:18:01.000Z
src/UQpy/Distributions/baseclass/DistributionND.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
61
2018-05-02T13:40:05.000Z
2022-03-06T11:31:21.000Z
import numpy as np from .Distribution import Distribution ######################################################################################################################## # Multivariate Continuous Distributions #############################################################################################...
34.259259
120
0.447568
0d7c2b30fe9a9efa1887a49a2e3ce2a26afb31a8
3,073
py
Python
test/test_helper.py
aspose-html-cloud/aspose-html-cloud-python
b5abc7aba8ef0df355207480c2cccb282c09a970
[ "MIT" ]
2
2020-08-27T15:45:12.000Z
2022-03-07T03:52:16.000Z
test/test_helper.py
aspose-html-cloud/aspose-html-cloud-python
b5abc7aba8ef0df355207480c2cccb282c09a970
[ "MIT" ]
null
null
null
test/test_helper.py
aspose-html-cloud/aspose-html-cloud-python
b5abc7aba8ef0df355207480c2cccb282c09a970
[ "MIT" ]
4
2018-05-19T16:03:03.000Z
2021-11-19T10:58:33.000Z
# coding: utf-8 """ -------------------------------------------------------------------------------------------------------------------- <copyright company="Aspose" file="test_helper.py"> Copyright (c) 2020 Aspose.HTML for Cloud </copyright> <summary> Permission is hereby granted, free of charge, to any person...
35.321839
116
0.671982
b210df6d9bd0bfc41d17f24ce2c26dd1be745ac8
1,659
py
Python
docs/conf.py
aaugustin/django-sesame
dba0895508b4febe15a84b24f1e9bbe531eed88b
[ "BSD-3-Clause" ]
639
2015-01-26T10:54:08.000Z
2022-03-28T19:29:54.000Z
docs/conf.py
aaugustin/django-sesame
dba0895508b4febe15a84b24f1e9bbe531eed88b
[ "BSD-3-Clause" ]
69
2015-08-27T13:57:47.000Z
2022-03-21T08:14:23.000Z
docs/conf.py
aaugustin/django-sesame
dba0895508b4febe15a84b24f1e9bbe531eed88b
[ "BSD-3-Clause" ]
46
2015-06-01T18:41:31.000Z
2022-02-18T09:23:33.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import datetime # -- Project information --------------------------------------------...
31.903846
78
0.678119
3ecbc5ae99668d6fc950d249bdd0dcae14f91ad8
3,407
py
Python
utils/export_to_ckan.py
okfde/odm-datenerfassung
b2c2ce03f03f66cb6966d36231e11fb62766fab3
[ "MIT" ]
5
2015-05-25T19:58:55.000Z
2022-02-11T16:19:40.000Z
utils/export_to_ckan.py
okfde/odm-datenerfassung
b2c2ce03f03f66cb6966d36231e11fb62766fab3
[ "MIT" ]
6
2015-01-01T10:57:15.000Z
2015-02-03T08:27:34.000Z
utils/export_to_ckan.py
okfde/odm-datenerfassung
b2c2ce03f03f66cb6966d36231e11fb62766fab3
[ "MIT" ]
null
null
null
import psycopg2.extras import psycopg2 import urllib2 import urllib import json import pprint import uuid import os import metautils from dbsettings import settings metautils.setsettings(settings) #This is a one time operation to create data based on the ODM DB #Updates should be done using harvesters url = os.env...
35.863158
154
0.661873
0fe402da743baace3b8fb8242620f2977ed40d26
1,742
py
Python
ai_chat/models.py
ugtern/django_chat_new_version
72b4057bea44d1382814dbdaec24434213e784c0
[ "MIT" ]
null
null
null
ai_chat/models.py
ugtern/django_chat_new_version
72b4057bea44d1382814dbdaec24434213e784c0
[ "MIT" ]
4
2021-03-09T18:27:59.000Z
2022-02-18T11:10:01.000Z
ai_chat/models.py
ugtern/django_chat_new_version
72b4057bea44d1382814dbdaec24434213e784c0
[ "MIT" ]
null
null
null
from uuid import uuid4 from django.db import models from django.contrib.auth import get_user_model User = get_user_model() def deserialize_user(user): """Deserialize user instance to JSON.""" return { 'id': user.id, 'username': user.username, 'email': user.email, 'first_name': user.first_na...
28.557377
97
0.704937
d979bd955a564f7f5d64bc55776eedadf0488353
1,088
py
Python
fisspy/data/_sample.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
3
2017-02-18T06:42:08.000Z
2021-01-05T04:15:08.000Z
fisspy/data/_sample.py
SNU-sunday/fisspy
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2019-06-30T10:35:27.000Z
2019-06-30T10:35:27.000Z
fisspy/data/_sample.py
SNU-sunday/FISS-PYTHON
f79420debef476a904356d42542cb6472990bb2f
[ "BSD-2-Clause" ]
1
2017-02-23T05:24:13.000Z
2017-02-23T05:24:13.000Z
"""FISSPy sample data file set""" from __future__ import absolute_import, print_function from astropy.utils.data import download_file from sunpy.util.net import url_exists import os.path from os import mkdir from shutil import move __author__ = "Juhyeong Kang" __email = "jhkang@astro.snu.ac.kr" url='http://fiss.snu...
23.148936
68
0.67739
3f3786724489676a9c5a2ba993a23e1dbafca945
203,546
py
Python
respyte/molecule.py
hyejang/respyte
8d48d04754051ea18224f1c5fa8637b17da6d5b2
[ "BSD-3-Clause" ]
null
null
null
respyte/molecule.py
hyejang/respyte
8d48d04754051ea18224f1c5fa8637b17da6d5b2
[ "BSD-3-Clause" ]
1
2019-01-22T02:05:34.000Z
2019-01-22T02:07:33.000Z
respyte/molecule.py
hyejang/respyte
8d48d04754051ea18224f1c5fa8637b17da6d5b2
[ "BSD-3-Clause" ]
1
2019-01-22T00:51:26.000Z
2019-01-22T00:51:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import imp import itertools import os import re import sys import sysconfig import json from collections import OrderedDict, namedtuple, Counter from ctypes import * from datetime import date from w...
44.932892
245
0.51835
8c612b6b9665aee7f44b3f6c87204c0a125f1bd0
394
py
Python
count.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
count.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
count.py
pkpatricia/python34
5ee4f864444b8835f8ee6cf416bc9fd1d969595b
[ "bzip2-1.0.6" ]
null
null
null
import os def count(fname): 'count number of files in fname' #print('Scanning: {}'.format(fname)) filectr = 0 for name in os.listdir(fname): subname = os.path.join(fname, name) if os.path.isfile(subname): filectr += 1 elif os.path.isdir(subname): filectr...
21.888889
43
0.553299
f449710fb443d709c066fa20fb30f7fedba8438f
274
py
Python
elastidjango/__init__.py
jtaghiyar/Single_cell_lims
0e43e0806bd5087b68fc5b1a6c3c995d062d8394
[ "MIT" ]
null
null
null
elastidjango/__init__.py
jtaghiyar/Single_cell_lims
0e43e0806bd5087b68fc5b1a6c3c995d062d8394
[ "MIT" ]
null
null
null
elastidjango/__init__.py
jtaghiyar/Single_cell_lims
0e43e0806bd5087b68fc5b1a6c3c995d062d8394
[ "MIT" ]
null
null
null
""" Modified on Oct 27, 2016 @author: Jafar Taghiyar (jtaghiyar@bccrc.ca) """ from __future__ import absolute_import # This will make sure the app is always imported when # Django starts so that shared_task will use this app. from .celery import app as celery_app # noqa
24.909091
54
0.762774
f41b8d4353d1d116eb4b3cb63320b61ab983ba95
9,915
py
Python
xv_leak_tools/network/windows/windows_network.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
219
2017-12-12T09:42:46.000Z
2022-03-13T08:25:13.000Z
xv_leak_tools/network/windows/windows_network.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
11
2017-12-14T08:14:51.000Z
2021-08-09T18:37:45.000Z
xv_leak_tools/network/windows/windows_network.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
45
2017-12-14T07:26:36.000Z
2022-03-11T09:36:56.000Z
import ipaddress import re import sys from xv_leak_tools.exception import XVEx from xv_leak_tools.helpers import merge_two_dicts from xv_leak_tools.log import L from xv_leak_tools.path import windows_safe_path from xv_leak_tools.process import XVProcessException, check_subprocess _PROG_WINDUMP = re.compile(r"([\d]+)\...
36.452206
100
0.591931
050716f32c2693bc1af88468dfcbfb5001250a35
3,967
py
Python
pytype/pytd/typeshed.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
11
2017-02-12T12:19:50.000Z
2022-03-06T08:56:48.000Z
pytype/pytd/typeshed.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
null
null
null
pytype/pytd/typeshed.py
gvanrossum/pytype
0a804598271167b4fbb1f6a9664faef0918745f4
[ "Apache-2.0" ]
2
2017-06-27T14:41:57.000Z
2021-12-05T11:27:33.000Z
"""Utilities for parsing typeshed files.""" import os from pytype import utils from pytype.pytd.parse import builtins class Typeshed(object): """A typeshed installation. The location is either retrieved from the environment variable "TYPESHED_HOME" (if set) or otherwise assumed to be directly under pytype...
31.23622
79
0.639274
56a2c79df708c36d124c7930e0d1ce504a46fd01
419
py
Python
scripts/data_transform_mat.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
scripts/data_transform_mat.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
scripts/data_transform_mat.py
YigeWang-WHU/BlastLoadsRegression
884ba58a31ba854eaf86b846e551a97d84b11924
[ "MIT" ]
null
null
null
import csv import glob import scipy.io # Read all csv data files data = [] for f in glob.glob("raw_data/data_tot.mat"): data.append(f) # Processing for f in data: name = f.split('/')[-1].split('.')[-2] mat = scipy.io.loadmat(f) mat = mat['data_tot'] mat = mat.tolist() with open("raw_data/" + n...
19.045455
57
0.551313
e9585cf82b8fb0e8d706cad1a2b80a81d4cd0ad2
703
py
Python
teste_cora/metodos.py
vnnstar/aulas_python_django_udemy
cf2a6137f04d5f8d3a437f064ed9de144f413096
[ "MIT" ]
null
null
null
teste_cora/metodos.py
vnnstar/aulas_python_django_udemy
cf2a6137f04d5f8d3a437f064ed9de144f413096
[ "MIT" ]
null
null
null
teste_cora/metodos.py
vnnstar/aulas_python_django_udemy
cf2a6137f04d5f8d3a437f064ed9de144f413096
[ "MIT" ]
null
null
null
def instance_answer(lista): minimo = min(lista) maximo = max(lista) quantidade = len(lista) total = 0 for n in lista: total += n media = total/quantidade return minimo, maximo, quantidade, media def media(lista): total = 0 n_elementos = len(lista) for n in lista: ...
16.738095
44
0.559033
2c1a570309a7e2c4bd6ab41bae27ac5e3b8147f1
5,205
py
Python
iota/crypto/addresses.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
62
2017-12-20T20:22:15.000Z
2020-08-11T06:07:31.000Z
iota/crypto/addresses.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
null
null
null
iota/crypto/addresses.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
20
2017-12-20T20:36:13.000Z
2021-06-12T13:55:30.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals from typing import Generator, Iterable, List, MutableSequence from iota import Address, TRITS_PER_TRYTE, TrytesCompatible from iota.crypto.kerl import Kerl from iota.crypto.signing import KeyGenerator, KeyIterator fr...
27.251309
86
0.665322
b4127688e20e0659e99f290896262714537e1298
1,101
py
Python
tlh/const.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/const.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/const.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
2
2021-10-05T20:40:12.000Z
2022-01-05T00:17:36.000Z
from enum import Enum, IntEnum SHA1_USA = 'b4bd50e4131b027c334547b4524e2dbbd4227130' SHA1_DEMO = '63fcad218f9047b6a9edbb68c98bd0dec322d7a1' SHA1_EU = 'cff199b36ff173fb6faf152653d1bccf87c26fb7' SHA1_JP = '6c5404a1effb17f481f352181d0f1c61a2765c5d' SHA1_DEMO_JP = '9cdb56fa79bba13158b81925c1f3641251326412' ROM_OFFSET = 0x...
37.965517
220
0.77475
5b14690e2feebb1907fa0c2d5984cedbfe4cbd95
1,576
py
Python
src/command_modules/vsts-cli-build/setup.py
jmyersmsft/vsts-cli
117be06dd9db7c01be4f6dca9b3fd60293aa5a73
[ "MIT" ]
null
null
null
src/command_modules/vsts-cli-build/setup.py
jmyersmsft/vsts-cli
117be06dd9db7c01be4f6dca9b3fd60293aa5a73
[ "MIT" ]
null
null
null
src/command_modules/vsts-cli-build/setup.py
jmyersmsft/vsts-cli
117be06dd9db7c01be4f6dca9b3fd60293aa5a73
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
30.307692
94
0.591371
d4eed88eb7686f0eeff843721071b9c33ab64185
1,541
py
Python
murano-7.0.0/murano/cmd/status.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
murano-7.0.0/murano/cmd/status.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
murano-7.0.0/murano/cmd/status.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2018 NEC, Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
28.537037
78
0.701493
5985e168669ab4982490ee58e1d5cf1418d785d8
1,185
py
Python
patterns/creational/factory.py
decaun/easy-python-study
70da7db22b28811890265ebc5df2007edb829606
[ "Apache-2.0" ]
1
2019-04-15T06:32:22.000Z
2019-04-15T06:32:22.000Z
patterns/creational/factory.py
decaun/easy-python-study
70da7db22b28811890265ebc5df2007edb829606
[ "Apache-2.0" ]
4
2021-03-18T22:53:33.000Z
2021-03-19T10:35:04.000Z
patterns/creational/factory.py
decaun/easy-python-study
70da7db22b28811890265ebc5df2007edb829606
[ "Apache-2.0" ]
null
null
null
#https://realpython.com/factory-method-python/ import json import xml.etree.ElementTree as et class Song: def __init__(self, song_id, title, artist): self.song_id = song_id self.title = title self.artist = artist class SongSerializer: def serialize(self, song, format): if for...
32.027027
71
0.578903
df4f1ad9c0ab271a1722deb4dab193a680e5d60d
270
py
Python
src-django/authentication/apps.py
protocolbuilder/sana.protocol_builder
e84e90202d604617899f0c4e7b34a93755d13171
[ "BSD-3-Clause" ]
6
2015-06-05T22:41:10.000Z
2017-09-06T07:08:09.000Z
src-django/authentication/apps.py
protocolbuilder/sana.protocol_builder
e84e90202d604617899f0c4e7b34a93755d13171
[ "BSD-3-Clause" ]
406
2015-01-11T05:50:07.000Z
2018-01-05T23:01:04.000Z
src-django/authentication/apps.py
m-socha/sana.protocol_builder
7b054bbab5ed981bd7bbc357e9657024f3e380e7
[ "BSD-3-Clause" ]
9
2015-10-12T23:39:31.000Z
2018-07-11T20:59:32.000Z
from django.apps import AppConfig class AuthenticationConfig(AppConfig): name = 'authentication' verbose_name = 'Sana Protocol Builder - Authentication Module' def ready(self): # Register signals from signals import user_post_save # noqa
24.545455
66
0.718519
e7c9bcc6c79ca09dae2bdd33349b1561f064be7d
2,118
py
Python
idfy_rest_client/models/validation_error.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/validation_error.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/validation_error.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ idfy_rest_client.models.validation_error This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ class ValidationError(object): """Implementation of the 'ValidationError' model. TODO: type model description here. A...
28.621622
92
0.596789
aaa64dcc99d1468d5075fdaa39fa99b49a7944ea
775
py
Python
tests/ManifestWriterTest.py
elliottmina/doctor_static
3d5e6f369e7e23615a3c5c90d6faef33c7edbd9e
[ "MIT" ]
1
2016-02-23T16:21:49.000Z
2016-02-23T16:21:49.000Z
tests/ManifestWriterTest.py
elliottmina/doctor_static
3d5e6f369e7e23615a3c5c90d6faef33c7edbd9e
[ "MIT" ]
null
null
null
tests/ManifestWriterTest.py
elliottmina/doctor_static
3d5e6f369e7e23615a3c5c90d6faef33c7edbd9e
[ "MIT" ]
null
null
null
import fixture import unittest from test_doubles import FileSpy from test_doubles import FileOpenerSpy from lib.render_path import RenderPath from lib.manifest_writer import ManifestWriter class ManifestWriterTest(unittest.TestCase): def setUp(self): self.write_stream = FileSpy() FileOpenerSpy.reset() FileOpene...
27.678571
69
0.779355
4834b769001c3254e220b5311bf0b8a36d9167b3
689
py
Python
src/data_loading/to_tensors.py
PatBall1/DeepForestcast
f9444490d71b89aa7823e830cf7fbe6752c74d9a
[ "MIT" ]
null
null
null
src/data_loading/to_tensors.py
PatBall1/DeepForestcast
f9444490d71b89aa7823e830cf7fbe6752c74d9a
[ "MIT" ]
1
2022-02-05T10:35:48.000Z
2022-02-05T10:35:48.000Z
src/data_loading/to_tensors.py
PatBall1/DeepForestcast
f9444490d71b89aa7823e830cf7fbe6752c74d9a
[ "MIT" ]
null
null
null
import time import os from PIL import Image from process_functions import create_tnsors_pixels Image.MAX_IMAGE_PIXELS = None region = "Junin" last_yr = 20 sourcepath = "./outputs/" + region wherepath = "../../data/" + region if not os.path.exists(wherepath): os.makedirs(wherepath) for year in range(14, last_yr ...
23.758621
84
0.656023