max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
listlengths
7
549k
test/conftest.py
dmillington/lunchroulette
1
48583
import pytest from lunchroulette.app import app as _app from lunchroulette.app import db as _db from sqlalchemy import event from sqlalchemy.orm import sessionmaker @pytest.fixture(scope="session") def app(request): return _app @pytest.fixture(scope="function") def db(app, request): with app.app_context(): ...
[ 1, 1053, 11451, 1688, 13, 13, 3166, 301, 3322, 27537, 20200, 29889, 932, 1053, 623, 408, 903, 932, 13, 3166, 301, 3322, 27537, 20200, 29889, 932, 1053, 4833, 408, 903, 2585, 13, 3166, 4576, 284, 305, 6764, 1053, 1741, 13, 3166, 4576, ...
Notebooks/jhu/__init__.py
ProtoLife/covid-recovery
0
95246
import datetime import re from .get_data import get_data def Float(x): try: rtn = float(x) except: rtn = float('NaN') return rtn def get_jhu_ts(): stmp = __path__[0] # e.g. "../jhu" stmp = re.split('jhu',stmp)[0] # e.g. "../" base = stmp+'../covid-19-JH/csse_covid_19_data/cs...
[ 1, 1053, 12865, 13, 5215, 337, 13, 13, 13, 3166, 869, 657, 29918, 1272, 1053, 679, 29918, 1272, 13, 13, 1753, 27842, 29898, 29916, 1125, 13, 1678, 1018, 29901, 13, 4706, 364, 6277, 353, 5785, 29898, 29916, 29897, 13, 1678, 5174, 29901...
kubespawner/proxy.py
rccern/kubespawner
0
183285
import asyncio import functools import json import os import string import escapism from jupyterhub.proxy import Proxy from jupyterhub.utils import exponential_backoff from kubernetes_asyncio import client from traitlets import Unicode from .clients import load_config from .clients import shared_client from .objects ...
[ 1, 1053, 408, 948, 3934, 13, 5215, 2090, 312, 8789, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 1347, 13, 13, 5215, 3966, 481, 1608, 13, 3166, 432, 786, 25547, 29882, 431, 29889, 14701, 1053, 1019, 3594, 13, 3166, 432, 786, 25547, 298...
regolith/helpers/u_logurlhelper.py
sbillinge/regolith
1
129914
"""Helper for updating a projectum's log_url Log_urls are the google doc links to a projectum's Projectum Agenda Log """ from regolith.helpers.basehelper import DbHelperBase from regolith.fsclient import _id_key from regolith.tools import all_docs_from_collection, fragment_retrieval TARGET_COLL = "projecta" def s...
[ 1, 9995, 10739, 363, 13271, 263, 2060, 398, 29915, 29879, 1480, 29918, 2271, 13, 259, 4522, 29918, 26045, 526, 278, 5386, 1574, 2988, 304, 263, 2060, 398, 29915, 29879, 8010, 398, 4059, 8395, 4522, 13, 15945, 29908, 13, 3166, 1072, 324,...
lambda_freezer/__init__.py
klagrange/lambda-freezer
0
1615873
from collections import namedtuple import os import subprocess import re import boto3 import json STAGE_VARIABLE_ALIAS = "lambdaAlias" INTEGRATION_URI_APPENDER = ":${{stageVariables.{0}}}".format(STAGE_VARIABLE_ALIAS) _INTEGRATION = namedtuple( "INTEGRATION", [ "rest_api_id", "resource_id", ...
[ 1, 515, 16250, 1053, 4257, 23583, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 5215, 337, 13, 5215, 289, 3747, 29941, 13, 5215, 4390, 13, 13, 1254, 10461, 29918, 26865, 29902, 6181, 29918, 1964, 29902, 3289, 353, 376, 2892, 29909, 18849, ...
data/Human36M/skeleton.py
GuillaumeRochette/HumanViewSynthesis
10
148374
JOINTS = { "HipCenter": 0, "RHip": 1, "RKnee": 2, "RFoot": 3, "LHip": 4, "LKnee": 5, "LFoot": 6, "Spine": 7, "Thorax": 8, "Neck/Nose": 9, "Head": 10, "LShoulder": 11, "LElbow": 12, "LWrist": 13, "RShoulder": 14, "RElbow": 15, "RWrist": 16, } EDGES = (...
[ 1, 8780, 9375, 353, 426, 13, 1678, 376, 29950, 666, 13409, 1115, 29871, 29900, 29892, 13, 1678, 376, 29934, 29950, 666, 1115, 29871, 29896, 29892, 13, 1678, 376, 29934, 29968, 484, 29872, 1115, 29871, 29906, 29892, 13, 1678, 376, 29934, ...
img_main.py
liujiyuan13/MvDOCC-code
1
75573
import numpy as np import scipy.io as scio import scipy.sparse as scsp import h5py as hp from util import read_mymat73, read_mymat, build_img_dataset, process_ad_dataset, mv_dataset, mv_tabular_collate, AverageMeter, save_roc_pr_curve_data, get_all_labels, \ load_print_results, filter_nan_grad, read_dataset, build_...
[ 1, 1053, 12655, 408, 7442, 13, 5215, 4560, 2272, 29889, 601, 408, 269, 3934, 13, 5215, 4560, 2272, 29889, 29879, 5510, 408, 885, 1028, 13, 5215, 298, 29945, 2272, 408, 298, 29886, 13, 3166, 3667, 1053, 1303, 29918, 29885, 962, 271, 29...
remote-scripts/ConfigureDnsServer.py
xian123/azure-freebsd-automation
1
46533
<reponame>xian123/azure-freebsd-automation #!/usr/bin/python import argparse import sys from azuremodules import * import paramiko parser = argparse.ArgumentParser() parser.add_argument('-D', '--vnetDomain_db_filepath', help='VNET Domain db filepath', required=True) parser.add_argument('-r', '--vnetDomain_rev_filepath...
[ 1, 529, 276, 1112, 420, 29958, 29916, 713, 29896, 29906, 29941, 29914, 17688, 29899, 10745, 774, 4928, 29899, 17405, 362, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 13, 5215, 1852, 5510, 13, 5215, 10876, 13, 3166, 15699, 7576, ...
uq_benchmark_2019/imagenet/end_to_end_test.py
deepneuralmachine/google-research
23,901
20175
<gh_stars>1000+ # coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14137, 29922, 9420, 29899, 29947, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 450, 5087, 10550, 13189, 943, 29889, 13, 29937, 13, 29937, 10...
src/NetworkHandler.py
BlankShrimp/MarkDownald-Server
0
56532
from socket import * import json import JsonParser import DBHelper conn = socket(AF_INET, SOCK_STREAM) conn.bind(('',4687)) conn.listen(40) while True: new_conn, addr = conn.accept() msg = new_conn.recv(1024).decode() obj = json.loads(msg) if obj['instruction'] == 'reg': result = DBHelper.reg...
[ 1, 515, 9909, 1053, 334, 13, 5215, 4390, 13, 5215, 14355, 11726, 13, 5215, 6535, 10739, 13, 13, 13082, 353, 9909, 29898, 5098, 29918, 1177, 2544, 29892, 7791, 7077, 29918, 1254, 1525, 5194, 29897, 13, 13082, 29889, 5355, 29898, 877, 742...
src/util_walk_sftp.py
Chrisebell24/walk_sftp
0
34925
import paramiko class _FastTransport(paramiko.Transport): def __init__(self, sock): super(_FastTransport, self).__init__(sock) self.window_size = 2147483647 self.packetizer.REKEY_BYTES = pow(2, 40) self.packetizer.REKEY_PACKETS = pow(2, 40)
[ 1, 1053, 1828, 10349, 13, 13, 1990, 903, 29943, 579, 27395, 29898, 3207, 10349, 29889, 27395, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 577, 384, 1125, 13, 4706, 2428, 7373, 29943, 579, 27395, 29892, 1583, 467, 1649, 2344, 12...
tools/esp_prov/security/__init__.py
fbucafusco/esp-idf
0
189785
<reponame>fbucafusco/esp-idf # SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 # from .security0 import * # noqa: F403, F401 from .security1 import * # noqa: F403, F401 from .security2 import * # noqa: F403, F401
[ 1, 529, 276, 1112, 420, 29958, 29888, 2423, 1113, 29888, 375, 1111, 29914, 9983, 29899, 333, 29888, 13, 29937, 10937, 29928, 29990, 29899, 2283, 11882, 1266, 1626, 29901, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29906, 29906, ...
python/ovs/db/idl.py
homework/openvswitch
9
87504
<gh_stars>1-10 # Copyright (c) 2009, 2010, 2011 Nicira Networks # # 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 appl...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29900, 29929, 29892, 29871, 29906, 29900, 29896, 29900, 29892, 29871, 29906, 29900, 29896, 29896, 405, 1654, 3...
Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py
SWuchterl/cmssw
1
1610351
<reponame>SWuchterl/cmssw import FWCore.ParameterSet.Config as cms #from Configuration.Eras.Era_Phase2C4_cff import Phase2C4 #process = cms.Process('HGCGeomAnalysis',Phase2C4) #process.load('Configuration.Geometry.GeometryExtended2026D35_cff') #process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff') #f...
[ 1, 529, 276, 1112, 420, 29958, 23066, 987, 357, 29880, 29914, 4912, 893, 29893, 13, 5215, 383, 29956, 9203, 29889, 9329, 2697, 29889, 3991, 408, 274, 1516, 13, 13, 29937, 3166, 20999, 29889, 2110, 294, 29889, 29923, 336, 29918, 4819, 55...
src/applications/Application.py
BMW-Group-Quantum/QUARK
12
1613296
# Copyright 2021 The QUARK Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
[ 1, 396, 29871, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 450, 660, 29965, 1718, 29968, 13189, 943, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937, 13, 29937, 29871, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, ...
Reading Data/lesson-18-get-fifa-players-from-the-web/tests/test_fifa_1.py
danielgarm/Data-Science-and-Machine-Learning
0
197720
<reponame>danielgarm/Data-Science-and-Machine-Learning def test_fifa_1(): assert fifa_df.shape == (30, 5)
[ 1, 529, 276, 1112, 420, 29958, 18386, 709, 29887, 2817, 29914, 1469, 29899, 29903, 15277, 29899, 392, 29899, 29076, 29899, 29931, 799, 1076, 13, 1753, 1243, 29918, 29888, 26056, 29918, 29896, 7295, 30004, 13, 1678, 4974, 8461, 29874, 29918,...
gui/dataset/budgetary.py
vishalbelsare/prest
6
197810
import os import dataset import util.tree_model import uic.view_dataset import numpy as np import dataset.budgetary_consistency from core import Core from dataset import Dataset, Analysis, ExportVariant, DatasetHeaderC from dataset.budgetary_consistency import BudgetaryConsistency from typing import Sequence, NamedTup...
[ 1, 1053, 2897, 13, 5215, 8783, 13, 5215, 3667, 29889, 8336, 29918, 4299, 13, 5215, 318, 293, 29889, 1493, 29918, 24713, 13, 5215, 12655, 408, 7442, 13, 13, 5215, 8783, 29889, 15841, 657, 653, 29918, 3200, 391, 3819, 13, 3166, 7136, 10...
test/integration/test_command.py
jmgao/bfg9000
0
169339
<filename>test/integration/test_command.py import os.path import re from six import assertRegex from . import * class TestCommand(IntegrationTest): def __init__(self, *args, **kwargs): IntegrationTest.__init__( self, os.path.join(examples_dir, '07_commands'), *args, **kwargs ) de...
[ 1, 529, 9507, 29958, 1688, 29914, 27925, 29914, 1688, 29918, 6519, 29889, 2272, 13, 5215, 2897, 29889, 2084, 13, 5215, 337, 13, 3166, 4832, 1053, 4974, 4597, 735, 13, 13, 3166, 869, 1053, 334, 13, 13, 13, 1990, 4321, 6255, 29898, 2357...
mask_rcnn_2go/code/model_utils.py
dreiss/maskrcnn-nnapi
1
164389
from __future__ import absolute_import, division, print_function, unicode_literals import os import subprocess from caffe2.proto import caffe2_pb2 from caffe2.python import core, workspace def create_blobs_if_not_existed(blob_names): existd_names = set(workspace.Blobs()) for xx in blob_names: if xx n...
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 29892, 29104, 29918, 20889, 1338, 13, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 3166, 274, 3470, 29872, 29906, 29889, 17529, 1053, 274, 3470,...
Digit_Recognizer/digit_recognizer.py
williamyao66/Projects
0
175285
<reponame>williamyao66/Projects import pandas as pd import os from tensorflow.keras.models import load_model tr = pd.read_csv('./Digit-Recognizer/train.csv') te = pd.read_csv('./Digit-Recognizer/test.csv') x_te = te.values.copy().astype('float64') final_model = load_model(os.getcwd() + '/model/') predictions = fi...
[ 1, 529, 276, 1112, 420, 29958, 14043, 2829, 3761, 29877, 29953, 29953, 29914, 25119, 13, 5215, 11701, 408, 10518, 29871, 13, 5215, 2897, 29871, 13, 13, 3166, 26110, 29889, 3946, 294, 29889, 9794, 1053, 2254, 29918, 4299, 13, 13, 13, 509...
freeCodeCamp/01-scientific-computing-with-python/src/12-objects_inheritance.py
aysedemirel/python-journey
1
130624
<gh_stars>1-10 class PartyAnimal: x = 0 name = "" def __init__(self, nameCons): self.name = nameCons print("name: ", self.name) def party(self): self.x = self.x + 1 print(self.name," - party count: ", self.x) class FootballFan(PartyAnimal): points = 0 def t...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 9173, 2744, 3039, 29901, 13, 1678, 921, 353, 29871, 29900, 13, 1678, 1024, 353, 5124, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 13696, 1125, 13, 47...
python/reachy_sdk_api/kinematics_pb2.py
marjoriePaillet/reachy-sdk-api
1
184949
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: kinematics.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.prot...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 278, 9608, 6835, 6516, 29889, 29871, 11662, 6058, 11488, 29991, 13, 29937, 2752, 29901, 19015, 4579, 1199, 29889, 17529, 13, 15945, ...
Statistics/variance_of_sample_proportion.py
mykolatyniv/database_NJIT601
0
198459
<reponame>mykolatyniv/database_NJIT601 def variance_of_sample_proportion(a,b,c,d,e,f,g,h,j,k): try: a = int(a) b = int(b) c = int(c) d = int(d) e = int(e) f = int(f) g = int(g) h = int(h) j = int(j) k = int(k) sample = [a,b,c,d...
[ 1, 529, 276, 1112, 420, 29958, 1357, 10028, 271, 948, 440, 29914, 9803, 29918, 29940, 29967, 1806, 29953, 29900, 29896, 13, 13, 1753, 20162, 29918, 974, 29918, 11249, 29918, 771, 637, 291, 29898, 29874, 29892, 29890, 29892, 29883, 29892, ...
workflow/migrations/0017_organization_logo.py
meetdatastory/Activity-CE
0
177025
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-11-14 00:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workflow', '0016_auto_20170623_1306'), ] operations = [ migrations.AddField...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29896, 29896, 29889, 29906, 373, 29871, 29906, 29900, 29896, 29947, 29899, 29896, 29896, 29899, 29896, 299...
get_neowise_data.py
Aparctias/lightcurve_fft
0
1604646
#!/usr/bin/python # Get NEOWISE data import os import time import json import requests MPC_SPIN_PROC = "mpc_spins_proc" NEOWISE_DIR = "neowise_stat" NEOWISE_SKIP = "neowise_skip_objs" data = [] with open(MPC_SPIN_PROC, 'r') as f: data = json.load(f) url = 'http://irsa.ipac.caltech.edu/cgi-bin/Gator/nph-query?s...
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 13, 29937, 3617, 14693, 9806, 29902, 1660, 848, 13, 13, 5215, 2897, 13, 5215, 931, 13, 5215, 4390, 13, 5215, 7274, 13, 13, 3580, 29907, 29918, 5550, 1177, 29918, 8618, 29907, 353, 376, 152...
common.py
sleclair0/spacy-youtube-material
93
66175
<filename>common.py<gh_stars>10-100 from spacy.matcher import Matcher def create_versioned(name): return [ [{'LOWER': name}], [{'LOWER': {'REGEX': f'({name}\d+\.?\d*.?\d*)'}}], [{'LOWER': name}, {'TEXT': {'REGEX': '(\d+\.?\d*.?\d*)'}}], ] def create_patterns(): versioned_languag...
[ 1, 529, 9507, 29958, 9435, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 805, 4135, 29889, 4352, 261, 1053, 14514, 261, 13, 13, 1753, 1653, 29918, 3259, 287, 29898, 978, 1125, 13, ...
src/dials/algorithms/profile_model/ellipsoid/__init__.py
dials-src/dials
1
146677
<reponame>dials-src/dials from __future__ import annotations from math import pi, sqrt from dials.array_family import flex # noqa: F401; from dials_algorithms_profile_model_ellipsoid_ext import * # noqa: F401, F403; def mosaicity_from_eigen_decomposition(eigen_values): return ( sqrt(eigen_values[0]) *...
[ 1, 529, 276, 1112, 420, 29958, 29881, 616, 29879, 29899, 4351, 29914, 29881, 616, 29879, 13, 3166, 4770, 29888, 9130, 1649, 1053, 25495, 13, 13, 3166, 5844, 1053, 2930, 29892, 18074, 2273, 13, 13, 3166, 270, 616, 29879, 29889, 2378, 299...
osisoft/pidevclub/piwebapi/models/pi_data_server_license.py
jugillar/PI-Web-API-Client-Python
30
12808
# coding: utf-8 """ Copyright 2018 OSIsoft, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-2.0> Unless required by applicable law or agreed t...
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 13, 12, 11882, 1266, 29871, 29906, 29900, 29896, 29947, 438, 5425, 2695, 29892, 365, 12182, 13, 12, 29931, 293, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 2...
diplomacy/src/scripts/yamlizer.py
MaxStrange/nlp
1
37174
<filename>diplomacy/src/scripts/yamlizer.py """ This script takes a single message gathered from playdiplomacy.com as an input file and outputs a YAML version of it so that it can be used as an input file into the program. Usage: python3 yamlizer.py msg.txt (You can also feed it a list of files). NOTE: This script i...
[ 1, 529, 9507, 29958, 6051, 8840, 4135, 29914, 4351, 29914, 16713, 29914, 25162, 3950, 29889, 2272, 13, 15945, 29908, 13, 4013, 2471, 4893, 263, 2323, 2643, 22229, 515, 1708, 6051, 8840, 4135, 29889, 510, 408, 385, 1881, 934, 322, 13, 49...
lib/googlecloudsdk/command_lib/privateca/storage.py
google-cloud-sdk-unofficial/google-cloud-sdk
2
198493
# Lint as: python3 # -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
[ 1, 396, 365, 524, 408, 29901, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 396, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 5087, 365, 12182, 29889, 2178, 26863, 2538, 9841,...
src/ui/ui_send_payout_dlg.py
muteio/ghostnode-tool
1
35312
<gh_stars>1-10 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_send_payout_dlg.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_SendPayoutDlg(object): def setupUi(self, S...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 29937, 3812, 5314, 5759, 515, 5183, 14313, 934, 525, 1481, 29918, 6717, 29918, ...
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
0
2388
"""File generated by TLObjects' generator. All changes will be ERASED""" from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct if TYPE_CHECKING: from ...tl.types import TypeInputStickerSet, TypeInputUser, TypeInputStickerSetItem, TypeInputDocument cl...
[ 1, 9995, 2283, 5759, 491, 323, 29931, 12724, 29915, 15299, 29889, 2178, 3620, 674, 367, 382, 4717, 1660, 29928, 15945, 29908, 13, 3166, 2023, 15206, 29889, 29873, 417, 1675, 1053, 323, 29931, 3089, 13, 3166, 19229, 1053, 28379, 29892, 239...
PCI_o_B/SharedFunctions.py
MatteoMilani95/PCI_o_Bpy
1
159935
import numpy as np import matplotlib.pyplot as plt import math from pynverse import inversefunc from IPython import get_ipython get_ipython().magic('reset -sf') import pandas as pd from scipy.optimize import leastsq, least_squares, curve_fit import os from scipy import interpolate import scipy.integrate as ...
[ 1, 6756, 13, 5215, 12655, 408, 7442, 30004, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 30004, 13, 5215, 5844, 30004, 13, 3166, 282, 948, 3901, 1053, 16402, 9891, 30004, 13, 3166, 5641, 1656, 1053, 679, 29918, 666, 1656, 30004, 13, ...
test/pynrn/test_units.py
shhong/nrn
1
146837
<gh_stars>1-10 from neuron import h def switch_units(legacy): try: h.nrnunit_use_legacy(legacy) except: pass def test_mod_legacy(): s = h.Section() ut = h.UnitsTest(s(.5)) h.ion_style("na_ion", 1, 2, 1, 1, 0, sec=s) switch_units(1) h.finitialize() names = ["mole", "e", "faraday", "planck", "h...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 26808, 265, 1053, 298, 13, 13, 1753, 4607, 29918, 348, 1169, 29898, 1397, 4135, 1125, 13, 29871, 1018, 29901, 13, 1678, 298, 29889, 22230, 29876, 5441, 29918, ...
knet/views/__init__.py
aethersoft/metaview
1
1610602
from typing import Text from flask import Blueprint, render_template from knet.config import CONFIG bp = Blueprint('views', __name__) @bp.route('/') def home(): return render_template('index.html', title=CONFIG['APP_TITLE'], page='Home') @bp.route('/<page>') def pages(page: Text): return render_template(...
[ 1, 515, 19229, 1053, 3992, 13, 13, 3166, 29784, 1053, 10924, 2158, 29892, 4050, 29918, 6886, 13, 13, 3166, 889, 300, 29889, 2917, 1053, 8707, 18667, 13, 13, 25288, 353, 10924, 2158, 877, 7406, 742, 4770, 978, 1649, 29897, 13, 13, 13, ...
api/login_request.py
dyphen12/full-stack-login
0
1605627
import database as datb #### REQUESTS ##### def login(user,passw): auth, ssid = datb.user_validation(user,passw) return auth, ssid
[ 1, 1053, 2566, 408, 1418, 29890, 13, 13, 4136, 5195, 14130, 29903, 16101, 13, 13, 1753, 6464, 29898, 1792, 29892, 3364, 29893, 1125, 13, 13, 1678, 4817, 29892, 17971, 333, 353, 1418, 29890, 29889, 1792, 29918, 18157, 29898, 1792, 29892, ...
setup.py
cr3/lookuper
0
189537
<filename>setup.py from setuptools import ( setup, find_packages, ) setup( name='lookuper', use_scm_version=True, description='Lookup nested data structures', long_description=open('README.rst').read(), url='https://github.com/cr3/lookuper', author='<NAME>', author_email='<EMAIL>',...
[ 1, 529, 9507, 29958, 14669, 29889, 2272, 13, 3166, 731, 21245, 8789, 1053, 313, 13, 1678, 6230, 29892, 13, 1678, 1284, 29918, 8318, 29892, 13, 29897, 13, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 6914, 14805, 742, 13, 1678, 671, 299...
client/base_client.py
renatopp/liac-chess
6
138575
<gh_stars>1-10 # ============================================================================= # Federal University of Rio Grande do Sul (UFRGS) # Connectionist Artificial Intelligence Laboratory (LIAC) # <NAME> - <EMAIL> # ============================================================================= # Copyright (c) 20...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 25512, 13, 29937, 14879, 3014, 310, 11611, 12848, 437, 13358, 313, 29965, 15860, 10749, 29897, 13, 29937, 15160, 391, 3012, ...
nodevectors/evaluation/__init__.py
tboser/nodevectors
0
61551
<reponame>tboser/nodevectors from nodevectors.evaluation.graph_eval import * from nodevectors.evaluation.link_pred import *
[ 1, 529, 276, 1112, 420, 29958, 22625, 22969, 29914, 3177, 345, 14359, 13, 3166, 2943, 345, 14359, 29889, 24219, 362, 29889, 4262, 29918, 14513, 1053, 334, 13, 3166, 2943, 345, 14359, 29889, 24219, 362, 29889, 2324, 29918, 11965, 1053, 334...
reg_analysis.py
prakharchoudhary/Tale-O-Regression
2
162941
""" Train the regressor and plot the results """ import os import numpy as np from matplotlib import pyplot as plt from sklearn.preprocessing import StandardScaler from linear_model import LinearRegressionGD def train_reg(df): X = df[['RM']].values y = df['MEDV'].values sc_x = StandardScaler() sc_y = StandardScale...
[ 1, 9995, 13, 5323, 262, 278, 337, 3663, 272, 322, 6492, 278, 2582, 13, 15945, 29908, 13, 5215, 2897, 13, 5215, 12655, 408, 7442, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 13, 3166, 2071, 19668, 29889, 1457, 19170, 1053, 10117, 2...
main_app/migrations/0006_auto_20210905_0013.py
boyoon-c/readuck-api
0
1600682
# Generated by Django 3.2.6 on 2021-09-05 00:13 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main_app', '0005_rename_article_group_articles'), ] ...
[ 1, 396, 3251, 630, 491, 15337, 29871, 29941, 29889, 29906, 29889, 29953, 373, 29871, 29906, 29900, 29906, 29896, 29899, 29900, 29929, 29899, 29900, 29945, 29871, 29900, 29900, 29901, 29896, 29941, 13, 13, 3166, 9557, 29889, 5527, 1053, 6055, ...
beer_carousel/migrations/0003_auto_20180610_1258.py
GeniALE/SiteWebGeniALE
4
180081
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-10 16:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('beer_carousel', '0002_auto_20180605_1010'), ] operations = [ ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29896, 29896, 373, 29871, 29906, 29900, 29896, 29947, 29899, 29900, 29953, 29899, 29896, 29900, 29871, 298...
kite-python/kite_ml/kite/name_encoder/scope_encoder.py
kiteco/kiteco-public
17
36213
<gh_stars>10-100 from typing import Dict, Any import tensorflow as tf from ..utils.segmented_data import SegmentedIndices, SegmentedIndicesFeed from ..graph_encoder.embeddings import NodeEmbeddings class Encoder(object): def __init__(self, nodes: NodeEmbeddings): self._nodes = nodes self._build...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 19229, 1053, 360, 919, 29892, 3139, 13, 13, 5215, 26110, 408, 15886, 13, 13, 3166, 6317, 13239, 29889, 28192, 287, 29918, 1272, 1053, 6667, 358, ...
reverseWord.py
lovefov/Python
0
3324
#!/usr/bin/env python3 #-*- coding:utf-8 -*- #Author:贾江超 def spin_words(sentence): list1=sentence.split() l=len(list1) for i in range(l): relen = len(sentence.split()[i:][0]) if relen > 5: list1[i]=list1[i][::-1] return ' '.join(list1) ''' 注意 在2.x版本可以用len()得到list的长度 3.x版本就不行...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 29899, 29930, 29899, 14137, 29901, 9420, 29899, 29947, 448, 29930, 29899, 13, 29937, 13720, 29901, 235, 183, 193, 30775, 31480, 13, 13, 1753, 10917, 29918, 9303, 29898, 18616...
applications/python/mqtt-lcp/lib/node_base_i2c.py
rphughespa/mqtt-lcp
4
65409
<filename>applications/python/mqtt-lcp/lib/node_base_i2c.py<gh_stars>1-10 # node_base_i2c.py - base class for mqtt nodes """ node_base_i2c - Base class for nodes that use i2c. Derived from node_base_mqtt. The MIT License (MIT) Copyright 2020 <NAME> Permission is hereby granted, free of charge, to any person ob...
[ 1, 529, 9507, 29958, 932, 5795, 29914, 4691, 29914, 28466, 698, 29899, 29880, 6814, 29914, 1982, 29914, 3177, 29918, 3188, 29918, 29875, 29906, 29883, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, ...
stubs.min/System/ComponentModel/__init___parts/LookupBindingPropertiesAttribute.py
ricardyn/ironpython-stubs
1
172571
<reponame>ricardyn/ironpython-stubs<gh_stars>1-10 class LookupBindingPropertiesAttribute(Attribute,_Attribute): """ Specifies the properties that support lookup-based binding. This class cannot be inherited. LookupBindingPropertiesAttribute() LookupBindingPropertiesAttribute(dataSource: str,displayMember:...
[ 1, 529, 276, 1112, 420, 29958, 2200, 538, 948, 29914, 381, 265, 4691, 29899, 303, 23954, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 7419, 786, 9270, 11857, 6708, 29898, 6708, 29892, 29918, 6708, 1125, 300...
camerartc/camerartc.gyp
Teaonly/yacamera
20
52789
<gh_stars>10-100 # # Building script for ipcamera application # { 'includes': ['build/common.gypi'], 'targets' : [ { 'target_name': 'camerartc', 'type': 'executable', 'include_dirs': [ '../third_party/webrtc/modules/interface', ], 'dependencies': [ ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 13, 29937, 259, 17166, 2471, 363, 474, 6739, 314, 1572, 2280, 13, 29937, 13, 29912, 13, 1678, 525, 24572, 2396, 6024, 4282, 29914, 9435, 29889, ...
Experiment Processing/experiment1/calculate_mutual_tracks.py
Austaon/GroupRecommendationThesis
0
109905
import statistics from database.user import SessionUser import matplotlib.pyplot as plt def calculate_mutual_tracks(key="real", plot_data=True): """ Finds the number of tracks that are in both the selected data and the given dataset in each time range. The average and standard deviation are printed and ...
[ 1, 1053, 13964, 13, 13, 3166, 2566, 29889, 1792, 1053, 16441, 2659, 13, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 13, 13, 1753, 8147, 29918, 6149, 950, 29918, 3018, 4684, 29898, 1989, 543, 6370, 613, 6492, 29918, 1272, 29922, ...
democracy_club/apps/everyelection/migrations/0001_initial.py
chris48s/Website
0
96120
<filename>democracy_club/apps/everyelection/migrations/0001_initial.py<gh_stars>0 # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone from django.conf import settings import django_extensions.db.fields class Migration(migrations.Migrat...
[ 1, 529, 9507, 29958, 2310, 25804, 29918, 29066, 29914, 13371, 29914, 17991, 29872, 1464, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29896, 29918, 11228, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 298...
SelectUniqueTaxid.py
BonizzoniLab/Refine_EVEs_annotation
1
147160
import argparse def read_blast_table(blastx_file): '''Read blastx table''' totalList=[] for line in blastx_file: line=line.rstrip() if line.startswith('ID'): continue else: parts=line.split('\t') try: taxid=parts[int...
[ 1, 1053, 1852, 5510, 13, 268, 13, 1753, 1303, 29918, 23190, 29918, 2371, 29898, 23190, 29916, 29918, 1445, 1125, 13, 1678, 14550, 6359, 1999, 579, 29916, 1591, 12008, 13, 1678, 3001, 1293, 29922, 2636, 13, 13, 1678, 363, 1196, 297, 1999...
tests/syntax/async_def_missing_parens.py
matan-h/friendly
287
133925
<filename>tests/syntax/async_def_missing_parens.py async def name: pass
[ 1, 529, 9507, 29958, 21150, 29914, 29562, 29914, 12674, 29918, 1753, 29918, 27259, 29918, 862, 575, 29889, 2272, 13, 12674, 822, 1024, 29901, 13, 1678, 1209, 13, 2 ]
utils/tinyimages_80mn_loader.py
jfc43/robust-ood-detection
55
196882
import numpy as np import torch from bisect import bisect_left class TinyImages(torch.utils.data.Dataset): def __init__(self, transform=None, exclude_cifar=True): data_file = open('datasets/unlabeled_datasets/80M_Tiny_Images/tiny_images.bin', "rb") def load_image(idx): data_file.seek...
[ 1, 1053, 12655, 408, 7442, 13, 5215, 4842, 305, 13, 3166, 2652, 522, 1053, 2652, 522, 29918, 1563, 13, 13, 1990, 323, 4901, 20163, 29898, 7345, 305, 29889, 13239, 29889, 1272, 29889, 16390, 24541, 1125, 13, 13, 1678, 822, 4770, 2344, ...
5.Operators/2.membership_operator.py
Tazri/Python
0
194730
<filename>5.Operators/2.membership_operator.py list = ['Apple','Orange','Benana','Mango']; name = "<NAME>"; print('"Apple" in list : ',"Apple" in list); print('"Kiwi" in list : ',"Kiwi" in list); print('"Water" not in list : ',"Water" not in list); print("'Md' in name : ",'Md' in name); print("'Tazri' not in name : ",...
[ 1, 529, 9507, 29958, 29945, 29889, 7094, 4097, 29914, 29906, 29889, 29885, 1590, 10475, 29918, 6891, 29889, 2272, 13, 1761, 353, 6024, 2052, 280, 3788, 29949, 3881, 3788, 20841, 1648, 3788, 29924, 4524, 8219, 13, 978, 353, 9872, 5813, 168...
photonpy/tests/psf_g2d_sigma.py
qnano/photonpy
5
7095
import matplotlib.pyplot as plt import numpy as np from photonpy.cpp.context import Context import photonpy.cpp.gaussian as gaussian from photonpy.smlm.util import imshow_hstack from photonpy.cpp.estimator import Estimator def CheckDeriv(psf:Estimator, theta): nderiv,ev=psf.NumDeriv(theta,eps=1e-6) deriv,ev=p...
[ 1, 1053, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 6731, 265, 2272, 29889, 8223, 29889, 4703, 1053, 15228, 13, 5215, 6731, 265, 2272, 29889, 8223, 29889, 29887, 17019, 408, 330, 17019, 13, 3166, 673...
src/pataka/models/__init__.py
astrogewgaw/pataka
6
167218
<reponame>astrogewgaw/pataka from .furby import Furby from .pulsar import Pulsar __all__ = ["Furby", "Pulsar"]
[ 1, 529, 276, 1112, 420, 29958, 23364, 9396, 29887, 1450, 29914, 29886, 532, 1335, 13, 3166, 869, 22613, 1609, 1053, 7509, 1609, 13, 3166, 869, 29886, 7273, 279, 1053, 349, 7273, 279, 13, 13, 1649, 497, 1649, 353, 6796, 29943, 332, 160...
main.py
neurosity/notion-pylsl-starter
5
72044
<gh_stars>1-10 """Example program to show how to read a multi-channel time series from LSL.""" from pylsl import StreamInlet, resolve_stream try: # first resolve an EEG stream on the lab network print("looking for an EEG stream...") streams = resolve_stream('type', 'EEG') # create a new inlet to read...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 14023, 1824, 304, 1510, 920, 304, 1303, 263, 2473, 29899, 12719, 931, 3652, 515, 365, 12750, 1213, 15945, 13, 13, 3166, 282, 2904, 2536, 1053, 13763, ...
python/048-self-powers.py
timschlechter/project-euler
0
172004
<reponame>timschlechter/project-euler from functools import reduce powers = map(lambda x: x**x, range(1, 1001)) summation = reduce(lambda x, y: x + y, powers) last10 = str(summation)[-10:] print(last10)
[ 1, 529, 276, 1112, 420, 29958, 9346, 816, 280, 8255, 29914, 4836, 29899, 29872, 8584, 13, 3166, 2090, 312, 8789, 1053, 10032, 13, 13, 12248, 414, 353, 2910, 29898, 2892, 921, 29901, 921, 1068, 29916, 29892, 3464, 29898, 29896, 29892, 29...
tests/util_test.py
yyang08/swagger-spec-compatibility
18
117864
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import mock import pytest from swagger_spec_compatibility.util import EntityMapping from swagger_spec_compatibility.util import is_path_in_top_level_paths from swagger_spec_comp...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 3166, 4770, 29888, 9130, 1649, 10...
src/synthesize_predictions.py
bluetyson/concept-tagging-training
10
30322
import argparse import logging from pathlib import Path import dask import h5py import joblib import numpy as np import pandas as pd from dask.diagnostics import ProgressBar from tqdm import tqdm from dsconcept.get_metrics import ( get_cat_inds, get_synth_preds, load_category_models, load_concept_mode...
[ 1, 1053, 1852, 5510, 13, 5215, 12183, 13, 3166, 2224, 1982, 1053, 10802, 13, 13, 5215, 270, 1278, 13, 5215, 298, 29945, 2272, 13, 5215, 4982, 1982, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 270, 1278, 29889, ...
djnic/cambios/apps.py
avdata99/nic
8
41802
<filename>djnic/cambios/apps.py from django.apps import AppConfig class CambiosConfig(AppConfig): name = 'cambios'
[ 1, 529, 9507, 29958, 19776, 7823, 29914, 29883, 1117, 2363, 29914, 13371, 29889, 2272, 13, 3166, 9557, 29889, 13371, 1053, 2401, 3991, 13, 13, 13, 1990, 9287, 2363, 3991, 29898, 2052, 3991, 1125, 13, 1678, 1024, 353, 525, 29883, 1117, 2...
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/draw_buffers2.py
temelkirci/Motion_Editor
1
8208
<reponame>temelkirci/Motion_Editor '''OpenGL extension EXT.draw_buffers2 This module customises the behaviour of the OpenGL.raw.GL.EXT.draw_buffers2 to provide a more Python-friendly API Overview (from the spec) This extension builds upon the ARB_draw_buffers extension and provides separate blend enables and co...
[ 1, 529, 276, 1112, 420, 29958, 1356, 295, 14166, 455, 29914, 29924, 8194, 29918, 15280, 13, 12008, 6585, 7239, 6081, 8528, 29911, 29889, 4012, 29918, 28040, 414, 29906, 13, 13, 4013, 3883, 2888, 4637, 278, 10468, 310, 278, 29871, 13, 65...
misc/wapiti-2.3.0/wapitiCore/report/xmlreportgenerator.py
sapientgov/openfda-travel
377
179028
<reponame>sapientgov/openfda-travel<filename>misc/wapiti-2.3.0/wapitiCore/report/xmlreportgenerator.py #!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the Wapiti project (http://wapiti.sourceforge.net) # Copyright (C) 2008-2013 <NAME> # # Original authors : # <NAME> # <NAME> # Copyright (C) 2008 In...
[ 1, 529, 276, 1112, 420, 29958, 29879, 481, 993, 13513, 29914, 3150, 29888, 1388, 29899, 3018, 955, 29966, 9507, 29958, 29885, 10669, 29914, 29893, 481, 4812, 29899, 29906, 29889, 29941, 29889, 29900, 29914, 29893, 481, 4812, 9203, 29914, 12...
rpython/translator/jvm/test/test_unicode.py
kantai/passe-pypy-taint-tracking
2
162321
<reponame>kantai/passe-pypy-taint-tracking import py from rpython.translator.jvm.test.runtest import JvmTest from rpython.rtyper.test.test_runicode import BaseTestRUnicode # ====> ../../../rpython/test/test_runicode.py class TestJvmUnicode(JvmTest, BaseTestRUnicode): EMPTY_STRING_HASH = 0 def test_unichar_c...
[ 1, 529, 276, 1112, 420, 29958, 29895, 424, 1794, 29914, 29886, 5793, 29899, 29886, 1478, 29891, 29899, 29873, 2365, 29899, 11294, 292, 13, 5215, 11451, 13, 3166, 364, 4691, 29889, 3286, 29880, 1061, 29889, 29926, 6925, 29889, 1688, 29889, ...
ros/devel/lib/python2.7/dist-packages/darknet_ros_msgs/msg/_CheckForObjectsAction.py
wutianze/ComP
3
34043
<gh_stars>1-10 # This Python file uses the following encoding: utf-8 """autogenerated by genpy from darknet_ros_msgs/CheckForObjectsAction.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import darknet_ros_msgs.msg import sensor_msgs.msg import genpy ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 910, 5132, 934, 3913, 278, 1494, 8025, 29901, 23616, 29899, 29947, 13, 15945, 29908, 1300, 468, 759, 630, 491, 2531, 2272, 515, 6501, 1212, 29918, 1883, 29918,...
examples/similarity_conf.py
allenye0119/Amaze
0
161744
<filename>examples/similarity_conf.py """ This module gives an example of how to configure similarity measures computation. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from amaze import KNNBasic from amaze import Dataset from amaze.model_selection i...
[ 1, 529, 9507, 29958, 19057, 29914, 29764, 537, 29918, 5527, 29889, 2272, 13, 15945, 29908, 13, 4013, 3883, 4076, 385, 1342, 310, 920, 304, 10822, 29501, 15366, 13, 12097, 362, 29889, 13, 15945, 29908, 13, 13, 3166, 4770, 29888, 9130, 16...
tests/contrib/test_cached_dataset.py
mmathys/bagua
635
61948
from bagua.torch_api.contrib.cached_dataset import CachedDataset from torch.utils.data.dataset import Dataset import numpy as np import logging import unittest from tests import skip_if_cuda_available logging.basicConfig(level=logging.DEBUG) class MyDataset(Dataset): def __init__(self, size): self.size =...
[ 1, 515, 19548, 3357, 29889, 7345, 305, 29918, 2754, 29889, 21570, 29889, 29883, 3791, 29918, 24713, 1053, 315, 3791, 16390, 24541, 13, 3166, 4842, 305, 29889, 13239, 29889, 1272, 29889, 24713, 1053, 13373, 24541, 13, 5215, 12655, 408, 7442,...
ImageDeleter.py
warifp/InstagramPostAndDelete
4
114591
import os def delete_png(): list = os.listdir() images = [x for x in list if ".png" in x] for x in images: os.remove(x)
[ 1, 1053, 2897, 13, 1753, 5217, 29918, 2732, 7295, 13, 1678, 1051, 353, 2897, 29889, 1761, 3972, 580, 13, 1678, 4558, 353, 518, 29916, 363, 921, 297, 1051, 565, 11393, 2732, 29908, 297, 921, 29962, 13, 1678, 363, 921, 297, 4558, 29901,...
viscyc/detector/__init__.py
csachs/viscyc
1
1601104
import argparse import importlib import importlib.util import json import socket import sys import time from pathlib import Path from urllib.error import HTTPError, URLError from urllib.request import Request, urlopen import cv2 class RawSender: def __init__(self, host, port): self.host, self.port = host...
[ 1, 1053, 1852, 5510, 13, 5215, 1053, 1982, 13, 5215, 1053, 1982, 29889, 4422, 13, 5215, 4390, 13, 5215, 9909, 13, 5215, 10876, 13, 5215, 931, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 3142, 1982, 29889, 2704, 1053, 7331, 2392, 2989...
scraper/twitter.py
AgentHH/SBCFireDispatch
2
1612302
#!/usr/bin/python import oauth2 import psycopg2 import simplejson import urllib2 from config import * token = oauth2.Token(key=access_token_key, secret=access_token_secret) consumer = oauth2.Consumer(key=consumer_key, secret=consumer_secret) signature_method = oauth2.SignatureMethod_HMAC_SHA1() def get(url, **args)...
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 13, 5215, 288, 5150, 29906, 13, 5215, 6529, 29891, 9708, 29887, 29906, 13, 5215, 2560, 3126, 13, 5215, 3142, 1982, 29906, 13, 13, 3166, 2295, 1053, 334, 13, 13, 6979, 353, 288, 5150, 29906...
attack.py
RishavMz/strategic_siege
0
145729
import pygame from data.troops import * from data.defenses import * from data.attack_levels import * import math WIDTH = 800 HEIGHT = 600 state = 0 level = 0 totalDamageDone = 0 totalDamageTaken = 0 class Table: def __init__(self,width,height): self.width=width self.height=height self.ca...
[ 1, 1053, 22028, 13, 3166, 848, 29889, 29873, 307, 3554, 1053, 334, 13, 3166, 848, 29889, 1753, 11259, 1053, 334, 13, 3166, 848, 29889, 1131, 547, 29918, 5563, 29879, 1053, 334, 13, 13, 5215, 5844, 13, 13, 22574, 353, 29871, 29947, 299...
hmc/applications/banana/banana.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
1
10740
from typing import Callable, Tuple import numpy as np def posterior_factory(y: np.ndarray, sigma_y: float, sigma_theta: float) -> Tuple[Callable]: """The banana distribution is a distribution that exhibits a characteristic banana-shaped ridge that resembles the posterior that can emerge from models that ...
[ 1, 515, 19229, 1053, 8251, 519, 29892, 12603, 552, 13, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 13446, 29918, 14399, 29898, 29891, 29901, 7442, 29889, 299, 2378, 29892, 269, 2934, 29918, 29891, 29901, 5785, 29892, 269, 2934, 29918, ...
tests/test_cfloader.py
shachibista/mloader
0
52926
<filename>tests/test_cfloader.py #!/usr/bin/env python """Tests for `cfloader` package.""" import json from pathlib import Path import pytest import cfloader from cfloader.loader import Loader from cfloader.readers import ConfigFileNotFoundError def test_cfloader_can_open_path_objects(): config_filepath = Path...
[ 1, 529, 9507, 29958, 21150, 29914, 1688, 29918, 6854, 12657, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 24376, 363, 421, 6854, 12657, 29952, 3577, 1213, 15945, 13, 13, 5215, 4390, 13, 3166, ...
tests/python/gaia-ui-tests/gaiatest/tests/accessibility/phone/test_a11y_callscreen_visibility.py
gregarndt/gaia
1
155498
<filename>tests/python/gaia-ui-tests/gaiatest/tests/accessibility/phone/test_a11y_callscreen_visibility.py # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from gaiatest...
[ 1, 529, 9507, 29958, 21150, 29914, 4691, 29914, 3249, 423, 29899, 1481, 29899, 21150, 29914, 29887, 1794, 271, 342, 29914, 21150, 29914, 5943, 4127, 29914, 6710, 29914, 1688, 29918, 29874, 29896, 29896, 29891, 29918, 29883, 4293, 5576, 29918,...
Chapter04/simple_examples/functional_example.py
arifmudi/Machine-Learning-Engineering-with-Python
67
1612700
import pandas as pd import numpy as np data = [ ['The', 'Business', 'Centre', '15', 'Stevenson', 'Lane'], ['6', 'Mossvale', 'Road'], ['Studio', '7', 'Tottenham', 'Court', 'Road'] ] def len_strings_in_list(data_list): return list(map(lambda x: len(x), data_list)) def list_of_list_func_results(list_fun...
[ 1, 1053, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 13, 1272, 353, 518, 13, 1678, 6024, 1576, 742, 525, 16890, 3335, 742, 525, 29907, 14056, 742, 525, 29896, 29945, 742, 525, 7789, 9852, 265, 742, 525, 29931, 1662, 7464, 13, ...
one_page/customapp/templatetags/testtag.py
aptuz/mezzanine_onepage_theme
0
56669
from __future__ import unicode_literals from future.builtins import int from collections import defaultdict from django.core.urlresolvers import reverse from django.template.defaultfilters import linebreaksbr, urlize from mezzanine import template from mezzanine.conf import settings from mezzanine.generic.forms impo...
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 3166, 5434, 29889, 16145, 1144, 1053, 938, 13, 13, 3166, 16250, 1053, 2322, 8977, 13, 13, 3166, 9557, 29889, 3221, 29889, 2271, 9778, 874, 1053, 11837, 13, 3166, 9557...
h5parm/datapack.py
Joshuaalbert/h5parm
0
76104
<reponame>Joshuaalbert/h5parm<filename>h5parm/datapack.py import tables as tb import os import numpy as np import astropy.units as au import astropy.time as at import astropy.coordinates as ac import sys import time import itertools import re import logging logger = logging.getLogger(__name__) from h5parm.maintenance...
[ 1, 529, 276, 1112, 420, 29958, 29967, 10578, 3357, 284, 2151, 29914, 29882, 29945, 862, 29885, 29966, 9507, 29958, 29882, 29945, 862, 29885, 29914, 4130, 481, 547, 29889, 2272, 13, 5215, 6131, 408, 260, 29890, 13, 5215, 2897, 13, 5215, ...
examples/para.py
nagareproject/renderers-rml
0
1609041
<gh_stars>0 # Encoding: UTF-8 # -- # Copyright (c) 2008-2021 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- from nagare.renderers import rml def sample(output): r = rml...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 11346, 3689, 29901, 18351, 29899, 29947, 13, 29937, 1192, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29900, 29947, 29899, 29906, 29900, 29906, 29896, 12670, 29899,...
04_datacamp/solutions/05_solutions.py
HirahTang/datascience_starter_course
3
189091
df[(df['Sex'] == 'male') & (df['Age'] > 60)].shape[0]
[ 1, 4489, 15625, 2176, 1839, 29903, 735, 2033, 1275, 525, 19202, 1495, 669, 313, 2176, 1839, 22406, 2033, 1405, 29871, 29953, 29900, 29897, 1822, 12181, 29961, 29900, 29962, 13, 2 ]
gist_magic/extensions/gist.py
timbr-io/gist-magic
3
50698
<gh_stars>1-10 from IPython.core.magic import (Magics, magics_class, line_magic, cell_magic, line_cell_magic) from IPython import get_ipython import argparse from pygithub3 import Github from pygithub3.resources.gists import Gist import os import shlex from itertools import chain from...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 5641, 1656, 29889, 3221, 29889, 11082, 293, 1053, 313, 19095, 1199, 29892, 2320, 1199, 29918, 1990, 29892, 1196, 29918, 11082, 293, 29892, 13, 462, 18884, 3038, ...
savu/plugins/ptychography/base_ptycho.py
malte-storm/Savu
1
89560
<gh_stars>1-10 # Copyright 2014 Diamond Light Source 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 ...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29946, 22904, 898, 12790, 7562, 19806, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, ...
wal_e/worker/gs/__init__.py
paalkr/wal-e
2,739
146868
<filename>wal_e/worker/gs/__init__.py from wal_e.worker.gs.gs_deleter import Deleter from wal_e.worker.gs.gs_worker import BackupFetcher from wal_e.worker.gs.gs_worker import BackupList from wal_e.worker.gs.gs_worker import DeleteFromContext from wal_e.worker.gs.gs_worker import TarPartitionLister __all__ = [ 'Del...
[ 1, 529, 9507, 29958, 14625, 29918, 29872, 29914, 24602, 29914, 3174, 29914, 1649, 2344, 26914, 2272, 13, 3166, 17042, 29918, 29872, 29889, 24602, 29889, 3174, 29889, 3174, 29918, 311, 280, 357, 1053, 897, 280, 357, 13, 3166, 17042, 29918, ...
test31.py
cieczpj/spider
0
61483
<filename>test31.py from lxml import etree import requests import urllib.parse import pymongo headers = { 'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', } mylist = [] for j in range(50): if j == 1: reponse= request...
[ 1, 529, 9507, 29958, 1688, 29941, 29896, 29889, 2272, 13, 3166, 301, 3134, 1053, 634, 929, 13, 5215, 7274, 13, 5215, 3142, 1982, 29889, 5510, 13, 5215, 282, 962, 7443, 13, 13662, 353, 426, 13, 1678, 525, 2659, 29899, 19661, 22099, 299...
orders/views.py
DobromirZlatkov/anteya
0
8699
<filename>orders/views.py from django.core.urlresolvers import reverse_lazy from django.views import generic from django.shortcuts import redirect, render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from . import forms from . import models from custommixins import mixins ...
[ 1, 529, 9507, 29958, 20488, 29914, 7406, 29889, 2272, 13, 3166, 9557, 29889, 3221, 29889, 2271, 9778, 874, 1053, 11837, 29918, 433, 1537, 13, 3166, 9557, 29889, 7406, 1053, 10035, 13, 3166, 9557, 29889, 12759, 7582, 29879, 1053, 6684, 298...
docs/10.level3_demo_streaming/pc_server/server.py
FaBoPlatform/RobotCarAI
10
5706
<reponame>FaBoPlatform/RobotCarAI<gh_stars>1-10 #!/usr/bin/env python # -*- coding: utf-8 -*- # ClientからOpenCV画像データを受け取り、ライン検出して制御命令を送る # Server: Jetson TX2 # Client: Jetson TX2/Raspberry Pi3 Docker # 1. FFMPEG UDP StreamingをClientで実行する。AWS向け10FPS,Jetson TX2向け1FPS # 2. Serverを起動する # 3. Clientを起動する # コード修正 # lib/camera....
[ 1, 529, 276, 1112, 420, 29958, 14206, 8431, 21889, 29914, 21860, 327, 8179, 23869, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 1413...
mom/itertools.py
ands904/ands904-tinypyclone
16
32257
<filename>mom/itertools.py #!/usr/bin/env python # -*- coding: utf-8 -*- """:synopsis: Implements :mod:`itertools` for older versions of Python. :module: mom.itertools :copyright: 2010-2011 by <NAME> :license: BSD, PSF Borrowed from brownie.itools. """ from __future__ import absolute_import import itertools from mo...
[ 1, 529, 9507, 29958, 29885, 290, 29914, 1524, 8504, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 1115, 19274, 15368, ...
zkay/transaction/crypto/ecdh_aes.py
nibau/zkay
0
146893
from typing import Tuple, List, Any from Crypto.Cipher import AES from zkay.config import cfg from zkay.transaction.crypto.ecdh_base import EcdhBase class EcdhAesCrypto(EcdhBase): def _enc(self, plain: int, my_sk: int, target_pk: int) -> Tuple[List[int], None]: key = self._ecdh_sha256(target_pk, my_sk) ...
[ 1, 515, 19229, 1053, 12603, 552, 29892, 2391, 29892, 3139, 13, 13, 3166, 315, 17929, 29889, 29907, 29875, 8096, 1053, 319, 2890, 13, 13, 3166, 503, 29895, 388, 29889, 2917, 1053, 274, 16434, 13, 3166, 503, 29895, 388, 29889, 20736, 2988...
data/train/python/51ac8632d350c422dea2ba0ea797fbc604f88f75__init__.py
harshp8l/deep-learning-lang-detection
84
174271
from DCWorkflowGraph import getGraph from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition from Products.PageTemplates.PageTemplateFile import PageTemplateFile import os # Import "MessageFactory" to create messages in the DCWorkflowGraph domain from zope.i18nmessageid import MessageFactory _ = MessageFactory...
[ 1, 515, 13681, 5531, 1731, 9527, 1053, 679, 9527, 13, 3166, 10969, 29879, 29889, 12696, 5531, 1731, 29889, 12696, 5531, 1731, 1053, 13681, 5531, 1731, 14683, 13, 3166, 10969, 29879, 29889, 5074, 5776, 9884, 29889, 5074, 6733, 2283, 1053, ...
GA/ba-code/main/mycode/rep/individual2b.py
CN-UPB/fcapp
0
63850
<gh_stars>0 from __future__ import (absolute_import, division, print_function) from array import array import copy import random from mycode import mydeap from mycode.rep.fitness import Fitness from mycode.settings import config # print("using REPR-C = reprb + fperm order") from mycode.rep.individual_base import Ind...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 4770, 29888, 9130, 1649, 1053, 313, 23552, 29918, 5215, 29892, 8542, 29892, 1596, 29918, 2220, 29897, 13, 3166, 1409, 1053, 1409, 13, 5215, 3509, 13, 5215, 4036, 13, 13, 3166, 590...
gdsfactory/simulation/simphony/components/coupler.py
jorgepadilla19/gdsfactory
0
158675
<reponame>jorgepadilla19/gdsfactory from SiPANN.scee import Standard from SiPANN.scee_int import SimphonyWrapper def coupler( width: float = 0.5, thickness: float = 0.22, gap: float = 0.22, length: float = 10.0, sw_angle: float = 90.0, dx: float = 1.5, dy: float = 5.0, **kwargs, ): ...
[ 1, 529, 276, 1112, 420, 29958, 3418, 479, 8305, 2911, 29896, 29929, 29914, 29887, 29881, 4668, 3832, 13, 3166, 6101, 29925, 2190, 29940, 29889, 22774, 29872, 1053, 10117, 13, 3166, 6101, 29925, 2190, 29940, 29889, 22774, 29872, 29918, 524, ...
aula#10/desafio035.py
daramariabs/exercicios-python
0
198209
""" Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.""" a = float(input('Reta A:')) b = float(input('Reta B:')) c = float(input('Reta C:')) if a < b + c and b < a + c and c < a + b: print('Forma um triangulo') else: print('Não forma um trian...
[ 1, 9995, 2726, 264, 1555, 1564, 1922, 16914, 712, 454, 423, 288, 7199, 6174, 316, 26299, 3240, 294, 13, 29872, 270, 4324, 5017, 502, 29884, 12288, 409, 560, 294, 13279, 29885, 2123, 8145, 883, 279, 1922, 3367, 30057, 865, 7207, 1213, ...
src/napari_threedee/lighting/lighting_control.py
alisterburt/napari-threedee
5
55290
<filename>src/napari_threedee/lighting/lighting_control.py from typing import List import numpy as np import napari from ..base import ThreeDeeModel from ..utils.napari_utils import add_mouse_callback_safe, get_napari_visual, remove_mouse_callback_safe class LightingControl(ThreeDeeModel): def __init__(self, vi...
[ 1, 529, 9507, 29958, 4351, 29914, 8971, 1306, 29918, 386, 276, 2742, 29872, 29914, 4366, 292, 29914, 4366, 292, 29918, 6451, 29889, 2272, 13, 3166, 19229, 1053, 2391, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 9709, 1306, 13, 13, 3166, ...
tests/test_cli.py
kids-first/kf-model-omop
0
61428
<gh_stars>0 import os from sqlalchemy import inspect, create_engine from click.testing import CliRunner from kf_model_omop import cli from kf_model_omop.config import config as config_dict, APP_CONFIG_ENV_VAR from kf_model_omop.factory.utils import auto_gen_models env = {APP_CONFIG_ENV_VAR: 'testing'} def test_cre...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 13, 13, 3166, 4576, 284, 305, 6764, 1053, 16096, 29892, 1653, 29918, 10599, 13, 3166, 2828, 29889, 13424, 1053, 315, 492, 16802, 13, 13, 3166, 413, 29888, 29918, 4299, 29918...
tilemap.py
AI0702/Among-Us-clone
0
20956
<filename>tilemap.py import pygame as pg from settings import * import pytmx class Map: def __init__(self, filename): self.data = [] with open(filename, 'rt') as f: for line in f: self.data.append(line.strip()) self.tilewidth = len(self.data[0]) ...
[ 1, 529, 9507, 29958, 29873, 488, 1958, 29889, 2272, 13, 5215, 22028, 408, 23822, 30004, 13, 3166, 6055, 1053, 334, 30004, 13, 5215, 282, 3637, 16838, 30004, 13, 30004, 13, 30004, 13, 1990, 7315, 29901, 30004, 13, 1678, 822, 4770, 2344, ...
kick/device2/series3/actions/webserver/__init__.py
CiscoDevNet/firepower-kickstart
2
56137
"""Library to access the webserver.""" import re import time import logging logger = logging.getLogger(__name__) from unicon.eal.expect import Spawn, TimeoutError from unicon.utils import AttributeDict from unicon.eal.dialogs import Dialog MAX_RETRY_COUNT = 3 class Webserver: def __init__(self, hostname='AST-IN...
[ 1, 9995, 12284, 304, 2130, 278, 1856, 2974, 1213, 15945, 13, 5215, 337, 13, 5215, 931, 13, 5215, 12183, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 3166, 443, 4144, 29889, 29872, 284, 29889, 17854, 1053, ...
expenseManager/app/UtilGp.py
PacktPublishing/Python-Programming
0
1604864
<filename>expenseManager/app/UtilGp.py from datetime import datetime,timedelta from os import system, name from time import sleep import re import random class UtilGp: @staticmethod def clear(): if name == 'nt': #windows _ = system('cls') else: #mac,linux _ = system('cle...
[ 1, 529, 9507, 29958, 4548, 1947, 3260, 29914, 932, 29914, 7270, 29954, 29886, 29889, 2272, 13, 3166, 12865, 1053, 12865, 29892, 9346, 287, 2554, 13, 3166, 2897, 1053, 1788, 29892, 1024, 13, 3166, 931, 1053, 8709, 13, 5215, 337, 13, 5215...
python/edl/utils/data_server_client.py
WEARE0/edl
90
62421
<reponame>WEARE0/edl # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
[ 1, 529, 276, 1112, 420, 29958, 8851, 29909, 1525, 29900, 29914, 287, 29880, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29900, 349, 22352, 29925, 22352, 13189, 943, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937...
nova/tests/unit/virt/libvirt/volume/test_glusterfs.py
bopopescu/nova-token
0
189290
begin_unit comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/L...
[ 1, 3380, 29918, 5441, 13, 9342, 29989, 29915, 29937, 1678, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 366, 1122, 29915, 13, 12938, 29989, 12764, 29876, 29915, 13,...
misc/eulerhelper.py
Hashi4/vmdgadgets
0
39658
import sys sys.path.append('../vmdgadgets') import vmdutil import functools def alt_dot_v(v1, v2): return functools.reduce( lambda i, j: i + j, [x * y for x, y in zip(v1, v2)]) vmdutil.vmdutil.dot_v = alt_dot_v vmdutil.dot_v = alt_dot_v class strexp(): def __init__(self, val): self.val = val ...
[ 1, 1053, 10876, 13, 9675, 29889, 2084, 29889, 4397, 877, 6995, 29894, 3487, 29887, 328, 20078, 1495, 13, 5215, 325, 3487, 4422, 13, 13, 5215, 2090, 312, 8789, 13, 1753, 5272, 29918, 6333, 29918, 29894, 29898, 29894, 29896, 29892, 325, 2...
src/tdparse.py
bluemonk482/tdparse
27
1615292
""" For generating libsvm-formated feature vectors. Many functions here are borrowed from Duy-Tin Vo's implementation """ import sys sys.path.insert(0, r'../') import os import re import numpy as np import gensim from collections import defaultdict import argparse from argparse import ArgumentParser from utilities imp...
[ 1, 9995, 29871, 13, 2831, 14655, 4303, 4501, 29885, 29899, 689, 630, 4682, 12047, 29889, 13, 14804, 3168, 1244, 526, 27942, 287, 515, 5334, 29891, 29899, 29911, 262, 4785, 29915, 29879, 5314, 13, 15945, 29908, 13, 5215, 10876, 13, 9675, ...
app/main/forms.py
MichelAtieno/Personal-Blog
0
69661
<gh_stars>0 from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField from wtforms.validators import Required, DataRequired, Length class SubscriberForm(FlaskForm): email = StringField('Email', validators=[Required()]) subscribe = SubmitField('Subscribe') class BlogPostForm(F...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 29784, 29918, 29893, 13264, 1053, 2379, 1278, 2500, 13, 3166, 281, 29873, 9514, 1053, 1714, 3073, 29892, 3323, 2415, 3073, 29892, 3992, 13799, 3073, 13, 3166, 281, 29873, 9514, 2988...