hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
242b417f7dec6ec552d0fc689bd053426497bd44 | 899 | py | Python | instamarket/server_settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 3 | 2020-08-14T20:17:57.000Z | 2020-09-15T19:35:40.000Z | instamarket/server_settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | 5 | 2020-08-16T21:47:12.000Z | 2020-08-17T03:18:10.000Z | instamarket/server_settings.py | hosseinmoghimi/instamarket | 6f2f557843ff3105c6ca62a8b85311f0de79a2fe | [
"MIT"
] | null | null | null |
from pathlib import Path
import os
import dj_database_url
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
DEBUG = False
ALLOWED_HOSTS = ['khafonline.com','www.khafonline.com']
MYSQL=True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS': {
... | 21.404762 | 109 | 0.700779 |
242b49da046e78f3eb05feb7022f3af550dee4b8 | 2,686 | py | Python | data_collection.py | amadeusuzx/R2Plus1D-PyTorch | 0aff93551baf599988bb3d48272aba327806bb30 | [
"MIT"
] | null | null | null | data_collection.py | amadeusuzx/R2Plus1D-PyTorch | 0aff93551baf599988bb3d48272aba327806bb30 | [
"MIT"
] | null | null | null | data_collection.py | amadeusuzx/R2Plus1D-PyTorch | 0aff93551baf599988bb3d48272aba327806bb30 | [
"MIT"
] | null | null | null | import os
import time
import numpy as np
import cv2
import dlib
import imutils
from imutils import face_utils
import sys
from multiprocessing import Process
from queue import Queue
if __name__ == "__main__":
global detector
global predictor
capture = cv2.VideoCapture(0)
detector = dlib.get... | 28.88172 | 131 | 0.565897 |
242b7adeef3992441ab1eea5c439b1f45af0b987 | 1,550 | py | Python | train.py | ankitvaibhava/Peak_Stress_in_Microstructures | f4db973ab788dd5e3a8fdb76de692357113206b6 | [
"MIT"
] | null | null | null | train.py | ankitvaibhava/Peak_Stress_in_Microstructures | f4db973ab788dd5e3a8fdb76de692357113206b6 | [
"MIT"
] | 1 | 2021-06-30T22:08:25.000Z | 2021-06-30T22:08:25.000Z | train.py | ankitvaibhava/Peak_Stress_in_Microstructures | f4db973ab788dd5e3a8fdb76de692357113206b6 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from utils import get_opts
import models
from data_loader import Microstructure_Data_Loader
from trainer import Trainer
SEED = 123
np.random.seed(SEED)
torch.manual_seed(SEED)
torch.cuda.manual_seed(SEED)
torch.cuda.manual_seed_all(SEED)
torch.backends.cudnn.deterministic = True
torch.b... | 30.392157 | 73 | 0.647097 |
242b9e45000310ad143682612663be0dfb107314 | 8,882 | py | Python | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/transactor/tasks/process_passive_transfer_finalizations.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | from __future__ import absolute_import, unicode_literals
import logging
from django.conf import settings
from django.db import transaction, IntegrityError
from celery import shared_task
from celery.utils.log import get_task_logger
from contractor.interfaces import LocalViewInterface
from operator_api.crypto import h... | 40.743119 | 170 | 0.711101 |
243131bd4bd5c1dfc4db15f9b978b0ccdee06977 | 851 | py | Python | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | lib/x509Support.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | import sys
import M2Crypto
def extract_DN(fname):
"""
Extract a Distinguished Name from an X.509 proxy.
@type fname: string
@param fname: Filename containing the X.509 proxy
"""
fd = open(fname,"r")
try:
data = fd.read()
finally:
fd.close()
while 1:
try:
... | 23.638889 | 65 | 0.541716 |
24318cc53a456f38e8fd47e63bf8cf78000efea4 | 496 | py | Python | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | saxo/Utils.py | ayxue/BaiduSaxoOpenAPI | d042366bb33ebdc4471b29e167b01c4cb7cb298d | [
"Apache-2.0"
] | null | null | null | from collections import namedtuple | 24.8 | 54 | 0.5625 |
2431b272767b88594353f5a57a81caf0a74688f4 | 1,606 | py | Python | sasync/errors.py | edsuom/sAsync | fe5119719d12a09665face6731ffc67bbc45971a | [
"Apache-2.0"
] | 1 | 2020-09-25T18:13:00.000Z | 2020-09-25T18:13:00.000Z | sasync/errors.py | edsuom/sAsync | fe5119719d12a09665face6731ffc67bbc45971a | [
"Apache-2.0"
] | null | null | null | sasync/errors.py | edsuom/sAsync | fe5119719d12a09665face6731ffc67bbc45971a | [
"Apache-2.0"
] | null | null | null | # sAsync:
# An enhancement to the SQLAlchemy package that provides persistent
# item-value stores, arrays, and dictionaries, and an access broker for
# conveniently managing database access, table setup, and
# transactions. Everything can be run in an asynchronous fashion using
# the Twisted framework and its deferred ... | 33.458333 | 73 | 0.744707 |
2431b5a56f94a08acd174c2d3c95aea9a187bdfa | 1,168 | py | Python | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | All Python Practice - IT 89/Python psets/pset2/ps2a.py | mrouhi13/my-mit-python-practice | f3b29418576fec54d3f9f55155aa8f2096ad974a | [
"MIT"
] | null | null | null | #!/usr/bin/python
#----------------------------------------
# Name: ps2a.py
# Coded by Majid Roohi
# Last Modified: 03/12/2010 , 03:28 PM
# Description: -
#----------------------------------------
def Diophantine() :
'''Program take number of McNuggets from the user and test 0 to N (number of McNuggets) ... | 30.736842 | 145 | 0.455479 |
2434c666ecf9b3e7533d5013cb4d675ce2c78098 | 823 | py | Python | app.py | yabebalFantaye/DeployBokehStockApp | 64fc35ead34ef455e166e6f677aaf39e71236ca1 | [
"MIT"
] | null | null | null | app.py | yabebalFantaye/DeployBokehStockApp | 64fc35ead34ef455e166e6f677aaf39e71236ca1 | [
"MIT"
] | null | null | null | app.py | yabebalFantaye/DeployBokehStockApp | 64fc35ead34ef455e166e6f677aaf39e71236ca1 | [
"MIT"
] | null | null | null | from configure import configure_flask, TornadoApplication
from bokeh.server.app import app
from bokeh.server.configure import register_blueprint
from bokeh.server.settings import settings as server_settings
from bokeh.server.utils.plugins import object_page
from flask import render_template
configure_flask(config_fil... | 26.548387 | 73 | 0.772783 |
2437875deea99396243dfd6bbd0cde04bb1b3dd7 | 6,618 | py | Python | plato/draw/vispy/Scene.py | hillarypan/plato | 181ad0e0e00b0b7486fa364200a8187d879a450e | [
"BSD-3-Clause"
] | null | null | null | plato/draw/vispy/Scene.py | hillarypan/plato | 181ad0e0e00b0b7486fa364200a8187d879a450e | [
"BSD-3-Clause"
] | null | null | null | plato/draw/vispy/Scene.py | hillarypan/plato | 181ad0e0e00b0b7486fa364200a8187d879a450e | [
"BSD-3-Clause"
] | null | null | null | import logging
import vispy.io
from .Canvas import Canvas
from ... import draw
import numpy as np
from ..Scene import DEFAULT_DIRECTIONAL_LIGHTS
logger = logging.getLogger(__name__)
def enable(self, name, auto_value=None, **parameters):
"""Enable an optional rendering feature.
:param name: Name o... | 36.163934 | 258 | 0.626624 |
24378b97b1c506268d73461ce6fa9f18d21d889a | 2,523 | py | Python | freefly/generate.py | emaballarin/pyminutiae | 11771985cb018b387a37a8ad48d4e412457ce677 | [
"MIT"
] | null | null | null | freefly/generate.py | emaballarin/pyminutiae | 11771985cb018b387a37a8ad48d4e412457ce677 | [
"MIT"
] | null | null | null | freefly/generate.py | emaballarin/pyminutiae | 11771985cb018b387a37a8ad48d4e412457ce677 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import string
import random
import hashlib # sha ~> hashlib.sha1
BASE16 = "0123456789ABCDEF"
BASE30 = "123456789ABCDEFGHJKLMNPQRTVWXY"
if __name__ == "__main__":
main()
| 27.129032 | 82 | 0.612763 |
243867cc13462e0b51862074214a0f0d1328286c | 503 | py | Python | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | null | null | null | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | 7 | 2020-06-05T17:55:00.000Z | 2022-01-13T00:44:26.000Z | shop/migrations/0034_auto_20180321_1311.py | sumangaire52/dammideal | 83c0a6e962b51405016ed83c4597ebcd9dee0d04 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.1 on 2018-03-21 07:26
from django.db import migrations
import django_resized.forms
| 25.15 | 148 | 0.646123 |
2438e1e3b56ec7e46d207f4d8d21dee6ca8b3830 | 2,242 | py | Python | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | null | null | null | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | 5 | 2020-02-11T21:23:02.000Z | 2022-02-10T02:04:14.000Z | LAB/predictive_keyboard/medical/run_mimic.py | ipavlopoulos/lm | b9ad7d98be47c0f1a6b446a090d1fce488bb2e3f | [
"Apache-2.0"
] | 1 | 2020-09-25T15:47:08.000Z | 2020-09-25T15:47:08.000Z | import pandas as pd
from sklearn.model_selection import train_test_split
from markov import models as markov_models
from neural import models as neural_models
from collections import Counter
from scipy.stats import sem
from toolkit import *
# todo: add FLAGS
if __name__ == "main":
use_radiology_only = True
use... | 33.462687 | 110 | 0.67752 |
24396e451c566b95f96a4f42a0d15fe8d3816af6 | 2,322 | py | Python | test/dpt_tests/dpt_1byte_signed_test.py | kistlin/xknx | a402c4609a8f3d5d96d83af271db52cb9006d6ec | [
"MIT"
] | 1 | 2022-03-06T14:42:39.000Z | 2022-03-06T14:42:39.000Z | test/dpt_tests/dpt_1byte_signed_test.py | kistlin/xknx | a402c4609a8f3d5d96d83af271db52cb9006d6ec | [
"MIT"
] | 11 | 2022-03-14T22:32:38.000Z | 2022-03-31T22:35:08.000Z | test/dpt_tests/dpt_1byte_signed_test.py | kistlin/xknx | a402c4609a8f3d5d96d83af271db52cb9006d6ec | [
"MIT"
] | null | null | null | """Unit test for KNX DPT 1 byte relative value objects."""
import pytest
from xknx.dpt import DPTPercentV8, DPTSignedRelativeValue, DPTValue1Count
from xknx.exceptions import ConversionError
| 41.464286 | 73 | 0.673127 |
243b179db1c8349953fc2c324f1a1fdbf10158a2 | 5,599 | py | Python | train_dn_unet.py | zzzqzhou/Dual-Normalization | b9831b6e2662a950600ba37ada087ba8ce93f60c | [
"MIT"
] | 12 | 2022-03-10T09:24:41.000Z | 2022-03-30T03:36:51.000Z | train_dn_unet.py | zzzqzhou/Dual-Normalization | b9831b6e2662a950600ba37ada087ba8ce93f60c | [
"MIT"
] | 1 | 2022-03-30T09:41:23.000Z | 2022-03-30T09:41:23.000Z | train_dn_unet.py | zzzqzhou/Dual-Normalization | b9831b6e2662a950600ba37ada087ba8ce93f60c | [
"MIT"
] | null | null | null | import os
import random
import datetime
import argparse
import numpy as np
from tqdm import tqdm
from model.unetdsbn import Unet2D
from utils.loss import dice_loss1
from datasets.dataset import Dataset, ToTensor, CreateOnehotLabel
import torch
import torchvision.transforms as tfs
from torch import optim
from torch.op... | 41.474074 | 156 | 0.667976 |
243b2fd050a284e57fb7cc123d04a641abd1bd34 | 6,397 | py | Python | endpoint/endpoint.py | BU-NU-CLOUD-SP16/Container-Safety-Determination | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 14 | 2016-05-26T23:12:24.000Z | 2022-03-13T18:58:06.000Z | endpoint/endpoint.py | miradam/docker-introspection | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 4 | 2016-02-25T20:29:50.000Z | 2016-04-25T03:59:49.000Z | endpoint/endpoint.py | BU-NU-CLOUD-SP16/Container-Safety-Determination | e99a5039ddf1d27362fb6db0c1c1a69814bdc36d | [
"MIT"
] | 4 | 2016-06-20T19:40:10.000Z | 2021-07-26T13:13:21.000Z | #####################################################################
# File: endpoint.py
# Author: Rahul Sharma <rahuls@ccs.neu.edu>
# Desc: Configures a REST API endpoint listening on port configured.
# Captures the notifications sent by Docker registry v2,
# processes them and identifies the newly added ... | 31.357843 | 94 | 0.5859 |
243b41e4fe63085b30eb5cf8b63cd67590a2a0b6 | 81,270 | py | Python | intrepyd/tests/A7E_requirements.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 2 | 2021-04-25T17:38:03.000Z | 2022-03-20T20:48:50.000Z | intrepyd/tests/A7E_requirements.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | 1 | 2016-11-30T22:25:00.000Z | 2017-01-16T22:43:39.000Z | intrepyd/tests/A7E_requirements.py | bobosoft/intrepyd | 13f0912b31f86f9bcc50f52ef4ad870e33f0cf65 | [
"BSD-3-Clause"
] | null | null | null | import intrepyd as ip
import intrepyd.scr
import intrepyd.circuit
import collections
from . import from_fixture_path
| 53.117647 | 189 | 0.65542 |
243b5fee8d275bee8692766019d686911d22ef33 | 11,299 | py | Python | tests/ut/python/dataset/test_flanger.py | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 3,200 | 2020-02-17T12:45:41.000Z | 2022-03-31T20:21:16.000Z | tests/ut/python/dataset/test_flanger.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 176 | 2020-02-12T02:52:11.000Z | 2022-03-28T22:15:55.000Z | tests/ut/python/dataset/test_flanger.py | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 621 | 2020-03-09T01:31:41.000Z | 2022-03-30T03:43:19.000Z | # 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... | 53.804762 | 120 | 0.62271 |
243b87e5d8bb1eb2535c9a706b34182beebbfac1 | 1,962 | py | Python | tests/feature_extraction/test_user_in_conv_extract.py | hunter-heidenreich/pyconversations | 62d69bf8b2609926566cb87ba8de17f38a19269a | [
"MIT"
] | null | null | null | tests/feature_extraction/test_user_in_conv_extract.py | hunter-heidenreich/pyconversations | 62d69bf8b2609926566cb87ba8de17f38a19269a | [
"MIT"
] | null | null | null | tests/feature_extraction/test_user_in_conv_extract.py | hunter-heidenreich/pyconversations | 62d69bf8b2609926566cb87ba8de17f38a19269a | [
"MIT"
] | 1 | 2021-08-22T20:13:00.000Z | 2021-08-22T20:13:00.000Z | from collections import Counter
from datetime import datetime as dt
import pytest
from pyconversations.convo import Conversation
from pyconversations.feature_extraction.user_in_conv import UserInConvoFeatures as UiCF
from pyconversations.feature_extraction.user_in_conv import mixing_features
from pyconversations.feat... | 31.645161 | 87 | 0.734964 |
243cee6a2d485166a72cb4091ffd65db1d0e6244 | 6,379 | py | Python | app/urls.py | silop4all/iam | 691316ca9ea7d3d10a3197b4d028e44e333c7060 | [
"Apache-2.0"
] | 2 | 2018-02-27T20:51:08.000Z | 2019-11-25T10:11:59.000Z | app/urls.py | silop4all/iam | 691316ca9ea7d3d10a3197b4d028e44e333c7060 | [
"Apache-2.0"
] | null | null | null | app/urls.py | silop4all/iam | 691316ca9ea7d3d10a3197b4d028e44e333c7060 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, url, include
from app.views import *
# Endpoints for views
endpoints = patterns(
'',
url(r'^signup-request/$', EmailForm.as_view(), name='signup_request_form'),
url(r'^signup/$', ... | 118.12963 | 234 | 0.50196 |
243d81dcf344a2faba2df31a69da9d81b705581d | 394 | py | Python | workouts/migrations/0009_auto_20180417_0936.py | patcurry/patcurryworks.com | 1b8aac688ca0925ca843683bba97e8ec59dea18a | [
"MIT"
] | null | null | null | workouts/migrations/0009_auto_20180417_0936.py | patcurry/patcurryworks.com | 1b8aac688ca0925ca843683bba97e8ec59dea18a | [
"MIT"
] | null | null | null | workouts/migrations/0009_auto_20180417_0936.py | patcurry/patcurryworks.com | 1b8aac688ca0925ca843683bba97e8ec59dea18a | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-17 07:36
from django.db import migrations, models
| 20.736842 | 48 | 0.606599 |
243e1ab1c1e6e1aac758f59036bc58edcc0b399c | 5,027 | py | Python | scienz/covid/the_racial_covid_data_tracker.py | Vibrant-Planet/aorist | 067e119ef4d0d40802ce74a8e47d882e557ce195 | [
"MIT"
] | 16 | 2021-08-14T10:20:16.000Z | 2022-03-31T04:19:26.000Z | hub/covid/the_racial_covid_data_tracker.py | scie-nz/aorist | ac1e31251af7d851c4491a310b417de880b79d09 | [
"MIT"
] | 5 | 2021-08-15T23:19:10.000Z | 2021-09-26T20:50:41.000Z | scienz/covid/the_racial_covid_data_tracker.py | Vibrant-Planet/aorist | 067e119ef4d0d40802ce74a8e47d882e557ce195 | [
"MIT"
] | 1 | 2022-01-06T01:26:24.000Z | 2022-01-06T01:26:24.000Z | from aorist import (
Attribute,
NaturalNumber,
StringIdentifier,
DateString,
POSIXTimestamp,
PositiveFloat,
default_tabular_schema,
RowStruct,
StaticDataTable,
DataSchema,
StorageSetup,
RemoteStorageSetup,
Storage,
RemoteStorage,
RemoteLocation,
CSVEncodin... | 35.907143 | 101 | 0.67217 |
24400ff31e3499c99ce9553e6433278d562331ef | 662 | py | Python | beethon/handlers/dummy.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | 6 | 2019-10-31T11:58:47.000Z | 2020-02-24T19:34:16.000Z | beethon/handlers/dummy.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | null | null | null | beethon/handlers/dummy.py | wblxyxolbkhv/beethon | f320b769fb30990a89fcd1cf6229b90d725fd206 | [
"MIT"
] | null | null | null | import asyncio
from beethon.handlers.base import Handler
from beethon.messages.base import Request
from beethon.services.base import Service
| 25.461538 | 67 | 0.706949 |
24408be05edcf8d0e0098d15525c3643d0b4193f | 5,918 | py | Python | gneiss/regression/_model.py | thermokarst/gneiss | 20cbcaa6d889eea8462866d4b62e12509f84d47f | [
"BSD-3-Clause"
] | 48 | 2016-10-26T21:10:18.000Z | 2022-03-12T03:25:04.000Z | gneiss/regression/_model.py | thermokarst/gneiss | 20cbcaa6d889eea8462866d4b62e12509f84d47f | [
"BSD-3-Clause"
] | 287 | 2016-06-30T00:33:43.000Z | 2022-03-02T03:44:04.000Z | gneiss/regression/_model.py | thermokarst/gneiss | 20cbcaa6d889eea8462866d4b62e12509f84d47f | [
"BSD-3-Clause"
] | 27 | 2016-06-30T00:40:25.000Z | 2021-11-09T14:13:36.000Z | # ----------------------------------------------------------------------------
# Copyright (c) 2016--, gneiss development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# ------------------------------------------------... | 38.180645 | 78 | 0.570294 |
2441f58ecb1528142794e89da86a8d77f71bb3a3 | 1,614 | py | Python | adventofcode/solutions/y2021/d13.py | andreasbjornstrom/adventofcode-python | 71db65568bf0f327dd56e5e1c7488e356a24f403 | [
"MIT"
] | null | null | null | adventofcode/solutions/y2021/d13.py | andreasbjornstrom/adventofcode-python | 71db65568bf0f327dd56e5e1c7488e356a24f403 | [
"MIT"
] | null | null | null | adventofcode/solutions/y2021/d13.py | andreasbjornstrom/adventofcode-python | 71db65568bf0f327dd56e5e1c7488e356a24f403 | [
"MIT"
] | null | null | null | '''
Solution for day 13 of the 2021 Advent of Code calendar.
Run it with the command `python -m adventofcode run_solution -y 2021 13` from the project root.
'''
import numpy as np
from adventofcode.types import Solution
| 32.938776 | 104 | 0.527881 |
244263e8ce82bc97e92ff0bb9b06fa9a3b67b73f | 1,130 | py | Python | test/integration/upload/cli/test_list_areas.py | GPelayo/dcp-cli | d585fd8b4687f29bfd034242472b870d17ed1e50 | [
"MIT"
] | 8 | 2017-10-10T18:29:27.000Z | 2019-06-15T04:25:43.000Z | test/integration/upload/cli/test_list_areas.py | GPelayo/dcp-cli | d585fd8b4687f29bfd034242472b870d17ed1e50 | [
"MIT"
] | 440 | 2017-10-09T16:06:22.000Z | 2021-03-25T17:12:18.000Z | test/integration/upload/cli/test_list_areas.py | GPelayo/dcp-cli | d585fd8b4687f29bfd034242472b870d17ed1e50 | [
"MIT"
] | 10 | 2017-11-07T22:42:59.000Z | 2020-05-05T15:36:01.000Z | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import unittest
from argparse import Namespace
pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..')) # noqa
sys.path.insert(0, pkg_root) # noqa
import hca
from hca.upload.cli.list_areas_command import ListAreasCommand
... | 27.560976 | 99 | 0.624779 |
244274aed34752d9995f8d45a9df657835220bb7 | 10,287 | py | Python | ensemble/management/commands/seeddata.py | evanlouie/activelearning | 7ee6e9d2d795f85a441ad70e70ac0d8de9c25e31 | [
"MIT"
] | null | null | null | ensemble/management/commands/seeddata.py | evanlouie/activelearning | 7ee6e9d2d795f85a441ad70e70ac0d8de9c25e31 | [
"MIT"
] | null | null | null | ensemble/management/commands/seeddata.py | evanlouie/activelearning | 7ee6e9d2d795f85a441ad70e70ac0d8de9c25e31 | [
"MIT"
] | 1 | 2019-01-03T18:03:18.000Z | 2019-01-03T18:03:18.000Z | """
Test data scaffolding.
Read: https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
"""
import json
from random import randint
from django.core.management.base import BaseCommand, CommandError
from ensemble.models import (
Classification,
Model,
ModelVersion,
MediaFile,
VideoPre... | 48.523585 | 704 | 0.652085 |
2442812f15fe663efb2cafc49f4eff82b43e6f25 | 2,107 | py | Python | dashboard/tests/models/test_reward.py | FurSquared/dev-game | 11fc047faa72493066d26fb50f113f185071811d | [
"MIT"
] | 1 | 2021-04-12T23:07:01.000Z | 2021-04-12T23:07:01.000Z | dashboard/tests/models/test_reward.py | FurSquared/dev-game | 11fc047faa72493066d26fb50f113f185071811d | [
"MIT"
] | null | null | null | dashboard/tests/models/test_reward.py | FurSquared/dev-game | 11fc047faa72493066d26fb50f113f185071811d | [
"MIT"
] | null | null | null | import pytz
from datetime import timedelta
from django.conf import settings
from django.core.exceptions import ValidationError
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.utils import timezone
from dashboard.models import Token, Reward, CollectedToken, CollectedReward
... | 31.447761 | 102 | 0.665401 |
2443028bd1f3dc0b8fea3a8e6493e8138104f5b7 | 5,088 | py | Python | module1-introduction-to-sql/rpg_queries.py | moviedatascience/DS-Unit-3-Sprint-2-SQL-and-Databases | 28ba92de2213b595dd693892f3cf04bbf029571d | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | moviedatascience/DS-Unit-3-Sprint-2-SQL-and-Databases | 28ba92de2213b595dd693892f3cf04bbf029571d | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | moviedatascience/DS-Unit-3-Sprint-2-SQL-and-Databases | 28ba92de2213b595dd693892f3cf04bbf029571d | [
"MIT"
] | null | null | null | import sqlite3 as sql
import pandas as pd
from tabulate import tabulate
connect = sql.connect("rpg_db.sqlite3")
cursor = connect.cursor()
def total_char_count():
""" Total all characters """
print(pd.read_sql_query('''SELECT COUNT(distinct character_id)
FROM charactercreator_character;''', connect))
... | 45.026549 | 103 | 0.553656 |
24440c72885c7d649d7e2dd7a344f20f768210d9 | 2,914 | py | Python | setup.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 37 | 2021-01-16T13:57:06.000Z | 2022-03-27T06:16:37.000Z | setup.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 27 | 2021-01-18T08:09:08.000Z | 2022-03-08T01:25:33.000Z | setup.py | wxy6655/pymycobot | 504716257af7b36c9750929ad3b0b7fe96582e14 | [
"MIT"
] | 19 | 2021-01-19T01:52:42.000Z | 2022-02-10T06:44:06.000Z | # encoding=utf-8
from __future__ import print_function
import sys
PYTHON_VERSION = sys.version_info[:2]
if (2, 7) != PYTHON_VERSION < (3, 5):
print("This mycobot version requires Python2.7, 3.5 or later.")
sys.exit(1)
import setuptools
import textwrap
import pymycobot
try:
long_description = (
op... | 32.021978 | 198 | 0.631778 |
244541de65586d9914cbb8f00683969ac46f9a6b | 2,164 | py | Python | tools/eval_proposal_hit_rate.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 19 | 2020-12-14T13:53:10.000Z | 2022-02-27T09:46:15.000Z | tools/eval_proposal_hit_rate.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-16T11:41:07.000Z | 2021-08-06T08:21:42.000Z | tools/eval_proposal_hit_rate.py | h-zcc/ref-nms | 8f83f350c497d0ef875c778a8ce76725552abb3c | [
"MIT"
] | 3 | 2021-01-10T15:25:29.000Z | 2021-09-26T01:38:16.000Z | import argparse
import pickle
from utils.hit_rate_utils import NewHitRateEvaluator
from utils.constants import EVAL_SPLITS_DICT
from lib.refer import REFER
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--m', type=str, required=True)
parser.add_argument('--dataset', ... | 40.074074 | 96 | 0.684381 |
24455d44b4372b2ffcb86abe89d2d36cbcd2d2af | 16,980 | py | Python | opensearch_stac_adapter/adapter.py | VITObelgium/opensearch-stac-adapter | b884b570ef6907fa04ab0c4dc26cbfa41764501e | [
"MIT"
] | null | null | null | opensearch_stac_adapter/adapter.py | VITObelgium/opensearch-stac-adapter | b884b570ef6907fa04ab0c4dc26cbfa41764501e | [
"MIT"
] | null | null | null | opensearch_stac_adapter/adapter.py | VITObelgium/opensearch-stac-adapter | b884b570ef6907fa04ab0c4dc26cbfa41764501e | [
"MIT"
] | null | null | null | import attr
from datetime import datetime
from urllib.parse import urljoin, urlparse
from typing import Optional, List, Union, Dict, Type
from collections import OrderedDict
from pydantic import ValidationError
from starlette.requests import Request
from jsonpath_ng import jsonpath, parse
import json
from shapely.geom... | 38.41629 | 148 | 0.600766 |
244891b01b4aa7f3f66bcbd1410a6667709c4557 | 780 | py | Python | setup.py | DefaltSimon/OMDbie | 9a9e1a31a17eb39a87146476bd3669232ba7d3e2 | [
"MIT"
] | null | null | null | setup.py | DefaltSimon/OMDbie | 9a9e1a31a17eb39a87146476bd3669232ba7d3e2 | [
"MIT"
] | null | null | null | setup.py | DefaltSimon/OMDbie | 9a9e1a31a17eb39a87146476bd3669232ba7d3e2 | [
"MIT"
] | null | null | null | # coding=utf-8
from setuptools import setup
with open('requirements.txt') as f:
requirements = f.read().splitlines()
extras = {
"fast": ["ujson>=1.35"],
"requests": ["requests>=2.13.0"]
}
setup(name='OMDbie',
version='1.1.2',
description='Python API wrapper for OMDb',
classifiers=[
... | 26 | 51 | 0.6 |
2449226639b173142217889bba5b725a1c43f05c | 977 | py | Python | abc/237/E.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/237/E.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/237/E.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | import sys
import heapq
sys.setrecursionlimit(10 ** 6)
if __name__ == "__main__":
solve()
| 23.261905 | 49 | 0.415558 |
244a2c9df80e960448158a5d93261099d4112e26 | 4,908 | py | Python | senlinclient/tests/unit/test_utils.py | openstack/python-senlinclient | 9fc2edcbba7e5c83b609f344ec42adf56ab34415 | [
"Apache-2.0"
] | 20 | 2015-10-18T02:56:33.000Z | 2019-01-25T04:31:14.000Z | senlinclient/tests/unit/test_utils.py | stackforge/python-senlinclient | 36a61a7912e4a28558058425eeefe37805d1f4b5 | [
"Apache-2.0"
] | null | null | null | senlinclient/tests/unit/test_utils.py | stackforge/python-senlinclient | 36a61a7912e4a28558058425eeefe37805d1f4b5 | [
"Apache-2.0"
] | 10 | 2015-11-19T05:50:34.000Z | 2020-03-24T10:22:25.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
# distributed unde... | 35.565217 | 75 | 0.639364 |
244c59854e305c7ea70a2b023f1c927cf7a0e1bc | 1,201 | py | Python | quant/state.py | vincent87lee/alphahunter | 5f45dbd5f09354dd161606f7e740f8c8d8ae2772 | [
"MIT"
] | 149 | 2019-12-05T05:26:15.000Z | 2022-03-15T03:44:46.000Z | quant/state.py | webclinic017/alphahunter | e3ccc10bb8b641a6a516ec7cd908e5b006343264 | [
"MIT"
] | 4 | 2020-09-12T20:46:06.000Z | 2021-09-01T16:39:14.000Z | quant/state.py | webclinic017/alphahunter | e3ccc10bb8b641a6a516ec7cd908e5b006343264 | [
"MIT"
] | 73 | 2019-11-29T03:13:11.000Z | 2022-03-24T06:06:31.000Z | # -*- coding:utf-8 -*-
"""
Project: alphahunter
Author: HJQuant
Description: Asynchronous driven quantitative trading framework
"""
| 23.54902 | 95 | 0.638634 |
244ecdffb369ae625a32c3be0a6e392fd3193e3d | 7,342 | py | Python | Course Experiment/Interface Technology Course Exp/Final/Python/main.py | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | 4 | 2019-04-01T17:33:38.000Z | 2022-01-08T04:07:52.000Z | Course Experiment/Interface Technology Course Exp/Final/Python/main.py | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | null | null | null | Course Experiment/Interface Technology Course Exp/Final/Python/main.py | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | 1 | 2021-01-06T11:04:31.000Z | 2021-01-06T11:04:31.000Z | import random
import sys
from time import sleep
import serial
import threading
from PySide2.QtCore import QTimer, SIGNAL, QObject, QEvent
from PySide2.QtGui import QPainter, QColor, QPen, QCloseEvent
from PySide2.QtWidgets import QMainWindow, QApplication, QWidget, QLabel
from ui_mainwindow import Ui_MainWindow
if ... | 35.468599 | 152 | 0.594388 |
24519ef2668459d9f777877b65690f1c784b5bd4 | 8,070 | py | Python | single_synthetic_comparison.py | wflynny/miseq-analysis | 960467933c11ea4dea949f3043e4e92a00767401 | [
"MIT"
] | null | null | null | single_synthetic_comparison.py | wflynny/miseq-analysis | 960467933c11ea4dea949f3043e4e92a00767401 | [
"MIT"
] | null | null | null | single_synthetic_comparison.py | wflynny/miseq-analysis | 960467933c11ea4dea949f3043e4e92a00767401 | [
"MIT"
] | null | null | null | import os
import sys
import csv
import glob
import sqlite3
import numpy as np
import pandas as pd
from itertools import combinations, izip_longest
from utils.wildtype import WILDTYPE_PRO
from utils.mut_freqs import DB_LOCATION
#MUT_PAIRS = ['30-88', '54-82', '73-90', '46-82', '24-74', '35-36', '69-84',
# '... | 48.323353 | 149 | 0.640397 |
2451b7ca11d5bb732c09f8c5ec0112a32409448a | 4,424 | py | Python | Inventario/migrations/0001_initial.py | yorlysoro/INCOLARA | ce09cac91a2fc0d3afa6a238369c59a0ae32f245 | [
"BSD-3-Clause"
] | null | null | null | Inventario/migrations/0001_initial.py | yorlysoro/INCOLARA | ce09cac91a2fc0d3afa6a238369c59a0ae32f245 | [
"BSD-3-Clause"
] | null | null | null | Inventario/migrations/0001_initial.py | yorlysoro/INCOLARA | ce09cac91a2fc0d3afa6a238369c59a0ae32f245 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.13 on 2020-07-08 18:54
from django.db import migrations, models
import django.db.models.deletion
| 51.44186 | 190 | 0.597423 |
245218a7d98ddd07371628da4ae59c3411cc04dd | 3,657 | py | Python | examples/linear_wake/analysis.py | SaVicente/hipace | 5b2a4471e72a8d04dcd9f291b88301232db05f52 | [
"BSD-3-Clause-LBNL"
] | 19 | 2021-05-07T14:08:51.000Z | 2022-03-11T10:45:02.000Z | examples/linear_wake/analysis.py | SaVicente/hipace | 5b2a4471e72a8d04dcd9f291b88301232db05f52 | [
"BSD-3-Clause-LBNL"
] | 86 | 2021-05-08T14:15:46.000Z | 2022-03-31T18:20:48.000Z | examples/linear_wake/analysis.py | SaVicente/hipace | 5b2a4471e72a8d04dcd9f291b88301232db05f52 | [
"BSD-3-Clause-LBNL"
] | 12 | 2021-05-07T07:18:40.000Z | 2022-03-01T21:05:41.000Z | #! /usr/bin/env python3
# This Python analysis script is part of the code Hipace
#
# It compares the transverse field By with the theoretical value, plots both
# the simulation result and the theory on the same plot, and asserts that the
# difference is small.
#
# To use it, run the simulation and execute this script ... | 35.163462 | 103 | 0.654908 |
24525887544853b79abf1af748bdda46247aa80d | 2,704 | py | Python | restcli/utils.py | dustinrohde/restcli | ca45cee01aca406b1219a64d03a77eda5c2516e3 | [
"Apache-2.0"
] | 12 | 2017-03-13T18:51:48.000Z | 2020-05-04T00:22:09.000Z | restcli/utils.py | dustinrohde/restcli | ca45cee01aca406b1219a64d03a77eda5c2516e3 | [
"Apache-2.0"
] | 1 | 2017-03-16T15:18:14.000Z | 2017-03-16T15:18:14.000Z | restcli/utils.py | dustinrohde/restcli | ca45cee01aca406b1219a64d03a77eda5c2516e3 | [
"Apache-2.0"
] | 2 | 2017-03-16T02:44:49.000Z | 2017-07-27T04:54:06.000Z | from collections import OrderedDict
from collections.abc import Mapping, Sequence
def recursive_update(mapping, data):
"""Like dict.update, but recursively updates nested dicts as well."""
for key, val in data.items():
if isinstance(val, Mapping):
if key in mapping:
rec... | 23.513043 | 79 | 0.610207 |
2453864123c2fc2c9278d2d118b58368e697a058 | 8,743 | py | Python | groups/master/ggd/button.py | awslabs/aws-greengrass-mini-fulfillment | f8fb03e62b6aba288432842c99ce208131f7d57f | [
"Apache-2.0"
] | 25 | 2017-07-06T07:17:18.000Z | 2018-03-14T13:14:25.000Z | groups/master/ggd/button.py | aws-samples/aws-greengrass-mini-fulfillment | f8fb03e62b6aba288432842c99ce208131f7d57f | [
"Apache-2.0"
] | 8 | 2017-09-14T20:18:29.000Z | 2018-01-25T20:21:34.000Z | groups/master/ggd/button.py | awslabs/aws-greengrass-mini-fulfillment | f8fb03e62b6aba288432842c99ce208131f7d57f | [
"Apache-2.0"
] | 12 | 2017-07-22T15:29:24.000Z | 2018-03-16T11:12:06.000Z | #!/usr/bin/env python
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is
# located at
# http://aws.amazon.com/apache2.0/
#
# or in t... | 32.261993 | 80 | 0.664417 |
24552b505f579c23274eb1a3f24409d591f02721 | 1,834 | py | Python | backend/algorithms/ls_backend/engine.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 6 | 2020-01-14T00:01:34.000Z | 2021-12-28T14:31:05.000Z | backend/algorithms/ls_backend/engine.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | null | null | null | backend/algorithms/ls_backend/engine.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 1 | 2020-09-06T10:44:29.000Z | 2020-09-06T10:44:29.000Z | """base class for pool
The pool object will contain the models under optimization.
"""
from .noise import Noise
from .analysis import Analysis
import torch
#
| 33.962963 | 92 | 0.660851 |
2457ed8363d45dfcd213d4adec2f538dcb631168 | 304 | py | Python | snakeai/utils/cli.py | mxpoliakov/snake-ai-reinforcement | 770fc62eb5704a158f2bcb512b801b5c5db69075 | [
"MIT"
] | null | null | null | snakeai/utils/cli.py | mxpoliakov/snake-ai-reinforcement | 770fc62eb5704a158f2bcb512b801b5c5db69075 | [
"MIT"
] | null | null | null | snakeai/utils/cli.py | mxpoliakov/snake-ai-reinforcement | 770fc62eb5704a158f2bcb512b801b5c5db69075 | [
"MIT"
] | null | null | null | import argparse
import sys
| 21.714286 | 72 | 0.661184 |
2458954d674d6056bdc55fd538cbb23ce4a8e88b | 717 | py | Python | models/secrets.py | thevickypedia/api_file_handler | 8920b9bb230588d56b8eb2a4d0c2eb59e5296e9a | [
"MIT"
] | 2 | 2021-12-13T06:20:06.000Z | 2022-03-22T21:33:23.000Z | models/secrets.py | thevickypedia/api_file_handler | 8920b9bb230588d56b8eb2a4d0c2eb59e5296e9a | [
"MIT"
] | null | null | null | models/secrets.py | thevickypedia/api_file_handler | 8920b9bb230588d56b8eb2a4d0c2eb59e5296e9a | [
"MIT"
] | 1 | 2021-12-13T06:20:07.000Z | 2021-12-13T06:20:07.000Z | import getpass
import os
import pwd
from tortoise.models import Model
| 28.68 | 95 | 0.665272 |
2458cea0079732ecbd9cb5ab67b6c195d92758a3 | 109 | py | Python | src/news/models/__init__.py | thimmy687/tunews | 422a9b14cc0be28139e29a2bdda56840a1c8e1e7 | [
"MIT"
] | 3 | 2021-05-12T21:47:09.000Z | 2021-10-30T12:58:58.000Z | src/news/models/__init__.py | thimmy687/tunews | 422a9b14cc0be28139e29a2bdda56840a1c8e1e7 | [
"MIT"
] | 8 | 2020-04-06T11:57:24.000Z | 2020-06-04T08:44:23.000Z | src/news/models/__init__.py | thimmy687/tunews | 422a9b14cc0be28139e29a2bdda56840a1c8e1e7 | [
"MIT"
] | 1 | 2020-04-15T17:56:35.000Z | 2020-04-15T17:56:35.000Z | from .newslanguage import NewsLanguage
from .newscategory import NewsCategory
from .newsitem import NewsItem
| 27.25 | 38 | 0.862385 |
24599a876589f733a760def95d71230317d3305f | 11,964 | py | Python | pysnmp/Wellfleet-FNTS-ATM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Wellfleet-FNTS-ATM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Wellfleet-FNTS-ATM-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Wellfleet-FNTS-ATM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-FNTS-ATM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:33:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 130.043478 | 1,582 | 0.765714 |
245a8d9d9c67b8e67660a53952f4baf20840c230 | 1,127 | py | Python | pyteleport/tests/_test_teleport_try_w_stack.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | 9 | 2021-06-21T09:17:42.000Z | 2022-01-28T10:34:36.000Z | pyteleport/tests/_test_teleport_try_w_stack.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | null | null | null | pyteleport/tests/_test_teleport_try_w_stack.py | pulkin/pyteleport | d0291486b82a6f21f9886f920428ccc9b0f36da4 | [
"BSD-2-Clause"
] | 1 | 2021-09-25T02:03:41.000Z | 2021-09-25T02:03:41.000Z | """
[True] loop 0
[True] try
[True] teleport
[True] vstack [!<class 'range_iterator'>, !<class 'range_iterator'>]
[True] bstack [122/1, 122/1]
[False] vstack [!<class 'range_iterator'>, !<class 'range_iterator'>]
[False] bstack [122/1, 122/1]
[False] raise
[False] CustomException('hello')
[False] handle
[False] finally... | 23.978723 | 97 | 0.601597 |
245b184aa4eea3b39a618014bf9721ef476dc15b | 1,074 | py | Python | test/test_stopconditions.py | satorchi/pyoperators | eb15f23ed726a57c4d67ed1be603ae4a0ca1259d | [
"CECILL-B"
] | 5 | 2015-07-07T22:00:29.000Z | 2020-05-20T19:30:24.000Z | test/test_stopconditions.py | ghisvail/pyoperators | af8bb089e1ac42b649592488dbd49a609e3f833a | [
"CECILL-B"
] | 7 | 2015-02-13T13:43:57.000Z | 2019-01-28T22:33:48.000Z | test/test_stopconditions.py | ghisvail/pyoperators | af8bb089e1ac42b649592488dbd49a609e3f833a | [
"CECILL-B"
] | 4 | 2015-03-24T14:52:29.000Z | 2019-10-07T16:22:34.000Z | from __future__ import division
import itertools
from pyoperators.iterative.stopconditions import StopCondition
from pyoperators.utils.testing import assert_eq, assert_raises
sc1 = StopCondition(lambda s: s.a > 2, 'a>2')
sc2 = StopCondition(lambda s: s.b > 2, 'b>2')
sc3 = StopCondition(lambda s: s.c > 2, 'c>2')
| 22.851064 | 62 | 0.522346 |
245b45ab62fe8c710268f382c976ce972894f666 | 1,690 | py | Python | w3/python/core/exception.py | Hepheir/Python-HTML-parser | 038098c198f5a34178e1e7d1b54da01e42e51178 | [
"MIT"
] | 4 | 2021-05-29T06:39:32.000Z | 2021-06-04T01:47:02.000Z | w3/python/core/exception.py | Hepheir/Python-HTML-parser | 038098c198f5a34178e1e7d1b54da01e42e51178 | [
"MIT"
] | 25 | 2021-05-22T12:29:51.000Z | 2021-06-11T02:38:09.000Z | w3/python/core/exception.py | Hepheir/Python-HTML-parser | 038098c198f5a34178e1e7d1b54da01e42e51178 | [
"MIT"
] | 1 | 2021-05-29T19:41:23.000Z | 2021-05-29T19:41:23.000Z | from ctypes import c_ushort
| 48.285714 | 141 | 0.756805 |
245b7bfcc5e3acb7390210b448e0a83c48b769bc | 14,020 | py | Python | libica/openapi/libgds/models/aws_s3_temporary_upload_credentials.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | libica/openapi/libgds/models/aws_s3_temporary_upload_credentials.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | 4 | 2021-11-15T10:47:51.000Z | 2022-02-22T04:43:20.000Z | libica/openapi/libgds/models/aws_s3_temporary_upload_credentials.py | umccr-illumina/libica | 916d27eea499f29bee590268b84208effb0cc576 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Genomic Data Store Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
imp... | 37.386667 | 339 | 0.66826 |
245c4f79ea6dff4a7ca23251e722c3b64824fcb5 | 1,318 | py | Python | func_bomb.py | kenteroshima/raspi_bomb_game | 4d7227c8cd9dce93f95f8042006f2cf3fc0fc262 | [
"MIT"
] | null | null | null | func_bomb.py | kenteroshima/raspi_bomb_game | 4d7227c8cd9dce93f95f8042006f2cf3fc0fc262 | [
"MIT"
] | null | null | null | func_bomb.py | kenteroshima/raspi_bomb_game | 4d7227c8cd9dce93f95f8042006f2cf3fc0fc262 | [
"MIT"
] | null | null | null | import wiringpi as pi
from so1602 import so1602
#Setting 7seg display in i2c#flag
i2c = pi.I2C()
seg = i2c.setup(0x71)#setup a device address
so1602_addr = 0x3c
so1602 = so1602( i2c, so1602_addr )
### 7seg function ###
| 23.122807 | 44 | 0.64871 |
245de81ee3fb2c3848f1921251df3e1e4b581648 | 1,240 | py | Python | playlists/migrations/0006_auto_20210316_2355.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 58 | 2021-03-13T21:00:01.000Z | 2022-03-29T05:59:39.000Z | playlists/migrations/0006_auto_20210316_2355.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 1 | 2021-05-21T16:40:00.000Z | 2021-05-21T16:40:00.000Z | playlists/migrations/0006_auto_20210316_2355.py | KibetRonoh/Movie_Zone_-Django | 901b211540943a98b531db2bc77d6b3a483a694a | [
"MIT"
] | 35 | 2021-03-17T12:04:30.000Z | 2022-03-18T02:06:31.000Z | # Generated by Django 3.2b1 on 2021-03-16 23:55
from django.db import migrations, models
import django.db.models.deletion
| 36.470588 | 136 | 0.600806 |
245e468d758f0868b8049379727880beff7cdcce | 2,134 | py | Python | bbp/comps/convert_pacc2bbpacc.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 28 | 2017-10-31T09:16:30.000Z | 2022-02-28T23:44:29.000Z | bbp/comps/convert_pacc2bbpacc.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 37 | 2017-05-23T15:15:35.000Z | 2022-02-05T09:13:18.000Z | bbp/comps/convert_pacc2bbpacc.py | ZhangHCFJEA/bbp | 33bd999cf8d719c49f9a904872c62f02eb5850d1 | [
"BSD-3-Clause"
] | 26 | 2017-09-21T17:43:33.000Z | 2021-11-29T06:34:30.000Z | """
Copyright 2010-2018 University Of Southern California
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... | 30.485714 | 72 | 0.680881 |
245e9e4e2a9a73a8cfaace90c8f6c07593f09139 | 9,821 | py | Python | markdown_generator/pubsFromBib.py | pagutierrez/pagutierrez.github.io | 45b9cc8aa7759b1cefb693176d125c9a16f9fdb4 | [
"MIT"
] | null | null | null | markdown_generator/pubsFromBib.py | pagutierrez/pagutierrez.github.io | 45b9cc8aa7759b1cefb693176d125c9a16f9fdb4 | [
"MIT"
] | null | null | null | markdown_generator/pubsFromBib.py | pagutierrez/pagutierrez.github.io | 45b9cc8aa7759b1cefb693176d125c9a16f9fdb4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# # Publications markdown generator for academicpages
#
# Takes a set of bibtex of publications and converts them for use with [academicpages.github.io](academicpages.github.io). This is an interactive Jupyter notebook ([see more info here](http://jupyter-notebook-beginner-guide.... | 44.640909 | 343 | 0.515121 |
245ec9418b633ddba38f2edfe63dc5ce72f3b65f | 880 | py | Python | python/tests/test_client.py | liaoyustudent/antchain-openapi-util-sdk | 9c8c2e2f436119979d3ec194302d4665de9c6027 | [
"MIT"
] | null | null | null | python/tests/test_client.py | liaoyustudent/antchain-openapi-util-sdk | 9c8c2e2f436119979d3ec194302d4665de9c6027 | [
"MIT"
] | null | null | null | python/tests/test_client.py | liaoyustudent/antchain-openapi-util-sdk | 9c8c2e2f436119979d3ec194302d4665de9c6027 | [
"MIT"
] | null | null | null | import unittest
from antchain_alipay_util.client import Client
| 26.666667 | 68 | 0.561364 |
245f4bc38e13de9cf166aa2c56f878ad96394a84 | 826 | py | Python | ProjectSimulator/Labels.py | awzdevelopers/SimulatorOfAWZ | 772108ed086066095dcd0c895b82b9b0bcb43a77 | [
"MIT"
] | null | null | null | ProjectSimulator/Labels.py | awzdevelopers/SimulatorOfAWZ | 772108ed086066095dcd0c895b82b9b0bcb43a77 | [
"MIT"
] | null | null | null | ProjectSimulator/Labels.py | awzdevelopers/SimulatorOfAWZ | 772108ed086066095dcd0c895b82b9b0bcb43a77 | [
"MIT"
] | null | null | null | import pygame as py
# def drawCTR(position,radius,color,displaygame,Surface1):
# Surface2=py.Surface((300,300))
# Surface1.fill((0,0,200))
# py.draw.circle(Surface1, color, position, radius)
# py.blit
| 30.592593 | 58 | 0.680387 |
24604a4f9f632756925e48db8b2f6f25d32b4532 | 4,833 | py | Python | pre-benchmarks/Lisp_interpreter/interpreter/Tests/Test_Interpreter.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 3 | 2018-08-03T02:41:29.000Z | 2021-03-19T03:18:47.000Z | pre-benchmarks/Lisp_interpreter/interpreter/Tests/Test_Interpreter.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 3 | 2018-02-04T17:53:56.000Z | 2018-11-10T17:06:57.000Z | pre-benchmarks/Lisp_interpreter/interpreter/Tests/Test_Interpreter.py | nuprl/retic_performance | 621211c2f40251ce5364c33e72e4067e34a32013 | [
"MIT"
] | 1 | 2018-08-04T00:14:12.000Z | 2018-08-04T00:14:12.000Z | import pytest
import sys
sys.path.insert(0, '/Users/zeinamigeed/Lisp_interpreter/interpreter/BSL_Expr')
sys.path.insert(0, '/Users/zeinamigeed/Lisp_interpreter/interpreter/Other')
from Variable import Variable
from BSLError import BSLError
from Num import Num
from Boolean import Boolean
from Constants import Constant... | 37.757813 | 208 | 0.717567 |
2460b1eeba4d8bba3d137222afee8b389db282fe | 953 | py | Python | Perro/main.py | SebaB29/Python | 8fe7b375e200d2a629e3ef83a2356002621267a6 | [
"MIT"
] | null | null | null | Perro/main.py | SebaB29/Python | 8fe7b375e200d2a629e3ef83a2356002621267a6 | [
"MIT"
] | null | null | null | Perro/main.py | SebaB29/Python | 8fe7b375e200d2a629e3ef83a2356002621267a6 | [
"MIT"
] | null | null | null | from os import system
from estado import estado
from mochila import mochila
from tienda import comprar
from alimento import alimentar
from acciones import pasear, jugar, truco, nuevos_trucos, dormir
Perro().main() | 20.717391 | 75 | 0.677859 |
2462bb9b8ce0bfd343822e1f4af979fc397548f6 | 781 | py | Python | converted.py | Bmillidgework/Misc-Maths | 4e186920fbc6e3592bee57a64d56ad3a7c5bd178 | [
"MIT"
] | null | null | null | converted.py | Bmillidgework/Misc-Maths | 4e186920fbc6e3592bee57a64d56ad3a7c5bd178 | [
"MIT"
] | null | null | null | converted.py | Bmillidgework/Misc-Maths | 4e186920fbc6e3592bee57a64d56ad3a7c5bd178 | [
"MIT"
] | null | null | null | from kaffe.tensorflow import Network
class (Network):
def setup(self):
(self.feed('input')
.conv(1, 1, 3, 1, 1, group=3, relu=False, name='data_lab')
.conv(11, 11, 96, 4, 4, padding='VALID', name='conv1')
.max_pool(3, 3, 2, 2, padding='VALID', name='pool1')
... | 48.8125 | 71 | 0.491677 |
24671278c6a6905c5e07554b85ebe9c03e3cdb21 | 618 | py | Python | pynex/hello_msg.py | Pixelsuft/pynex | c129244d4b8148a4b155425c1f7207892d51aaeb | [
"MIT"
] | null | null | null | pynex/hello_msg.py | Pixelsuft/pynex | c129244d4b8148a4b155425c1f7207892d51aaeb | [
"MIT"
] | null | null | null | pynex/hello_msg.py | Pixelsuft/pynex | c129244d4b8148a4b155425c1f7207892d51aaeb | [
"MIT"
] | null | null | null | import os
import sys
is_already_inited = sys.modules.get('pygame') is not None
hide_msg = os.getenv('PYGAME_HIDE_SUPPORT_PROMPT') is not None
if is_already_inited:
if not hide_msg:
print('pynex integrated')
elif not hide_msg:
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = 'True'
import pygame # type:... | 32.526316 | 84 | 0.687702 |
2468486ff188686d22ae22e54007a22ada9d6359 | 5,631 | py | Python | MakeCartoonImage.py | scottstewart1234/MakeCartoonImage | fd203d9da5d9c989c35c2ba1cd311a954ad3f9c5 | [
"MIT"
] | 2 | 2022-03-09T19:01:29.000Z | 2022-03-12T22:19:46.000Z | MakeCartoonImage.py | scottstewart1234/MakeCartoonImage | fd203d9da5d9c989c35c2ba1cd311a954ad3f9c5 | [
"MIT"
] | null | null | null | MakeCartoonImage.py | scottstewart1234/MakeCartoonImage | fd203d9da5d9c989c35c2ba1cd311a954ad3f9c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 9 10:49:07 2022
@author: Scott Stewart
License: MIT
"""
import cv2
import numpy as np
import signal
import sys
globals()["v_all"] = True
signal.signal(signal.SIGINT, sigint_handler)
getWebcam()
#make_cartoon_image2("/home/scott/Downloads... | 38.306122 | 138 | 0.630971 |
24685b30213095d743426aa770857e4be1603753 | 5,654 | py | Python | tests/util/test_default.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | tests/util/test_default.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | tests/util/test_default.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | import os
from pathlib import Path
import pytest
from ploomber.util import default
from ploomber.exceptions import DAGSpecNotFound
def test_raise_if_no_project_root(tmp_directory):
with pytest.raises(ValueError) as excinfo:
default.find_root_recursively(raise_=True)
expected = "Could n... | 26.669811 | 79 | 0.642554 |
246ac2c1a7d374c87b6d65d1fb436d4605f74dfd | 444 | py | Python | users/migrations/0002_endworker_group.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | users/migrations/0002_endworker_group.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | 11 | 2019-11-12T23:26:45.000Z | 2021-06-10T17:37:23.000Z | users/migrations/0002_endworker_group.py | heolin123/funcrowd | 20167783de208394c09ed0429a5f02ec6dd79c42 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.8 on 2018-12-16 12:59
from django.db import migrations, models
import users.models.utils.utils
| 22.2 | 89 | 0.630631 |
246ad5806211abe8d32f41ca908a5744b6021779 | 147 | py | Python | Squaring Spiral.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | Squaring Spiral.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | Squaring Spiral.py | Pallav277/Python_Turtle_Graphics | 3e0d4fd6160b0aa5fbde8757051a85a81b7652d9 | [
"Apache-2.0"
] | null | null | null | import turtle
turtle.bgcolor("black")
sq = turtle.Turtle()
sq.speed(20)
sq.color("white")
for i in range(500):
sq.forward(i)
sq.left(91)
| 13.363636 | 23 | 0.659864 |
246aff3e261729ad83354493ab3c63b7a7a2bfdd | 599 | py | Python | routes.py | fndiaz/conferencia | 946389992f4ac2b9213abf1780c7b12229ff1325 | [
"BSD-3-Clause"
] | null | null | null | routes.py | fndiaz/conferencia | 946389992f4ac2b9213abf1780c7b12229ff1325 | [
"BSD-3-Clause"
] | null | null | null | routes.py | fndiaz/conferencia | 946389992f4ac2b9213abf1780c7b12229ff1325 | [
"BSD-3-Clause"
] | null | null | null | routers = dict(
# base router
BASE=dict(
default_application='projeto',
applications=['projeto', 'admin',]
),
projeto=dict(
default_controller='initial',
default_function='principal',
controllers=['initial', 'manager'],
functions=['home', 'contact', 'about', 'user', '... | 28.52381 | 78 | 0.622705 |
79e21e3228c6415468cb2f001a97551f2eaf8633 | 780 | py | Python | Object oriented programming.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null | Object oriented programming.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null | Object oriented programming.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null |
mysugarfreecoffee= Coffee(2,0,1)
print(mysugarfreecoffee.sugar)
mysweetcoffee =Coffee(2,100,1)
print(mysweetcoffee.sugar)
print(f'We have made {Coffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysugarfreecoffee.coffeecupcounter} coffee cups so far!')
print(f'We have made {mysweetcoffee.milk} coffee... | 45.882353 | 114 | 0.74359 |
79e3663287bde47d14ef4958760bf930e89ab747 | 7,636 | py | Python | crawl_all_sites.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | 4 | 2021-10-01T06:35:27.000Z | 2022-02-27T17:34:24.000Z | crawl_all_sites.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | null | null | null | crawl_all_sites.py | VETURISRIRAM/smart-search | 0352f265f2f7cd557559e22d9573fbc581ad22da | [
"MIT"
] | 4 | 2021-09-14T14:10:44.000Z | 2021-12-05T16:24:29.000Z | """
@author: Sriram Veturi
@title: SmartSearch - An Intelligent Search Engine.
@date: 05/06/2019
"""
import requests
from uuid import uuid4
from bs4 import BeautifulSoup
from urllib.parse import urlsplit
DOMAIN = "uic.edu"
def check_goodness(url):
"""
Function to check if the url is a dead end (pds, doc, do... | 29.596899 | 120 | 0.58879 |
79ea38391a90bb0eca808de5c913fa167bebde50 | 5,612 | py | Python | BaseCollector.py | durcar86/vrops-exporter | 1a7b4d6b1fcc33b50060ef13fdb9edd044f74324 | [
"Apache-2.0"
] | null | null | null | BaseCollector.py | durcar86/vrops-exporter | 1a7b4d6b1fcc33b50060ef13fdb9edd044f74324 | [
"Apache-2.0"
] | null | null | null | BaseCollector.py | durcar86/vrops-exporter | 1a7b4d6b1fcc33b50060ef13fdb9edd044f74324 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
import requests
import time
import os
| 36.441558 | 83 | 0.622951 |
79eadf3b508448e19059984dd16ada84ac647a63 | 2,730 | py | Python | pip_services3_commons/convert/MapConverter.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | null | null | null | pip_services3_commons/convert/MapConverter.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | null | null | null | pip_services3_commons/convert/MapConverter.py | pip-services-python/pip-services-commons-python | ecfe0aab2b1442ed3b550115dd2c2472537452de | [
"MIT"
] | 2 | 2020-03-11T21:41:13.000Z | 2020-03-14T00:26:20.000Z | # -*- coding: utf-8 -*-
"""
pip_services3_commons.convert.MapConverter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Map conversion utilities
:copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from typing impor... | 32.117647 | 92 | 0.587179 |
79eefc760f8945ba2885412298af6a091be247cb | 3,717 | py | Python | python/misc/frequencies_map/frequencies_map_test.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | python/misc/frequencies_map/frequencies_map_test.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | 16 | 2020-05-30T12:38:13.000Z | 2022-02-19T09:23:31.000Z | python/misc/frequencies_map/frequencies_map_test.py | TGITS/programming-workouts | 799e805ccf3fd0936ec8ac2417f7193b8e9bcb55 | [
"MIT"
] | null | null | null | import unittest
from frequencies_map import frequencies_map_with_comprehension_from, frequencies_map_with_for_from, frequencies_map_with_map_from, frequencies_map_with_counter_from
if __name__ == "__main__":
unittest.main()
| 41.3 | 164 | 0.622814 |
79f17b0dc466449847bea66546af6c9d958315f5 | 876 | py | Python | Python 3 exercises/44 python answers/Ordem 3) Par Impar.py | Matheus-R-Sena/Python | c047288ad126e8d14c3186a912f1a1aa5a8a55d6 | [
"MIT"
] | 2 | 2022-03-18T00:04:42.000Z | 2022-03-25T11:45:37.000Z | Python 3 exercises/44 python answers/Ordem 3) Par Impar.py | Matheus-R-Sena/Python | c047288ad126e8d14c3186a912f1a1aa5a8a55d6 | [
"MIT"
] | null | null | null | Python 3 exercises/44 python answers/Ordem 3) Par Impar.py | Matheus-R-Sena/Python | c047288ad126e8d14c3186a912f1a1aa5a8a55d6 | [
"MIT"
] | null | null | null | n = int(input())
P = [] #pares
I = [] #mpares
V = [] #Vetor principal
t = 0
for i in range (n):
V.append(int(input()))
for i in range(len(V)): #dividindo o vetor em 2 vetores menores (Par e Impar)
if V[i]%2==0:
P.append(V[i]) #dividindo para par
else:
I.append(V[i]) #dividindo para impar
V... | 20.372093 | 77 | 0.449772 |
79f1ff92ec1e6acd3c59af6c5fe99bb9e7be57fe | 49 | py | Python | src/spc/__init__.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 12 | 2017-01-25T02:13:34.000Z | 2020-03-11T18:22:31.000Z | src/spc/__init__.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 1 | 2018-01-08T19:21:24.000Z | 2018-01-08T19:21:24.000Z | src/spc/__init__.py | whbrewer/spc | 859f15e0fcb3f5f7d84d420f4757ae0a42c5837a | [
"MIT"
] | 2 | 2017-06-14T04:29:14.000Z | 2018-01-28T20:25:54.000Z | __author__ = 'Wesley Brewer'
__license__ = 'MIT'
| 16.333333 | 28 | 0.734694 |
79f218067fdd93862616a413ed28a8ec76a9e160 | 5,555 | py | Python | streaming/jobs/twitter-in.py | andrewreece/cs205-final-project | adcbf6f6e40b8eafa92d81f1adcb68864cf0a226 | [
"Unlicense"
] | null | null | null | streaming/jobs/twitter-in.py | andrewreece/cs205-final-project | adcbf6f6e40b8eafa92d81f1adcb68864cf0a226 | [
"Unlicense"
] | null | null | null | streaming/jobs/twitter-in.py | andrewreece/cs205-final-project | adcbf6f6e40b8eafa92d81f1adcb68864cf0a226 | [
"Unlicense"
] | null | null | null |
from kafka import SimpleProducer, KafkaClient
from os.path import expanduser
import requests
from requests_oauthlib import OAuth1
import urllib, datetime, time, json, sys, boto3
import creds # we made this module for importing twitter api creds
client = boto3.client('emr')
s3res = boto3.resource('s3')
bucket_name ... | 35.158228 | 102 | 0.725833 |
79f341254989c1de1633a76ef3bacd7b9765c8b1 | 2,303 | py | Python | docs/examples/tutorial/clibraries/queue3.py | johannes-mueller/cython | b75af38ce5c309cd84c1835220932e53e9a9adb6 | [
"Apache-2.0"
] | 6,663 | 2015-01-02T06:06:43.000Z | 2022-03-31T10:35:02.000Z | docs/examples/tutorial/clibraries/queue3.py | johannes-mueller/cython | b75af38ce5c309cd84c1835220932e53e9a9adb6 | [
"Apache-2.0"
] | 3,094 | 2015-01-01T15:44:13.000Z | 2022-03-31T19:49:57.000Z | docs/examples/tutorial/clibraries/queue3.py | scoder/cython | ddaaa7b8bfe9885b7bed432cd0a5ab8191d112cd | [
"Apache-2.0"
] | 1,425 | 2015-01-12T07:21:27.000Z | 2022-03-30T14:10:40.000Z | from cython.cimports import cqueue
from cython import cast
| 33.376812 | 90 | 0.637429 |
79f43a8f6884032a20fe0a60cced7538e505cc13 | 2,059 | py | Python | tests/test_intset.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | 3 | 2016-01-12T23:14:47.000Z | 2019-07-10T05:36:22.000Z | tests/test_intset.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | null | null | null | tests/test_intset.py | popravich/rdbtools3 | c2b097f58e7d3a3b12e6671aa413c263c1fb96cf | [
"MIT"
] | null | null | null | import unittest
from rdbtools3.intset import unpack_intset
from rdbtools3.exceptions import RDBValueError
if __name__ == "__main__":
unittest.main()
| 30.279412 | 70 | 0.507528 |
79f49f9545db79e83b04dd7329404e7aa61e96fa | 2,267 | py | Python | scripts/python/quality_control.py | josegcpa/haemorasis | f662ab909676e7e4be9ce94cd635f2005a891bff | [
"Apache-2.0"
] | null | null | null | scripts/python/quality_control.py | josegcpa/haemorasis | f662ab909676e7e4be9ce94cd635f2005a891bff | [
"Apache-2.0"
] | null | null | null | scripts/python/quality_control.py | josegcpa/haemorasis | f662ab909676e7e4be9ce94cd635f2005a891bff | [
"Apache-2.0"
] | null | null | null | """
Predicts which tiles are of good quality in WBS.
Usage:
python3 quality_control.py --help
"""
import argparse
from tqdm import tqdm
import tensorflow as tf
from tensorflow import keras
from glob import glob
from quality_net_utilities import *
from image_generator import *
n_channels = 3
if __name__ == "__m... | 37.783333 | 74 | 0.620203 |
79f5c1ff548624a5a5ad8d02f81f602e531bf77f | 3,816 | py | Python | examples/three_bit_memory.py | FedeClaudi/pyrnn | a3b6a32b0d00d8d732c484f4a35cf581f345b4b0 | [
"MIT"
] | 4 | 2020-11-01T10:30:26.000Z | 2021-04-10T00:20:26.000Z | examples/three_bit_memory.py | FedeClaudi/pyrnn | a3b6a32b0d00d8d732c484f4a35cf581f345b4b0 | [
"MIT"
] | null | null | null | examples/three_bit_memory.py | FedeClaudi/pyrnn | a3b6a32b0d00d8d732c484f4a35cf581f345b4b0 | [
"MIT"
] | 1 | 2022-01-11T20:57:06.000Z | 2022-01-11T20:57:06.000Z | import numpy as np
from numpy import random as rnd
import matplotlib.pyplot as plt
import torch
from myterial import salmon, light_green_dark, indigo_light
from pyrnn._plot import clean_axes
import torch.utils.data as data
import sys
from rich.progress import track
"""
3 bit memory task
input is a 3xN tens... | 27.257143 | 79 | 0.53957 |
79f795acd7334901e349edf17ca173e0a41ee59c | 2,329 | py | Python | core/feature/activity/import_model_files.py | MD2Korg/CerebralCortex-DataAnalysis | 73f5ea2430bc7c23de422dccb7b65ef9f8917595 | [
"BSD-2-Clause"
] | 1 | 2018-04-24T18:11:24.000Z | 2018-04-24T18:11:24.000Z | core/feature/activity/import_model_files.py | Boris69bg/CerebralCortex-DataAnalysis | 49565bdff348d69153bd5d3a37e73f1645f82b32 | [
"BSD-2-Clause"
] | 10 | 2018-03-13T19:04:09.000Z | 2018-05-12T01:40:03.000Z | core/feature/activity/import_model_files.py | Boris69bg/CerebralCortex-DataAnalysis | 49565bdff348d69153bd5d3a37e73f1645f82b32 | [
"BSD-2-Clause"
] | 42 | 2017-12-07T17:08:14.000Z | 2019-06-02T08:25:12.000Z | # Copyright (c) 2018, MD2K Center of Excellence
# - Sayma Akther <sakther@memphis.edu>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above co... | 36.968254 | 87 | 0.769429 |
79f8669db0f2282db62b75929103051edb7792c1 | 4,831 | py | Python | src/stk/molecular/topology_graphs/cof/square.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | src/stk/molecular/topology_graphs/cof/square.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | src/stk/molecular/topology_graphs/cof/square.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | """
Square
======
"""
import numpy as np
from ..topology_graph import Edge
from .cof import Cof
from .vertices import LinearVertex, NonLinearVertex
| 30.006211 | 69 | 0.492031 |
79fb7c77c3290bb45e8e4735b3254d5b64741a7b | 753 | py | Python | Miscellaneous/List appender.py | TausifAnsari/PyHub | f6c949dc6a3974f57d7d146708443d0ceeb4418f | [
"MIT"
] | 1 | 2020-09-30T19:31:20.000Z | 2020-09-30T19:31:20.000Z | Miscellaneous/List appender.py | TanviSutar/PyHub | 6281e9f515674fb51f0d0862c26ec18020fa7d83 | [
"MIT"
] | null | null | null | Miscellaneous/List appender.py | TanviSutar/PyHub | 6281e9f515674fb51f0d0862c26ec18020fa7d83 | [
"MIT"
] | null | null | null | """
Program Description :
List appender is a simple program that allows you to append data, either a single word or a sequence of words,
to a list. To stop adding elements, type !quit. It helps create lists easily when the number of elements
is a lot.
"""
if __name__ == "__main__":
list_name = input("Enter the na... | 32.73913 | 110 | 0.584329 |
79fb9e19ccd46f5e429a214eba993e7f4b00b0b8 | 32,159 | py | Python | versions/2.0/karma/python/atf-scripts.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 5 | 2015-04-26T19:39:44.000Z | 2018-12-24T13:17:42.000Z | versions/2.0/karma/python/atf-scripts.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 7 | 2016-03-23T16:52:32.000Z | 2018-07-24T03:08:05.000Z | versions/2.0/karma/python/atf-scripts.py | Lituta/dig-alignment | 812ab0e4a181953d23024ef9df92eec1d40559cb | [
"Apache-2.0"
] | 28 | 2015-04-08T22:39:07.000Z | 2021-12-25T22:16:36.000Z | # Scripts for modeling ATF data.
test_date = "Wed Feb 11, 2015 10:31 am"
def atf_date_created(date, format="%a %b %d, %Y %I:%M %p"):
"""Put the date in ISO format"""
return iso8601date(date, format)
def atf_joined_date(date, format="%a %b %d, %Y %I:%M %p"):
"""Put the date in ISO format"""
return iso... | 24.399848 | 168 | 0.603066 |
79fc1faaa40ddef6ee21f157035fc4e0c3b878f7 | 5,218 | py | Python | tests/test_model.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2022-03-05T03:21:13.000Z | 2022-03-05T03:21:13.000Z | tests/test_model.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2021-08-25T13:41:34.000Z | 2021-08-25T13:41:34.000Z | tests/test_model.py | hattya/ayame | e8bb2b0ace79cd358b1384270cb9c5e809e12b5d | [
"MIT"
] | 1 | 2018-03-04T21:47:27.000Z | 2018-03-04T21:47:27.000Z | #
# test_model
#
# Copyright (c) 2011-2021 Akinori Hattori <hattya@gmail.com>
#
# SPDX-License-Identifier: MIT
#
import ayame
from ayame import model
from base import AyameTestCase
| 31.624242 | 70 | 0.582599 |
79fcbdc1254d3a3bea2c490468ac77f676c228de | 2,322 | py | Python | DataStructuresInPython/tree/BinaryTree.py | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 76 | 2018-06-28T04:29:14.000Z | 2022-03-21T01:57:27.000Z | DataStructuresInPython/tree/BinaryTree.py | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 31 | 2018-10-01T09:12:05.000Z | 2022-03-08T23:39:01.000Z | DataStructuresInPython/tree/BinaryTree.py | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 44 | 2018-07-09T11:31:20.000Z | 2022-01-12T19:21:20.000Z | '''
Created on Jun 4, 2018
@author: nishant.sethi
'''
| 29.392405 | 60 | 0.497847 |
79fcf62a1f352b071844ce1495996eda7af8f693 | 4,386 | py | Python | ahserver/server/protocol/__init__.py | ifplusor/ahserver | 26a6315d7a3b781d424c81bb3985016d9233e1b7 | [
"BSD-3-Clause"
] | 1 | 2019-10-08T07:57:32.000Z | 2019-10-08T07:57:32.000Z | ahserver/server/protocol/__init__.py | ifplusor/ahserver | 26a6315d7a3b781d424c81bb3985016d9233e1b7 | [
"BSD-3-Clause"
] | null | null | null | ahserver/server/protocol/__init__.py | ifplusor/ahserver | 26a6315d7a3b781d424c81bb3985016d9233e1b7 | [
"BSD-3-Clause"
] | null | null | null | # encoding=utf-8
__all__ = [
"HttpMethod",
"HttpVersion",
"HttpStatus",
"HttpHeader",
"PopularHeaders",
]
from enum import Enum
from ahserver.util.parser import FieldNameEnumParser, IntPairEnumParser
from . import httpheader as HttpHeader
| 31.328571 | 79 | 0.654811 |
79fd8c6ce233d4c7c58007694fcc63d3fd30ed18 | 949 | py | Python | examples/HelloAPI/app/__init__.py | neo1218/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 3 | 2015-12-05T20:57:04.000Z | 2017-04-26T03:02:43.000Z | examples/HelloAPI/app/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 1 | 2015-12-09T18:27:26.000Z | 2015-12-10T16:19:30.000Z | examples/HelloAPI/app/__init__.py | misakar/rest | 8bf7369aaa9da5cc4a300c625e4d7fea21f52681 | [
"MIT"
] | 4 | 2015-12-11T03:20:27.000Z | 2016-02-03T04:47:52.000Z | # coding: utf-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from config import config
app = Flask(__name__)
"""
config
-- 'default': DevelopmentConfig
-- 'develop': DevelopmentConfig
-- 'testing': TestingConfig
-- 'production': ProductionConfig
you can... | 19.770833 | 48 | 0.765016 |
79fe46dfa7986350e052536c603f93ab8fffeca1 | 988 | py | Python | botc/gamemodes/sectsandviolets/Oracle.py | Xinverse/BOTC-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2020-06-21T17:20:17.000Z | 2020-06-21T17:20:17.000Z | botc/gamemodes/sectsandviolets/Oracle.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2020-07-07T03:47:44.000Z | 2020-07-07T03:47:44.000Z | botc/gamemodes/sectsandviolets/Oracle.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2022-02-18T00:42:19.000Z | 2022-02-18T00:42:19.000Z | """Contains the Oracle Character class"""
import json
from botc import Character, Townsfolk
from ._utils import SectsAndViolets, SnVRole
with open('botc/gamemodes/sectsandviolets/character_text.json') as json_file:
character_text = json.load(json_file)[SnVRole.oracle.value.lower()]
| 32.933333 | 93 | 0.718623 |
79fec6efd58b3af8a43b2eeadf236a957d497f6c | 3,154 | py | Python | Elastic/ElasticPutDocs.py | mvdhoek/DSB-ReSeT | 746aa92cab795011494e09f4c27c5c2e673ba82c | [
"MIT"
] | null | null | null | Elastic/ElasticPutDocs.py | mvdhoek/DSB-ReSeT | 746aa92cab795011494e09f4c27c5c2e673ba82c | [
"MIT"
] | null | null | null | Elastic/ElasticPutDocs.py | mvdhoek/DSB-ReSeT | 746aa92cab795011494e09f4c27c5c2e673ba82c | [
"MIT"
] | null | null | null | # A python script to upload safety reports to Elasticsearch
import elasticsearch as es
from elasticsearch import helpers
import logging
import base64
from os import listdir
from os.path import isfile, join
import hashlib
import pandas as pd
# DEFINITIONS ----------------------------------------------------------
path... | 31.227723 | 164 | 0.606531 |
79ff7b8687e44250039535319562a18fcc77d579 | 2,661 | py | Python | tests/test_models.py | wecode12/TheBlog | f2ce56f0e7d95919e7a7b53892f303338fd2f1ab | [
"MIT"
] | null | null | null | tests/test_models.py | wecode12/TheBlog | f2ce56f0e7d95919e7a7b53892f303338fd2f1ab | [
"MIT"
] | null | null | null | tests/test_models.py | wecode12/TheBlog | f2ce56f0e7d95919e7a7b53892f303338fd2f1ab | [
"MIT"
] | null | null | null | import unittest
from app.models import User,Posts,Comments,Subscribe
| 26.61 | 96 | 0.636979 |
030069d163fd71136ab27b5e98b00d861da2c06b | 2,321 | py | Python | Tools/cvsTool/csvtool.py | codumpython/csv2DB | 87c5bbc03c77fb23d091f79796daa41c67e086a8 | [
"MIT"
] | null | null | null | Tools/cvsTool/csvtool.py | codumpython/csv2DB | 87c5bbc03c77fb23d091f79796daa41c67e086a8 | [
"MIT"
] | 1 | 2022-01-09T09:36:13.000Z | 2022-01-09T09:36:44.000Z | Tools/cvsTool/csvtool.py | codumpython/csv2DB | 87c5bbc03c77fb23d091f79796daa41c67e086a8 | [
"MIT"
] | 2 | 2022-01-09T09:21:17.000Z | 2022-01-09T09:24:48.000Z | import csv
import os
| 37.435484 | 67 | 0.479104 |
0301393563c20bb1fb3b01dfc8b08248dc0ce433 | 7,315 | py | Python | Python/Client/RasPi_coms.py | henrymidles/LidarBot | f67b5ed77671abad7267a86f425192fc6d5aad42 | [
"MIT"
] | null | null | null | Python/Client/RasPi_coms.py | henrymidles/LidarBot | f67b5ed77671abad7267a86f425192fc6d5aad42 | [
"MIT"
] | null | null | null | Python/Client/RasPi_coms.py | henrymidles/LidarBot | f67b5ed77671abad7267a86f425192fc6d5aad42 | [
"MIT"
] | null | null | null | import math
import time
from queue import Queue
HOST = 'raspberrypi' # The server's hostname or IP address
PORT = 65432 # The port used by the server
""" This thread gets data from the socket, parses it, and sends it to the queue to be displayed """
if __name__ == "__main__":
import socket
my... | 34.023256 | 114 | 0.479016 |
0302b241acd1172ec90ed4dd194dc3daa580f308 | 546 | py | Python | wechat/content/__init__.py | windskyer/wechat | 8a193b6b364bd8e6942e9c676c0ff87ce8a6acb6 | [
"Apache-2.0"
] | 1 | 2016-04-20T07:01:46.000Z | 2016-04-20T07:01:46.000Z | wechat/content/__init__.py | windskyer/wechat | 8a193b6b364bd8e6942e9c676c0ff87ce8a6acb6 | [
"Apache-2.0"
] | null | null | null | wechat/content/__init__.py | windskyer/wechat | 8a193b6b364bd8e6942e9c676c0ff87ce8a6acb6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import random
import logging
from wechat.content import hitokoto
from wechat.content import iciba
log = logging.getLogger('apscheduler.executors.default')
#
| 23.73913 | 56 | 0.642857 |
030361a3a07366fe3fca8925cb15ee416c8d5edc | 77 | py | Python | src/main.py | DMinghao/Stock_Trading_Bot | 67e510868fcb81fb1166e50a1ee4ad0face1f597 | [
"MIT"
] | 1 | 2021-01-30T04:21:17.000Z | 2021-01-30T04:21:17.000Z | src/main.py | DMinghao/Stock_Trading_Bot | 67e510868fcb81fb1166e50a1ee4ad0face1f597 | [
"MIT"
] | null | null | null | src/main.py | DMinghao/Stock_Trading_Bot | 67e510868fcb81fb1166e50a1ee4ad0face1f597 | [
"MIT"
] | 1 | 2021-11-25T15:39:43.000Z | 2021-11-25T15:39:43.000Z | from utility import util
CONN = util.connectAlpaca()
| 11 | 27 | 0.714286 |
030555cbf9426dbf0f5ea08ed1283d06552e2fca | 2,220 | py | Python | application.py | dyphen12/vibra | 48d71958ab0498f2fa9d8b6633f5fc212b07879c | [
"MIT"
] | null | null | null | application.py | dyphen12/vibra | 48d71958ab0498f2fa9d8b6633f5fc212b07879c | [
"MIT"
] | null | null | null | application.py | dyphen12/vibra | 48d71958ab0498f2fa9d8b6633f5fc212b07879c | [
"MIT"
] | null | null | null | # Made by @dyphen12
from flask import Flask, request
from flask_cors import CORS
from flask_restful import reqparse, abort, Api, Resource
import json
import os
from vibra.api.core import api_version
from vibra.api.users import handler as uhd
app = Flask(__name__)
api = Api(app)
CORS(app)
api.add_resource(Hello, '/... | 21.142857 | 81 | 0.602252 |
03067a69517d1ab99eec7d99b22f65fddf9f5b21 | 1,003 | py | Python | workers/libyear_worker/Libyear.py | ajhenry00/augur | 9f29c7d0375735d7a1941b41852dccd7eaf64378 | [
"MIT"
] | 2 | 2021-01-27T02:01:13.000Z | 2021-04-20T22:44:16.000Z | workers/libyear_worker/Libyear.py | ajhenry00/augur | 9f29c7d0375735d7a1941b41852dccd7eaf64378 | [
"MIT"
] | null | null | null | workers/libyear_worker/Libyear.py | ajhenry00/augur | 9f29c7d0375735d7a1941b41852dccd7eaf64378 | [
"MIT"
] | null | null | null | from pypi import get_lib_days, get_no_of_releases
from utils import load_requirements, get_requirement_files, get_requirement_name_and_version
| 29.5 | 92 | 0.586241 |
0307adfe3137c0f62c6abbb22e2e5bab9e3d0723 | 2,481 | py | Python | config/urls.py | Tvrsch/my_receipts | 0a905d2366cee3b62f2dd083af1622afeb648bef | [
"MIT"
] | null | null | null | config/urls.py | Tvrsch/my_receipts | 0a905d2366cee3b62f2dd083af1622afeb648bef | [
"MIT"
] | 11 | 2021-05-10T15:40:38.000Z | 2022-02-28T21:09:37.000Z | config/urls.py | Tvrsch/my_receipts | 0a905d2366cee3b62f2dd083af1622afeb648bef | [
"MIT"
] | 2 | 2021-09-18T18:49:58.000Z | 2021-11-17T12:29:13.000Z | from allauth.account.views import confirm_email as confirm_email_view
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path, re_path
from django.views import defaults as default_views
from django.views.generic import TemplateVi... | 33.986301 | 86 | 0.650544 |
0309ca2de7206405c79a52c8d1fa62aa60e1cd29 | 1,974 | py | Python | jyserver/Flask.py | ftrias/jyserver | 84e96672686020dc5e75d44b5b29f33a24773a37 | [
"MIT"
] | 10 | 2020-05-11T11:36:29.000Z | 2021-09-14T06:00:06.000Z | jyserver/Flask.py | ftrias/jyserver | 84e96672686020dc5e75d44b5b29f33a24773a37 | [
"MIT"
] | 1 | 2021-11-25T13:20:11.000Z | 2021-11-25T13:20:11.000Z | jyserver/Flask.py | ftrias/jyserver | 84e96672686020dc5e75d44b5b29f33a24773a37 | [
"MIT"
] | 3 | 2020-05-11T11:36:34.000Z | 2022-03-09T06:17:31.000Z | '''
Module for using jyserver in Flask. This module provides to new
decorators.
Decorators
-----------
* @use
Link an application object to the Flask app
* @task
Helper that wraps a function inside a separate thread so that
it can execute concurrently.
Example
-------------
```html
<p id="time">TIME</... | 22.953488 | 77 | 0.604863 |
030bd06ce092e96c24d2de280987ee14a539477c | 12,533 | py | Python | venv/Lib/site-packages/json_tricks/nonp.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 145 | 2016-04-12T19:38:36.000Z | 2022-01-08T14:47:13.000Z | venv/Lib/site-packages/json_tricks/nonp.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 72 | 2015-11-06T00:23:35.000Z | 2022-03-13T05:25:42.000Z | venv/Lib/site-packages/json_tricks/nonp.py | mintzer/pupillometry-rf-back | cfa86fa984a49dce0123798f8de5b838c02e10d5 | [
"CC-BY-4.0"
] | 24 | 2016-06-24T13:26:07.000Z | 2021-07-03T21:07:27.000Z | import warnings
from json import loads as json_loads
from os import fsync
from sys import exc_info
from json_tricks.utils import is_py3, dict_default, gzip_compress, gzip_decompress, JsonTricksDeprecation
from .utils import str_type, NoNumpyException # keep 'unused' imports
from .comment import strip_comments # keep... | 46.247232 | 169 | 0.766536 |
030d744b5e81be4e6ddf3ab54eaa85b4f53c4a6a | 18,515 | py | Python | notion2pg.py | aaugustin/notion2pg | 9d6fcca7e7cc923ea0be68d6886118e1fde335d8 | [
"BSD-3-Clause"
] | 6 | 2022-02-23T12:01:02.000Z | 2022-03-23T10:38:16.000Z | notion2pg.py | aaugustin/notion2pg | 9d6fcca7e7cc923ea0be68d6886118e1fde335d8 | [
"BSD-3-Clause"
] | null | null | null | notion2pg.py | aaugustin/notion2pg | 9d6fcca7e7cc923ea0be68d6886118e1fde335d8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Notes on formulas
# -----------------
#
# There are four output types of formulas:
#
# 1. string
# 2. number
# 3. date never a date range, unlike date properties
# 4. boolean
# Notes on rollups
# ----------------
#
# There are four signatures of rollup functions:
#
# 1. any -> array[any]
# ... | 32.368881 | 87 | 0.574561 |
030d8bd65aecd2d5a8891598cfd87018038692a8 | 4,748 | py | Python | leo3ltb/scheduler/profiler.py | leoprover/ltb | e9550c596d36003eb6809d227f99604557c35b6a | [
"BSD-3-Clause"
] | null | null | null | leo3ltb/scheduler/profiler.py | leoprover/ltb | e9550c596d36003eb6809d227f99604557c35b6a | [
"BSD-3-Clause"
] | 2 | 2019-07-27T13:33:08.000Z | 2019-07-30T10:34:54.000Z | leo3ltb/scheduler/profiler.py | leoprover/ltb | e9550c596d36003eb6809d227f99604557c35b6a | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
import matplotlib.cm as cm
import numpy as np
import matplotlib.pyplot as plt
def plot_grouped_stacked_bar(dfall, labels, *, title, H="/", **kwargs):
'''
Given a list of dataframes, with identical columns and index, create a clustered stacked bar plot.
Args:
* labels: is a list of... | 36.244275 | 137 | 0.540227 |